/* ===== Базові змінні (кольори взяті з оригінального лендінгу) ===== */
:root {
  --blue: #3674c2;
  --blue-2: #0075c6;
  --blue-btn-1: #1d8bff;
  --blue-btn-2: #0a47ff;
  --dark: #313131;
  --dark-2: #262626;
  --text: #333;
  --muted: #777;
  --gray-bg: #f2f2f2;
  --radius: 22px;
  --font-body: "Open Sans", Arial, sans-serif;
  --font-card: "Montserrat", Arial, sans-serif;
  --font-head: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.55 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; }
a { color: var(--blue); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 920px; }

.section { padding: 80px 0; }
.section--tight { padding: 40px 0 80px; }
.section--gray { background: var(--gray-bg); }

.h2 {
  font: 300 clamp(32px, 4.6vw, 52px)/1.15 var(--font-head);
  color: #444; text-align: center; margin: 0 0 48px;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 14px 32px; border: 0; border-radius: 40px;
  font: 700 13px/1.25 var(--font-card); letter-spacing: .04em; text-transform: uppercase; text-align: center;
  color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 14px 28px rgba(0,0,0,.22); }
.btn:active { transform: translateY(0); }
.btn--blue { background: linear-gradient(90deg, var(--blue-btn-1), var(--blue-btn-2)); }
.btn--dark { background: linear-gradient(90deg, #5a5a5a, #1f1f1f); }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 3px solid #9cc3ff; outline-offset: 3px; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 760px;
  background: #e9eef3 url("/assets/img/hero-bg.jpg") center 30% / cover no-repeat;
  padding-bottom: 180px;
}
.hero__top { padding-top: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 1.3; color: #555; }
.brand img { width: 40px; height: 40px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand span { border-left: 1px solid #999; padding-left: 12px; }

.hero__body { text-align: center; padding-top: 40px; }
.hero__title {
  font: 200 clamp(38px, 6.4vw, 86px)/1.05 var(--font-head);
  text-transform: uppercase; color: #4a4a4a; margin: 0 0 40px;
}
.hero__cols { display: grid; grid-template-columns: 1fr 180px 1fr; align-items: center; gap: 20px; max-width: 900px; margin: 0 auto; }
.hero__cols--buttons { margin-top: 60px; }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.5; color: #222; text-wrap: balance; }
.hero__lead--left { text-align: left; }
.hero__lead--right { text-align: right; }
.hero__cols .btn { justify-self: center; min-width: 260px; }
.hero__form { display: none; }

/* ===== Для кого ===== */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.checklist li { position: relative; padding-left: 60px; min-height: 40px; display: flex; align-items: center; font-size: 17px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; background: url("/assets/img/check.png") center / contain no-repeat;
}

.banner { background: #3a6fc4; color: #eaf1ff; text-align: center; padding: 30px 0; font-size: 16px; }
.banner p { margin: 0; }

/* ===== Програма ===== */
.arrow-down { margin: -30px auto 40px; opacity: .8; }
.weeks { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.week {
  position: relative; overflow: hidden; border-radius: var(--radius);
  color: #fff; font-family: var(--font-card); min-height: 300px;
  display: flex; align-items: stretch;
}
.week--blue { background: var(--blue); }
.week--blue2 { background: var(--blue-2); }
.week--dark { background: var(--dark); }
.week--wide { grid-column: 1 / -1; max-width: 580px; justify-self: center; width: 100%; }
.week__text { position: relative; z-index: 1; width: 64%; padding: 28px 0 30px 28px; }
.week__num { margin: 0; font-weight: 800; font-size: 17px; }
.week__title { margin: 0 0 14px; font-weight: 800; font-size: 17px; line-height: 1.25; }
.week__text p:not(.week__num) { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 400; color: rgba(255,255,255,.92); }
.week__img {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 38%; max-height: 92%; object-fit: contain; object-position: right center;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%);
  mask-image: linear-gradient(to right, transparent 0, #000 14%);
}

/* ===== CTA ===== */
.cta { text-align: center; margin-top: 60px; }
.cta__note { max-width: 760px; margin: 0 auto 24px; font-size: 17px; }
.cta__text { margin: 0 0 32px; font: 700 20px/1.4 var(--font-card); color: #2a6fd6; }
.cta__text--dark { color: #111; }
.cta__buttons { display: flex; flex-wrap: wrap; gap: 24px 100px; justify-content: center; }
.cta__buttons .btn { min-width: 250px; }

/* ===== Як проходить навчання ===== */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px 40px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 0 14px; align-content: start; }
.feature > img { width: 50px; height: auto; margin-top: 4px; }
.feature h3 { margin: 0 0 6px; font: 400 20px/1.25 var(--font-body); color: #222; }
.feature p { margin: 0; color: #555; font-size: 15px; line-height: 1.6; }
.feature__media { grid-column: 1 / -1; margin-top: 18px; }
.feature__media > img { border-radius: 8px; }
.feature__caption { text-align: center; font: 800 18px/1.3 var(--font-card) !important; color: #333 !important; margin: 0 0 12px !important; text-transform: none; }

/* Слайдер */
.slider { position: relative; }
.slider__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 6px; background: #111;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track img { flex: 0 0 100%; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: start; }
.slider__arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: #2f7bf5; color: #fff; font-size: 22px; line-height: 1; box-shadow: 0 3px 10px rgba(0,0,0,.25);
}
.slider__arrow--prev { left: -12px; }
.slider__arrow--next { right: -12px; }
.slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #b9c7da; background: transparent; padding: 0; }
.slider__dots button[aria-current="true"] { background: #2f7bf5; border-color: #2f7bf5; }

/* ===== Про автора ===== */
.author {
  position: relative; padding: 70px 0 60px;
  background: #ececec url("/assets/img/author-bg.jpg") center top / cover no-repeat;
}
.author__title { font-weight: 400; color: #111; text-transform: none; margin-bottom: 30px; }
.author__grid { display: grid; grid-template-columns: 1fr minmax(160px, 1.1fr) 1fr; gap: 20px; align-items: start; max-width: 960px; margin: 0 auto; }
.author__col { display: grid; gap: 12px; }
.note {
  margin: 0; padding: 14px 16px; border-radius: 8px;
  background: rgba(255,255,255,.93); box-shadow: 0 6px 20px rgba(0,0,0,.08);
  font: 500 13.5px/1.5 var(--font-card); color: #222;
}
.note--wide { max-width: 660px; margin: 24px auto 0; text-align: center; font-size: 15px; }

/* ===== Експерти «Хто допоможе вам вийти на новий рівень?» ===== */
.experts { background: #000; color: #fff; padding: 70px 0 80px; font-family: "Manrope", var(--font-card); }
.experts__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 48px; margin-bottom: 32px; }
.experts__title { margin: 0; max-width: 480px; font: 400 clamp(28px, 3.4vw, 38px)/1.15 "Manrope", var(--font-card); }
.experts__subtitle { margin: 0; max-width: 300px; font-size: 13px; line-height: 1.6; color: #8d8d93; }
.experts__subtitle span { color: #fff; }
.experts__arrows { display: flex; gap: 10px; }
.experts__arrow {
  width: 50px; height: 50px; border: 0; border-radius: 12px; background: #1d1d20; color: #fff;
  font-size: 20px; line-height: 1; transition: background .15s;
}
.experts__arrow:hover { background: #2c2c31; }
.experts__arrow:disabled { opacity: .35; cursor: default; }

.experts__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-behavior: smooth; padding-bottom: 4px;
}
.experts__track::-webkit-scrollbar { display: none; }
.expert {
  position: relative; flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(160deg, #3a3a3f 0%, #1f1f23 55%, #151518 100%);
  display: flex; flex-direction: column;
}
.expert__photo { width: 100%; aspect-ratio: 352 / 278; object-fit: cover; object-position: center top; }
.expert__body {
  position: relative; margin-top: -110px; padding: 0 24px 22px;
  background: linear-gradient(to bottom, rgba(24,24,28,0) 0, rgba(24,24,28,.7) 60px, #18181c 118px);
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
}
.expert__name { margin: 0 0 14px; padding-top: 60px; font: 400 28px/1.15 "Manrope", var(--font-card); }
.badge { display: inline-block; width: 24px; height: 24px; vertical-align: -3px; margin-left: 4px; }
.expert__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.expert__short { margin: 0; font-size: 12px; line-height: 1.65; color: #9a9aa1; }
.expert__more {
  flex: none; border: 0; background: none; padding: 0; color: #6d8dff; font: 500 12px/1.6 "Manrope", var(--font-card);
  text-decoration: underline; text-underline-offset: 3px;
}
.expert__more:hover { color: #9fb4ff; }

/* Модальне вікно спікера */
.expert-modal {
  width: min(600px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 26px 28px 30px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #202024 0%, #2a2b30 100%); box-shadow: 0 30px 80px rgba(0,0,0,.6);
  font-family: "Manrope", var(--font-card);
}
.expert-modal::backdrop { background: rgba(0,0,0,.65); }
.expert-modal__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; font-size: 24px; line-height: 1;
}
.expert-modal__close:hover { background: rgba(255,255,255,.16); }
.expert-modal__title { margin: 0 44px 18px 0; font: 400 clamp(26px, 4vw, 34px)/1.15 "Manrope", var(--font-card); }
.expert-modal__title .badge { width: 28px; height: 28px; vertical-align: -4px; }
.expert-modal__text { font-size: 14px; line-height: 1.7; color: #e9e9ee; }
.expert-modal__text p { margin: 0 0 12px; }
.expert-modal__text ul { margin: 0 0 14px; padding-left: 18px; }
.expert-modal__text li { margin: 0 0 2px; }
.expert-modal__text li::marker { color: #ff5a78; }

/* ===== Знання та навички ===== */
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.skill {
  background: var(--dark-2); color: #e8e8e8; border-radius: 18px; padding: 26px 34px 40px;
  text-align: center; font: 400 14.5px/1.7 var(--font-card);
}
.skill__num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #4fb2ff, #0a5dff); color: #fff;
  font-weight: 800; font-size: 16px; box-shadow: 0 0 16px rgba(30,140,255,.55); margin-bottom: 18px;
}
.skill p { margin: 0; }

/* ===== Гарантії ===== */
.guarantee { background: #1d1d1f; color: #fff; padding: 60px 0; }
.guarantee__inner { display: flex; align-items: center; justify-content: center; gap: 60px; max-width: 820px; }
.guarantee__title { margin: 0 0 4px; font: 600 26px/1.3 var(--font-card); letter-spacing: .06em; text-align: center; }
.guarantee__subtitle { margin: 0 0 14px; text-align: center; color: #9fb8e0; font-size: 14px; }
.guarantee p:not(.guarantee__subtitle) { margin: 0; text-align: center; font: 500 15px/1.75 var(--font-card); }
.guarantee img { width: 150px; flex: none; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 20px; max-width: 600px; margin: 0 auto; }
.faq details { border: 1px solid #e3e3e3; background: #fff; }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 11px 16px 11px 22px;
  font: 600 13px/1.4 var(--font-body); letter-spacing: .05em; color: #333;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; position: absolute; left: -11px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; color: #fff;
  display: grid; place-items: center; font: 700 18px/1 Arial, sans-serif;
}
.faq details[open] summary::before { content: "−"; }
.faq details p { margin: 0; padding: 4px 22px 18px; color: #666; font-size: 14px; }

/* ===== Фінальний блок ===== */
.final {
  position: relative; text-align: center; color: #eaf1ff; padding: 50px 0 150px;
  background: url("/assets/img/clouds-strip.jpg") center bottom / 100% auto no-repeat, #3f70bc;
}
.final__title { margin: 0 0 26px; font: 300 clamp(28px, 4vw, 40px)/1.2 var(--font-head); color: #fff; }
.final p { max-width: 560px; margin: 0 auto 16px; font-size: 15px; }
.final b { color: #fff; }
.final .btn { margin-top: 28px; min-width: 250px; }

/* ===== Футер ===== */
.footer { background: #4a4a4a; color: #fff; padding: 18px 0 16px; font-size: 13px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__inner p { margin: 0; }
.brand--footer { color: #ddd; font-size: 12px; }
.brand--footer span { border: 0; padding: 0; }
.brand--footer img { width: 36px; height: 36px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 12px; font-size: 13px; }
.footer__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links a:hover { color: #cfe0ff; }
.footer__disclaimer { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.15); color: #cfcfcf; font-size: 12px; line-height: 1.5; }

/* ===== Модальне вікно / форма ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10,20,40,.6); }
.modal__box {
  position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 16px; padding: 34px 28px 24px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
  text-align: center;
}
.modal__close { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 30px; line-height: 1; color: #999; }
.lead-form__title { margin: 0 0 10px; font-size: 16px; line-height: 1.45; }
.lead-form__subtitle { margin: 0 0 22px; font-size: 14px; color: #444; }
.field { display: block; text-align: left; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: #666; margin-bottom: 4px; }
.field input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid #c9d3e0; border-radius: 10px;
  font: 16px var(--font-body); color: #222;
}
.field input:focus { outline: none; border-color: #2f7bf5; box-shadow: 0 0 0 3px rgba(47,123,245,.18); }
.field input[aria-invalid="true"] { border-color: #e04444; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form__error { color: #d33; font-size: 14px; margin: 0 0 12px; }
.lead-form__privacy { margin: 12px 0 0; font-size: 12px; color: #888; }
.lead-form button[disabled] { opacity: .7; cursor: wait; }
.lead-thanks .btn { margin-top: 16px; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
  .expert { flex-basis: calc((100% - 20px) / 2); }
  .features { grid-template-columns: 1fr 1fr; }
  .author__grid { grid-template-columns: 1fr 1fr; }
  .author__photo { display: none; }
}

@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .h2 { margin-bottom: 32px; }

  .hero { min-height: 0; padding-bottom: 60px; background-position: 50% -100px; background-size: auto 900px; }
  .hero__body { padding-top: 26px; }
  .hero__title { margin-bottom: 110px; }
  .hero__cols { grid-template-columns: 1fr; gap: 14px; }
  .hero__cols--buttons { margin-top: 20px; }
  .hero__rocket-space { display: none; }
  .hero__lead--left, .hero__lead--right {
    text-align: center; background: rgba(255,255,255,.9); border-radius: 12px; padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08); font-size: 15px;
  }
  .hero__cols .btn { width: 100%; min-width: 0; }
  /* На мобільних замість двох кнопок — відкрита форма (як в оригіналі) */
  .hero__lead--left, .hero__cols--buttons { display: none; }
  .hero__form {
    display: block; margin-top: 22px; text-align: center;
    background: rgba(255,255,255,.94); border-radius: 18px; padding: 24px 18px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
  }

  .checklist li { font-size: 15px; padding-left: 52px; }
  .checklist li::before { width: 34px; height: 34px; }

  .weeks { grid-template-columns: 1fr; gap: 18px; }
  .week { min-height: 0; }
  .week__text { width: 74%; padding: 22px 0 24px 20px; }
  .week__text p:not(.week__num) { font-size: 13px; }
  .week__img { width: 34%; }
  .week--wide { max-width: none; }

  .cta__buttons { flex-direction: column; align-items: stretch; gap: 16px; }
  .cta__buttons .btn { min-width: 0; }
  .cta__text { font-size: 18px; }

  .features { grid-template-columns: 1fr; gap: 36px; }

  /* Заголовок над фото, а не поверх нього: фото зсунуте вниз, верх плавно зливається з фоном */
  .author {
    padding-top: 36px;
    background:
      linear-gradient(to bottom, #e6e6e6 0, #e6e6e6 84px, rgba(230,230,230,0) 150px),
      url("/assets/img/author-bg.jpg") 62% 84px / auto 520px no-repeat,
      #e6e6e6;
  }
  .author__title { margin-bottom: 380px; }
  .author__grid { grid-template-columns: 1fr; gap: 12px; }

  .experts { padding: 56px 0 60px; }
  .experts__head { grid-template-columns: 1fr; gap: 14px; }
  .experts__arrows { display: none; }
  .experts__track { gap: 14px; margin: 0 -20px; padding: 0 20px 4px; scroll-padding: 0 20px; }
  .expert { flex-basis: 78%; }
  .expert__name { font-size: 24px; }
  .skills { grid-template-columns: 1fr; gap: 18px; }
  .skill { padding: 22px 20px 28px; }

  .guarantee__inner { flex-direction: column-reverse; gap: 24px; }
  .guarantee img { width: 110px; }

  .final { padding-bottom: 110px; background-size: 200% auto, auto; }
  .footer__inner, .footer__links { justify-content: center; text-align: center; }
}
