/* ==========================================================================
   SHUFFLE.MINSK — лендинг курса танцев
   Тёмный стрит-стиль. Токены → компоненты → секции → адаптив.
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  /* Цвета */
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: #12121f;
  --surface-2: #171728;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f2f2f7;
  --muted: #a3a3b8;
  --muted-2: #84849c;

  --accent: #c6ff3d;      /* неоновый лайм */
  --accent-2: #7c5cff;    /* фиолетовый */
  --accent-3: #ff4d9d;    /* розовый */
  --accent-ink: #0a0f00;  /* текст на акценте */

  /* Геометрия */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --container: 1180px;
  --gutter: clamp(18px, 4vw, 40px);

  /* Тени / свечения */
  --glow: 0 0 40px rgba(198, 255, 61, 0.25);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);

  /* Типографика */
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Space Grotesk", system-ui, sans-serif;

  /* Анимация */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(124, 92, 255, 0.20), transparent 60%),
    radial-gradient(800px 600px at 95% 5%, rgba(255, 77, 157, 0.14), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(198, 255, 61, 0.10), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Утилиты ---------- */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow { width: min(820px, 100% - var(--gutter) * 2); }

.accent { color: var(--accent); }
.muted { color: var(--muted-2); font-size: 0.6em; font-weight: 400; }
.mono { font-variant-numeric: tabular-nums; }

.skip-link {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(198, 255, 61, 0.22);
}
.btn--primary:hover { box-shadow: 0 16px 40px rgba(198, 255, 61, 0.38); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--dark { background: #0b0b14; color: var(--text); border-color: rgba(0, 0, 0, 0.2); }
.btn--dark:hover { background: #15152a; }

.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--lg { padding: 16px 28px; font-size: 15px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 13, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 13, 0.9);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.logo { display: inline-flex; align-items: center; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
}
.logo__dot { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav a:not(.btn):hover { color: var(--text); }
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease);
}
.nav a:not(.btn):hover::after { width: 100%; }
/* специфичность важнее, чем у `.nav a`, иначе текст кнопки станет серым на акценте */
.nav .nav__cta { color: var(--accent-ink); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.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); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(60% 60% at 30% 30%, rgba(124, 92, 255, 0.28), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.7); opacity: 0.6; }
}

.hero__title {
  margin: 22px 0 0;
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  max-width: 15ch;
}
.hero__lead {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 40px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.stats__item dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.stats__item dd {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--accent);
}

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero__media-card {
  position: absolute;
  left: -14px; bottom: 22px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 22, 0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.hero__media-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.hero__media-card strong {
  font-family: var(--font-display);
  font-size: 17px;
}

/* Countdown */
.countdown {
  margin-top: clamp(32px, 5vw, 56px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  text-align: center;
}
.countdown__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.countdown__cell {
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
}
.countdown__cell span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.countdown__cell small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015) 30%, transparent);
  border-block: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  max-width: 22ch;
}
.section__lead {
  margin-top: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
}

.note {
  margin-top: 30px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(198, 255, 61, 0.06);
  color: var(--text);
  max-width: 72ch;
}
.note--center { margin-inline: auto; text-align: center; border-left: 0; border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 20px; margin-top: 42px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  font-size: 22px;
  background: rgba(198, 255, 61, 0.1);
  border: 1px solid rgba(198, 255, 61, 0.22);
  margin-bottom: 16px;
}
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card__list { display: grid; gap: 10px; }
.card__list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Schedule ---------- */
.schedule {
  margin-top: 42px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.schedule__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.schedule__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--border);
}
.schedule__list span { color: var(--muted-2); font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; }
.schedule__list strong { font-family: var(--font-display); font-size: 19px; text-align: right; }

.schedule__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 0;
  padding-top: 24px;
}
.schedule__cta-text { color: var(--muted); font-size: 15px; max-width: 62ch; }
.schedule__cta .btn { flex: none; }

/* ---------- Price ---------- */
.price {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
  align-items: stretch;
}
.price__card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.price__card:hover { transform: translateY(-4px); }
.price__card--main {
  border-color: rgba(198, 255, 61, 0.4);
  box-shadow: var(--glow);
  background: linear-gradient(180deg, rgba(198, 255, 61, 0.07), var(--bg-2));
}
.price__tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.price__sum {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
}
.price__sum span { color: var(--accent); }
.price__sub { color: var(--muted-2); font-size: 14px; margin-top: 8px; }
.price__features { margin: 22px 0; display: grid; gap: 11px; }
.price__features li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 15px;
}
.price__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.price__card .btn { margin-top: auto; }

.price__card--qr { align-items: center; text-align: center; }
.price__card--qr .price__tag { align-self: center; }
.price__qr {
  width: 180px; height: 180px;
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px;
  margin-bottom: 16px;
}
.price__qr-hint { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* Разовое занятие — компактная строка под карточками */
.price__extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 22px 26px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.price__extra-text { flex: 1 1 340px; }
.price__extra-title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  margin-bottom: 6px;
}
.price__extra-sub { color: var(--muted); font-size: 14.5px; max-width: 62ch; }

/* ---------- Teacher ---------- */
.teacher {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: 42px;
}
.teacher__photo picture { display: block; }
.teacher__photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.teacher__name { font-size: clamp(24px, 3vw, 32px); }
.teacher__role { color: var(--accent); font-size: 14px; margin: 8px 0 18px; letter-spacing: 0.04em; }
.teacher__body p { color: var(--muted); }
.teacher__facts { display: grid; gap: 10px; margin-top: 22px; }
.teacher__facts li {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 15px;
  color: var(--muted);
}
.teacher__facts strong { color: var(--text); margin-right: 8px; font-weight: 600; }

/* ---------- Условия зала ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}
.amenity {
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.amenity:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.amenity__icon {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  font-size: 20px;
  background: rgba(198, 255, 61, 0.1);
  border: 1px solid rgba(198, 255, 61, 0.22);
  margin-bottom: 14px;
}
.amenity__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.amenity__text { color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq__item[open] { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.035); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 52px 19px 22px;
  position: relative;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 22px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- Form ---------- */
.form-section { border-top: 1px solid var(--border); background: radial-gradient(60% 90% at 85% 0%, rgba(124, 92, 255, 0.16), transparent 65%); }
.form-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.form-section__points { margin-top: 26px; display: grid; gap: 12px; }
.form-section__points li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}
.form-section__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Что будет после заявки */
.form-section__after {
  margin-top: 30px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.form-section__after-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}
.form-section__steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.form-section__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  color: var(--muted);
  font-size: 15px;
}
.form-section__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(198, 255, 61, 0.12);
  border: 1px solid rgba(198, 255, 61, 0.3);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

/* Логотип платёжного сервиса в футере */
.footer__title--pay { margin-top: 28px; }
.footer__provider,
.footer__contacts .footer__provider {
  display: block;
  margin-top: 12px;
  padding: 9px 14px 4px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: transform 0.2s var(--ease);
  width: fit-content;
}
.footer__provider:hover { transform: translateY(-2px); }
/* display:block убирает зазор базовой линии под inline-картинкой */
.footer__provider img { display: block; width: auto; height: 22px; }

.form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 16px; }
.form__field { display: block; }
.form__field > span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 8px;
}
.form__field em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: 0.7; }
.form__field input,
.form__field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  resize: vertical;
}
.form__field input::placeholder,
.form__field textarea::placeholder { color: var(--muted-2); }
.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 0, 0, 0.5);
}
.form__field input:user-invalid,
.form__field textarea:user-invalid { border-color: var(--accent-3); }
.form__field input:invalid:not(:placeholder-shown),
.form__field textarea:invalid:not(:placeholder-shown) { border-color: var(--accent-3); }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 20px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
}
.form__check input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.form__status { margin-top: 14px; font-size: 14px; min-height: 1.2em; }
.form__status.is-error { color: var(--accent-3); }
.form__status.is-success { color: var(--accent); }
.form__legal { margin-top: 14px; font-size: 12px; color: var(--muted-2); }
.form__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form.is-sent .form__row,
.form.is-sent .form__check,
.form.is-sent .btn { opacity: 0.45; pointer-events: none; }

/* ---------- Страница оферты ---------- */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.legal__meta {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-2);
}
.legal__body {
  margin-top: 40px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.legal__body h2 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin: 40px 0 14px;
  padding-top: 4px;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p { color: var(--muted); margin-bottom: 12px; }
.legal__body ul { margin: 0 0 12px; display: grid; gap: 8px; }
.legal__body li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}
.legal__body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal__req { margin-top: 4px; }
.legal__req li::before { border-radius: 2px; }
.legal__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 36px;
}

/* ---------- Печать оферты (белый фон для PDF и бумаги) ---------- */
@media print {
  :root { --text: #111; --muted: #333; --muted-2: #555; --accent: #000; }
  html, body { background: #fff !important; color: #111; }
  body::before { display: none; }
  .header, .footer, .legal__cta, .skip-link { display: none !important; }
  .legal { padding: 0; }
  .legal__body {
    margin-top: 20px;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 0;
  }
  .legal__body h2 { page-break-after: avoid; }
  .legal__body p, .legal__body li { orphans: 3; widows: 3; }
  .legal__body a { color: #111; text-decoration: none; }
  .legal__body li::before { background: #111; }
  @page { margin: 16mm 14mm; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #d8ff6e 55%, #b6f52e 100%);
  color: var(--accent-ink);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(34px, 5vw, 54px) 0;
}
.cta-band__text {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  max-width: 20ch;
}
.cta-band .accent { color: #3a2a00; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--border); background: var(--bg-2); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 44px;
}
.footer__desc { margin-top: 14px; color: var(--muted-2); font-size: 14.5px; max-width: 34ch; }
.footer__title {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer__nav, .footer__contacts { display: flex; flex-direction: column; }
.footer__nav a, .footer__contacts a,
.footer__place {
  padding: 7px 0;
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s var(--ease);
  width: fit-content;
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--accent); }
/* .footer__place { margin-top: 12px; color: var(--muted-2); font-size: 14px; } */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 13.5px;
}
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Reveal-анимация ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__title { max-width: none; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .cards--3 .card:last-child { grid-column: span 2; }
  .cards--4 { grid-template-columns: 1fr 1fr; }
  .price { grid-template-columns: 1fr 1fr; }
  .price__card--main { grid-column: span 2; }
  .teacher { grid-template-columns: 1fr; }
  .teacher__photo { max-width: 420px; }
  .form-section__inner { grid-template-columns: 1fr; }
  .amenities { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px var(--gutter) 26px;
    background: rgba(9, 9, 17, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a:not(.btn) { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid var(--border); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 14px; }
  .burger { display: grid; }
  /* удобные зоны нажатия для пальца */
  .footer__nav a, .footer__contacts a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .schedule { padding: 22px; }
  .schedule__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  .cards--3 { grid-template-columns: 1fr; }
  .cards--3 .card:last-child { grid-column: auto; }
  .cards--4 { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .price__card--main { grid-column: auto; }
  .countdown { padding: 16px; }
  .countdown__grid { gap: 8px; }
  .amenities { grid-template-columns: 1fr; }
  .hero__media-card { left: 8px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
