/* Общие стили страниц: блоки, сетка, формы. Стили партнёра — partner.css. */
/* Geologica (SIL OFL 1.1, static/fonts/OFL.txt): свой сервер, без Google Fonts. Переменный по весу 300–700, кириллица и латиница. */
@font-face {
  font-family: "Geologica"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sun: #FF8A3D;          /* заливка главных действий и солнечных полей, текст на ней чернилами */
  --sun-hover: #FF7623;
  --sun-deep: #B4471A;     /* оранжевый текст и стрелки на светлом, 5,4:1 к белому */
  --sun-tint: #FFE1C7;     /* метки срока */
  --glow: #FFC75A;         /* золото на тёмном: акцент заголовка, иконки */
  --dusk: #2E1A24;         /* вечерние поля: обещания, подвал */
  --dusk-deep: #22131B;
  --ink: #24150F;          /* текст */
  --ink-2: #5A4436;        /* вторичный текст, 9:1 к белому */
  --ink-3: #7A6252;        /* подписи, только 14 px и крупнее */
  --line: #EADBCF;         /* разделители */
  --field: #A88E7C;        /* рамка полей, 3,1:1 к белому */
  --on-dark: #F4E6DE;      /* текст на тёмном и на фото под подложкой */
  --on-dark-2: #E1CBBF;
  --danger: #A3241B;
  --ok: #1F6A40;
  --dawn: #FFF6EF;         /* окружающий свет в начале страницы */
  --sunset: #FFE9DA;       /* окружающий свет к концу страницы */
  --sheet-ground-dawn: #FFDCC4; /* телефон: фон между листами в начале страницы */
  --sheet-ground-dusk: #F6B99A; /* телефон: фон между листами к вечеру */
  --sheet-tint: #FFF6EF;   /* телефон: тонированный лист и колодцы внутри листа */
  --step-1: #FFE9C2; --step-2: #FFE1C7; --step-3: #FFD7C3; --step-4: #FFCDBF; /* номера шагов: от утра к вечеру */
  --day: 0;                /* 0 — рассвет, 1 — вечер; задаёт motion.js по прокрутке */
  --font: "Geologica", "Segoe UI", system-ui, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-panel: 28px;
  --r-field: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-panel: 0 32px 64px -32px rgba(46, 26, 36, .55), 0 2px 6px -2px rgba(46, 26, 36, .12);
  --shadow-soft: 0 18px 40px -26px rgba(46, 26, 36, .45);
  color-scheme: light;
}

@property --day { syntax: "<number>"; inherits: true; initial-value: 0; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.55 var(--font); font-feature-settings: "tnum" 0;
  background: color-mix(in oklab, var(--dawn), var(--sunset) calc(var(--day) * 100%));
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
::selection { background: var(--glow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 3px; border-radius: 8px; }
.hero :focus-visible, .evening :focus-visible, .band-promises :focus-visible, .foot :focus-visible { outline-color: var(--glow); }
.finder :focus-visible, .lead-box :focus-visible { outline-color: var(--sun-deep); }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--dawn); }
::-webkit-scrollbar-thumb { background: #D9B9A3; border-radius: 12px; border: 3px solid var(--dawn); }
html { scrollbar-color: #D9B9A3 var(--dawn); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr, .seg input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; }
.skip:focus { top: 16px; }
.placeholder { background: rgba(255, 199, 90, .22); border-radius: 6px; padding: 0 4px; }
.ic { width: 20px; height: 20px; flex: none; }
.ic.flip { transform: scaleX(-1); }

/* солнце: мягкое пятно света, идёт по небу вместе с прокруткой */
.sun {
  position: fixed; z-index: -1; pointer-events: none; width: min(64vw, 820px); aspect-ratio: 1; border-radius: 50%;
  right: -12vw; top: -10vh; transform: translate3d(calc(var(--day) * -70vw), calc(var(--day) * 62vh), 0); will-change: transform;
  background: radial-gradient(circle, rgba(255, 170, 90, .34) 0%, rgba(255, 138, 61, .12) 38%, rgba(255, 138, 61, 0) 68%);
}
.proto { display: none; }

/* типографика */
.display { margin: 0; font-size: clamp(40px, 5.2vw, 76px); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.display-md { font-size: clamp(38px, 4.8vw, 70px); line-height: 1; }
.display-sm { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; }
.d-light { font-weight: 300; }
.d-strong { font-weight: 600; color: var(--glow); }
.display-ink .d-strong { color: #9A3A12; }
.h2 { margin: 0; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.h2-sm { font-size: clamp(26px, 2.6vw, 36px); }
.h4 { margin: 28px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.band-lead { margin: 16px 0 0; max-width: 58ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 16px; font: 600 16px/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-sun { background: var(--sun); color: var(--ink); box-shadow: 0 14px 28px -16px rgba(255, 118, 35, .95); }
.btn-sun:hover { background: var(--sun-hover); transform: translateY(-1px); box-shadow: 0 18px 32px -16px rgba(255, 118, 35, 1); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-ghost-light { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* верхняя строка */
.top { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; padding: 0 var(--gutter); pointer-events: none; }
.top-bar {
  pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; min-height: 66px; display: flex; align-items: center; gap: 28px;
  padding: 10px 11px 10px clamp(18px, 2.6vw, 34px); border-radius: 22px; color: var(--ink);
  background: rgba(255, 249, 244, .74); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 12px 32px -18px rgba(46, 26, 36, .5), inset 0 1px 0 rgba(255, 255, 255, .8);
  transition: box-shadow .3s, background-color .3s;
}
.is-scrolled .top-bar { background: rgba(255, 249, 244, .9); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -.015em; text-decoration: none; white-space: nowrap; padding: 10px 0; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 9px 12px; border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .2s; }
.top-nav a:hover { background: rgba(36, 21, 15, .06); }
.top-nav a[aria-current] { background: rgba(255, 138, 61, .18); }
.top-cta { margin-left: auto; }
.top-cta .short { display: none; }

/* первый экран */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--dusk); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: 0 0 36px 36px; background: var(--dusk); }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 150, 90, .22) 0%, rgba(255, 150, 90, 0) 30%),
    linear-gradient(12deg, rgba(36, 21, 15, .86) 0%, rgba(36, 21, 15, .5) 34%, rgba(36, 21, 15, 0) 64%);
}
.hero-bloom {
  position: absolute; left: 52%; top: 4%; width: 46vw; max-width: 640px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 90, .5) 0%, rgba(255, 138, 61, .16) 42%, rgba(255, 138, 61, 0) 70%);
}
.plate {
  background: rgba(36, 21, 15, .46); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-panel);
  backdrop-filter: blur(16px) saturate(1.25); -webkit-backdrop-filter: blur(16px) saturate(1.25);
  padding: clamp(22px, 2.6vw, 34px); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7);
}
.hero-lead { margin: 18px 0 0; max-width: 46ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--on-dark); text-wrap: pretty; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.hero-facts li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 14px; color: var(--on-dark);
  background: rgba(36, 21, 15, .52); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .12);
}
.hero-facts b { color: #fff; font-weight: 600; }
.hero-facts .ic { color: var(--glow); width: 18px; height: 18px; }

.hero-home { min-height: 100svh; }
.hero-home .display { font-size: clamp(36px, min(5.2vw, 8.6svh), 76px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: clamp(24px, 4vw, 56px); align-items: end;
  min-height: inherit; padding-top: clamp(96px, 13svh, 128px); padding-bottom: clamp(24px, 4svh, 56px);
}
.hero-copy { max-width: 760px; }
.hero-copy .plate { width: fit-content; max-width: 100%; }
/* услуги на первом экране через точки (владелец 19.11); точка в начале строки уходит за край и не видна */
.hero-services { display: flex; flex-wrap: wrap; column-gap: 1.1em; overflow: hidden; margin: 18px 0 0; padding: 0; list-style: none;
  font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; font-weight: 500; color: #fff; }
.hero-services li { position: relative; white-space: nowrap; }
.hero-services li::before { content: ""; position: absolute; left: -.62em; top: 50%; width: 5px; height: 5px; margin-top: -2px; border-radius: 50%; background: var(--glow); }
.hero-services + .hero-lead { margin-top: 8px; }

/* подбор решения */
.finder {
  color: var(--ink); border-radius: var(--r-panel); padding: 26px;
  background: rgba(255, 250, 246, .9); backdrop-filter: blur(26px) saturate(1.6); -webkit-backdrop-filter: blur(26px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-panel), inset 0 1px 0 #fff;
}
.finder-h { margin: 0; font-size: 24px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.finder-sub { margin: 4px 0 18px; font-size: 15px; color: var(--ink-2); }
fieldset { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
legend, .field label { display: block; margin: 0 0 8px; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 16px; background: #F3E6DC; }
.seg label { cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 11px 8px; border-radius: 12px; text-align: center; font-size: 15px; font-weight: 500; transition: background-color .2s, box-shadow .2s; }
.seg input:checked + span { background: #fff; box-shadow: 0 4px 12px -6px rgba(46, 26, 36, .45); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--sun-deep); outline-offset: 1px; }
.field { margin: 0 0 14px; }
.field input, .field select {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r-field); border: 1.5px solid var(--field); background: #fff;
  font: 400 16px/1.2 var(--font); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%2324150F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; }
.field input::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover { border-color: #7A6252; }
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 138, 61, .45); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF4F2; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
.err { margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--danger); }
.note { display: flex; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #FFF0C9; color: var(--ink); font-size: 14px; line-height: 1.45; }
.note .ic { color: var(--sun-deep); width: 18px; height: 18px; margin-top: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--sun-deep); flex: none; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); text-align: center; }

.fit-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.fit-list a {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--r-field); background: #fff; border: 1.5px solid var(--line);
  text-decoration: none; font-weight: 600; transition: border-color .2s, transform .25s var(--ease);
}
.fit-list a:hover { border-color: var(--ink); }
.fit-list a span { flex: 1; }
.fit-list small { font-size: 13px; font-weight: 500; color: #6B2E0E; background: var(--sun-tint); padding: 3px 8px; border-radius: 999px; }
.fit-list small.rev { color: #7A2A12; background: #FFF1EA; box-shadow: inset 0 0 0 1px #D9967A; }
.fit-list .ic { width: 18px; height: 18px; color: var(--sun-deep); }
.fit-name { display: grid; gap: 2px; }
.fit-price { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.finder { padding: clamp(18px, 2.6svh, 26px); }
.finder .field input, .finder .field select { height: clamp(44px, 6svh, 50px); }
.finder .btn { min-height: clamp(46px, 6.4svh, 52px); }
.picked { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--sun-tint); color: #4A1F09; font-size: 14px; }
.picked .ic { width: 16px; height: 16px; color: var(--sun-deep); }
.lead-finder .lead-h { font-size: 24px; }
.lead-finder .lead-sub { margin-bottom: 16px; }

/* полосы */
.band { padding: clamp(72px, 9vw, 128px) 0; }
.band-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 64px); }

/* разделы */
[data-hour="morning"] { filter: saturate(.85) brightness(1.08) hue-rotate(-10deg) contrast(.96); }
[data-hour="noon"] { filter: saturate(.62) brightness(1.16) contrast(1.06); }
[data-hour="afternoon"] { filter: saturate(1.15) sepia(.2) brightness(1.02); }
[data-hour="golden"] { filter: saturate(1.35) sepia(.42) brightness(.96) contrast(1.04); }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--sun-deep); text-decoration: none; }
.more .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* как работаем: спокойная панель с номерами шагов */
.band-process { background: transparent; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none;
  background: #fff; border-radius: var(--r-panel); box-shadow: var(--shadow-soft); border: 1px solid rgba(234, 219, 207, .7); overflow: hidden; }
.step { position: relative; padding: clamp(22px, 2.4vw, 32px); }
.step + .step { border-left: 1px solid var(--line); }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 14px;
  background: var(--sun-tint); color: #8E3511; font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.step:nth-child(1) .step-num { background: var(--step-1); }
.step:nth-child(2) .step-num { background: var(--step-2); }
.step:nth-child(3) .step-num { background: var(--step-3); }
.step:nth-child(n+4) .step-num { background: var(--step-4); }
.step-h { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 30ch; }
.band-process-compact { padding: clamp(40px, 5vw, 72px) 0; }
.band-process-compact .band-head { margin-bottom: 28px; }

/* гид */
.guide-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.guide-link { display: grid; grid-template-columns: 1fr 1fr; height: 100%; border-radius: var(--r-panel); overflow: hidden; background: #fff; text-decoration: none; box-shadow: var(--shadow-soft); }
.guide-photo { position: relative; overflow: hidden; min-height: 280px; }
.guide-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.guide-link:hover .guide-photo img { transform: scale(1.05); }
.guide-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 34px); }
.guide-title { font-size: clamp(22px, 2vw, 28px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.guide-link:hover .guide-title { color: var(--sun-deep); }
.guide-short { color: var(--ink-2); font-size: 16px; }
.guide-meta { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ok); font-weight: 500; }
.guide-meta .ic { width: 16px; height: 16px; }
.guide-side { display: flex; flex-direction: column; gap: 14px; }
.tool { display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 22px; background: #fff; text-decoration: none; box-shadow: var(--shadow-soft); transition: transform .3s var(--ease); }
.tool:hover { transform: translateY(-2px); }
.tool > .ic:first-child { color: var(--sun-deep); width: 24px; height: 24px; }
.tool span { flex: 1; display: grid; }
.tool small { color: var(--ink-2); font-size: 14px; }
.guide-soon { margin: 0; padding: 18px 20px; border-radius: 22px; border: 1.5px dashed var(--field); color: var(--ink-2); font-size: 15px; }

/* обещания: вечер */
.band-promises { background: var(--dusk); color: #fff; border-radius: 36px; margin: 0 clamp(8px, 1.4vw, 20px); padding-left: clamp(8px, 1.4vw, 20px); padding-right: clamp(8px, 1.4vw, 20px); }
.promises { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head list" "cta list"; column-gap: clamp(32px, 6vw, 96px); row-gap: 28px; align-items: start; }
.promises-h { grid-area: head; margin: 0; }
.plist { grid-area: list; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.plist li { display: flex; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; line-height: 1.35; color: #fff; }
.plist .ic { flex: none; width: 24px; height: 24px; color: var(--glow); }
.promises-cta { grid-area: cta; justify-self: start; }

/* вопросы */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sun-deep); }
.faq-pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); transition: transform .3s var(--ease); }
.faq-pm::before, .faq-pm::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.faq-pm::after { transform: rotate(90deg); }
.faq details[open] .faq-pm { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 64ch; color: var(--ink-2); font-size: 17px; }
/* много вопросов: заголовок сверху, вопросы в две колонки (на телефоне одна) */
.faq-long .faq-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.faq-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) {
  .faq-cols { grid-template-columns: minmax(0, 1fr); }
  .faq-cols .faq + .faq details:first-child { border-top: 0; }
}

/* вечер: заявка */
.evening { position: relative; isolation: isolate; color: #fff; background: var(--dusk); margin-top: clamp(56px, 7vw, 96px); padding: clamp(80px, 10vw, 140px) 0; overflow: hidden; border-radius: 36px 36px 0 0; }
.evening-media { position: absolute; inset: 0; z-index: -1; background: var(--dusk); }
.evening-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.evening-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 19, 27, .92) 0%, rgba(34, 19, 27, .72) 46%, rgba(34, 19, 27, .35) 100%); }
.evening-grid { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: clamp(32px, 5vw, 80px); align-items: center; }
.evening-lead { margin: 20px 0 26px; max-width: 44ch; font-size: 19px; color: var(--on-dark); }
.evening-contacts { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--on-dark); }
.evening-contacts li { display: flex; align-items: center; gap: 10px; }
.evening-contacts .ic { color: var(--glow); }

.lead-box { position: relative; color: var(--ink); }
.lead-glass, .lead-light { border-radius: var(--r-panel); padding: clamp(22px, 2.4vw, 32px); }
.lead-glass { background: rgba(255, 250, 246, .93); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); box-shadow: var(--shadow-panel); border: 1px solid rgba(255, 255, 255, .7); }
.lead-light { background: #fff; box-shadow: var(--shadow-panel); }
.lead-h { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.lead-sub { margin: 6px 0 20px; color: var(--ink-2); font-size: 15px; }
.lead-done { text-align: center; padding: 24px 8px; }
.lead-done:focus { outline: none; }
.done-ic { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: var(--sun); color: var(--ink); margin: 0 auto 16px; }
.lead-done p { color: var(--ink-2); }

/* внутренние страницы: первый экран */
.hero-inner { min-height: 600px; }
.hero-short { min-height: 520px; }
.hero-inner-grid { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; min-height: inherit; padding-top: 112px; padding-bottom: 56px; }
.hero-inner-grid .plate { max-width: 860px; }
.plate-inner .hero-lead { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
/* цена и срок услуги в плашке: видны на любом экране (владелец 19.11) */
/* наше предложение отдельно от описания визы (владелец 19.11) */
.hero-usp { display: flex; align-items: center; gap: 10px; max-width: 52ch; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: clamp(16px, 1.2vw, 18px); font-weight: 600; line-height: 1.35; color: #fff; }
.hero-usp .ic { width: 20px; height: 20px; color: var(--glow); }
.vres-usp { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.vres-usp .ic { width: 18px; height: 18px; color: var(--sun-deep); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; font-size: clamp(15px, 1.15vw, 17px); color: var(--on-dark); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta b { color: #fff; font-weight: 600; }
.hero-meta .ic { width: 18px; height: 18px; color: var(--glow); }
.hero-facts-inner { margin-top: 0; }
.hero-facts .is-review .ic { color: #FFB59A; }
.crumbs ol { display: inline-flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 7px 14px; list-style: none; border-radius: 999px; font-size: 14px; background: rgba(36, 21, 15, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--on-dark); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .55; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: #fff; font-weight: 500; }
.apply-page .crumbs ol { background: rgba(36, 21, 15, .06); color: var(--ink-2); backdrop-filter: none; }
.apply-page .crumbs [aria-current] { color: var(--ink); }
.review-bar { display: flex; gap: 12px; align-items: flex-start; margin: 24px 0 48px; padding: 16px 18px; border-radius: 18px; font-size: 16px; background: #FFF1EA; border: 1.5px dashed #D9967A; color: #5A1E0B; }
.review-bar .ic { color: var(--sun-deep); }

/* список услуг раздела */
.srows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.srow-link { display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.srow-main { display: grid; gap: 6px; }
.srow-name { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; transition: color .2s; }
.srow-name .ic { color: var(--sun-deep); }
.srow-desc { color: var(--ink-2); max-width: 62ch; }
.srow-meta { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.srow-go { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); transition: background-color .25s, border-color .25s; }
.srow-go .ic { transition: transform .3s var(--ease); }
.srow-link:hover .srow-name { color: var(--sun-deep); }
.srow-link:hover .srow-go { background: var(--sun); border-color: var(--sun); }
.srow-link:hover .srow-go .ic { transform: translateX(3px); }
.srows-compact .srow-link { padding: 18px 0; }
.srows-compact .srow-name { font-size: 21px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.tag .ic { width: 15px; height: 15px; }
.tag-sun { background: var(--sun-tint); color: #6B2E0E; }
.tag-lg { margin: 22px 0 0; font-size: 15px; padding: 8px 14px; }
.tag-review { background: #FFF1EA; color: #7A2A12; border: 1px dashed #D9967A; }
.tag-line { border: 1px solid var(--field); color: var(--ink-2); }
/* цена «от» (владелец 19.11): чернила на рассвете, без солнца — солнце у срока */
.tag-price { background: var(--dawn); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.tag-price .ic { color: var(--sun-deep); }

/* услуга */
.band-check { padding-bottom: 0; }
.check { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.check-box { padding: 26px; border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-soft); }
.check-out { margin: 0; min-height: 48px; color: var(--ink-2); font-size: 15px; }
.check-ok, .check-bad { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; color: var(--ink); }
.check-ok { background: #E3F2E8; }
.check-ok .ic { color: var(--ok); }
.check-bad { background: #FFF1EA; box-shadow: inset 0 0 0 1.5px #EBC0AC; }
.check-bad .ic { color: var(--sun-deep); }
.check-bad a { font-weight: 600; color: var(--sun-deep); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.ticks .ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sun); color: var(--ink); margin-top: -1px; }
.band-stages { background: transparent; }
.stages { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.route-box { padding: 24px; border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-soft); border: 1px solid rgba(234, 219, 207, .7); }
.seg-light { margin-bottom: 18px; }
.route { position: relative; margin: 0; padding: 0 0 0 4px; list-style: none; display: grid; }
.route::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.route::after { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 2px; background: var(--sun); transform-origin: top; }
.route li { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 17px; font-weight: 500; }
.route-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--sun); flex: none; }
.route li:last-child .route-dot { background: var(--sun); box-shadow: 0 0 0 4px var(--sun-tint); }
.route-out { display: none; }
.route-box:has(input[value="out"]:checked) .route-out { display: grid; }
.route-box:has(input[value="out"]:checked) .route-in { display: none; }
.docs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.doclist { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doclist li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px -22px rgba(46, 26, 36, .6); }
.doclist .ic { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sun); color: var(--ink); margin-top: -1px; }
.doclist span { display: grid; gap: 2px; }
.doclist small { color: var(--ink-2); font-size: 14px; }

/* статья */
.hero-article { min-height: 560px; }
.plate-article { max-width: 920px; }
.art-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.art-side { position: sticky; top: 104px; align-self: start; font-size: 15px; }
.checked { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; color: var(--ok); }
.checked .ic { width: 18px; height: 18px; }
.art-note { margin: 8px 0 24px; color: var(--ink-2); font-size: 14px; }
.toc { display: grid; gap: 2px; margin-bottom: 24px; }
.toc-h { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.toc a { padding: 7px 10px; margin-left: -10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.toc a:hover { background: rgba(36, 21, 15, .06); color: var(--ink); }
.legend p { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.art-body { max-width: 840px; font-size: 18px; line-height: 1.65; background: #fff; border-radius: var(--r-panel); padding: clamp(24px, 3.4vw, 48px); box-shadow: var(--shadow-soft); }
.art-body .facts div { background: var(--dawn); box-shadow: none; }
.art-body section { margin-bottom: clamp(40px, 5vw, 64px); }
.art-body section > p { max-width: 68ch; }
.art-body .h2 { margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.facts div { flex: 1 1 200px; }
.facts dd { overflow-wrap: break-word; text-wrap: balance; }
.facts div { padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px -22px rgba(46, 26, 36, .6); }
.facts dt { font-size: 14px; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 600; font-size: 18px; line-height: 1.3; }
.rows { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.rows th, .rows td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.rows thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); padding-top: 0; }
.rows tbody th { font-weight: 600; width: 26%; }
.rows .num { text-align: right; padding-right: 0; white-space: nowrap; }
.src { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.src-gdrfa { background: #E3F2E8; color: #17502F; }
.src-check { background: #FFF0C9; color: #5E4206; }
.src-ours { background: var(--sun-tint); color: #6B2E0E; }
.after { font-size: 15px; color: var(--ink-2); }
.art-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 0 0 56px; padding: 24px 28px; border-radius: var(--r-panel); background: var(--sun); }
.art-cta p { margin: 0; max-width: 44ch; font-size: 17px; }
.art-cta .btn-sun { background: var(--ink); color: #fff; box-shadow: none; }
.art-cta .btn-sun:hover { background: #000; }
.sources { margin: 0; padding-left: 22px; display: grid; gap: 14px; font-size: 16px; }
.sources a { color: var(--sun-deep); font-weight: 500; }
.sources small { display: block; color: var(--ink-2); font-size: 14px; }

/* страница заявки */
.apply-page { padding: 128px 0 clamp(64px, 8vw, 120px); }
.apply-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.apply-page .display { margin-top: 24px; }
.steps-list { grid-template-columns: 1fr; margin-top: 36px; }
.steps-list .step + .step { border-left: 0; border-top: 1px solid var(--line); }
.steps-list .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 18px 22px; }
.steps-list .step-num { grid-row: span 2; margin: 0; }
.steps-list .step-h { font-size: 18px; margin: 0 0 2px; align-self: end; }

/* подвал */
.foot { background: var(--dusk-deep); color: var(--on-dark-2); padding: 64px 0 28px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand { margin: 0 0 8px; color: #fff; font-weight: 700; font-size: 20px; }
.foot-note { max-width: 44ch; margin: 0; text-wrap: pretty; }
.foot-h { margin: 0 0 12px; color: #fff; font-weight: 600; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact { margin: 0 0 8px; }
.foot-end { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #CDB3A6; }

/* движение: только при согласии на анимацию */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .hero-media { view-transition-name: hero-media; }
  .top-bar { view-transition-name: top-bar; }
  ::view-transition-group(hero-media) { animation-duration: .7s; animation-timing-function: var(--ease); }
  ::view-transition-old(root) { animation: vt-out .28s ease both; }
  ::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }

  .hero-img { animation: dawn 2.4s var(--ease) both, drift 26s 2.4s ease-in-out infinite alternate; }
  .hero-bloom { animation: rise 2.6s .2s var(--ease) both; }
  .plate { animation: settle 1.1s .15s var(--ease) both; }
  .hero h1 .d-light, .hero h1 .d-strong { display: inline-block; animation: line-up 1.1s var(--ease) both; }
  .hero h1 .d-light { animation-delay: .2s; }
  .hero h1 .d-strong { animation-delay: .34s; }
  .hero-facts li { animation: settle .9s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * 60ms); }
  .finder { animation: lift 1.2s .35s var(--ease) both; }
  .fit:not([hidden]) li { animation: settle .6s var(--ease) both; animation-delay: calc(.08s + var(--i, 0) * 70ms); }

  @supports (animation-timeline: view()) {
    [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .step { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover calc(22% + var(--i, 0) * 4%); }
    .route::after { animation: draw-y linear both; animation-timeline: view(); animation-range: entry 10% cover 60%; }
  }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes dawn { from { transform: scale(1.12); filter: brightness(.7) saturate(.8); } to { transform: scale(1.04); } }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.09) translate(-1%, -1%); } }
@keyframes rise { from { opacity: 0; transform: translateY(120px) scale(.8); } }
@keyframes settle { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes line-up { from { opacity: 0; transform: translateY(.45em); filter: blur(8px); } }
@keyframes lift { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes reveal { from { opacity: 0; transform: translateY(48px); filter: blur(8px); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes photo-pan { from { transform: scale(1.12) translateY(-3%); } to { transform: scale(1.12) translateY(3%); } }

@media (prefers-reduced-motion: reduce) {
  .sun { transform: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition-property: color, background-color, border-color, box-shadow, opacity !important; }
  .sun { right: 8vw; top: -10vh; }
}

/* телефон и планшет: блоки — отдельные листы на песочном фоне, лист мягко выезжает при прокрутке */
@media (max-width: 960px) {
  body { background: color-mix(in oklab, var(--sheet-ground-dawn), var(--sheet-ground-dusk) calc(var(--day) * 100%)); }
  .band { margin: 12px 8px 0; border-radius: 28px; background: #fff; padding: 52px 0; box-shadow: 0 18px 40px -34px rgba(46, 26, 36, .5); }
  .band-promises { background: var(--dusk); }
  .band-process { background: var(--sheet-tint); }
  .band .guide-link { box-shadow: none; background: transparent; border-radius: 0; }
  .band .guide-photo { border-radius: 20px; }
  .band .guide-body { padding: 18px 0 0; }
  .band .tool { box-shadow: none; background: transparent; border-radius: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .band .guide-soon { border: 0; padding: 0; border-radius: 0; }
  .band .doclist { gap: 0; }
  .band .doclist li { box-shadow: none; background: transparent; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .band-stages .route-box, .band-check .check-box { box-shadow: none; background: var(--sheet-tint); border: 0; }
  .evening { margin: 12px 8px 0; border-radius: 28px; }
  .foot { margin-top: 12px; border-radius: 28px 28px 0 0; }
  .art-grid { padding-top: 12px; }
  .apply-page { padding-top: 96px; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .step-num { grid-row: span 2; margin: 0; }
  .step-h { margin: 0 0 4px; align-self: end; font-size: 18px; }
}
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .band, .evening { animation: sheet-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; transform-origin: 50% 0; }
    .band [data-reveal], .band .step { animation: none; }
  }
}
@keyframes sheet-in { from { transform: translateY(56px) scale(.94); opacity: .7; border-radius: 44px; } }

/* планшет и телефон */
@media (max-width: 1180px) {
  .top-nav { display: none; }
  .top-cta { margin-left: auto; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: max(250px, 38svh); padding-bottom: 40px; gap: 16px; }
  .hero { background: var(--dusk); border-radius: 0 0 36px 36px; }
  .hero .hero-media { bottom: auto; height: min(62svh, 540px); border-radius: 0; }
  .hero-home .hero-media { height: min(78svh, 700px); }
  .hero-home .hero-img { object-position: 66% 50%; }
  .hero-bloom { display: none; }
  .hero-media::after { background: linear-gradient(180deg, rgba(255, 150, 90, .18) 0, rgba(36, 21, 15, 0) 18%, rgba(36, 21, 15, .35) 34%, rgba(36, 21, 15, .78) 60%, rgba(36, 21, 15, .86) 100%); }
  .plate, .hero-facts li, .crumbs ol { background: rgba(36, 21, 15, .74); }
  .hero-inner-grid { padding-top: max(230px, 36svh); }
  .hero-home { min-height: 0; }
  .finder { padding: 20px; }
  .promises, .faq-wrap, .check, .fit-grid, .stages, .docs, .evening-grid, .apply-grid, .art-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .facts div { flex-basis: 140px; }
  .facts dd { hyphens: manual; }
  .art-body { padding: 22px 18px; border-radius: 22px; }
  .art-side { position: static; }
  .toc { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { top: 8px; padding: 0 10px; }
  .top-bar { min-height: 58px; gap: 8px; padding: 7px 6px 7px 16px; border-radius: 18px; }
  .brand { font-size: 16px; }
  .top-cta .long { display: none; }
  .top-cta .short { display: inline; }
  .top-cta { padding: 0 14px; }
  .plate { padding: 20px; border-radius: 22px; }
  .display, .hero-home .display { font-size: clamp(36px, 10.4vw, 46px); }
  .display-md { font-size: clamp(34px, 9.4vw, 42px); }
  .display-sm { font-size: 30px; }
  .hero-facts li { font-size: 14px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .plist, .doclist { grid-template-columns: 1fr; }
  .guide-link { grid-template-columns: 1fr; }
  .guide-photo { min-height: 200px; }
  .srow-link { grid-template-columns: minmax(0, 1fr) 44px; gap: 14px; }
  .srow-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .srow-go { width: 44px; height: 44px; grid-row: 1 / span 2; grid-column: 2; }
  .hero-inner { min-height: 560px; }
  .rows thead { display: none; }
  .rows tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rows th, .rows td { padding: 0; border: 0; }
  .rows tbody th { width: auto; }
  .rows td:nth-child(2) { grid-column: 1 / -1; }
  .rows-money td:first-child { grid-column: 1; font-weight: 600; }
  .foot-grid { grid-template-columns: 1fr; }
  .evening-grid { gap: 28px; }
}


/* ===== Экраны: страница листается блоками, блок переключается целиком ===== */
.hero-jump { display: none; }

/* разделы на главной: одна панель в четыре колонки, помещается на экран */
@media (min-width: 961px) {

  /* формы заявки на компьютере в две колонки, чтобы вечерний экран помещался */
  .evening-grid { grid-template-columns: minmax(0, 1fr) 540px; }
  .lead-glass .lead-form, .lead-light .lead-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .lead-glass .lead-form > *, .lead-light .lead-form > * { grid-column: 1 / -1; }
  .lead-glass .lead-form > .field, .lead-light .lead-form > .field { grid-column: auto; }
  .lead-glass .field-row, .lead-light .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* низкий экран ноутбука (1366×657, 1260×550 при масштабе 150%) */
@media (min-width: 961px) and (max-height: 820px) {
  .band-head { margin-bottom: 24px; }
  .band-head .band-lead { margin-top: 8px; font-size: 16px; }
  .h2 { font-size: clamp(28px, 3vw, 40px); }
}
@media (min-width: 961px) and (max-height: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 480px; }
  .hero-lead { font-size: 17px; margin-top: 12px; }
}
@media (min-width: 961px) and (max-height: 600px) {
  .hero-facts { display: none; }
}

/* сами экраны */
html[data-snap] { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
html[data-snap] .screen { scroll-snap-align: start; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
html[data-snap] .screen > .hero { flex: 1; }
html[data-snap] .hero-inner, html[data-snap] .hero-short { min-height: 100svh; }
html[data-snap] .screen > .band { padding-top: clamp(92px, 13svh, 120px); padding-bottom: clamp(24px, 5svh, 56px); }
html[data-snap] .screen > .band + .band { padding-top: 0; }
html[data-snap] .screen > .band:only-child { flex: 1; display: flex; flex-direction: column; justify-content: center; }
html[data-snap] .screen > .band-promises { margin-top: 12px; margin-bottom: 12px; }
html[data-snap] .screen > .evening { flex: 1; display: flex; align-items: center; margin-top: 0; border-radius: 0; }
html[data-snap] .screen > .evening > .wrap { width: 100%; }
html[data-snap] .foot { scroll-snap-align: end; }

/* смена экранов: уходящий отъезжает и гаснет, приходящий поднимается */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html[data-snap] .screen { view-timeline: --screen block; }
    html[data-snap] .screen > * { animation: screen-in linear both, screen-out linear both; animation-timeline: --screen, --screen; animation-range: entry 15% entry 100%, exit 0% exit 85%; transform-origin: 50% 50%; }
    html[data-snap] [data-reveal], html[data-snap] .step { animation: none; }
  }
}
@keyframes screen-in { from { opacity: 0; transform: translateY(72px) scale(.95); } }
@keyframes screen-out { to { opacity: .1; transform: translateY(-48px) scale(.95); filter: blur(6px); } }

/* телефон: экраны-листы под строкой меню */
@media (max-width: 960px) {
  .hero-jump { display: inline-flex; width: 100%; margin-top: 14px; }
  html[data-snap] .screen { padding: 74px 0 10px; justify-content: flex-start; }
  html[data-snap] .screen:has(> .hero), html[data-snap] .screen:has(> .evening) { padding: 0; }
  html[data-snap] .screen > .band { margin: 0 8px; padding-top: 36px; padding-bottom: 36px; }
  html[data-snap] .screen > .band:only-child { justify-content: flex-start; }
  html[data-snap] .screen > .band + .band { margin-top: 12px; padding-top: 36px; }
  html[data-snap] .hero-home .hero-grid { padding-top: 0; }
  html[data-snap] .hero-home .hero-copy { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: max(250px, 38svh); padding-bottom: 24px; scroll-snap-align: start; }
  html[data-snap] .hero-home .finder { scroll-snap-align: start; scroll-margin-top: 74px; margin-bottom: 24px; }
}


/* ===== Подгонка экранов по высоте (замеры 9 размеров, 08.11) ===== */
@media (min-width: 961px) {
  .review-bar { margin: 14px 0 0; padding: 10px 14px; font-size: 14px; }
  html[data-snap] .screen > .evening { padding-top: clamp(84px, 13svh, 120px); padding-bottom: clamp(20px, 4svh, 48px); }
}
@media (min-width: 961px) and (max-height: 760px) {
  .evening .display-md { font-size: clamp(30px, 6.4svh, 52px); }
  .evening-lead { margin: 12px 0 14px; font-size: 16px; }
  .lead-glass .lead-sub, .lead-glass .fine { display: none; }
  .lead-glass .lead-h { margin-bottom: 12px; font-size: 22px; }
  .lead-glass .field { margin-bottom: 10px; }
  .lead-glass .field input, .lead-glass .field select { height: clamp(42px, 6svh, 50px); }
  .lead-glass .consent { margin-bottom: 10px; }
  .route li { padding: 6px 0; font-size: 16px; }
  .ticks { gap: 8px; margin-top: 14px; }
  .ticks li { font-size: 16px; }
  .srows-compact .srow-link { padding: 12px 0; }
  .faq summary { padding: 16px 0; }
  .hero-inner-grid { padding-bottom: clamp(20px, 4svh, 56px); gap: 12px; }
  .hero-inner .plate { padding: 20px clamp(22px, 2.6vw, 34px); }
}
@media (min-width: 961px) and (max-height: 640px) {
  .band-head .band-lead { display: none; }
  .hero-inner .hero-facts { display: none; }
  .evening-contacts { display: none; }
}

/* телефон: каждый экран помещается */
@media (max-width: 960px) {
  .promises { grid-template-areas: "head" "list" "cta"; row-gap: 20px; }
  .plist li { gap: 14px; padding: 14px 0; font-size: 17px; }
  .plist .ic { width: 22px; height: 22px; }
  .promises-cta { width: 100%; justify-content: center; }
  .guide-photo { min-height: 150px; }
  .guide-short { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .evening-lead, .evening-contacts { display: none; }
  html[data-snap] .screen > .band + .band { scroll-snap-align: start; scroll-margin-top: 74px; }
}


/* ===== Подгонка, второй проход ===== */
@media (min-width: 961px) and (max-height: 640px) {
  .plist li { padding: 13px 0; font-size: 18px; }
}
@media (max-width: 960px) {
  .hero-inner .hero-facts { display: none; }
  .hero-inner-grid { padding-top: max(180px, 26svh); }
  .lead-glass .lead-sub, .lead-glass .fine { display: none; }
  .lead-glass .lead-h { margin-bottom: 12px; }
  .lead-glass .field { margin-bottom: 10px; }
  .lead-glass { padding: 20px; }
}
@media (max-width: 960px) and (max-height: 780px) {
  html[data-snap] .hero-home .hero-copy { padding-top: max(190px, 28svh); }
}

/* ===== Подгонка, третий проход ===== */
@media (min-width: 961px) and (max-height: 600px) {
  html[data-snap] .screen > .band { padding-top: 86px; padding-bottom: 16px; }
  .band-head { margin-bottom: 16px; }
}
@media (max-width: 960px) {
  .route li { padding: 7px 0; }
  .band .doclist li { padding: 10px 0; }
  .srows-compact .srow-link { padding: 12px 0; }
}

/* экраны: содержимое полос всегда во всю ширину сетки, чтобы края совпадали */
html[data-snap] .screen > .band > .wrap { width: 100%; }
@media (max-width: 960px) { .hero-home .hero-facts { display: none; } }


/* ===== Правки ревью 09.11: выравнивание, подписи, подвал, телефон ===== */
html[data-snap] .screen > .evening { padding-bottom: max(44px, 4svh); }
/* заголовок связанных услуг не ложится на линейку */
.band-related .h2 { margin-bottom: 16px; }
/* тёмная полоса обещаний на всю ширину: текст на линии сетки */
html[data-snap] .screen > .band-promises { margin: 0; border-radius: 0; padding-left: 0; padding-right: 0; }
/* подвал на компьютере — отдельный последний экран */
@media (min-width: 961px) {
  html[data-snap] .foot { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 96px; scroll-snap-align: start; }
}
/* одна строка контактов в вечернем блоке на низком экране */
@media (min-width: 961px) and (max-height: 760px) {
  .evening-contacts { display: flex !important; flex-wrap: wrap; gap: 6px 20px; }
  .evening-contacts li:nth-child(n+3) { display: none; }
}
/* строки услуг на планшете и телефоне: метки под описанием, стрелка справа по центру */
@media (max-width: 960px) {
  .srow-link { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 14px; }
  .srow-main { grid-column: 1; grid-row: 1; }
  .srow-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; }
  .srow-meta:empty { display: none; }
  .srow-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; }
}
/* касание: мягкая привязка, чтобы клавиатура и длинные экраны не уводили страницу */
@media (max-width: 960px), (pointer: coarse) {
  html[data-snap] { scroll-snap-type: y proximity; }
}

/* подвал на линии сетки; услуги раздела на узком телефоне */
html[data-snap] .foot > .wrap { width: 100%; }

/* расхождения, найденные при описании системы */
.guide-short-m { display: none; color: var(--ink-2); font-size: 15px; }
.lead-glass .fine, .lead-light .fine { display: block !important; margin-top: 6px; font-size: 12px; }
@media (max-width: 960px) {
  .guide-short { display: none !important; }
  .guide-short-m { display: block; }
}


/* ===== Раунд 4 (09.11): меню всех услуг, карточки продуктов, шаги работы, мини-квизы ===== */
:root { --step-5: #FFC4B8; }

/* шапка: разделы открывают меню всех услуг */
.top-bar { gap: clamp(12px, 1.6vw, 28px); }
.top-nav { gap: 2px; }
.top-nav .top-item { display: inline-flex; align-items: center; gap: 3px; padding: 9px 8px 9px 11px; cursor: pointer; }
.top-nav .top-item:last-child { padding-right: 11px; }
.top-item .chev { width: 15px; height: 15px; opacity: .6; transition: transform .3s var(--ease), opacity .2s; }
.top-nav .top-item.is-open { background: rgba(36, 21, 15, .07); }
.top-item.is-open .chev { transform: rotate(180deg); opacity: 1; }
.top-nav .top-item.is-current { background: rgba(255, 138, 61, .18); }
.top-burger { display: none; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; color: var(--ink); transition: background-color .2s; }
.top-burger:hover, .top-burger[aria-expanded="true"] { background: rgba(36, 21, 15, .08); }
.top-burger .ic { width: 22px; height: 22px; }
.top-burger .i-close, .top-burger[aria-expanded="true"] .i-open { display: none; }
.top-burger[aria-expanded="true"] .i-close { display: block; }

.mega {
  pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 8px auto 0; border-radius: 24px; color: var(--ink);
  background: rgba(255, 250, 246, .97); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow-panel);
  max-height: calc(100svh - 100px); overflow: auto; overscroll-behavior: contain;
}
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega-col { padding: 16px 18px 12px; transition: background-color .25s; }
.mega-col + .mega-col { border-left: 1px solid var(--line); }
.mega-col.is-focus { background: rgba(255, 225, 199, .42); }
.mega-sec { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; text-decoration: none; }
.mega-sec > span:nth-child(2) { flex: 1; }
.mega-sec:hover { color: var(--sun-deep); }
.mega-sec > .ic { width: 16px; height: 16px; color: var(--sun-deep); opacity: .35; transition: opacity .2s, transform .25s var(--ease); }
.mega-sec:hover > .ic, .mega-sec:focus-visible > .ic { opacity: 1; transform: translateX(3px); }
.mega-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--sun-tint); color: var(--sun-deep); }
.mega-ic .ic { width: 18px; height: 18px; }
.mega-list { margin: 0; padding: 8px 0 0; list-style: none; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.mega-list a { display: grid; gap: 1px; margin: 0 -10px; padding: 7px 10px; border-radius: 12px; text-decoration: none; transition: background-color .2s; }
.mega-list a:hover { background: #fff; }
.mega-list a:hover .mega-name { color: var(--sun-deep); }
.mega-list a[aria-current] { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.mega-name { font-size: 15px; font-weight: 600; line-height: 1.3; transition: color .2s; }
.mega-card { font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.mtag { display: inline-block; margin-left: 2px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; vertical-align: 1px; white-space: nowrap; background: var(--sun-tint); color: #6B2E0E; }
.mtag-review { background: #FFF1EA; color: #7A2A12; box-shadow: inset 0 0 0 1px #D9967A; }
.mega-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
.mega-quiz { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; min-height: 44px; padding: 0 16px; border-radius: 14px; background: var(--ink); color: var(--on-dark); font-size: 15px; text-decoration: none; transition: background-color .2s; }
.mega-quiz b { font-weight: 600; color: #fff; }
.mega-quiz .ic { width: 18px; height: 18px; color: var(--glow); transition: transform .25s var(--ease); }
.mega-quiz:hover { background: #000; }
.mega-quiz:hover .ic:last-child { transform: translateX(3px); }
.mega-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; font-weight: 500; text-decoration: none; }
.mega-link:hover { background: rgba(36, 21, 15, .06); }
html.mega-on body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(36, 21, 15, .32); }
@media (prefers-reduced-motion: no-preference) {
  .mega:not([hidden]) { animation: mega-in .38s var(--ease) both; }
  .mega:not([hidden]) .mega-col { animation: settle .5s var(--ease) both; animation-delay: calc(.04s + var(--i, 0) * 40ms); }
  html.mega-on body::after { animation: fade-in .3s ease both; }
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
@media (max-width: 1180px) {
  .top-nav { display: none; }
  .top-burger { display: grid; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-col:nth-child(3) { border-left: 0; }
  .mega-col:nth-child(n+3) { border-top: 1px solid var(--line); }
  html.mega-on { overflow: hidden; }
}
@media (max-width: 600px) {
  .mega { margin-top: 6px; border-radius: 20px; max-height: calc(100svh - 76px); }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-col + .mega-col { border-left: 0; border-top: 1px solid var(--line); }
  .mega-col { padding: 14px 16px 10px; }
  .mega-foot { flex-direction: column; align-items: stretch; padding: 10px; }
  .mega-quiz { margin: 0; padding: 10px 14px; }
}

/* первый экран раздела: заголовок и карточки продуктов */
.hero-sec { min-height: 100svh; }
.hero-sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 9fr); gap: clamp(20px, 3vw, 44px); align-items: end; min-height: inherit; padding-top: clamp(96px, 13svh, 128px); padding-bottom: clamp(20px, 4svh, 48px); }
.hero-sec-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-sec .plate { width: 100%; }
.hero-sec .display-md { font-size: clamp(32px, min(3.4vw, 7.4svh), 52px); }
.hero-sec .hero-lead { font-size: clamp(16px, 1.25vw, 19px); }
.hero-sec .hero-actions { margin-top: 20px; }
.pcards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: end; }
.pcards[data-count="1"], .pcards[data-count="2"], .pcards[data-count="3"] { grid-template-columns: minmax(0, 1fr); }
.pcard {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: clamp(12px, 2svh, 18px) 18px; border-radius: 22px; color: var(--ink);
  background: rgba(255, 250, 246, .93); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .2s;
}
.pcard:hover { transform: translateY(-2px); background: #fff; box-shadow: 0 30px 56px -28px rgba(0, 0, 0, .75); }
.pcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.pcard-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--sun-tint); color: var(--sun-deep); transition: background-color .25s, color .25s; }
.pcard-ic .ic { width: 20px; height: 20px; }
.pcard:hover .pcard-ic { background: var(--sun); color: var(--ink); }
.pcard-name { flex: 1; margin: 0; font-size: 19px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.pcard-link { text-decoration: none; }
.pcard-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.pcard-link:focus-visible { outline: none; }
.pcard:has(.pcard-link:focus-visible) { outline: 3px solid var(--glow); outline-offset: 3px; }
.pcard-arrow { width: 16px; height: 16px; margin-left: 6px; vertical-align: -2px; color: var(--sun-deep); opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .3s var(--ease); }
.pcard:hover .pcard-name, .pcard:has(.pcard-link:focus-visible) .pcard-name { color: var(--sun-deep); }
.pcard:hover .pcard-arrow, .pcard-link:focus-visible .pcard-arrow { opacity: 1; transform: none; }
.pcard-text { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; }
.pcard-tags .tag { padding: 4px 9px; font-size: 12px; }
.pcard-tags .tag .ic { width: 13px; height: 13px; }
/* на карточке три метки (цена, срок, «не для всех гражданств») должны встать в одну строку: иконки у цены и срока убраны, отступ меньше */
.pcard-tags .tag, .vres-tags .tag { padding-left: 7px; padding-right: 7px; }
.pcard-tags .tag-price .ic, .pcard-tags .tag-sun .ic, .vres-tags .tag-price .ic, .vres-tags .tag-sun .ic { display: none; }
.pcard-apply { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--sun-deep); text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(180, 71, 26, .45); transition: background-color .2s, color .2s, box-shadow .2s; }
.pcard-apply:hover { background: var(--sun); color: var(--ink); box-shadow: none; }
.pcard-apply:focus-visible { outline-color: var(--sun-deep); }
@media (prefers-reduced-motion: no-preference) {
  .pcard { animation: settle .9s var(--ease) both; animation-delay: calc(.35s + var(--i, 0) * 60ms); }
}

/* мини-квиз: подбор решения и подбор визы */
.quiz { position: relative; color: var(--ink); }
.quiz-top { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.quiz-h { flex: 1; margin: 0; font-size: 22px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.quiz-count { margin: 0; font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.quiz-back { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-left: -4px; padding: 0; border: 0; border-radius: 12px; background: rgba(36, 21, 15, .07); color: var(--ink); cursor: pointer; transition: background-color .2s; }
.quiz-back:hover { background: rgba(36, 21, 15, .14); }
.quiz-back .ic { width: 18px; height: 18px; }
.quiz-bar { position: relative; height: 4px; margin: 12px 0 18px; border-radius: 4px; background: #F0E2D6; overflow: hidden; }
.quiz-bar span { position: absolute; inset: 0; border-radius: inherit; background: var(--sun); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .5s var(--ease); }
.quiz-q { margin: 0 0 12px; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.quiz-q:focus { outline: none; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opt {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-field);
  background: #fff; color: var(--ink); font: 500 15px/1.2 var(--font); text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.quiz-opt:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: 0 12px 22px -18px rgba(46, 26, 36, .7); }
.quiz-opt:active { transform: scale(.98); }
.quiz-opt:focus-visible { outline: 3px solid var(--sun-deep); outline-offset: 2px; }
.quiz-opt .ic { color: var(--sun-deep); transition: color .2s, transform .35s var(--ease); }
.quiz-opt > span { display: grid; gap: 2px; }
.quiz-opt b { font-weight: 600; }
.quiz-opt small { font-size: 13px; font-weight: 400; line-height: 1.3; color: var(--ink-2); }
.quiz-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.quiz-opt[aria-pressed="true"] .ic { color: var(--glow); transform: scale(1.1); }
.quiz-opt[aria-pressed="true"] small { color: var(--on-dark-2); }
.quiz-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-big { min-height: 72px; padding: 14px 16px; gap: 14px; }
.quiz-big .ic { width: 24px; height: 24px; }
.quiz-big b { font-size: 17px; }
.quiz-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.quiz-chip { justify-content: center; min-height: 42px; padding: 8px 6px; font-size: 14px; text-align: center; }
.quiz-sum { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--dawn); font-size: 14px; color: var(--ink-2); }
.quiz-sum span { flex: 1; }
.quiz-again { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 10px; background: #fff; font: 500 14px var(--font); color: var(--ink); cursor: pointer; box-shadow: 0 4px 10px -8px rgba(46, 26, 36, .6); }
.quiz-again:hover { color: var(--sun-deep); }
.quiz-again .ic { width: 15px; height: 15px; }
.fit-lead { margin: -6px 0 12px; font-size: 15px; color: var(--ink-2); }
.quiz-nojs { margin: 0; }
.js .quiz-nojs { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .quiz [data-anim="fwd"] { animation: q-fwd .45s var(--ease) both; }
  .quiz [data-anim="back"] { animation: q-back .45s var(--ease) both; }
  .quiz [data-anim] .quiz-opt { animation: settle .5s var(--ease) both; animation-delay: calc(.05s + var(--i, 0) * 30ms); }
}
@keyframes q-fwd { from { opacity: 0; transform: translateX(28px); } }
@keyframes q-back { from { opacity: 0; transform: translateX(-28px); } }

/* ответ квиза визы */
.vres-name { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.vres-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sun); color: var(--ink); }
.vres-text { margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.vres-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.vres-route { margin: 0 0 14px; padding: 10px 14px 12px; border-radius: 16px; background: var(--dawn); }
.vres-h { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.vres-route ol { counter-reset: r; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.35; }
.vres-route li { counter-increment: r; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.vres-route li::before { content: counter(r); flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--sun-tint); color: #8E3511; font-size: 11px; font-weight: 600; }
.vres-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.quiz-result .note { margin-bottom: 12px; }

/* экран квиза визы */
.qz { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.qz-points { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.qz-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.qz-points .ic { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--sun-tint); color: var(--sun-deep); }
.qz-points b { font-weight: 600; color: var(--ink); }
.qz-after { max-width: 46ch; margin: 20px 0 0; font-size: 15px; color: var(--ink-2); }
.quiz-card { padding: clamp(18px, 2.6svh, 28px); border-radius: var(--r-panel); background: #fff; box-shadow: var(--shadow-soft); border: 1px solid rgba(234, 219, 207, .7); }
.lead-quiz .lead-h, .lead-finder .lead-h { font-size: 22px; }
.lead-quiz .lead-sub { margin-bottom: 14px; }

/* «Как мы работаем»: шаги слева, подробности шага справа */
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }

/* низкий экран ноутбука */
@media (min-width: 961px) and (max-height: 820px) {
  .qz-points { margin-top: 16px; gap: 8px; }
  .qz-after { margin-top: 14px; }
}
@media (min-width: 961px) and (max-height: 760px) {
  .quiz-h { font-size: 20px; }
  .quiz-bar { margin: 10px 0 12px; }
  .quiz-q { margin-bottom: 10px; font-size: 17px; }
  .quiz-opt { min-height: 46px; padding: 8px 10px; font-size: 14px; }
  .quiz-big { min-height: 60px; }
  .quiz-chip { min-height: 38px; }
  .quiz-tiles .ic { width: 18px; height: 18px; }
  .pcard-text { font-size: 14px; }
  .pcard-ic { width: 36px; height: 36px; }
  .pcard-name { font-size: 18px; }
  .vres-name { font-size: 21px; }
  .vres-ic { width: 38px; height: 38px; }
  .vres-text { font-size: 14px; }
  .vres-route { padding: 10px 12px; margin-bottom: 10px; }
  .qz-points li { font-size: 15px; }
  .qz-points .ic { width: 32px; height: 32px; padding: 7px; }
}
@media (min-width: 961px) and (max-height: 640px) {
  .qz-after { display: none; }
}

/* телефон и планшет */
@media (max-width: 960px) {
  .hero-sec-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-top: max(180px, 26svh); padding-bottom: 28px; }
  .hero-sec .hero-actions .btn { flex: 1 1 auto; }
  .pcards { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pcard { padding: 12px 14px; border-radius: 18px; background: rgba(255, 250, 246, .96); }
  .pcard-ic { width: 36px; height: 36px; border-radius: 12px; }
  .pcard-name { font-size: 17px; }
  .pcard-text { font-size: 14px; }

  .qz { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .qz-points, .qz-after { display: none; }
  .band .quiz-card { padding: 16px 0 0; background: none; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; }

  .band-process { background: #fff; }
  .proc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .quiz-h { font-size: 19px; }
  .lead-finder .lead-h, .lead-quiz .lead-h { font-size: 18px; }
  .quiz-count { font-size: 13px; }
  .band-process .band-lead { font-size: 16px; }
}
@media (max-width: 400px) {
  .quiz-chip { font-size: 13px; padding: 8px 4px; }
  /* плитки квиза на узком телефоне: длинное слово («Юридический») не вылезает за плитку (владелец 19.11) */
  .quiz-tiles .quiz-opt { gap: 8px; padding: 10px; font-size: 13px; }
  .quiz-tiles .ic { width: 18px; height: 18px; }
}
@media (max-width: 480px) and (min-width: 401px) {
  .quiz-tiles .quiz-opt { font-size: 14px; }
}
@media (max-width: 340px) {
  .quiz-tiles { grid-template-columns: 1fr; }
}

/* подгонка раунда 4 по замерам 1260 × 550 */
.quiz .fit-list li.is-off { display: none; }
.hero-sec .hero-actions { gap: 8px; }
.hero-sec .hero-actions .btn { padding: 0 18px; }
@media (min-width: 961px) and (max-height: 760px) {
  .quiz-sum { display: none; }
  .fit-lead { display: none; }
  .quiz .fit-list a { padding: 10px 12px; }
  .quiz .note { padding: 10px 12px; font-size: 13px; }
  .quiz-result.has-note .vres-text { display: none; }
  .lead-finder .lead-sub, .lead-quiz .lead-sub { display: none; }
  .lead-finder .lead-h, .lead-quiz .lead-h { margin-bottom: 10px; font-size: 20px; }
  .quiz .lead-box .field { margin-bottom: 10px; }
  .quiz .picked { margin-bottom: 10px; padding: 8px 10px; }
  .hero-sec .hero-actions .btn { min-height: 46px; }
  .mega-list a { padding: 5px 10px; }
  .mega-sec { padding-bottom: 10px; }
  .mega-col { padding-top: 12px; }
}
@media (min-width: 961px) and (max-height: 640px) {
  .mega-card { display: none; }
  .mega-list a { padding: 6px 10px; }
}
@media (min-width: 961px) and (max-height: 640px) {
  .quiz .lead-box .field { margin-bottom: 8px; }
  .quiz .lead-box .consent { margin-bottom: 10px; }
  .quiz-contact .picked { margin-bottom: 8px; padding: 6px 10px; }
}

/* правки финального ревью раунда 4 */
.nowrap { white-space: nowrap; }
.quiz-again-top { display: none; }
@media (min-width: 961px) and (max-height: 760px) {
  .quiz-again-top:not([hidden]) { display: inline-flex; background: rgba(36, 21, 15, .07); box-shadow: none; }
}
@media (max-width: 960px) {
  .pcard-apply { min-height: 44px; padding: 0 14px; }
}

/* стрелка карточки не занимает места в строке названия */
.pcard-name .nowrap { position: relative; }
.pcard-name .pcard-arrow { position: absolute; left: 100%; top: 50%; margin: -8px 0 0 6px; }
.pcard:hover .pcard-name .pcard-arrow, .pcard-link:focus-visible .pcard-arrow { transform: none; }

/* касание: стрелка «Назад» и чипы гражданства не меньше 44 px */
@media (max-width: 960px), (pointer: coarse) {
  .quiz-back { width: 44px; height: 44px; }
  .quiz-chip { min-height: 44px; }
}

/* первый экран раздела: заголовок полосой сверху, услуги карточками под ним.
   Внизу слева тёмная подложка сливалась с затемнением фото и терялась рядом со светлыми карточками (замечание владельца 09.11). */
@media (min-width: 961px) {
  .hero-sec-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; align-items: start; gap: 16px; }
  .hero-sec-copy { grid-row: 1; gap: 12px; }
  .hero-sec .plate-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding: clamp(18px, 2.6svh, 28px) clamp(22px, 2.6vw, 36px); background: rgba(36, 21, 15, .6); }
  .plate-row .display-md { flex: none; white-space: nowrap; }
  .plate-row .hero-lead { flex: 1 1 320px; max-width: 58ch; margin: 0; }
  .plate-row .hero-actions { flex: none; margin: 0 0 0 auto; }
  .hero-sec .pcards { grid-row: 3; align-self: end; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-sec .pcards[data-count="1"] { grid-template-columns: minmax(0, 560px); }
  .hero-sec .pcards[data-count="2"], .hero-sec .pcards[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 21.11: семь-восемь услуг (визы со спонсорской) — четыре колонки, иначе третий ряд уходит за окно 1260 × 550.
     «Заявка» на карточке не помещается рядом с названием, и семь одинаковых кнопок на экране лишние:
     карточка ведёт на услугу, форма есть внизу раздела (как на телефоне). */
  .hero-sec .pcards[data-count="7"], .hero-sec .pcards[data-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-sec .pcards[data-count="7"] .pcard, .hero-sec .pcards[data-count="8"] .pcard { padding-inline: 16px; }
  .hero-sec .pcards[data-count="7"] .pcard-apply, .hero-sec .pcards[data-count="8"] .pcard-apply { display: none; }
  .hero-sec .pcards[data-count="7"] .pcard-tags, .hero-sec .pcards[data-count="8"] .pcard-tags { margin-top: auto; }
}
@media (min-width: 961px) and (max-height: 640px) {
  .hero-sec .pcards[data-count="7"] .pcard-text, .hero-sec .pcards[data-count="8"] .pcard-text { display: none; }
}

/* одна кнопка заявки на экран: кнопка в шапке прячется, пока видна своя кнопка заявки или форма (правило владельца 09.11) */
.top-cta { transition: opacity .25s ease, visibility .25s, background-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease); }
html.cta-here .top-cta { opacity: 0; visibility: hidden; }

/* раздел «Клиентам»: ссылки на инструкции в этапах, источники без ссылки */
.stage-links { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.stage-links .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--sun-deep); }
.stage-links a { color: var(--sun-deep); font-weight: 600; }
.faq details p a, .art-body p a { color: var(--sun-deep); font-weight: 500; }
.more-inline { display: inline-flex; min-height: 0; gap: 4px; font-size: 15px; white-space: nowrap; }
.more-inline .ic { width: 15px; height: 15px; }
.src-name { font-weight: 500; }

@media (min-width: 961px) and (max-height: 600px) { .faq summary { padding: 13px 0; } }
@media (max-width: 960px) { .faq summary { padding: 16px 0; } }

/* памятка после визы: короткие значения в плитках без переносов по слогам */
.facts-short dd { hyphens: manual; }

/* отпечатки: центры из CRM — название, адрес и ссылка на карту строкой */
.centers { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.centers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.c-text { display: grid; gap: 2px; }
.c-name { font-weight: 600; }
.c-addr { font-size: 15px; color: var(--ink-2); }
.c-map { min-height: 44px; font-size: 15px; white-space: nowrap; }

/* пошаговая инструкция клиенту: медкомиссия, отпечатки (blocks/steps.j2, static/steps.js).
   Ссылку присылает менеджер перед поездкой: телефон прежде всего, без меню и формы заявки. */
.page-steps { background: var(--dusk-deep); }
.sg { position: relative; isolation: isolate; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; color: #fff; }
.sg-media { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--dusk); }
.sg-img { width: 100%; height: 100%; object-fit: cover; opacity: .62; transform: scale(1.04); }
.sg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34, 19, 27, .28) 0%, rgba(34, 19, 27, .74) 42%, var(--dusk-deep) 100%); }
.sg-head { position: relative; padding: max(14px, env(safe-area-inset-top)) var(--gutter) 16px; }
.sg-brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-size: 16px; font-weight: 700; letter-spacing: -.015em; text-decoration: none; }
.sg-brand:hover { color: #fff; }
.sg-title { margin: 4px 0 0; font-size: clamp(34px, 9.4vw, 54px); font-weight: 600; line-height: 1.02; letter-spacing: -.03em; color: var(--glow); text-wrap: balance; }
.sg-lead { margin: 8px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.45; color: var(--on-dark); text-wrap: pretty; }

.sg-card { flex: 1; display: flex; flex-direction: column; padding: 16px var(--gutter) 0; border-radius: var(--r-panel) var(--r-panel) 0 0; background: #fff; color: var(--ink); box-shadow: 0 -20px 44px -28px rgba(0, 0, 0, .7); }
.sg-progress { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.sg-progress a { display: grid; align-content: start; gap: 8px; min-height: 44px; padding: 4px 0; color: var(--ink-3); font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; transition: color .2s; }
.sg-progress a:hover { color: var(--ink); }
.sg-progress a.is-done { color: var(--ink-2); }
.sg-progress a[aria-current] { color: var(--ink); font-weight: 600; }
.sg-bar { position: relative; display: block; height: 4px; border-radius: 4px; background: #F0E2D6; overflow: hidden; }
.sg-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sg-progress a.is-done .sg-bar::after, .sg-progress a[aria-current] .sg-bar::after { transform: scaleX(1); }
.sg-seg { min-width: 0; margin: 12px 0 0; border: 0; }

.sg-stage { padding: 0 0 20px; }
.sg-h { margin: 18px 0 0; font-size: clamp(25px, 6.6vw, 30px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.sg-h:focus { outline: none; }
.sg-intro { margin: 10px 0 0; color: var(--ink-2); }
.sg-vlabel { margin: 18px 0 0; font-size: 14px; font-weight: 600; color: var(--sun-deep); }
.sg-ticks { margin-top: 18px; }
.sg-qa { margin: 12px 0 0; }
.sg-qa > div { padding: 12px 0; }
.sg-qa > div + div { border-top: 1px solid var(--line); }
.sg-qa dt { font-size: 17px; font-weight: 600; line-height: 1.3; }
.sg-qa dd { margin: 4px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.sg-note { margin: 16px 0 0; }
.sg-map { margin: 18px 0 0; }
.sg-map .btn:hover .ic { transform: none; }
.sg-after { margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.sg-end { display: flex; gap: 10px; margin: 22px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--dawn); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.sg-end .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--sun-deep); }
.sg-step .centers { margin-top: 12px; }

.sg-nav { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; margin: auto calc(-1 * var(--gutter)) 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sg-prev { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; min-height: 52px; padding: 0 18px; border-radius: 16px; background: rgba(36, 21, 15, .07); color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s; }
.sg-prev:hover { background: rgba(36, 21, 15, .14); }
.sg-prev .ic { width: 18px; height: 18px; }
.sg-next { flex: 1; justify-content: space-between; min-width: 0; padding: 0 20px; }
.sg-next > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* последний шаг: «Дальше» нет, «Назад» с подписью в конце шага, без липкой полосы */
.sg-nav.is-last { position: static; border-top: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sg-nav.is-last .sg-prev { padding: 0 18px; }
.sg-nav.is-last .sg-prev span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* без скрипта шаги идут подряд, со скриптом — по одному */
.no-js .sg-nav, .no-js .sg-seg { display: none; }
.no-js .sg-step + .sg-step { margin-top: 30px; border-top: 1px solid var(--line); }
.js .sg-step:not(.is-on) { display: none; }
.js .sg-vlabel { display: none; }
.js .sg[data-v="new"] [data-variant="renewal"], .js .sg[data-v="renewal"] [data-variant="new"] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .sg-img { animation: dawn 1.8s var(--ease) both; }
  .sg-card { animation: lift .8s .1s var(--ease) both; }
  .sg-step[data-anim="fwd"] { animation: q-fwd .45s var(--ease) both; }
  .sg-step[data-anim="back"] { animation: q-back .45s var(--ease) both; }
  .sg-step[data-anim] :is(.ticks li, .sg-qa > div, .centers li), [data-variant][data-anim] :is(.ticks li, .sg-qa > div) { animation: settle .5s var(--ease) both; animation-delay: calc(.06s + var(--i, 0) * 45ms); }
}

@media (max-width: 479px) {
  .sg-prev { padding: 0; }
  .sg-prev span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 720px) {
  .sg { justify-content: center; padding: 48px 0 56px; }
  .sg-head, .sg-card { width: min(620px, 100% - 48px); margin: 0 auto; }
  .sg-head { padding: 0 0 26px; }
  .sg-title { margin-top: 12px; }
  .sg-lead { font-size: 17px; }
  .sg-h { margin-top: 22px; }
  .sg-qa > div { padding: 14px 0; }
  .sg-card { flex: none; padding: 26px 34px 0; border-radius: var(--r-panel); box-shadow: var(--shadow-panel); }
  .sg-stage { min-height: min(420px, 52vh); }
  .sg-nav { margin: auto -34px 0; padding: 16px 34px 20px; border-radius: 0 0 var(--r-panel) var(--r-panel); }
}
/* широкий экран: заголовок слева, шаги справа; вопросы и центры в две колонки, чтобы шаг помещался на ноутбуке 1260×550 */
@media (min-width: 1024px) {
  .sg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: clamp(40px, 5vw, 88px); align-items: center; align-content: center;
        width: min(100%, 1280px); margin: 0 auto; padding: 72px var(--gutter) 32px; }
  .sg-head, .sg-card { width: auto; margin: 0; }
  .sg-head { position: static; padding: 0; }
  .sg-brand { position: absolute; top: 14px; left: var(--gutter); }
  .sg-title { margin-top: 0; font-size: clamp(44px, 4.4vw, 64px); }
  .sg-lead { margin-top: 14px; font-size: 18px; }
  .sg-card { padding: 22px 34px 0; }
  .sg-stage { min-height: 0; padding-bottom: 16px; }
  .sg-qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .sg-qa > div + div { border-top: 0; }
  .sg-qa > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sg-step .centers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 0; }
  .sg-step .centers li:nth-child(-n + 2) { border-top: 1px solid var(--line); }
  .sg-step .centers li { padding: 10px 0; }
  .sg-nav { padding: 14px 34px 18px; }
}
@media (min-width: 1024px) and (max-height: 640px) {
  .sg { padding-top: 58px; padding-bottom: 10px; }
  .sg-h { margin-top: 16px; }
  .sg-qa > div { padding: 10px 0; }
  .sg-end { margin-top: 16px; padding: 12px 14px; }
  .sg-note, .sg-map { margin-top: 12px; }
}

/* заявка: ссылка на политику в согласии, ошибка отправки и запасной путь в WhatsApp */
.consent a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.consent a:hover { color: var(--sun-deep); }
.btn[disabled] { cursor: progress; }
.send-fail { margin: 12px 0 0; }
.send-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FBE6E2; color: var(--danger); font-size: 14px; font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.btn-wa { margin-top: 10px; background: var(--ink); color: #fff; box-shadow: 0 14px 28px -18px rgba(36, 21, 15, .9); }
.btn-wa:hover { background: #000; }
.btn-wa .ic { color: var(--glow); }
.btn-wa:hover .ic { transform: none; }
.evening-contacts a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 199, 90, .7); text-underline-offset: 3px; }
.evening-contacts a:hover { color: #fff; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-end a { color: var(--on-dark-2); }
a[href^="https://wa.me/"] { white-space: nowrap; }

/* политика конфиденциальности (blocks/privacy.j2): светлая страница без фото, строка 38em — около 65–70 знаков кириллицы (ch у Geologica шире буквы) */
.legal { padding: 128px 0 clamp(64px, 8vw, 120px); }
.legal-wrap { max-width: calc(860px + 2 * var(--gutter)); }
.legal .crumbs ol { background: rgba(36, 21, 15, .06); color: var(--ink-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.legal .crumbs [aria-current] { color: var(--ink); }
.legal .display { margin-top: 24px; }
.legal-date { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.legal section { margin-top: clamp(36px, 4vw, 52px); }
.legal .h2 { margin: 0 0 14px; }
.legal section p, .legal-list { max-width: 38em; margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.legal-list { padding-left: 22px; }
.legal-list li + li { margin-top: 8px; }
.legal-list li::marker { color: var(--sun-deep); }
.legal a { color: var(--sun-deep); font-weight: 500; }
.legal-en { padding-top: 28px; border-top: 1px solid var(--line); }
@media (max-width: 960px) {
  .legal { padding-top: 96px; }
}

/* ===== 19.11, замечания владельца: главная на телефоне, «Как мы работаем» списком ===== */
/* подбор решения: на компьютере обёртки нет, на телефоне это отдельный экран */
.finder-screen { display: contents; }
/* «Как мы работаем»: все шаги сразу, номер, название и одна строка; белая панель, на телефоне без карточки */
.proc-list { margin: 0; }
.proc-list .step { grid-template-columns: 40px 1fr; column-gap: 16px; padding: 16px clamp(20px, 2.2vw, 28px); }
.proc-list .step-num { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
.proc-list .step-h { font-size: 18px; }
.proc-list .step p { max-width: 52ch; }
.step:nth-child(n+5) .step-num { background: var(--step-5); }
@media (min-width: 961px) and (max-height: 760px) {
  .proc-list .step { padding-top: 12px; padding-bottom: 12px; }
}
/* ноутбук владельца: в ответе подбора визы наше предложение не помещается — оно есть на странице услуги */
@media (min-width: 961px) and (max-height: 640px) {
  .vres-usp { display: none; }
}
@media (max-width: 960px) {
  /* на телефоне экраны без анимации по прокрутке: при мягкой привязке страница останавливается между экранами,
     и блок оставался полупрозрачным и размытым (подбор решения, замечание владельца 19.11) */
  html[data-snap] .screen > * { animation: none; }
  /* подбор решения — свой экран во всю высоту: сверху не видно первого экрана, снизу — следующего,
     быстрый жест на нём останавливается */
  html[data-snap] .hero-home .finder-screen { display: flex; flex-direction: column; min-height: 100svh; padding: 74px 0 10px; scroll-snap-align: start; scroll-snap-stop: always; }
  /* общий экран первого экрана и подбора выше окна: браузер разрешает остановиться в любом месте внутри него,
     поэтому привязка только у его частей — текста первого экрана и экрана подбора */
  html[data-snap] .screen:has(> .hero-home) { scroll-snap-align: none; }
  /* подбор — такой же лист во весь экран, как остальные блоки на телефоне */
  html[data-snap] .hero-home .finder { flex: 1; scroll-snap-align: none; margin: 0 calc(8px - var(--gutter)); animation: none; }
  .band-process .proc-list { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; border-top: 1px solid var(--line); }
  .band-process .proc-list .step { padding: 10px 0; }
  /* шапка внутренней страницы: подложка прижата к низу, поэтому меньший отступ сверху меняет только длинные шапки —
     у рабочей визы с предложением и ценой кнопки иначе уходили под край экрана */
  .hero-inner-grid { padding-top: max(112px, 16svh); }
  /* ответ подбора с ценами под названиями: кнопка «Обсудить с менеджером» должна остаться на экране 360 × 680 */
  .fit-list { gap: 4px; }
  .quiz .fit-list a { padding: 8px 14px; }
  .fit-price { font-size: 13px; line-height: 1.25; }
  /* «Как проходит оформление» на телефоне: весь маршрут в одном экране (владелец 19.11);
     срок уже есть в шапке услуги, поэтому метку срока здесь не повторяем */
  html[data-snap] .screen > .band-stages { padding-top: 28px; padding-bottom: 20px; }
  .stages { gap: 14px; }
  .band-stages .tag-lg { display: none; }
  .stage-links { margin-top: 12px; padding-top: 10px; font-size: 14px; }
  .band-stages .route-box { padding: 12px 14px; }
  .band-stages .seg-light { margin-bottom: 8px; }
  .band-stages .route li { padding: 4px 0; gap: 12px; font-size: 15px; }
  html[data-snap] .screen > .band-process { padding-top: 28px; padding-bottom: 24px; }
  .band-process .proc-list .step-h { margin-bottom: 2px; font-size: 17px; }
}

/* факты статьи на узком телефоне — одной колонкой: в плитках по 140 px фразы ломались на три-четыре строки (владелец 19.11) */
@media (max-width: 600px) {
  .facts div { flex-basis: 100%; }
}

/* телефон: переход между страницами клал фото шапки поверх подложки, заголовок появлялся рывком,
   при возврате подбор прыгал; шапка появлялась по частям (видео владельца 19.11) — на телефоне страница просто открывается */
@media (max-width: 960px) {
  @view-transition { navigation: none; }
  .hero-media, .top-bar { view-transition-name: none; }
  .plate, .hero h1 .d-light, .hero h1 .d-strong, .hero-facts li, .fit:not([hidden]) li { animation: none; }
}

/* WhatsApp у формы строкой, а не второй кнопкой: на телефоне контакты блока скрыты (исследование пути клиента 21.11) */
.lead-alt { margin: 10px 0 0; text-align: center; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.lead-alt a { color: var(--sun-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lead-alt a:hover { color: var(--ink); }
.mega-wa .ic { width: 18px; height: 18px; margin-right: 8px; color: var(--sun-deep); }
/* телефон: на экране раздела карточек много, и у каждой была «Заявка» — до 6 кнопок заявки в одном окне.
   Карточка целиком ведёт на услугу, а форма есть на странице услуги и внизу раздела */
@media (max-width: 960px) {
  .pcard-apply { display: none; }
}
/* компьютер: в короткой форме подбора теперь выбор услуги и строка WhatsApp — имя и контакт в одну строку,
   чтобы форма целиком помещалась в первый экран и на ноутбуке 1260×550 */
@media (min-width: 961px) {
  .lead-finder .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* 21.11: короткие экраны (1260 × 550 — ноутбук при 150%, 1366 × 657, 1024 × 700) — результат
   подбора с пятью визами целиком в окне: цена в строку с названием, кнопка «Обсудить» видна. */
@media (min-width: 961px) and (max-height: 760px) {
  .fit-list { gap: 4px; margin-bottom: 10px; }
  .quiz .fit-list a { min-height: 44px; padding: 7px 12px; }
  .quiz .fit-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; }
  .quiz .fit-price { font-size: 13px; }
  .quiz-result .quiz-q { margin-bottom: 8px; }
}
/* ниже 640 px (1260 × 550): у граждан с ограничениями к четырём визам добавляется пояснение —
   ужимаем его и строки списка, чтобы экран остался 550 и колесо сразу листало экран */
@media (min-width: 961px) and (max-height: 640px) {
  .quiz-result .note { margin-bottom: 8px; padding: 6px 12px; }
  .quiz .fit-list a { min-height: 40px; padding-block: 5px; }
}
/* телефон с низким окном (Safari на iPhone 390 × 844 показывает 390 × 664): без подводки над списком
   и цена в строку с названием, иначе кнопка «Обсудить с менеджером» уходит под край */
@media (max-width: 960px) and (max-height: 720px) {
  .fit-lead { display: none; }
  .quiz .fit-list a { min-height: 44px; }
  .quiz .fit-name { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 0; }
  .quiz .fit-price { font-size: 13px; }
}
/* нечётное число плиток (7 целей в квизе раздела виз): последняя на всю ширину, а не одна в ряду */
.quiz-tiles .quiz-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* страница заявки: подробные шаги «Как мы работаем» — что от вас, что делаем мы, что в итоге (владелец 23.11) */
.step-detail { grid-column: 2; display: grid; grid-template-columns: max-content 1fr; gap: 4px 8px; margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.step-detail div { display: contents; }
.step-detail dt { flex: none; font-weight: 600; color: var(--ink); }
.step-detail dt::after { content: ":"; }
.step-detail dd { margin: 0; }
