/* Дизайн-система сайта (редизайн, октябрь 2026).
   Ориентир — страница Pilates: тёмный тёплый фон, один акцентный цвет
   (фирменный лайм) только на кнопках записи и мелких отметках, без
   свечений, градиентов и бегущих строк. Inter — для текста и заголовков
   разделов, Oswald — только логотип и главный заголовок страницы.

   Классы с префиксом nd- — новые компоненты (шапка, подвал, форма записи,
   главная, расписание). Блок «Спокойный слой» внизу приглушает старые
   страницы, свёрстанные утилитами из index-DP3syInf.css, чтобы весь сайт
   выглядел одинаково, пока их не переверстали. */

:root {
  --nd-bg: #161715;
  --nd-surface: #1e201c;
  --nd-surface-2: #262923;
  --nd-line: #33372f;
  --nd-line-strong: #454a3f;
  --nd-text: #f3f4ef;
  --nd-muted: #b0b5a9;
  --nd-faint: #868b80;
  --nd-accent: #c8ff2e;
  --nd-accent-hover: #dcff88;
  --nd-on-accent: #131a0a;
  --nd-danger: #ff8a7a;
  --nd-radius: 20px;
  --nd-radius-sm: 12px;
  --nd-header-h: 72px;
  --nd-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --nd-font-display: 'Oswald', 'Inter', sans-serif;
}

html { scroll-padding-top: calc(var(--nd-header-h) + 16px); }
[hidden] { display: none !important; }
body { background: var(--nd-bg); color: var(--nd-text); font-family: var(--nd-font); -webkit-font-smoothing: antialiased; }
body.nd-lock { overflow: hidden; }
:focus-visible { outline: 3px solid var(--nd-accent); outline-offset: 3px; }
.nd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nd-container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .nd-container { width: min(1200px, 100% - 64px); } }

.nd-section { padding: 64px 0; }
.nd-section + .nd-section { border-top: 1px solid var(--nd-line); }
@media (min-width: 1024px) { .nd-section { padding: 88px 0; } }

/* ── Типографика ─────────────────────────────────────────────── */
/* Старая сборка ставит Oswald 700 на все заголовки; Oswald оставляем только h1. */
h2, h3, h4, h5, h6 { font-family: var(--nd-font); font-weight: 650; letter-spacing: -.02em; }
.nd-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nd-accent); }
.nd-h1 { margin: 0; font-family: var(--nd-font-display); font-weight: 700; font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.02em; }
.nd-h2 { margin: 0; font-size: clamp(26px, 3.2vw, 40px); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
.nd-h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.nd-lead { margin: 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--nd-muted); }
.nd-muted { color: var(--nd-muted); }
.nd-small { font-size: 14px; line-height: 1.55; color: var(--nd-muted); }
.nd-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.nd-section__head .nd-lead { max-width: 560px; margin-top: 12px; font-size: 17px; }

/* ── Кнопки и ссылки ─────────────────────────────────────────── */
.nd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 1px solid var(--nd-accent); border-radius: 999px; background: var(--nd-accent); color: var(--nd-on-accent); font: 650 16px/1.2 var(--nd-font); text-align: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.nd-btn:hover { background: var(--nd-accent-hover); border-color: var(--nd-accent-hover); }
.nd-btn--ghost { background: transparent; color: var(--nd-text); border-color: var(--nd-line-strong); }
.nd-btn--ghost:hover { background: var(--nd-surface-2); border-color: var(--nd-line-strong); }
.nd-btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nd-btn--block { width: 100%; }
.nd-btn[disabled] { opacity: .6; cursor: wait; }
.nd-btn svg { width: 18px; height: 18px; flex: none; }
.nd-link { display: inline-flex; align-items: center; gap: 6px; color: var(--nd-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--nd-line-strong); text-underline-offset: 5px; }
.nd-link:hover { text-decoration-color: var(--nd-accent); }

/* ── Чипы-фильтры ────────────────────────────────────────────── */
.nd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--nd-line-strong); border-radius: 999px; background: transparent; color: var(--nd-text); font: 500 15px/1 var(--nd-font); cursor: pointer; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.nd-chip:hover { border-color: var(--nd-muted); }
.nd-chip[aria-pressed="true"], .nd-chip.is-active { background: var(--nd-text); border-color: var(--nd-text); color: var(--nd-bg); }
.nd-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.nd-chips--scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .nd-chips--scroll { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }

.nd-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--nd-surface-2); color: var(--nd-muted); font-size: 13px; line-height: 1.3; white-space: nowrap; }

.nd-card { background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); }

/* ── Шапка ───────────────────────────────────────────────────── */
.nd-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nd-header-h); background: rgba(22, 23, 21, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--nd-line); }
.nd-header__inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.nd-logo { display: flex; flex-direction: column; font-family: var(--nd-font-display); font-weight: 700; font-size: 21px; line-height: .92; letter-spacing: -.01em; text-transform: uppercase; color: var(--nd-accent); flex: none; }
.nd-nav { display: none; align-items: center; gap: 4px; }
.nd-nav a { padding: 8px 12px; border-radius: 999px; color: var(--nd-muted); font-size: 15px; font-weight: 500; transition: color .15s ease, background-color .15s ease; }
.nd-nav a:hover { color: var(--nd-text); }
.nd-nav a[aria-current="page"] { color: var(--nd-text); background: var(--nd-surface-2); }
.nd-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nd-header__phone { display: none; color: var(--nd-text); font-weight: 600; font-size: 15px; white-space: nowrap; }
.nd-header__phone:hover { color: var(--nd-accent); }
.nd-header__cta { display: none; }
.nd-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--nd-line-strong); border-radius: 999px; color: var(--nd-text); background: transparent; cursor: pointer; }
.nd-icon-btn svg { width: 20px; height: 20px; }
@media (min-width: 1100px) {
  .nd-nav { display: flex; }
  .nd-header__phone, .nd-header__cta { display: inline-flex; }
  .nd-header__call, .nd-burger { display: none; }
}

.nd-menu { position: fixed; inset: var(--nd-header-h) 0 0; z-index: 59; display: flex; flex-direction: column; gap: 24px; padding: 24px 16px 32px; overflow-y: auto; background: var(--nd-bg); }
.nd-menu[hidden] { display: none; }
.nd-menu nav { display: flex; flex-direction: column; }
.nd-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--nd-line); font-size: 20px; font-weight: 600; }
.nd-menu nav a[aria-current="page"] { color: var(--nd-accent); }
.nd-menu__contacts { display: grid; gap: 12px; }
.nd-menu__phone { font-size: 22px; font-weight: 650; }
.nd-menu__socials { display: flex; flex-wrap: wrap; gap: 8px; }

/* Нижняя кнопка записи на телефоне */
.nd-sticky { position: fixed; inset: auto 0 0; z-index: 55; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(22, 23, 21, .96); border-top: 1px solid var(--nd-line); transform: translateY(110%); transition: transform .25s ease; }
.nd-sticky.is-visible { transform: none; }
.nd-sticky .nd-btn { flex: 1; min-height: 48px; }
.nd-sticky .nd-icon-btn { width: 48px; height: 48px; flex: none; }
@media (min-width: 1100px) { .nd-sticky { display: none; } }
@media (max-width: 1099px) { body.nd-has-sticky { padding-bottom: 72px; } }

/* ── Подвал ──────────────────────────────────────────────────── */
.nd-footer { padding: 56px 0 32px; border-top: 1px solid var(--nd-line); background: var(--nd-bg); font-size: 15px; }
.nd-footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .nd-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.nd-footer h3 { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--nd-faint); text-transform: uppercase; letter-spacing: .06em; }
.nd-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nd-footer a:hover { color: var(--nd-accent); }
.nd-footer__about { max-width: 300px; margin: 14px 0 18px; color: var(--nd-muted); line-height: 1.55; }
.nd-footer__branch { color: var(--nd-muted); line-height: 1.5; }
.nd-footer__branch b { color: var(--nd-text); font-weight: 600; }
.nd-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--nd-line); color: var(--nd-faint); font-size: 13px; }

.nd-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.nd-social { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--nd-line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; }
.nd-social:hover { border-color: var(--nd-muted); color: var(--nd-text) !important; }

/* ── Форма записи (окно и встроенная) ────────────────────────── */
.nd-modal { width: min(480px, 100% - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--nd-line-strong); border-radius: 24px; background: var(--nd-surface); color: var(--nd-text); overflow: auto; }
.nd-modal::backdrop { background: rgba(8, 9, 8, .72); }
.nd-modal__body { padding: 28px 24px 24px; }
@media (min-width: 560px) { .nd-modal__body { padding: 32px; } }
.nd-modal__close { position: absolute; top: 14px; right: 14px; }
.nd-modal h2 { margin: 0 44px 8px 0; font-size: 26px; font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.nd-modal__context { margin: 0 0 20px; padding: 12px 14px; border-radius: var(--nd-radius-sm); background: var(--nd-surface-2); color: var(--nd-muted); font-size: 14px; line-height: 1.5; }
.nd-modal__context b { color: var(--nd-text); font-weight: 600; }
.nd-modal__context[hidden] { display: none; }

.nd-form { display: grid; gap: 14px; }
.nd-field { display: grid; gap: 6px; }
.nd-field label, .nd-field__label { font-size: 14px; font-weight: 500; color: var(--nd-muted); }
.nd-input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--nd-line-strong); border-radius: var(--nd-radius-sm); background: var(--nd-bg); color: var(--nd-text); font: 400 17px/1.2 var(--nd-font); }
.nd-input::placeholder { color: var(--nd-faint); }
.nd-input:focus { outline: none; border-color: var(--nd-accent); }
.nd-input[aria-invalid="true"] { border-color: var(--nd-danger); }
.nd-form__ages { display: flex; flex-wrap: wrap; gap: 6px; }
.nd-form__ages .nd-chip { min-height: 36px; padding: 0 12px; font-size: 14px; }
.nd-chip:has(input:checked) { background: var(--nd-text); border-color: var(--nd-text); color: var(--nd-bg); }
.nd-chip:has(input:focus-visible) { outline: 3px solid var(--nd-accent); outline-offset: 2px; }
.nd-form__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--nd-faint); }
.nd-form__note a { text-decoration: underline; text-underline-offset: 3px; }
.nd-form__error { margin: 0; color: var(--nd-danger); font-size: 14px; }
.nd-form__alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--nd-line); font-size: 14px; color: var(--nd-muted); }
.nd-success { text-align: center; padding: 12px 0 4px; }
.nd-success__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 999px; background: var(--nd-accent); color: var(--nd-on-accent); }
.nd-success__icon svg { width: 28px; height: 28px; }
.nd-success h2 { margin: 0 0 10px; }
.nd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── Главная ─────────────────────────────────────────────────── */
.nd-page { padding-top: var(--nd-header-h); }

.nd-hero { padding: 40px 0 56px; }
.nd-hero__grid { display: grid; gap: 24px; align-items: center; grid-template-areas: "copy" "picker" "media" "facts"; }
.nd-hero__copy { grid-area: copy; }
.nd-hero__grid > .nd-picker { grid-area: picker; margin-top: 0; }
.nd-hero__media { grid-area: media; }
.nd-hero__grid > .nd-facts { grid-area: facts; }
@media (min-width: 1024px) {
  .nd-hero { padding: 56px 0 72px; }
  .nd-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 28px 56px; grid-template-areas: "copy media" "picker picker" "facts facts"; }
}
.nd-hero .nd-lead { margin-top: 20px; max-width: 540px; }
.nd-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.nd-hero__media { position: relative; margin: 0; border-radius: 28px; overflow: hidden; background: var(--nd-surface); border: 1px solid var(--nd-line); aspect-ratio: 4 / 3; }
.nd-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-hero__media figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(22, 23, 21, .82); font-size: 13px; color: var(--nd-muted); }

.nd-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 0; background: var(--nd-line); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); overflow: hidden; }
@media (min-width: 768px) { .nd-facts { grid-template-columns: repeat(4, 1fr); } }
.nd-facts > div { padding: 18px 20px; background: var(--nd-bg); }
.nd-facts dt { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.nd-facts dd { margin: 4px 0 0; color: var(--nd-muted); font-size: 14px; line-height: 1.35; }

/* Внутренние страницы: двухколоночный первый экран без подбора */
.nd-hero__grid--plain { grid-template-areas: "copy" "media"; }
@media (min-width: 1024px) { .nd-hero__grid--plain { grid-template-areas: "copy media"; } }
.nd-hero .nd-crumbs { margin-bottom: 24px; }
.nd-text { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--nd-muted); max-width: 680px; }
.nd-split { display: grid; gap: 32px; }
@media (min-width: 1024px) { .nd-split { grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start; } }
.nd-aside { display: grid; gap: 16px; }
.nd-checks { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.nd-checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.nd-checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--nd-accent); }
.nd-info { display: grid; gap: 0; margin: 0; padding: 4px 20px; }
.nd-info > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; }
.nd-info > div + div { border-top: 1px solid var(--nd-line); }
.nd-info dt { color: var(--nd-faint); font-size: 14px; }
.nd-info dd { margin: 0; font-size: 15px; line-height: 1.45; }
.nd-groups { display: grid; gap: 12px; }
@media (min-width: 768px) { .nd-groups { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .nd-groups { grid-template-columns: repeat(3, 1fr); } }
.nd-group { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.nd-group__head { display: grid; gap: 6px; justify-items: start; }
.nd-group__slots { display: grid; gap: 0; margin: 0 0 auto; padding: 0; list-style: none; }
.nd-group__slots li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid var(--nd-line); font-size: 15px; }
.nd-group__slots b { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.nd-group__slots small { grid-column: 1 / -1; color: var(--nd-faint); font-size: 13px; }

/* Подбор по возрасту */
.nd-picker { margin-top: 32px; padding: 20px; }
@media (min-width: 768px) { .nd-picker { padding: 24px 28px; } }
.nd-picker__title { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.nd-picker__result { margin-top: 18px; }
.nd-picker__result[hidden] { display: none; }
.nd-picker__summary { margin: 0 0 12px; color: var(--nd-muted); font-size: 15px; }
.nd-picker__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .nd-picker__list { grid-template-columns: 1fr 1fr; } }
.nd-picker__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--nd-radius-sm); background: var(--nd-bg); border: 1px solid var(--nd-line); }
.nd-picker__item a { font-weight: 600; }
.nd-picker__item a:hover { color: var(--nd-accent); }
.nd-picker__item small { display: block; margin-top: 2px; color: var(--nd-muted); font-size: 13px; line-height: 1.4; }
.nd-picker__more { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 14px; }

/* Карточки направлений */
.nd-dir-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .nd-dir-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .nd-dir-grid { grid-template-columns: repeat(4, 1fr); } }
.nd-dir { display: flex; flex-direction: column; overflow: hidden; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: var(--nd-radius); transition: border-color .15s ease; }
.nd-dir:hover { border-color: var(--nd-line-strong); }
.nd-dir[hidden] { display: none; }
.nd-dir__img { aspect-ratio: 4 / 3; background: var(--nd-surface-2); overflow: hidden; }
.nd-dir__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-dir__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.nd-dir__name { font-size: 17px; font-weight: 600; line-height: 1.25; }
.nd-dir__meta { color: var(--nd-muted); font-size: 14px; line-height: 1.4; }
.nd-dir__img { display: block; }
.nd-dir__name a:hover { color: var(--nd-accent); }
.nd-dir__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: auto; padding-top: 10px; }
.nd-dir-grid--catalog .nd-dir__body { flex: 1; }
@media (min-width: 1100px) { .nd-dir-grid--catalog { grid-template-columns: repeat(3, 1fr); } }

/* Филиалы */
.nd-branch-grid { display: grid; gap: 12px; }
@media (min-width: 768px) { .nd-branch-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .nd-branch-grid { grid-template-columns: repeat(4, 1fr); } }
.nd-branch { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.nd-branch__name { font-size: 19px; font-weight: 650; }
.nd-branch__addr, .nd-branch__hours { color: var(--nd-muted); font-size: 15px; line-height: 1.45; }
.nd-branch__dirs { margin-top: 6px; font-size: 14px; color: var(--nd-muted); line-height: 1.5; }
.nd-branch__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 14px; font-size: 14px; }

/* Цены */
.nd-prices { display: grid; gap: 12px; }
@media (min-width: 768px) { .nd-prices { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.nd-price { display: flex; flex-direction: column; gap: 6px; padding: 22px; }
.nd-price__value { font-size: 32px; font-weight: 650; letter-spacing: -.02em; }
.nd-price__note { color: var(--nd-muted); font-size: 15px; }
.nd-price--accent { border-color: var(--nd-accent); }
.nd-price-extra { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; color: var(--nd-muted); font-size: 15px; }
.nd-price-extra b { color: var(--nd-text); font-weight: 600; }

/* Фото */
.nd-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .nd-photos { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.nd-photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--nd-surface-2); }
.nd-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s ease; }
.nd-photos a:hover img { opacity: .85; }
.nd-rating { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-bottom: 24px; padding: 20px 22px; }
.nd-rating__value { font-size: 40px; font-weight: 650; letter-spacing: -.02em; line-height: 1; }
.nd-rating__stars { color: var(--nd-accent); letter-spacing: 2px; }

/* Вопросы */
.nd-faq { max-width: 820px; }
.nd-faq details { border-bottom: 1px solid var(--nd-line); }
.nd-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 550; list-style: none; cursor: pointer; }
.nd-faq summary::-webkit-details-marker { display: none; }
.nd-faq summary span { flex: none; font-size: 24px; line-height: 1; color: var(--nd-muted); transition: transform .15s ease; }
.nd-faq details[open] summary span { transform: rotate(45deg); }
.nd-faq p { margin: 0; padding: 0 32px 22px 0; color: var(--nd-muted); line-height: 1.65; }

/* Финальный блок с формой */
.nd-cta { display: grid; gap: 28px; padding: 28px 22px; }
@media (min-width: 900px) { .nd-cta { grid-template-columns: 1fr 1fr; gap: 56px; padding: 44px; } }
.nd-cta .nd-lead { margin-top: 14px; }
.nd-cta__contacts { display: grid; gap: 6px; margin-top: 24px; color: var(--nd-muted); font-size: 15px; }
.nd-cta__contacts a { color: var(--nd-text); font-weight: 600; }

/* Карточка «Ближайшее занятие» (страницы направления и филиала) */
.nd-next { display: grid; gap: 8px; padding: 22px; }
.nd-next p { margin: 0; }
.nd-next .nd-eyebrow { margin: 0; }
.nd-next__when { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.nd-next .nd-btn { justify-self: start; margin-top: 8px; }

/* ── Расписание ──────────────────────────────────────────────── */
.nd-sched-head { padding: 36px 0 20px; }
.nd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--nd-faint); }
.nd-crumbs a:hover { color: var(--nd-text); }
.nd-crumbs [aria-current] { color: var(--nd-muted); }
.nd-filters { display: grid; gap: 8px; padding: 12px 0; background: var(--nd-bg); border-bottom: 1px solid var(--nd-line); }
@media (min-width: 768px) { .nd-filters { position: sticky; top: var(--nd-header-h); z-index: 20; } }
.nd-filters__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nd-filters__label { flex: none; width: 74px; font-size: 13px; color: var(--nd-faint); }
@media (max-width: 767px) { .nd-filters__label { display: none; } }
.nd-select { min-height: 40px; padding: 0 36px 0 14px; border: 1px solid var(--nd-line-strong); border-radius: 999px; background: var(--nd-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b0b5a9' stroke-width='1.6'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--nd-text); font: 500 15px/1 var(--nd-font); appearance: none; -webkit-appearance: none; max-width: 100%; }

/* Таблица групп по направлениям (_schedule_groups.php) */
.nd-filters__found { margin: 0; min-height: 1em; }
.nd-filters__found:empty { display: none; }
.nd-sdirs { display: grid; gap: 28px; margin-top: 28px; }
.nd-sdir { scroll-margin-top: calc(var(--nd-header-h) + 150px); }
.nd-sdir__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 12px; }
.nd-sdir__title { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.nd-sdir__title a:hover { color: var(--nd-accent); }
.nd-sdir__meta { margin: 0; color: var(--nd-muted); font-size: 14px; }
.nd-faint { color: var(--nd-faint); }
.nd-stable { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 16px; overflow: hidden; }
.nd-stable th { padding: 10px 16px; border-bottom: 1px solid var(--nd-line); color: var(--nd-faint); font-size: 13px; font-weight: 500; text-align: left; }
.nd-stable td { padding: 14px 16px; border-top: 1px solid var(--nd-line); font-size: 15px; line-height: 1.45; vertical-align: middle; }
.nd-stable tbody tr:first-child td { border-top: 0; }
.nd-stable__age { width: 120px; }
th.nd-stable__where { width: 27%; }
th.nd-stable__teacher { width: 18%; }
th.nd-stable__cta { width: 150px; }
.nd-stable__when { font-variant-numeric: tabular-nums; }
.nd-stable__when b { font-weight: 650; }
.nd-stable__slot { display: block; }
.nd-stable small { display: block; color: var(--nd-faint); font-size: 13px; }
.nd-stable .nd-stable__slot small { display: inline; margin-left: 4px; }
.nd-stable__where a:hover { color: var(--nd-accent); }
.nd-stable__cta { white-space: nowrap; text-align: right; }
.nd-stable--empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.nd-stable--empty p { margin: 0; }
@media (max-width: 767px) {
  .nd-stable:not(.nd-stable--empty), .nd-stable tbody { display: block; background: none; border: 0; border-radius: 0; }
  .nd-stable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nd-stable tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin-bottom: 8px; padding: 14px 16px; background: var(--nd-surface); border: 1px solid var(--nd-line); border-radius: 16px; }
  .nd-stable td { display: block; padding: 0; border: 0; }
  .nd-stable__age { grid-column: 1; grid-row: 1; width: auto; }
  .nd-stable__cta { grid-column: 2; grid-row: 1; width: auto; }
  .nd-stable td.nd-stable__age, .nd-stable td.nd-stable__cta { width: auto; }
  .nd-stable__when { grid-column: 1 / -1; font-size: 17px; }
  .nd-stable__where, .nd-stable__teacher { grid-column: 1 / -1; color: var(--nd-muted); font-size: 14px; }
  .nd-stable__where small, .nd-stable__teacher small { display: inline; margin-left: 6px; }
  .nd-stable__teacher::before { content: 'Педагог: '; }
}
.nd-empty { padding: 28px 20px; text-align: center; color: var(--nd-muted); }
.nd-empty p { margin: 0 0 14px; }
.nd-sched-note { margin: 24px 0 0; padding: 18px 20px; }

/* ── Спокойный слой для старых страниц ──────────────────────── */
.noise-overlay, .directions-ticker { display: none !important; }
.bg-dark, .min-h-screen.bg-dark { background-color: var(--nd-bg) !important; }
.bg-dark-elevated, .bg-\[\#151616\] { background-color: var(--nd-surface) !important; }
main *, .page-content * { box-shadow: none !important; text-shadow: none !important; }
main h2.font-display, main h3.font-display, main h4.font-display { font-family: var(--nd-font); font-weight: 650; letter-spacing: -.02em; text-transform: none; }
main h1 .text-lime, main h2 .text-lime, main h3 .text-lime { color: inherit !important; }
main [class*="border-lime"] { border-color: var(--nd-line-strong) !important; }
main [class*="from-lime"] { background-image: none !important; }
main .hover\:scale-105:hover, main .hover\:scale-110:hover { transform: none !important; }
main .border-white\/5, main .border-white\/10 { border-color: var(--nd-line) !important; }
main .rounded-3xl { border-radius: var(--nd-radius); }
main a.bg-lime, main button.bg-lime { border-radius: 999px; }
main a.bg-lime:hover, main button.bg-lime:hover { background-color: var(--nd-accent-hover); }
.pt-24 { padding-top: calc(var(--nd-header-h) + 28px) !important; }
.nd-filters--static { position: static !important; }
