/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  color: #000;
  font-family: 'Inter', sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

:root {
  --accent: #6668D3;
  --accent-light: #EDEDFB;
  --muted: #6B6B6B;
  --border: #EDEDFB;
  --radius-card: 20px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: box-shadow 0.2s;
}
.nav.scrolled { box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
.nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav__logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  opacity: 0.75;
  color: #000;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.nav__link:hover { opacity: 1; }
.nav__cta {
  border-radius: 999px;
  padding: 9px 22px;
  opacity: 1;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  transition: opacity 0.2s;
  white-space: nowrap;
}
.nav__cta:hover { opacity: 0.88; }
.nav__hamburger {
  display: none;
  border: none;
  padding: 4px;
  background: none;
  cursor: pointer;
}
.nav__mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  background: #fff;
}
.nav__mobile.open { display: block; }
.nav__mobile-link {
  display: block;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  color: #000;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
}
.nav__mobile-cta {
  display: inline-block;
  margin-top: 20px;
  border-radius: 999px;
  padding: 12px 28px;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: var(--accent);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.hero__badge {
  display: inline-block;
  margin-bottom: 24px;
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--accent-light);
}
.hero__title {
  margin-bottom: 24px;
  color: #000;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -1.5px;
}
.hero__desc {
  max-width: 480px;
  margin-bottom: 40px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero__btn {
  display: inline-block;
  border-radius: 999px;
  padding: 16px 36px;
  box-shadow: 0 4px 20px rgba(102,104,211,0.28);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  background: var(--accent);
  transition: opacity 0.2s, transform 0.15s;
}
.hero__btn:hover { opacity: 0.9; transform: translateY(-1px); }
.hero__photo {
  border-radius: 24px;
  overflow: hidden;
  line-height: 0;
  /* aspect-ratio: 6/7; */
  background: #f0f0f3;
}
.hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__photo svg { display: block; width: 100%; height: 100%; }

/* ── Stats ───────────────────────────────────────────────── */
.stats {
  padding: 56px 24px;
  background: var(--accent-light);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.stats__num {
  color: var(--accent);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -2px;
}
.stats__num span {
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 32px);
}
.stats__label {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
}

/* ── About ───────────────────────────────────────────────── */
.about {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 24px;
}
.about__title {
  margin-bottom: 32px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
}
.about__text {
  margin-bottom: 20px;
  color: #1a1a1a;
  font-size: 17px;
  line-height: 1.85;
}

/* ── Lead form ───────────────────────────────────────────── */
.lead-form {
  margin-top: 48px;
  border-radius: 0 16px 16px 0;
  border-left: 4px solid var(--accent);
  padding: 36px;
  background: #fafbff;
}
.lead-form__title {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
}
.lead-form__sub {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.lead-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lead-form__input {
  flex: 1 1 200px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 13px 18px;
  outline: none;
  color: #000;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s;
}
.lead-form__input:focus { border-color: var(--accent); }
.lead-form__btn {
  border: none;
  border-radius: 999px;
  padding: 13px 28px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  transition: opacity 0.2s;
  cursor: pointer;
  white-space: nowrap;
}
.lead-form__btn:hover { opacity: 0.88; }
.lead-form__btn:disabled { opacity: 0.45; cursor: default; }
.lead-form__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.lead-form__success {
  display: none;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  padding: 16px 20px;
  background: var(--accent-light);
}
.lead-form__success.show { display: flex; }
.lead-form__success-text {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
}

/* ── Lessons ─────────────────────────────────────────────── */
.lessons {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.section-title {
  margin-bottom: 16px;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
}
.section-sub {
  margin-bottom: 56px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(102,104,211,0.12);
}
.card__badge-popular {
  position: absolute;
  top: -1px;
  right: 24px;
  border-radius: 0 0 10px 10px;
  padding: 4px 12px;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--accent);
}
.card__icon { margin-bottom: 20px; font-size: 32px; }
.card__title { margin-bottom: 12px; font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.card__desc { flex: 1; margin-bottom: 24px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card__duration {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: 28px;
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  background: var(--accent-light);
}
.card__cta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 11px 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.card__cta:hover { color: #fff; background: var(--accent); }
.lessons__hint { margin-top: 40px; text-align: center; }
.lessons__hint p { margin-bottom: 10px; color: var(--muted); font-size: 14px; }
.lessons__hint a {
  border-bottom: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.checklist {
  max-width: 600px;
  margin-top: 64px;
  margin-right: auto;
  margin-left: auto;
}
.checklist__title { margin-bottom: 28px; font-weight: 700; font-size: 22px; letter-spacing: -0.3px; }
.checklist__list { display: flex; flex-direction: column; gap: 16px; }
.checklist__item { display: flex; align-items: flex-start; gap: 14px; }
.checklist__icon { flex-shrink: 0; margin-top: 2px; }
.checklist__text { color: #1a1a1a; font-size: 16px; line-height: 1.6; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials {
  padding: 96px 24px;
  background: #fafafa;
}
.testimonials__inner { max-width: 1200px; margin: 0 auto; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.review {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  transition: box-shadow 0.2s;
}
.review:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.review__quote { margin-bottom: 16px; }
.review__text { color: #1a1a1a; font-size: 15px; line-height: 1.8; }

/* ── Useful Links ────────────────────────────────────────── */
.useful {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px;
}
.link-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(102,104,211,0.1);
}
.link-card__title { margin-bottom: 6px; color: #000; font-weight: 600; font-size: 17px; }
.link-card__desc { color: var(--muted); font-size: 14px; }
.link-card__arrow {
  flex-shrink: 0;
  color: #ccc;
  transition: color 0.2s, transform 0.2s;
}
.link-card:hover .link-card__arrow { color: var(--accent); transform: translateX(4px); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 56px 24px 32px;
  color: #fff;
  background: var(--accent);
}
.footer__inner { max-width: 1200px; margin: 0 auto; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 40px;
}
.footer__logo { margin-bottom: 8px; font-weight: 700; font-size: 18px; }
.footer__copy { color: rgba(255,255,255,0.5); font-size: 14px; }
.footer__contacts { display: flex; flex-direction: column; gap: 14px; }
.footer__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.85;
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__phone:hover { opacity: 1; }
.footer__socials { display: flex; gap: 16px; margin-top: 4px; }
.footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.75;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__social:hover { opacity: 1; }
.footer__bottom {
  margin-top: 24px;
  text-align: center;
}
.footer__bottom__contact {
  opacity: 0.75;
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer__bottom__contact:hover { opacity: 1; }

/* ── Tweaks panel ────────────────────────────────────────── */
.tweaks-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  display: none;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  background: #fff;
}
.tweaks-panel.open { display: block; }
.tweaks-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.tweaks-panel__title { font-weight: 700; font-size: 15px; }
.tweaks-panel__close {
  border: none;
  opacity: 0.5;
  font-family: inherit;
  font-size: 20px;
  line-height: 1;
  background: none;
  cursor: pointer;
}
.tweaks-panel__label {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tweaks-panel__swatches { display: flex; gap: 8px; }
.swatch {
  width: 28px;
  height: 28px;
  border: 2px solid #e0e0e0;
  border-radius: 999px;
  transition: border 0.15s;
  cursor: pointer;
}
.swatch.active { border: 3px solid #000; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: block; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 20px; }
  .hero__photo { aspect-ratio: 4/3; }

  .stats__inner { grid-template-columns: 1fr; gap: 28px; }

  .cards-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }

  .about,
  .lessons,
  .useful { padding-top: 48px; padding-bottom: 48px; }
  .testimonials { padding-top: 48px; padding-bottom: 48px; }
}
