/* ============ GrantHub landing — dark luxury, ultra-minimal ============ */
:root {
  color-scheme: dark; /* сайт сам тёмный: браузеру не нужно затемнять его принудительно */
  --ink: #050505;
  --white: #ffffff;
  --gray-1: #a1a1aa;
  --gray-2: #52525b;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.10);
  --online: #3ddc84;
  --accent: #f5b301;
  --radius-card: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* the hidden attribute must win over display rules (the mobile menu and contact panel rely on it) */
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ink); }
body { -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Mockup background: blurred, darkened copy of the screen ---------- */
.mockup-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mockup-bg__inner {
  position: absolute; inset: -10%;
  background-size: cover; background-position: center;
  filter: blur(40px) brightness(0.28) saturate(0.6);
  transform: scale(1.1);
  background-image:
    radial-gradient(60% 40% at 50% 65%, rgba(255,255,255,.10), transparent 70%),
    radial-gradient(40% 30% at 20% 30%, rgba(255,255,255,.05), transparent 70%),
    linear-gradient(#0a0a0a, #050505);
}

/* ---------- Stage & 16:9 framed screen ---------- */
.stage { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
body { overflow-x: hidden; }
.screen {
  position: relative; width: min(1440px, 100%); aspect-ratio: 16 / 9; max-height: calc(100vh - 48px);
  background: var(--ink); border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,.06);
  /* strict 12-col grid metrics in px are emulated with a container query unit */
  container-type: inline-size;
  will-change: filter;
}
.screen__vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,.55) 100%),
              linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%); }
.screen__glow { position: absolute; left: 50%; top: 68%; width: 70%; height: 30%; transform: translate(-56%, -50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255,255,255,.16), rgba(255,255,255,.04) 45%, transparent 70%);
  filter: blur(30px); pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease-out); z-index: 1; }
.screen.is-ready .screen__glow { opacity: 1; }

/* ---------- Intro blur overlay ---------- */
.intro { position: fixed; inset: 0; z-index: 50; background: #000; pointer-events: none; opacity: 1; }
.screen.is-intro { filter: blur(40px) brightness(.4); }
.screen { transition: filter 1.2s var(--ease-out); }

/* ---------- Navbar ---------- */
.nav { position: absolute; top: 0; left: 50%; width: 100%; max-width: 1200px; z-index: 5;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 28px 40px 0;
  opacity: 0; translate: -50% -16px; }
.nav__brand { display: flex; align-items: center; gap: 10px; justify-self: start; }
.nav__logo { width: 32px; height: 32px; display: grid; place-items: center; }
.nav__logo .logo { width: 32px; height: 32px; filter: drop-shadow(0 6px 16px rgba(255,255,255,.25)); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.nav__brand-text b { font-weight: 500; font-size: 13px; letter-spacing: -0.01em; }
.nav__brand-text i { font-style: normal; font-weight: 300; font-size: 11px; color: var(--gray-1); }
.nav__links { display: flex; gap: 28px; font-size: 13px; font-weight: 400; }
.nav__links a { color: rgba(255,255,255,.5); transition: color .3s var(--ease-out), opacity .3s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-size: 12px; font-weight: 400; white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s; }
.pill--dark { background: rgba(255,255,255,.06); border: 1px solid var(--glass-border); color: rgba(255,255,255,.85); }
.pill--white { background: #fff; color: #050505; font-weight: 500; }
.pill--white:hover { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 30px -10px rgba(255,255,255,.5); }
/* Пульс точки «онлайн»: кольцо-псевдоэлемент на transform/opacity, а не box-shadow (тот перерисовывал точку каждый кадр) */
.dot-online, .live__dot { position: relative; }
.dot-online::after, .live__dot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit;
  opacity: .6; animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; pointer-events: none; }
.dot-online { width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
@keyframes ping { 70%, 100% { transform: scale(2.3); opacity: 0; } }
.lang { display: inline-flex; height: 36px; padding: 3px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); }
.lang button { height: 28px; padding: 0 9px; border-radius: 999px; font-size: 12px; color: rgba(255,255,255,.55); transition: color .2s, background .2s; }
.lang button:hover { color: #fff; }
.lang button.is-on { background: #fff; color: #050505; font-weight: 500; }
.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { position: absolute; inset: 72px 16px auto; z-index: 6; display: flex; flex-direction: column; gap: 4px; padding: 10px;
  border-radius: 20px; background: rgba(10,10,10,.85); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); animation: fadeDown .35s var(--ease-out); }
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-size: 14px; color: rgba(255,255,255,.7); }
.mobile-menu a.is-active, .mobile-menu a:hover { color: #fff; background: rgba(255,255,255,.06); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero ---------- */
.hero { position: absolute; inset: 0; z-index: 2; }
.hero__eyebrow { position: absolute; right: 8.3%; top: 20%; font-size: 12px; color: var(--gray-1); text-align: right; font-weight: 300; opacity: 0; }
.hero__title { position: absolute; right: 8.3%; top: 25%; margin: 0; text-align: right; font-weight: 400; letter-spacing: -0.03em;
  font-size: clamp(36px, 4.45cqw, 64px); line-height: 1.05; z-index: 2; will-change: transform; }
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: block; opacity: 0; transform: translateY(110%); }

/* Hero object: sits ABOVE the headline (z-index) so its nose overlaps the text */
.hero__object { position: absolute; left: 50%; top: 50%; width: 75%; transform: translate(-56%, -44%); z-index: 3; will-change: transform, filter; }
.hero__img { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); will-change: transform; }
.hero__reflection { position: absolute; left: 0; right: 0; top: 100%; margin-top: -9%; transform: scaleY(-1); pointer-events: none; opacity: 0;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%); mask-image: linear-gradient(to top, rgba(0,0,0,.35), transparent 55%);
  filter: blur(6px); transition: opacity 1.4s var(--ease-out); }
.hero__reflection .hero__img { filter: none; }
.hero__object.is-driving .hero__img { filter: blur(0) drop-shadow(0 40px 60px rgba(0,0,0,.7)); }
.dust { position: absolute; left: -6%; right: 40%; top: 55%; height: 40%; pointer-events: none; }
.dust i { position: absolute; bottom: 0; width: 60px; height: 60px; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,.06) 50%, transparent 70%); filter: blur(8px); will-change: transform, opacity; }

/* Glass cards (left, overlapping the object's rear) */
.cards { position: absolute; left: 8.3%; top: 42%; display: flex; flex-direction: column; gap: 12px; z-index: 4; }
.card { width: 150px; padding: 16px 18px; border-radius: var(--radius-card); border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 60%, rgba(120, 95, 70, .16));
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
  opacity: 0; transform: translateX(-40px); transition: transform .4s var(--ease-out), border-color .4s; }
.card:hover { transform: translateY(-3px) !important; border-color: rgba(255,255,255,.22); }
.card b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -0.02em; line-height: 1; }
.card span { display: block; margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.55); font-weight: 300; }
.hero__note { position: absolute; left: calc(8.3% + 166px); top: 44%; max-width: 140px; margin: 0; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.8); font-weight: 300; z-index: 4; opacity: 0; }

/* CTA */
.cta { position: absolute; left: 50%; bottom: 9%; transform: translate(-50%, 24px); z-index: 5; display: grid; place-items: center;
  width: 230px; height: 80px; border-radius: 999px; background: #fff; color: #050505; font-size: 14px; font-weight: 500; opacity: 0;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); will-change: transform; }
.cta.is-in:hover { transform: translate(-50%, 0) scale(1.05); box-shadow: 0 0 60px rgba(255,255,255,.35), 0 20px 50px -20px rgba(255,255,255,.6); }

/* Footer row */
.foot { position: absolute; left: 50%; bottom: 0; width: 100%; max-width: 1200px; padding: 0 40px 26px; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; opacity: 0; translate: -50% 12px; }
.foot__words { display: flex; gap: 40px; margin: 0; padding: 0; list-style: none; font-size: 12px; letter-spacing: 0.15em; color: var(--gray-1); text-transform: lowercase; }
.foot__words li:first-child { text-transform: capitalize; }
.foot__brand { font-size: 12px; color: rgba(255,255,255,.6); transition: color .3s; }
.foot__brand:hover { color: #fff; }

/* ---------- Contact slide (slides in from the right over the screen) ---------- */
.slide { position: absolute; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(0,0,0,0); backdrop-filter: blur(0px);
  transition: background .5s var(--ease-out), backdrop-filter .5s var(--ease-out); }
.slide.is-open { background: rgba(0,0,0,.55); backdrop-filter: blur(10px); }
.slide__panel { position: relative; width: min(520px, 100%); height: 100%; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 60%, rgba(120,95,70,.14)); border-left: 1px solid var(--glass-border);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: -40px 0 120px -40px rgba(0,0,0,.9);
  transform: translateX(100%); transition: transform .6s var(--ease-out); }
.slide.is-open .slide__panel { transform: none; }
.slide__close { position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); display: grid; place-items: center; transition: transform .3s var(--ease-out), background .3s; }
.slide__close:hover { transform: rotate(90deg); background: rgba(255,255,255,.16); }
.slide__close span { position: absolute; width: 16px; height: 1.5px; background: #fff; border-radius: 2px; }
.slide__close span:first-child { transform: rotate(45deg); } .slide__close span:last-child { transform: rotate(-45deg); }
.chip-ol { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); font-size: 12px; color: rgba(255,255,255,.85); }
.slide__title { margin: 6px 0 0; font-size: clamp(30px, 3cqw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; }
.slide__text { margin: 0; font-size: 14px; font-weight: 300; color: rgba(255,255,255,.65); line-height: 1.6; max-width: 380px; }
.slide__email { font-size: clamp(18px, 1.7cqw, 24px); font-weight: 400; letter-spacing: -0.01em; color: #fff; border-bottom: 1px solid rgba(255,255,255,.3); align-self: flex-start; padding-bottom: 4px; transition: border-color .3s; }
.slide__email:hover { border-color: #fff; }
.slide__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.slide__actions .pill { height: 44px; padding: 0 20px; font-size: 13px; cursor: pointer; }
.slide__meta { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 24px; font-size: 12px; letter-spacing: .12em; color: var(--gray-1); text-transform: uppercase; }
.slide .slide__panel > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.slide.is-open .slide__panel > * { opacity: 1; transform: none; }
.slide.is-open .slide__panel > *:nth-child(2) { transition-delay: .15s; } .slide.is-open .slide__panel > *:nth-child(3) { transition-delay: .22s; }
.slide.is-open .slide__panel > *:nth-child(4) { transition-delay: .29s; } .slide.is-open .slide__panel > *:nth-child(5) { transition-delay: .36s; }
.slide.is-open .slide__panel > *:nth-child(6) { transition-delay: .43s; } .slide.is-open .slide__panel > *:nth-child(7) { transition-delay: .5s; }
.slide.is-open .slide__close { opacity: 1; transform: none; }
body.slide-open .hero__object { filter: blur(2px); }
body.no-motion .slide, body.no-motion .slide__panel, body.no-motion .slide__panel > * { transition: none !important; }
@media (max-width: 720px) {
  .slide { position: fixed; }
  .slide__panel { width: 100%; padding: 80px 24px 40px; justify-content: flex-start; }
  .slide__meta { flex-direction: column; gap: 8px; }
}

/* ---------- Below the fold ---------- */
.below { position: relative; z-index: 1; padding: 40px 24px 60px; display: flex; flex-direction: column; gap: 110px;
  background: radial-gradient(60% 40% at 50% 0%, rgba(255,255,255,.05), transparent 70%); }
.wrap { width: min(1200px, 100%); margin: 0 auto; }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat-sub { display: block; margin-top: -18px; font-size: 12px; color: var(--gray-1); font-weight: 300; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 170px; padding: 24px 26px; border-radius: 24px; border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04) 60%, rgba(120, 95, 70, .16)); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.08); transition: transform .4s var(--ease-out), border-color .4s; }
.stat-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); }
.stat-card:nth-child(2) { transition-delay: .08s; } .stat-card:nth-child(3) { transition-delay: .16s; } .stat-card:nth-child(4) { transition-delay: .24s; } .stat-card:nth-child(5) { transition-delay: .32s; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat-label { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.55); }
.stat-num { font-size: clamp(40px, 4cqw, 56px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num--green { color: var(--online); }
.stats-foot { margin: 16px 0 0; font-size: 12px; color: var(--gray-1); font-weight: 300; }
.sec-head { margin-bottom: 34px; }
.sec-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 300; color: var(--gray-1); letter-spacing: .02em; }
.sec-title { margin: 0; font-size: clamp(32px, 4.2vw, 56px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feat { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px; min-height: 250px; border-radius: 24px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04);
  transition: transform .4s var(--ease-out), border-color .4s, background .4s; overflow: hidden; }
.feat:nth-child(2) { transition-delay: .08s; } .feat:nth-child(3) { transition-delay: .16s; } .feat:nth-child(4) { transition-delay: .24s; }
.feat:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.feat-idx { font-size: 12px; letter-spacing: .15em; color: rgba(255,255,255,.35); }
.feat-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); margin-top: auto; }
.feat-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { margin: 10px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.feat p { margin: 0; font-size: 13.5px; font-weight: 300; line-height: 1.55; color: rgba(255,255,255,.6); }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps-row li { padding: 28px 26px; border-radius: 24px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.03); }
.steps-row li:nth-child(2) { transition-delay: .1s; } .steps-row li:nth-child(3) { transition-delay: .2s; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; }
.steps-row h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 400; letter-spacing: -0.02em; }
.steps-row p { margin: 0; font-size: 13.5px; font-weight: 300; line-height: 1.55; color: rgba(255,255,255,.6); }
.final { text-align: center; padding: 80px 24px; border-radius: 32px; border: 1px solid var(--glass-border);
  background: radial-gradient(60% 80% at 50% 100%, rgba(255,255,255,.14), transparent 70%), rgba(255,255,255,.03); }
.final .sec-title { margin-bottom: 34px; }
.final-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta--inline { position: static; transform: none; opacity: 1; }
.cta--inline:hover { transform: scale(1.05); box-shadow: 0 0 60px rgba(255,255,255,.35), 0 20px 50px -20px rgba(255,255,255,.6); }
.pill--lg { height: 80px; padding: 0 36px; font-size: 14px; border-radius: 999px; }
.below-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 40px 8px 0; font-size: 12px; color: rgba(255,255,255,.6); }
.below-foot a:hover { color: #fff; }
@media (max-width: 1024px) { .stats, .features { grid-template-columns: repeat(2, 1fr); } .steps-row { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .below { padding: 40px 16px 120px; gap: 70px; }
  .stats, .features { grid-template-columns: 1fr; }
  .stat-card { min-height: 130px; }
  .final { padding: 56px 20px; }
  .pill--lg, .cta--inline { height: 64px; width: 100%; }
}

/* ---------- Live strip: just-found grants + scan progress ---------- */
.below { gap: 80px; }
.live { padding: 18px 22px; border-radius: 22px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); overflow: hidden; }
.live__head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 12px; }
.live__head b { font-weight: 500; }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.live__scan { margin-left: auto; font-size: 12px; color: var(--gray-1); font-weight: 300; }
.live__track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.live__marquee { display: flex; gap: 10px; width: max-content; animation: marquee 45s linear infinite; }
.live__marquee:hover { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.live__item { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); font-size: 13px; white-space: nowrap; color: rgba(255,255,255,.85); transition: border-color .3s; }
.live__item:hover { border-color: rgba(255,255,255,.3); }
.live__item .d { font-size: 12px; color: var(--gray-1); }
.live__item .d.hot { color: var(--accent); } .live__item .d.soon { color: var(--online); }
body.no-motion .live__marquee { animation: none; }

/* ---------- Ready state (no-JS fallback / reduced motion) ---------- */
.screen.is-static .hero__line > span, .screen.is-static .hero__eyebrow, .screen.is-static .card, .screen.is-static .hero__note,
.screen.is-static .cta, .screen.is-static .nav, .screen.is-static .foot { opacity: 1; transform: none; translate: none; }
.screen.is-static .nav, .screen.is-static .foot { translate: -50% 0; }
.screen.is-static .hero__reflection { opacity: 1; }
.screen.is-static .cta { transform: translate(-50%, 0); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .nav { padding: 22px 24px 0; }
  .nav__links { gap: 18px; }
  .cards { top: 46%; }
  .card { width: 128px; padding: 14px; }
  .hero__note { display: none; }
  .foot { padding: 0 24px 20px; }
}

/* ---------- Mobile: stacked layout ---------- */
@media (max-width: 720px) {
  body { overflow: auto; }
  .stage { padding: 0; place-items: start; }
  .screen { aspect-ratio: auto; min-height: 100svh; max-height: none; border-radius: 0; border: 0; }
  .nav { display: flex; justify-content: space-between; padding: 16px; }
  .nav__links { display: none; }
  .nav__right .pill--dark, .nav__right .pill--white { display: none; }
  .lang button { padding: 0 7px; }
  .burger { display: grid; }
  .hero { position: relative; display: flex; flex-direction: column; padding: 96px 16px 120px; }
  .hero__eyebrow, .hero__title { position: static; text-align: left; }
  .hero__title { font-size: 40px; margin-top: 8px; }
  .hero__object { position: relative; left: auto; top: auto; width: 120%; margin: 12px 0 0 -10%; transform: none; }
  .cards { position: static; flex-direction: row; overflow-x: auto; gap: 10px; padding: 8px 0 12px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: none; width: 140px; scroll-snap-align: start; }
  .hero__note { display: block; position: static; max-width: none; margin-top: 4px; }
  .cta { position: static; display: grid; width: 100%; height: 64px; margin-top: 8px; transform: translateY(24px); }
  .cta.is-in:hover { transform: scale(1.02); }
  .foot { position: static; translate: 0 12px; padding: 0 16px 100px; flex-direction: column; gap: 12px; align-items: flex-start; }
  .foot__words { gap: 20px; }
  .screen.is-static .foot { translate: 0; }
  .screen.is-static .cta { transform: none; }
}

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


/* ---------- Флаги стран: эмодзи из кода ISO, без картинок ---------- */
/* Windows не рисует эмодзи-флаги (выводит буквы «KZ»), поэтому там подключается шрифт только с флагами */
@font-face { font-family: "Twemoji Country Flags"; unicode-range: U+1F1E6-1F1FF; font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1/dist/TwemojiCountryFlags.woff2") format("woff2"); }
.flag { font-style: normal; line-height: 1; }
.flag-font .flag, .flag-font select, .flag-font .crumbs span { font-family: "Twemoji Country Flags", Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- Полоса прокрутки как в iOS: тонкая «пилюля», видна только во время прокрутки и плавно гаснет ---------- */
@property --sb-thumb { syntax: "<color>"; inherits: true; initial-value: transparent; }
html { --sb-thumb: transparent; --sb-on: rgba(255,255,255,.6); --sb-hover: rgba(255,255,255,.65); transition: --sb-thumb .6s ease .15s; }
html.is-scrolling { --sb-thumb: var(--sb-on); transition: --sb-thumb .12s ease; }
::-webkit-scrollbar { width: 11px; height: 11px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb { background-color: var(--sb-thumb); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; min-height: 44px; }
::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background-color: var(--sb-hover); border-width: 2px; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; } }
/* Полоса прокрутки страницы рисуется своим элементом поверх контента (как в iOS) — одинаково в любом браузере */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; width: 0; }
.ios-sb { position: fixed; top: 6px; bottom: 6px; right: 3px; width: 12px; z-index: 2147483000; pointer-events: none; opacity: 0; transition: opacity .6s ease .2s; }
.ios-sb.on { opacity: 1; transition: opacity .12s ease; }
.ios-sb i { position: absolute; top: 0; right: 0; width: 5px; min-height: 36px; border-radius: 999px; background: var(--sb-on); box-shadow: 0 0 0 .5px rgba(0,0,0,.25); transition: width .15s ease, background .15s ease; }
.ios-sb.on i { pointer-events: auto; cursor: default; touch-action: none; }
.ios-sb i:hover, .ios-sb.drag i { width: 9px; background: var(--sb-hover); }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Фокус с клавиатуры: видимое кольцо на ссылках и кнопках (раньше его не было) */
:where(a, button, .pill, .cta, .burger, .lang button):focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }

/* Keep the page readable when scripts are blocked or fail to load. */
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 16px; border-radius: 10px; color: #050505; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
html:not(.js-enabled) .intro { display: none; }
html:not(.js-enabled) .nav,
html:not(.js-enabled) .hero__eyebrow,
html:not(.js-enabled) .hero__line > span,
html:not(.js-enabled) .card,
html:not(.js-enabled) .hero__note,
html:not(.js-enabled) .foot,
html:not(.js-enabled) .cta,
html:not(.js-enabled) .rv { opacity: 1; }
html:not(.js-enabled) .nav,
html:not(.js-enabled) .foot { translate: -50% 0; }
html:not(.js-enabled) .hero__line > span,
html:not(.js-enabled) .card,
html:not(.js-enabled) .hero__note,
html:not(.js-enabled) .rv { transform: none; }
html:not(.js-enabled) .cta { transform: translate(-50%, 0); }
html:not(.js-enabled) .screen { filter: none; }
@media (max-width: 720px) {
  html:not(.js-enabled) .nav { translate: none; }
  html:not(.js-enabled) .foot { translate: none; }
  html:not(.js-enabled) .cta { transform: none; }
}

/* ---------- Base typography (replaces the Tailwind runtime that used to set these on <body>) ---------- */
body { color: #fff; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-rendering: optimizeLegibility; }

/* ---------- FAQ: native <details>, works with keyboard and without JS ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 20px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.03); transition: background .3s, border-color .3s; }
.faq details[open] { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; font-size: 17px; font-weight: 400; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--glass-border);
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid #fff; outline-offset: -2px; border-radius: 20px; }
.faq p { margin: 0; padding: 0 26px 24px; max-width: 760px; font-size: 14.5px; font-weight: 300; line-height: 1.65; color: rgba(255,255,255,.68); }

/* ---------- Footer: brand, links, contact ---------- */
.below-foot { border-top: 1px solid var(--glass-border); margin-top: 8px; padding: 28px 8px 0; }
.below-foot__brand { display: flex; flex-direction: column; gap: 4px; }
.below-foot__brand b { font-size: 14px; font-weight: 500; color: #fff; }
.below-foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.below-foot__links a, .below-foot__mail { color: rgba(255,255,255,.62); transition: color .2s; }
.below-foot__links a:hover, .below-foot__mail:hover { color: #fff; }

/* Readable secondary text: the old 55% white on near-black was below WCAG AA for 11-12px text */
.card span, .stat-label { color: rgba(255,255,255,.68); }

@media (max-width: 720px) {
  /* three equal stat cards instead of a clipped horizontal strip */
  .cards { display: grid; grid-template-columns: repeat(3, 1fr); overflow: visible; }
  .card { width: auto; padding: 14px 12px; }
  .card b { font-size: 21px; }
  .faq summary { padding: 18px 18px; font-size: 15.5px; }
  .faq p { padding: 0 18px 20px; }
  .below-foot { flex-direction: column; align-items: flex-start; }
}

/* the tagline overlaps the light hero object on desktop: a dark glass backing keeps it readable */
@media (min-width: 1025px) {
  .hero__note { padding: 10px 12px; border-radius: 14px; background: rgba(5,5,5,.62); border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); max-width: 170px; }
}

/* ---------- 3D: секции встают из наклона, карточки наклоняются к курсору (motion3d.js) ---------- */
.rv { transform: perspective(1000px) translateY(26px) rotateX(9deg); transform-origin: 50% 100%;
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.stat-card, .feat { transition: opacity .7s var(--ease-out), transform .45s var(--ease-out), border-color .4s, background .4s; }
/* пока пружина ведёт transform, CSS-переход по нему выключен, иначе он запаздывает за каждым кадром */
.is-tilting { transition-property: opacity, border-color, background, background-color, box-shadow !important; will-change: transform; }
.tilt { position: relative; }
/* блик: пятно нарисовано один раз и только едет (transform) и гаснет (opacity) в своём слое */
.tilt-glare { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.tilt-glare i { position: absolute; left: -380px; top: -380px; width: 760px; height: 760px; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,255,255,.11), transparent 60%); }
.is-tilting .tilt-glare i { will-change: transform, opacity; }
.tilt.is-tilting { box-shadow: 0 40px 80px -36px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.1); }
/* «ближние» детали сдвигаются по наклону (translate из JS); тень под ними включается один раз, а не пересчитывается каждый кадр */
.tilt .feat-icon, .tilt .step-num { transition: box-shadow .3s var(--ease-out); }
.tilt.is-tilting .feat-icon, .tilt.is-tilting .step-num { box-shadow: 0 12px 24px -10px rgba(0,0,0,.8); }
.tilt.is-tilting .feat-icon, .tilt.is-tilting .step-num, .tilt.is-tilting .stat-num { will-change: translate; }

/* the stats row adapts when a card is hidden (e.g. no open calls yet) */
@media (min-width: 1101px) { .stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }

/* ================= Структура ниже первого экрана: панель цифр, бенто, линия шагов, вопросы в две колонки ================= */
/* Панель доказательств: цифры в одну строку через тонкие разделители, под ними живая лента и время проверки */
.proof { border-radius: 28px; border: 1px solid var(--glass-border); overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 60%, rgba(120,95,70,.12)); }
.proof .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; }
.proof .stat-card { min-height: 0; gap: 14px; justify-content: flex-start; padding: 26px 28px; border: 0; border-radius: 0;
  background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.proof .stat-card + .stat-card { border-left: 1px solid var(--glass-border); }
.proof .stat-card:hover { transform: none; }
.proof .stat-num { font-size: clamp(36px, 3.4vw, 48px); }
.proof .stat-sub { margin-top: -4px; }
.proof .live { border: 0; border-top: 1px solid var(--glass-border); border-radius: 0; background: rgba(0,0,0,.18); padding: 16px 28px; }
.proof .stats-foot { margin: 0; padding: 12px 28px 16px; border-top: 1px solid var(--glass-border); }

/* Возможности: бенто — каталог крупно, совет широко, напоминания и ментор рядом */
.features { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "cat cat adv adv" "cat cat rem men"; }
.feat--catalog { grid-area: cat; } .feat--advice { grid-area: adv; } .feat--remind { grid-area: rem; } .feat--mentor { grid-area: men; }
.feat { min-height: 230px; }
.feat--catalog .feat-icon { margin-top: 22px; }
.feat--catalog h3 { font-size: 22px; letter-spacing: -0.02em; }
.feat-mini { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: grid; gap: 8px; }
.feat-mini:empty { display: none; }
.feat-mini li { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04); font-size: 13px; color: rgba(255,255,255,.85); }
.feat-mini li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feat-mini li:nth-child(2) { opacity: .8; } .feat-mini li:nth-child(3) { opacity: .6; } .feat-mini li:nth-child(4) { opacity: .4; } .feat-mini li:nth-child(5) { opacity: .22; }
@media (max-width: 1024px) { .feat-mini li:nth-child(n+4) { display: none; } }
.feat-mini em { font-style: normal; font-size: 12px; color: var(--gray-1); white-space: nowrap; }
.feat-mini em.hot { color: var(--accent); } .feat-mini em.soon { color: var(--online); }
.feat-match { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.feat-match > span:not(.feat-match__bar) { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,.05); color: rgba(255,255,255,.8); }
.feat-match__bar { flex: 1; min-width: 80px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.feat-match__bar i { display: block; width: 92%; height: 100%; border-radius: inherit; background: var(--online);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease-out) .25s; }
.feat.in .feat-match__bar i { transform: none; }
.feat-match b { font-weight: 500; color: var(--online); }
.feat-days { display: flex; gap: 6px; margin-top: 14px; }
.feat-days span { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 10px; border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04); font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
.feat-days .hot { color: var(--ink); background: var(--accent); border-color: transparent; font-weight: 500; }
.feat-typing { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; height: 34px; margin-top: 14px; padding: 0 12px;
  border-radius: 999px 999px 999px 6px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.06); font-size: 12px; }
.feat-typing b { margin-right: 4px; font-weight: 400; color: rgba(255,255,255,.85); }
.feat-typing i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.7); animation: typing 1.2s ease-in-out infinite; }
.feat-typing i:nth-of-type(2) { animation-delay: .15s; } .feat-typing i:nth-of-type(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }

/* Шаги: номера на одной линии времени, без коробок */
.steps-row { position: relative; gap: 32px; }
.steps-row::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.08)); }
.steps-row li { position: relative; padding: 0 12px 0 0; border: 0; border-radius: 0; background: none; }
.step-num { position: relative; box-shadow: 0 0 0 8px var(--ink); }

/* Вопросы: заголовок и кнопка слева стоят на месте, ответы справа */
.faq-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.faq-head { position: sticky; top: 32px; margin-bottom: 0; }
.faq-head .sec-title { font-size: clamp(32px, 3.3vw, 46px); }
.faq-ask { margin-top: 26px; height: 44px; padding: 0 20px; font-size: 13px; }

/* Подвал: бренд с подписью, ссылки столбиком, связь справа */
.below-foot { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; align-items: start; gap: 32px; }
.below-foot__brand p { margin: 6px 0 10px; max-width: 280px; font-size: 13px; font-weight: 300; line-height: 1.5; color: rgba(255,255,255,.62); }
.below-foot__links { flex-direction: column; gap: 10px; }
.below-foot__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cat cat" "adv adv" "rem men"; }
  .steps-row { gap: 28px; }
  .steps-row::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08)); }
  .steps-row li { padding: 0 0 0 68px; }
  .steps-row .step-num { position: absolute; left: 0; top: 0; }
  .steps-row h3 { margin-top: 8px; }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .faq-head { position: static; margin-bottom: 34px; }
  .faq-ask { display: none; }
}
@media (max-width: 720px) {
  .proof { border-radius: 22px; }
  .proof .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -1px; }
  .proof .stat-card, .proof .stat-card + .stat-card { border-left: 0; border-top: 1px solid var(--glass-border); padding: 20px; }
  .proof .live, .proof .stats-foot { padding-left: 20px; padding-right: 20px; }
  .features { grid-template-columns: 1fr; grid-template-areas: "cat" "adv" "rem" "men"; }
  .feat { min-height: 0; }
  .below-foot { grid-template-columns: 1fr; gap: 24px; }
  .below-foot__links { flex-direction: row; }
  .below-foot__contact { align-items: flex-start; }
}

/* ================= Доводка: подпись под заголовком, без повторов, ровные заголовки, метки разделов ================= */
/* подпись первого экрана стоит под заголовком справа, а не поверх шапочки */
@media (min-width: 1025px) {
  .hero__note { left: auto; right: 8.3%; top: calc(25% + 2.1 * clamp(36px, 4.45cqw, 64px) + 18px); max-width: 240px;
    padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    text-align: right; font-size: 13px; color: rgba(255,255,255,.68); z-index: 2; }
}
/* статус проверки в панели цифр показан один раз — строкой внизу */
.proof .live__scan { display: none; }
/* заголовки переносятся ровно, без одного слова на строке */
.sec-title, .hero__title, .slide__title, .hero__note { text-wrap: balance; }
/* метка раздела: короткая линия перед текстом связывает метку с заголовком */
.sec-eyebrow { display: flex; align-items: center; gap: 10px; }
.sec-eyebrow::before { content: ""; flex: none; width: 22px; height: 1px; background: rgba(255,255,255,.35); }
.final .sec-eyebrow { justify-content: center; }

/* Правовые ссылки и дисклеймер в подвале лендинга */
.foot__legal { font-size: .75rem; opacity: .7; }
.foot__legal a, .below-foot__legal a { text-decoration: underline; text-underline-offset: 2px; color: inherit; }
/* Подвал — сетка «бренд · ссылки · контакты»; документы и дисклеймер — отдельной строкой под ней на всю ширину,
   иначе блок занимал третью колонку, а контакты уезжали на новую строку */
.below-foot__legal { grid-column: 1 / -1; order: 1; flex-basis: 100%; max-width: 900px; font-size: .72rem; opacity: .65;
  line-height: 1.45; margin: 0; padding-top: 18px; border-top: 1px solid var(--glass-border); }
