/* ================= TOKENS ================= */
:root {
  --bg:            #040a1c;
  --bg-soft:       #071230;
  --surface:       rgba(255, 255, 255, .04);
  --surface-2:     rgba(255, 255, 255, .07);
  --border:        rgba(255, 255, 255, .09);
  --border-strong: rgba(255, 255, 255, .16);

  --text:      #eaf0ff;
  --text-mute: #93a3c9;

  --accent:    #4d8dff;
  --accent-2:  #22d3ee;
  --accent-3:  #ffd166;
  --danger:    #ff6b81;

  --radius:    18px;
  --radius-lg: 26px;
  --shadow:    0 24px 60px -20px rgba(0, 0, 0, .65);
  --ring:      0 0 0 1px var(--border);

  --container: 1160px;
  --font: 'Manrope', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ================= BASE ================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= BACKGROUND DECOR ================= */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .5;
}
.blob--1 { width: 620px; height: 620px; top: -220px; left: -160px;  background: #1d4ed8; }
.blob--2 { width: 520px; height: 520px; top: 32%;   right: -180px;  background: #0e7490; opacity: .38; }
.blob--3 { width: 560px; height: 560px; bottom: -220px; left: 25%;  background: #3730a3; opacity: .42; }

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ================= HEADER ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 16px 0;
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgba(4, 10, 28, .78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header__inner { display: flex; align-items: center; gap: 24px; }

.logo { display: flex; align-items: baseline; gap: 9px; font-weight: 800; letter-spacing: .04em; }
.logo__latin { font-size: 22px; }
.logo__cn {
  font-family: 'Noto Sans SC', var(--font);
  font-size: 20px;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-mute);
  transition: color .2s, background .2s;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface-2); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 12px 11px;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover { transform: none; box-shadow: none; }

.btn--primary {
  background: linear-gradient(120deg, var(--accent), #6aa6ff 55%, var(--accent-2));
  color: #04122e;
  box-shadow: 0 12px 30px -12px rgba(77, 141, 255, .8);
}
.btn--primary:hover { box-shadow: 0 18px 40px -12px rgba(77, 141, 255, .95); transform: translateY(-2px); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.btn--lg    { padding: 17px 30px; font-size: 16px; }
.btn--sm    { padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }

.arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ================= HERO ================= */
.hero { padding: 70px 0 40px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  margin-bottom: 26px;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, .18);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(74,222,128,.18); }
  50%      { box-shadow: 0 0 0 8px rgba(74,222,128,.05); }
}

.hero__title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 800;
  margin-bottom: 22px;
}
.cn-accent {
  font-family: 'Noto Sans SC', var(--font);
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.underlined { position: relative; white-space: nowrap; }
.underlined::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero__text {
  font-size: 18px;
  color: var(--text-mute);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero__text b { color: var(--text); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.hero__stats span { font-size: 13px; color: var(--text-mute); }

/* hero form card */
.hero__card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-glow {
  position: absolute;
  top: -120px; right: -100px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(77,141,255,.45), transparent 65%);
  pointer-events: none;
}
.hero__card-title { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.hero__card-sub { font-size: 14px; color: var(--text-mute); margin: 0 0 22px; }

/* ================= FORM ================= */
.form { display: grid; gap: 14px; }

.field { display: grid; gap: 7px; }
.field__label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(4, 10, 28, .55);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #5d6d94; }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(77, 141, 255, .16);
}
.field input:user-invalid { border-color: var(--danger); }

.form__note { font-size: 12px; color: #64748b; text-align: center; margin: 2px 0 0; }

.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent__text { font-size: 12px; line-height: 1.5; color: var(--text-mute); }
.consent__text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent__text a:hover { color: var(--accent-2); }
.consent input:user-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }

/* ================= SECTIONS ================= */
.section { padding: 92px 0; }
.section--alt { position: relative; }
.section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(7, 18, 48, .75) 20%, rgba(7, 18, 48, .75) 80%, transparent);
  pointer-events: none;
  z-index: -1;
}

.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head--tight { margin-top: 72px; margin-bottom: 28px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section__title { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 16px; }
.subtitle { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.section__sub { color: var(--text-mute); font-size: 17px; margin: 0 0 14px; }
.section__sub b { color: var(--text); }

.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= CARDS ================= */
.cards { display: grid; gap: 22px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(77,141,255,.28), rgba(34,211,238,.16));
  border: 1px solid var(--border-strong);
  font-size: 25px;
  margin-bottom: 20px;
}
.card__title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.card__text { color: var(--text-mute); font-size: 15.5px; margin: 0; }

/* ================= TEACHER ================= */
.teacher {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.teacher__photo { position: relative; }

.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(150deg, #10205a, #071230);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.photo-frame.is-empty .photo-placeholder { display: flex; }
.photo-placeholder__cn {
  font-family: 'Noto Sans SC', var(--font);
  font-size: 96px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.photo-placeholder__hint {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-mute);
  padding: 6px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
}

.photo-sticker {
  position: absolute;
  right: -14px;
  bottom: 26px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04122e;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 16px 34px -14px rgba(77,141,255,.9);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.chip {
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

/* ================= REVIEWS ================= */
.review {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: transform .3s ease, border-color .3s ease;
}
.review:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.review__stars { color: var(--accent-3); letter-spacing: 3px; margin-bottom: 14px; }
.review__text { color: var(--text-mute); font-size: 15.5px; margin: 0 0 22px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author b { display: block; font-size: 15px; }
.review__author span { font-size: 13px; color: var(--text-mute); }
.avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #04122e;
  font-weight: 800;
  flex: none;
}

/* certificates */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .3s ease, border-color .3s ease;
}
.cert:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.cert img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.cert figcaption {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mute);
  text-align: center;
}
.cert.is-empty { position: relative; }
.cert.is-empty::before {
  content: '📜 скрин сертификата';
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  font-size: 13px;
  color: var(--text-mute);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, #0d1b45, #071230);
}

/* ================= PRICING ================= */
.pricing { align-items: stretch; }

.plan {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.plan--featured {
  border-color: rgba(77, 141, 255, .5);
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(77,141,255,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: 0 24px 60px -28px rgba(77,141,255,.8);
}

.plan__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.plan__title { font-size: 24px; font-weight: 800; }
.plan__tag {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.plan__tag--hot {
  border-color: transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #04122e;
}

.plan__list { display: grid; gap: 12px; margin-bottom: 28px; }
.plan__list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-mute);
  font-size: 15.5px;
}
.plan__list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(34, 211, 238, .16);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
}

.plan__price {
  margin-top: auto;
  margin-bottom: 22px;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.plan__price span { font-size: 15px; font-weight: 600; color: var(--text-mute); margin-right: 6px; }
.plan__price small { font-size: 15px; font-weight: 600; color: var(--text-mute); }

/* ================= CTA ================= */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 68px 32px;
  border: 1px solid rgba(77, 141, 255, .35);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(29, 78, 216, .32), rgba(7, 18, 48, .6));
}
.cta__glow {
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 420px;
  background: radial-gradient(circle, rgba(77,141,255,.42), transparent 65%);
  pointer-events: none;
}
.cta__title { position: relative; font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta__text { position: relative; color: var(--text-mute); margin: 0 0 30px; }
.cta .btn { position: relative; }

/* ================= FOOTER ================= */
.footer {
  border-top: 1px solid var(--border);
  background: rgba(4, 10, 28, .6);
  padding: 54px 0 30px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 32px;
  align-items: start;
  padding-bottom: 34px;
}
.footer__brand p { color: var(--text-mute); font-size: 15px; margin: 14px 0 0; max-width: 340px; }
.footer__nav { display: grid; gap: 10px; }
.footer__nav a { color: var(--text-mute); font-size: 15px; transition: color .2s; }
.footer__nav a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.footer__disclaimer { font-size: 12.5px; color: #64748b; margin: 0; max-width: 720px; }
.footer__copy { font-size: 13px; color: #64748b; margin: 0; }

/* ================= MODAL ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fade .25s ease;
}
.modal__box {
  position: relative;
  width: min(460px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0b1738, #060d24);
  box-shadow: var(--shadow);
  animation: pop .28s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop  { from { opacity: 0; transform: translateY(18px) scale(.96); } }

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-mute);
  cursor: pointer;
  font-size: 14px;
  transition: color .2s, background .2s;
}
.modal__close:hover { color: var(--text); background: var(--surface-2); }

.modal__title { font-size: 24px; font-weight: 800; margin-bottom: 8px; padding-right: 34px; }
.modal__sub { color: var(--text-mute); font-size: 15px; margin: 0 0 24px; }

.modal__success { text-align: center; display: grid; gap: 12px; }
.modal__success-icon { font-size: 46px; }
.modal__success .modal__sub { margin-bottom: 10px; }

/* ================= REVEAL ================= */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1);
}
.reveal--delay { transition-delay: .12s; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__card { max-width: 520px; }
  .teacher { grid-template-columns: 1fr; gap: 40px; }
  .teacher__photo { max-width: 420px; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 20px; }

  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }

  .nav {
    position: fixed;
    inset: 72px 16px auto;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: rgba(6, 13, 36, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: .22s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__link { padding: 13px 16px; font-size: 16px; }

  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px 28px; }
  .hero__stats b { font-size: 22px; }
  .hero__actions .btn { width: 100%; }
  .photo-sticker { right: 10px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__card, .card, .plan, .modal__box { padding-left: 22px; padding-right: 22px; }
  .certs { grid-template-columns: 1fr; }
}

/* ================= LEGAL PAGES ================= */
.legal { padding: 128px 0 92px; }
.legal__inner { max-width: 780px; }
.legal__back { display: inline-block; font-size: 14px; color: var(--text-mute); margin-bottom: 22px; }
.legal__back:hover { color: var(--text); }
.legal h1 { font-size: 34px; font-weight: 800; margin-bottom: 10px; }
.legal__meta { font-size: 13px; color: var(--text-mute); margin: 0 0 34px; }
.legal h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 38px 0 12px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal p, .legal li { font-size: 15px; line-height: 1.7; color: #c3cfe9; }
.legal p { margin: 0 0 12px; }
.legal ul { display: grid; gap: 8px; margin: 0 0 14px; padding-left: 20px; list-style: disc; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal__todo {
  display: inline-block;
  padding: 1px 8px;
  border: 1px dashed var(--accent-3);
  border-radius: 8px;
  color: var(--accent-3);
  font-size: 13px;
  font-weight: 700;
}
.legal__notice {
  margin: 0 0 34px;
  padding: 16px 20px;
  border: 1px dashed rgba(255, 209, 102, .5);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, .06);
  font-size: 14px;
  color: var(--accent-3);
}

@media (max-width: 720px) {
  .legal { padding: 104px 0 64px; }
  .legal h1 { font-size: 27px; }
}
