/* Финальные экраны: «Половина дня», подсчёт, результат, форма, «спасибо».
   Язык первого экрана: тёмный фон, Oswald капсом, один красный #DD1E26, одна красная кнопка-пилюля. */

/* ---------- общее ---------- */
.fin {
  background: var(--ink); user-select: text; -webkit-user-select: text;
  --gut: clamp(16px, 5vw, 96px);
  --frame: min(1240px, calc(100% - 2 * var(--gut)));
  --body: clamp(16px, 1.2vw, 18px);
  --lead: clamp(17px, 1.4vw, 20px);
}
.fin-scroll { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.fin-frame { position: relative; width: var(--frame); min-height: 100%; margin: 0 auto; display: flex; flex-direction: column; }
.fin-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: calc(clamp(16px, 3.6vh, 36px) + var(--safe-t)); }
.fin-logo { width: clamp(150px, 12.5vw, 196px); height: auto; }
.fin-head .hud-sound { flex: none; }
.fin-btn { padding: 19px 42px 21px; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.2; text-decoration: none; }
.fin-btn:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.fin-pre .fin-in, .fin-pre .fin-cta .btn-red { opacity: 0; }
:where(.fin) h1, :where(.fin) h2 { font-weight: 400; margin: 0; }
:where(.fin) ul { margin: 0; padding: 0; list-style: none; }

/* линза: ведущий цвет светится, остальные собранные грани притушены.
   Свечение — SVG-фильтры из lens.js: Safari не применяет CSS filter к фигурам внутри SVG (правка 25.11).
   Пульс ведущего цвета — ореол .ln-halo (размытая копия лепестка), у которого меняется прозрачность. */
.fin-lens svg { width: 100%; height: 100%; display: block; overflow: visible; }
.lit .fin-lens .ln-fill { transition: opacity .7s ease; }
.lit .fin-lens .ln-fill[opacity="1"]:not(.ln-lead) { opacity: .42; }
.lit .fin-lens .ln-halo.on { animation: finHalo 2.8s ease-in-out infinite; }
@keyframes finHalo {
  0%, 100% { opacity: .2; }
  50% { opacity: .95; }
}

/* ---------- экран 8. Половина дня ---------- */
.fin-half { background: #0b0b0b; user-select: none; -webkit-user-select: none; }
.hf-img { position: absolute; left: 0; top: 0; width: 1280px; height: 854px; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.hf-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    /* тень под линзой: прячет штангу проектора, что свисает из купола */
    radial-gradient(calc(var(--lr, 180px) * .42) calc(var(--lr, 180px) * 1.05) at var(--lx, 50%) calc(var(--ly, 32%) + var(--lr, 180px) * 1.3), rgba(11, 11, 11, .92), rgba(11, 11, 11, 0)),
    radial-gradient(circle at var(--lx, 50%) var(--ly, 32%), rgba(11, 11, 11, 0) calc(var(--lr, 180px) * 1.3), rgba(11, 11, 11, .55) calc(var(--lr, 180px) * 3.2)),
    linear-gradient(180deg, rgba(11, 11, 11, 0) var(--g0, 50%), rgba(11, 11, 11, .82) var(--g1, 64%), #0b0b0b var(--g2, 78%)); }
.hf-lens { position: absolute; left: 0; top: 0; width: 330px; height: 330px; }
.hf-lens svg { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .5)); }
.hf-copy { position: absolute; z-index: 2; left: 50%; bottom: calc(clamp(28px, 6.5vh, 76px) + var(--safe-b)); width: var(--frame); transform: translateX(-50%);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.hf-words { min-width: 0; max-width: 700px; }
.hf-title { font-family: var(--display); font-size: clamp(56px, min(7.4vw, 11.5vh), 116px); line-height: .9; text-transform: uppercase; white-space: nowrap; }
.hf-text { margin-top: clamp(14px, 2.4vh, 26px); font-size: var(--lead); line-height: 1.45; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.hf-theme { font-weight: 600; }
.hf-copy .fin-btn { flex: none; }

/* ---------- экран 14. Подсчёт ---------- */
.ct-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; column-gap: clamp(40px, 6vw, 120px);
  padding: clamp(16px, 3vh, 32px) 0 clamp(32px, 7vh, 80px); }
.ct-copy, .ct-art, .fm-copy, .fm-card, .th-card, .th-copy { margin-block: auto; }
.ct-copy { max-width: 600px; container-type: inline-size; }
.ct-title { font-family: var(--display); font-size: clamp(44px, min(5vw, 8.4vh), 84px); line-height: 1.08; text-transform: uppercase; text-wrap: balance; }
/* самое длинное слово («профессиональную») всегда в ширину колонки и не заходит на линзу */
@supports (font-size: 1cqw) { .ct-title { font-size: clamp(34px, min(12.4cqw, 8.4vh), 84px); } }
.ct-text { margin-top: clamp(18px, 3vh, 28px); max-width: 520px; font-size: var(--lead); line-height: 1.45; color: rgba(255, 255, 255, .78); text-wrap: pretty; }
.ct-cta { margin-top: clamp(28px, 5vh, 48px); }
.fin-count:not(.done) .ct-cta .btn-red { visibility: hidden; }
.ct-dial { position: relative; width: clamp(280px, min(58vh, 40vw), 600px); aspect-ratio: 1; }
@supports not (aspect-ratio: 1) { .ct-dial { height: clamp(280px, min(58vh, 40vw), 600px); } }   /* iOS 14 */
.ct-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ct-lens { position: absolute; inset: 10%; }
.ct-n { font-family: var(--display); font-size: 9.5px; fill: rgba(255, 255, 255, .3); transition: fill .3s; }
.ct-n.on { fill: #fff; }

/* ---------- экран 15. Результат ---------- */
.fin-result .fin-scroll { overflow-y: auto; }
/* правка МИП 20.11 («на большом экране текст уползает вниз, его не видно»): результат листается целиком, как на телефоне;
   плашка с названием слева стоит на месте, кнопка «Дальше» — в конце текста, а не поверх недочитанного */
.fin-result .fin-frame { min-height: 100%; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto;
  column-gap: clamp(40px, 5.5vw, 96px); }
.fin-result .fin-head { grid-column: 1 / -1; }
/* слева: плашка с названием, линза-медальон на её нижнем углу, абзац обтекает линзу */
.res-side { min-height: 0; padding: clamp(20px, 4vh, 44px) 0 clamp(24px, 5vh, 56px); --d: min(41%, 212px); position: sticky; top: 0; align-self: start; }
.res-side::after { content: ""; display: block; clear: both; }
.res-plate { background: var(--red); padding: clamp(24px, 2.5vw, 34px) clamp(22px, 2.3vw, 32px) calc(var(--d) * .64 + 22px); }
.res-name { font-family: var(--display); font-size: clamp(36px, 3.9vw, 58px); line-height: 1.08; text-transform: uppercase; color: #fff; text-wrap: balance; }
.res-lens { float: right; position: relative; z-index: 1; width: var(--d); aspect-ratio: 1; border-radius: 50%;
  margin: calc(var(--d) * -.64) clamp(-30px, -2vw, -14px) 6px 18px; shape-outside: circle(50%) border-box; shape-margin: 14px; }
.res-lens svg { filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .45)); }
.res-about { margin-top: clamp(18px, 2.6vh, 26px); }

/* правая колонка: весь текст подряд, кнопка — в конце */
.res-main { position: relative; display: flex; flex-direction: column; padding-top: clamp(20px, 4vh, 44px); }
.res-body { outline: none; display: grid; align-content: start; gap: clamp(26px, 3.6vh, 38px); padding: 2px 0 4px; }
/* ниже есть ещё текст: справа в строке кнопок подсказка «Листайте вниз», пока не долистали */
.res-hint { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none;
  padding: 9px 16px 9px 12px; border-radius: 100px; background: rgba(12, 12, 12, .9); border: 1px solid rgba(255, 255, 255, .22); font-size: 14.5px; line-height: 1.2;
  color: #fff; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s, transform .3s; }
.res-hint svg { width: 18px; height: 18px; animation: kHint 1.4s ease-in-out infinite; }
@keyframes kHint { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
.fin-result.res-more .res-hint { opacity: 1; transform: none; }
.res-about { font-size: var(--lead); line-height: 1.45; color: #fff; text-wrap: pretty; }
.res-h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: clamp(20px, 1.65vw, 25px); line-height: 1.1; text-transform: uppercase; margin-bottom: 14px; }
.res-sign { width: 22px; height: auto; flex: none; margin-top: -2px; }
.res-sec p { font-size: var(--body); line-height: 1.5; color: rgba(255, 255, 255, .8); text-wrap: pretty; }

.res-progs { padding: clamp(18px, 2.4vh, 26px) clamp(20px, 2vw, 28px) clamp(8px, 1.2vh, 12px); background: #121212; border-radius: 18px; }
.res-progs .res-h { margin-bottom: 6px; }
.res-list li { position: relative; padding: 13px 0 14px 26px; font-size: var(--body); line-height: 1.38; color: #fff; }
.res-list li + li { border-top: 1px solid rgba(255, 255, 255, .12); }
.res-list li::before { content: ""; position: absolute; left: 2px; top: calc(13px + .45em); width: 11px; height: 10px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
/* программа — ссылка на свою страницу: подчёркнута, со стрелкой; при наведении линия и стрелка ярче, ничего не сдвигается */
.res-prog { color: #fff; text-decoration: none; background: linear-gradient(rgba(255, 255, 255, .38), rgba(255, 255, 255, .38)) no-repeat 0 100% / 100% 1px; padding-bottom: 2px; transition: background-size .2s, color .2s; }
.res-go { display: inline-block; width: .8em; height: .8em; margin-left: .35em; vertical-align: -.02em; color: var(--red); }
.res-go svg { width: 100%; height: 100%; display: block; }
@media (hover: hover) { .res-prog:hover { background-image: linear-gradient(#fff, #fff); } }
.res-prog:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 3px; }

.res-stats { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: 10px clamp(24px, 3vw, 48px); margin: 4px 0 18px; }
.res-stats li { display: grid; gap: 2px; align-content: start; }
.res-num { font-family: var(--display); font-size: clamp(32px, 2.9vw, 44px); line-height: 1.05; white-space: nowrap; }
.res-num small { font-family: var(--text); font-size: 15px; color: rgba(255, 255, 255, .72); margin-right: 2px; }
.res-cap { font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.res-facts li { position: relative; padding: 10px 0 10px 18px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .8); border-top: 1px solid rgba(255, 255, 255, .12); }
.res-facts li::before { content: ""; position: absolute; left: 0; top: calc(10px + .62em); width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }

.res-also { padding: clamp(18px, 2.4vh, 24px) clamp(20px, 2vw, 26px); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; }
.res-also p + p { margin-top: 10px; }
.res-second { font-weight: 600; color: var(--c2, #fff); }
.res-note { font-size: 15px !important; color: rgba(255, 255, 255, .66) !important; }

/* строка кнопок прилипает к низу окна, пока текст не долистан: «Дальше» и «Пройти ещё раз» видны с первого экрана
   (замечание МИП 23.11); текст уходит под полосу с растушёвкой. В конце текста строка встаёт на своё место */
.res-cta { position: sticky; bottom: 0; z-index: 6; flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  margin-top: clamp(4px, 1vh, 10px); padding: 30px 0 calc(clamp(18px, 3.4vh, 34px) + var(--safe-b));
  background: linear-gradient(rgba(33, 33, 33, 0), var(--ink) 28px); }

/* ---------- экран 16. Форма ---------- */
.fm-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: start; column-gap: clamp(40px, 6.5vw, 120px);
  padding: clamp(12px, 2.6vh, 32px) 0 clamp(24px, 5vh, 56px); }
.fm-copy { max-width: 580px; }
/* замечание Kris, проверка 23.11: в заголовке «Получите ранний доступ к Чёрной пятнице МИП» буквы соседних строк сходились.
   У Oswald Ё выше прописной на 0,23 кегля, Й — на 0,2, а Д, Ц и У уходят под строку на 0,15: Ё над Д/У требует интерлиньяжа
   не меньше 1,19. Ставим 1,24 (просвет ≈ 0,05 кегля) и чуть меньший кегль — высота заголовка почти прежняя */
.fm-title { font-family: var(--display); font-size: clamp(38px, min(4.3vw, 7.2vh), 72px); line-height: 1.24; text-transform: uppercase; text-wrap: balance; }
.fm-text { margin-top: clamp(18px, 3vh, 28px); font-size: var(--lead); line-height: 1.45; color: rgba(255, 255, 255, .8); text-wrap: pretty; }
.fm-limit { margin-top: clamp(16px, 2.6vh, 24px); padding-left: 16px; border-left: 3px solid var(--red); font-size: var(--lead); line-height: 1.4; color: #fff; }

.fm-card { position: relative; padding: clamp(22px, 3.2vh, 34px) clamp(22px, 2.4vw, 34px); background: #181818; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; }
.fm-field + .fm-field { margin-top: clamp(12px, 2vh, 18px); }
.fm-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 7px; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .82); }
.fm-opt { font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.fm-input { display: block; width: 100%; height: clamp(50px, 6.4vh, 56px); padding: 0 16px; border-radius: 12px; background: #0f0f0f; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .24); font: 400 18px/1.2 var(--text); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, box-shadow .15s; }
.fm-input::placeholder { color: rgba(255, 255, 255, .36); }
@media (hover: hover) { .fm-input:hover { border-color: rgba(255, 255, 255, .44); } }
.fm-input:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .14); }
.fm-input:-webkit-autofill, .fm-input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #0f0f0f inset; caret-color: #fff; }
.bad .fm-input { border-color: var(--red); }
.bad .fm-input:focus { box-shadow: 0 0 0 3px rgba(221, 30, 38, .3); }
.fm-err { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.35; color: #fff; }
.fm-err:empty { display: none; }
.fm-err::before { content: "!"; flex: none; width: 18px; height: 18px; margin-top: 0; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font: 700 12px/1 var(--text); }
.fm-field .fm-err { margin-top: 8px; }

.fm-checks { margin-top: clamp(14px, 2.4vh, 22px); display: grid; gap: 2px; }
.fm-check .fm-err { margin: 0 0 6px 36px; }
.fm-cl { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 9px 0; cursor: pointer;
  font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .84); user-select: none; -webkit-user-select: none; }
.fm-cb { position: absolute; left: 0; top: 10px; width: 24px; height: 24px; margin: 0; opacity: 0; }
.fm-box { position: relative; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .5); background: #0f0f0f;
  transition: background-color .15s, border-color .15s; }
.fm-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.4); opacity: 0;
  transition: opacity .15s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.fm-cb:checked + .fm-box { background: var(--red); border-color: var(--red); }
.fm-cb:checked + .fm-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.fm-cb:focus-visible + .fm-box { outline: 2px solid #fff; outline-offset: 3px; }
@media (hover: hover) { .fm-cl:hover .fm-box { border-color: #fff; } }
.bad .fm-box { border-color: var(--red); }
.fm-ct a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
@media (hover: hover) { .fm-ct a:hover { text-decoration-color: #fff; } }

.fm-hp { position: absolute !important; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.fm-alert { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(221, 30, 38, .14); border: 1px solid rgba(221, 30, 38, .55);
  font-size: 15px; line-height: 1.4; color: #fff; }
.fm-alert:empty { display: none; }
.fm-act { margin-top: clamp(16px, 2.8vh, 26px); }
/* цель заявки: два варианта-плашки; выбранный — красная рамка, как выбранный вариант в игре */
.fm-intents { border: 0; margin: 0 0 clamp(14px, 2.4vh, 20px); padding: 0; min-width: 0; }
.fm-intents legend { padding: 0; margin-bottom: 10px; }
.fm-intent-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-intent { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 54px; padding: 10px 12px;
  border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .16); background: #222; font-size: 15px; line-height: 1.25; cursor: pointer; transition: border-color .2s, background-color .2s; }
.fm-intent input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fm-intent.on { border-color: var(--red); background: #2d1517; }
@media (hover: hover) { .fm-intent:not(.on):hover { border-color: rgba(255, 255, 255, .6); background: #2a2a2a; } }
.fm-intent:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
/* назад к результату, пройти ещё раз, сайт института */
.fm-back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0 0 clamp(10px, 2vh, 18px) -4px; padding: 0 4px; font-size: 15px; color: rgba(255, 255, 255, .78); transition: color .2s; }
.fm-back svg { width: 18px; height: 18px; }
@media (hover: hover) { .fm-back:hover { color: #fff; } }
.fm-back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.fm-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin-top: clamp(18px, 3vh, 28px); }
.fm-site { text-decoration: none; }
.fm-grid { grid-template-rows: auto 1fr; }
.fm-grid > .fm-copy { grid-column: 1; grid-row: 1; margin-block: auto 0; }
.fm-grid > .fm-card { grid-column: 2; grid-row: 1 / span 2; }
.fm-grid > .fm-more { grid-column: 1; grid-row: 2; align-self: start; }
.fm-send { gap: 10px; }
.fm-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: fmSpin .8s linear infinite; }
.fm-send.busy { cursor: progress; background: #b8131a; }
.fm-send.busy .fm-spin { display: inline-block; }
.fm-send:disabled { transform: none; box-shadow: none; }
@keyframes fmSpin { to { transform: rotate(360deg); } }

/* ---------- экраны 17А и 17Б. Спасибо ---------- */
.th-grid { flex: 1; display: grid; grid-template-columns: auto minmax(0, 480px); align-items: start; justify-content: center; column-gap: clamp(40px, 6vw, 112px);
  padding: clamp(12px, 2.6vh, 32px) 0 clamp(28px, 6vh, 64px); }
.th-card { position: relative; width: min(560px, calc((100vh - 190px) * 660 / 714), 46vw); aspect-ratio: 660 / 714; background: var(--red); isolation: isolate; container-type: inline-size; }
/* «Вы / в списке!»: кегль 16,72 % ширины карточки (было 12,7 % для трёх строк «Вы в списке раннего доступа!») */
.th-title { position: absolute; z-index: 1; left: 4.6%; top: 4.2%; font-family: var(--display); font-size: min(93.6px, calc((100vh - 190px) * .15454), 7.69vw); font-size: 16.72cqw; line-height: 1.04; text-transform: uppercase; white-space: nowrap; color: #fff; }
.th-img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.th-lead { font-family: var(--display); font-size: clamp(28px, min(2.6vw, 4.6vh), 40px); line-height: 1.1; text-transform: uppercase; text-wrap: balance; }
.th-text { margin-top: clamp(14px, 2.4vh, 22px); font-size: var(--lead); line-height: 1.45; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.th-cta { margin-top: clamp(28px, 5vh, 44px); display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
/* «Пройти ещё раз» — тихая вторая кнопка: белый текст со стрелкой по кругу; при наведении стрелка краснеет,
   под текстом появляется линия, ничего не сдвигается */
.fin-again { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 4px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.2; color: #fff; }
.fin-again svg { width: 22px; height: 22px; flex: none; transition: color .2s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.fin-again span { border-bottom: 1.5px solid rgba(255, 255, 255, .35); padding-bottom: 2px; transition: border-color .2s; }
/* наведение (правка 25.11: белая жирная черта под красным значком выглядела грубо): значок и черта краснеют,
   стрелка «Пройти ещё раз» чуть поворачивается на месте — ничего не сдвигается */
@media (hover: hover) {
  .fin-again:hover svg { color: var(--red); }
  .fin-again:hover span { border-bottom-color: var(--red); }
  button.fin-again:hover svg { transform: rotate(-50deg); }
}
.fin-again:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 6px; }
.fin-pre .fin-again { opacity: 0; }

/* ---------- телефон и узкие экраны ---------- */
@media (max-width: 759px), (max-aspect-ratio: 9/10) {
  .fin { --frame: min(560px, calc(100% - 32px)); --body: 16px; --lead: 17px; }
  .fin-head { padding-top: calc(12px + var(--safe-t)); }
  .fin-logo { width: 150px; }
  .fin-btn { padding: 17px 24px 19px; font-size: 19px; }
  /* кнопка закреплена внизу на сплошной полосе: текст уходит под полосу, а не под кнопку */
  .fin-cta { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 16px calc(14px + var(--safe-b));
    background: linear-gradient(rgba(33, 33, 33, 0), var(--ink) 24px); pointer-events: none; }
  .fin-cta .btn-red { pointer-events: auto; width: min(560px, 100%); margin: 0 auto; display: flex; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
  .fin-scroll { -webkit-overflow-scrolling: touch; }
  .fin-frame { padding-bottom: calc(112px + var(--safe-b)); }

  /* половина дня: купол сверху, текст и кнопка снизу */
  .hf-copy { left: 16px; right: 16px; width: auto; transform: none; bottom: calc(16px + var(--safe-b)); flex-direction: column; align-items: stretch; gap: 22px; }
  .hf-words { max-width: none; }
  .hf-title { font-size: clamp(40px, 12.4vw, 58px); }
  .hf-text { margin-top: 12px; font-size: 16.5px; }
  .hf-copy .fin-btn { width: 100%; }

  /* подсчёт: линза сверху */
  .ct-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 0; flex: none; }
  .ct-art { align-self: center; }
  .ct-dial { width: min(80vw, 40vh, 360px); }
  @supports not (aspect-ratio: 1) { .ct-dial { height: min(80vw, 40vh, 360px); } }
  .th-title { font-size: calc((100vw - 32px) * .1672); font-size: 16.72cqw; }   /* без единиц контейнера (iOS 15) — от ширины экрана */
  .ct-copy { margin-top: 18px; }
  .ct-title { font-size: clamp(32px, 9.4vw, 44px); }
  .ct-text { margin-top: 14px; }
  .ct-cta { margin: 0; }

  /* результат: стопкой, листается весь экран */
  .fin-result .fin-scroll { overflow-y: auto; }
  .fin-result .fin-frame { display: flex; height: auto; padding-bottom: calc(166px + var(--safe-b)); }   /* две кнопки в закреплённой полосе */
  .res-side { padding: 16px 0 0; }
  .res-side { --d: min(42%, 180px); }
  .res-plate { padding: 18px 18px calc(var(--d) * .64 + 18px); }
  .res-name { font-size: clamp(30px, 9.2vw, 44px); }
  .res-lens { margin-right: -6px; margin-left: 14px; shape-margin: 12px; }
  .res-main { display: block; padding: 30px 0 0; }
  .res-body { overflow: visible; padding-right: 0; }
  .res-side { position: static; }
  .fin-result .res-hint { display: none; }   /* на телефоне кнопка «Дальше» закреплена внизу — подсказка не нужна */
  .res-cta { display: block; padding: 26px 16px calc(14px + var(--safe-b)); }
  .res-progs { padding: 18px 18px 6px; border-radius: 16px; }
  .res-stats { grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 6px; }
  .res-stats li { display: flex; align-items: baseline; gap: 12px; padding: 6px 0; }
  .res-num { font-size: 32px; min-width: 132px; }
  .res-cap { font-size: 15px; }
  .res-also { padding: 18px; border-radius: 16px; }

  /* форма: стопкой, кнопка в конце формы — над клавиатурой её не закрепляем */
  .fm-grid { display: block; padding: 18px 0 0; flex: none; }
  .fm-title { font-size: clamp(32px, 9.6vw, 46px); }
  .fm-text { margin-top: 14px; }
  .fm-card { margin-top: 22px; padding: 20px 16px; border-radius: 18px; }
  .fm-send { width: 100%; }
  .fin-form .fin-frame { padding-bottom: calc(28px + var(--safe-b)); }

  /* спасибо: под красной кнопкой в закреплённой полосе — «Пройти ещё раз» */
  .th-cta { display: block; }
  .fin-cta .fin-again { pointer-events: auto; display: flex; justify-content: center; width: min(560px, 100%); margin: 4px auto 0; font-size: 16px; }
  .fin-thanks .fin-frame { padding-bottom: calc(166px + var(--safe-b)); }
  .th-grid { display: block; padding: 16px 0 0; flex: none; }
  .th-card { width: 100%; }
  .th-copy { margin-top: 24px; }
  .th-lead { font-size: 28px; }
}

@media (max-width: 379px) {
  .fin-logo { width: 132px; }
  .res-num { font-size: 29px; min-width: 120px; }
}

/* ---------- ПК: крупный текст (правка МИП 24.11: «для людей с плохим зрением шрифт мелкий и не читается на пк») ----------
   Основной текст финальных экранов не мельче 18 px (на большом мониторе растёт до 21–23 px), подписи к цифрам,
   примечания, «необязательно», ошибки, согласия и «К результату» — не мельче 16 px. Подсказка в поле телефона
   светлее: прежняя давала 3,3:1, нужно не меньше 4,5:1. Телефон — без изменений */
@media (min-width: 760px) and (min-aspect-ratio: 9/10) {
  .fin { --body: clamp(18px, 1.15vw, 21px); --lead: clamp(18px, 1.3vw, 23px); }
  .res-hint { font-size: 16px; }
  .res-num small { font-size: 16px; }
  .res-cap { font-size: 16px; }
  .res-facts li { font-size: var(--body); }
  .res-note { font-size: 16px !important; }
  .fm-label { font-size: 18px; line-height: 1.35; }
  .fm-opt { font-size: 16px; color: rgba(255, 255, 255, .64); }
  .fm-input::placeholder { color: rgba(255, 255, 255, .58); }
  .fm-err { font-size: 16px; }
  .fm-err::before { width: 20px; height: 20px; font-size: 14px; }
  .fm-alert { font-size: 16px; }
  .fm-cl { font-size: 16px; }
  .fm-intent { font-size: 18px; line-height: 1.35; }
  .fm-back { font-size: 16px; }
}

/* невысокий десктоп (основной текст по-прежнему не мельче 18 px) */
@media (max-height: 760px) and (min-width: 760px) and (min-aspect-ratio: 9/10) {
  .fin { --lead: clamp(18px, 1.3vw, 19px); --body: 18px; }
  .fm-card { padding-top: 20px; padding-bottom: 22px; }
  .fm-input { height: 48px; }
  .fm-field + .fm-field { margin-top: 10px; }
  .fm-checks { margin-top: 10px; }
  .fm-cl { min-height: 44px; padding: 8px 0; }
  .fm-check .fm-err { margin-bottom: 2px; }
  .fm-act { margin-top: 14px; }
  .fm-intent { min-height: 50px; padding: 8px 10px; }
  .fm-more { margin-top: 18px; }
}

/* совсем невысокий десктоп (ноутбук 1366×617, 1280×585): форма целиком в окне, без прокрутки (проверка 23.11) */
@media (max-height: 640px) and (min-width: 760px) and (min-aspect-ratio: 9/10) {
  .fin-form .fin-head { padding-top: calc(12px + var(--safe-t)); }
  .fm-grid { padding-top: 6px; padding-bottom: 14px; }
  .fm-card { padding-top: 16px; padding-bottom: 16px; }
  .fm-intents { margin-bottom: 10px; }
  .fm-intents legend { margin-bottom: 6px; }
  .fm-intent { min-height: 44px; }
  .fm-label { margin-bottom: 5px; }
  .fm-input { height: 42px; }
  .fm-field + .fm-field { margin-top: 8px; }
  .fm-checks { margin-top: 6px; }
  .fm-act { margin-top: 10px; }
  .fm-back { min-height: 34px; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .lit .fin-lens .ln-halo.on { animation: none; opacity: .7; }
  .fm-spin { animation-duration: 1.6s; }
}
