/* Авто-лендинг: графит + бело-сине-красный акцент */

:root {
  --black: #06080f;
  --graphite: #0c1018;
  --charcoal: #121a28;
  --metal: #1a2435;
  --metal-light: #243049;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.38);
  /* Акцент (исторически --gold — оставлено имя для совместимости с остальным CSS) */
  --gold: #7fb1ff;
  --gold-soft: #d7e6ff;
  --champagne: #f5f8ff;
  --accent-red: #e76074;
  --platinum: #9fb0cc;
  --silver-glow: rgba(130, 170, 220, 0.42);
  --gold-glow: rgba(127, 177, 255, 0.4);
  --blur: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --panel-deep: #080b12;
  --panel-elev: #0f131c;
  --text-secondary: #94a3b8;
  --font-panel: "Inter", "Manrope", system-ui, sans-serif;
  /* Скроллбар: дорожка + акцент */
  --scrollbar-track: rgba(8, 11, 18, 0.96);
  --scrollbar-thumb: rgba(127, 177, 255, 0.46);
  --scrollbar-thumb-hover: rgba(127, 177, 255, 0.72);
  --scrollbar-thumb-active: rgba(215, 230, 255, 0.62);
  --scrollbar-corner: var(--scrollbar-track);
}

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

html,
body {
  height: 100%;
  margin: 0;
  max-width: 100%;
  overflow: hidden;
  overflow-x: clip;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* ——— Скроллбар (Chromium / Safari / Firefox): акцентный градиент ——— */
.view,
.view--start,
.final__scroller,
.hero__requisites,
body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

.view::-webkit-scrollbar,
.view--start::-webkit-scrollbar,
.final__scroller::-webkit-scrollbar,
.hero__requisites::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.view::-webkit-scrollbar-track,
.view--start::-webkit-scrollbar-track,
.final__scroller::-webkit-scrollbar-track,
.hero__requisites::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

.view::-webkit-scrollbar-thumb,
.view--start::-webkit-scrollbar-thumb,
.final__scroller::-webkit-scrollbar-thumb,
.hero__requisites::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(244, 248, 255, 0.62) 0%,
    rgba(127, 177, 255, 0.52) 45%,
    rgba(231, 96, 116, 0.48) 100%
  );
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(127, 177, 255, 0.14) inset;
}

.view::-webkit-scrollbar-thumb:hover,
.view--start::-webkit-scrollbar-thumb:hover,
.final__scroller::-webkit-scrollbar-thumb:hover,
.hero__requisites::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(245, 248, 255, 0.68) 0%,
    var(--gold) 50%,
    rgba(231, 96, 116, 0.72) 100%
  );
  background-clip: padding-box;
  box-shadow: 0 0 0 1px rgba(127, 177, 255, 0.24) inset;
}

.view::-webkit-scrollbar-thumb:active,
.view--start::-webkit-scrollbar-thumb:active,
.final__scroller::-webkit-scrollbar-thumb:active,
.hero__requisites::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  box-shadow: 0 0 0 1px rgba(215, 230, 255, 0.36) inset;
}

.view::-webkit-scrollbar-corner,
.view--start::-webkit-scrollbar-corner,
.final__scroller::-webkit-scrollbar-corner,
.hero__requisites::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner {
  background: var(--scrollbar-corner);
}

.app {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
}

/* ——— Hero 70% ——— */
.hero {
  position: relative;
  flex: 7 1 0%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  background: radial-gradient(120% 100% at 20% 0%, #151820 0%, var(--black) 55%, #030304 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Десктоп: hero всегда на всю высоту .app (без «полоски» сверху и чёрной дыры снизу при низком dvh / zoom) */
@media (min-width: 901px) {
  .hero {
    height: 100%;
    min-height: 100%;
    max-height: none;
    align-self: stretch;
  }
}

/* Фоновое фото слева: 1.jpg — <img> + object-fit вместо background + scale:
   при масштабе Windows 125%+ transform: scale() на слое с фоном даёт размытие/рывки. */
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Без min-width/min-height на img: при 125%+ zoom часть движков раздувает intrinsic size — кадр уезжает/обрезается; object-fit тянет кадр в рамку */
.hero__photo-img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  object-fit: cover;
  object-position: center center;
}

/* Без затемняющего градиента — фото 1.jpg видно чисто */
.hero__scrim {
  display: none;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events: none;
  animation: drift 18s var(--ease-soft) infinite alternate;
}

.hero__glow--1 {
  width: 55vmin;
  height: 55vmin;
  top: -12%;
  left: -8%;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.22) 0%, rgba(231, 96, 116, 0.08) 50%, transparent 72%);
}

.hero__glow--2 {
  width: 45vmin;
  height: 45vmin;
  bottom: 5%;
  left: 25%;
  background: radial-gradient(circle, rgba(140, 155, 185, 0.18) 0%, transparent 70%);
  animation-delay: -6s;
}

.hero__glow--3 {
  width: 38vmin;
  height: 38vmin;
  top: 35%;
  right: -5%;
  background: radial-gradient(circle, rgba(90, 100, 120, 0.25) 0%, transparent 65%);
  animation-delay: -12s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(0.4%, 0.5%) scale(1.015); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, black 20%, transparent 75%);
  pointer-events: none;
  opacity: 0.7;
}

.hero__streak {
  position: absolute;
  height: 1px;
  left: 8%;
  right: 20%;
  background: linear-gradient(90deg, transparent, rgba(255, 237, 213, 0.35), rgba(200, 210, 230, 0.2), transparent);
  opacity: 0.5;
  pointer-events: none;
  animation: streak 8s var(--ease-soft) infinite;
}

.hero__streak--a { top: 32%; }
.hero__streak--b {
  top: 58%;
  animation-delay: -4s;
  opacity: 0.35;
}

@keyframes streak {
  0%, 100% { transform: translateX(-1%) scaleX(0.98); opacity: 0.35; }
  50% { transform: translateX(1%) scaleX(1); opacity: 0.55; }
}

/*
 * Реквизиты в разметке — сразу под .panel внутри .shell__chrome.
 * Десктоп: fixed в зоне hero (не занимает место в колонке справа).
 * Мобилка ≤900px: переопределение в @media — поток под квизом.
 */
.hero__requisites {
  position: fixed;
  left: max(0.65rem, env(safe-area-inset-left, 0px));
  bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  z-index: 25;
  max-width: min(28rem, calc(70vw - 1.25rem));
  max-height: min(52vh, 22rem);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-req {
  font-family: var(--font-panel);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  line-height: 1.38;
  letter-spacing: 0.01em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.85),
    0 0 18px rgba(0, 0, 0, 0.55);
}

.hero-req__company {
  margin: 0.35rem 0 0.4rem;
  font-weight: 700;
  font-size: clamp(0.62rem, 0.78vw, 0.74rem);
  line-height: 1.3;
  color: rgba(252, 248, 238, 0.98);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 4px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.65);
}

.hero-req__dl {
  margin: 0;
  padding: 0.35rem 0 0;
  border-top: none;
}

.hero-req__row {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.22rem;
  align-items: start;
}

.hero-req__row--wide {
  grid-template-columns: 3.1rem 1fr;
}

.hero-req__dl dt {
  margin: 0;
  font-weight: 600;
  color: rgba(200, 205, 215, 0.75);
}

.hero-req__dl dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  word-break: break-word;
}

.hero-req__activity-title {
  margin: 0.5rem 0 0.15rem;
  padding-top: 0.25rem;
  border-top: none;
  font-weight: 700;
  font-size: clamp(0.6rem, 0.75vw, 0.7rem);
  color: rgba(253, 186, 116, 0.98);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 1px 3px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(0, 0, 0, 0.6);
}

.hero-req__activity {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
}

/* ——— Shell ~30% — premium glass block, 100vh column ——— */
.shell {
  flex: 3 1 0%;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  align-self: stretch;
  height: 100svh;
  height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(0.5rem, 1vw, 0.85rem);
  font-family: var(--font-panel);
  background: var(--panel-deep);
}

/* Узкое окно / 100% масштаб: правая колонка не схлопывается ниже читаемой ширины */
@media (min-width: 901px) {
  .shell {
    min-width: min(100%, 16.5rem);
  }
}

.shell__chrome {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(98, 140, 212, 0.14) 55%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(89, 126, 193, 0.13),
    0 0 60px rgba(126, 164, 224, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.shell__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 34%, rgba(196, 221, 255, 0.14) 50%, transparent 64%);
  opacity: 1;
}

.panel {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius-lg) - 1px);
  background: linear-gradient(180deg, #222b38 0%, #141b26 48%, #0b1018 100%);
  overflow: hidden;
}

.panel__inner {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  border-radius: inherit;
  background: linear-gradient(
    180deg,
    rgba(27, 36, 51, 0.58) 0%,
    rgba(14, 20, 31, 0.82) 52%,
    rgba(10, 14, 22, 0.9) 100%
  );
  backdrop-filter: blur(40px) saturate(1.12);
  -webkit-backdrop-filter: blur(40px) saturate(1.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    inset 0 0 120px rgba(46, 73, 116, 0.22);
}

.panel__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(120, 168, 255, 0.2) 0%, rgba(120, 168, 255, 0.05) 35%, transparent 62%),
    radial-gradient(90% 70% at 88% 16%, rgba(92, 136, 208, 0.17) 0%, transparent 64%);
  box-shadow: inset 0 0 0 1px rgba(192, 217, 255, 0.09);
}

.panel__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(140deg, transparent 38%, rgba(173, 208, 255, 0.11) 50%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0.75;
}

/* Views — внутри панели вертикальный скролл при нехватке высоты (любое окно / масштаб) */
.view {
  position: absolute;
  inset: 0;
  z-index: 0;
  padding: clamp(1.5rem, min(5vh, 5vw), 4.5rem) clamp(1.25rem, min(2.5vw, 2rem), 2.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(10px) scale(0.985);
  filter: blur(6px);
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter 0.55s var(--ease-out),
    visibility 0s linear 0.55s;
}

.view.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.65s var(--ease-out),
    filter 0.55s var(--ease-out),
    visibility 0s linear 0s;
}

.view--start {
  gap: 0;
  justify-content: flex-start;
  align-items: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-bottom: 0.75rem;
}

.view--quiz {
  justify-content: flex-start;
  gap: clamp(0.85rem, 1.85vh, 1.35rem);
  padding-top: 0.35rem;
}

.view--loading {
  text-align: center;
  align-items: stretch;
  justify-content: center;
  gap: 0.8rem;
}

.view--final {
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  /* Скролл только в .final__scroller — без двойной полосы прокрутки */
  overflow: hidden;
}

/* Финал: один поток; телефон сразу под сеткой мессенджеров; кнопка sticky внизу видимой области */
.final__scroller {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(0.28rem, 0.7vh, 0.48rem);
  overscroll-behavior-y: contain;
  padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
}

.view--final #err-messenger {
  margin-top: 0;
  margin-bottom: 0;
}

.view--final .field-label--phone-final {
  margin-top: 0.15rem;
  margin-bottom: 0;
}

.view--final .messenger-grid {
  margin-bottom: 0;
}

.view--final .btn--primary {
  flex-shrink: 0;
  width: 100%;
  position: sticky;
  bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  z-index: 4;
  margin-top: 0.35rem;
  box-shadow:
    0 -14px 28px rgba(8, 8, 9, 0.88),
    0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ——— Старт: premium SaaS / fintech блок ——— */
.start-stack--premium {
  /* Не flex:1 + растяжение по высоте родителя — иначе при 100–125% масштаба scrollHeight обрезает нижний контент */
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(0.55rem, min(1.6vh, 2vw), 1.25rem);
  overflow: visible;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
}

@keyframes premiumReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes premiumTricolorShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 240% 50%;
  }
}

.view--start.is-active .premium-reveal {
  animation: premiumReveal 0.75s var(--ease-out) backwards;
}

.view--start.is-active .premium-reveal:nth-child(1) { animation-delay: 0.04s; }
.view--start.is-active .premium-reveal:nth-child(2) { animation-delay: 0.12s; }
.view--start.is-active .premium-reveal:nth-child(3) { animation-delay: 0.22s; }

.premium-top {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: clamp(0.85rem, 2.2vh, 1.25rem);
}

.premium-title {
  margin: 0;
  font-family: var(--font-panel);
  font-weight: 800;
  font-size: clamp(1.28rem, 2.4vw, 1.86rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: #eaf2ff;
  background: linear-gradient(
    110deg,
    #f8fbff 0%,
    #ffffff 24%,
    #92b9ff 46%,
    #ffffff 60%,
    #ff8a96 72%,
    #e54a5c 82%,
    #c93f57 90%,
    #ffffff 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: premiumTricolorShine 7.8s linear infinite;
  filter: drop-shadow(0 0 16px rgba(140, 174, 235, 0.22)) drop-shadow(0 0 14px rgba(220, 90, 116, 0.2));
  text-wrap: normal;
  overflow-wrap: break-word;
  width: 100%;
  max-width: none;
  display: block;
}

.premium-title__line {
  display: block;
}

.premium-title__line--gold {
  font-weight: 800;
  background: linear-gradient(105deg, #f8fbff 0%, #9bc0ff 36%, #e76074 62%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 24px rgba(127, 177, 255, 0.3));
}

/* Подзаголовок к главному заголовку — одна визуальная группа с .premium-title */
.premium-lead {
  margin: 0;
  margin-top: 0.15rem;
  font-family: var(--font-panel);
  font-size: clamp(1.06rem, 1.85vw, 1.32rem);
  font-weight: 700;
  line-height: 1.35;
  color: #d7e6ff;
  background: linear-gradient(
    108deg,
    #f4f8ff 0%,
    #c9dcff 38%,
    #f4f8ff 56%,
    #ff97a1 72%,
    #f07c89 84%,
    #d95c74 92%,
    #f4f8ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: premiumTricolorShine 9.5s linear infinite;
  filter: drop-shadow(0 0 12px rgba(126, 157, 216, 0.18)) drop-shadow(0 0 10px rgba(220, 90, 116, 0.16));
  letter-spacing: -0.02em;
  max-width: 100%;
}

/* Акция: анимированный текст + PNG подарка */
.premium-offer {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.45rem, 1.4vh, 0.85rem);
  margin-top: clamp(0.25rem, 1vh, 0.55rem);
  text-align: center;
}

.premium-offer__text {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  max-width: min(100%, 26rem);
  font-family: var(--font-panel);
  font-size: clamp(0.98rem, 1.55vw, 1.14rem);
  font-weight: 600;
  line-height: 1.38;
  color: rgba(196, 207, 224, 0.95);
  text-wrap: balance;
}

.premium-offer__line {
  display: block;
}

.premium-offer__line--a {
  animation: premiumOfferLineA 4.2s var(--ease-soft) infinite;
}

.premium-offer__line--b {
  animation: premiumOfferLineB 4.2s var(--ease-soft) infinite;
  animation-delay: 0.12s;
}

.premium-offer__accent {
  font-weight: 800;
  color: #dce9ff;
  text-shadow:
    0 0 16px rgba(142, 164, 199, 0.5),
    0 0 30px rgba(142, 164, 199, 0.22);
  animation: premiumAccentPulse 2.8s var(--ease-soft) infinite;
}

.premium-offer__discount {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.08em 0.28em 0.12em;
  border-radius: 0.35em;
  background: linear-gradient(
    110deg,
    #7c93b9 0%,
    #b3c5e4 22%,
    #edf4ff 45%,
    #9fb4d6 58%,
    #c8d7ee 78%,
    #6e86aa 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: premiumDiscountShine 3.2s linear infinite;
  filter: drop-shadow(0 0 14px rgba(133, 155, 193, 0.36));
}

.premium-offer__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 11.5rem;
  margin-top: 0.15rem;
}

.premium-offer__ring {
  position: absolute;
  inset: 8% 6% 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(126, 149, 184, 0.42) 0%,
    rgba(126, 149, 184, 0.1) 45%,
    transparent 70%
  );
  animation: premiumRingPulse 3s var(--ease-soft) infinite;
  pointer-events: none;
}

.premium-offer__gift {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 10.5rem);
  height: auto;
  max-height: clamp(7rem, 22vw, 10rem);
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 24px rgba(126, 149, 184, 0.28));
  animation: premiumGiftFloat 4.5s ease-in-out infinite;
  transform-origin: 50% 80%;
}

@keyframes premiumOfferLineA {
  0%,
  100% {
    opacity: 0.88;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes premiumOfferLineB {
  0%,
  100% {
    opacity: 0.82;
    transform: translateY(0) scale(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }
}

@keyframes premiumAccentPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12);
  }
}

@keyframes premiumDiscountShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes premiumRingPulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes premiumGiftFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-7px) rotate(1.4deg);
  }
}

.premium-cta {
  flex: 0 0 auto;
  align-self: stretch;
  margin-top: clamp(0.1rem, 0.65vh, 0.4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.premium-cta__pointer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(127, 177, 255, 0.88);
  filter: drop-shadow(0 0 12px rgba(127, 177, 255, 0.45));
}

.premium-cta__arrow {
  display: block;
  animation: premiumCtaBlink 1.35s var(--ease-soft) infinite;
}

@keyframes premiumCtaBlink {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(5px);
  }
}

.btn-premium {
  position: relative;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.2rem 1.45rem;
  border: none;
  border-radius: clamp(14px, 1.2vw, 18px);
  cursor: pointer;
  font-family: var(--font-panel);
  font-size: clamp(0.9rem, 1.25vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #eef3fb;
  background: linear-gradient(165deg, #6a7381 0%, #4e5764 30%, #3b434f 60%, #2a303a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 12px 36px rgba(83, 102, 134, 0.28),
    0 4px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), filter 0.3s;
}

.btn-premium:hover {
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 0 40px rgba(109, 133, 173, 0.36),
    0 16px 44px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-premium:active {
  transform: translateY(1px) scale(0.99);
  filter: brightness(0.96);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.2),
    0 4px 16px rgba(83, 102, 134, 0.24);
}

.btn-premium:focus-visible {
  outline: 2px solid rgba(173, 196, 235, 0.82);
  outline-offset: 3px;
}

.btn-premium__label {
  position: relative;
  z-index: 1;
}

/* Buttons */
.btn {
  position: relative;
  margin-top: 0;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  background: linear-gradient(180deg, #2a2f3c 0%, #161a22 100%);
  color: var(--champagne);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.25s;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(127, 177, 255, 0.26),
    0 16px 40px rgba(0, 0, 0, 0.5);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(127, 177, 255, 0.42),
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 34px rgba(127, 177, 255, 0.22),
    0 0 22px rgba(231, 96, 116, 0.14);
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid rgba(127, 177, 255, 0.62);
  outline-offset: 3px;
}

.btn__label {
  position: relative;
  z-index: 1;
}

.btn__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 120%, rgba(127, 177, 255, 0.24), rgba(231, 96, 116, 0.12) 45%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.btn:hover .btn__glow {
  opacity: 1;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.25s;
}

.icon-btn:hover {
  border-color: rgba(127, 177, 255, 0.4);
  color: var(--gold-soft);
  background: rgba(127, 177, 255, 0.08);
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(127, 177, 255, 0.5);
  outline-offset: 2px;
}

/* Quiz top */
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem 0.65rem;
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--stroke-strong);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.step-pill__prefix {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.88em;
  color: var(--text-dim);
}

.step-pill__count {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
  white-space: nowrap;
}

.step-pill__sep {
  margin: 0 0.15em;
  opacity: 0.55;
}

.quiz-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.btn--quiz {
  margin-top: 0;
}

.btn--quiz-vin-skip {
  width: 100%;
  margin-top: 0;
  padding: 0.62rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-panel);
  font-size: clamp(0.84rem, 1.15vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  overflow: visible;
  cursor: pointer;
  transition:
    color 0.25s var(--ease-out),
    background 0.25s var(--ease-out);
}

.btn--quiz-vin-skip::before {
  display: none;
}

.btn--quiz-vin-skip:hover {
  transform: none;
  box-shadow: none;
  color: var(--gold-soft);
  background: rgba(127, 177, 255, 0.08);
}

.btn--quiz-vin-skip:active {
  transform: scale(0.99);
}

.btn--quiz-vin-skip:focus-visible {
  outline: 2px solid rgba(127, 177, 255, 0.54);
  outline-offset: 2px;
}

.btn--quiz-back {
  order: 2;
  width: 100%;
  margin-top: 0;
  padding: 0.78rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-family: var(--font-panel);
  font-size: clamp(0.86rem, 1.2vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-out),
    color 0.3s,
    background 0.3s,
    transform 0.25s var(--ease-out);
}

.btn--quiz-back:hover {
  border-color: rgba(127, 177, 255, 0.38);
  color: var(--gold-soft);
  background: rgba(127, 177, 255, 0.08);
}

.btn--quiz-back:active {
  transform: scale(0.99);
}

.btn--quiz-back:focus-visible {
  outline: 2px solid rgba(127, 177, 255, 0.54);
  outline-offset: 2px;
}

.step-track {
  height: 4px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.step-track__fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 248, 255, 0.62), rgba(127, 177, 255, 0.82), rgba(231, 96, 116, 0.7));
  box-shadow: 0 0 16px rgba(127, 177, 255, 0.34);
  transition: width 0.6s var(--ease-out);
}

.quiz-stages {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(0.15rem, 1vh, 0.75rem);
}

.quiz-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.5s var(--ease-out);
}

.quiz-stage.is-active {
  position: relative;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.field-label {
  font-size: clamp(0.92rem, 1.28vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--platinum);
}

/* Тексты вопросов квиза — в 2× к обычным подписям полей */
.quiz-stage .field-label {
  font-size: clamp(1.84rem, 2.56vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  overflow-wrap: break-word;
}

.input-wrap {
  position: relative;
}

.input-wrap--phone {
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s, box-shadow 0.35s;
}

.input-wrap--phone:focus-within {
  border-color: rgba(127, 177, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(127, 177, 255, 0.2),
    0 0 28px rgba(127, 177, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.input-wrap--phone .field--phone {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.input-wrap--phone .field--phone:hover {
  border: none;
}

.input-wrap--phone .field--phone:focus {
  border: none;
  box-shadow: none;
}

.input-wrap--phone .field__focus-ring {
  display: none;
}

.field {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
  padding: 0.92rem 1.05rem;
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.35s, background 0.3s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.field::placeholder {
  color: var(--text-muted);
}

.field:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.field:focus {
  border-color: rgba(127, 177, 255, 0.5);
  box-shadow:
    0 0 0 1px rgba(127, 177, 255, 0.2),
    0 0 28px rgba(127, 177, 255, 0.16);
}

.field__focus-ring {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-sm) + 2px);
  pointer-events: none;
  opacity: 0;
  border: 1px solid rgba(127, 177, 255, 0.44);
  transition: opacity 0.35s;
}

.field:focus + .field__focus-ring {
  opacity: 1;
}

.field-error {
  min-height: 1.1em;
  margin: 0;
  font-size: clamp(0.82rem, 1.12vw, 0.92rem);
  font-weight: 600;
  color: rgba(232, 200, 160, 0.85);
  letter-spacing: 0.02em;
}

.field-error--block {
  min-height: 0;
  margin: -0.15rem 0 0.15rem;
}

/* Loading */
.loading__icon {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 0.25rem;
}

.loading__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(127, 177, 255, 0.9);
  border-right-color: rgba(200, 210, 230, 0.35);
  animation: spin 1.1s linear infinite;
}

.loading__core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 177, 255, 0.28), rgba(231, 96, 116, 0.16) 45%, transparent 72%);
  animation: corePulse 1.8s var(--ease-soft) infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.loading__title {
  margin: 0;
  font-family: var(--font-panel);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.75vw, 1.42rem);
  color: var(--champagne);
}

.loading__hint {
  margin: 0 0 0.5rem;
  max-width: 28rem;
  font-size: clamp(0.92rem, 1.28vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dim);
  align-self: center;
}

.progress {
  width: 100%;
  max-width: 360px;
  align-self: center;
}

.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: clamp(0.84rem, 1.15vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.progress__value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.progress__bar {
  position: relative;
  height: 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(127, 177, 255, 0.2);
}

.progress__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(245, 248, 255, 0.75), rgba(127, 177, 255, 0.94), rgba(231, 96, 116, 0.82));
  box-shadow: 0 0 20px rgba(127, 177, 255, 0.4);
  transition: width 0.08s linear;
}

.progress__sheen {
  position: absolute;
  top: 0;
  left: -24%;
  width: 24%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: sheen 2s var(--ease-soft) infinite;
}

@keyframes sheen {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateX(450%); opacity: 0; }
}

/* Final */
.final__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.22rem, 1.85vw, 1.52rem);
  line-height: 1.2;
  color: var(--champagne);
}

.final__lead {
  margin: 0 0 0.45rem;
  font-size: clamp(0.95rem, 1.32vw, 1.08rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-dim);
}

.block-label {
  margin: 0.4rem 0 0.4rem;
  font-size: clamp(0.86rem, 1.18vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.messenger-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  min-width: 0;
}

.msg-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 72px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.4));
  cursor: pointer;
  color: var(--text-dim);
  transition:
    border-color 0.35s var(--ease-out),
    background 0.35s,
    color 0.3s,
    box-shadow 0.35s,
    transform 0.3s var(--ease-out);
}

.msg-btn__icon {
  width: 22px;
  height: 22px;
  opacity: 0.75;
}

.msg-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.msg-btn__text {
  font-size: clamp(0.84rem, 1.15vw, 0.94rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  overflow-wrap: anywhere;
}

.msg-btn:hover {
  border-color: rgba(127, 177, 255, 0.38);
  color: var(--champagne);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 24px rgba(127, 177, 255, 0.14);
}

.msg-btn.is-selected {
  border-color: rgba(127, 177, 255, 0.58);
  color: var(--gold-soft);
  background: linear-gradient(180deg, rgba(127, 177, 255, 0.2), rgba(231, 96, 116, 0.1) 38%, rgba(0, 0, 0, 0.5));
  box-shadow:
    0 0 0 1px rgba(127, 177, 255, 0.24),
    0 16px 36px rgba(0, 0, 0, 0.5),
    0 0 32px rgba(127, 177, 255, 0.18);
}

.msg-btn:focus-visible {
  outline: 2px solid rgba(127, 177, 255, 0.58);
  outline-offset: 2px;
}

.nickname-block {
  margin-top: 0.15rem;
}

.nickname-block.is-collapsed {
  display: none;
}

/* ——— Mobile: один вертикальный поток страницы — hero → квиз → реквизиты; без отдельного «ящика» и без внутренних скроллов ——— */
@media (max-width: 900px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
    overflow-y: visible;
    height: auto;
  }

  /*
   * Один скролл-контейнер (body), без overflow-y на html — иначе WebKit на краю листа
   * даёт рывки из‑за «двойного» оверскролла и смены 100dvh при панелями браузера.
   */
  body {
    height: auto;
    min-height: 100%;
    min-height: 100svh;
    overflow-x: clip;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  .app {
    flex-direction: column;
    min-height: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    overflow-x: clip;
  }

  /* svh не прыгает при скрытии адресной строки (в отличие от vh) — меньше рывков при скролле как на квизе */
  .hero {
    flex: 0 0 auto;
    min-height: clamp(140px, 28svh, 220px);
    max-height: 32svh;
  }

  .hero__requisites {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 1;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    margin-top: 0;
    padding: clamp(1rem, 3.5vw, 1.35rem) 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    overflow: visible;
    flex: 0 0 auto;
    flex-shrink: 0;
    align-self: stretch;
    order: 2;
  }

  .hero__requisites .hero-req {
    max-width: 36rem;
    margin: 0 auto;
    font-size: clamp(0.62rem, 2.6vw, 0.72rem);
    line-height: 1.38;
    text-shadow: none;
    color: rgba(255, 255, 255, 0.9);
  }

  .hero__requisites .hero-req__company {
    font-size: clamp(0.64rem, 2.75vw, 0.76rem);
    text-shadow: none;
    color: rgba(252, 248, 238, 0.96);
  }

  .hero__requisites .hero-req__activity-title {
    font-size: clamp(0.6rem, 2.5vw, 0.68rem);
    text-shadow: none;
  }

  .hero-req__row {
    grid-template-columns: 2.65rem 1fr;
    gap: 0.25rem 0.35rem;
  }

  .shell {
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: clamp(0.65rem, 2vw, 1rem) clamp(1rem, 4vw, 1.35rem)
      max(1.5rem, env(safe-area-inset-bottom, 0px) + 0.75rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--black);
  }

  /* Вопросы квиза — на всю ширину по X (кроме safe-area); реквизиты остаются с отступами за счёт своего padding */
  .shell:has(.view--quiz.is-active) {
    padding-left: 0;
    padding-right: 0;
  }

  .shell__shine {
    display: none;
  }

  .shell__chrome {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    gap: clamp(1.25rem, 4vw, 2rem);
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .panel {
    flex: 0 0 auto;
    order: 1;
    min-height: 0;
    height: auto;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .panel__inner {
    flex: 0 0 auto;
    min-height: 0;
    height: auto;
    overflow: visible;
    position: relative;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .panel__inner::before {
    display: none;
  }

  .view {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    height: auto;
    display: none;
    overflow-x: hidden;
    overflow-y: visible;
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
    pointer-events: none;
    transition: none;
    padding: clamp(1.35rem, 4.5vw, 2.25rem) clamp(1.1rem, 3.5vw, 1.65rem);
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom, 0px) + 0.5rem);
    box-sizing: border-box;
    align-items: stretch;
  }

  /* Загрузка — по центру по X (общий .view тянул align-items: stretch) */
  .view--loading.is-active {
    align-items: center;
  }

  .view--loading .loading__icon {
    align-self: center;
  }

  .view--loading .loading__title,
  .view--loading .loading__hint {
    text-align: center;
    width: 100%;
    max-width: 22rem;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .view--loading .progress {
    align-self: center;
    width: 100%;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
  }

  .view.is-active {
    display: flex;
    z-index: 2;
    pointer-events: auto;
  }

  .view--start {
    justify-content: flex-start;
    overflow-x: hidden;
    overflow-y: visible;
  }

  /* Как квиз: блок по высоте контента, без flex-grow и «пружины» — стабильный скролл body */
  .view--start .start-stack--premium {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
  }

  .view--start.is-active .premium-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .view--quiz.is-active {
    justify-content: flex-start;
    padding-bottom: max(1.35rem, env(safe-area-inset-bottom, 0px) + 1.1rem);
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(0px, env(safe-area-inset-right, 0px));
    width: 100%;
    max-width: 100%;
  }

  .view--final.is-active {
    justify-content: flex-start;
    overflow: visible;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px) + 0.45rem);
  }

  .view--final .field-label--phone-final {
    margin-top: 0.1rem;
  }

  .view--final .final__scroller {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  }

  .view--final .btn--primary {
    position: relative;
    bottom: auto;
    margin-top: 0.5rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 0 0 1px rgba(127, 177, 255, 0.24),
      0 16px 40px rgba(0, 0, 0, 0.5);
  }

  .app:has(.view--final.is-active) .hero {
    min-height: clamp(120px, 22svh, 180px);
    max-height: 28svh;
  }

  /* Реквизиты всегда в общем потоке под квизом, без скрытия на финале */
  .shell:has(.view--quiz.is-active) .hero__requisites {
    padding-left: clamp(1rem, 4vw, 1.35rem);
    padding-right: clamp(1rem, 4vw, 1.35rem);
  }

  .view--final .msg-btn {
    min-height: 52px;
    padding: 0.35rem;
  }

  .view--final .messenger-grid {
    gap: 0.3rem;
  }

  .view--final .block-label {
    margin: 0.15rem 0 0.2rem;
    font-size: clamp(0.78rem, 3.2vw, 0.88rem);
  }

  .view--final .final__title {
    font-size: clamp(0.98rem, 4vw, 1.18rem);
  }

  .view--final .final__lead {
    font-size: clamp(0.84rem, 3.5vw, 0.96rem);
    margin-bottom: 0.15rem;
  }

  .premium-title {
    font-size: clamp(1.08rem, 4.9vw, 1.38rem);
    gap: 0.32rem;
  }

  .premium-lead {
    font-size: clamp(1.02rem, 4.2vw, 1.22rem);
    margin-top: 0.12rem;
  }

  .premium-offer__text {
    font-size: clamp(0.92rem, 3.85vw, 1.06rem);
  }

  .premium-offer__figure {
    max-width: 10.5rem;
  }

  .premium-offer__gift {
    max-height: clamp(6.5rem, 36vw, 9rem);
  }

  .start-stack--premium {
    gap: clamp(0.55rem, 2.2vw, 0.95rem);
  }

  /* Главная: убираем vh из отступов — при скролле vh меняется и вёрстка дёргается */
  .view--start .premium-top {
    gap: clamp(0.65rem, 2.8vw, 1.05rem);
  }

  .view--start .premium-offer {
    gap: clamp(0.4rem, 2vw, 0.75rem);
    margin-top: 0.25rem;
  }

  .view--start .premium-cta {
    margin-top: 0.25rem;
  }

  .btn-premium {
    padding: 1rem 1.15rem;
    font-size: clamp(0.82rem, 3.6vw, 0.95rem);
  }

  .step-pill {
    font-size: clamp(0.88rem, 3.8vw, 1.05rem);
    padding: 0.45rem 0.85rem;
  }

  .btn--quiz-back {
    font-size: clamp(0.82rem, 3.5vw, 0.95rem);
    padding: 0.72rem 1rem;
  }

  .btn--quiz-vin-skip {
    font-size: clamp(0.8rem, 3.4vw, 0.92rem);
    padding: 0.55rem 0.85rem;
  }

  .field-label {
    font-size: clamp(0.78rem, 3.4vw, 0.9rem);
  }

  .quiz-stage .field-label {
    font-size: clamp(1.56rem, 6.8vw, 1.8rem);
  }

  .field {
    font-size: max(16px, clamp(0.84rem, 3.6vw, 0.95rem));
    padding: 0.78rem 0.92rem;
  }

  .input-wrap--phone .field--phone {
    font-size: max(16px, clamp(0.84rem, 3.6vw, 0.95rem));
  }

  .view--quiz .quiz-stages {
    min-height: clamp(96px, 20vh, 150px);
  }

  .msg-btn {
    min-height: 64px;
  }
}

@media (max-width: 480px) {
  .messenger-grid {
    gap: 0.35rem;
  }
}

/* Сжатие hero только в мобильном потоке: на десктопе max-height здесь ломал колонку (фото — полоска сверху, снизу пустой фон) при низком dvh / зуме */
@media (max-height: 700px) and (max-width: 900px) {
  .hero {
    min-height: clamp(120px, 22svh, 180px);
    max-height: 26svh;
  }
}

@media (max-height: 700px) {
  .start-stack--premium {
    gap: clamp(0.4rem, 2vw, 0.65rem);
  }

  .premium-top {
    gap: 0.5rem;
  }

  .premium-lead {
    margin-top: 0.1rem;
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  }

  .premium-offer__text {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
  }

  .premium-offer__gift {
    max-height: clamp(5.75rem, 28vw, 7.5rem);
  }

  .premium-cta__pointer {
    transform: scale(0.92);
  }

  .btn-premium {
    padding: 0.82rem 1.05rem;
    font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  }

  .view--final .final__title {
    font-size: clamp(1.02rem, 3.8vw, 1.18rem);
  }

  .msg-btn {
    min-height: 58px;
    gap: 0.25rem;
  }

  .btn {
    padding: 0.72rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__glow,
  .hero__streak {
    animation: none !important;
  }

  .premium-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .premium-cta__arrow {
    animation: none !important;
    opacity: 0.88;
    transform: translateY(3px);
  }

  .premium-offer__line--a,
  .premium-offer__line--b,
  .premium-offer__accent,
  .premium-offer__discount,
  .premium-offer__ring,
  .premium-offer__gift {
    animation: none !important;
  }

  .premium-offer__line--a,
  .premium-offer__line--b {
    opacity: 1;
    transform: none;
  }

  .premium-offer__gift {
    transform: none;
  }

  .premium-offer__ring {
    opacity: 0.75;
    transform: scale(1);
  }
}
