:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5c5c5c;
  --line: #e8e8e4;
  --yellow: #fdcb58;
  --yellow-deep: #f0b429;
  --radius-xl: 2rem;
  --radius-lg: 1.25rem;
  --shadow: 0 18px 50px rgba(20, 20, 20, 0.12);
  --font: "Manrope", system-ui, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #fbfbfa 0%, var(--bg) 40%, #f3f3f0 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.resume-banner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem 0.25rem;
}

.resume-banner[hidden] {
  display: none !important;
}

.resume-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.resume-banner-text {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.resume-banner .btn {
  text-decoration: none;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  color: var(--ink);
  display: grid;
  place-items: center;
}

.logo-text {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--ink);
  opacity: 0.88;
}

.nav a:hover {
  opacity: 1;
}

.chev {
  font-size: 0.7rem;
  opacity: 0.55;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.hero-lead {
  margin: 0 0 1.6rem;
  max-width: 28rem;
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.95rem;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(253, 203, 88, 0.35);
}

.btn-primary:hover {
  background: var(--yellow-deep);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.hero-trust {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--yellow-deep);
}

.hero-visual {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
}

.hero-panel {
  width: min(100%, 28rem);
  aspect-ratio: 3 / 4.15;
  background: var(--yellow);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.hero-person {
  width: 118%;
  max-width: none;
  position: absolute;
  left: 50%;
  bottom: -4%;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center top;
}

.process-card {
  position: absolute;
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 3px solid #fff;
}

.process-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-before {
  width: 7.2rem;
  height: 7.2rem;
  top: 11%;
  left: 4%;
  transform: rotate(-8deg);
  z-index: 3;
}

.process-after {
  width: 10.5rem;
  height: 10.5rem;
  right: 2%;
  bottom: 10%;
  z-index: 3;
}

.process-arrow {
  position: absolute;
  left: 18%;
  top: 34%;
  z-index: 4;
  transform: rotate(12deg);
}

.badge-time {
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.guide-line {
  position: absolute;
  inset: 8% auto 8% 50%;
  width: 0;
  border-left: 2px dashed rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.35));
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}

.section-muted {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid var(--line);
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - var(--max)) / 2 + 1.5rem));
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2rem;
}

.section-head h2,
.guarantee h2,
.cta-box h2,
.about h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-head p,
.guarantee p,
.cta-box p,
.about p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem 1.5rem;
}

.step-num {
  display: inline-block;
  font-weight: 800;
  color: var(--yellow-deep);
  margin-bottom: 0.8rem;
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  gap: 0.35rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.doc-card:hover {
  border-color: var(--yellow-deep);
  transform: translateY(-2px);
}

.doc-card strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.doc-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.guarantee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2rem;
}

.guarantee > div {
  max-width: 40rem;
}

.section-cta {
  padding-top: 1rem;
}

.cta-box {
  background: var(--yellow);
  border-radius: calc(var(--radius-xl) + 0.25rem);
  padding: 2.75rem 2rem;
  text-align: center;
}

.cta-box p {
  color: rgba(20, 20, 20, 0.72);
  margin-bottom: 1.4rem;
}

.upload {
  display: inline-grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0;
}

.upload-label {
  display: inline-grid;
  justify-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.upload small {
  color: rgba(20, 20, 20, 0.55);
  font-weight: 600;
  font-size: 0.8rem;
}

.chooser-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(34rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
}

.chooser-dialog::backdrop,
.notice-dialog::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.chooser-dialog-inner {
  margin: 0;
  padding: 1.5rem 1.35rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.doc-type-actions {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .doc-type-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.chooser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.chooser-head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.chooser-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}

.chooser-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.chooser-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.photo-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 11.5rem;
  padding: 1rem 0.75rem;
  border: 1.5px dashed rgba(20, 20, 20, 0.28);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, #fffdf6 0%, #fff 55%),
    radial-gradient(circle at 30% 20%, rgba(253, 203, 88, 0.18), transparent 55%);
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.photo-slot:hover:not(:disabled),
.photo-slot:focus-visible:not(:disabled) {
  border-color: var(--yellow-deep);
  outline: none;
  transform: translateY(-1px);
}

.photo-slot:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.photo-slot-placeholder {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  z-index: 1;
}

.photo-slot-placeholder strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.photo-slot-placeholder small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.photo-slot-icon {
  color: rgba(20, 20, 20, 0.72);
  margin-bottom: 0.15rem;
}

.photo-slot-preview {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 2;
}

.photo-slot.has-preview .photo-slot-placeholder {
  opacity: 0;
}

.chooser-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 600;
}

.camera-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(34rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
}

.camera-dialog::backdrop {
  background: rgba(20, 20, 20, 0.45);
}

.camera-dialog-inner {
  margin: 0;
  padding: 1.5rem 1.35rem 1.4rem;
  display: grid;
  gap: 1rem;
}

.camera-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111;
  aspect-ratio: 3 / 4;
  max-height: min(58vh, 28rem);
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.75rem;
}

.camera-actions .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 560px) {
  .chooser-slots {
    grid-template-columns: 1fr;
  }

  .photo-slot {
    min-height: 9.5rem;
  }

  .camera-actions {
    grid-template-columns: 1fr;
  }
}

.notice-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: min(26rem, calc(100vw - 2rem));
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--ink);
}

.notice-dialog-inner {
  margin: 0;
  padding: 1.75rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.85rem;
  justify-items: start;
}

.notice-dialog-inner h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.notice-dialog-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.notice-dialog-inner a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.notice-dialog-inner .btn {
  margin-top: 0.35rem;
  justify-self: stretch;
  text-align: center;
}

.result-dialog-inner {
  max-width: min(22rem, calc(100vw - 2rem));
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

/* Full result screen (Visafoto-like, no payment) */
body.result-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(253, 203, 88, 0.28), transparent 55%),
    var(--bg, #f4f4f1);
}

.result-page-main {
  flex: 1;
  width: min(56rem, calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
}

.result-page-status {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-weight: 600;
}

.result-page-status[hidden],
.result-missing[hidden] {
  display: none !important;
}

.result-screen {
  scroll-margin-top: 1rem;
}

.result-screen[hidden] {
  display: none !important;
}

.result-screen-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.result-screen-head {
  display: grid;
  gap: 0.45rem;
  text-align: center;
}

.result-kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-screen-head h1,
.result-screen-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.result-product h2,
.result-specs h2,
.result-missing h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.result-specs h2 {
  font-size: 1.1rem;
}

.result-missing h1 {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  text-align: center;
}

.result-missing .result-lead {
  text-align: center;
}

.result-lead {
  margin: 0;
  color: var(--muted);
}

.result-badge {
  justify-self: center;
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.result-badge.is-pass {
  background: #e8f7e9;
  color: #1f6b2e;
}

.result-badge.is-soft {
  background: #fff4d6;
  color: #7a5a00;
}

.result-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.result-product {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fbfbfa;
}

.result-product h2,
.result-product h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.result-product-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.result-product-image {
  width: 100%;
  max-width: 14rem;
  justify-self: center;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 0;
}

.result-product-image.is-passport {
  aspect-ratio: 35 / 45;
  object-fit: cover;
}

.result-product-image.is-print {
  aspect-ratio: 10 / 15;
  object-fit: contain;
  max-width: 11rem;
}

.result-product-image.is-resume {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  max-width: 14rem;
}

.result-resume {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.result-resume[hidden] {
  display: none !important;
}

.result-resume-product {
  max-width: 22rem;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.result-resume-product .result-product-note,
.result-resume-product .result-pay-note {
  text-align: center;
}

.result-resume-product .btn {
  width: 100%;
  max-width: 16rem;
}

.result-product .btn {
  justify-self: stretch;
  text-align: center;
  text-decoration: none;
}

.result-product a.btn[hidden] {
  display: none !important;
}

.result-pay {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  margin-top: 0.25rem;
  padding: 1.25rem 1rem 0.5rem;
  text-align: center;
}

.result-pay[hidden] {
  display: none !important;
}

.result-pay-btn {
  min-width: min(100%, 280px);
  font-size: 1.05rem;
}

.result-pay-note,
.result-pay-guarantee,
.result-pay-status {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-pay-guarantee {
  font-weight: 500;
}

.result-pay-status {
  color: var(--ink);
  font-weight: 600;
}

.result-email {
  display: grid;
  gap: 0.55rem;
  justify-items: stretch;
  margin-top: 0.25rem;
  padding: 1.1rem 1rem 0.35rem;
  max-width: 36rem;
  margin-inline: auto;
  width: 100%;
}

.result-email[hidden] {
  display: none !important;
}

.result-email-label {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
}

.result-email-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: stretch;
}

.result-email-input {
  min-width: 0;
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: var(--radius-md, 10px);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.result-email-input:focus {
  outline: 2px solid rgba(15, 23, 42, 0.28);
  outline-offset: 1px;
}

.result-email-btn {
  white-space: nowrap;
}

.result-email-note,
.result-email-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.result-email-status {
  color: var(--ink);
  font-weight: 600;
}

.result-email-status.is-ok {
  color: #17653a;
}

.result-email-status.is-err {
  color: #9b1c1c;
}

@media (max-width: 560px) {
  .result-email-row {
    grid-template-columns: 1fr;
  }
}

.result-specs {
  display: grid;
  gap: 0.65rem;
}

.result-specs h3 {
  margin: 0;
  font-size: 1.1rem;
}

.result-specs-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.result-specs-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.result-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.result-specs-table th,
.result-specs-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.result-specs-table th {
  background: #f5f5f2;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.result-specs-table tr:last-child td {
  border-bottom: 0;
}

.result-specs-table tr.is-ok td:last-child {
  font-weight: 600;
}

.result-specs-table tr.is-warn td:last-child {
  color: #8a5a00;
  font-weight: 700;
}

.result-specs-links {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.result-specs-links a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.result-screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

@media (max-width: 720px) {
  .result-products {
    grid-template-columns: 1fr;
  }

  .result-screen-inner {
    padding: 1.1rem;
    border-radius: var(--radius-lg);
  }

  .result-specs-table th:nth-child(2),
  .result-specs-table td:nth-child(2) {
    display: none;
  }
}

.result-stage {
  width: 100%;
  max-width: 13rem;
  justify-self: center;
  display: grid;
  gap: 0.75rem;
}

.result-image {
  width: 100%;
  height: auto;
  max-height: 18rem;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  background: #f3f3f0;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.result-image.is-passport {
  aspect-ratio: 35 / 45;
  max-height: none;
  object-fit: cover;
  background: #fff;
}

.result-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.result-progress {
  display: none;
  width: 100%;
  gap: 0.55rem;
}

.result-progress.is-active,
.result-progress:not([hidden]) {
  display: grid;
}

.result-progress[hidden] {
  display: none !important;
}

.result-progress-track {
  width: 100%;
  height: 0.35rem;
  border-radius: 999px;
  background: #ebebe8;
  overflow: hidden;
}

.result-progress-bar {
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow-deep), var(--yellow));
  transition: width 0.55s ease;
}

.result-progress-bar.is-waiting {
  background-size: 200% 100%;
  animation: result-progress-sheen 1.1s linear infinite;
}

.result-progress-step {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-height: 1.35em;
}

.result-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #9a9a96;
  text-align: center;
}

.result-progress-list li.is-current {
  color: var(--ink);
}

.result-progress-list li.is-done {
  color: #6f6f6a;
}

@keyframes result-progress-sheen {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
  100% {
    filter: brightness(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .result-progress-bar {
    transition: none;
  }

  .result-progress-bar.is-waiting {
    animation: none;
  }
}

.result-actions {
  display: grid;
  gap: 0.55rem;
  width: 100%;
}

.result-actions .btn,
.result-actions a.btn {
  margin-top: 0;
  text-decoration: none;
}

.result-actions a.btn[hidden],
.result-actions .btn[hidden] {
  display: none !important;
}

.about {
  max-width: 40rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-brand p,
.footer-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.2rem;
    left: 1rem;
    right: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1rem;
    z-index: 20;
    box-shadow: var(--shadow);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .hero-visual {
    min-height: 28rem;
    order: -1;
  }

  .hero-panel {
    width: min(100%, 22rem);
  }

  .steps,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .guarantee {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .process-before {
    width: 5.6rem;
    height: 5.6rem;
    left: 0;
  }

  .process-after {
    width: 8.2rem;
    height: 8.2rem;
    right: 0;
  }

  .process-arrow {
    left: 12%;
    top: 30%;
  }
}

body.contacts-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contacts-page-main {
  width: min(var(--max), 100%);
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  box-sizing: border-box;
  flex: 1;
}

.contacts-panel {
  width: min(36rem, 100%);
  max-width: 36rem;
  margin: 0 auto;
}

.contacts-panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.contacts-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.contacts-form {
  display: grid;
  gap: 1rem;
}

.contacts-field {
  display: grid;
  gap: 0.35rem;
}

.contacts-field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.contacts-field input,
.contacts-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}

.contacts-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.contacts-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contacts-photo-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.contacts-status {
  min-height: 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.contacts-status.is-error {
  color: #b42318;
}

.contacts-status.is-ok {
  color: #067647;
}

.contacts-photo-row [hidden] {
  display: none !important;
}

.contacts-form > .btn-primary {
  width: 100%;
}

.contacts-form .btn[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.legal-page-main {
  width: min(var(--max), 100%);
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  box-sizing: border-box;
}

.legal-panel {
  width: min(46rem, 100%);
  max-width: 46rem;
  margin: 0 auto;
}

.legal-panel h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.legal-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.legal-body {
  font-size: 0.96rem;
  line-height: 1.65;
}

.legal-body h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.05rem;
}

.legal-body p,
.legal-body ul {
  margin: 0.6rem 0;
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body a {
  font-weight: 600;
}

.legal-rekv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal-rekv-table th,
.legal-rekv-table td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.legal-rekv-table th {
  width: 38%;
  background: var(--bg-muted, #f8f8f8);
  font-weight: 700;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-legal a {
  color: var(--muted);
  font-weight: 600;
}

.chooser-consent {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.chooser-consent.is-error {
  border-color: #b42318;
  background: rgba(180, 35, 24, 0.08);
  color: #7a1a12;
}

.chooser-consent label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}

.chooser-consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.chooser-consent.is-error input {
  outline: 2px solid #b42318;
  outline-offset: 2px;
}

.chooser-consent a {
  font-weight: 700;
  color: inherit;
}
