/* =========================================================
   DR.TRADER — концепт-сайт
   Структура: заставка → інтро → ключові моменти (горизонтальний скрол)
   → цитата з колодою карток → навчання (3 формати) → програма (світлий)
   → стрічка фото → фінал + заявка
   ========================================================= */

:root {
  --bg: #000;
  --bg2: #07080b;
  --fg: #fff;
  --muted: rgba(255,255,255,.58);
  --dim: rgba(255,255,255,.2);
  --blue: #004fff;
  --blue2: #2d6bff;
  --green: #2bff4e;
  --red: #ff4646;
  --gold: #d9b45a;
  --gold2: #8a6a23;
  --paper: #ecebe6;
  --ink: #090c1c;

  --f-display: "Bebas Neue Cyrillic", "Oswald", "Arial Narrow", sans-serif;
  --f-serif: "Perfectly Nineties", "Playfair Display", Georgia, serif;
  --f-script: "Beverly Hills", "Great Vibes", cursive;
  --f-sans: "Helvetica Neue", "Inter Tight", Helvetica, Arial, sans-serif;

  --gx: max(20px, calc(50vw - 563px));
  --ease: cubic-bezier(.22,1,.36,1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; user-select: none; -webkit-user-drag: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; }

.glass {
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.12);
}
.noise {
  position: absolute; inset: 0; pointer-events: none; opacity: .12; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- еквалайзер (кнопка звуку) ---------- */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; transition: height .3s; }
.is-sound .eq i { animation: eq 0.9s ease-in-out infinite alternate; }
.is-sound .eq i:nth-child(2) { animation-delay: -.3s; } .is-sound .eq i:nth-child(3) { animation-delay: -.6s; } .is-sound .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0% { height: 20%; } 100% { height: 100%; } }

/* =========================================================
   ЗАСТАВКА
   ========================================================= */
.loader { position: fixed; inset: 0; z-index: 100; background: #000; clip-path: inset(0 0 0% 0); display: grid; place-items: center; overflow: hidden; }
.loader-warp { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; text-align: center; padding: 0 20px; }
.loader-brand { font-family: var(--f-serif); font-weight: 900; font-size: clamp(34px, 6vw, 72px); letter-spacing: -.05em; line-height: 1; }
.loader-brand span, .foot-brand span { font-family: var(--f-script); font-weight: 400; color: var(--blue); font-size: 1.25em; line-height: .5; margin: 0 .02em 0 .04em; }
.loader-count { font-family: var(--f-display); font-size: clamp(64px, 12vw, 150px); line-height: .9; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.loader-count small { font-size: .35em; color: var(--muted); margin-left: .1em; }
.loader-bar { width: min(320px, 60vw); height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--blue2); box-shadow: 0 0 12px var(--blue); }
.loader-enter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; opacity: 0; visibility: hidden; transform: translateY(12px); }
.enter-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 99px; background: #fff; color: #000; font-weight: 600; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; transition: transform .3s var(--ease), background .3s; }
.enter-btn:hover { transform: translateY(-2px); background: var(--blue); color: #fff; }
.enter-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.enter-btn.ghost:hover { background: rgba(255,255,255,.1); }
.enter-btn .eq i { animation: eq .9s ease-in-out infinite alternate; }
.enter-btn .eq i:nth-child(2) { animation-delay: -.3s; } .enter-btn .eq i:nth-child(3) { animation-delay: -.6s; }
.loader-tick { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .2em; color: rgba(255,255,255,.35); text-transform: uppercase; z-index: 2; }

/* =========================================================
   ШАПКА / МЕНЮ / ЗВУК
   ========================================================= */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(40px + env(safe-area-inset-top)) var(--gx) 0;
  pointer-events: none; transition: color .4s;
}
.nav > * { pointer-events: auto; }
.nav-logo { color: #fff; display: block; transition: transform .4s var(--ease); }
.nav-logo:hover { transform: scale(1.08) rotate(-4deg); }
.nav-mid { overflow: hidden; height: 18px; font-family: var(--f-display); font-size: 18px; letter-spacing: .08em; line-height: 18px; }
.nav-mid-in { display: block; transform: translateY(110%); transition: transform .6s var(--ease); }
.is-scrolled .nav-mid-in { transform: none; }
.nav-burger { width: 40px; height: 34px; display: grid; place-items: center; }
.nav-burger svg { overflow: visible; }
.nav-burger path { transition: transform .5s var(--ease), fill .4s, opacity .3s; transform-box: fill-box; transform-origin: 50% 50%; }
.nav-burger:hover .b2 { transform: translateX(4px); }
.menu-open .nav-burger .b1 { transform: translateY(9.5px) rotate(40deg); }
.menu-open .nav-burger .b2 { opacity: 0; transform: translateX(10px); }
.menu-open .nav-burger .b3 { transform: translateY(-9px) rotate(-40deg); }
.nav-logo { color: #fff; }
.on-light .nav-logo { color: var(--ink); }
.on-light .nav-burger .b1, .on-light .nav-burger .b3 { fill: var(--ink); }
.on-light .nav-mid { color: var(--ink); }
.menu-open .nav-logo { color: #fff; }
.menu-open .nav-burger .b1, .menu-open .nav-burger .b3 { fill: #fff; }

.sound-btn {
  position: fixed; z-index: 50; right: max(16px, calc(var(--gx) - 20px)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15); color: #fff; transition: transform .3s var(--ease), background .3s;
}
.sound-btn:hover { transform: scale(1.08); background: var(--blue); }
.on-light .sound-btn { background: rgba(9,12,28,.75); }

.menu { position: fixed; inset: 0; z-index: 45; pointer-events: none; visibility: hidden; }
.menu::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .5s; }
.menu-open .menu { pointer-events: auto; visibility: visible; }
.menu-open .menu::before { opacity: 1; }
.menu-card {
  position: absolute; left: max(16px, calc(var(--gx) - 20px)); bottom: calc(20px + env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 32px)); padding: 28px 28px 22px; border-radius: 22px;
  background: rgba(16,18,26,.82); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.1);
  transform: translateY(30px) scale(.96); opacity: 0; transition: transform .6s var(--ease), opacity .4s;
}
.menu-open .menu-card { transform: none; opacity: 1; }
.menu-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 4px; }
.menu-list a { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.02em; padding: 3px 0; }
.menu-list a:hover { color: var(--blue2); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; font-size: 13px; color: var(--muted); }
.menu-social { display: flex; gap: 14px; flex-wrap: wrap; }
.menu-social a:hover, .menu-sound:hover { color: #fff; }
.menu-sound b { color: #fff; font-weight: 600; }
.menu-big {
  position: absolute; right: var(--gx); top: 50%; transform: translateY(-50%);
  font-family: var(--f-serif); font-weight: 900; font-size: 13vw; letter-spacing: -.06em; line-height: .8;
  writing-mode: vertical-rl; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.15); opacity: 0; transition: opacity .6s .1s;
}
.menu-open .menu-big { opacity: 1; }

/* roll-ефект літер */
[data-roll] { display: inline-block; overflow: hidden; vertical-align: top; }
[data-roll] .r-in { display: inline-block; position: relative; transition: transform .5s var(--ease); }
[data-roll] .r-in::after { content: attr(data-t); position: absolute; left: 0; top: 100%; }
a:hover > [data-roll] .r-in { transform: translateY(-100%); }

/* =========================================================
   1. ІНТРО
   ========================================================= */
.hero { position: relative; height: 200vh; height: 200svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #000; }
.hero-bg { position: absolute; inset: -4%; will-change: transform; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .96; }
.hero-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 80% at 50% 40%, transparent 40%, rgba(0,0,0,.65) 100%), linear-gradient(to bottom, rgba(0,0,0,.25), transparent 25%, transparent 70%, rgba(0,0,0,.6)); }

.hero-title {
  position: absolute; left: 0; right: 0; margin: 0 auto; top: 8.4%;
  z-index: 2; width: min(73.3vw, 128vh); line-height: 0; will-change: transform;
}
.ht-svg { width: 100%; height: auto; overflow: visible; display: block; }
.ht-T { filter: drop-shadow(0 6px 26px rgba(0,79,255,.5)); transform-box: fill-box; transform-origin: 50% 60%; }
.ht-l { transform-box: fill-box; }

.hero-char {
  position: absolute; z-index: 3; left: -100%; right: -100%; margin: 0 auto; top: 23.3%;
  height: 127%; aspect-ratio: 916 / 1145; width: auto;
  will-change: transform; pointer-events: none;
}
.hero-char img { width: 100%; height: 100%; object-fit: contain; object-position: top; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }

.hero-left { position: absolute; z-index: 5; left: calc(var(--gx) - 22px); bottom: max(4.5vh, 20px); width: 212px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-card {
  position: relative; width: min(12.2vw, 19vh, 176px); aspect-ratio: 176 / 220;
  transform-style: preserve-3d; cursor: pointer;
}
.hero-card { perspective: 900px; }
.hero-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.6)); }

.tilt { position: relative; width: 100%; height: 100%; --rx: 0deg; --ry: 0deg; --gx2: 50%; --gy2: 50%; --go: 0; transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); }
.tilt.is-hover { transition: transform .12s linear; }
.glare { position: absolute; inset: 4%; border-radius: 10px; pointer-events: none; mix-blend-mode: overlay; opacity: var(--go); transition: opacity .3s;
  background: radial-gradient(circle at var(--gx2) var(--gy2), rgba(255,255,255,.85), transparent 45%); }

.hero-badge {
  position: relative;
  width: 212px; min-height: 94px; padding: 14px 16px 12px; border-radius: 18px;
  display: grid; justify-items: center; gap: 6px; text-align: center;
}
.hero-badge p { font-size: 15px; line-height: 1.15; letter-spacing: -.05em; text-transform: uppercase; }
.hero-badge a { font-size: 11px; color: #6f9bff; text-decoration: underline; text-underline-offset: 2px; }
.hero-badge a:hover { color: #fff; }

.hero-right { position: absolute; z-index: 5; right: calc(var(--gx) + 114px - 37px); top: 57%; width: 303px; display: grid; justify-items: end; gap: 14px; }
.hero-sign { width: 168px; margin-right: -14px; }
.sig { width: 100%; height: auto; overflow: visible; }
.sig path { filter: drop-shadow(0 0 6px rgba(0,79,255,.35)); }
.hero-manifest { font-size: 16px; line-height: 1.2; letter-spacing: -.05em; text-transform: uppercase; text-align: right; }
.hero-manifest .line { overflow: hidden; display: block; }

.hero-scroll { position: absolute; z-index: 5; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: 22px; display: grid; justify-items: center; gap: 8px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.hero-scroll i { width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: scrollLine 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* діагональне «поле» з роками */
.field { position: absolute; z-index: 8; left: -20%; right: -20%; top: 100%; height: 140vh; background: #000; transform-origin: 50% 0; will-change: transform; }
.field::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 30px var(--blue); }
.field-in { position: absolute; left: 20%; right: 20%; top: 0; height: 100vh; }
.field .ruler { top: 46%; }
.field-years { position: absolute; left: 0; right: 0; top: 62%; display: flex; justify-content: space-around; font-family: var(--f-display); font-size: clamp(42px, 5.2vw, 76px); color: var(--dim); letter-spacing: -.05em; }

/* шкала з рисками */
.ruler { position: absolute; left: 0; right: 0; height: 18px; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)), repeating-linear-gradient(90deg, rgba(255,255,255,.42) 0 1px, transparent 1px 40px);
  background-size: 100% 1px, 100% 9px; background-position: 0 50%, 0 50%; background-repeat: no-repeat, repeat-x; opacity: .55; }

/* =========================================================
   2. КЛЮЧОВІ МОМЕНТИ
   ========================================================= */
.moments { position: relative; z-index: 5; background: #000; margin-top: -100vh; margin-top: -100svh; }
.moments-edge { position: absolute; z-index: 6; left: 0; top: 0; width: 160%; height: 2px; transform-origin: 0 50%; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--blue) 18%, #7fa6ff 40%, var(--blue) 62%, transparent 85%); box-shadow: 0 0 28px 2px rgba(0,79,255,.7); }
.moments-stage { position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden; --ch: min(22vw, 40vh); }
.moments-title {
  position: absolute; z-index: 0; left: 0; right: 0; margin: 0 auto; width: max-content; top: 9%;
  font-family: var(--f-display); font-weight: 600; font-size: min(11.2vw, 24vh); line-height: .9; letter-spacing: -.05em; white-space: nowrap; color: transparent;
}
.moments-title span { display: inline-block; padding-bottom: .05em; background: linear-gradient(178deg, var(--blue) 6%, rgba(0,0,0,.6) 78%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.moments-track { position: absolute; z-index: 2; left: 0; top: 0; height: 100%; display: flex; align-items: stretch; padding: 0 12vw 0 18vw; gap: 0; will-change: transform; }
.moments-track .ruler.top { top: 46%; }
.moments-track .ruler.bottom { top: auto; bottom: 4.2%; }
.moment { position: relative; flex: none; width: 34vw; max-width: 520px; min-width: 260px; height: 100%; }
.moment .mcard { position: absolute; left: 50%; height: var(--ch); width: calc(var(--ch) * .6667); margin-left: calc(var(--ch) * -.3333); cursor: pointer; }
.moment .mcard img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 40px rgba(0,0,0,.7)); }
.moment:nth-child(odd) .mcard { top: 17%; }
.moment:nth-child(even) .mcard { top: 25%; }
.mcap { position: absolute; left: 0; right: 0; margin: 0 auto; width: 260px; text-align: center; text-transform: uppercase; font-size: clamp(12px, 2.1vh, 15px); letter-spacing: -.04em; line-height: 1.2; z-index: 2; }
.moment:nth-child(odd) .mcap { top: calc(17% + var(--ch) + 2.4vh); }
.moment:nth-child(even) .mcap { top: calc(25% + var(--ch) + 2.4vh); }
.mcap h3 { font-weight: 700; font-size: clamp(13px, 2.3vh, 16px); }
.mcap p { color: rgba(255,255,255,.85); }
.neg { color: var(--red); font-style: normal; }
.pos { color: var(--green); font-style: normal; }
.myear { position: absolute; left: 50%; bottom: 6.5%; transform: translateX(-50%); font-family: var(--f-display); font-size: min(5.2vw, 8.5vh); letter-spacing: -.05em; color: var(--dim); transition: color .5s, text-shadow .5s; line-height: 1; }
.moment.is-active .myear { color: #fff; text-shadow: 0 0 30px rgba(0,79,255,.8); }
.moment-now .mnow { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; top: 28%; display: grid; justify-items: center; text-align: center; }
.mnow-k { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.mnow-n { font-family: var(--f-display); font-weight: 600; font-size: min(13vw, 30vh); line-height: .95; letter-spacing: -.04em; background: linear-gradient(#fff, #6f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mnow-plus { position: absolute; right: -.4em; top: .6em; font-family: var(--f-display); font-size: 60px; color: var(--blue2); }
.mnow-l { text-transform: uppercase; font-size: 15px; letter-spacing: -.03em; max-width: 220px; }
.moments-progress { position: absolute; z-index: 3; left: var(--gx); right: var(--gx); bottom: 2%; height: 1px; background: rgba(255,255,255,.12); }
.moments-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--blue2); box-shadow: 0 0 10px var(--blue); }

/* =========================================================
   3. ЦИТАТА
   ========================================================= */
.quote { position: relative; background: #000; }
.quote-stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; }
.qt-wrap { position: relative; width: 100%; }
.quote-dots {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; text-align: center;
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: min(8.4vw, 14vh); line-height: 1.02; letter-spacing: -.035em;
  background-image: radial-gradient(circle, #fff 0 36%, transparent 40%);
  background-size: 6px 6px; -webkit-background-clip: text; background-clip: text; color: transparent;
  will-change: transform, opacity; transform-origin: 50% 50%;
}
.quote-inner { position: relative; z-index: 2; width: min(1140px, 92vw); text-align: center; display: grid; justify-items: center; gap: 26px; }
.qmark { font-family: var(--f-serif); font-weight: 900; font-size: 64px; line-height: .5; height: 28px; color: var(--blue2); letter-spacing: -.1em; }
.quote-text { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: min(8.4vw, 14vh); line-height: 1.02; letter-spacing: -.035em; }
.quote-text .w { display: inline-block; color: rgba(255,255,255,0); }
.final-quote .w { display: inline-block; color: rgba(255,255,255,.16); }
.quote-sub { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.stack { position: absolute; z-index: 4; left: 50%; top: 50%; width: clamp(190px, 19vw, 290px); aspect-ratio: 2 / 3; transform: translate(-50%, -50%); pointer-events: none; }
.scard { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; will-change: transform; }
.scard img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 50px rgba(0,0,0,.75)); }
.scap { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); white-space: nowrap; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   4. НАВЧАННЯ
   ========================================================= */
.edu { position: relative; background: #000; }
.edu-stage { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.edu-title {
  position: absolute; z-index: 0; left: 0; right: 0; margin: 0 auto; width: max-content; top: 13%;
  font-family: var(--f-display); font-weight: 700; font-size: min(19.5vw, 40vh); line-height: .85; letter-spacing: -.04em; white-space: nowrap;
  background-image: radial-gradient(circle, #3b7bff 0 36%, transparent 40%), linear-gradient(180deg, var(--blue) 10%, rgba(0,0,0,.5) 85%);
  background-size: 9px 9px, 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .95;
}
.edu-visual { position: absolute; z-index: 2; left: 50%; top: 57%; width: min(52vw, 66vh); aspect-ratio: 1; transform: translate(-50%, -50%); }
.edu-vin { position: absolute; inset: 0; transform-style: preserve-3d; }
.edu-img { position: absolute; inset: 0; opacity: 0; transform: scale(.85) translateY(40px) rotate(-6deg); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.edu-img.is-on { opacity: 1; transform: none; }
.edu-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(1.2deg); } }
.edu-info { position: absolute; z-index: 3; left: var(--gx); bottom: 16%; width: min(330px, 80vw); padding: 22px 22px 22px 40px; border-radius: 18px; }
.edu-dots { position: absolute; left: 18px; top: 24px; display: grid; gap: 6px; }
.edu-dots i { width: 4px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); transition: height .5s var(--ease), background .3s; }
.edu-dots i.is-on { height: 22px; background: #fff; }
.edu-texts { display: grid; }
.edu-t { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.edu-t.is-on { opacity: 1; transform: none; pointer-events: auto; }
.edu-k { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8fb0ff; margin-bottom: 8px; }
.edu-t h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.edu-t p { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.78); }
.pill-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px; border-radius: 99px; background: #fff; color: #000; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; transition: transform .35s var(--ease), background .3s, color .3s; white-space: nowrap; }
.pill-btn:hover { transform: translateY(-2px); background: var(--blue); color: #fff; }
.pill-btn.dark { background: var(--ink); color: #fff; }
.pill-btn.dark:hover { background: var(--blue); }
.pill-btn.gold { background: linear-gradient(180deg, #f1d58b, #c79a3c); color: #1a1205; box-shadow: 0 10px 30px rgba(217,180,90,.25); }
.pill-btn.gold:hover { background: linear-gradient(180deg, #fff1c4, #e2b453); color: #1a1205; }
.pill-btn.wide { width: 100%; height: 52px; }
.edu-btn { position: absolute; z-index: 3; right: var(--gx); bottom: 18%; }
.marquee { position: absolute; z-index: 3; left: 0; right: 0; bottom: 3.5%; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 0; }
.marquee-in { display: flex; width: max-content; gap: 56px; animation: marq 38s linear infinite; font-family: var(--f-display); font-size: 26px; letter-spacing: .02em; color: rgba(255,255,255,.55); }
.marquee-in span { display: inline-flex; align-items: center; gap: 10px; }
.marquee i { font-style: normal; font-size: 13px; }
.marquee .up { color: var(--green); } .marquee .dn { color: var(--red); }
@keyframes marq { to { transform: translateX(-50%); } }

/* =========================================================
   5. ПРОГРАМА (світлий)
   ========================================================= */
.program { position: relative; z-index: 2; background: var(--paper); color: var(--ink); margin-top: -8vw; clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%); padding: calc(8vw + 70px) 0 90px; }
.program::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.program-in { position: relative; width: min(1200px, calc(100vw - 40px)); margin: 0 auto; }
.program-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(54px, 7.4vw, 110px); line-height: .92; letter-spacing: -.035em; color: var(--ink); margin-bottom: 44px; }
.weeks { display: flex; gap: 12px; height: 440px; }
.week { position: relative; flex: 1; min-width: 0; border-radius: 20px; overflow: hidden; background: #dfddd6; cursor: pointer; transition: flex .8s var(--ease), background .5s; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.week.is-open { flex: 3.2; background: var(--ink); color: #fff; }
.week-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 3.4vw, 52px); line-height: .9; letter-spacing: -.03em; color: var(--blue); transition: color .5s, font-size .6s var(--ease); white-space: nowrap; }
.week.is-open .week-n { font-size: clamp(64px, 7vw, 110px); }
.week.is-open .week-n { color: #fff; }
.week-v { position: absolute; right: 22px; top: 26px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.week.is-open .week-v { opacity: .55; }
.week-b { opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .6s var(--ease); max-width: 420px; }
.week.is-open .week-b { opacity: 1; transform: none; transition-delay: .25s; }
.week-b h3 { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.week-b p { font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.75); }
.week::after { content: ""; position: absolute; right: -40%; bottom: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(0,79,255,.55), transparent 65%); opacity: 0; transition: opacity .6s; pointer-events: none; }
.week.is-open::after { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.stat { border-top: 2px solid var(--ink); padding-top: 14px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; }
.stat b { font-family: var(--f-display); font-weight: 700; font-size: clamp(46px, 5vw, 74px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat i { font-style: normal; font-family: var(--f-display); font-size: 36px; color: var(--blue); }
.stat span { grid-column: 1 / -1; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(9,12,28,.6); }
.program-foot { margin-top: 44px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.program-foot p { max-width: 520px; font-size: 15px; line-height: 1.5; color: rgba(9,12,28,.7); }
.program-foot p b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* =========================================================
   6. СТРІЧКА
   ========================================================= */
.gallery { position: relative; z-index: 2; background: var(--paper); color: var(--ink); padding: 40px 0 110px; overflow: hidden; }
.gallery::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 0%, rgba(0,79,255,.08), transparent 70%); }
.gal-title { position: relative; text-align: center; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 7vw, 104px); line-height: .92; letter-spacing: -.035em; margin-bottom: 52px; padding: 0 20px; }
.gal-strip { position: relative; cursor: grab; touch-action: pan-y; }
.gal-strip.is-drag { cursor: grabbing; }
.gal-row { display: flex; gap: 28px; width: max-content; padding: 30px 0; will-change: transform; }
.pola { flex: none; width: clamp(200px, 19vw, 280px); background: #f7f5ef; padding: 12px 12px 0; border-radius: 6px; box-shadow: 0 20px 40px rgba(9,12,28,.18), 0 2px 6px rgba(9,12,28,.12); transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease), box-shadow .5s; }
.pola:hover { transform: rotate(0deg) translateY(-10px) scale(1.03); box-shadow: 0 30px 60px rgba(9,12,28,.25); }
.pola-img { aspect-ratio: 4 / 5; background: #0b0d14; border-radius: 3px; overflow: hidden; display: grid; place-items: center; }
.pola-img img { width: 86%; height: 92%; object-fit: contain; pointer-events: none; }
.pola p { font-size: 13px; padding: 12px 2px 14px; color: var(--ink); letter-spacing: -.01em; }
.gal-hint { text-align: center; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(9,12,28,.45); margin-top: 18px; }

/* =========================================================
   7. ФІНАЛ
   ========================================================= */
.final { position: relative; z-index: 3; background: #000; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; background: url("../img/hero_bg.webp") center 30%/cover no-repeat; opacity: .22; filter: blur(2px) saturate(.6); }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#000 0%, rgba(0,0,0,.4) 40%, rgba(0,0,0,.85) 100%); }
.final > * { position: relative; z-index: 1; }
.final-quote-wrap { width: min(1100px, 92vw); margin: 0 auto; padding: 150px 0 120px; text-align: center; display: grid; justify-items: center; gap: 26px; }
.final-quote { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(42px, 6.4vw, 96px); line-height: 1; letter-spacing: -.035em; }
.final-sub { max-width: 560px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cta { width: min(1200px, calc(100vw - 40px)); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; min-height: 560px; border-top: 1px solid rgba(255,255,255,.1); }
.cta-left { padding: 70px 0 90px; display: grid; gap: 18px; justify-items: start; }
.cta-sign { width: 200px; }
.cta-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(52px, 6vw, 92px); line-height: .9; letter-spacing: -.035em; }
.cta-sub { color: var(--muted); font-size: 16px; }
.cta-sub b { color: #fff; }
.cta-right { align-self: stretch; position: relative; min-height: 420px; }
.cta-char { position: absolute; right: -6%; bottom: 0; height: 115%; width: auto; max-width: none; object-fit: contain; object-position: bottom; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.foot { width: min(1200px, calc(100vw - 40px)); margin: 0 auto; padding: 50px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255,255,255,.1); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-family: var(--f-serif); font-weight: 900; font-size: clamp(54px, 10vw, 150px); letter-spacing: -.06em; line-height: .9; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: right; font-size: 15px; }
.foot-links a { color: var(--muted); } .foot-links a:hover { color: #fff; }
.foot-risk { margin-top: 30px; font-size: 12px; color: rgba(255,255,255,.4); max-width: 640px; }
.foot-bot { margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.4); }
.foot-bot b { color: #6f9bff; font-weight: 600; }

/* =========================================================
   ЗАЯВКА
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal-bg { opacity: 1; }
.modal-card { position: relative; width: min(440px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: #0e1018; border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 30px 26px 26px; transform: translateY(30px) scale(.97); opacity: 0; transition: transform .5s var(--ease), opacity .35s; }
.modal.is-open .modal-card { transform: none; opacity: 1; }
.modal-x { position: absolute; right: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.modal-x:hover { background: rgba(255,255,255,.08); color: #fff; }
.modal-card h3 { font-family: var(--f-display); font-weight: 700; font-size: 40px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.modal-card form { display: grid; gap: 14px; }
.modal-card label { display: grid; gap: 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.modal-card input, .modal-card select { height: 48px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: #07080c; color: #fff; padding: 0 14px; font: inherit; font-size: 16px; letter-spacing: 0; text-transform: none; }
.modal-card input:focus, .modal-card select:focus { outline: none; border-color: var(--blue2); }
.modal-card .is-bad { border-color: var(--red); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 6px; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); font-size: 12px; letter-spacing: .02em; text-transform: none; color: #fff; cursor: pointer; transition: background .3s, border-color .3s; }
.seg input:checked + span { background: var(--blue); border-color: var(--blue); }
.seg input:focus-visible + span { outline: 2px solid var(--blue2); outline-offset: 2px; }
.form-err { color: var(--red); font-size: 13px; }
.modal-ok { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 20px 0 4px; }
.modal-ok[hidden] { display: none; }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); font-size: 28px; }
.modal-ok p { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .hero-right { right: var(--gx); }
}
@media (max-width: 900px) {
  :root { --gx: 20px; }
  .nav { padding-top: calc(22px + env(safe-area-inset-top)); }
  .nav-mid { display: none; }
  .hero-title { top: 14%; width: 86vw; }
  .hero-char { top: 30%; height: 95%; }
  .hero-left { left: 14px; bottom: 34%; width: auto; }
  .hero-card { width: 92px; }
  .hero-badge { display: none; }
  .hero-right { left: 16px; right: 16px; top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); width: auto; justify-items: center; gap: 6px; }
  .hero-right::before { content: ""; position: absolute; left: -16px; right: -16px; bottom: -40px; height: 230px; background: linear-gradient(transparent, rgba(0,0,0,.85)); z-index: -1; }
  .hero-sign { display: none; }
  .hero-manifest { font-size: 12.5px; text-align: center; }
  .field-years { font-size: 9vw; justify-content: space-evenly; }
  .quote-dots { background-size: 4px 4px; }
  .hero-scroll { display: none; }
  .moment { width: 72vw; min-width: 0; }
  .moments-track { padding: 0 14vw 0 14vw; }
  .moments-stage { --ch: min(66vw, 44vh); }
  .moment .mcard, .moment:nth-child(odd) .mcard, .moment:nth-child(even) .mcard { top: 27%; }
  .moment:nth-child(odd) .mcap, .moment:nth-child(even) .mcap { top: calc(27% + var(--ch) + 14px); width: 64vw; }
  .myear { font-size: 13vw; bottom: 6%; }
  .moments-title { top: 12%; font-size: 17vw; white-space: normal; text-align: center; width: 100%; line-height: .85; }
  .myear { bottom: 9%; }
  .moment-now .mnow { top: 32%; }
  .stack { width: 46vw; }
  .edu-title { top: 14%; font-size: 21vw; }
  .edu-visual { top: 44%; width: 78vw; }
  .edu-info { left: 14px; right: 14px; width: auto; bottom: 24%; padding: 16px 16px 16px 34px; }
  .edu-t h3 { font-size: 19px; }
  .edu-t p { font-size: 13px; }
  .edu-btn { left: 14px; right: auto; bottom: calc(2% + 66px); height: 40px; font-size: 12px; }
  .edu-info { bottom: calc(2% + 118px); }
  .marquee { padding: 10px 0; bottom: 2%; }
  .marquee-in { font-size: 20px; gap: 36px; }
  .weeks { flex-direction: column; height: auto; }
  .week, .week.is-open { flex: none; min-height: 0; background: var(--ink); color: #fff; gap: 18px; }
  .week .week-n, .week.is-open .week-n { color: #fff; font-size: 64px; }
  .week .week-v { opacity: .55; }
  .week .week-b { opacity: 1; transform: none; }
  .week::after { opacity: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .program-foot { flex-direction: column; align-items: flex-start; }
  .cta { grid-template-columns: 1fr; min-height: 0; }
  .cta-left { padding: 60px 0 10px; }
  .cta-right { min-height: 70vw; }
  .cta-char { right: 50%; transform: translateX(50%); height: 100%; }
  .foot-links { text-align: left; }
  .final-quote-wrap { padding: 110px 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .edu-img img, .marquee-in, .hero-scroll i { animation: none; }
}
