/* =========================================================
   Клуб 67 — style.css
   Этап 1: лендинг для подростков (тёмная тема)
   Общий файл стилей для index.html / parents.html / cabinet.html
   ========================================================= */

/* ---------- Переменные ---------- */
:root {
  --bg:           #0a0a0f;
  --bg-elevated:  #101018;
  --surface:      #14141f;
  --surface-2:    #1b1b28;
  --line:         rgba(255, 255, 255, 0.09);
  --line-strong:  rgba(255, 255, 255, 0.16);

  --text:         #f4f4f8;
  --muted:        #9a9aad;

  --lime:         #b8ff00;
  --lime-soft:    rgba(184, 255, 0, 0.14);
  --violet:       #a970ff;
  --violet-soft:  rgba(169, 112, 255, 0.16);
  --orange:       #ff7a3c;
  --orange-soft:  rgba(255, 122, 60, 0.16);

  --radius:       18px;
  --radius-lg:    26px;
  --container:    1160px;
  --header-h:     68px;
  --scroll-offset: calc(var(--header-h) + 16px);

  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Сброс / база ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 17px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.btn--primary:focus-visible {
  outline-color: #ffffff;
}

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}

section { padding-block: clamp(56px, 8vw, 104px); }

.accent { color: var(--lime); }

.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--surface-2);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: lowercase;
  line-height: 1;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--lime);
  --btn-fg: #0a0a0f;
  box-shadow: 0 8px 26px rgba(184, 255, 0, 0.24);
}
.btn--primary:hover { box-shadow: 0 12px 34px rgba(184, 255, 0, 0.34); }

.btn--violet {
  --btn-bg: var(--violet);
  --btn-fg: #0a0a0f;
  box-shadow: 0 8px 26px rgba(169, 112, 255, 0.26);
}
.btn--violet:hover { box-shadow: 0 12px 34px rgba(169, 112, 255, 0.36); }

.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--lime);
  border-color: rgba(184, 255, 0, 0.45);
}
.btn--secondary:hover {
  background: var(--lime-soft);
  border-color: var(--lime);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

.btn--sm  { padding: 10px 18px; font-size: 0.85rem; }
.btn--lg  { padding: 17px 30px; font-size: 1.05rem; }
.btn--xl  { padding: 20px 44px; font-size: 1.2rem; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 15, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding-inline: 6px;
  background: var(--lime);
  color: #0a0a0f;
  border-radius: 12px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.brand__text {
  text-transform: lowercase;
  font-size: 1.05rem;
  color: var(--muted);
}

.nav__panel {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-weight: 500;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__links a {
  color: var(--muted);
  transition: color 0.15s ease;
  padding-block: 8px;
}
.nav__links a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(56px, 8vw, 100px);
  background:
    radial-gradient(60% 60% at 85% 10%, var(--lime-soft), transparent 70%),
    radial-gradient(55% 55% at 5% 90%, var(--lime-soft), transparent 70%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid rgba(184, 255, 0, 0.28);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(1.85rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 22px;
  line-height: 1.08;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 32px;
}

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

.hero__parents {
  font-size: 0.95rem;
  color: var(--muted);
}
.hero__parents a {
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 2px 5px;
  margin: -4px -2px;
}
.hero__parents a:hover { color: var(--lime); border-color: var(--lime); }

/* Визуал: 67 + чипы в нормальном потоке */
.hero__visual {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.hero__visual-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.six-seven {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(5.5rem, 16vw, 11rem);
  line-height: 0.85;
  color: rgba(255, 255, 255, 0.08);
  letter-spacing: -0.04em;
  user-select: none;
  max-width: 100%;
}

@supports (-webkit-text-stroke: 1px #000) {
  .six-seven {
    color: transparent;
    -webkit-text-stroke: 2px var(--line-strong);
  }
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.hero__chip {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: lowercase;
  padding: 9px 14px;
  background: var(--surface-2);
  border: 1px solid rgba(184, 255, 0, 0.28);
  border-radius: 999px;
  color: var(--lime);
}

/* ---------- Pillars (играем / учимся / зарабатываем) ---------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.pillar__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--lime);
}

.pillar p { color: var(--muted); }

/* ---------- Направления (плитки) ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, var(--lime-soft), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tile:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.tile:hover::after { opacity: 1; }

.tile__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}

.tile__title {
  font-size: 1.3rem;
  font-weight: 700;
}

.tile__desc {
  color: var(--muted);
  font-size: 0.98rem;
  flex-grow: 1;
}

.tile__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  padding: 6px 12px;
  min-height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1;
}

.pill::before {
  content: "";
  flex-shrink: 0;
}

.pill--online {
  color: var(--lime);
  border-color: rgba(184, 255, 0, 0.4);
  background: var(--lime-soft);
}
.pill--online::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--offline {
  color: var(--muted);
  border-style: dashed;
  border-color: var(--line-strong);
}
.pill--offline::before {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.75;
}

.pill--ai {
  color: var(--text);
  border-color: rgba(184, 255, 0, 0.35);
  background: transparent;
  text-transform: none;
  letter-spacing: 0.03em;
}
.pill--ai::before {
  content: "✦";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--lime);
  font-size: 0.72em;
}

/* ---------- Форматы ---------- */
.formats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.format {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.format:hover { transform: translateY(-4px); border-color: var(--line-strong); }

.format__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--lime-soft);
  color: var(--lime);
  margin-bottom: 20px;
}
.format__icon svg { width: 26px; height: 26px; }

.format__title {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.format__price {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--lime);
  background: var(--lime-soft);
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
}

.format__desc { color: var(--muted); }

/* ---------- Два входа ---------- */
.entrances__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.entrance {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.entrance__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.entrance__desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42ch;
  margin-bottom: 26px;
}

.entrance--a {
  background:
    radial-gradient(90% 120% at 0% 0%, var(--lime-soft), transparent 60%),
    var(--surface);
  border-color: rgba(184, 255, 0, 0.28);
}
.entrance--a .entrance__title { color: var(--lime); }

.entrance--b {
  background:
    radial-gradient(90% 120% at 100% 0%, var(--lime-soft), transparent 60%),
    var(--surface);
  border-color: rgba(184, 255, 0, 0.22);
}
.entrance--b .entrance__title { color: var(--text); }

/* ---------- Финальный CTA ---------- */
.cta {
  text-align: center;
}
.cta__inner {
  background:
    radial-gradient(60% 120% at 50% 0%, var(--lime-soft), transparent 65%),
    var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 88px) 24px;
}

.cta__title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 900;
  margin-bottom: 14px;
}

.cta__subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 34px;
}

/* ---------- Футер ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 48px 32px;
  background: var(--bg-elevated);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  font-weight: 500;
}
.footer__links a {
  color: var(--muted);
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  min-height: 40px;
}
.footer__links a:hover { color: var(--lime); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Тост-заглушка ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 110;
  width: max-content;
  max-width: min(360px, calc(100% - 32px));
  padding: 11px 16px 11px 14px;
  background: rgba(16, 16, 24, 0.96);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--lime);
  border-radius: var(--radius);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}
.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero__subtitle { max-width: none; }

  .pillars__grid,
  .formats__grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --header-h: 60px;
    --scroll-offset: calc(var(--header-h) + 12px);
  }

  .nav-toggle { display: flex; }

  .nav__panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-left: 0;
    padding: 18px;
    background: rgba(16, 16, 24, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .nav__panel.is-open { display: flex; }

  .nav__links {
    flex-direction: column;
    gap: 4px;
  }

  .nav__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav__links a:hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .nav__links .nav__link-btn {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
  }

  .nav__links .nav__link-btn:hover {
    color: var(--text);
    background: var(--surface-2);
  }

  .nav__cta { width: 100%; }

  .nav__actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

  .nav__actions .btn { width: 100%; }

  body.nav-open { overflow: hidden; }

  .entrances__grid { grid-template-columns: 1fr; }

  .footer__links a {
    min-height: 44px;
    padding: 10px 6px;
  }

  .hero__parents a {
    padding: 10px 4px 11px;
    margin: -6px -4px;
  }
}

@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__title { font-size: clamp(1.55rem, 6.8vw, 1.95rem); }
}

/* ---------- Уважение к reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; }
}

/* =========================================================
   Этап 2: регистрация, родители, кабинет
   ========================================================= */

body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

/* ---------- Модалка регистрации ---------- */
.register-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 12px;
  overflow: hidden;
}

.register-modal[hidden] { display: none; }

.register-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.register-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  max-height: min(94vh, 720px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.register-modal__dialog--compact {
  overflow: hidden;
  max-height: none;
  padding: 14px 16px 16px;
}

.register-modal__dialog--compact .register-steps {
  margin-bottom: 10px;
}

.register-step[data-step="0"] .register-step__title {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.register-step[data-step="0"] .register-step__hint {
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.register-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.register-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.register-steps__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
}

.register-steps__dot.is-active {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.15);
}

.register-steps__dot.is-done {
  background: rgba(184, 255, 0, 0.35);
  border-color: var(--lime);
}

.register-step__title {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.register-step__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.register-step__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin-top: 12px;
}

.register-skip {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
  cursor: pointer;
}

.register-skip:hover { color: var(--text); }

.register-modal__body {
  display: flex;
  flex-direction: column;
}

.register-step:not([hidden]) {
  display: flex;
  flex-direction: column;
}

.avatar-slider {
  margin-bottom: 8px;
}

.avatar-slider__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-slider__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.avatar-slider__track {
  display: flex;
  transition: transform 0.25s ease;
  will-change: transform;
}

.avatar-slider__slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.avatar-slider__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}

.avatar-slider__arrow:hover:not(:disabled) {
  border-color: var(--lime);
  background: var(--lime-soft);
  color: var(--lime);
}

.avatar-slider__arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.avatar-slider:not(.avatar-slider--multi) .avatar-slider__arrow {
  visibility: hidden;
  pointer-events: none;
}

.avatar-slider:not(.avatar-slider--multi) .avatar-slider__dots {
  display: none;
}

.avatar-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.avatar-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.avatar-slider__dot.is-active {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(1.2);
}

.avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.avatar-option:hover { border-color: var(--line-strong); }

.avatar-option.is-selected {
  border-color: var(--lime);
  background: var(--lime-soft);
  box-shadow: 0 0 0 1px rgba(184, 255, 0, 0.3);
}

.avatar-option__emoji {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.avatar-option__label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: lowercase;
}

.phone-display {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  margin-bottom: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.dial-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dial-pad__key {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.dial-pad__key:hover { border-color: var(--lime); background: var(--lime-soft); }
.dial-pad__key--empty { visibility: hidden; pointer-events: none; }

.register-input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.register-input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

/* ---------- Страница родителей ---------- */
.page-parents {
  --bg:           #f5f5f7;
  --bg-elevated:  #ffffff;
  --surface:      #ffffff;
  --surface-2:    #f0f0f4;
  --line:         rgba(0, 0, 0, 0.08);
  --line-strong:  rgba(0, 0, 0, 0.14);
  --text:         #1a1a24;
  --muted:        #5c5c6e;
  background: var(--bg);
  color: var(--text);
}

.site-header--light {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--line);
}

.brand--dark .brand__text { color: var(--muted); }

.nav__links--dark a { color: var(--muted); }
.nav__links--dark a:hover { color: var(--text); }

.nav-toggle--dark {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.nav-toggle--dark .nav-toggle__bar { background: var(--text); }

.page-parents .nav__panel {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--line);
}

.page-parents .nav__links a:hover { background: var(--surface-2); }

.parents-hero {
  padding-block: clamp(56px, 10vw, 96px);
  background: linear-gradient(180deg, #fff, var(--bg));
}

.parents-hero__inner { max-width: 720px; }

.parents-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  margin-bottom: 18px;
  line-height: 1.1;
}

.parents-hero__subtitle {
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 28px;
  max-width: 54ch;
}

.parents-section {
  padding-block: clamp(40px, 6vw, 72px);
}

.parents-section--alt { background: var(--bg-elevated); }

.parents-section__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 24px;
}

.parents-lead {
  color: var(--muted);
  margin-bottom: 16px;
}

.parents-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 12px;
}

.parents-list li { color: var(--muted); }
.parents-list strong { color: var(--text); }

.parents-table-wrap { overflow-x: auto; }

.parents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.parents-table th,
.parents-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.parents-table th {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.parents-table td:first-child { font-weight: 600; white-space: nowrap; }

.parents-formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.parents-format-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

.parents-format-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.parents-format-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.parents-format-card__note {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.parents-paths {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.parents-path-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.parents-path-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.parents-path-card p { color: var(--muted); }

.parents-faq {
  margin: 0;
  display: grid;
  gap: 0;
}

.parents-faq__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.parents-faq__item dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.parents-faq__item dd {
  margin: 0;
  color: var(--muted);
}

.parents-cta__inner { max-width: 520px; }

.parent-form {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.parent-form__field {
  display: grid;
  gap: 6px;
}

.parent-form__field span {
  font-size: 0.9rem;
  font-weight: 600;
}

.parent-form__field input,
.parent-form__field select {
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}

.parent-form__field input:focus,
.parent-form__field select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.parents-cta__or {
  color: var(--muted);
  font-size: 0.95rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover { color: var(--lime); }

.site-footer--light {
  background: var(--bg-elevated);
  border-top-color: var(--line);
}

.footer__brand--dark,
.footer__links--dark a,
.footer__bottom--dark { color: var(--muted); }

.footer__links--dark a:hover { color: var(--text); }

.toast--dark {
  background: var(--text);
  color: #fff;
}

/* ---------- Личный кабинет ---------- */
.page-cabinet { background: var(--bg); }

.cabinet-header__nav {
  margin-left: auto;
}

.cabinet-header__title {
  display: none;
}

.cabinet-header__nav .nav__links a.is-active {
  color: var(--lime);
}

.nav__link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.nav__link-btn:hover { color: var(--text); }

.cabinet-main {
  padding-block: clamp(32px, 5vw, 56px);
}

.cabinet-welcome {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.cabinet-welcome__avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  flex-shrink: 0;
}

.cabinet-welcome__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.cabinet-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.cabinet-tabs__btn {
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.cabinet-tabs__btn:hover {
  color: var(--text);
}

.cabinet-tabs__btn.is-active {
  background: var(--lime);
  color: var(--bg);
}

.cabinet-tab-panel[hidden] {
  display: none;
}

.cabinet-profile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 420px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cabinet-profile__avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding: 0;
  font-size: 2.4rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cabinet-profile__avatar:hover {
  border-color: var(--lime);
  background: var(--lime-soft);
}

.cabinet-profile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cabinet-profile__fields {
  display: grid;
  gap: 16px;
  width: 100%;
  margin: 0;
}

.cabinet-profile__field dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.cabinet-profile__field dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.cabinet-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.cabinet-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: lowercase;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.cabinet-card__tag--online {
  border-style: solid;
  border-color: rgba(184, 255, 0, 0.4);
  color: var(--lime);
  background: var(--lime-soft);
}

.cabinet-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.cabinet-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.cabinet-missions {
  display: grid;
  gap: 12px;
}

.cabinet-mission {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.cabinet-mission--next {
  border-color: rgba(184, 255, 0, 0.35);
  border-left: 3px solid var(--lime);
}

.cabinet-mission__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.cabinet-mission__head h3 { font-size: 1.05rem; }

.cabinet-mission__status {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: lowercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--lime);
}

.cabinet-mission__status--locked {
  background: var(--surface-2);
  color: var(--muted);
}

.cabinet-mission p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .register-step__actions {
    grid-template-columns: auto 1fr;
  }

  .parents-formats,
  .parents-paths,
  .cabinet-cards { grid-template-columns: 1fr; }

  .cabinet-tabs {
    width: 100%;
    justify-content: stretch;
  }

  .cabinet-tabs__btn {
    flex: 1;
    text-align: center;
  }

  .cabinet-header .nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
  }

  .cabinet-header__title {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cabinet-header .nav-toggle {
    margin-left: 0;
  }

  .page-parents .nav__panel {
    background: rgba(255, 255, 255, 0.98);
  }
}

