/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: var(--font-size-base, 16px); overflow-x: hidden; max-width: 100vw; }
body {
  font-family: var(--font-body);
  color: #3D3A36;
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ===== CSS VARIABLES ===== */
:root {
  /* Сайт светлый, но навигация умеет тёмную тему — объявляем обе схемы, чтобы
     браузер (в т.ч. авто-затемнение Chrome на Android) не инвертировал меню
     поверх наших стилей, а использовал наши правила prefers-color-scheme. */
  color-scheme: light dark;
  /* Шрифты — переопределяются из кабинета руководителя (Тексты сайта →
     Типографика, SUPA.texts ключи style.fontHeading/style.fontBody/
     style.fontScale), applyStyleOverrides() в main.js. Полные стеки с
     запасными шрифтами, чтобы страница не «прыгала», пока грузится
     кастомный Google Font. */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --primary: #E30613;
  --primary-dark: #c0000f;
  --gold: #C9A84C;
  --gold-light: rgba(201,168,76,.15);
  --dark: #1A1A1A;
  --body: #3D3A36;
  --muted: #6B6660;
  --bg: #FFFFFF;
  --bg-alt: #F5F2EB;
  --bg-cream: #FBF9F4;
  --bg-3: #ECE7DB;
  --border: rgba(26,26,26,.10);
  --gold-border: rgba(201,168,76,.35);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --container: 1200px;
  --header-h: 72px;
  --transition: 0.25s ease;
}

/* ===== TYPOGRAPHY ===== */
.serif { font-family: var(--font-heading); }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; color: var(--dark); overflow-wrap: break-word; word-wrap: break-word; word-break: break-word; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.02em; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { font-size: 1rem; line-height: 1.7; overflow-wrap: break-word; word-wrap: break-word; }
.lead { font-size: 1.15rem; color: var(--muted); line-height: 1.65; overflow-wrap: break-word; word-wrap: break-word; }
.eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--primary);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--primary); flex-shrink: 0; }

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow { justify-content: center; margin-bottom: 16px; }
.section-header p { max-width: 600px; margin: 16px auto 0; color: var(--muted); }

/* ===== NAVIGATION ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 24px; box-sizing: border-box; max-width: 100%;
}
/* Полный логотип-картинка (ART SPACE + SH) в шапке. Надпись — часть картинки,
   поэтому дублирующий текст рядом скрываем: логотип виден целиком и никогда
   не обрезается. */
.nav-logo {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0; line-height: 1.2;
}
.nav-logo-mark {
  width: auto; height: 46px; display: block; flex-shrink: 0;
}
/* Имя студии — часть картинки логотипа (ART SPACE), поэтому дублирующий текст
   скрываем, а рядом показываем описание «Студия творческого развития». */
.nav-logo .name { display: none; }
.nav-logo .tagline-small {
  display: block; font-size: .78rem; font-weight: 600; color: var(--muted);
  text-transform: none; letter-spacing: 0; max-width: 12em; line-height: 1.25;
}
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  color: var(--body); transition: all var(--transition); white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: rgba(227,6,19,.06); }
.nav-cta {
  padding: 10px 22px !important; background: var(--primary) !important;
  color: #fff !important; border-radius: var(--radius-md) !important;
  font-weight: 700 !important; flex-shrink: 0; white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227,6,19,.3); }
/* "О школе" dropdown — groups secondary links to declutter the header */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 8px 10px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600;
  color: var(--body); background: none; border: none; cursor: pointer; font-family: inherit;
  transition: all var(--transition); white-space: nowrap;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active { color: var(--primary); background: rgba(227,6,19,.06); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 210px; max-height: 70vh;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(0,0,0,.14); padding: 8px; z-index: 120;
  display: none; flex-direction: column; gap: 2px; overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem;
  font-weight: 600; color: var(--body); white-space: nowrap;
}
.nav-dropdown-menu a:hover { color: var(--primary); background: rgba(227,6,19,.06); }
.nav-hamburger {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: var(--bg-alt);
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px; background: var(--dark);
  border-radius: 2px; transition: all .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-nav {
  display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  background: #fff; z-index: 99; padding: 32px 24px;
  flex-direction: column; gap: 8px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { transform: none; }
.mobile-nav a {
  display: block; padding: 14px 20px; border-radius: var(--radius-md);
  font-size: 1.1rem; font-weight: 600; color: var(--dark);
  border: 1px solid var(--border); transition: all var(--transition);
}
.mobile-nav a:hover { border-color: var(--primary); color: var(--primary); }
.mobile-nav .nav-dropdown { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0; }
.mobile-nav .nav-dropdown-toggle,
.editorial .mobile-nav .nav-dropdown-toggle {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 14px 20px; background: none; border: none;
  font-family: inherit; font-size: 1.1rem; font-weight: 600; color: var(--dark); cursor: pointer;
}
.mobile-nav .nav-dropdown-toggle svg {
  transition: transform .3s ease; flex-shrink: 0;
}
.mobile-nav .nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.mobile-nav .nav-dropdown-menu {
  /* override the desktop absolute-positioned menu → inline accordion */
  position: static; top: auto; right: auto; left: auto;
  min-width: 0; width: 100%; box-shadow: none; border: none;
  display: flex; flex-direction: column; gap: 0; padding: 0;
  background: var(--bg-alt); border-radius: 0 0 var(--radius-md) var(--radius-md);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.mobile-nav .nav-dropdown.open .nav-dropdown-menu {
  max-height: 460px; overflow-y: auto;
}
.mobile-nav .nav-dropdown-menu a {
  border: none; border-bottom: 1px solid var(--border); border-radius: 0;
  padding: 12px 20px 12px 40px; font-size: 1rem;
}
.mobile-nav .nav-dropdown-menu a:last-child { border-bottom: none; }
.mobile-nav .nav-dropdown-menu a:hover { background: rgba(227,6,19,.06); }
.mobile-nav .mob-cta {
  background: var(--primary); color: #fff !important; border-color: var(--primary);
  text-align: center; font-size: 1rem; padding: 16px 20px;
  margin-top: 12px; border-radius: var(--radius-md);
}
.page-offset { padding-top: var(--header-h); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius-md); font-size: 1rem; font-weight: 700;
  transition: all var(--transition); white-space: nowrap; cursor: pointer;
  max-width: 100%; box-sizing: border-box;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(227,6,19,.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #b8963e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--bg-alt); transform: translateY(-2px); }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; border-radius: 18px; }
.btn-sm { padding: 10px 20px; font-size: .875rem; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--dark); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 70% 20%, rgba(227,6,19,.45), transparent 55%),
              radial-gradient(50% 50% at 15% 80%, rgba(201,168,76,.25), transparent 55%),
              linear-gradient(150deg, #1a1410, #0e0d0c 60%, #14100e);
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .22; mix-blend-mode: luminosity;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,13,12,.9) 0%, rgba(14,13,12,.5) 50%, rgba(14,13,12,.2) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 120px 0 80px;
  max-width: 700px;
}
.hero h1 { color: #fff; margin: 20px 0 24px; }
.hero .lead { color: rgba(255,255,255,.75); margin-bottom: 40px; max-width: 520px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center;
  gap: 8px; color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{transform:scaleY(1);opacity:.5} 50%{transform:scaleY(1.3);opacity:1} }

/* ===== STATS BAR ===== */
.stats-bar { background: var(--bg-alt); border-bottom: 1px solid var(--gold-border); }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  divide-x: var(--gold-border);
}
.stat-item {
  padding: 32px 24px; text-align: center; border-right: 1px solid var(--gold-border);
}
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800;
  color: var(--dark); line-height: 1;
  display: block;
}
.stat-item .num span { color: var(--primary); }
.stat-item .label { font-size: .8rem; color: var(--muted); margin-top: 4px; letter-spacing: .05em; }

/* ===== DIRECTIONS CARDS ===== */
.directions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dir-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--transition); cursor: pointer;
}
.dir-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-border); }
.dir-card-img {
  height: 220px; background: var(--bg-3); position: relative; overflow: hidden;
}
.dir-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dir-card:hover .dir-card-img img { transform: scale(1.05); }
.dir-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
}
.dir-icon { width: 64px; height: 64px; }
.dir-card-body { padding: 28px; }
.dir-card-body h3 { margin: 0 0 10px; }
.dir-card-body p { font-size: .9rem; color: var(--muted); margin-bottom: 20px; }
.dir-card-meta {
  display: flex; align-items: center; gap: 12px; font-size: .78rem;
  color: var(--muted); flex-wrap: wrap;
}
.dir-card-meta .age-badge {
  background: var(--gold-light); color: var(--gold); border-radius: 6px;
  padding: 3px 8px; font-weight: 700; font-size: .72rem;
}
.dir-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 700; font-size: .875rem;
  margin-top: 16px; transition: gap var(--transition);
}
.dir-link:hover { gap: 10px; }
.dir-link svg { width: 16px; height: 16px; }

/* ===== BENEFITS ===== */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.benefit-card {
  padding: 32px; background: var(--bg-cream); border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg); transition: all var(--transition);
}
.benefit-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-icon {
  width: 56px; height: 56px; border-radius: 14px; background: rgba(227,6,19,.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.benefit-icon svg { width: 28px; height: 28px; color: var(--primary); }
.benefit-card h4 { margin-bottom: 10px; font-size: 1.1rem; }
.benefit-card p { font-size: .875rem; color: var(--muted); }

/* ===== TEACHERS ===== */
.teachers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.teacher-card {
  background: var(--bg-cream); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
  text-align: center;
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold-border); }
.teacher-photo {
  height: 240px; background: var(--bg-3); position: relative; overflow: hidden;
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-photo-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-alt));
}
.teacher-photo-placeholder svg { width: 64px; height: 64px; color: var(--gold); opacity: .5; }
.teacher-card-body { padding: 24px 20px; }
.teacher-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.teacher-spec { color: var(--primary); font-size: .8rem; font-weight: 700; margin-bottom: 8px; letter-spacing: .05em; text-transform: uppercase; }
.teacher-exp { font-size: .8rem; color: var(--muted); }

/* ===== REVIEWS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card {
  background: var(--bg-cream); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition);
  position: relative;
}
.review-card:hover { box-shadow: var(--shadow-md); border-color: var(--gold-border); }
.review-stars { color: var(--gold); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: .925rem; color: var(--body); line-height: 1.7; margin-bottom: 24px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3);
  border: 2px solid var(--gold-border); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--gold);
  flex-shrink: 0; object-fit: cover;
}
.review-author-name { font-weight: 700; font-size: .9rem; color: var(--dark); }
.review-author-role { font-size: .78rem; color: var(--muted); }
.review-video-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700;
  color: var(--primary); margin-bottom: 20px;
}
.review-video-link:hover { text-decoration: underline; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gallery-item {
  border-radius: var(--radius-md); overflow: hidden; position: relative;
  background: var(--bg-3); cursor: pointer;
}
.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-placeholder {
  width: 100%; padding-bottom: 100%; position: relative;
}
.gallery-item-placeholder::after { content: ''; position: absolute; inset: 0; background: var(--bg-3); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(14,13,12,0);
  transition: background .3s ease; display: flex; align-items: center; justify-content: center;
}
.gallery-item:hover .gallery-overlay { background: rgba(14,13,12,.35); }
.gallery-overlay svg { color: #fff; opacity: 0; width: 40px; height: 40px; transition: opacity .3s ease; }
.gallery-item:hover .gallery-overlay svg { opacity: 1; }

/* ===== EVENTS ===== */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event-card {
  background: var(--bg-cream); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold-border); }
.event-img {
  height: 200px; background: var(--bg-3); position: relative; overflow: hidden;
}
.event-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.event-card:hover .event-img img { transform: scale(1.05); }
.event-img-placeholder { width: 100%; height: 100%; }
.event-date-badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--primary); color: #fff; border-radius: 10px;
  padding: 6px 12px; text-align: center; min-width: 54px;
}
.event-date-badge .day { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; line-height: 1; }
.event-date-badge .month { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event-type-badge {
  position: absolute; top: 16px; right: 16px;
  background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: #fff;
  border-radius: 8px; padding: 4px 10px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
}
.event-body { padding: 24px; }
.event-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.event-body p { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.event-meta { display: flex; align-items: center; gap: 16px; font-size: .78rem; color: var(--muted); }
.event-meta span { display: flex; align-items: center; gap: 5px; }
.event-meta svg { width: 14px; height: 14px; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gold-border); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; background: none; border: none; cursor: pointer;
  text-align: left; font-family: var(--font-body); font-size: 1.05rem;
  font-weight: 700; color: var(--dark); transition: color var(--transition);
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.faq-chevron svg { width: 16px; height: 16px; color: var(--gold); transition: transform .35s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-chevron svg { transform: rotate(180deg); }
.faq-item.open .faq-chevron { background: var(--primary); }
.faq-item.open .faq-chevron svg { color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.4,0,.2,1); }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer > div { overflow: hidden; }
.faq-answer p { padding: 0 0 22px; color: var(--body); font-size: .95rem; line-height: 1.75; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1a0e 50%, var(--dark) 100%);
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px;
  border-radius: 50%; background: radial-gradient(circle, rgba(227,6,19,.25), transparent 70%);
}
.cta-banner::after {
  content: ''; position: absolute; bottom: -80px; left: -80px; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.2), transparent 70%);
}
.cta-banner-inner {
  position: relative; z-index: 1; text-align: center; padding: 100px 24px;
}
.cta-banner h2 { color: #fff; margin: 20px 0 16px; }
.cta-banner p { color: rgba(255,255,255,.7); max-width: 480px; margin: 0 auto 40px; }
.cta-banner-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.free-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); border-radius: 999px; padding: 6px 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 20px;
}
.free-badge::before { content: '✓'; font-size: 1rem; }

/* ===== CONTACTS ===== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(227,6,19,.08);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; color: var(--primary); }
.contact-label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-value { font-weight: 600; color: var(--dark); font-size: 1rem; }
.contact-value a:hover { color: var(--primary); }
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.schedule-row { padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; }
.schedule-row .day { font-size: .78rem; color: var(--muted); font-weight: 600; }
.schedule-row .time { font-weight: 700; font-size: .95rem; color: var(--dark); }
.map-container {
  border-radius: var(--radius-lg); overflow: hidden; height: 420px;
  border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: none; }
.map-placeholder {
  width: 100%; height: 100%; background: var(--bg-3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted);
}
.map-placeholder svg { width: 48px; height: 48px; color: var(--gold); }

/* ===== SOCIAL LINKS ===== */
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; border: 1px solid var(--border); transition: all var(--transition);
  background: var(--bg-alt);
}
.social-link svg { width: 20px; height: 20px; }
/* Всегда цветные бренд-иконки (белый значок на фирменном фоне) — хорошо видны
   на тёмном футере. */
.social-link { color: #fff; border-color: transparent; }
.social-link.wa { background: #25D366; }
.social-link.tg { background: #229ED9; }
.social-link.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== FORMS ===== */
.form-card {
  background: var(--bg-cream); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .85rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 14px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: 1rem; color: var(--dark);
  background: #fff; transition: border-color var(--transition);
  appearance: none; -webkit-appearance: none;
}
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.form-control.error { border-color: var(--primary); }
.form-error { font-size: .8rem; color: var(--primary); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form-chip {
  padding: 9px 16px; border: 1.5px solid var(--border); border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--muted); background: var(--bg-alt);
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.form-chip.selected { background: var(--primary); color: #fff; border-color: var(--primary); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.form-success {
  display: none; text-align: center; padding: 32px;
}
.form-success.show { display: block; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(43,168,74,.1);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.success-icon svg { width: 36px; height: 36px; color: #2BA84A; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff; border-radius: var(--radius-xl); max-width: 520px; width: 100%;
  max-height: 90vh; overflow-y: auto; padding: 40px;
  transform: translateY(24px) scale(.96); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: none; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.modal-header h3 { font-size: 1.6rem; }
.modal-close {
  width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 4px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--primary); color: #fff; }
.modal-close svg { width: 18px; height: 18px; }

/* ===== DIRECTION PAGE ===== */
.dir-hero {
  min-height: 70vh; display: flex; align-items: flex-end;
  position: relative; overflow: hidden; background: var(--dark);
}
.dir-hero-content { position: relative; z-index: 2; padding: 80px 0 64px; }
.dir-hero h1 { color: #fff; margin: 16px 0 20px; }
.dir-hero .lead { color: rgba(255,255,255,.75); max-width: 560px; margin-bottom: 36px; }
.dir-hero-bg {
  position: absolute; inset: 0;
}
.dir-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: .3; mix-blend-mode: luminosity; }
.dir-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,13,12,.92) 0%, rgba(14,13,12,.55) 40%, rgba(14,13,12,.2) 100%);
}

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.skill-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; background: var(--bg-cream); border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
}
.skill-bullet {
  width: 28px; height: 28px; border-radius: 50%; background: rgba(227,6,19,.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.skill-bullet svg { width: 14px; height: 14px; color: var(--primary); }
.skill-item p { font-size: .875rem; color: var(--body); font-weight: 600; }

.age-groups { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.age-group {
  padding: 12px 22px; border-radius: var(--radius-md); border: 1.5px solid var(--gold-border);
  background: var(--gold-light); text-align: center;
}
.age-group .range { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.age-group .desc { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ===== COURSES PAGE ===== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--bg-cream); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition);
}
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--gold-border); }
.course-img { height: 200px; background: var(--bg-3); position: relative; overflow: hidden; }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.course-card:hover .course-img img { transform: scale(1.05); }
.course-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: #fff; border-radius: 8px;
  padding: 4px 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.course-body { padding: 24px; }
.course-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.course-body p { font-size: .875rem; color: var(--muted); margin-bottom: 20px; }
.course-price {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px;
}
.course-price .amount { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; color: var(--dark); }
.course-price .period { font-size: .8rem; color: var(--muted); }
.course-meta { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); margin-bottom: 20px; }
.course-meta span { display: flex; align-items: center; gap: 5px; }
.course-meta svg { width: 13px; height: 13px; }

/* ===== PAGE HERO (simple) ===== */
.page-hero {
  background: var(--dark); padding: 120px 0 80px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px; width: 600px; height: 600px;
  border-radius: 50%; background: radial-gradient(circle, rgba(227,6,19,.2), transparent 70%);
}
.page-hero::after {
  content: ''; position: absolute; bottom: -80px; left: 50%; width: 400px; height: 400px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.15), transparent 70%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 16px 0 20px; }
.page-hero .lead { color: rgba(255,255,255,.7); max-width: 560px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.breadcrumb a:hover { color: rgba(255,255,255,.9); }
.breadcrumb svg { width: 12px; height: 12px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand .name {
  font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800;
  color: #fff; margin-bottom: 12px;
}
.footer-brand p { font-size: .875rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; }
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: #fff; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.in-view { opacity: 1; transform: none; }
.fade-up:nth-child(1) { transition-delay: .05s; }
.fade-up:nth-child(2) { transition-delay: .12s; }
.fade-up:nth-child(3) { transition-delay: .19s; }
.fade-up:nth-child(4) { transition-delay: .26s; }
.fade-up:nth-child(5) { transition-delay: .33s; }
.fade-up:nth-child(6) { transition-delay: .40s; }

/* ===== DIVIDERS ===== */
.divider { height: 1px; background: var(--border); margin: 48px 0; }
.divider-gold { height: 1px; background: var(--gold-border); }

/* ===== TAGS / BADGES ===== */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(227,6,19,.08); color: var(--primary);
}
.tag-gold { background: rgba(201,168,76,.12); color: #a07828; }
.tag-green { background: rgba(43,168,74,.1); color: #1e8a3c; }

/* ===== PRICING TABLE ===== */
.price-ribbon {
  border: 1px solid var(--gold-border); border-radius: var(--radius-lg);
  padding: 32px; background: var(--bg-cream); position: relative;
}
.price-ribbon::before, .price-ribbon::after {
  content: ''; position: absolute; top: 50%; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg); transform: translateY(-50%);
}
.price-ribbon::before { left: -8px; }
.price-ribbon::after { right: -8px; }
.price-free { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.price-amount { font-family: var(--font-heading); font-size: 3rem; font-weight: 800; color: var(--dark); margin: 8px 0 4px; }
.price-sub { font-size: .875rem; color: var(--muted); }
.price-rows { margin-top: 24px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--gold-border); font-size: .925rem;
}
.price-row:last-child { border-bottom: none; }
.price-row .label { color: var(--muted); }
.price-row .value { font-weight: 700; font-family: var(--font-heading); color: var(--dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav-inner { gap: 16px; }
  .nav-logo .tagline-small { display: block; }
  .nav-links a { padding: 6px 10px; font-size: .8rem; }
  .nav-links > a:nth-child(4), .nav-links > a:nth-child(5), .nav-links > a:nth-child(7) { display: none; }
  .nav-cta { padding: 8px 18px !important; font-size: .9rem; }
  .nav-dropdown-menu { max-width: 90vw; right: auto; left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .directions-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .map-container { height: 320px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .nav-inner { gap: 10px; padding: 0 16px; }
  /* Logo shrinks & truncates instead of disappearing */
  .nav-logo { display: flex; flex: 1 1 auto; min-width: 0; margin-right: auto; }
  .nav-logo .name { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-logo .tagline-small { display: block; font-size: .72rem; }
  /* Keep the nav bar visible but collapse it to ONLY the CTA button —
     the other links live in the hamburger menu. This keeps "Записаться"
     always on screen (it sits inside .nav-links in the markup). */
  .nav-links { display: flex; flex: 0 0 auto; gap: 6px; max-width: none; overflow: visible; }
  .nav-links > a:not(.nav-cta), .nav-links > .nav-dropdown { display: none; }
  .nav-links > .nav-cta { display: inline-flex; }
  .nav-cta { padding: 8px 16px !important; font-size: .85rem; box-shadow: 0 2px 8px rgba(227,6,19,.4) !important; flex-shrink: 0; }
  .nav-hamburger { display: flex; flex-shrink: 0; }
  .mobile-nav { display: flex; }
  .directions-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
  /* Mobile: фото кадрируется под портретную рамку (заполняет её целиком),
     смещение к верхней части — лицо остаётся в кадре. */
  .teacher-photo { height: auto; aspect-ratio: 3 / 4; }
  .teacher-photo img { object-fit: cover; object-position: center 22%; }
  .reviews-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .courses-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 28px 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; white-space: normal; }
  .hero-btns .btn-lg { padding: 16px 20px; font-size: 1rem; white-space: normal; }
  .mobile-nav { overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .cta-banner-btns { flex-direction: column; align-items: stretch; gap: 12px; }
  /* Обе кнопки баннера — одинаковой высоты, в одну строку, единый шрифт и
     отступы, содержимое строго по центру. Селектор с .editorial, чтобы
     перебить .editorial .btn{white-space:normal} из editorial.css. */
  .editorial .cta-banner-btns .btn,
  .cta-banner-btns .btn {
    width: 100%; min-height: 58px; padding: 0 22px;
    font-size: 1rem; white-space: nowrap; gap: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow-wrap: normal; word-wrap: normal;
  }
  /* Декоративный кружок-стрелка ломает высоту и переносит текст — убираем его
     в баннере на мобильном, чтобы кнопки были идентичны. */
  .editorial .cta-banner-btns .btn .ic { display: none; }
  .cta-banner-btns .btn svg { flex-shrink: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
  .dir-hero { min-height: 55vh; }
  .page-hero { padding: 100px 0 60px; }
  .schedule-grid { grid-template-columns: 1fr; }
  h1, h2, h3, h4 { max-width: 100%; }
  .btn { white-space: normal; overflow-wrap: break-word; word-wrap: break-word; }
}
@media (max-width: 480px) {
  .nav-inner { gap: 8px; padding: 0 12px; }
  .nav-logo { display: flex; flex: 1 1 auto; min-width: 0; margin-right: auto; }
  .nav-logo .name { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-logo .tagline-small { display: block; font-size: .68rem; }
  .nav-logo-mark { height: 40px; width: auto; }
  .nav-cta { padding: 6px 11px !important; font-size: .76rem; flex-shrink: 0; white-space: nowrap; }
  .nav-hamburger { width: 40px; height: 40px; }
  .teachers-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .stat-item .num { font-size: 2rem; }
  h1 { font-size: 2rem; }
  .btn-lg { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== HERO TRUST BAR (conversion v1.1) ===== */
.hero-trust { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.75); margin-top: 16px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 4px; }

/* ===== PRICING ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.pricing-card { border: 1px solid var(--border); border-radius: 16px; padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.pricing-card--featured { background: var(--primary); color: #fff; border-color: var(--primary); }
.pricing-tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.pricing-card--featured .pricing-tag { color: rgba(255,255,255,.7); }
.pricing-price { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700; color: var(--dark); }
.pricing-card--featured .pricing-price { color: #fff; }
.pricing-desc { font-size: .92rem; color: var(--muted); line-height: 1.6; flex: 1; }
.pricing-card--featured .pricing-desc { color: rgba(255,255,255,.85); }
.pricing-card .btn { margin-top: auto; }

/* ===== ТЁМНАЯ ТЕМА ДЛЯ НАВИГАЦИИ =====
   Сайт светлый, но когда телефон/компьютер в тёмной теме, шапка-меню и
   «гамбургер» подстраиваются: тёмный фон и светлые полоски/текст/границы,
   чтобы всё оставалось читаемым (раньше тёмные полоски сливались с
   авто-затемнённым фоном Chrome). */
@media (prefers-color-scheme: dark) {
  /* Полоски «гамбургера» — светлые и на тёмной подложке */
  .nav-hamburger { background: rgba(255,255,255,.14); }
  .nav-hamburger span { background: #f5efe6; }

  /* Плавающая шапка-пилюля. Префикс body — чтобы перебить светлые правила
     .editorial .nav-inner из editorial.css (равная специфичность, грузится
     позже). */
  body.editorial .nav-inner {
    background: rgba(28,22,18,.9);
    border-color: rgba(255,255,255,.14);
  }
  body.editorial .nav-logo .name { color: #f7f2ea; }
  body.editorial .nav-logo .tagline-small { color: rgba(247,242,234,.72); }
  body.editorial .nav-links a,
  body.editorial .nav-dropdown-toggle { color: rgba(247,242,234,.82); }
  body.editorial .nav-links a:hover { color: #fff; }
  .nav-logo-mark { box-shadow: none; }

  /* Выпадающее мобильное меню */
  .mobile-nav { background: #17120f; }
  .mobile-nav a,
  .mobile-nav .nav-dropdown-toggle,
  .editorial .mobile-nav .nav-dropdown-toggle { color: #f5efe6; }
  .mobile-nav a,
  .mobile-nav .nav-dropdown { border-color: rgba(255,255,255,.16); }
  .mobile-nav a:hover { border-color: var(--primary); color: var(--primary); }
  .mobile-nav .nav-dropdown-menu { background: rgba(255,255,255,.05); }
  .mobile-nav .nav-dropdown-menu a { border-bottom-color: rgba(255,255,255,.12); color: #f5efe6; }
  .mobile-nav .nav-dropdown-menu a:hover { background: rgba(227,6,19,.14); }
}

/* Ряды парных кнопок (герой/секции направлений используют инлайн
   display:flex;gap:12px;flex-wrap:wrap) на узких экранах ставим в столбец и
   растягиваем на всю ширину — чтобы кнопки были одинакового размера, а не
   каждая по своей ширине. */
@media (max-width: 560px) {
  [style*="gap:12px;flex-wrap:wrap"] { flex-direction: column; align-items: stretch; }
  [style*="gap:12px;flex-wrap:wrap"] .btn { width: 100%; }
}
