/* Кабинет клиента и публичные страницы.
   Главная идея: панорамный снимок на тёмной плёнке, всё остальное спокойно и по делу. */

:root {
  --film: #0C0F2A;
  --film-2: #171B44;
  --film-line: rgba(255, 255, 255, .14);
  --film-text: #AEB3DA;
  --enamel: #F4F5F9;
  --sheet: #FFFFFF;
  --ink: #16193A;
  --ink-2: #464A6F;
  --ink-3: #62668A;
  --line: #E3E5F0;
  --indigo: #5E6AD2;
  --indigo-d: #4A56C2;
  --indigo-soft: #ECEEFC;
  --crit: #D2323A;
  --crit-soft: #FDECEC;
  --imp: #AD6600;
  --imp-soft: #FFF3DC;
  --adv: #4A56C2;
  --ok: #17876A;
  --tooth-crit: #FF8F8F;
  --tooth-imp: #FFD48A;
  --tooth-adv: #B9C2FF;
  --tooth-ok: #E9ECF8;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--indigo-d); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; border-radius: 3px; }
.film :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.012em; margin: 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
h3, h4 { margin: 0; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; color: var(--ink-2); }
.h-sub { font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.25; }

.internal-bar { background: #FFF3DC; color: #6B4300; font-size: 14px; text-align: center; padding: 6px var(--gutter); }

/* ---------- Плёнка ---------- */
.film {
  position: relative;
  background: radial-gradient(1100px 460px at 50% 68%, var(--film-2) 0%, var(--film) 72%);
  color: #fff;
}
.film-top {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.film-logo img { height: 32px; width: auto; }
.film-nav { display: flex; gap: 26px; margin-left: 12px; }
.film-nav a { color: var(--film-text); text-decoration: none; font-size: 15px; }
.film-nav a:hover { color: #fff; }
.film-phone { margin-left: auto; color: #fff; text-decoration: none; font-weight: 500; white-space: nowrap; }

.film-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  padding-top: clamp(18px, 4vw, 44px);
  padding-bottom: 10px;
}
.film-title { max-width: 820px; }
.film-site { color: var(--film-text); font-size: 16px; margin-bottom: 12px; overflow-wrap: anywhere; }
.film h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.05; }
.film-verdict { color: var(--film-text); font-size: clamp(17px, 1.6vw, 20px); margin-top: 14px; max-width: 640px; }

.film-score { flex: none; text-align: right; line-height: 1; }
.film-score-num { display: block; font: 300 clamp(72px, 9vw, 120px)/.9 var(--serif); }
.film-score-of { display: block; color: var(--film-text); font-size: 15px; margin-top: 8px; }
.film-score-bad .film-score-num { color: var(--tooth-crit); }
.film-score-warn .film-score-num { color: var(--tooth-imp); }
.film-score-mid .film-score-num { color: var(--tooth-adv); }
.film-score-good .film-score-num { color: #8CE5C5; }

/* Шапка главной: форма проверки сайта остаётся на виду при прокрутке */
.film-bar { position: sticky; top: 0; z-index: 20; background: var(--film); }
.film-bar .film-top { padding-top: 12px; padding-bottom: 12px; gap: 24px; }
.film-bar .film-nav { margin-left: 0; white-space: nowrap; }
.landing [id] { scroll-margin-top: 84px; }
.scan-form { flex: 1 1 340px; max-width: 480px; min-width: 0; margin-left: auto; }
.scan-form + .film-phone { margin-left: 0; }
.scan-row { display: flex; }
.scan-form input[name=url] {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--film-line);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  font-size: 16px;
}
.scan-form input[name=url]::placeholder { color: var(--film-text); opacity: 1; }
.scan-form input[name=url]:focus { outline: none; background: rgba(255, 255, 255, .13); border-color: var(--tooth-adv); }
.scan-form input.has-error { border-color: var(--tooth-crit); }
.scan-form .btn { flex: none; height: 44px; padding: 0 18px; border-radius: 0 10px 10px 0; white-space: nowrap; }
.scan-error { color: var(--tooth-crit); font-size: 14px; line-height: 1.35; margin-top: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-check { margin-left: auto; padding: 8px 16px; font-size: 15px; }
.film-check + .film-phone { margin-left: 0; }
.film-actions { margin-top: 22px; }
.film-full { min-height: 100vh; }

/* Панорамный снимок */
.opg-wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); overflow: hidden; }
.opg-wrap > svg { width: 100%; height: auto; }
.opg-empty svg { opacity: 1; }
.tooth { cursor: pointer; outline: none; }
.tooth-shape { transition: filter .15s ease; }
.tooth:hover .tooth-shape, .tooth:focus-visible .tooth-shape, .tooth.is-active .tooth-shape {
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .75));
}
.tooth-na { cursor: default; }
.tooth text { pointer-events: none; }

/* Единственная анимация страницы: снимок проявляется один раз при открытии */
.opg-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14%;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(185, 194, 255, .22) 60%, rgba(255, 255, 255, .5) 98%, transparent);
}
.opg-wrap.is-developing .opg-scan { animation: opg-scan 1.5s cubic-bezier(.45, .05, .55, .95) .15s both; }
.opg-wrap.is-developing .tooth, .opg-wrap.is-developing > svg > g, .opg-wrap.is-developing > svg > text {
  animation: tooth-develop .5s ease both;
  animation-delay: var(--d, .4s);
}
@keyframes opg-scan {
  0% { left: -14%; opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes tooth-develop {
  from { opacity: .08; }
  to { opacity: 1; }
}

/* Экран ожидания: здесь движение показывает, что работа идёт */
.opg-wrap.is-scanning .opg-scan { animation: opg-scan-loop 2.6s linear infinite; }
@keyframes opg-scan-loop {
  from { left: -14%; opacity: 1; }
  to { left: 100%; opacity: 1; }
}

.film-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 36px;
}
.opg-info { color: var(--film-text); font-size: 15px; flex: 1 1 340px; min-height: 2.8em; max-width: 680px; }
.opg-info b { color: #fff; font-weight: 500; }
.opg-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; color: var(--film-text); font-size: 15px; }
.opg-legend li { display: flex; align-items: center; gap: 8px; }
.opg-legend b { color: #fff; font-weight: 500; }
.dot { width: 11px; height: 15px; border-radius: 5px 5px 7px 7px; display: inline-block; flex: none; }
.dot-critical { background: var(--tooth-crit); }
.dot-important { background: var(--tooth-imp); }
.dot-advice { background: var(--tooth-adv); }
.dot-ok { background: var(--tooth-ok); }

/* ---------- Листы ---------- */
.sheet { padding: clamp(48px, 7vw, 88px) 0; background: var(--sheet); }
.sheet + .sheet { padding-top: 0; }
.sheet-tint { background: var(--enamel); }
.sheet + .sheet-tint, .sheet-tint + .sheet { padding-top: clamp(48px, 7vw, 88px); }
.sheet-note { padding: 28px 0; font-size: 14px; color: var(--ink-3); }
.sheet-note p { max-width: 820px; }
.section-note { color: var(--ink-3); margin-top: 12px; max-width: 760px; }
.section-note-top { margin-top: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }

.summary-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.summary-grid .lead { margin-top: 16px; }
.summary-grid .h-sub { margin-top: 34px; }
.priority { list-style: none; counter-reset: p; margin: 14px 0 0; padding: 0; }
.priority li { counter-increment: p; position: relative; padding: 11px 0 11px 40px; border-top: 1px solid var(--line); }
.priority li::before { content: counter(p); position: absolute; left: 0; top: 7px; font: 400 23px/1.3 var(--serif); color: var(--indigo); }

.cat { margin-bottom: 15px; }
.cat-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; margin-bottom: 6px; }
.cat-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cat-track { height: 6px; border-radius: 3px; background: #E9EBF4; overflow: hidden; }
.cat-fill { display: block; height: 100%; border-radius: 3px; }
.cat-bad { background: var(--crit); }
.cat-warn { background: #E8960C; }
.cat-mid { background: var(--indigo); }
.cat-good { background: #1FA57F; }
.btn-pdf { margin-top: 12px; }

/* ---------- Диагноз ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 15px;
  cursor: pointer;
}
.chip:hover { border-color: var(--ink-3); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.findings { margin-top: 26px; border-bottom: 1px solid var(--line); }
.finding { border-top: 1px solid var(--line); }
.finding[hidden] { display: none; }
.finding summary {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: baseline;
  padding: 17px 0;
  cursor: pointer;
  list-style: none;
}
.finding summary::-webkit-details-marker { display: none; }
.finding-tooth { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.finding-title { font-size: 18px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.finding summary:hover .finding-title { color: var(--indigo-d); }
.finding-level { font-size: 13.5px; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.finding-critical .finding-level { background: var(--crit-soft); color: var(--crit); }
.finding-important .finding-level { background: var(--imp-soft); color: var(--imp); }
.finding-advice .finding-level { background: var(--indigo-soft); color: var(--adv); }
.finding-body { padding: 0 0 26px 52px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 40px; }
.finding-block h4 { font-size: 14px; font-weight: 600; color: var(--ink-3); margin-bottom: 5px; }
.finding-block p { color: var(--ink-2); font-size: 16px; }
.evidence { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.evidence li { padding: 3px 0; overflow-wrap: anywhere; }
.finding-plan { grid-column: 1 / -1; font-size: 14.5px; color: var(--ink-3); }
.finding.is-flash summary { animation: flash 1.2s ease; }
@keyframes flash { from { background: var(--indigo-soft); } to { background: transparent; } }

.passed { margin-top: 20px; }
.passed summary { cursor: pointer; color: var(--ok); font-weight: 500; padding: 8px 0; }
.passed-list { columns: 2; column-gap: 40px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 15px; color: var(--ink-2); }
.passed-list li { break-inside: avoid; padding: 4px 0 4px 18px; position: relative; }
.passed-list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: #1FA57F; }

/* ---------- Поиск ---------- */
.search-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: 28px; align-items: start; }
.table-scroll { overflow-x: auto; }
.data { width: 100%; border-collapse: collapse; font-size: 16px; }
.data th { text-align: left; font-size: 14px; font-weight: 600; color: var(--ink-3); padding: 0 12px 10px 0; border-bottom: 2px solid var(--ink); }
.data td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); }
.data .num { text-align: right; width: 80px; font-variant-numeric: tabular-nums; padding-right: 4px; }
.pos-top { color: var(--ok); font-weight: 600; }
.pos-none { color: #A8ABC4; }
.rival-list { list-style: none; margin: 14px 0 0; padding: 0; }
.rival-list li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 26px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.rival-name { overflow-wrap: anywhere; }
.rival-bar { display: block; height: 6px; background: #E2E4F0; border-radius: 3px; overflow: hidden; }
.rival-bar span { display: block; height: 100%; background: var(--indigo); border-radius: 3px; }
.rival-hits { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rival-note { font-size: 14px; color: var(--ink-3); margin-top: 12px; }
.rival-wide { max-width: 720px; margin-top: 26px; }

/* ---------- План лечения ---------- */
.plans { margin-top: 30px; }
.plan {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 290px;
  gap: 18px 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.plan:last-child { border-bottom: 1px solid var(--line); }
.plan-name { font: 400 28px/1.15 var(--serif); }
.plan-price { font-size: 21px; font-weight: 600; margin-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 15px; font-weight: 400; color: var(--ink-3); }
.plan-inherit { font-size: 15px; color: var(--ink-3); margin-bottom: 8px; }
.plan-items { margin: 0; padding: 0; list-style: none; }
.plan-items li { position: relative; padding: 4px 0 4px 18px; font-size: 16px; }
.plan-items li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 2px; background: var(--indigo); }
.plan-why { font-size: 15.5px; margin-bottom: 14px; }
.plan-cover { margin-bottom: 14px; }
.plan-cover p { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.plan-cover-track { height: 6px; border-radius: 3px; background: #E9EBF4; overflow: hidden; }
.plan-cover-track span { display: block; height: 100%; background: var(--indigo); border-radius: 3px; }
.plan-foot .btn { width: 100%; }

.plan-rec {
  background: var(--film);
  color: #fff;
  border: 0;
  border-radius: 16px;
  padding: 30px 28px;
  margin: 6px calc(-1 * min(28px, var(--gutter)));
  position: relative;
}
.plan-rec + .plan { border-top: 0; }
.plan-rec .plan-price span, .plan-rec .plan-inherit, .plan-rec .plan-cover p { color: var(--film-text); }
.plan-rec .plan-why { color: #DFE1F4; }
.plan-rec .plan-why strong { color: #fff; font-weight: 600; }
.plan-rec .plan-items li::before { background: var(--tooth-adv); }
.plan-rec .plan-cover-track { background: rgba(255, 255, 255, .16); }
.plan-rec .plan-cover-track span { background: var(--tooth-adv); }
.plan-rec:last-child { border-bottom: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-d); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C9CCDE; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Контакты ---------- */
.film-contact { padding: clamp(52px, 7vw, 88px) 0; background: var(--film); }
.film-contact h2 { font-size: clamp(32px, 4.2vw, 52px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(32px, 6vw, 88px); align-items: start; }
.film-contact .lead { color: var(--film-text); margin-top: 16px; max-width: 520px; }
.contact-phone { margin-top: 26px; font: 300 clamp(28px, 3.2vw, 38px)/1.1 var(--serif); }
.contact-phone a { color: #fff; text-decoration: none; }
.contact-agency { color: var(--film-text); margin-top: 12px; font-size: 16px; }
.contact-agency a { color: #fff; }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(20px, 3vw, 30px); }

.lead-form .field { margin-bottom: 14px; }
.lead-form label:not(.consent) { display: block; font-size: 15px; font-weight: 500; margin-bottom: 5px; }
.optional { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form select, .lead-form textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #C9CCDE;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 16px;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px var(--indigo-soft); }
.lead-form .has-error { border-color: var(--crit); }
.lead-form textarea { resize: vertical; }
.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 9px; align-items: start; font-size: 14px; color: var(--ink-2); margin: 4px 0 2px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--indigo); }
.field-error { color: var(--crit); font-size: 14px; margin-top: 4px; }
.field-error:empty { display: none; }
.captcha-box { min-height: 100px; margin: 12px 0 4px; }
.captcha-note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 4px; }
.lead-form .btn { margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done { padding: 8px 0; }
.form-done-title { font: 400 26px/1.2 var(--serif); margin-bottom: 8px; }

/* ---------- Подвал ---------- */
.page-foot { background: var(--sheet); padding: 30px 0; }
.page-foot-inner { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; align-items: flex-start; }
.foot-logo { height: 30px; width: auto; }
.foot-legal { font-size: 13.5px; color: var(--ink-3); margin-top: 10px; max-width: 520px; }
.foot-links { display: flex; flex-direction: column; gap: 5px; font-size: 15px; text-align: right; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--indigo-d); }

.mobile-cta { display: none; }

/* ---------- Без сайта ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin-top: 28px; }
.fact { border-top: 2px solid var(--ink); padding-top: 14px; }
.fact h3 { font: 400 23px/1.25 var(--serif); margin-bottom: 8px; }
.fact p { color: var(--ink-2); font-size: 16px; }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.offer-grid .lead { margin: 16px 0 24px; }
.offer-list { list-style: none; margin: 0; padding: 0; }
.offer-list li { padding: 11px 0; border-top: 1px solid var(--line); }

/* ---------- Главная ---------- */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 56px); margin: 30px 0 0; padding: 0; }
.steps li { counter-increment: s; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps h3 { font: 400 25px/1.2 var(--serif); margin-bottom: 8px; }
.steps h3::before { content: counter(s) '. '; color: var(--indigo); }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ---------- Сообщения и документы ---------- */
.message { min-height: 100vh; display: flex; align-items: center; }
.message img { height: 32px; width: auto; margin-bottom: 40px; }
.message h1 { font-size: clamp(34px, 5vw, 58px); }
.message .lead { color: var(--film-text); margin: 18px 0 26px; max-width: 620px; overflow-wrap: anywhere; }
.message-phone a { color: #fff; font-size: 20px; }
.film-slim { background: var(--film); }
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 22px; line-height: 1.12; }
.doc h2 { font: 400 24px/1.25 var(--serif); margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-bottom: 12px; }
.doc pre { background: var(--enamel); padding: 14px 16px; border-radius: 8px; font-size: 15px; overflow-x: auto; }

/* ---------- Экраны поменьше ---------- */
@media (max-width: 1120px) {
  .film-bar .film-nav { display: none; }
}

@media (max-width: 980px) {
  .summary-grid, .search-grid, .contact-grid, .offer-grid { grid-template-columns: minmax(0, 1fr); }
  .plan { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts, .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  body { font-size: 16px; padding-bottom: 66px; }
  body.message-page, body.doc-page { padding-bottom: 0; }
  .film-nav { display: none; }
  .film-bar { position: static; }
  .film-bar .film-top { flex-wrap: wrap; gap: 12px 16px; }
  .landing [id] { scroll-margin-top: 0; }
  .scan-form { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .scan-form + .film-phone { margin-left: auto; }
  .film-check { display: none; }
  .film-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .film-score { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .film-score-num { font-size: 76px; }
  .film-score-of { margin: 0; }
  /* На телефоне снимок листается вбок: иначе зубы слишком мелкие для пальца. */
  .opg-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 0; scrollbar-width: none; }
  .opg-wrap::-webkit-scrollbar { display: none; }
  .opg-wrap > svg { width: 800px; max-width: none; margin: 0 auto; }
  .opg-empty > svg { width: 100%; max-width: 100%; }
  .finding summary { grid-template-columns: 30px minmax(0, 1fr); }
  .finding-level { grid-column: 2; justify-self: start; }
  .finding-title { font-size: 17px; }
  .finding-body { padding-left: 0; }
  .passed-list { columns: 1; }
  .rival-list li { grid-template-columns: minmax(0, 1fr) 60px 24px; }
  .plan-rec { margin-left: calc(-1 * var(--gutter) + 6px); margin-right: calc(-1 * var(--gutter) + 6px); padding: 24px 18px; }
  .foot-links { text-align: left; }
  .mobile-cta {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 10px;
    z-index: 10;
    background: var(--indigo);
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    padding: 13px;
    border-radius: 11px;
    box-shadow: 0 8px 24px rgba(12, 15, 42, .35);
  }
  .mobile-cta.is-hidden { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .mobile-cta, .film-nav, .chips, .lead-form { display: none; }
  .finding-body { display: block; }
}
