/* ============================================================
   U POP TREND — casting landing
   Palette locked to brand deck. Dark theme, one accent system:
   GOLD = structure/metal · MAGENTA→VIOLET = the "pop" action
   TURQUOISE = spark/focus · IVORY = text · MIDNIGHT = ground
   ============================================================ */

:root {
  /* brand */
  --midnight:  #06141C;
  --gold:      #C9A25A;
  --gold-lo:   #8F6A2D;
  --gold-hi:   #E7C983;
  --magenta:   #D63E8C;
  --violet:    #6A39D9;
  --turquoise: #18B8C9;
  --ivory:     #F2E4C6;
  --graphite:  #2A2F35;

  /* surfaces */
  --bg:        #050C11;
  --bg-2:      #081A23;
  --surface:   #0A1E28;
  --surface-2: #0D242F;

  /* ink */
  --ink:       #F2E4C6;
  --ink-70:    rgba(242,228,198,.72);
  --ink-50:    rgba(242,228,198,.52);
  --ink-34:    rgba(242,228,198,.34);

  /* lines */
  --line:      rgba(242,228,198,.10);
  --line-gold: rgba(201,162,90,.24);

  /* gradients */
  --pop:       linear-gradient(120deg, #D63E8C 0%, #6A39D9 100%);
  --pop-btn:   linear-gradient(120deg, #C9327F 0%, #6A39D9 100%); /* deeper magenta so white text clears WCAG AA */
  --pop-3:     linear-gradient(120deg, #D63E8C 0%, #6A39D9 55%, #18B8C9 110%);
  --metal:     linear-gradient(168deg, #F4DFA6 0%, #E7C983 22%, #C9A25A 55%, #9A7433 100%);

  /* motion */
  --e-quint:   cubic-bezier(.23, 1, .32, 1);
  --e-cubic:   cubic-bezier(.33, 1, .68, 1);
  --e-inout:   cubic-bezier(.645, .045, .355, 1);

  /* system */
  --nav-h: 74px;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --r-card: 18px;
  --r-input: 12px;

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-disp: "Unbounded", var(--font-sans);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip the off-screen reveal transforms (translateX) so they never
     open a sliver of horizontal scroll on mobile; `clip` (unlike hidden)
     does not create a scroll container, so position:sticky keeps working */
  overflow-x: clip;
  /* keep anchor jumps from landing section headings under the sticky nav */
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: .006em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed base vignette — keeps the hero near-black; colour is added by .bgfx */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% -12%, rgba(255,255,255,.035), transparent 58%);
}

/* scroll colour journey: stacked primary washes cross-fade per section */
.bgfx { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bgfx b { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity 1.6s var(--e-inout); }
.bgfx .g { background: radial-gradient(1150px 860px at 12% 6%, rgba(201,162,90,.22), transparent 62%); }
.bgfx .v { background: radial-gradient(1250px 980px at 88% 2%, rgba(106,57,217,.28), transparent 60%); }
.bgfx .t { background: radial-gradient(1150px 980px at 52% 108%, rgba(24,184,201,.26), transparent 60%); }
.bgfx .m { background: radial-gradient(1150px 880px at 16% 96%, rgba(214,62,140,.26), transparent 60%); }
/* hero (default): all washes off -> dark black */
body.sec-who    .bgfx .g { opacity: 1; }
body.sec-how    .bgfx .g { opacity: .55; } body.sec-how .bgfx .v { opacity: 1; }
body.sec-cities .bgfx .v { opacity: .6; }  body.sec-cities .bgfx .t { opacity: 1; }
body.sec-faq    .bgfx .t { opacity: .6; }  body.sec-faq .bgfx .m { opacity: 1; }
body.sec-apply  .bgfx .g { opacity: .55; } body.sec-apply .bgfx .v { opacity: .7; }
body.sec-apply  .bgfx .t { opacity: .6; }  body.sec-apply .bgfx .m { opacity: .85; }
/* film grain — fixed, cheap, never on a scrolling layer */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }

/* browser surfaces carry the brand too */
::selection { background: var(--gold); color: var(--midnight); }
html { scrollbar-width: thin; scrollbar-color: var(--gold-lo) var(--bg); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--gold-lo), var(--graphite)); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-lo); }

.skip-link {
  position: fixed; top: 10px; left: 50%; translate: -50% -160%;
  z-index: 100; background: var(--ink); color: var(--midnight);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  transition: translate .25s var(--e-quint);
}
.skip-link:focus { translate: -50% 0; }


#who-title .title-line {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 0.3em;
  font-weight: 800;
}

@media (max-width: 768px) {
  #who-title .title-line {
    font-size: clamp(1.4rem, 5vw, 2rem);
    line-height: 1.2;
  }
}

/* ---------- shared type ---------- */
.hl {
  background: var(--metal);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 8s var(--e-inout) infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.h-display {
  font-family: var(--font-disp);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
  color: var(--ink-70);
  max-width: 46ch;
  margin: 1.1rem 0 0;
  line-height: 1.55;
}
.section-head { max-width: var(--maxw); margin: 0 auto clamp(2rem, 5vw, 3.4rem); }
.section-head .lede { margin-top: .9rem; }

/* ---------- numbered section marks — the page's wayfinding ---------- */
.sec-mark {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 clamp(14px, 2.4vw, 22px);
}
.sec-mark--center { justify-content: center; }
.who .sec-mark { justify-content: center; }
/* number sits upright over a rotated girih diamond (echoes the logo lattice) */
.sec-mark__no {
  position: relative; flex: 0 0 auto;
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--font-disp); font-weight: 700; font-size: .8rem;
  font-variant-numeric: tabular-nums; color: var(--gold-hi);
}
.sec-mark__no::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid var(--gold); border-radius: 5px;
  rotate: 45deg; opacity: .8;
  box-shadow: 0 0 18px -4px rgba(201,162,90,.5);
}
.sec-mark__no::after {
  content: ""; position: absolute; inset: 9px;
  border: 1px solid rgba(201,162,90,.35); border-radius: 3px;
  rotate: 45deg;
}
.sec-mark__rule {
  height: 1.5px; width: clamp(28px, 4vw, 56px); border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform-origin: left; scale: 0 1;
  transition: scale .8s var(--e-quint) .25s;
}
.sec-mark.is-in .sec-mark__rule { scale: 1 1; }
.sec-mark__label {
  font-family: var(--font-disp); font-weight: 600; font-size: .74rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}

/* ---------- buttons ---------- */
.btn {
  --tsy: 0px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-sans);
  font-weight: 700; 
  font-size: 0.95rem;
  letter-spacing: .01em;
  padding: 0.7em 1.4em;
  border: 0; 
  border-radius: 10px; 
  color: var(--ink); background: transparent;
  cursor: pointer; white-space: nowrap;
  transform: translateY(var(--tsy));
  transition: transform .18s var(--e-quint), box-shadow .3s var(--e-quint), filter .3s ease, border-radius .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--lg { 
  font-size: 1.05rem; 
  padding: 0.85em 1.8em;
}
.btn--block { width: 100%; }

.btn--pop {
  color: #fff;
  font-weight: 800;
  background: var(--pop-btn);
  background-size: 220% 220%;
  box-shadow: 0 6px 18px -6px rgba(214,62,140,.55), inset 0 1px 0 rgba(255,255,255,.22);
  overflow: hidden;
  /* living gradient: the magenta->violet slowly breathes even at rest */
  animation: popShift 7s var(--e-inout) infinite;
}
@keyframes popShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.btn--pop:hover {
  --tsy: -2px;
  scale: 1.02;
  box-shadow: 0 12px 26px -8px rgba(214,62,140,.65), 0 4px 12px -6px rgba(106,57,217,.5), inset 0 1px 0 rgba(255,255,255,.3);
}

/* Создаем красивый широкий блик
   (.wiz-next is excluded: its ::after carries the drawn chevron instead) */
.btn--pop:not(.wiz-next)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.4) 50%, transparent 80%);
  background-size: 200% 100%; background-position: 200% 0;
  opacity: 0; transition: opacity .3s ease;
}

/* Запускаем цикличную анимацию блика при наведении */
.btn--pop:not(.wiz-next):hover::after { 
  opacity: 1; 
  animation: sheen 1.5s var(--e-cubic) infinite; 
}

.btn--pop:active { 
  --tsy: -1px; scale: .985; 
}

/* Обновляем ключевые кадры для бесконечного блика */
@keyframes sheen { 
  from { background-position: 200% 0; } 
  to { background-position: -200% 0; } 
}
/* button loading */
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .55; }
.btn.is-loading .btn__spinner { display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero CTA: radiating pulse ring on top of the living gradient */
.hero__cta .btn--pop {
  animation:
    popShift 7s var(--e-inout) infinite,
    ctaPulse 2.8s ease-out 1.4s infinite;
}
/* pause the ring while interacting so the hover/active shadow can apply
   (a running box-shadow animation outranks the hover declaration) */
.hero__cta .btn--pop:hover,
.hero__cta .btn--pop:active {
  animation: popShift 7s var(--e-inout) infinite;
}
@keyframes ctaPulse {
  0% {
    box-shadow: 0 6px 18px -6px rgba(214,62,140,.55), inset 0 1px 0 rgba(255,255,255,.22),
      0 0 0 0 rgba(214,62,140,.5);
  }
  70%, 100% {
    box-shadow: 0 6px 18px -6px rgba(214,62,140,.55), inset 0 1px 0 rgba(255,255,255,.22),
      0 0 0 16px rgba(214,62,140,0);
  }
}

/* drawn chevrons on the wizard nav buttons */
.wiz-next::after, .wiz-back::before {
  content: ""; width: 13px; height: 13px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3l5 5-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M6 3l5 5-5 5' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--e-quint);
}
.wiz-back::before { rotate: 180deg; }
.wiz-next:hover::after { transform: translateX(4px); }
.wiz-back:hover::before { transform: translateX(4px); } /* rotated: +x moves it left */

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  transition: background .4s var(--e-quint), border-color .4s ease, backdrop-filter .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(6,20,28,.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
/* ============================================================
   NAV (Desktop Navigation)
   ============================================================ */
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 var(--pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

/* Brand mark (left) */
.nav__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  transition: opacity .25s var(--e-quint);
}
.nav__brand img {
  height: 38px;
  width: auto;
  display: block;
}
.nav__brand:hover { opacity: .82; }

/* Primary links (center) */
.nav__desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 34px);
  flex: 1 1 auto;
  justify-content: center;
}

.nav__desktop a {
  position: relative;
  color: var(--ink-70);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 6px 1px;
  transition: color 0.25s var(--e-quint);
  cursor: pointer;
}
/* clean per-link underline — robust, no JS offset math */
.nav__desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--e-quint);
}
.nav__desktop a:hover,
.nav__desktop a:focus-visible { color: var(--ink); }

/* current section lights up its nav link (body.sec-* is set on scroll) */
body.sec-who    .nav__desktop a[href="#who"],
body.sec-how    .nav__desktop a[href="#how"],
body.sec-cities .nav__desktop a[href="#cities"],
body.sec-faq    .nav__desktop a[href="#faq"] { color: var(--gold-hi); }
.nav__desktop a:hover::after,
.nav__desktop a:focus-visible::after { transform: scaleX(1); }

/* Actions (right) */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
/* CTA sized for the nav bar */
.nav__actions .btn--pop {
  padding: 0 1.25em;
  height: 40px;
  font-size: 0.9rem;
}

/* ============================================================
   HERO (Full Screen Hero Section - Centered, Minimal)
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--pad);
}

.hero__inner {
  max-width: 1000px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vh, 1.5rem);
  text-align: center;
}

.hero-title {
  font-family: var(--font-disp);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  /* real metallic gold (same leaf as .hl), no glow behind it */
  background: var(--metal);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 8s var(--e-inout) infinite;
  text-wrap: balance;
}

.hero__cta { 
  position: relative; 
  z-index: 1;
  margin-top: 0;
}
/* Language select dropdown */
.langswitch-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 40px;
  background-color: rgba(255,255,255,.05);
  border: 1px solid var(--line-gold);
  border-radius: 10px;
  padding: 0 30px 0 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--e-quint), border-color 0.2s var(--e-quint), box-shadow 0.2s var(--e-quint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A25A' d='M1.5 4.5L6 9l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
}
.langswitch-select:hover {
  background-color: rgba(255,255,255,.08);
  border-color: var(--gold);
}
.langswitch-select:focus {
  outline: none;
  border-color: var(--turquoise);
  box-shadow: 0 0 0 2px rgba(24,184,201,.2);
}
.langswitch-select option {
  background: var(--bg-2);
  color: var(--ink);
  padding: 8px 12px;
}

.nav__burger { display: none; }

/* mobile menu */
.mobilemenu {
  display: none; flex-direction: column; gap: 4px;
  padding: 10px var(--pad) 22px;
  background: rgba(6,20,28,.96);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobilemenu a { padding: 15px 6px; font-weight: 600; font-size: 1.02rem; color: var(--ink-70); border-bottom: 1px solid var(--line); transition: color .2s var(--e-quint); }
.mobilemenu a:not(.btn):active,
.mobilemenu a:not(.btn):hover { color: var(--ink); }
.mobilemenu a.btn { margin-top: 16px; border-bottom: 0; color: #fff; justify-content: center; height: 50px; font-size: 1rem; }
.mobilemenu.is-open { display: flex; animation: menuIn .3s var(--e-quint); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Language select inside the mobile menu — full width */
.mobilemenu .langswitch-select {
  display: block;
  width: 100%;
  margin: 4px 0 8px;
}

/* The mobile menu belongs to burger widths only — never leak onto desktop
   (e.g. when the viewport is resized while the menu is open) */
@media (min-width: 821px) {
  .mobilemenu,
  .mobilemenu.is-open { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(8px, 2vh, 24px) var(--pad) clamp(48px, 8vh, 84px);
  overflow: hidden;
}
.hero__inner { max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: clamp(0.75rem, 2vh, 1.5rem); }

.hero__aura {
  position: absolute; z-index: 0;
  width: min(78vw, 720px); aspect-ratio: 1; top: 32%; left: 50%;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, rgba(214,62,140,.5), rgba(106,57,217,.5), rgba(24,184,201,.4), rgba(201,162,90,.35), rgba(214,62,140,.5));
  filter: blur(95px); opacity: .3;
  border-radius: 50%;
  animation: auraSpin 26s linear infinite, auraPulse 8s var(--e-inout) infinite;
}
@keyframes auraSpin { to { rotate: 360deg; } }
@keyframes auraPulse { 0%,100% { opacity: .24; scale: 1; } 50% { opacity: .38; scale: 1.07; } }

.hero__grain { display: none; }

.hero__logo {
  position: relative; 
  z-index: 1; 
  width: 100%; 
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-img {
  width: auto;
  height: auto;
  max-height: min(70vh, 760px);
  max-width: min(88vw, 1020px);
  margin: 0 auto;
  transform-origin: center 62%;
  /* depth shadow only — no gold glow */
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.55));
}

/* Living logo: a gentle breathing float. */
.is-ready .hero__logo img {
  animation: logoFloat 6s var(--e-inout) 1.1s infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(-0.5deg) scale(1); }
  50%      { transform: translateY(-14px) rotate(0.5deg) scale(1.018); }
}

.hero__cta { position: relative; z-index: 1; margin-top: clamp(16px, 3vh, 28px); }

/* hero entrance choreography (hidden only when JS is present) */
.js [data-animate] { opacity: 0; }
.is-ready [data-animate] { animation: riseIn .9s var(--e-quint) forwards; }
.is-ready .hero__logo  { animation: logoIn 1.15s var(--e-quint) .2s forwards; }
.is-ready .hero__cta   { animation-delay: .78s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes logoIn { 0% { opacity: 0; transform: translateY(26px) scale(.94); filter: blur(6px); }
                    100% { opacity: 1; transform: none; filter: blur(0); } }

/* ============================================================
   WHO / CHANCE + STATS
   ============================================================ */
.who { padding: clamp(64px, 12vh, 150px) var(--pad); }
.who__grid { max-width: 900px; margin: 0 auto; text-align: center; }
.who__text .h-display { max-width: 20ch; margin: 0 auto; }
.who .lede { margin-left: auto; margin-right: auto; }

.stats {
  list-style: none; padding: 0; margin: clamp(36px, 6vw, 62px) 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 20px);
}
.stat {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px;
  padding: clamp(26px, 3.4vw, 40px) clamp(16px, 2vw, 24px);
  border: 1px solid var(--line-gold); border-radius: var(--r-card);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  transition: transform .4s var(--e-quint), border-color .4s ease, background .4s ease;
}
/* metallic hairline crown that widens on hover */
.stat::before {
  content: ""; position: absolute; top: -1px; left: 26%; right: 26%; height: 2px;
  background: var(--metal); border-radius: 2px; opacity: .55;
  transition: left .45s var(--e-quint), right .45s var(--e-quint), opacity .45s ease;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(201,162,90,.5); background: linear-gradient(180deg, rgba(201,162,90,.07), rgba(255,255,255,0)); }
.stat:hover::before { left: 10%; right: 10%; opacity: 1; }
.stat__label { order: 0; color: var(--ink-70); font-size: clamp(.86rem, 1.3vw, .98rem); font-weight: 600; letter-spacing: .01em; }
.stat__num {
  order: 1; font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 3.7rem); line-height: 1; letter-spacing: -.02em;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps { padding: clamp(64px, 12vh, 150px) var(--pad); }
.steplist { list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw); }
.step {
  display: grid; grid-template-columns: minmax(88px, 200px) 1fr; gap: clamp(18px, 4vw, 60px);
  align-items: start;
  padding: clamp(28px, 4.5vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__idx {
  font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .82; letter-spacing: -.04em;
  background: var(--metal); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: .92;
}
.step__body { max-width: 52ch; }
.step__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin: 0 0 .5rem; line-height: 1.15; letter-spacing: -.01em; }
.step__body p { color: var(--ink-70); margin: 0; }
.step:hover .step__idx { opacity: 1; }

/* ============================================================
   CITIES / CARAVAN
   ============================================================ */
.cities { position: relative; padding: clamp(64px, 12vh, 150px) var(--pad); overflow: hidden; }
.cities .girih { position: absolute; inset: 0; z-index: 0; opacity: .05; pointer-events: none;
  color: var(--gold); -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 78%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 78%); }
.cities .girih svg { width: 100%; height: 100%; display: block; }
.cities > *:not(.girih) { position: relative; z-index: 1; }

.caravan {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
.caravan__line {
  position: absolute; top: 6px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold), var(--turquoise));
  transform-origin: left; scale: 0 1; opacity: .6;
  transition: scale 1.1s var(--e-cubic);
}
.caravan.is-in .caravan__line { scale: 1 1; }
.stop {
  position: relative; padding: 26px 10px 0; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stop__dot {
  position: absolute; top: -1px; left: 50%; translate: -50% 0;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
  box-shadow: 0 0 0 4px rgba(6,20,28,1);
  transition: transform .35s var(--e-quint), background .35s ease, box-shadow .35s ease;
}
.stop--final .stop__dot { background: var(--pop); border-color: transparent; }
/* the final stop's dot radiates */
.stop--final .stop__dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(214,62,140,.55);
  animation: dotPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes dotPulse {
  0%       { transform: scale(.55); opacity: 1; }
  70%,100% { transform: scale(1.5); opacity: 0; }
}
.stop__no { font-family: var(--font-disp); font-size: .78rem; color: var(--ink-34); font-weight: 600; letter-spacing: .08em; }
.stop__city { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.5rem); letter-spacing: -.01em; }
.stop__date {
  color: var(--ink-70); font-size: clamp(.8rem, 1.2vw, .9rem); font-weight: 600;
  margin-top: 4px; padding: 4px 12px; border: 1px solid var(--line-gold); border-radius: 999px;
  background: rgba(201,162,90,.06);
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.stop:hover .stop__date { border-color: var(--gold); color: var(--gold-hi); background: rgba(201,162,90,.12); }
.stop--final .stop__date { color: var(--gold-hi); border-color: rgba(201,162,90,.5); }
.stop__badge {
  margin-top: 7px; padding: 4px 12px; border-radius: 999px;
  font-family: var(--font-disp); font-weight: 700; font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
  background: var(--pop);
  box-shadow: 0 6px 16px -6px rgba(214,62,140,.6);
}
.stop:hover .stop__dot { transform: translateX(-50%) scale(1.35); background: var(--gold); }
.stop:hover .stop__city { color: var(--gold-hi); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: clamp(64px, 12vh, 150px) var(--pad); }
.accordion { max-width: 860px; margin: 0 auto; }
.ac { border-top: 1px solid var(--line); }
.ac:last-child { border-bottom: 1px solid var(--line); }
.ac__q {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: clamp(20px, 3vw, 30px) 4px; background: transparent; border: 0; cursor: pointer;
  text-align: left; color: var(--ink);
  font-family: var(--font-disp); font-weight: 500; font-size: clamp(1rem, 1.9vw, 1.28rem); letter-spacing: -.01em;
  transition: color .25s ease;
}
/* questions carry the same numbering language as the rest of the page
   (real aria-hidden spans, so the number stays out of the accessible name) */
.ac__no {
  flex: 0 0 30px;
  font-size: .78rem; font-weight: 700; color: var(--gold);
  opacity: .55; letter-spacing: .08em;
  transition: opacity .25s ease;
}
.ac__q:hover .ac__no, .ac__q[aria-expanded="true"] .ac__no { opacity: 1; }
.ac__q > span[data-i18n] { flex: 1; }
.ac__ico { margin-left: auto; }
.ac__q:hover { color: var(--gold-hi); }
.ac__ico { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.ac__ico::before, .ac__ico::after {
  content: ""; position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  background: var(--gold); border-radius: 2px;
  transition: transform .35s var(--e-quint), opacity .3s ease;
}
.ac__ico::before { width: 16px; height: 2px; }
.ac__ico::after  { width: 2px; height: 16px; }
.ac__q[aria-expanded="true"] .ac__ico::after { transform: scaleY(0); opacity: 0; }
.ac__q[aria-expanded="true"] .ac__ico::before { background: var(--gold-hi); }
.ac__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .42s var(--e-quint); }
.ac__q[aria-expanded="true"] + .ac__panel { grid-template-rows: 1fr; }
.ac__inner { overflow: hidden; }
.ac__inner p { margin: 0; padding: 0 4px clamp(22px, 3vw, 30px) 50px; color: var(--ink-70); max-width: 66ch; }
@media (max-width: 560px) { .ac__inner p { padding-left: 4px; } }

/* ============================================================
   APPLY / FORM
   ============================================================ */
.apply { padding: clamp(64px, 12vh, 150px) var(--pad) clamp(80px, 12vh, 150px); }
.apply__head { max-width: 760px; margin: 0 auto clamp(28px, 5vw, 46px); text-align: center; }
.apply__kicker {
  font-family: var(--font-disp); font-weight: 700;
  font-size: clamp(1.6rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.02em;
  margin: 0; text-wrap: balance;
}
.card {
  position: relative; max-width: 680px; margin: 0 auto;
  border: 1px solid var(--line-gold); border-radius: var(--r-card);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(26px, 4.5vw, 46px);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.card__glow {
  position: absolute; inset: -1px; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(214,62,140,.16), transparent 60%);
}
/* metallic crown + girih corner ornaments on the anketa card */
.card::before {
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 2px;
  background: var(--metal); opacity: .7; border-radius: 2px; z-index: 1;
}
.card__corner {
  position: absolute; z-index: 1; width: 46px; height: 46px; pointer-events: none;
  color: var(--gold); opacity: .3;
}
.card__corner svg { width: 100%; height: 100%; display: block; }
.card__corner--tl { top: 10px; left: 10px; }
.card__corner--tr { top: 10px; right: 10px; scale: -1 1; }
.formwrap, .success { position: relative; z-index: 1; }
.card__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 0 0 .4rem; letter-spacing: -.01em; }
.card__sub { color: var(--ink-70); margin: 0 0 clamp(20px, 3vw, 28px); font-size: .98rem; }

.form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .84rem; font-weight: 600; color: var(--ink-70); letter-spacing: .01em; transition: color .25s ease; }
.field:focus-within > label { color: var(--gold-hi); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  background: rgba(6,20,28,.6); border: 1px solid var(--line);
  border-radius: var(--r-input); padding: 13px 15px;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 46px; line-height: 1.5; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23C9A25A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px;
}
/* dark date-picker text/icon in WebKit */
.field input[type="date"] { color-scheme: dark; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--turquoise);
  box-shadow: 0 0 0 3px rgba(24,184,201,.18); background: rgba(6,20,28,.85);
}
.field.has-err input, .field.has-err select, .field.has-err textarea { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(214,62,140,.16); }
/* required marker */
.field--req > label::after { content: " *"; color: var(--gold); font-weight: 700; }
/* casting-date read-out */
.field__date { font-family: var(--font-disp); font-weight: 600; color: var(--gold-hi); font-size: 1rem; padding: 13px 2px; display: block; }
.field__err { font-size: .8rem; color: #ff9fc6; font-weight: 500; }
.field__err--consent { display: block; margin-top: -4px; }

.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; cursor: pointer; margin-top: 4px; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line-gold);
  background: rgba(6,20,28,.6); position: relative; flex: 0 0 auto; margin-top: 1px;
  transition: background .25s ease, border-color .25s ease;
}
.consent__box::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='M2.5 7.5l3 3 6-7' stroke='%2306141C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  opacity: 0; scale: .6; transition: opacity .2s ease, scale .2s var(--e-quint);
}
.consent input:checked + .consent__box { background: var(--metal); border-color: transparent; }
.consent input:checked + .consent__box::after { opacity: 1; scale: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--turquoise); outline-offset: 2px; }
.consent__text { font-size: .86rem; color: var(--ink-70); line-height: 1.5; }
.consent.has-err .consent__box { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(214,62,140,.16); }
/* checkbox rows presented as cards inside the wizard */
.consent--req { padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r-input); background: rgba(255,255,255,.02); margin-top: 0; transition: border-color .25s ease, background .25s ease; }
.consent--req:hover { border-color: var(--line-gold); }
.consent--req:has(input:checked) { border-color: var(--line-gold); background: rgba(201,162,90,.06); }

/* ============================================================
   ANKETA WIZARD
   ============================================================ */
/* progress stepper */
.wiz-progress { margin: 4px 0 clamp(22px, 3.5vw, 30px); }
.wiz-steps { list-style: none; display: flex; gap: 2px; padding: 0 0 2px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wiz-steps::-webkit-scrollbar { display: none; }
.wiz-steps__item { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--ink-34); font-size: .8rem; font-weight: 600; cursor: default; transition: color .25s ease; }
.wiz-steps__item.is-reached { cursor: pointer; }
.wiz-steps__item.is-reached:hover { color: var(--ink-70); }
.wiz-steps__num { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--line-gold); font-family: var(--font-disp); font-size: .76rem; color: var(--ink-50); background: rgba(255,255,255,.02); flex: 0 0 auto; transition: background .3s var(--e-quint), color .3s var(--e-quint), border-color .3s var(--e-quint), box-shadow .3s var(--e-quint); }
.wiz-steps__item.is-done .wiz-steps__num { background: var(--metal); color: var(--midnight); border-color: transparent; }
.wiz-steps__item.is-active { color: var(--ink); }
.wiz-steps__item.is-active .wiz-steps__num { border-color: var(--gold); color: var(--gold-hi); box-shadow: 0 0 0 3px rgba(201,162,90,.18); }
.wiz-steps__label { white-space: nowrap; }

.wiz-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.wiz-bar__fill {
  display: block; height: 100%; width: 100%; border-radius: inherit;
  background: var(--pop-3); background-size: 300% 100%;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--e-quint);
  animation: barFlow 4s linear infinite; /* the filled part glimmers */
}
@keyframes barFlow { to { background-position: -300% 0; } }

/* panels */
.wiz-form { display: block; }
.wiz-panel { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: grid; gap: 16px; }
.wiz-panel:not(.is-active) { display: none; }
.wiz-panel.is-active { animation: wizIn .42s var(--e-quint); }
@keyframes wizIn { from { opacity: 0; transform: translateY(12px); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }
.wiz-panel__title { display: flex; align-items: center; gap: 12px; font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.08rem, 2.2vw, 1.32rem); color: var(--ink); letter-spacing: -.01em; padding: 0; margin: 0 0 2px; }
.wiz-panel__num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--metal); color: var(--midnight); font-family: var(--font-disp); font-weight: 700; font-size: .92rem; flex: 0 0 auto; }

.wiz-sublabel { font-family: var(--font-disp); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 10px 0 -6px; }
.wiz-note { font-size: .82rem; color: var(--ink-50); line-height: 1.55; margin: 4px 0 0; }
.wiz-note--accent { color: var(--gold-hi); font-weight: 600; margin: -4px 0 2px; }
.wiz-panel__err { font-size: .84rem; color: #ff9fc6; font-weight: 600; margin: 6px 0 0; }

/* performance-rule callout */
.wiz-rule { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-input); border: 1px solid var(--line-gold); background: linear-gradient(180deg, rgba(201,162,90,.09), rgba(255,255,255,0)); }
.wiz-rule__badge { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--metal); color: var(--midnight); font-family: var(--font-disp); font-weight: 800; }
.wiz-rule__title { font-family: var(--font-disp); font-weight: 600; color: var(--gold-hi); margin: 0 0 4px; font-size: .96rem; }
.wiz-rule__text { margin: 0; font-size: .86rem; color: var(--ink-70); line-height: 1.55; }

/* navigation */
.wiz-nav { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.wiz-back { margin-right: auto; border: 1px solid var(--line-gold); color: var(--ink-70); background: transparent; }
.wiz-back:hover { color: var(--ink); border-color: var(--gold); }
.wiz-count { font-family: var(--font-disp); font-size: .85rem; color: var(--ink-50); }
.wiz-count b { color: var(--gold-hi); }
.wiz-next, .wiz-submit { min-width: 148px; }

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .wiz-steps { justify-content: space-between; gap: 2px; }
  .wiz-steps__label { display: none; }
  .wiz-steps__item { padding: 4px; gap: 0; }
  .wiz-nav { gap: 10px; }
  .wiz-count { width: 100%; order: -1; text-align: center; margin-bottom: 2px; }
  .wiz-next, .wiz-submit { flex: 1 1 auto; }
}

/* success */
.success { text-align: center; padding: clamp(14px, 3vw, 30px) 0; animation: riseIn .6s var(--e-quint); }
.success__mark { position: relative; color: var(--turquoise); display: flex; justify-content: center; margin-bottom: 18px; }
.success__mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px;
  translate: -50% -50%; border-radius: 50%;
  border: 2px solid rgba(24,184,201,.5);
  animation: dotPulse 2s ease-out .4s infinite;
  pointer-events: none;
}
.success__tick { stroke-dasharray: 46; stroke-dashoffset: 46; animation: draw .6s var(--e-cubic) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success__title { font-family: var(--font-disp); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .6rem; }
.success__text { color: var(--ink-70); max-width: 42ch; margin: 0 auto; }


/* ============================================================

   FOOTER

   ============================================================ */

.foot {
  border-top: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(201,162,90,.03), transparent 40%);
  padding: clamp(36px, 6vw, 56px) var(--pad) clamp(20px, 3vw, 28px);
}
.foot__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(24px, 4vw, 36px);
}

/* top row: brand left · partner logos right, split by hairlines */
.foot__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.foot__brand { display: flex; flex-direction: column; gap: 6px; }
.foot__tag {
  font-family: var(--font-disp); font-weight: 700; font-size: 1.15rem;
  background: var(--pop-3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.foot__details { color: var(--ink-70); font-size: .92rem; }
.foot__details a { color: var(--gold-hi); font-weight: 700; }
.foot__details a:hover { text-decoration: underline; text-underline-offset: 3px; }

.foot__logos { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); flex-wrap: wrap; }
.foot__logo {
  display: block; height: clamp(44px, 5vw, 58px); width: auto; object-fit: contain;
  opacity: .85; filter: grayscale(12%);
  transition: opacity .3s ease, transform .3s var(--e-quint), filter .3s ease;
}
.foot__logo--sq { height: clamp(56px, 6vw, 72px); }
.foot__logo:hover { opacity: 1; transform: translateY(-3px); filter: grayscale(0%); }

/* the "|" dividers — gold hairlines, not typed pipes */
.foot__sep {
  width: 1px; height: 34px; flex: 0 0 auto;
  background: linear-gradient(180deg, transparent, var(--line-gold) 30%, var(--line-gold) 70%, transparent);
}
.foot__sep--sm { height: 12px; background: var(--line-gold); }

/* bottom legal bar */
.foot__bottom {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  padding-top: clamp(16px, 2.5vw, 22px);
  border-top: 1px solid var(--line);
  color: var(--ink-34); font-size: .82rem;
}
.foot__credit { color: var(--ink-50); }
.foot__credit a { color: var(--gold-hi); font-weight: 600; }
.foot__credit a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
/* bidirectional reveals: replay on scroll up AND down, with varied flavours */
.reveal { transition: opacity .7s var(--e-quint), transform .75s var(--e-quint), filter .7s var(--e-quint); will-change: opacity, transform; }
.js .reveal            { opacity: 0; transform: translateY(46px); }
.js .reveal.from-above { transform: translateY(-46px); }      /* slide in from the top when scrolling up */
.js .reveal--left      { transform: translateX(-64px); }
.js .reveal--right     { transform: translateX(64px); }
.js .reveal--scale     { transform: scale(.8); }
.js .reveal--blur      { transform: translateY(30px); filter: blur(14px); }
.js .reveal--rotate    { transform: rotate(-5deg) translateY(40px) scale(.9); transform-origin: bottom left; }
.reveal.is-in { opacity: 1 !important; transform: none !important; filter: none !important; }
/* stagger children of a revealed group */
.caravan .stop  { transition-delay: calc(var(--i, 0) * 100ms); }
.steplist .step { transition-delay: calc(var(--i, 0) * 75ms); }
.stats .stat    { transition-delay: calc(var(--i, 0) * 95ms); }
.accordion .ac  { transition-delay: calc(var(--i, 0) * 60ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 620px) {
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .step {
    /* Первая колонка подстраивается под ширину цифры, текст занимает остальное */
    grid-template-columns: min-content 1fr;
    /* Уменьшаем слишком большой отступ для мобильных экранов */
    gap: 20px; 
  }
}
@media (max-width: 820px) {
  .nav__desktop { display: none; }
  .nav__actions { display: none; }
  .nav__burger {
    display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; align-items: center;
    width: 42px; height: 42px; border: 1px solid var(--line-gold); border-radius: 12px;
    background: transparent; cursor: pointer;
    margin-left: auto;
  }
  .nav__burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--e-quint), opacity .3s ease; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .caravan { grid-template-columns: 1fr; gap: 0; }
  .caravan__line { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; transform-origin: top;
    background: linear-gradient(180deg, var(--gold-lo), var(--gold), var(--turquoise)); scale: 1 0; }
  .caravan.is-in .caravan__line { scale: 1 1; }
  /* wrap so the date chip and final badge drop to a second line on narrow
     phones instead of clipping past the viewport edge */
  .stop { flex-direction: row; flex-wrap: wrap; align-items: baseline; row-gap: 4px; gap: 12px; text-align: left; padding: 20px 0 20px 30px; }
  .stop__dot { top: 24px; left: 1px; translate: 0 0; }
  .stop:hover .stop__dot { transform: scale(1.35); }
  .stop__no { min-width: 2.4ch; }
  .stop__city { margin-right: auto; }
  .stop__date { white-space: nowrap; margin-top: 0; }
  .stop__badge { white-space: nowrap; margin-top: 0; }
  
  /* Mobile nav improvements */
  .nav__inner {
    padding: 0 16px;
    height: auto;
    min-height: 74px;
  }
  .langswitch-select {
    font-size: 0.75rem;
    padding: 6px 28px 6px 10px;
  }
}



@media (max-width: 640px) {
  .foot__top { flex-direction: column; align-items: center; text-align: center; }
  .foot__brand { align-items: center; }
  .foot__logos { justify-content: center; }
  .foot__logo { height: 40px; }
  .foot__logo--sq { height: 52px; }
  .foot__logos .foot__sep { height: 26px; } /* keep the legal bar's --sm at 12px */
  .sec-mark { gap: 10px; }
  .sec-mark__rule { width: 22px; }
}
/* below ~480px the logo row and legal bar wrap — a divider dangling at a
   line end divides nothing, so drop them and let the wrap do the grouping */
@media (max-width: 479px) {
  .foot__sep { display: none; }
}

/* ============================================================
   REDUCED MOTION — collapse everything to instant
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-animate], .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__aura { animation: none; }
  .caravan__line { scale: 1 1 !important; }
  .success__tick { stroke-dashoffset: 0 !important; }
  /* the pulse rings only exist inside their keyframes — without motion
     they would freeze as solid rings, so remove them entirely */
  .stop--final .stop__dot::after,
  .success__mark::after { content: none; }
}

/* ============================================================
   HERO MOBILE STYLES
   ============================================================ */
@media (max-width: 768px) {
  .hero {
    min-height: calc(100dvh - var(--nav-h));
    padding: clamp(16px, 4vh, 32px) var(--pad) clamp(40px, 7vh, 72px);
  }

  .hero-logo-img {
    max-height: min(47vh, 430px);
    max-width: min(90vw, 520px);
  }

  .hero-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    margin-top: 0;
  }

  .hero__cta {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: clamp(18px, 4vh, 30px);
  }

  .hero__cta .btn--lg {
    width: 100%;
    max-width: 380px;
    padding: 16px 32px;
    font-size: 1.05rem;
  }
}

/* Desktop: hide button in hero, show only in nav */
@media (min-width: 769px) {
  .hero__cta {
    display: none;
  }

  .hero-logo-img {
    max-height: min(62vh, 680px);
    max-width: min(78vw, 880px);
  }

  .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-top: 0;
  }
}
