/* ---------- Tokens ---------- */
:root {
  --bg: #f3f5f9;
  --tint: #e7ecf4;
  --white: #fff;
  --ink: #1f2733;
  --ink-2: #16202c;
  --ink-3: #22303f;
  --text: #414c5c;
  --muted: #5c687a;
  --muted-3: #98a3b4;
  --line: #dbe2ec;
  --line-2: #e7ecf4;
  --line-3: #eef1f6;
  --line-tint: #cfd8e6;
  --line-dark: #33404f;
  --accent: #8ea2c4;
  --red: #8e3a32;
  --on-dark: #d3dbe6;
  --on-dark-2: #9fabbd;
  --hero-eyebrow: #e6ebf3;
  --hero-lead: #dbe3ee;
  --hero-note: #c9d3e1;

  --font-display: 'Unbounded', sans-serif;
  --font-text: 'Onest', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --pad-x: 56px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:not(.btn):hover { opacity: .75; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 88px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.2;
  color: var(--ink);
}
.section-title--light { color: var(--white); }
.section-title--sm { font-size: 32px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--red);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--md { padding: 16px 26px; }
.btn--lg { padding: 18px 30px; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--accent); color: var(--ink-2); }

.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: var(--accent); }

.btn--ink { background: var(--ink-2); color: var(--white); padding: 18px 32px; }
.btn--ink:hover { background: var(--white); color: var(--ink-2); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--pad-x);
  background: rgba(243, 245, 249, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  background-color: var(--ink);
  background-image:
    linear-gradient(180deg, rgba(31, 39, 51, .62), rgba(31, 39, 51, .30)),
    url('../img/DSC_7290.jpg');
  background-size: cover;
  background-position: 50% 38%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 64px var(--pad-x) 56px;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 820px;
}
.hero__eyebrow {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.12;
  color: var(--white);
  text-wrap: pretty;
}
.hero__lead { font-size: 20px; color: var(--hero-lead); }
.hero__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero__note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hero-note);
}

/* ---------- Intro ---------- */
.intro {
  padding: 72px var(--pad-x);
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
}
.intro__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink);
}
.intro__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
}

/* ---------- Pains ---------- */
.pains {
  padding: 64px var(--pad-x);
  background: var(--tint);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain {
  background: var(--white);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 190px;
}
.pain__dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
}
.pain p { font-size: 19px; line-height: 1.5; color: var(--ink); }
.pains__outro {
  margin-top: 20px;
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.35;
  color: var(--ink);
}

/* ---------- CTA band ---------- */
.cta {
  padding: 56px var(--pad-x);
  background: var(--accent);
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cta__text {
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  color: var(--ink-2);
}
.cta p { font-size: 15px; line-height: 1.6; color: var(--ink-3); }

/* ---------- English programs ---------- */
.english {
  padding: 72px var(--pad-x);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.english__head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.english__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.program {
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.program__head {
  padding: 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red);
}
.program__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}
.program__format { font-size: 14px; line-height: 1.55; color: var(--muted); }
.program__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 15px;
  line-height: 1.65;
  flex: 1;
}
.program__bonus { display: flex; flex-direction: column; gap: 7px; }
.program__bonus-label {
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
}
.program__fit {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
}
.program__fit b { color: var(--ink); }

/* ---------- Russian for kids ---------- */
.russian {
  padding: 72px var(--pad-x);
  background: var(--tint);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px 32px;
  align-items: end;
}
.russian__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}
.russian__head p { font-size: 17px; line-height: 1.65; }
.russian__cta { grid-row: 1; grid-column: 2; }
.russian__grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.course {
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.course__head {
  padding: 30px;
  border-bottom: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.course__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
}
.course__age { font-size: 16px; line-height: 1.55; color: var(--muted); }
.course__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.course__label {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.course__note {
  padding: 16px 20px;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.course__note--strong { font-size: 16px; font-weight: 600; }
/* ---------- Generic ruled list ---------- */
.list {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.list > div { padding: 11px 0; border-top: 1px solid var(--line-3); }
.list--wide { font-size: 16px; line-height: 1.65; }
.list--wide > div { padding: 14px 0; border-top-color: var(--line-2); }
.list--tint > div { border-top-color: var(--line-tint); }
.list--dark { font-size: 16px; color: var(--on-dark); }
.list--dark > div { padding: 15px 0; border-top-color: var(--line-dark); }
.list--closed > div:last-child { border-bottom: 1px solid var(--line-2); }
.list--tint.list--closed > div:last-child { border-bottom-color: var(--line-tint); }
.list--dark.list--closed > div:last-child { border-bottom-color: var(--line-dark); }

/* ---------- About ---------- */
.about {
  padding: 72px var(--pad-x);
  background: var(--ink);
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
}
.about__body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--on-dark);
}
.about__exp { display: flex; flex-direction: column; gap: 14px; }
.about__exp-label {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.about__photo {
  min-height: 560px;
  background-color: var(--ink-2);
  background-image: url('../img/DSC_7236.jpg');
  background-size: cover;
  background-position: 50% 45%;
}

/* ---------- Method / pluses ---------- */
.method {
  padding: 72px var(--pad-x);
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.method__col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.method__col--pluses {
  padding: 36px;
  background: var(--tint);
}
.method__label {
  font-size: 15px;
  letter-spacing: .02em;
  color: var(--red);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px var(--pad-x);
  background: var(--ink-2);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--white);
}
.footer__links {
  display: flex;
  gap: 24px;
  font-size: 15px;
  color: var(--on-dark-2);
}

/* =====================================================
   Tablet
   ===================================================== */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .pains,
  .english__grid { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; gap: 24px; }
  .hero__title { font-size: 44px; }
}

/* =====================================================
   Mobile (design: 390px)
   ===================================================== */
@media (max-width: 760px) {
  :root { --pad-x: 20px; }
  [id] { scroll-margin-top: 106px; }

  .section-title { font-size: 25px; line-height: 1.25; }
  .section-title--sm { font-size: 24px; }
  .mono-label { font-size: 11px; }

  /* header: brand + button on the first row, scrollable nav below */
  .header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 20px 12px;
    background: rgba(243, 245, 249, .95);
  }
  .header__brand { font-size: 16px; }
  .header .btn--sm {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    gap: 18px;
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }

  /* hero */
  .hero {
    min-height: 520px;
    padding: 32px 20px 28px;
    background-image:
      linear-gradient(180deg, rgba(31, 39, 51, .55), rgba(31, 39, 51, .35)),
      url('../img/DSC_7290.jpg');
    background-position: 52% 35%;
  }
  .hero__inner { gap: 18px; max-width: none; }
  .hero__eyebrow { font-size: 11px; letter-spacing: .18em; }
  .hero__title { font-size: 29px; line-height: 1.18; }
  .hero__lead { font-size: 16px; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero__actions .btn { width: 100%; min-height: 52px; padding: 0 16px; }
  .hero__note { font-size: 11px; text-align: center; }

  /* intro */
  .intro { padding: 40px 20px; gap: 18px; }
  .intro__title { font-size: 24px; line-height: 1.25; }
  .intro__text { font-size: 16px; }

  /* pains */
  .pains { padding: 36px 20px; gap: 12px; }
  .pain { padding: 24px; gap: 14px; min-height: 0; }
  .pain__dot { width: 9px; height: 9px; }
  .pain p { font-size: 17px; }
  .pains__outro { margin-top: 12px; font-size: 20px; }

  /* cta */
  .cta { padding: 32px 20px; flex-direction: column; align-items: stretch; gap: 16px; }
  .cta__text { max-width: none; gap: 16px; }
  .cta__title { font-size: 19px; }
  .cta p { font-size: 14px; }
  .cta .btn { width: 100%; min-height: 52px; padding: 0 16px; }

  /* english */
  .english { padding: 40px 20px; gap: 20px; }
  .english__head { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .program__head { padding: 22px; gap: 10px; }
  .program__title { font-size: 19px; line-height: 1.3; }
  .program__body { padding: 22px; gap: 14px; }
  .program__bonus { gap: 6px; }
  .program__bonus-label { font-size: 13px; }
  .program__fit { padding-top: 14px; }

  /* russian */
  .russian {
    padding: 40px 20px;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
  }
  .russian__head { gap: 12px; max-width: none; }
  .russian__head p { font-size: 15px; }
  .russian__cta {
    grid-row: auto;
    grid-column: 1;
    order: 3;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
  }
  .russian__grid { grid-template-columns: 1fr; }
  .course__head { padding: 22px; gap: 10px; }
  .course__title { font-size: 19px; line-height: 1.3; }
  .course__age { font-size: 15px; }
  .course__body { padding: 22px; gap: 14px; }
  .course__label { font-size: 12px; }
  .list > div { padding: 10px 0; }
  .course__note { padding: 14px 16px; font-size: 14px; }
  .course__note--strong { font-size: 15px; }

  /* about: photo on top, then text */
  .about { padding: 0; grid-template-columns: 1fr; gap: 0; }
  .about__photo {
    order: -1;
    min-height: 0;
    height: 300px;
    background-position: 50% 40%;
  }
  .about__body { padding: 36px 20px; gap: 28px; }
  .about__text { font-size: 16px; gap: 16px; }
  .about__exp { gap: 12px; }
  .about__exp-label { font-size: 12px; }
  .list--dark { font-size: 15px; }
  .list--dark > div { padding: 13px 0; }

  /* method / pluses: two stacked full-bleed blocks */
  .method { padding: 0; grid-template-columns: 1fr; gap: 0; }
  .method__col { padding: 40px 20px; gap: 16px; }
  .method__col--pluses { padding: 36px 20px; }
  .method__label { font-size: 14px; }
  .list--wide { font-size: 15px; }
  .list--wide > div { padding: 12px 0; }

  /* footer */
  .footer { padding: 32px 20px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer__brand { font-size: 18px; }
  .footer__links { gap: 20px; }
}
