:root {
  --night: #0E1130; --night2: #171B45; --ink: #1A1D3A; --muted: #4F5577; --line: #DCE3F5; --bg: #F5F7FF;
  --blue: #2F6BFF; --violet: #7A5AF0; --pink: #E0457F; --cyan: #29C5F6; --radius: 26px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Manrope, system-ui, sans-serif; font-size: 18px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--blue); }
h1, h2, h3 { font-family: Unbounded, Manrope, sans-serif; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 6.4vw, 46px); line-height: 1.1; margin-bottom: 16px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.block { padding-top: 96px; }
.kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue);
  background: #E7EEFF; padding: 6px 12px; border-radius: 999px; margin: 0 0 14px; }
.kicker.light { background: rgba(255,255,255,.14); color: #fff; }
.sub { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0 0 28px; }
.fine { color: var(--muted); font-size: 15px; }
.grad { background: linear-gradient(90deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Навігація */
.nav { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 20; width: calc(100% - 24px); max-width: 1080px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 18px;
  background: rgba(14,17,48,.55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.12); border-radius: 999px; transition: background .3s; }
.nav.solid { background: rgba(14,17,48,.88); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: Unbounded, sans-serif; font-weight: 800; font-size: 16px; color: #fff; text-decoration: none; white-space: nowrap; }
.logo span { color: var(--pink); }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-links a { color: #E6E9FF; font-weight: 700; font-size: 15px; text-decoration: none; padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { background: rgba(255,255,255,.1); }
.nav-login { background: #fff; color: var(--ink) !important; }
@media (max-width: 720px) { .nav-links a:not(.nav-login) { display: none; } }

/* Кнопки */
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 58px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-weight: 800; font-size: 17px; text-decoration: none;
  box-shadow: 0 18px 40px -16px rgba(47,107,255,.8), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(122,90,240,.9); color: #fff; }
.btn.glass { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); box-shadow: none; backdrop-filter: blur(10px); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { color: var(--ink); }

/* HERO */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: radial-gradient(120% 80% at 70% 30%, #26307A 0%, var(--night) 60%);
  color: #fff; overflow: hidden; display: flex; align-items: center; padding: 110px 0 70px; }
#orb { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; letter-spacing: .06em; margin: 0 0 24px; backdrop-filter: blur(8px); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,69,127,.7); } 100% { box-shadow: 0 0 0 14px rgba(224,69,127,0); } }
h1 { font-size: clamp(48px, 11vw, 104px); line-height: .98; font-weight: 800; }
.typed { font-family: Unbounded, sans-serif; font-weight: 500; font-size: clamp(20px, 4.4vw, 30px); color: #FF8DB8; margin: 18px 0 14px; min-height: 1.3em; }
.caret { animation: blink 1s steps(1) infinite; } @keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 19px; color: #C9CFEA; max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.countdown { display: flex; gap: 10px; margin-top: 36px; }
.countdown div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 12px 14px; min-width: 76px; text-align: center; backdrop-filter: blur(8px); }
.countdown b { display: block; font-family: Unbounded, sans-serif; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; color: #AEB5DA; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.float-cards { position: absolute; right: max(20px, calc(50% - 540px)); top: 50%; width: 330px; height: 420px; transform: translateY(-50%); z-index: 2;
  perspective: 900px; pointer-events: none; }
.fc { position: absolute; display: grid; gap: 2px; padding: 16px 20px; min-width: 210px; border-radius: 20px; color: #fff;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
  transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; }
.fc b { font-size: 18px; } .fc small { color: #C9CFEA; font-size: 14px; }
.fc .live { color: #FF8DB8; font-weight: 800; font-size: 13px; letter-spacing: .08em; } .fc .emoji { font-size: 22px; }
.fc1 { top: 0; right: 0; } .fc2 { top: 150px; left: 0; animation-delay: -2s; } .fc3 { top: 300px; right: 20px; animation-delay: -4s; }
@keyframes bob { 0%,100% { transform: translateY(0) rotateX(8deg) rotateY(-14deg); } 50% { transform: translateY(-14px) rotateX(2deg) rotateY(-6deg); } }
@media (max-width: 960px) { .float-cards { display: none; } }

/* Стрічка */
.marquee { background: var(--night); color: #fff; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.mq-track { display: flex; gap: 40px; width: max-content; animation: mq 32s linear infinite; }
.mq-track span { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 22px; white-space: nowrap; }
.mq-track span::after { content: "✦"; margin-left: 40px; color: var(--pink); }
@keyframes mq { to { transform: translateX(-50%); } }

/* 3D-нахил карток */
.tilt { transform-style: preserve-3d; transition: transform .25s ease, box-shadow .25s; will-change: transform; }

/* Порівняння */
.compare { display: grid; gap: 16px; grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1.25fr 1fr; align-items: center; } }
.cmp { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.cmp h3 { font-size: 20px; margin-bottom: 14px; }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cmp li { padding-left: 30px; position: relative; font-weight: 600; }
.cmp li::before { content: "✓"; position: absolute; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #E3F7EC; color: #13804B; font-size: 13px; display: grid; place-items: center; top: 2px; }
.cmp li.no { color: var(--muted); font-weight: 500; } .cmp li.no::before { content: "✕"; background: #F1F2F8; color: #8A90B2; }
.cmp.hot { background: linear-gradient(150deg, var(--blue), var(--violet) 70%, var(--pink)); color: #fff; border: 0; padding: 34px 30px; box-shadow: 0 40px 80px -40px rgba(47,107,255,.9); }
.cmp.hot li::before { background: rgba(255,255,255,.22); color: #fff; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(255,255,255,.2); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Кроки */
.steps3 { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: 1fr; perspective: 1200px; }
@media (min-width: 860px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 8px; }
.steps3 .n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: Unbounded, sans-serif; font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 14px 28px -12px rgba(47,107,255,.8); transform: translateZ(30px); }
.steps3 b { font-size: 20px; } .steps3 span:last-child { color: var(--muted); }

/* Квіз */
.quiz { background: radial-gradient(100% 120% at 100% 0%, #3A2C8F 0%, var(--night) 60%); color: #fff; border-radius: 34px; padding: clamp(26px, 5vw, 56px); position: relative; overflow: hidden; }
.quiz::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -160px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--pink), transparent 65%); filter: blur(20px); opacity: .55; }
.quiz > * { position: relative; z-index: 1; }
.q-step { font-weight: 700; color: #AEB5DA; font-size: 15px; margin: 6px 0 10px; }
.q-title { font-family: Unbounded, sans-serif; font-size: clamp(20px, 4vw, 28px); margin: 0 0 20px; }
.q-opts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.q-opts button { font: inherit; font-weight: 700; color: #fff; text-align: left; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 18px 20px; cursor: pointer; min-height: 64px; transition: transform .2s, background .2s; }
.q-opts button:hover { transform: translateY(-3px); background: rgba(255,255,255,.16); }
.q-bar { height: 6px; background: rgba(255,255,255,.12); border-radius: 9px; overflow: hidden; margin-bottom: 22px; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .4s; }
.q-res { display: grid; gap: 14px; }
.q-res .pick { font-family: Unbounded, sans-serif; font-size: clamp(26px, 5vw, 40px); }
.q-res .row { display: flex; flex-wrap: wrap; gap: 12px; }
.linkbtn { font: inherit; background: none; border: 0; color: #C9CFEA; text-decoration: underline; cursor: pointer; padding: 10px 0; }

/* Напрями (розмітка з home.js) */
.dirs { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .dirs { grid-template-columns: 1fr 1fr; align-items: start; } }
.dir { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.dir:hover { box-shadow: 0 24px 50px -30px rgba(26,29,58,.45); transform: translateY(-2px); }
.dir summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; }
.dir summary::-webkit-details-marker { display: none; }
.ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)); box-shadow: 0 12px 24px -12px var(--c); }
.ico svg { width: 28px; height: 28px; }
.dir-name { display: block; font-weight: 800; font-size: 18px; } .dir-count { display: block; color: var(--muted); font-size: 14px; }
.chev { margin-left: auto; transition: transform .25s; color: var(--muted); } .dir[open] .chev { transform: rotate(180deg); }
.dir-body { padding: 0 20px 20px; } .dir-body p { margin: 0 0 10px; color: var(--muted); }
.types { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.types li { background: #F1F4FF; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 15px; }
.types small { margin-left: 6px; } .dir.flash { box-shadow: 0 0 0 3px var(--pink); }

/* Часові пояси */
.tz-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tz-pick button { font: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 16px; cursor: pointer; min-height: 44px; }
.tz-pick button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tz-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.tz-cell { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tz-cell b { display: block; font-family: Unbounded, sans-serif; font-size: 20px; }
.tz-cell small { color: var(--muted); font-size: 13px; }
.tz-cell.good { background: #EEF3FF; border-color: #CFDBFF; }
.tz-cell.night { opacity: .45; }

/* Калькулятор */
.calc { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(22px, 4vw, 40px); display: grid; gap: 22px; box-shadow: 0 40px 80px -50px rgba(26,29,58,.5); }
@media (min-width: 860px) { .calc { grid-template-columns: 1.2fr 1fr; align-items: center; } .calc-out { grid-row: span 2; grid-column: 2; } }
.calc label { font-weight: 800; font-size: 18px; display: grid; gap: 14px; }
.calc input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.lv { display: flex; gap: 10px; flex-wrap: wrap; }
.lv button { font: inherit; font-weight: 800; flex: 1; min-width: 96px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 18px; padding: 12px; cursor: pointer; display: grid; }
.lv button small { font-weight: 600; color: var(--muted); }
.lv button[aria-pressed="true"] { border-color: var(--blue); background: #EEF3FF; }
.calc-out { background: linear-gradient(150deg, var(--blue), var(--violet)); color: #fff; border-radius: 24px; padding: 26px; display: grid; gap: 6px; }
.calc-out span { color: #DCE3FF; font-weight: 700; } .calc-out b { font-family: Unbounded, sans-serif; font-size: clamp(34px, 6vw, 48px); line-height: 1.05; }
.calc-out small { color: #E6E9FF; font-size: 15px; }
.packs { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
@media (min-width: 860px) { .packs { grid-template-columns: repeat(4, 1fr); } }
.pack { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 2px; }
.pack span { font-weight: 700; color: var(--muted); } .pack b { font-family: Unbounded, sans-serif; font-size: 22px; } .pack small { color: var(--muted); }
.pack.hot { border: 2px solid var(--pink); }

/* Що потрібно */
.need { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); perspective: 1000px; }
@media (min-width: 860px) { .need { grid-template-columns: repeat(4, 1fr); } }
.need div { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: grid; gap: 4px; }
.need span { font-size: 34px; transform: translateZ(24px); } .need b { font-size: 17px; } .need small { color: var(--muted); font-size: 14px; }

/* Тренерам */
.coach-cta { background: linear-gradient(130deg, var(--night) 0%, #2B2F7A 60%, var(--violet) 100%); color: #fff; border-radius: 34px; padding: clamp(26px, 5vw, 56px);
  display: grid; gap: 22px; align-items: center; }
@media (min-width: 860px) { .coach-cta { grid-template-columns: 1fr auto; } }
.coach-cta p { color: #C9CFEA; margin: 0; max-width: 560px; }

/* FAQ */
.qa { background: #fff; border: 1px solid var(--line); border-radius: 18px; margin-bottom: 10px; }
.qa summary { cursor: pointer; font-weight: 800; padding: 18px 20px; min-height: 56px; }
.qa p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.final { text-align: center; padding-bottom: 40px; } .final .sub { margin-left: auto; margin-right: auto; }

.foot { padding: 60px 20px 40px; text-align: center; color: var(--muted); font-size: 15px; }
.foot .logo { color: var(--ink); justify-content: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }

/* Поява при прокрутці */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; } .mq-track, .fc, .dot { animation: none; }
}

[data-postlaunch][hidden], [data-prelaunch-only][hidden] { display: none !important; }
