/*
Theme Name: Dr. Pilates — Студии
Theme URI: https://drpilates.ru
Description: Каркас сайта сети студий пилатеса Dr. Pilates (главная + филиалы). Контент захардкожен в шаблонах.
Author: Po Plan
Version: 1.0.0
Requires PHP: 8.0
Text Domain: drpilates-studio
*/

/* ═══════════════════════════════════════════════════════════
   Dr. Pilates — СЕТЬ СТУДИЙ ПИЛАТЕСА
   Прототип сайта студий. Стилистика 1-в-1 с интернет-магазином
   Dr.Pilates: тёплый кремовый + тёмно-серый, зелёный акцент, Inter.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  /* Палитра */
  --c-bg: #ffffff;
  --c-bg-soft: #F7F4EF;        /* кремовый бежевый */
  --c-bg-alt: #EFEAE3;         /* бежевый потемнее */
  --c-bg-dark: #242424;        /* тёплый тёмно-серый */
  --c-bg-dark-2: #2e2e2e;

  --c-fg: #242424;
  --c-fg-2: #3a3a3a;
  --c-fg-3: #5a5a5a;
  --c-muted: #888885;
  --c-muted-2: #b0b0ab;
  --c-line: #eae6df;
  --c-line-2: #d8d2c8;

  --c-fab: #3F8B5E;            /* зелёный акцент */
  --c-fab-dark: #2D6E47;
  --c-sale: #b8261b;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --tracking-tight: -0.025em;
  --tracking-wide: 0.06em;
  --tracking-wider: 0.14em;

  --w-max: 1320px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pad-section: 100px;

  --shadow-sm: 0 1px 3px rgba(20,20,20,.04), 0 1px 2px rgba(20,20,20,.03);
  --shadow-md: 0 4px 16px rgba(20,20,20,.04), 0 2px 6px rgba(20,20,20,.03);
  --shadow-lg: 0 24px 60px -20px rgba(15,15,15,.18), 0 6px 18px rgba(20,20,20,.05);
}

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

body {
  font-family: var(--font-sans);
  color: var(--c-fg);
  background: var(--c-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ─── Layout ─── */
.container { width: 100%; max-width: var(--w-max); margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 92px; }

/* ─── Типографика общая ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: var(--tracking-wider);
  text-transform: uppercase; color: var(--c-muted); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--c-fab); }
.eyebrow--light { color: rgba(255,255,255,.55); }

.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500; line-height: 1.06; letter-spacing: var(--tracking-tight);
}
.section-lead {
  font-size: 16px; line-height: 1.6; color: var(--c-fg-3);
  max-width: 620px; margin-top: 16px;
}
.section-head { margin-bottom: 48px; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-lead { margin-left: auto; margin-right: auto; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; font-size: 13px; font-weight: 500; letter-spacing: .01em;
  border-radius: 999px; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--c-fg); color: #fff; border-color: var(--c-fg); }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(0,0,0,.45); }
.btn-outline { background: transparent; color: var(--c-fg); border-color: var(--c-line-2); }
.btn-outline:hover { border-color: var(--c-fg); }
.btn-light { background: #fff; color: var(--c-fg); border-color: #fff; }
.btn-light:hover { background: #f0f0ed; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color: #fff; }
.btn-wa { background: var(--c-fab); color: #fff; border-color: var(--c-fab); }
.btn-wa:hover { background: var(--c-fab-dark); }
.btn-lg { padding: 16px 32px; font-size: 14px; }

/* ─── Header ─── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,244,239,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: baseline; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: var(--tracking-tight); }
.logo b { font-weight: 600; }
.logo span { color: var(--c-fab); }
.logo small { font-size: 11px; font-weight: 500; color: var(--c-muted); letter-spacing: var(--tracking-wide); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.nav a { font-size: 14px; color: var(--c-fg-2); transition: color .2s; }
.nav a:hover { color: var(--c-fab); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { font-size: 14px; font-weight: 500; white-space: nowrap; }
.header-phone:hover { color: var(--c-fab); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--c-line-2); border-radius: 50%; background: #fff; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ─── Hero ─── */
.hero { background: var(--c-bg-soft); padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px); font-weight: 500; line-height: 1.02;
  letter-spacing: var(--tracking-tight); margin-bottom: 20px;
}
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--c-fg-3); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; align-items: center; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 26px; border-top: 1px solid var(--c-line); }
.hero-stat b { display: block; font-size: 24px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.hero-stat span { font-size: 13px; color: var(--c-muted); }
.hero-media { position: relative; }
.hero-media .media-free { box-shadow: var(--shadow-md); }
.hero-badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border: 1px solid var(--c-line);
  border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
}
.hero-badge i { color: var(--c-fab); }
.hero-badge b { font-size: 14px; }
.hero-badge span { display: block; font-size: 12px; color: var(--c-muted); }

/* Видео-hero (главная) */
.hero-video { position: relative; min-height: 82vh; display: flex; align-items: center; overflow: hidden; background: var(--c-bg-dark); padding: 80px 0; }
.hero-video > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(95deg, rgba(18,17,15,.82) 0%, rgba(18,17,15,.55) 50%, rgba(18,17,15,.25) 100%); }
.hero-video .container { position: relative; z-index: 2; }
.hero-video .hero-text { max-width: 720px; }
.hero-video .eyebrow { color: rgba(255,255,255,.62); }
.hero-video .eyebrow::before { background: #fff; opacity: .5; }
.hero-video h1 { color: #fff; }
.hero-video .hero-lead { color: rgba(255,255,255,.82); }
.hero-video .hero-stats { border-top-color: rgba(255,255,255,.2); }
.hero-video .hero-stat b { color: #fff; }
.hero-video .hero-stat span { color: rgba(255,255,255,.6); }

/* Узкий hero для страниц филиалов */
.page-hero { background: var(--c-bg-soft); padding: 28px 0 64px; }
.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--c-muted); margin-bottom: 28px; }
.breadcrumbs a:hover { color: var(--c-fab); }
.page-hero h1 { font-size: clamp(32px, 4.2vw, 52px); font-weight: 500; line-height: 1.04; letter-spacing: var(--tracking-tight); margin-bottom: 18px; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 24px; }
.page-hero-meta li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--c-fg-2); }
.page-hero-meta i { width: 17px; height: 17px; color: var(--c-fab); }

/* ─── Изображения ─── */
.ph { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--c-bg-alt); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-free { width: 100%; height: auto; display: block; border-radius: var(--r-xl); }
.logo-img { height: 30px; width: auto; display: block; }
.footer-brand .logo-img { height: 34px; }
.mobile-menu .logo-img { height: 28px; }

/* ─── Секции ─── */
.s { padding: var(--pad-section) 0; }
.s-soft { background: var(--c-bg-soft); }

/* About (two-col) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--c-fg-3); font-size: 16px; line-height: 1.7; margin-top: 16px; }
.about-media .media-free { box-shadow: var(--shadow-md); }

/* USP */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.usp-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px 24px; transition: box-shadow .25s, transform .25s; }
.usp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.usp-ico { width: 52px; height: 52px; border-radius: var(--r-md); background: var(--c-bg-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.usp-ico i { width: 24px; height: 24px; color: var(--c-fab); }
.usp-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: var(--tracking-tight); }
.usp-card p { font-size: 14px; color: var(--c-fg-3); line-height: 1.55; }

/* Программы */
.prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prog-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s; }
.prog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--c-line-2); }
.prog-card .ph { aspect-ratio: 4/3; border-radius: 0; }
.prog-card-body { padding: 18px 20px 20px; }
.prog-card-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; letter-spacing: var(--tracking-tight); }
.prog-card-body p { font-size: 13.5px; color: var(--c-fg-3); line-height: 1.5; }

/* Филиалы (branches) */
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ph-soon { display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--c-muted); font-size: 12px; letter-spacing: var(--tracking-wide); text-transform: uppercase; line-height: 1.5; background: var(--c-bg-alt); border-radius: var(--r-lg); }

/* ── Бейдж «Открытие» ── */
.open-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--c-fab); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 15px; border-radius: 999px; letter-spacing: .02em; margin-bottom: 16px; }
.open-badge i, .open-badge svg { width: 15px; height: 15px; }

/* ── Предпродажа абонементов ── */
.presale { padding: var(--pad-section) 0; }
.presale-card { background: var(--c-bg-dark); color: #f0efe9; border-radius: var(--r-xl); padding: 48px 52px; display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.presale-card::before { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(63,139,94,.25) 0%, transparent 65%); pointer-events: none; }
.presale-info { position: relative; z-index: 1; }
.presale-info .eyebrow { color: rgba(255,255,255,.6); }
.presale-info .eyebrow::before { background: var(--c-fab); }
.presale-info h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 500; letter-spacing: var(--tracking-tight); line-height: 1.1; color: #fff; margin-bottom: 12px; }
.presale-info h2 em { color: var(--c-fab); font-style: normal; }
.presale-info p { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 460px; }
.presale-info .presale-date { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; font-weight: 500; color: #fff; }
.presale-info .presale-date i, .presale-info .presale-date svg { width: 17px; height: 17px; color: var(--c-fab); }

/* ── Форма обратной связи ── */
.lead-form { position: relative; z-index: 1; background: #fff; border-radius: var(--r-lg); padding: 26px; }
.lead-form-title { font-size: 16px; font-weight: 600; color: var(--c-fg); margin-bottom: 16px; letter-spacing: var(--tracking-tight); }
.lead-form-fields { display: flex; flex-direction: column; gap: 12px; }
.lead-form input { width: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--c-line-2); background: #fff; font: inherit; font-size: 15px; color: var(--c-fg); transition: border-color .2s ease; }
.lead-form input::placeholder { color: var(--c-muted); }
.lead-form input:focus { outline: none; border-color: var(--c-fab); }
.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-form-note { font-size: 12px; line-height: 1.5; color: var(--c-muted); margin-top: 12px; }
.lead-form-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 12px; }
.lead-form-success i, .lead-form-success svg { width: 40px; height: 40px; color: var(--c-fab); }
.lead-form-success b { font-size: 17px; color: var(--c-fg); }
.lead-form-success span { font-size: 14px; color: var(--c-fg-3); }
@media (max-width: 900px) { .presale-card { grid-template-columns: 1fr; gap: 28px; padding: 32px 24px; } }

/* ── Плавающая кнопка «Записаться» + выбор филиала ── */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 120; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab-btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 24px; border: none; border-radius: 999px; background: var(--c-fab); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 12px 30px -6px rgba(63,139,94,.5); transition: background .2s ease, transform .15s ease; }
.fab-btn:hover { background: var(--c-fab-dark); transform: translateY(-2px); }
.fab-btn svg { width: 19px; height: 19px; }
.fab-menu { width: 288px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 10px; animation: fab-in .18s ease; }
.fab-menu[hidden] { display: none; }
@keyframes fab-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fab-menu-title { font-size: 11px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--c-muted); padding: 8px 12px 10px; }
.fab-menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: var(--r-md); font-size: 15px; font-weight: 500; color: var(--c-fg); transition: background .18s ease; }
.fab-menu a:hover { background: var(--c-bg-soft); }
.fab-menu a small { display: block; font-size: 11px; color: var(--c-fab); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.fab-menu a svg { width: 16px; height: 16px; color: var(--c-muted); flex-shrink: 0; }
@media (max-width: 560px) { .fab { right: 16px; bottom: 16px; } .fab-btn { padding: 13px 20px; font-size: 14px; } .fab-menu { width: calc(100vw - 32px); max-width: 300px; } }

/* ─── Модалка «Записаться» ─── */
.dp-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.dp-modal[hidden] { display: none !important; }
.dp-modal-backdrop { position: absolute; inset: 0; background: rgba(20,18,15,.55); backdrop-filter: blur(3px); animation: dp-modal-fade .2s ease; }
.dp-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 448px; background: var(--c-bg-soft); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 34px 34px 30px; max-height: calc(100vh - 40px); overflow-y: auto; animation: dp-modal-in .24s cubic-bezier(.2,.8,.3,1); }
body.dp-modal-open { overflow: hidden; }

.dp-modal-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(20,20,20,.05); color: var(--c-fg-3); cursor: pointer; transition: background .18s ease, color .18s ease; }
.dp-modal-close:hover { background: rgba(20,20,20,.1); color: var(--c-fg); }
.dp-modal-close svg { width: 18px; height: 18px; }

.dp-modal-header { margin-bottom: 22px; padding-right: 30px; }
.dp-modal-header .eyebrow { margin-bottom: 12px; }
.dp-modal-header h3 { font-size: clamp(22px, 3vw, 27px); font-weight: 500; letter-spacing: var(--tracking-tight); line-height: 1.15; color: var(--c-fg); margin-bottom: 8px; }
.dp-modal-header p { font-size: 14px; line-height: 1.55; color: var(--c-fg-3); }

.dp-modal-form { position: relative; }
.dp-modal-fields { display: flex; flex-direction: column; gap: 14px; }
.dp-modal-fields > label { display: flex; flex-direction: column; gap: 6px; }
.dp-modal-fields > label > span { font-size: 13px; font-weight: 500; color: var(--c-fg-2); }
.dp-modal-fields .req { color: var(--c-sale); }
.dp-modal-fields input, .dp-modal-fields textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--c-line-2); background: #fff; font: inherit; font-size: 15px; color: var(--c-fg); transition: border-color .2s ease; }
.dp-modal-fields input::placeholder, .dp-modal-fields textarea::placeholder { color: var(--c-muted); }
.dp-modal-fields input:focus, .dp-modal-fields textarea:focus { outline: none; border-color: var(--c-fab); }
.dp-modal-fields textarea { resize: vertical; min-height: 46px; }
.dp-modal-fields .btn { width: 100%; margin-top: 4px; }

/* Согласие */
.dp-consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; cursor: pointer; position: relative; }
.dp-consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.dp-consent-box { flex-shrink: 0; width: 19px; height: 19px; margin-top: 1px; border: 1.5px solid var(--c-line-2); border-radius: 5px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s ease, border-color .15s ease; }
.dp-consent-box svg { opacity: 0; color: #fff; stroke: #fff; transition: opacity .15s ease; }
.dp-consent-box svg polyline { stroke: #fff; }
.dp-consent input:checked + .dp-consent-box { background: var(--c-fab); border-color: var(--c-fab); }
.dp-consent input:checked + .dp-consent-box svg { opacity: 1; }
.dp-consent input:focus-visible + .dp-consent-box { box-shadow: 0 0 0 3px rgba(63,139,94,.25); }
.dp-consent-text { font-size: 12.5px; line-height: 1.45; color: var(--c-muted); }
.dp-consent-text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dp-consent-text a:hover { color: var(--c-fab); }

/* ─── Юридические страницы (политика, оферта) ─── */
.legal { padding: 120px 0 80px; }
.container-narrow { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: var(--tracking-tight); line-height: 1.15; margin-bottom: 28px; }
.legal h2 { font-size: 20px; font-weight: 600; letter-spacing: var(--tracking-tight); margin: 34px 0 12px; }
.legal h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.legal p { font-size: 15px; line-height: 1.7; color: var(--c-fg-2); margin-bottom: 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { font-size: 15px; line-height: 1.7; color: var(--c-fg-2); margin-bottom: 6px; }
.legal a { color: var(--c-fab); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.legal table th, .legal table td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--c-line); font-size: 14.5px; line-height: 1.6; }
.legal table th { width: 34%; background: var(--c-bg-soft); font-weight: 600; color: var(--c-fg); }
.legal table td { color: var(--c-fg-2); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 36px; font-size: 14px; color: var(--c-muted); }
.legal-back:hover { color: var(--c-fab); }

/* Капча */
.dp-captcha-wrap { min-height: 0; }
.dp-captcha-wrap .smart-captcha { max-width: 100%; }

/* Успех / ошибка */
.dp-modal-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 30px 12px; }
.dp-modal-success svg { width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: rgba(63,139,94,.12); color: var(--c-fab); }
.dp-modal-success b { font-size: 18px; color: var(--c-fg); }
.dp-modal-success span { font-size: 14px; color: var(--c-fg-3); }
.dp-modal-error { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: rgba(184,38,27,.08); border: 1px solid rgba(184,38,27,.2); color: var(--c-sale); font-size: 13.5px; line-height: 1.45; }

@keyframes dp-modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dp-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .dp-modal-dialog { padding: 28px 20px 24px; border-radius: var(--r-lg); } }
.branch-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.branch-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.branch-card .ph { aspect-ratio: 16/10; border-radius: 0; }
.branch-body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.branch-body h3 { font-size: 23px; font-weight: 500; letter-spacing: var(--tracking-tight); margin-bottom: 14px; }
.branch-meta { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.branch-meta li { display: flex; gap: 10px; font-size: 14.5px; color: var(--c-fg-2); }
.branch-meta i { width: 17px; height: 17px; color: var(--c-fab); flex-shrink: 0; margin-top: 2px; }
.branch-body p { font-size: 14.5px; color: var(--c-fg-3); line-height: 1.6; margin-bottom: 24px; }
.branch-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Шаги «как начать» */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.step-num { font-size: 13px; font-weight: 600; color: var(--c-fab); letter-spacing: var(--tracking-wide); }
.step h3 { font-size: 16px; font-weight: 600; margin: 10px 0 8px; }
.step p { font-size: 13.5px; color: var(--c-fg-3); line-height: 1.55; }

/* Команда / тренеры */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 24px; }
.trainer { background: transparent; border: 0; border-radius: 0; overflow: visible; text-align: center; transition: transform .25s ease; }
.trainer:hover { transform: translateY(-4px); }
.trainer .ph { width: 150px; height: 150px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; filter: grayscale(1); box-shadow: var(--shadow-sm); transition: filter .3s ease, box-shadow .25s ease; }
.trainer .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trainer:hover .ph { filter: grayscale(0); box-shadow: var(--shadow-md); }
.trainer-body { padding: 16px 6px 0; }
.trainer-avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--c-bg-soft); border: 1px solid var(--c-line); color: var(--c-fab); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; margin: 0 auto 14px; }
.trainer-body h3 { font-size: 16px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.trainer-role { font-size: 11px; color: var(--c-fab); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin: 5px 0 9px; }
.trainer-body p { font-size: 12.5px; color: var(--c-fg-3); line-height: 1.5; max-width: 235px; margin: 0 auto; }

/* Цены */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 30px 28px; }
.price-card--accent { background: var(--c-bg-dark); color: #f0efe9; border-color: var(--c-bg-dark); }
.price-card h3 { font-size: 18px; font-weight: 600; letter-spacing: var(--tracking-tight); }
.price-card--accent h3 { color: #fff; }
.price-sub { font-size: 13px; color: var(--c-muted); margin: 4px 0 22px; }
.price-card--accent .price-sub { color: rgba(255,255,255,.55); }
.price-list { display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--c-line); }
.price-card--accent .price-row { border-color: rgba(255,255,255,.12); }
.price-row:last-child { border-bottom: none; }
.price-row .pr-name { font-size: 14px; }
.price-row .pr-name small { display: block; font-size: 12px; color: var(--c-muted); }
.price-card--accent .pr-name small { color: rgba(255,255,255,.5); }
.price-row .pr-val { font-size: 15px; font-weight: 600; white-space: nowrap; }
.price-row .pr-val s { font-size: 12px; font-weight: 400; color: var(--c-muted); margin-right: 6px; }
.price-row .pr-val em { color: var(--c-fab); font-style: normal; }
.price-note { font-size: 13px; color: var(--c-muted); line-height: 1.6; margin-top: 22px; }

/* Табы выбора филиала (цены на главной) */
.tabs-head { display: flex; justify-content: center; margin-bottom: 36px; }
.tabs-nav { display: inline-flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; box-shadow: var(--shadow-sm); flex-wrap: wrap; justify-content: center; }
.tab-btn { padding: 11px 24px; border: none; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--c-fg-3); cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.tab-btn:hover { color: var(--c-fg); }
.tab-btn.is-active { background: var(--c-fg); color: #fff; }
.tab-panel[hidden] { display: none; }
.tab-panel-meta { text-align: center; margin-top: 22px; font-size: 14px; color: var(--c-muted); }
.tab-panel-meta a { color: var(--c-fab); font-weight: 500; }
.price-rules { max-width: 780px; margin: 30px auto 0; text-align: center; font-size: 13.5px; line-height: 1.65; color: var(--c-muted); }
.price-rules b { color: var(--c-fg-3); font-weight: 600; }
.price-promo { display: flex; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto 28px; padding: 18px 24px; border-radius: var(--r-lg); background: var(--c-bg-dark); color: #fff; box-shadow: var(--shadow-md); }
.price-promo-ico { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--c-fab); display: inline-flex; align-items: center; justify-content: center; }
.price-promo-ico i, .price-promo-ico svg { width: 23px; height: 23px; color: #fff; }
.price-promo-text b { display: block; font-size: 16px; font-weight: 600; color: #fff; letter-spacing: var(--tracking-tight); }
.price-promo-text span { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.72); }

/* ─── FAQ ─── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--c-line-2); }
.faq-item:first-child { border-top: 1px solid var(--c-line-2); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; color: var(--c-fg); letter-spacing: var(--tracking-tight); transition: color .2s ease; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--c-fab); }
.faq-ico { flex-shrink: 0; width: 22px; height: 22px; color: var(--c-fab); transition: transform .25s ease; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 44px 24px 4px; font-size: 15px; line-height: 1.65; color: var(--c-fg-3); }
.faq-a p { margin-bottom: 10px; }
.faq-a p:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .faq-q { font-size: 15.5px; padding: 18px 2px; gap: 12px; } .faq-a { padding: 0 18px 20px 2px; font-size: 14px; } }
section#faq { margin-bottom: 40px; }

/* ── Правила абонементов (секция с фото-фоном) ── */
.rules { position: relative; padding: var(--pad-section) 0; overflow: hidden; background: var(--c-bg-dark); }
.rules-bg { position: absolute; inset: 0; z-index: 0; }
.rules-bg img { width: 100%; height: 100%; object-fit: cover; }
.rules::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(rgba(20,18,16,.72), rgba(20,18,16,.82)); }
.rules .container { position: relative; z-index: 2; }
.rules .section-head { margin-bottom: 44px; }
.rules .section-title { color: #fff; }
.rules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rule-card { background: #fff; border-radius: var(--r-lg); padding: 34px 28px 32px; text-align: center; box-shadow: var(--shadow-lg); }
.rule-ico { width: 56px; height: 56px; border-radius: 14px; background: var(--c-fab); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.rule-ico [data-lucide] { width: 26px; height: 26px; color: #fff; }
.rule-card h3 { font-size: 19px; font-weight: 600; color: var(--c-fab-dark); letter-spacing: var(--tracking-tight); margin-bottom: 10px; }
.rule-card p { font-size: 14px; line-height: 1.6; color: var(--c-fg-3); }
@media (max-width: 860px) { .rules-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* Расписание */
.schedule { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.schedule th, .schedule td { text-align: left; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--c-line); }
.schedule th { background: var(--c-bg-soft); font-weight: 600; width: 150px; vertical-align: top; }
.schedule tr:last-child td, .schedule tr:last-child th { border-bottom: none; }
.schedule td span { display: inline-block; background: var(--c-bg-soft); border-radius: 999px; padding: 4px 11px; margin: 0 6px 6px 0; font-size: 13px; }
.schedule td span b { font-weight: 600; }
.schedule td span small { color: var(--c-muted); }

/* Галерея */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-item { position: relative; display: block; aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--c-bg-alt); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* «Как добраться» */
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.route-text h3 { font-size: 18px; font-weight: 600; margin: 22px 0 10px; letter-spacing: var(--tracking-tight); }
.route-text p { font-size: 14.5px; color: var(--c-fg-3); line-height: 1.65; }
.route-media .ph { aspect-ratio: 4/3; }
.map-ph { display: flex; align-items: center; justify-content: center; }
.map-ph span { color: var(--c-muted); font-size: 13px; letter-spacing: var(--tracking-wide); text-transform: uppercase; padding: 0 20px; text-align: center; }
.map-ph i { width: 28px; height: 28px; opacity: .4; margin-right: 10px; }
.ymap { width: 100%; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: var(--c-bg-alt); }
.ymap ymaps { border-radius: var(--r-lg); }
@media (max-width: 900px) { .ymap { aspect-ratio: 3/2; } }

/* CTA-баннер (бежевый) */
.cta { padding: 0 0 var(--pad-section); }
#contacts.cta { padding-top: var(--pad-section); }
.cta-banner {
  background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-md); padding: 48px 52px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.cta-banner h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: var(--tracking-tight); margin-bottom: 10px; }
.cta-banner p { font-size: 15px; color: var(--c-fg-3); max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-banner--form { align-items: start; }
.cta-banner--form .cta-content { align-self: center; }
.cta-form { width: 400px; max-width: 100%; }
.cta-form .lead-form { padding: 28px; box-shadow: var(--shadow-md); border: 1px solid var(--c-line); }
.cta-socials { margin-top: 24px; }

/* ─── Страница программы ─── */
.program-desc { margin: 6px 0 22px; }
.program-desc p { font-size: 15.5px; line-height: 1.7; color: var(--c-fg-3); margin-bottom: 12px; }
.program-desc p:last-child { margin-bottom: 0; }
.prog-prices .tab-panel { display: flex; flex-direction: column; align-items: center; }
.prog-prices .tab-panel-meta { text-align: center; margin-top: 18px; }
.pp-card { width: 100%; max-width: 620px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); padding: 30px 36px; }
.pp-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.pp-card-head h3 { font-size: 20px; font-weight: 600; letter-spacing: var(--tracking-tight); color: var(--c-fg); }
.pp-card-head span { font-size: 13px; color: var(--c-muted); }
.pp-list { display: flex; flex-direction: column; }
.pp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--c-line); }
.pp-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pp-name { font-size: 15.5px; line-height: 1.4; color: var(--c-fg-2); }
.pp-name small { margin-left: 7px; font-size: 12px; color: var(--c-muted); }
.pp-val { font-size: 16px; font-weight: 600; color: var(--c-fg); white-space: nowrap; }
.pp-val s { font-weight: 400; color: var(--c-muted); margin-right: 8px; font-size: 14px; }
.pp-val em { font-style: normal; color: var(--c-fab); }
.pp-card .price-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: 12.5px; line-height: 1.5; color: var(--c-muted); }
@media (max-width: 560px) { .pp-card { padding: 24px 22px; } .pp-row { flex-wrap: wrap; gap: 2px 12px; } }

/* Блок записи на странице программы: чёрная панель на всю ширину, форма в строку, на бежевом */
.program-cta { background: var(--c-bg-soft); padding: var(--pad-section) 0; }
.program-request { background: var(--c-bg-dark); color: #f0efe9; border-radius: var(--r-xl); padding: 48px 52px; box-shadow: var(--shadow-md); }
.program-request .eyebrow { color: rgba(255,255,255,.55); }
.program-request .eyebrow::before { background: var(--c-fab); }
.program-request h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: var(--tracking-tight); color: #fff; margin-bottom: 10px; }
.program-request-lead { font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); max-width: 640px; }
.program-form { margin-top: 28px; }
.program-form-fields { display: flex; flex-direction: column; gap: 16px; }
.program-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.program-form-row--2 { grid-template-columns: repeat(2, 1fr); }
.program-form input, .program-form select { width: 100%; padding: 15px 16px; border-radius: var(--r-md); border: 1px solid transparent; background: #fff; font: inherit; font-size: 15px; color: var(--c-fg); }
.program-form input::placeholder { color: var(--c-muted); }
.program-form input:focus, .program-form select:focus { outline: none; box-shadow: 0 0 0 2px var(--c-fab); }
.program-form select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23888885" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 6 8 10 12 6"/></svg>'); background-repeat: no-repeat; background-position: right 14px center; }
.program-form .dp-consent { margin: 2px 0; }
.program-form .dp-consent-text { color: rgba(255,255,255,.7); }
.program-form .dp-consent-text a { color: #fff; }
.program-form-foot { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.program-form .btn { width: 100%; }
.program-request .lead-form-success { align-items: flex-start; text-align: left; padding: 8px 0; }
.program-request .lead-form-success b { color: #fff; }
.program-request .lead-form-success span { color: rgba(255,255,255,.7); }
@media (max-width: 720px) { .program-request { padding: 34px 24px; } .program-form-row, .program-form-row--2 { grid-template-columns: 1fr; } }
.lead-form select { width: 100%; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--c-line-2); background-color: #fff; font: inherit; font-size: 15px; color: var(--c-fg); appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23888885" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="4 6 8 10 12 6"/></svg>'); background-repeat: no-repeat; background-position: right 14px center; }
.lead-form select:focus { outline: none; border-color: var(--c-fab); }
.prog-card--link { cursor: pointer; color: inherit; text-decoration: none; }
.prog-card-more { display: inline-flex; align-items: center; gap: 3px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c-fab); letter-spacing: var(--tracking-tight); }
.prog-card-more i, .prog-card-more svg { width: 15px; height: 15px; transition: transform .2s ease; }
.prog-card--link:hover .prog-card-more i, .prog-card--link:hover .prog-card-more svg { transform: translateX(3px); }

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.contact-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-xl); padding: 30px 30px 32px; display: flex; flex-direction: column; }
.contact-card h3 { font-size: 19px; font-weight: 600; letter-spacing: var(--tracking-tight); margin-bottom: 16px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 12px; font-size: 14.5px; color: var(--c-fg-2); align-items: center; }
.contact-list i { width: 18px; height: 18px; color: var(--c-fab); }
.contact-list a:hover { color: var(--c-fab); }
.contact-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 22px; align-items: center; }

/* ── Соц-иконки (телефон / WhatsApp / Telegram / почта) ── */
.socials { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.soc { width: 44px; height: 44px; flex: 0 0 44px; display: inline-flex; color: var(--c-fab); transition: color .2s ease, transform .15s ease; }
.soc svg { width: 44px; height: 44px; fill: currentColor; display: block; }
.soc:hover { color: var(--c-fab-dark); transform: translateY(-2px); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Footer */
.site-footer { background: var(--c-bg-dark); color: rgba(240,239,233,.7); padding: 64px 0 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.65; max-width: 320px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: #fff; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(240,239,233,.5); }
.footer-bottom a:hover { color: #fff; }

/* ─── Lightbox ─── */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,16,.93); display: none; align-items: center; justify-content: center; padding: 5vh 6vw; }
.lb.is-open { display: flex; }
.lb-img { max-width: 88vw; max-height: 88vh; border-radius: var(--r-md); display: block; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); border: none; color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 24px; right: 24px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb svg { width: 22px; height: 22px; }

/* ─── Reveal ─── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ─── Адаптив ─── */
@media (max-width: 1080px) {
  .usp-grid, .prog-grid, .team-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad-section: 72px; }
  .nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .about-grid, .branch-grid, .price-grid, .route-grid, .contacts-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-banner { grid-template-columns: 1fr; padding: 32px 26px; }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .prog-grid, .usp-grid, .steps-grid, .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .team-grid .ph { width: 120px; height: 120px; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; }
}

/* ─── Мобильное меню ─── */
.mobile-menu { position: fixed; inset: 0; z-index: 150; background: var(--c-bg-soft); transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; padding: 24px; }
.mobile-menu.is-open { transform: none; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 48px; margin-bottom: 24px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { font-size: 20px; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.mobile-menu .btn { margin-top: 24px; }
