/* =========================================================
   КОЛЬОРИ ТА ШРИФТ — міняйте тут
   ========================================================= */
:root {
  --plum: #2a1637;        /* темний фон */
  --plum-2: #3b2150;
  --peach: #ffae86;       /* головний акцент */
  --peach-dark: #f4915f;
  --lilac: #c8b6ff;       /* другий акцент */
  --tint: #f6f1fb;        /* світлий фон секцій */
  --ink: #1d1226;         /* текст */
  --muted: #6f6479;
  --font: 'Onest', Arial, sans-serif;
  --radius: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(1180px, 92%); margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255,255,255,.7); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  background: var(--plum); color: #fff; border: 2px solid var(--plum); border-radius: 16px;
  padding: 15px 28px; font-weight: 700; transition: transform .2s, box-shadow .25s, background .25s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(42,22,55,.25); }
.btn--line { background: transparent; color: var(--plum); }
.btn--line:hover { background: var(--plum); color: #fff; }
.btn--peach { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.btn--peach:hover { background: var(--peach-dark); border-color: var(--peach-dark); box-shadow: 0 14px 30px rgba(255,174,134,.35); }
.btn--small { padding: 10px 18px; font-size: .9rem; border-radius: 12px; }

.pill { display: inline-block; background: var(--tint); color: var(--plum-2); font-weight: 600; font-size: .85rem; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.title { font-weight: 900; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; letter-spacing: -1.5px; margin-bottom: 44px; }

/* ---------- Верхня смуга з таймером ---------- */
.topbar { background: var(--plum); color: #fff; font-size: .9rem; padding: 9px 0; position: relative; z-index: 101; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar b { color: var(--peach); }
.timer { display: flex; gap: 6px; }
.timer span { background: rgba(255,255,255,.1); border-radius: 8px; padding: 2px 8px; font-size: .8rem; color: rgba(255,255,255,.7); }
.timer b { color: #fff; font-variant-numeric: tabular-nums; margin-right: 2px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.scrolled { border-color: #eee6f3; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; }
.logo b { font-weight: 500; margin-left: 4px; color: var(--muted); }
.logo__mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--peach), var(--lilac)); display: grid; place-items: center; font-weight: 900; color: var(--plum); }
.nav { display: flex; gap: 26px; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--peach-dark); }
.burger { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; position: relative; z-index: 101; }
.burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 70px 0 90px; background: radial-gradient(circle at 90% 10%, rgba(200,182,255,.45), transparent 40%), radial-gradient(circle at 0% 100%, rgba(255,174,134,.3), transparent 40%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero__title { font-weight: 900; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -2px; margin-bottom: 22px; }
.hl { background: linear-gradient(transparent 58%, var(--peach) 58%); padding: 0 4px; }
.hero__lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.stats { list-style: none; display: flex; gap: 40px; flex-wrap: wrap; }
.stats b { display: block; font-size: 2.2rem; font-weight: 900; letter-spacing: -1px; }
.stats span { color: var(--muted); font-size: .9rem; }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 36px; box-shadow: 0 30px 60px rgba(42,22,55,.2); }
.float { position: absolute; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(42,22,55,.15); animation: float 5s ease-in-out infinite; }
.float b { display: block; font-size: 1.4rem; font-weight: 900; color: var(--peach-dark); }
.float small { color: var(--muted); font-size: .8rem; }
.float--1 { left: -24px; bottom: 34px; max-width: 220px; }
.float--2 { right: -14px; top: 26px; font-weight: 800; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Секції ---------- */
.section { padding: 100px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--plum); color: #fff; }

/* ---------- Для кого ---------- */
.for { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.for__card { border: 2px solid var(--tint); border-radius: var(--radius); padding: 28px; transition: .3s; }
.for__card:hover { border-color: var(--lilac); transform: translateY(-6px); box-shadow: 0 20px 40px rgba(42,22,55,.08); }
.for__card span { display: inline-block; font-weight: 900; color: var(--lilac); font-size: 1.8rem; margin-bottom: 12px; }
.for__card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.for__card p { color: var(--muted); font-size: .95rem; }

/* ---------- Програма ---------- */
.program { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; align-items: start; }
.program__side { position: sticky; top: 110px; }
.program__side .title { margin-bottom: 16px; }
.program__side p { color: var(--muted); }
.progress { margin: 26px 0; }
.progress__bar { height: 10px; background: #e6dcf1; border-radius: 99px; overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lilac), var(--peach)); border-radius: 99px; transition: width .5s ease; }
.progress small { display: block; margin-top: 8px; color: var(--muted); }
.program__meta { list-style: none; display: flex; gap: 22px; }
.program__meta b { font-size: 1.6rem; font-weight: 900; margin-right: 4px; }
.modules { display: grid; gap: 12px; }
.module { background: #fff; border-radius: 20px; overflow: hidden; border: 2px solid transparent; transition: border-color .3s, box-shadow .3s; }
.module.open { border-color: var(--lilac); box-shadow: 0 16px 36px rgba(42,22,55,.08); }
.module__head { width: 100%; display: flex; align-items: center; gap: 16px; padding: 20px 22px; background: none; border: none; cursor: pointer; text-align: left; }
.module__num { width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--tint); display: grid; place-items: center; font-weight: 900; color: var(--plum-2); transition: .3s; }
.module.open .module__num { background: var(--peach); }
.module__title { flex: 1; }
.module__title b { display: block; font-size: 1.08rem; }
.module__title small { color: var(--muted); }
.module__arrow { font-size: 1.3rem; transition: transform .3s; }
.module.open .module__arrow { transform: rotate(180deg); }
.module__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.module.open .module__body { grid-template-rows: 1fr; }
.module__body > div { overflow: hidden; }
.module__body ul { list-style: none; padding: 0 22px 22px 82px; display: grid; gap: 8px; }
.module__body li { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .95rem; border-bottom: 1px dashed #eee6f3; padding-bottom: 8px; }
.module__body li span:first-child::before { content: '▶ '; color: var(--peach-dark); font-size: .7rem; }

/* ---------- Викладач ---------- */
.teacher { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.teacher__photo { position: relative; }
.teacher__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; border-radius: 36px; }
.teacher__tag { position: absolute; right: -20px; bottom: 30px; background: var(--plum); color: #fff; font-weight: 800; padding: 16px 22px; border-radius: 18px; box-shadow: 0 16px 40px rgba(42,22,55,.3); }
.teacher__tag small { display: block; font-weight: 400; color: var(--peach); }
.ticks { list-style: none; display: grid; gap: 14px; margin-bottom: 30px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 8px; background: var(--peach); display: grid; place-items: center; font-weight: 900; font-size: .8rem; }
.quote { border-left: 4px solid var(--lilac); padding: 6px 0 6px 20px; font-size: 1.15rem; font-style: italic; color: var(--plum-2); }

/* ---------- Роботи (слайдер) ---------- */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.arrows { display: flex; gap: 10px; margin-bottom: 44px; }
.arrows button { width: 52px; height: 52px; border-radius: 16px; border: 2px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.3rem; cursor: pointer; transition: .25s; }
.arrows button:hover { background: var(--peach); border-color: var(--peach); color: var(--ink); }
.works { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.works::-webkit-scrollbar { display: none; }
.works figure { scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.works figure:hover img { transform: scale(1.06); }
.works figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 10px; }
.note { color: rgba(255,255,255,.5); font-size: .85rem; margin-top: 18px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.calc .title { margin-bottom: 16px; }
.calc__box { background: var(--tint); border-radius: 28px; padding: 34px; display: grid; gap: 22px; }
.calc__box label { display: grid; gap: 10px; font-weight: 600; }
.calc__box output { float: right; font-weight: 900; color: var(--plum-2); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 8px; border-radius: 99px; background: #e2d6ef; outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--plum); border: 4px solid var(--peach); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--plum); border: 4px solid var(--peach); cursor: pointer; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }
.calc__result div { background: #fff; border-radius: 18px; padding: 18px; }
.calc__result div:first-child { background: var(--plum); color: #fff; }
.calc__result small { display: block; font-size: .8rem; opacity: .7; }
.calc__result b { font-size: 1.7rem; font-weight: 900; letter-spacing: -.5px; }

/* ---------- Тарифи ---------- */
.billing { display: flex; justify-content: center; gap: 6px; background: #fff; width: max-content; margin: -20px auto 40px; padding: 6px; border-radius: 16px; box-shadow: 0 6px 20px rgba(42,22,55,.06); }
.billing__btn { border: none; background: none; padding: 10px 18px; border-radius: 12px; font-weight: 700; cursor: pointer; color: var(--muted); transition: .25s; }
.billing__btn em { font-style: normal; background: var(--peach); color: var(--ink); padding: 2px 6px; border-radius: 6px; font-size: .75rem; margin-left: 4px; }
.billing__btn.active { background: var(--plum); color: #fff; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: #fff; border-radius: 28px; padding: 32px; display: flex; flex-direction: column; border: 2px solid transparent; transition: .3s; position: relative; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(42,22,55,.1); }
.plan--hit { background: var(--plum); color: #fff; }
.plan__badge { position: absolute; top: -13px; left: 32px; background: var(--peach); color: var(--ink); font-weight: 800; font-size: .78rem; padding: 5px 12px; border-radius: 8px; }
.plan h3 { font-size: 1.3rem; }
.plan__desc { color: var(--muted); font-size: .92rem; margin: 4px 0 20px; }
.plan--hit .plan__desc { color: rgba(255,255,255,.65); }
.plan__price { font-size: 2.6rem; font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.plan__price small { font-size: 1rem; font-weight: 600; opacity: .6; letter-spacing: 0; }
.plan__old { color: var(--muted); text-decoration: line-through; font-size: .95rem; min-height: 1.5em; margin: 6px 0 20px; }
.plan--hit .plan__old { color: rgba(255,255,255,.5); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: .95rem; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--peach-dark); font-weight: 900; }
.plan li.no { opacity: .4; }
.plan li.no::before { content: '—'; color: inherit; }
.plan .btn { width: 100%; }
.plan--hit .btn { background: var(--peach); border-color: var(--peach); color: var(--ink); }

/* ---------- Відгуки ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reviews blockquote { background: var(--tint); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.reviews p { font-size: 1.05rem; }
.reviews cite { font-style: normal; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.reviews cite span { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--peach), var(--lilac)); display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq details { background: #fff; border-radius: 18px; margin-bottom: 10px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--peach-dark); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; }

/* ---------- Заявка ---------- */
.apply { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.apply .title { margin-bottom: 16px; }
.timer--big { margin-top: 30px; gap: 12px; }
.timer--big span { display: grid; place-items: center; width: 84px; padding: 14px 0; border-radius: 18px; background: rgba(255,255,255,.08); font-size: .78rem; }
.timer--big b { font-size: 2rem; font-weight: 900; margin: 0; }
.form { background: #fff; color: var(--ink); border-radius: 28px; padding: 34px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input:not([type=checkbox]), .form select { padding: 14px 16px; border: 2px solid var(--tint); border-radius: 14px; background: var(--tint); color: var(--ink); transition: border-color .2s; }
.form input:focus, .form select:focus { outline: none; border-color: var(--lilac); }
.form input.invalid { border-color: #e05353; }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.form .check input { width: 18px; height: 18px; accent-color: var(--plum); }
.form__error { color: #d43c3c; font-size: .88rem; display: none; }
.form__error.show { display: block; }

.footer { background: var(--ink); color: rgba(255,255,255,.55); text-align: center; padding: 26px 0; font-size: .88rem; }

/* ---------- Модальне вікно ---------- */
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(29,18,38,.7); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal__box { background: #fff; border-radius: 28px; padding: 40px; max-width: 420px; text-align: center; animation: pop .4s cubic-bezier(.2,1.5,.4,1); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.modal__icon { font-size: 3rem; }
.modal__box h3 { font-size: 1.6rem; font-weight: 900; margin: 8px 0; }
.modal__box p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Поява ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1024px) {
  .for { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .works { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .header__cta { display: none; }
  /* blur у шапці робить її «контейнером» для меню і розтягує сторінку на телефоні — вимикаємо */
  .header { backdrop-filter: none; background: #fff; }
  .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 75%; max-width: 320px; background: #fff; flex-direction: column; justify-content: center; padding: 0 40px; gap: 26px; font-size: 1.2rem; transform: translateX(100%); transition: transform .35s ease; }
  .nav.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.1); }
  .hero__grid, .program, .teacher, .calc, .apply { grid-template-columns: 1fr; gap: 40px; }
  .program__side { position: static; }
  .hero__media { max-width: 480px; margin: 0 auto; width: 100%; }
  .float--1 { left: 8px; } .float--2 { right: 8px; }
  .teacher__tag { right: 10px; }
  .reviews { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  .for { grid-template-columns: 1fr; }
  .works { grid-auto-columns: 85%; }
  .topbar__inner { justify-content: center; text-align: center; font-size: .82rem; }
  .hero__actions .btn { width: 100%; }
  .stats { gap: 24px; }
  .module__body ul { padding-left: 22px; }
  .calc__box, .form { padding: 24px; }
  .calc__result b { font-size: 1.35rem; }
  .billing { width: 100%; }
  .billing__btn { flex: 1; padding: 10px 8px; font-size: .85rem; }
  .timer--big span { width: 23%; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .arrows { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
