/* styles.css — оформление квиза. Все цвета и размеры — в переменных :root */

:root {
  --bg: #141518;
  --bg-glow: rgba(242, 194, 48, 0.07);
  --surface: #1c1e23;
  --surface-2: #24272e;
  --surface-3: #2d3139;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0ea;
  --text-soft: #c9c8c2;
  --muted: #9a9ca3;
  --accent: #f2c230;
  --accent-hover: #ffd34f;
  --accent-soft: rgba(242, 194, 48, 0.12);
  --accent-ink: #17140a;
  --focus: #ffe17a;
  --danger: #ff8a7a;

  --font: Inter, "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 760px;
  --container-wide: 1120px;
  --text-width: 700px;
  --gap: clamp(16px, 4vw, 28px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 320ms;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 85% -10%, var(--bg-glow), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gap);
}

main { flex: 1; outline: none; padding-top: 8px; padding-bottom: 48px; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Шапка и подвал ─────────────────────────────────────────── */
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: 0.01em; }
.brand__dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.topbar__note { color: var(--muted); font-size: 14px; }

.footer { color: var(--muted); font-size: 13px; padding: 24px 0 32px; border-top: 1px solid var(--line); }
.footer p { margin: 0; }

/* ── Типографика ────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.display {
  margin: 0 0 18px;
  font-size: clamp(30px, 7.4vw, 50px);
  line-height: 1.12; font-weight: 750; letter-spacing: -0.02em;
  text-wrap: balance;
}
.accent { color: var(--accent); }
.lead { margin: 0 0 28px; font-size: clamp(17px, 2.4vw, 20px); color: var(--text-soft); max-width: 640px; }

/* ── Кнопки ─────────────────────────────────────────────────── */
.btn {
  -webkit-appearance: none; appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: 14px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.25;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 120ms var(--ease), color var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
/* Главная кнопка: при наведении приподнимается, загорается золотым свечением,
   по ней проходит блик, а стрелка делает шаг вперёд */
.btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #f7cf4c 0%, var(--accent) 55%, #e2b21f 100%);
  color: var(--accent-ink);
  box-shadow: 0 6px 18px -8px rgba(242, 194, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 260ms var(--ease), box-shadow 320ms var(--ease), filter 320ms var(--ease);
}
.btn--primary::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; z-index: -1;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn--primary:hover, .btn--primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 16px 36px -12px rgba(242, 194, 48, 0.7),
    0 0 0 5px rgba(242, 194, 48, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { animation: sheen 900ms var(--ease) both; }
.btn--primary:active { transform: translateY(0) scale(0.98); box-shadow: 0 6px 16px -8px rgba(242, 194, 48, 0.55); }

.btn--arrow::after {
  content: "→"; display: inline-block; margin-left: 4px;
  transition: transform 320ms var(--ease);
}
.btn--arrow:hover::after, .btn--arrow:focus-visible::after { transform: translateX(5px); }

@keyframes sheen { from { left: -70%; } to { left: 130%; } }

@media (hover: none) {
  .btn--primary:hover { transform: none; filter: none; box-shadow: 0 6px 18px -8px rgba(242, 194, 48, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
  .btn--primary:hover::before { animation: none; }
}
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--text-soft); border-color: var(--line); }
.btn--ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 18px; border-radius: 16px; }

/* ── Экран приветствия ──────────────────────────────────────── */
.topbar .container, .footer .container { max-width: var(--container-wide); }
.screen--welcome { padding-top: clamp(8px, 4vh, 48px); }

.hero { display: grid; gap: 26px; }
.hero__photo {
  position: relative; margin: 0; overflow: hidden;
  height: clamp(210px, 60vw, 340px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: #0d130f url("office.jpg") 30% 40% / cover no-repeat;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  isolation: isolate;
}
/* тёплый свет и затемнение низа, чтобы фото «сидело» в кабинете */
.hero__photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 55% 35%, rgba(242, 194, 48, 0.16), transparent 70%);
}
.hero__photo::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 28%;
  background: linear-gradient(to top, rgba(12, 13, 12, 0.75), transparent);
  pointer-events: none;
}
.hero__photo img {
  position: absolute; bottom: 0; left: 50%;
  height: 112%; width: auto; max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

/* Общий фон-кабинет для первого экрана и вопросов (только десктоп) */
.stage-bg, .qphoto { display: none; }
:root { --px: 0; --py: 0; } /* положение курсора от -0.5 до 0.5, задаёт app.js */

/* Десктоп: первый экран и вопросы целиком в одном экране — кабинет на весь экран,
   фото Сергея, текст на стеклянной плашке */
@media (min-width: 900px) {
  :root { --hero-width: min(1400px, 92vw); }
  body.is-stage .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
  body.is-stage .topbar .container { max-width: none; width: var(--hero-width); padding: 24px 0; }
  body.is-stage .footer { display: none; }
  body.is-stage main { padding: 0; }

  /* Параллакс: фон уходит против курсора, фото — по курсору, плашка — чуть-чуть */
  body.is-stage .stage-bg {
    display: block;
    position: fixed; inset: -4%; z-index: -1;
    background: #0d130f url("office.jpg") 35% 45% / cover no-repeat;
    transform: translate3d(calc(var(--px) * -36px), calc(var(--py) * -22px), 0) scale(1.04);
    will-change: transform;
  }

  .screen--welcome, .screen--question {
    position: relative;
    width: 100vw; margin-left: calc(50% - 50vw);
    height: 100vh; height: 100svh; min-height: 560px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
  }
  .hero__photo { transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 6px), 0); will-change: transform; }
  .hero__text { transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -4px), 0); }
  /* затемнение слева под текстом и снизу под фото */
  .screen--welcome::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(10, 11, 10, 0.72) 0%, rgba(10, 11, 10, 0.35) 45%, rgba(10, 11, 10, 0.05) 75%),
      linear-gradient(to top, rgba(10, 11, 10, 0.55), transparent 30%);
  }
  /* на вопросах — зеркально: темнее справа, где плашка с вариантами */
  .screen--question::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(270deg, rgba(10, 11, 10, 0.72) 0%, rgba(10, 11, 10, 0.35) 45%, rgba(10, 11, 10, 0.05) 75%),
      linear-gradient(to top, rgba(10, 11, 10, 0.55), transparent 30%);
  }

  /* Плашка стоит на высоте --qtop; фото подбирается так, чтобы глаза (16,5 % высоты кадра)
     оказались ниже верха плашки на 50 px + 5vw (чем шире экран, тем дальше плашка — тем ниже глаза) — взгляд вверх-вправо упирается в заголовок вопроса */
  .screen--question { --qtop: clamp(76px, 14vh, 170px); --qh: 95vh; }
  .qstage {
    position: relative; z-index: 1;
    display: flex; align-items: flex-start; justify-content: flex-end;
    width: var(--hero-width); height: 100%; margin: 0 auto;
    padding-top: var(--qtop);
  }
  .qphoto {
    display: block;
    position: absolute; left: -1%; top: calc(var(--qtop) + 50px + 5vw - var(--eye, 0.165) * var(--qh)); z-index: 0; margin: 0;
    height: var(--qh); aspect-ratio: var(--qar, 679 / 1000);
    transition: opacity 220ms var(--ease);
    transform: translate3d(calc(var(--px) * 16px), calc(var(--py) * 6px), 0);
    will-change: transform;
  }
  .qphoto::before {
    content: ""; position: absolute; inset: 5% -25% 0; z-index: -1;
    background: radial-gradient(50% 45% at 50% 35%, rgba(242, 194, 48, 0.16), transparent 70%);
  }
  .qphoto.is-swapping { opacity: 0; }
  .qphoto img { display: block; height: 100%; width: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); }

  .qpanel {
    position: relative; z-index: 2;
    width: min(680px, 56vw);
    padding: clamp(24px, 2.8vw, 40px);
    background: rgba(18, 20, 19, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translate3d(calc(var(--px) * -6px), calc(var(--py) * -4px), 0);
  }
  .qpanel .progress { margin-top: 0; margin-bottom: 20px; }
  .qpanel .question__text { font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 20px; }
  .qpanel .options { gap: 8px; }
  .qpanel .option { min-height: 52px; padding: 12px 18px; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
  .qpanel .option:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
  .qpanel .option[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
  .qpanel .nav-row { margin-top: 20px; }
}
/* невысокие экраны ноутбуков: самый длинный вопрос тоже помещается целиком */
@media (min-width: 900px) and (max-height: 780px) {
  .qpanel { padding: 22px 30px; }
  .qpanel .progress { margin-bottom: 14px; }
  .qpanel .question__text { font-size: 24px; margin-bottom: 14px; }
  .qpanel .options { gap: 6px; }
  .qpanel .option { min-height: 46px; padding: 9px 16px; font-size: 16px; }
  .qpanel .nav-row { margin-top: 14px; }
  .qpanel .nav-row .btn { min-height: 42px; padding: 8px 18px; }
}

/* Десктоп: раскладка первого экрана */
@media (min-width: 900px) {
  .hero {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    width: var(--hero-width);
    height: 100%; margin: 0 auto;
    padding-top: 64px; /* под шапку */
  }

  .hero__photo {
    position: absolute; right: -2%; bottom: -8px; z-index: 0;
    height: min(calc(100% - 40px), 820px); aspect-ratio: 760 / 821;
    border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
  }
  .hero__photo::before { inset: 10% -10% 0; background: radial-gradient(50% 50% at 50% 40%, rgba(242, 194, 48, 0.18), transparent 70%); }
  .hero__photo::after { display: none; }
  .hero__photo img {
    left: auto; right: 0; height: 100%; transform: none;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  }

  .hero__text {
    position: relative; z-index: 2;
    max-width: min(640px, 52vw);
    padding: clamp(28px, 3.2vw, 44px);
    background: rgba(18, 20, 19, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  .hero__text .display { font-size: clamp(32px, 3.4vw, 46px); margin-bottom: 16px; }
  .hero__text .lead { font-size: 18px; margin-bottom: 22px; }
  .hero__text .facts { margin-bottom: 26px; }
  .hero__text .facts li { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); font-size: 14px; padding: 7px 12px; }
}

@media (min-width: 900px) and (max-height: 640px) {
  .hero__text { padding: 24px 28px; }
  .hero__text .display { font-size: 32px; }
  .hero__text .lead { font-size: 16px; margin-bottom: 16px; }
  .hero__text .facts { margin-bottom: 18px; }
}
.facts {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; color: var(--text-soft);
}
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── Экраны вопросов ────────────────────────────────────────── */
.progress { margin: 8px 0 26px; }
.progress__label { margin: 0 0 10px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; }
.progress__track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress__bar {
  height: 100%; width: 0; background: var(--accent); border-radius: inherit;
  transition: width 480ms var(--ease);
}

.question__text {
  margin: 0 0 24px;
  font-size: clamp(23px, 5.2vw, 32px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em;
  text-wrap: balance;
}

.options { display: grid; gap: 10px; }
.option {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 60px; padding: 14px 18px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 17px; font-weight: 500; text-align: left; line-height: 1.35;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 140ms var(--ease);
  touch-action: manipulation;
}
.option:hover { background: var(--surface-2); border-color: var(--line-strong); }
.option:active { transform: scale(0.99); }
.option__mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid; place-items: center;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.option__mark::after {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-ink); transform: scale(0); transition: transform 200ms var(--ease);
}
.option[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.option[aria-pressed="true"] .option__mark { border-color: var(--accent); background: var(--accent); }
.option[aria-pressed="true"] .option__mark::after { transform: scale(1); }

.nav-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ── Переходный экран ───────────────────────────────────────── */
.analyzing { min-height: 46vh; display: grid; place-content: center; justify-items: center; gap: 22px; text-align: center; }
.analyzing__pulse {
  width: 56px; height: 56px; border-radius: 50%;
  border: 3px solid var(--surface-3); border-top-color: var(--accent);
  animation: spin 900ms linear infinite;
}
.analyzing__text { margin: 0; font-size: 19px; color: var(--text-soft); }

/* ── Результат ──────────────────────────────────────────────── */
.report { max-width: var(--text-width); }
.report__kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 8px 0 14px; color: var(--accent);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.report__kicker::before { content: ""; width: 18px; height: 2px; background: var(--accent); }
.report__headline {
  margin: 0 0 22px;
  font-size: clamp(28px, 6.4vw, 44px); line-height: 1.15; font-weight: 750; letter-spacing: -0.02em;
  text-wrap: balance;
}
.report__intro { margin: 0 0 12px; font-size: clamp(18px, 2.4vw, 20px); color: var(--text); line-height: 1.6; }
.report__section { margin-top: 34px; }
.report__section h2 {
  margin: 0 0 10px;
  font-size: clamp(19px, 3.6vw, 22px); line-height: 1.3; font-weight: 700;
}
:where(.report) p { margin: 0 0 14px; }
.report__section p { color: var(--text-soft); }
.report__section p + p { margin-top: -2px; }

.report__divider { border: 0; height: 1px; background: var(--line); margin: 44px 0 0; }

.recommendation {
  margin-top: 40px; padding: clamp(20px, 4vw, 30px);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.recommendation h2 {
  margin: 0 0 12px; color: var(--accent);
  font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.recommendation p { color: var(--text); font-size: 18px; }
.recommendation p:last-child { margin-bottom: 0; }

.offer { margin-top: 48px; }
.offer h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 5vw, 32px); line-height: 1.2; font-weight: 750; letter-spacing: -0.01em;
}
.offer__bridge { font-size: 19px; font-weight: 600; color: var(--text); }
.offer > p { color: var(--text-soft); }
.offer > p.offer__bridge { color: var(--text); }

.product {
  margin-top: 28px; padding: clamp(20px, 4.5vw, 32px);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(242, 194, 48, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid rgba(242, 194, 48, 0.35);
  border-radius: calc(var(--radius) + 4px);
}
.product__label { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product__title { margin: 0 0 8px; font-size: clamp(21px, 4.4vw, 26px); line-height: 1.25; font-weight: 750; }
.product__desc { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.product__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.product__price { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.product .btn { flex: 1 1 260px; }

.signature { margin-top: 28px; color: var(--muted); font-size: 15px; }
.signature strong { color: var(--text); font-weight: 600; }

.result-actions {
  max-width: var(--text-width);
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
}
.toast { min-height: 1.6em; margin: 12px 0 0; color: var(--accent); font-size: 15px; }

/* ── Страница разбора: тот же кабинет, но приглушённый; текст на стеклянной плашке ──
   Телефон и узкие окна: фото баннером над разбором.
   Широкий экран: фото (Сергей за столом с микрофоном) закреплено слева, разбор прокручивается справа. */
body.is-result .stage-bg {
  display: block;
  position: fixed; inset: -4%; z-index: -1;
  background: #0d130f url("office.jpg") 35% 45% / cover no-repeat;
  filter: blur(7px) brightness(0.45) saturate(0.9);
}

.result-main {
  padding: 22px 18px 18px;
  background: rgba(16, 18, 17, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.result-main .report__kicker { margin-top: 0; }

.result-photo {
  position: relative; margin: 0 0 16px;
  max-width: var(--text-width);
  aspect-ratio: 3 / 2; max-height: 62vh;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0d130f url("office.jpg") 35% 45% / cover no-repeat;
}
.result-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }

@media (min-width: 600px) {
  .result-main { padding: clamp(24px, 4vw, 44px); }
}

@media (min-width: 1150px) {
  body.is-result .topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
  body.is-result .topbar .container { max-width: none; width: auto; padding: 24px 0 24px 40px; }
  body.is-result main { padding: 0; }
  body.is-result .footer { border-top: 0; }

  .screen--result { width: 100vw; margin-left: calc(50% - 50vw); padding: 0; }
  .result-layout {
    display: grid;
    grid-template-columns: minmax(380px, 38vw) minmax(0, 1fr);
    align-items: start;
  }
  .result-photo {
    position: sticky; top: 0;
    height: 100vh; height: 100svh; max-height: none; max-width: none;
    aspect-ratio: auto; margin: 0;
    border: 0; border-radius: 0; background: transparent;
    overflow: hidden;
  }
  /* фото стоит на нижнем крае экрана (стол уходит за край), сверху — место под имя в шапке;
     справа фото растворяется перед плашкой с текстом */
  .result-photo img {
    position: absolute; left: 0; bottom: 0;
    height: calc(100% - 72px);
    object-position: 46% 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 70%, transparent 100%);
  }
  .result-main {
    width: auto; max-width: calc(var(--text-width) + 2 * clamp(32px, 3.6vw, 52px));
    margin: 84px clamp(24px, 3vw, 56px) 48px 0;
    padding: clamp(32px, 3.6vw, 52px);
  }
}

/* ── Анимации ───────────────────────────────────────────────── */
.screen.is-entering, .question.is-entering { animation: enter var(--dur) var(--ease) both; }
.screen.is-leaving { animation: leave 220ms var(--ease) both; }
.report.is-revealed > * { animation: enter 520ms var(--ease) both; }
.report.is-revealed > *:nth-child(2) { animation-delay: 60ms; }
.report.is-revealed > *:nth-child(3) { animation-delay: 120ms; }
.report.is-revealed > *:nth-child(n+4) { animation-delay: 180ms; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes leave { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-8px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-delay: 0ms !important;
    transition-duration: 1ms !important; scroll-behavior: auto !important;
  }
  .analyzing__pulse { animation: none; border-top-color: var(--accent); }
}

/* ── Мобильные ──────────────────────────────────────────────── */
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .topbar__note { display: none; }
  .screen--welcome .btn--lg { width: 100%; }
  .topbar__inner { padding-top: 14px; padding-bottom: 14px; }
  .hero { gap: 20px; }
  .screen--welcome .eyebrow { margin-bottom: 10px; }
  .screen--welcome .display { margin-bottom: 12px; }
  .screen--welcome .lead { margin-bottom: 18px; }
  .screen--welcome .facts { margin-bottom: 22px; }
  .nav-row .btn { flex: 1 1 auto; }
  .result-actions .btn { flex: 1 1 100%; }
  .product__row { flex-direction: column; align-items: stretch; }
  .product .btn { flex: none; width: 100%; }
}

@media (max-width: 360px) {
  .option { padding: 13px 14px; gap: 12px; font-size: 16px; }
  .facts li { font-size: 14px; padding: 7px 12px; }
}

@media print {
  body { background: #fff; color: #000; }
  .topbar, .footer, .result-actions, .skip-link { display: none; }
  .report__section p, .offer p { color: #222; }
}
