/* Language Zone — образовательная эстетика: школьная меловая доска-тёмный + бумага + маркер-оранжевый.
   Академично и живо. Cormorant + Manrope. */
:root {
  --board: #1e2a26;
  --board2: #273632;
  --paper: #f7f4ec;
  --paper2: #ede8db;
  --mark: #e07a3f;
  --mark2: #f0975c;
  --ink: #232e2a;
  --ink-m: #5c6a64;
  --line: rgba(35, 46, 42, .13);
  --r: 12px;
  --ff-d: "Cormorant Garamond", Georgia, serif;
  --ff-t: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-t); font-size: 16px; line-height: 1.6; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1140px, 92vw); margin: 0 auto; }
::selection { background: var(--mark); color: #fff; }

.h2 { font-family: var(--ff-d); font-weight: 500; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; color: var(--ink); }
.lead { color: var(--ink-m); font-size: 16px; max-width: 520px; }

.topbar { background: var(--board); color: #e2e8e4; font-size: 12px; }
.topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar__note { color: #a4b4ad; }
.topbar__tel { font-weight: 700; white-space: nowrap; color: var(--mark2); }
.lang { display: flex; gap: 2px; }
.lang__btn { padding: 4px 9px; font-size: 11px; font-weight: 800; color: #a4b4ad; background: none; border: none; cursor: pointer; border-radius: 5px; }
.lang__btn.is-active { color: #fff; background: rgba(255,255,255,.14); }

.nav { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px max(24px, 4vw); background: rgba(247,244,236,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__logo { height: 44px; width: auto; }
.nav__links { display: flex; gap: 24px; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a { color: var(--ink-m); }
.nav__links a:hover { color: var(--board); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; font-family: var(--ff-t); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 999px; background: var(--mark); color: #fff; border: none; cursor: pointer; transition: background .25s; white-space: nowrap; }
.btn:hover { background: var(--mark2); }
.btn--ghost { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: none; }
.btn--small { padding: 9px 18px; font-size: 11.5px; }
.btn--full { width: 100%; }

.nav__burger { display: none; width: 42px; height: 42px; background: none; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s, top .3s; }
.nav__burger span:nth-child(1) { top: 15px; }
.nav__burger span:nth-child(2) { top: 20px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav__mobile { position: fixed; inset: 0; z-index: 99; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .3s; }
.nav__mobile.is-open { opacity: 1; pointer-events: auto; }
.nav__mobile a { font-family: var(--ff-d); font-size: 27px; color: var(--ink); }

/* hero */
.hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,42,38,.88) 0%, rgba(30,42,38,.55) 42%, rgba(30,42,38,.08) 72%), linear-gradient(180deg, rgba(30,42,38,.3) 0%, transparent 30%, rgba(30,42,38,.45) 100%); }
.hero__inner { padding: 110px 0 60px; }
.hero__kicker { font-size: 12px; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; color: var(--mark2); margin-bottom: 14px; }
.hero__title { font-family: var(--ff-d); font-weight: 500; font-size: clamp(48px, 7vw, 80px); line-height: .98; color: #fff; margin-bottom: 16px; }
.hero__title span { color: var(--mark2); }
.hero__lead { color: rgba(255,255,255,.9); font-size: 17px; max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* languages: 6 языков в столбик-сетку со смещением */
.langs { padding: 84px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .lead { margin-top: 12px; }
.langs__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lng { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; display: flex; flex-direction: column; gap: 4px; transition: border-color .25s; }
.lng:hover { border-color: var(--mark); }
.lng b { font-family: var(--ff-d); font-size: 25px; font-weight: 600; color: var(--board); }
.lng span { font-size: 13px; color: var(--ink-m); }
.langs__exams { margin-top: 22px; color: var(--ink-m); font-size: 14px; }
.langs__exams b { color: var(--mark); }

/* why: лента */
.why { padding: 64px 0 84px; background: var(--paper2); border-block: 1px solid var(--line); }
.why__list { display: flex; flex-wrap: wrap; gap: 0; }
.wh { display: flex; flex-direction: column; gap: 5px; padding: 6px 28px; border-left: 1px solid var(--line); flex: 1 1 220px; }
.wh:first-child { border-left: none; padding-left: 0; }
.wh b { font-family: var(--ff-d); font-size: 21px; font-weight: 600; color: var(--board); }
.wh span { font-size: 13px; color: var(--ink-m); }

/* gallery */
.gallery { padding: 84px 0; }
.gal__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: 12px; }
.gal__ph { overflow: hidden; border-radius: 10px; }
.gal__ph img { width: 100%; height: 100%; object-fit: cover; }
.gal__ph--big { grid-row: span 2; }

/* enroll */
.enroll { padding: 84px 0; background: var(--board); color: #e2e8e4; }
.enroll .h2 { color: #fff; }
.enroll .lead { color: #a4b4ad; }
.enroll__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.enroll__contacts { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.enroll__contacts a { font-family: var(--ff-d); font-size: clamp(21px, 2.8vw, 28px); color: var(--mark2); }
.enroll__contacts a:hover { color: #fff; }
.enroll__addr { margin-top: 18px; font-size: 13.5px; color: #a4b4ad; max-width: 380px; }

.form { display: flex; flex-direction: column; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a4b4ad; }
.form input, .form select { font-family: var(--ff-t); font-size: 15px; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .2s; }
.form input:focus, .form select:focus { border-color: var(--mark); }
.form select option { color: var(--ink); }
.form__hint { font-size: 12px; color: #7e8f88; }
.form__done { padding: 11px 14px; border-radius: 8px; border: 1px solid rgba(224,122,63,.5); background: rgba(224,122,63,.15); color: var(--mark2); font-size: 13px; }

/* faq */
.faq { padding: 80px 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; background: none; border: none; cursor: pointer; font-family: var(--ff-d); font-size: 21px; text-align: left; color: var(--ink); }
.faq__q:hover { color: var(--mark); }
.faq__q i { font-style: normal; font-size: 24px; color: var(--mark); transition: transform .3s var(--ease); flex: none; }
.faq__item.is-open .faq__q i { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq__a p { padding: 0 40px 20px 0; color: var(--ink-m); max-width: 560px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 22px 0; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-m); }
.footer__brand { font-family: var(--ff-d); font-size: 21px; font-weight: 600; color: var(--ink); }
.footer__brand span { color: var(--mark); }
.footer__tel { font-weight: 700; color: var(--mark); }

@media (max-width: 1000px) {
  .nav__links, .nav__right .btn { display: none; }
  .nav__burger { display: block; }
  .hero { min-height: 68svh; }
  .langs__list { grid-template-columns: 1fr 1fr; }
  .gal__grid { grid-template-columns: 1fr 1fr; }
  .gal__ph--big { grid-column: span 2; grid-row: span 1; }
  .enroll__grid, .faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .topbar__note { display: none; }
  .hero { min-height: 0; padding-top: 30px; }
  .hero__inner { padding: 80px 0 44px; }
  .hero__title { font-size: clamp(42px, 12vw, 56px); }
  .langs__list { grid-template-columns: 1fr; }
  .wh { flex: 1 1 100%; border-left: none; padding: 0; }
  .gal__grid { grid-auto-rows: 170px; }
  .enroll__contacts a { font-size: 20px; }
  .faq__q { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
