/* Hong Gia Vietnam — реализация макета на дизайн-системе Nocturne.
   Токены взяты из _ds/nocturne/styles.css; фон, поверхность и границы
   переопределены значениями из самого макета — он темнее базового. */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");

:root {
  /* ground — из макета, темнее системного --color-bg */
  --color-bg: #0d0e18;
  --color-surface: #1a1c28;
  --color-border: #33363f;
  --color-text: #e9e9ed;

  /* accent ramp — Nocturne, без изменений */
  --color-accent: #9184d9;
  --color-accent-100: #f5f4ff;
  --color-accent-300: #d2cefd;
  --color-accent-400: #b5abfc;
  --color-accent-800: #423a6a;

  /* прозрачные ступени текста */
  --text-82: rgba(233, 233, 237, 0.82);
  --text-80: rgba(233, 233, 237, 0.8);
  --text-78: rgba(233, 233, 237, 0.78);
  --text-72: rgba(233, 233, 237, 0.72);
  --text-62: rgba(233, 233, 237, 0.62);
  --text-60: rgba(233, 233, 237, 0.6);
  --text-50: rgba(233, 233, 237, 0.5);
  --text-45: rgba(233, 233, 237, 0.45);
  --line-18: rgba(233, 233, 237, 0.18);
  --line-16: rgba(233, 233, 237, 0.16);
  --line-12: rgba(233, 233, 237, 0.12);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 8px;
  --shell: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: var(--color-accent-400); }

/* height: auto обязателен: атрибуты width/height на <img> дают браузеру
   пропорции (нет скачка вёрстки при загрузке), но без него высота
   осталась бы равна атрибуту. */
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(145, 132, 217, 0.3); }

h1, h2, h3, h6 { font-family: var(--font); font-weight: 500; }

/* Подпись Nocturne: линейка гаснет к краям на 48px */
.rule {
  height: 1px;
  border: 0;
  margin: 0 0 56px;
  background: linear-gradient(to right,
    transparent, var(--line-16) 48px,
    var(--line-16) calc(100% - 48px), transparent);
}

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 32px 96px; }
.shell--flush { padding-bottom: 0; }

.kicker {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-50);
  margin: 0 0 40px;
}

/* ── nav ──────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 14, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__brand { display: flex; flex-direction: column; gap: 2px; margin-right: auto; color: inherit; }
.nav__brand:hover { color: inherit; }
.nav__brand b { font-weight: 500; font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; }
.nav__brand span { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-50); }
.nav__links { display: flex; gap: 22px; font-size: 13px; }
.nav__links a { color: var(--text-62); }
.nav__links a:hover { color: var(--color-text); }

.lang { display: flex; border: 1px solid var(--line-16); border-radius: var(--radius); overflow: hidden; }
.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  color: var(--text-50);
}
.lang button:hover { color: var(--color-text); }
.lang button[aria-pressed="true"] { background: rgba(145, 132, 217, 0.18); color: var(--color-accent-300); }

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
}
.btn--primary { border-color: var(--color-accent); color: var(--color-accent-300); }
.btn--primary:hover { background: rgba(145, 132, 217, 0.14); color: var(--color-accent-100); }
.btn--primary:active { background: rgba(145, 132, 217, 0.22); }
.btn--secondary { padding: 0 20px; border-color: var(--line-16); color: var(--text-78); }
.btn--secondary:hover { border-color: rgba(233, 233, 237, 0.34); color: var(--color-text); }
.btn--secondary:active { background: rgba(233, 233, 237, 0.07); }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0 88px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-300);
  margin-bottom: 28px;
}
.hero__eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--color-accent); }
.hero h1 { font-size: 58px; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 22px; }
/* Две строки заголовка — отдельные span, чтобы перенос пережил смену языка */
.hero h1 span { display: block; }
.hero__lede { font-size: 17px; line-height: 1.6; color: var(--text-72); max-width: 46ch; margin: 0 0 34px; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { font-size: 12px; color: var(--text-45); padding-left: 6px; }

/* .lighten — обязательная обёртка Nocturne для фотографий */
.lighten { mix-blend-mode: lighten; background-color: transparent; }

/* ── «с чем приходят» ─────────────────────────────────────────────────── */

.section { padding: 0 0 88px; }
.section--practice { padding-top: 8px; }

.c3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.c2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.topic { border-top: 1px solid var(--line-12); padding-top: 20px; }
.topic h3 { font-size: 21px; letter-spacing: -0.015em; margin: 0 0 10px; }
.topic p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-62); }

/* ── split: обо мне / питание / faq ───────────────────────────────────── */

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.split__body { padding-top: 46px; }
.split__body p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--text-60); text-wrap: pretty; }
.split__body p:first-child { font-size: 17px; color: var(--text-78); }
.split__body p:last-child { margin-bottom: 0; }

.split h2,
.prices__head h2,
.faq h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
.split .kicker { margin-bottom: 18px; }

.stats { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.stat { display: flex; align-items: baseline; gap: 14px; }
.stat b { font-weight: 500; font-size: 28px; color: var(--color-accent-300); min-width: 56px; }
.stat span { font-size: 13px; color: var(--text-62); }

/* ── цены ─────────────────────────────────────────────────────────────── */

.prices__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.prices__note { font-size: 12px; color: var(--text-45); padding-bottom: 6px; }

.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--color-border);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card--featured { box-shadow: 0 0 0 1px var(--color-accent-800); }
.card h3 { font-size: 23px; letter-spacing: -0.015em; margin: 0; }
.card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-62); }
.card__tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-300);
  background: rgba(145, 132, 217, 0.16);
  border-radius: 4px;
  padding: 4px 8px;
}
.card__price { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; gap: 10px; }
.card__price b { font-weight: 500; font-size: 26px; color: var(--color-text); }
.card__price span { font-size: 12px; color: var(--text-45); }

/* ── полоса «питание», во всю ширину ──────────────────────────────────── */

.band {
  background: linear-gradient(160deg, #1d2049, #14162f 72%);
  padding: 72px 0;
  margin-bottom: 88px;
}
.band .kicker { color: var(--text-60); margin-bottom: 18px; }
.band h2 { font-weight: 500; font-size: 34px; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: pretty; }
.band__lede { font-size: 16px; line-height: 1.65; color: var(--text-80); margin: 0 0 24px; max-width: 56ch; text-wrap: pretty; }
.band__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-18);
  margin: 0;
}
.band__steps dt { font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.band__steps dd { margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-62); }

/* ── отзывы ───────────────────────────────────────────────────────────── */

.quote {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--color-border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.quote::before { content: ""; width: 18px; height: 1px; background: var(--color-accent); }
.quote blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-80); }
.quote figcaption { font-size: 12px; color: var(--text-45); margin-top: auto; }

/* ── faq ──────────────────────────────────────────────────────────────── */

.faq { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; align-items: start; }
.faq__list { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line-12); }
.faq details:last-child { border-bottom: 1px solid var(--line-12); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 500;
  font-size: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--color-accent-300); }
.faq summary i {
  font-style: normal;
  color: var(--color-accent);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.15s ease;
}
.faq details[open] summary i { transform: rotate(45deg); }
.faq p { margin: 0 0 20px; font-size: 14px; line-height: 1.65; color: var(--text-62); max-width: 62ch; }

/* ── cta ──────────────────────────────────────────────────────────────── */

.cta {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--color-accent-800);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.cta h2 { font-size: 32px; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 14px; text-wrap: pretty; }
.cta p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-62); max-width: 48ch; }
.cta__links { display: flex; flex-direction: column; gap: 10px; }

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line-16);
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  color: var(--text-82);
}
.contact span { font-size: 13px; color: var(--text-60); font-weight: 400; }
.contact:hover { border-color: rgba(233, 233, 237, 0.34); color: var(--color-text); }
.contact--accent { border-color: var(--color-accent); color: var(--color-accent-300); }
.contact--accent:hover {
  background: rgba(145, 132, 217, 0.14);
  color: var(--color-accent-100);
  border-color: var(--color-accent);
}

/* ── footer ───────────────────────────────────────────────────────────── */

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  margin-top: 48px;
  border-top: 1px solid var(--line-12);
  font-size: 12px;
  color: var(--text-45);
}

/* ── адаптив ──────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .hero, .split, .faq, .cta { grid-template-columns: 1fr; }
  .c3, .c2, .band__steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .hero { padding: 28px 0 56px; }
  .hero h1 { font-size: 42px; }
  .hero figure { max-width: 340px; margin-inline: auto; }
  .split__body { padding-top: 0; }
  .split, .faq { gap: 28px; }
  .cta { padding: 32px; }
}

@media (max-width: 560px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .c3, .c2, .band__steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .split h2, .prices__head h2, .faq h2, .band h2, .cta h2 { font-size: 27px; }
  .nav, .foot { flex-wrap: wrap; gap: 14px; }
  .prices__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cta { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary i { transition: none; }
}

/* ── как проходит занятие ─────────────────────────────────────────────── */

/* Линейка внутри grid-секции должна пересекать обе колонки, а не занимать
   первую ячейку; отступ снизу даёт сам gap сетки. */
.split > .rule { grid-column: 1 / -1; margin-bottom: 0; }

.section__h2 { font-size: 36px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 14px; }
.section__lede {
  font-size: 16px; line-height: 1.65; color: var(--text-62);
  margin: 0 0 40px; max-width: 58ch; text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { border-top: 1px solid var(--line-12); padding-top: 20px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-accent-300);
  margin-bottom: 12px;
}
.steps h3 { font-size: 20px; letter-spacing: -0.015em; margin: 0 0 10px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-62); }

.result {
  margin: 36px 0 0;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-accent-800);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-80);
  max-width: 70ch;
  text-wrap: pretty;
}

/* ── список внутри карточки тарифа ────────────────────────────────────── */

.card__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card__list li { position: relative; padding-left: 16px; font-size: 13px; line-height: 1.55; color: var(--text-62); }
.card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 1px;
  background: var(--color-accent-300);
}
.card p.card__note { font-size: 12px; line-height: 1.5; color: var(--text-45); }

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
  .section__h2 { font-size: 30px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .section__h2 { font-size: 27px; }
  .result { padding: 20px; }
}

/* `.card p { margin: 0 }` специфичнее, чем `.card__price`, и гасил
   margin-top: auto — цена не прижималась к низу карточки. */
.card .card__price { margin-top: auto; }

/* ── видео ────────────────────────────────────────────────────────────── */

.video { max-width: 760px; }

/* Фасад плеера: до клика это просто картинка, запросов к YouTube нет. */
.video__frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 0 0 1px var(--color-border);
  cursor: pointer;
}
/* Кадр из видео снят на светлом фоне, поэтому .lighten здесь не годится —
   он бы выбелил картинку. Приглушаем прозрачностью и открываем на hover. */
.video__frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; transition: opacity 0.2s; }
.video__frame:hover img,
.video__frame:focus-visible img { opacity: 0.95; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video__play svg { transition: transform 0.2s; }
.video__frame:hover .video__play svg { transform: scale(1.06); }
.video__cap { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-45); }
.video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

/* ── ссылка внизу карточки тарифа ─────────────────────────────────────── */

.card__cta { font-size: 13px; color: var(--color-accent-300); border-bottom: 1px solid var(--color-accent-800); align-self: flex-start; }
.card__cta:hover { border-bottom-color: var(--color-accent-300); }

/* ── фото с учителем и скриншоты отзывов ──────────────────────────────── */

/* Портретный и горизонтальный снимок рядом: колонки разной ширины, чтобы
   высоты сошлись примерно вровень. align-items: start — низ не растягиваем. */
.split > .proof { grid-column: 1 / -1; }
.proof {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 24px;
  align-items: start;
  margin: 48px 0 0;
}
.proof figure { margin: 0; }
.proof img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--color-border); }
.proof figcaption { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--text-45); }

@media (max-width: 560px) {
  .proof { grid-template-columns: 1fr; }
}

/* Колонки, а не grid: скриншоты разной высоты, и их число будет меняться —
   multi-column раскладывает любое количество без дыр в последнем ряду. */
.shots { columns: 2; column-gap: 24px; }
.shots figure { break-inside: avoid; margin: 0 0 24px; }
.shots img { width: 100%; border-radius: var(--radius); box-shadow: 0 0 0 1px var(--color-border); }
.shots a:hover img { box-shadow: 0 0 0 1px var(--color-accent-800); }
.shots figcaption { margin-top: 10px; font-size: 12px; color: var(--text-45); }

@media (max-width: 560px) {
  .shots { columns: 1; }
}

/* ── широкое фото во всю ширину контейнера ────────────────────────────── */

/* Внутри grid-секции (#about) фигура — такой же элемент сетки, как колонки,
   и без span она села бы в первую колонку. */
.split > .wide { grid-column: 1 / -1; }

.wide { margin: 0 0 44px; }
.wide img { width: 100%; border-radius: var(--radius); }
.wide figcaption { margin-top: 12px; font-size: 12px; color: var(--text-45); }

/* ── кнопка в середине страницы ───────────────────────────────────────── */

/* От низа страницы до шапки почти девять экранов: без этих двух кнопок
   человек, готовый записаться, должен искать контакты. */
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line-12);
}
.cta-row__note { font-size: 13px; color: var(--text-45); }

@media (max-width: 560px) {
  .cta-row { gap: 12px; margin-top: 32px; padding-top: 24px; }
}

/* ── цитата-подтверждение под обещанием ───────────────────────────────── */

.claim {
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 1px solid var(--color-accent-800);
  max-width: 62ch;
}
.claim blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-78);
  text-wrap: pretty;
}
.claim figcaption { margin-top: 10px; font-size: 12px; color: var(--text-45); }

/* ── цена в полосе «питание» ──────────────────────────────────────────── */

.band__price { margin: 28px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.band__price b { font-weight: 500; font-size: 26px; color: var(--color-text); }
.band__price span { font-size: 12px; color: var(--text-45); }
.band .card__cta { display: inline-block; }
