/*
Theme Name: Cadence
Theme URI:
Description: Беговой клуб Cadence — групповые и индивидуальные тренировки по бегу.
Author:
Version: 1.0
*/

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body { overflow-x: clip; }

/* UFC palette — красно-чёрная схема */
:root {
  --bg: #0b0b0d;
  --surface: #16161a;
  --text: #f5f5f5;
  --muted: #9aa0a6;
  --accent: #e10600;
  --accent-hover: #ff1a14;
  --accent-active: #b80500;
  --radius: 25px;
  --radius-sm: 15px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-surface: 0 2px 12px rgba(0, 0, 0, 0.3);
  --border: 1px solid rgba(225, 6, 0, 0.4);
  --focus-outline: 2px solid var(--accent);
  --heading-spacing: 0.08em;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
/* Читаемость: длинные слова и адреса переносятся */
p, td, th, li {
  overflow-wrap: break-word;
  word-break: break-word;
}
.schedule-table-wrap { max-width: 100%; }
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--text);
}
.skip-link:focus {
  left: 0;
  outline: var(--focus-outline);
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus для клавиатуры */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  width: 100%;
}

/* Buttons — красный акцент */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--heading-spacing);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow-surface);
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.btn-primary:active,
.btn-primary.is-active {
  background: var(--accent-active);
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.6);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: var(--border);
  box-shadow: var(--shadow-surface);
}
.btn-secondary:hover {
  background: #1e1e24;
  text-decoration: none;
}
.btn-secondary:active { opacity: 0.9; }
.btn-cta {
  background: var(--accent);
  color: var(--text);
  border: 2px solid var(--text);
  border-radius: var(--radius);
}
.btn-cta:hover { background: var(--accent-hover); text-decoration: none; }
.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 30px; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: var(--border);
}
.btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover { text-decoration: none; }

/* Header — UFC / Spartan: тёмный, жирный, интерактивный */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  height: 72px;
  background: #0b0b0d;
  border-bottom: 1px solid rgba(225, 6, 0, 0.25);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.2s, background 0.2s;
}
.header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
main,
.main-inner-page {
  padding-top: 72px;
}

/* Юридические страницы: читаемость текста */
.legal-prose {
  max-width: 72ch;
  margin-top: 1rem;
}
.legal-prose p {
  margin: 0 0 1em;
  line-height: 1.6;
}
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose h2 {
  margin: 1.75em 0 0.5em;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.legal-prose h2:first-of-type { margin-top: 0; }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
}
.legal-prose a:hover { color: var(--accent-hover); }
.legal-updated {
  font-size: 0.9em;
  color: var(--muted);
  margin-bottom: 1.25em;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav.nav-left {
  margin-left: auto;
}
/* Контакты в шапке: веб и мобильная — одинаковый блок иконок */
.header-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  flex-shrink: 0;
}
.header-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.header-contact-icon:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.header-contact-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-contact-icon svg {
  width: 22px;
  height: 22px;
}
/* Кнопка бургера (мобильная) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 102;
  transition: color 0.2s, opacity 0.2s;
}
.nav-burger:hover {
  color: var(--accent);
  opacity: 0.9;
}
.nav-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-burger .nav-burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-burger .nav-burger-line:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-burger .nav-burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Кнопка закрытия меню (мобильная) */
.nav-close {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s, opacity 0.2s;
}
.nav-close:hover {
  color: var(--accent);
  opacity: 0.9;
}
.nav-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Контакты внутри мобильного меню */
.nav-contacts {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (max-width: 430px) {
  .header-contact-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
  }
  .header-contact-icon svg {
    width: 20px;
    height: 20px;
  }
}
/* Бренд-блок: лого в бейдже + подпись */
.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.header-brand:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}
.header-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.header-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 6px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}
.header-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
}
.header-brandtext {
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
}
.nav a,
.nav button {
  display: inline-block;
  padding: 10px 16px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 6px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav a:hover {
  color: var(--accent);
  text-decoration: none;
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav a:focus-visible,
.nav button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-cta {
  margin-left: 8px;
  padding: 10px 20px !important;
  background: var(--accent);
  color: #fff !important;
  border: 2px solid var(--accent);
  border-radius: 6px;
}
.nav-cta::after {
  display: none;
}
.nav-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff !important;
  text-decoration: none;
}
.nav-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 8px 0;
  background: #0b0b0d;
  border: 1px solid rgba(225, 6, 0, 0.3);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown li { margin: 0; }
.dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  color: var(--text);
}
.dropdown a:hover { background: rgba(225, 6, 0, 0.15); text-decoration: none; }

/* Мобильная навигация: бургер + выезжающая панель */
@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }
  .header-contacts {
    display: none;
  }
  .nav.nav-left {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 100vw);
    margin: 0;
    padding: 56px 24px 24px;
    background: #0b0b0d;
    border-left: 1px solid rgba(225, 6, 0, 0.25);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
    flex: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s;
    z-index: 101;
  }
  body.nav-open .nav.nav-left {
    transform: translateX(0);
    visibility: visible;
  }
  .nav.nav-left .nav-close,
  .nav.nav-left .nav-contacts {
    display: block !important;
  }
  .nav.nav-left .nav-contacts {
    display: flex !important;
  }
  .nav.nav-left ul {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
  }
  .nav.nav-left li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav.nav-left a,
  .nav.nav-left .nav-cta {
    display: block;
    padding: 14px 0 !important;
    margin: 0 !important;
    font-size: 14px;
    white-space: normal;
    background: none !important;
    border: none !important;
    border-radius: 0;
  }
  .nav.nav-left a:hover,
  .nav.nav-left .nav-cta:hover {
    color: var(--accent) !important;
    background: none !important;
  }
  .nav.nav-left a::after {
    display: none;
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
  }
  body.nav-open .nav-overlay {
    display: block;
  }
}
@media (min-width: 769px) {
  .nav-burger { display: none !important; }
  .nav-close,
  .nav-contacts { display: none !important; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .header-brandtext { display: none; }
}

/* Hero — баннер на главной, выше по высоте, CTA на уровне груди/диафрагмы */
.hero {
  position: relative;
  min-height: clamp(420px, 60vh, 620px);
  height: clamp(620px, 78vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 3vw, 40px) clamp(16px, 4vw, 24px) clamp(56px, 8vw, 80px);
  overflow: hidden;
}
@media (max-width: 1024px) {
  .hero {
    min-height: clamp(380px, 52vh, 520px);
    height: clamp(480px, 65vh, 620px);
  }
}
@media (max-width: 768px) {
  .hero {
    min-height: clamp(340px, 48vh, 440px);
    height: clamp(380px, 55vh, 520px);
  }
}
@media (max-width: 480px) {
  .hero {
    min-height: clamp(300px, 42vh, 380px);
    height: clamp(320px, 48vh, 420px);
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-color: #0b0b0d;
  border-radius: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, rgba(5, 5, 6, 0.85) 0%, rgba(11, 11, 13, 0.6) 50%, rgba(11, 11, 13, 0.4) 100%);
  pointer-events: none;
}
/* Красная плашка: опущена ниже (~40–50px на десктопе) */
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 0;
  height: 8vw;
  min-height: 40px;
  background: var(--accent);
  clip-path: polygon(0 100%, 0 0, 100% 0, 100% 100%);
  transform: translateY(48px);
}
@media (max-width: 1024px) {
  .hero-wave { transform: translateY(36px); }
}
@media (max-width: 768px) {
  .hero-wave { transform: translateY(28px); }
}
@media (max-width: 480px) {
  .hero-wave { transform: translateY(18px); }
}
/* Контент hero: заголовок и CTA подтянуты вверх, плотнее к шапке */
.hero__wrap {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 40px);
  padding: 0 clamp(16px, 4vw, 24px);
}
@media (max-width: 1024px) {
  .hero__wrap { top: 54%; }
}
@media (max-width: 768px) {
  .hero__wrap { top: 52%; }
}
@media (max-width: 480px) {
  .hero__wrap { top: 50%; }
}

/* CTA-блок в стиле Tilda t183: заголовок + две pill-кнопки */
.cta-block {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 40px);
  text-align: center;
}
.cta-title {
  margin: 0;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px clamp(20px, 4vw, 32px);
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(12px, 1.8vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  line-height: 1.25;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
  width: 100%;
  max-width: 420px;
}
@media (min-width: 768px) {
  .cta-btn { width: auto; min-width: 200px; }
}
.cta-btn--primary {
  color: var(--text);
  background: var(--accent);
  border: 2px solid var(--accent);
}
.cta-btn--primary:hover {
  background: #fff;
  color: var(--bg);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.cta-btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
}
.cta-btn--secondary {
  color: var(--bg);
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
}
.cta-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--bg);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
  text-decoration: none;
}
.cta-btn--secondary:active {
  transform: translateY(1px);
}
.cta-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}
@media (max-width: 768px) {
  .cta-block { gap: 24px; }
  .cta-buttons { width: 100%; }
  .cta-btn { width: 100%; max-width: none; min-height: 52px; }
}
@media (max-width: 480px) {
  .cta-title { font-size: clamp(22px, 6vw, 28px); }
  .cta-btn { min-height: 52px; padding: 12px 18px; font-size: 12px; }
}

/* Hero — кнопка «Результаты учеников» */
.cta-buttons .hero-results-btn {
  flex-basis: 100%;
}
.hero-results-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 60px;
  margin-top: 2px;
  padding: 18px clamp(28px, 5vw, 48px);
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  line-height: 1.2;
  color: var(--text);
  background: var(--bg);
  border: 3px solid var(--accent);
  border-radius: 50px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.4), inset 0 0 0 0 var(--accent);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, color 0.25s ease;
  cursor: pointer;
  animation: hero-results-btn-in 0.6s ease-out 0.2s both;
}
.hero-results-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.5), 0 0 40px rgba(225, 6, 0, 0.25);
  text-decoration: none;
  transform: translateY(-2px);
}
.hero-results-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.4);
}
.hero-results-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}
@media (min-width: 768px) {
  .hero-results-btn { width: auto; min-width: 320px; margin-top: 4px; }
}
@media (max-width: 768px) {
  .hero-results-btn { width: 100%; max-width: none; margin-top: 2px; min-height: 56px; }
}
@media (max-width: 480px) {
  .hero-results-btn { min-height: 52px; padding: 14px 20px; font-size: 14px; margin-top: 2px; }
}
@keyframes hero-results-btn-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero CTA — одна кнопка в стиле Tilda (pill, тень), цвета UFC/Spartan */
.hero-cta-wrap {
  width: 100%;
  max-width: 560px;
  display: flex;
  justify-content: center;
}
.hero-cta,
.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 14px clamp(20px, 3vw, 40px);
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(11px, 2vw, 15px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(225, 6, 0, 0.15);
  transition: background-color 0.18s ease-in-out, border-color 0.18s ease-in-out, color 0.18s ease-in-out, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.hero-cta:hover,
.hero-cta-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(225, 6, 0, 0.2);
}
.hero-cta:active,
.hero-cta-btn:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
  color: var(--text);
  transform: translateY(2px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.hero-cta:focus-visible,
.hero-cta-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 3px;
}
@media (min-width: 1024px) {
  .hero-cta,
  .hero-cta-btn { min-height: 56px; padding: 16px clamp(28px, 4vw, 48px); font-size: clamp(14px, 1.2vw, 15px); }
}
@media (max-width: 768px) {
  .hero-cta-wrap { max-width: 520px; }
  .hero-cta,
  .hero-cta-btn { min-height: 52px; padding: 12px 16px; font-size: clamp(11px, 2.2vw, 13px); }
}
@media (max-width: 480px) {
  .hero-cta-wrap { max-width: 100%; }
  .hero-cta,
  .hero-cta-btn { min-height: 52px; padding: 12px 14px; font-size: clamp(10px, 2.5vw, 12px); letter-spacing: 0.03em; }
}
.hero-visual {
  min-height: 200px;
  display: none;
}
@media (min-width: 1024px) {
  .hero-visual { display: block; min-height: 280px; }
}
.hero-arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text);
  animation: hero-bounce 2s infinite;
  transition: color 0.2s;
}
.hero-arrow:hover { color: var(--accent); text-decoration: none; }
.hero-arrow svg { width: 38px; height: 19px; display: block; }
@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-arrow { animation: none; }
}

/* Wave */
.wave {
  width: 100%;
  max-width: 100%;
  height: calc(8vw - 1px);
  min-height: 30px;
  overflow: hidden;
  box-sizing: border-box;
}
.wave-yellow { background: var(--accent); }
.wave-bottom { margin-top: -1px; }

/* Section — единый бренд: Oswald, красная линия */
.section {
  padding: clamp(36px, 5vw, 56px) clamp(16px, 4vw, 24px);
  background: var(--bg);
}
.section-title {
  margin: 0 0 12px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.07em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  text-transform: uppercase;
  color: var(--text);
}
.section-title::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin: 14px auto 0;
  background: var(--accent);
}
.section-desc {
  max-width: min(560px, 100%);
  margin: 0 auto clamp(32px, 5vw, 56px);
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  text-align: center;
}

/* Страница «Инструменты» — динамичный дизайн: анимированный hero + карточки с движением */
.page-instrumenty { padding: 0; overflow: hidden; }

/* Hero: анимированный градиент + диагональная полоса */
.instrumenty-hero {
  position: relative;
  padding: clamp(56px, 10vw, 96px) clamp(16px, 4vw, 24px);
  overflow: hidden;
}
.instrumenty-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0b0b0d 0%, #16161a 40%, rgba(225, 6, 0, 0.12) 70%, #0b0b0d 100%);
  background-size: 200% 200%;
  animation: instrumenty-hero-gradient 8s ease-in-out infinite;
}
@keyframes instrumenty-hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.instrumenty-hero-stripe {
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-hover), var(--accent), transparent);
  background-size: 200% 100%;
  animation: instrumenty-stripe 3s linear infinite;
  transform: skewY(-1deg);
}
@keyframes instrumenty-stripe {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}
.instrumenty-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.instrumenty-hero-label {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  animation: instrumenty-fade-up 0.6s ease-out both;
}
.instrumenty-hero-title {
  margin: 0 0 14px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--text);
  text-shadow: 0 0 40px rgba(225, 6, 0, 0.15);
  animation: instrumenty-fade-up 0.6s ease-out 0.1s both;
}
.instrumenty-hero-desc {
  margin: 0;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  line-height: 1.55;
  animation: instrumenty-fade-up 0.6s ease-out 0.2s both;
}
@keyframes instrumenty-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Карточки: появление по очереди + динамичный hover */
.instrumenty-tools.section { padding-top: clamp(40px, 6vw, 56px); }
.instrumenty-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.instrumenty-tool {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  color: inherit;
  overflow: hidden;
  transform: translateX(0);
  transition: transform 0.25s ease, border-color 0.25s, background 0.25s, box-shadow 0.25s;
  animation: instrumenty-card-in 0.5s ease-out both;
}
.instrumenty-tool:hover,
.instrumenty-tool:focus {
  text-decoration: none !important;
}
.instrumenty-tool:nth-child(1) { animation-delay: 0.15s; }
.instrumenty-tool:nth-child(2) { animation-delay: 0.25s; }
.instrumenty-tool:nth-child(3) { animation-delay: 0.35s; }
.instrumenty-tool:nth-child(4) { animation-delay: 0.45s; }
@keyframes instrumenty-card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.instrumenty-tool::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  opacity: 0;
  transition: opacity 0.25s;
}
.instrumenty-tool:hover {
  transform: translateX(6px);
  border-left-color: var(--accent-hover);
  background: rgba(225, 6, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(225, 6, 0, 0.15);
}
.instrumenty-tool:hover::before {
  opacity: 1;
}
.instrumenty-tool-num {
  flex-shrink: 0;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(225, 6, 0, 0.45);
  line-height: 1;
  transition: color 0.25s, transform 0.25s;
}
.instrumenty-tool:hover .instrumenty-tool-num {
  color: var(--accent);
  transform: scale(1.05);
}
.instrumenty-tool-body {
  flex: 1;
  min-width: 0;
}
.instrumenty-tool-title {
  margin: 0 0 6px;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.instrumenty-tool:hover .instrumenty-tool-title {
  color: #fff;
}
.instrumenty-tool-desc {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}
.instrumenty-tool-action {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  transition: transform 0.2s, color 0.2s;
  text-decoration: none;
  border-bottom: none;
}
.instrumenty-tool:hover .instrumenty-tool-action {
  color: var(--accent-hover);
  transform: translateX(4px);
}
.instrumenty-tool-arrow {
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.9;
  transition: transform 0.3s ease;
}
.instrumenty-tool:hover .instrumenty-tool-arrow {
  transform: translateX(8px);
  animation: instrumenty-arrow-pulse 0.6s ease;
}
@keyframes instrumenty-arrow-pulse {
  0%, 100% { transform: translateX(8px); }
  50% { transform: translateX(14px); }
}

@media (max-width: 600px) {
  .instrumenty-tool {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px 20px;
  }
  .instrumenty-tool:hover { transform: translateX(2px); }
  .instrumenty-tool-num { font-size: 1.35rem; }
  .instrumenty-tool-arrow { width: 100%; text-align: right; }
  .instrumenty-tool:hover .instrumenty-tool-arrow { animation: none; }
}

/* Результаты учеников: горизонтальный шаблон строки на мобильных */
.page-template-page-results-php .results-page-section {
  padding-bottom: clamp(36px, 8vw, 52px);
}
.page-template-page-results-php .results-page-title {
  margin: 0 0 18px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.page-template-page-results-php .results-page-content {
  width: 100%;
  max-width: 100%;
}
.page-template-page-results-php .results-page-content > * {
  max-width: 100%;
}
.page-template-page-results-php .results-page-content .wp-block-table,
.page-template-page-results-php .results-page-content table,
.page-template-page-results-php .results-page-content iframe,
.page-template-page-results-php .results-page-content .table-wrapper {
  width: 100%;
  max-width: 100%;
}
.page-template-page-results-php .results-page-content .wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-template-page-results-php .results-page-content table {
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.page-template-page-results-php .results-page-content iframe {
  min-height: 220px;
  display: block;
}
@media (max-width: 768px) {
  .page-template-page-results-php .results-page-content {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-template-page-results-php .results-page-content .wp-block-table,
  .page-template-page-results-php .results-page-content table,
  .page-template-page-results-php .results-page-content .wp-block-table table {
    min-width: 700px;
    width: max-content;
    display: table;
    table-layout: auto;
    border-collapse: collapse;
    margin: 0;
  }
  .page-template-page-results-php .results-page-content thead {
    display: none;
  }
  .page-template-page-results-php .results-page-content tr {
    display: table-row;
    width: auto;
  }
  .page-template-page-results-php .results-page-content td {
    display: table-cell;
    white-space: nowrap;
    padding: 10px 12px 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    vertical-align: top;
  }
  .page-template-page-results-php .results-page-content td:last-child {
    padding-right: 12px;
  }
  .page-template-page-results-php .results-page-content td::before {
    content: none !important;
  }
}

/* Cards row */
.cards-row { display: grid; gap: 20px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1024px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cards-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  min-height: 295px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  color: var(--text);
  border: var(--border);
  box-shadow: var(--shadow-surface);
}
.card:hover { text-decoration: none; }
.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s;
}
.card:hover .card-bg { transform: scale(1.05); }
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 13, 0.7), rgba(11, 11, 13, 0.4));
}
.card-content {
  position: relative;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-content h3 { margin: 0 0 8px; font-size: 18px; text-transform: uppercase; letter-spacing: var(--heading-spacing); }
.card-content p { margin: 0 0 12px; font-size: clamp(14px, 1.5vw, 16px); font-weight: 500; line-height: 1.5; opacity: 1; }
.card-content .btn { background: var(--accent); color: var(--text); }

/* Форматы тренировок — визуальные карточки (UFC / Spartan) */
.formats-visual {
  background: #050506;
  color: var(--text);
  font-weight: 600;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.formats-visual-title {
  margin: 0 0 clamp(22px, 4vw, 30px);
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(24px, 3.5vw, 30px);
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: center;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.formats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
}
@media (max-width: 1024px) {
  .formats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .formats-grid { grid-template-columns: 1fr; gap: 16px; }
}

.format-card {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(225, 6, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.format-card:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.format-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.format-card:hover .format-card-bg {
  transform: scale(1.05);
}
.format-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 6, 0.45), rgba(5, 5, 6, 0.82));
}
.format-card-content {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.format-card-title {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.3;
}
.format-card-desc {
  margin: 0 0 14px;
  font-size: clamp(14px, 1.3vw, 15px);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}
.format-card-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 20px;
  font-size: clamp(13px, 1.2vw, 14px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.format-card-btn:hover {
  text-decoration: none;
}
.format-card-btn-secondary {
  border-color: rgba(225, 6, 0, 0.6);
  color: #fff;
}
.format-card-btn-secondary:hover {
  background: rgba(225, 6, 0, 0.15);
  border-color: var(--accent);
  color: #fff;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-surface);
  border-bottom: 3px solid var(--accent);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.service-img {
  padding-bottom: 66.67%;
  background-size: cover;
  background-position: center;
}
.service-card h3 {
  margin: 16px 16px 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: var(--heading-spacing);
}
.service-card p {
  margin: 0 16px 12px;
  font-size: 14px;
  color: var(--muted);
}
.service-card .btn { margin: 0 16px 16px; }

/* Цены — типографика как в бургер-меню, крупнее и чётче */
.section.prices {
  padding-top: clamp(24px, 4vw, 36px);
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.section.prices .section-title {
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: 0.065em;
}
.section.prices .section-desc {
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.065em;
  font-size: clamp(14px, 1.35vw, 16px);
}
/* Уровень 1: выбор тренера (Максим • Даша | Виталий) */
.prices-trainer-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.prices-trainer-tab {
  min-height: 44px;
  padding: 12px 20px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.prices-trainer-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}
.prices-trainer-tab.active {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
}
.prices-group {
  display: none;
}
.prices-group.active {
  display: block;
}
.prices-group[hidden] {
  display: none !important;
}
.prices-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}
.prices-tab {
  min-height: 44px;
  padding: 12px 20px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--muted);
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.prices-tab:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.3);
}
.prices-tab.active {
  color: var(--text);
  background: var(--accent);
  border-color: var(--accent);
}
.prices-panels {
  position: relative;
  min-height: 180px;
}
.prices-panel {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}
.prices-panel.active {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.prices-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 40px 24px;
  text-align: center;
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow-surface);
  max-width: 360px;
  margin: 0 auto;
}
.prices-amount {
  margin: 0 0 8px;
  font-size: clamp(38px, 6.5vw, 54px);
  font-weight: 800;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--accent);
}
.prices-caption {
  margin: 0;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--muted);
}
.prices-note {
  margin: 24px auto 0;
  max-width: 480px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 700;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
/* Вкладка «Виталий»: один информ-панель + кнопка Telegram */
.prices-vit-panel {
  min-height: 180px;
  text-align: center;
  padding: 24px 16px;
}
.prices-vit-text {
  margin: 0 auto 20px;
  max-width: 420px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 700;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  letter-spacing: 0.065em;
  color: var(--text);
  line-height: 1.5;
}
.prices-tg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 800;
  letter-spacing: 0.065em;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.prices-tg-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.prices-tg-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Карта — секция после цен */
.section.map-section {
  padding-top: clamp(24px, 4vw, 36px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.map-address {
  margin: 0 0 20px;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.map-address-icon {
  font-size: 1.2em;
}
.map-wrap {
  width: 100%;
  max-width: 100%;
  height: 460px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(225, 6, 0, 0.3);
  background: var(--surface);
  box-sizing: border-box;
}
.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.map-route-btn {
  display: inline-flex;
  margin-top: 20px;
  min-height: 48px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.map-route-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
}
.map-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .map-wrap {
    height: 320px;
  }
  .map-route-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Divider */
.divider { height: 1px; background: rgba(225, 6, 0, 0.3); }
.bg-gray { background-color: var(--surface); }

/* Schedule — designer typography */
.schedule {
  background: var(--bg);
  font-family: 'Manrope', -apple-system, sans-serif;
}
.schedule .section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-bottom: 0.5em;
}
.schedule .section-desc {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 2rem;
}
.schedule .section-desc strong { color: var(--text); }

/* Schedule block — UFC / Spartan Race vibe (dark, bold, sport font) */
.schedule {
  background: #050506;
  color: var(--text);
  font-family: 'Oswald', 'Bebas Neue', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.schedule .container {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.schedule-title {
  font-family: 'Oswald', 'Bebas Neue', Impact, Arial Narrow, sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 34px);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.schedule-accordion {
  margin-top: 0.5rem;
}
.schedule-day {
  background: #0c0c0e;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid rgba(225, 6, 0, 0.35);
  overflow: hidden;
}
.schedule-day-summary {
  min-height: 44px;
  padding: 14px clamp(16px, 4vw, 20px);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid transparent;
  box-sizing: border-box;
}
.schedule-day-summary::-webkit-details-marker { display: none; }
.schedule-day-summary::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  margin-left: 10px;
}
.schedule-day[open] .schedule-day-summary {
  border-bottom-color: rgba(225, 6, 0, 0.25);
}
.schedule-day[open] .schedule-day-summary::after {
  transform: rotate(-180deg);
}
.schedule-day-summary:hover {
  background: rgba(225, 6, 0, 0.1);
}
.schedule-day-summary:focus {
  outline: none;
}
.schedule-day-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.schedule-day-body {
  padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px);
  border-top: none;
}
.schedule-table-wrap {
  overflow-x: auto;
  margin-top: 0;
  border-radius: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
}
.schedule-table-wrap::-webkit-scrollbar {
  height: 8px;
}
.schedule-table-wrap::-webkit-scrollbar-track {
  background: #0c0c0e;
  border-radius: 4px;
}
.schedule-table-wrap::-webkit-scrollbar-thumb {
  background: rgba(225, 6, 0, 0.45);
  border-radius: 4px;
}
.schedule-table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(225, 6, 0, 0.6);
}
.schedule-table {
  width: 100%;
  min-width: 720px;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: clamp(15px, 1.5vw, 16px);
  font-weight: 500;
  line-height: 1.5;
  background: #0c0c0e;
  color: #f5f5f5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.schedule-table th,
.schedule-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #f5f5f5;
}
.schedule-table thead th {
  background: rgba(225, 6, 0, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: 1.4;
}
.schedule-table tbody tr:last-child td {
  border-bottom: none;
}
.schedule-table tbody tr:hover {
  background: rgba(225, 6, 0, 0.06);
}
.schedule-table td .map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(225, 6, 0, 0.5);
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.schedule-table td .map-link:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text);
  text-decoration: none;
}
.schedule-table td .map-link:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
}
.schedule-table td .map-link:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}
/* Колонка «На карте»: фиксированная ширина, заголовок строго над кнопками */
.schedule-table th:last-child,
.schedule-table td:last-child {
  min-width: 160px;
  width: 160px;
  padding-left: 16px;
  padding-right: 16px;
  text-align: center;
  vertical-align: middle;
  box-sizing: border-box;
}
.schedule-table td[data-label="На карте"] {
  text-align: center;
  vertical-align: middle;
}
.schedule-table td:last-child .map-link {
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .schedule-table { min-width: 680px; }
  .schedule-table th:last-child,
  .schedule-table td:last-child { min-width: 150px; width: 150px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 768px) {
  .schedule-table-wrap {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .schedule-table {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
  }
  .schedule-table thead {
    display: none;
  }
  .schedule-table tbody {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .schedule-table tbody tr {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 12px;
    padding: 16px 18px;
    background: #0a0a0c;
    border-radius: 6px;
    border: 1px solid rgba(225, 6, 0, 0.2);
    box-sizing: border-box;
  }
  .schedule-table tbody tr:last-child {
    margin-bottom: 0;
  }
  .schedule-table td {
    display: grid;
    grid-template-columns: minmax(110px, 40%) minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 0;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 16px;
    line-height: 1.45;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .schedule-table td:first-child {
    padding-top: 0;
  }
  .schedule-table td:last-child {
    border-bottom: none;
    padding-left: 0;
    padding-right: 0;
  }
  .schedule-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    white-space: nowrap;
  }
  .schedule-table td[data-label="На карте"] {
    text-align: left;
    vertical-align: middle;
    align-items: center;
  }
  .schedule-table td[data-label="На карте"]::before {
    content: "Карта";
    white-space: nowrap;
  }
  .schedule-table td:last-child .map-link {
    margin: 0;
    padding: 8px 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    min-width: fit-content;
    max-width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    white-space: nowrap;
    justify-self: start;
    align-self: center;
    position: static;
    transform: none;
    float: none;
  }
}
@media (max-width: 480px) {
  .schedule-title { font-size: clamp(26px, 6vw, 30px); }
  .schedule-day-summary { font-size: 18px; padding: 14px 16px; }
  .schedule-day-body { padding: 12px 16px; }
  .schedule-table td { font-size: 15px; }
  .schedule-table td::before { font-size: 13px; }
}

/* Блок адресов под таблицей: 2 колонки «Адрес» | «На карте», одна строка на адрес */
.schedule-address-block {
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
  padding: 0;
  font-size: 14px;
}
.schedule-address-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 0 0 6px;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.schedule-address-col-map {
  min-width: 0;
  text-align: right;
}
.schedule-address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.schedule-address-row:last-child {
  border-bottom: none;
}
.schedule-address-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
}
.schedule-location-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(225, 6, 0, 0.4);
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.schedule-location-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--text);
  text-decoration: none;
}
.schedule-location-btn:active {
  background: var(--accent-active);
  border-color: var(--accent-active);
}
.schedule-location-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .schedule-address-block { font-size: 13px; }
  .schedule-address-text { font-size: 13px; }
  .schedule-address-row { gap: 8px; padding: 5px 0; min-height: 36px; }
  .schedule-location-btn { min-height: 32px; padding: 5px 12px; font-size: 11px; }
}

/* Schedule CTA — компактный призыв под расписанием */
.schedule-cta {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.schedule-cta-btn {
  min-height: 46px;
  padding: 12px 24px;
  font-size: clamp(15px, 1.5vw, 16px);
  font-weight: 700;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(225, 6, 0, 0.25);
}
.schedule-cta-btn:hover {
  box-shadow: 0 2px 12px rgba(225, 6, 0, 0.35);
}
.schedule-cta-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.schedule-cta-secondary {
  min-height: 44px;
  padding: 10px 20px;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(225, 6, 0, 0.5);
  width: 100%;
  max-width: 200px;
  border-radius: 6px;
}
.schedule-cta-secondary:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(225, 6, 0, 0.08);
}
.schedule-cta-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .schedule-cta {
    flex-direction: column;
    margin-top: 16px;
    gap: 10px;
  }
  .schedule-cta-btn {
    max-width: none;
    width: 100%;
  }
  .schedule-cta-secondary {
    max-width: none;
    width: 100%;
  }
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1024px) { .schedule-grid { grid-template-columns: 1fr; } }

.schedule-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-surface);
  border-top: 3px solid var(--accent);
}

.schedule-header {
  padding: 14px 20px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.schedule-body {
  padding: 24px 22px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  font-weight: 500;
}

.schedule-time {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.schedule-time-inner { display: block; }
.schedule-card .schedule-body > .schedule-time:last-of-type { margin-bottom: 0; }

.schedule-days {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 3px;
  margin-bottom: 6px;
}
.schedule-loc-line {
  margin: 10px 0 14px;
  padding-left: 14px;
  border-left: 3px solid rgba(225, 6, 0, 0.45);
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}
.schedule-loc-mark {
  color: var(--accent);
  font-weight: 700;
  margin-right: 6px;
}
.schedule-loc-mark::before {
  content: "▪";
  color: var(--accent);
  font-size: 0.7em;
  margin-right: 6px;
  vertical-align: 0.05em;
}
.schedule-loc,
.schedule-loc-wrap .schedule-loc {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  display: inline-block;
  margin-top: 6px;
}
.schedule-body p strong { font-weight: 700; }
.schedule-time-slot { display: block; margin-top: 4px; font-weight: 500; color: var(--muted); font-size: 0.875rem; }
.schedule-location { margin-bottom: 12px; }
.schedule-extra {
  margin-top: 18px;
  padding: 14px 16px;
  background: rgba(225, 6, 0, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 500;
}
.schedule-body a {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
}
.schedule-body a:hover { text-decoration: underline; }

/* Trainer block */
.schedule-trainer-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.schedule-card-with-photo .schedule-card-photo {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.schedule-card-with-photo .schedule-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.schedule-card-with-photo .schedule-card-photo-face img {
  object-position: center 25%;
  object-fit: cover;
}
.schedule-card-with-photo .schedule-trainer-block .trainer {
  margin: 0;
  padding-top: 0;
  border-top: none;
}
.schedule-card .trainer .trainer-name,
.schedule-trainer-block .trainer-name,
.schedule-trainer-block .trainer .trainer-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.schedule-card .trainer a.trainer-name,
.schedule-trainer-block .trainer a.trainer-name {
  color: var(--accent);
}
.schedule-card .trainer a.trainer-name:hover,
.schedule-trainer-block .trainer a.trainer-name:hover {
  text-decoration: underline;
}

.trainer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9375rem;
}
.schedule .trainer a { color: var(--accent); }
.schedule .trainer a:hover { text-decoration: underline; }

/* Секция сразу после другой — компактный отступ сверху */
.section + .section {
  padding-top: clamp(24px, 4vw, 40px);
}

/* Trainers — заголовок, бейдж, описание (спортивный бренд) */
.trainers { background: var(--bg); padding-bottom: 0; }
.section-badge.trainers-badge {
  display: block;
  margin: 0 auto 8px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: var(--accent);
  line-height: 1.3;
}
.section.trainers .section-title {
  font-family: 'Oswald', 'Bebas Neue', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 800;
  letter-spacing: 0.07em;
}
.section.trainers .section-desc {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 500;
  line-height: 1.58;
  margin-bottom: clamp(28px, 4vw, 48px);
}
@media (max-width: 480px) {
  .section-badge.trainers-badge { font-size: 10px; letter-spacing: 0.1em; margin-bottom: 6px; }
  .section.trainers .section-title { font-size: clamp(20px, 5vw, 24px); }
  .section.trainers .section-desc { font-size: 14px; }
}

/* Trainers — слайдер и карточки */
.trainers-slider-wrap {
  position: relative;
  margin-top: clamp(20px, 3vw, 28px);
}
.trainers-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.trainers-slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.trainers-slider-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.trainers-slider-prev { left: -12px; }
.trainers-slider-next { right: -12px; }
@media (min-width: 769px) {
  .trainers-slider-arrow { display: none; }
}
.trainers-slider {
  overflow: hidden;
  margin: 0 24px;
}
.trainers-slider-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 28px);
}
@media (max-width: 1024px) {
  .trainers-slider-track { grid-template-columns: repeat(2, 1fr); }
  .trainers-slider-prev { left: 4px; }
  .trainers-slider-next { right: 4px; }
  .trainers-slider { margin: 0 36px; }
}
@media (max-width: 768px) {
  .trainers-slider-track {
    grid-template-columns: 1fr;
    gap: 20px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .trainers-slider-track::-webkit-scrollbar { display: none; }
  .trainers-slider { margin: 0 48px; overflow: visible; }
  .trainer-card {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
  }
}
@media (max-width: 480px) {
  .trainers-slider-track { gap: 16px; }
}
.trainer-card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
}
@media (min-width: 769px) {
  .trainer-card--expandable:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 6px 16px rgba(0, 0, 0, 0.25);
  }
}
.trainer-card-details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease;
}
.trainer-card.is-expanded .trainer-card-details {
  max-height: 1200px;
  opacity: 1;
}
.trainer-card-photo {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #1a1a1c;
}
.trainer-card-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.trainer-card-body {
  padding: clamp(16px, 2.5vw, 22px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1;
}
.trainer-card-name {
  margin: 0;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(26px, 2.8vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.15;
}
.trainer-card-subtitle {
  margin: 0 0 4px;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.35;
}
.trainer-card-subtitle--lead {
  margin-bottom: 6px;
}
.trainer-card-subtitle-accent {
  display: inline-block;
  font-weight: 700;
  font-size: clamp(13px, 1.15vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.35;
}
/* Блок биографии в карточке тренера */
.trainer-card-details {
  padding-top: 4px;
}
.trainer-card-bio {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.25vw, 15px);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.trainer-card-bio:last-of-type {
  margin-bottom: 0;
}
.trainer-card-bio:first-of-type {
  padding-left: 10px;
  border-left: 2px solid rgba(225, 6, 0, 0.4);
  margin-bottom: 14px;
}
.trainer-card-records {
  margin-top: 16px;
  padding: 14px 12px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}
.trainer-card-records-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.3;
}
.trainer-card-records-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trainer-card-records-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.trainer-card-records-list li:last-child {
  border-bottom: none;
}
.trainer-records-dist {
  flex-shrink: 0;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.trainer-records-time {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Рекорды учеников — та же стилистика, три колонки: имя, дистанция, результат */
.trainer-card-students-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: baseline;
}
.trainer-records-name {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.trainer-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 20px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1c;
  background: #f5c518;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.35);
}
.trainer-card-btn:hover {
  background: #ffd43b;
  color: #1a1a1c;
  text-decoration: none;
  transform: scale(1.02);
}
.trainer-card-btn:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}
button.trainer-card-btn {
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Кнопка «Больше» в карточках Даши и Максима — красная, как «Подробнее» */
.trainer-card-body > a.trainer-card-btn {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(225, 6, 0, 0.4);
}
.trainer-card-body > a.trainer-card-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  border-color: var(--accent-hover);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 6px 20px rgba(225, 6, 0, 0.5);
  transform: translateY(-1px) scale(1.02);
}
.trainer-card-body > a.trainer-card-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Кнопка «Подробнее» / «Свернуть» — красная, овальная (та же форма, что и «Больше») */
.trainer-card-toggle {
  cursor: pointer;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(225, 6, 0, 0.4) !important;
}
.trainer-card-toggle:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  border-color: var(--accent-hover);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 6px 20px rgba(225, 6, 0, 0.5) !important;
  transform: translateY(-1px) scale(1.02);
}
.trainer-card-toggle:active {
  transform: translateY(0) scale(0.98);
}
.trainer-card-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
/* Кнопка «Свернуть» — тот же красный акцент, овальная форма */
.trainer-card.is-expanded .trainer-card-toggle {
  background: var(--accent) !important;
  color: #fff !important;
  border: 2px solid var(--accent);
  border-radius: 50px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2), 0 4px 12px rgba(225, 6, 0, 0.4) !important;
}
.trainer-card.is-expanded .trainer-card-toggle:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
  border-color: var(--accent-hover);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 6px 20px rgba(225, 6, 0, 0.5) !important;
  transform: translateY(-1px) scale(1.02);
}
.trainer-card.is-expanded .trainer-card-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Store */
.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.store-tab {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--heading-spacing);
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.store-tab:hover, .store-tab.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
.store-tab.is-active {
  color: var(--accent-hover);
  text-shadow: 0 0 8px rgba(225, 6, 0, 0.5);
}
.store-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .store-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-surface);
  border-bottom: 3px solid var(--accent);
}
.product-img {
  padding-bottom: 77%;
  background-size: cover;
  background-position: center;
}
.product-info { padding: 16px; }
.product-info h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.05em; }
.product-info p { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.price { font-weight: 600; margin-bottom: 12px !important; color: var(--accent); }
.product-info .btn { margin-top: 0; }

/* Footer — компактный, иерархия типографики, без перегруза */
.footer {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  border-top: 1px solid rgba(225, 6, 0, 0.2);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.footer__wrap {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 3vw, 32px) clamp(16px, 4vw, 24px);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(18px, 2.5vw, 24px);
  align-items: start;
}
.footer-col {
  min-width: 0;
}
/* Заголовки колонок — верхний уровень иерархии */
.footer-heading {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  line-height: 1.3;
}
/* Основной текст — компактно, читабельно */
.footer-text {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
}
.footer-text:last-child,
.footer-entity { margin-bottom: 0; }
.footer-placeholder { color: var(--muted); }
/* Юр. ссылки — отдельная строка каждая, без лишнего отступа */
.footer-links-legal {
  margin-top: 6px;
}
.footer-links-legal a {
  display: block;
  margin-bottom: 2px;
}
.footer-links-legal a:last-child { margin-bottom: 0; }
.footer-col a {
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 4px; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}
/* Копирайт — самый спокойный уровень */
.footer-copy {
  margin: 0;
  padding-top: clamp(14px, 2vw, 20px);
  border-top: 1px solid rgba(225, 6, 0, 0.15);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.02em;
}
.footer-copy-desktop { display: none; }
.footer-heading-icon { margin-right: 4px; }

/* Desktop: слева — юр.инфо, центр — контакты, справа — навигация */
.footer-legal { text-align: left; }
.footer-contact { text-align: center; }
.footer-nav { text-align: right; }
.footer-nav .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Desktop-only: премиальный футер */
@media (min-width: 1024px) {
  .footer {
    border-top-width: 2px;
    border-top-color: rgba(225, 6, 0, 0.35);
  }
  .footer__wrap {
    padding: clamp(36px, 4vw, 48px) clamp(24px, 4vw, 32px);
  }
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 0.8fr;
    gap: 40px;
    margin-bottom: 36px;
    align-items: start;
  }
  .footer-heading {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(225, 6, 0, 0.4);
  }
  .footer-heading-icon { margin-right: 6px; }
  .footer-text {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 10px;
    color: rgba(245, 245, 245, 0.85);
  }
  .footer-links-legal { margin-top: 12px; }
  .footer-links-legal a {
    margin-bottom: 6px;
    line-height: 1.6;
  }
  .footer-col a {
    font-size: 14px;
    line-height: 1.6;
  }
  .footer-col a:hover {
    color: var(--accent);
    text-decoration: underline;
  }
  .footer-links li { margin-bottom: 10px; }
  .footer-links a { font-size: 14px; line-height: 1.6; }
  .footer-copy-mobile { display: none; }
  .footer-copy-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
    font-size: 13px;
  }
  .footer-copy-left,
  .footer-copy-right {
    color: var(--muted);
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .footer-legal { grid-column: 1; grid-row: 1; text-align: left; }
  .footer-contact { grid-column: 2; grid-row: 1; text-align: center; }
  .footer-nav { grid-column: 2; grid-row: 2; text-align: right; }
  .footer-nav .footer-links { align-items: flex-end; }
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  .footer-legal,
  .footer-contact,
  .footer-nav {
    grid-column: auto;
    grid-row: auto;
    text-align: center;
  }
  .footer-nav .footer-links {
    align-items: center;
  }
  .footer-heading { margin-bottom: 8px; }
}
@media (max-width: 480px) {
  .footer__wrap { padding: 18px 16px; }
  .footer-grid { gap: 18px; margin-bottom: 18px; }
  .footer-text,
  .footer-col a,
  .footer-links a { font-size: 12px; }
  .footer-copy { font-size: 11px; padding-top: 14px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  max-width: min(400px, calc(100vw - 32px));
  margin: 0 auto;
  box-sizing: border-box;
  padding: 20px;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  z-index: 1000;
  display: none;
  color: var(--text);
}
.cookie-banner.show { display: block; }
.cookie-banner p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.cookie-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* Floating contact */
.float-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99;
}
.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-surface);
}
.float-btn:hover { background: var(--accent-hover); }
.float-btn:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}
.float-links {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
}
.float-contact.open .float-links { display: flex; }
.float-links a {
  padding: 8px 12px;
  background: var(--surface);
  border: var(--border);
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  color: var(--text);
}
.float-links a:hover { background: var(--accent); text-decoration: none; }
.float-links a:focus-visible {
  outline: var(--focus-outline);
  outline-offset: 2px;
}

/* ========== Блог ========== */
.main-blog { padding-top: 100px; }
.blog-section { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
.blog-page-title {
  margin: 0 0 24px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  text-align: center;
}
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(225, 6, 0, 0.3);
}
.blog-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-cat-list a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.blog-cat-list a:hover,
.blog-cat-list a.active {
  color: var(--text);
  background: rgba(225, 6, 0, 0.15);
  border-color: rgba(225, 6, 0, 0.5);
  text-decoration: none;
}
.blog-search-form {
  display: flex;
  align-items: center;
  max-width: 260px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
}
.blog-search-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}
.blog-search-input::placeholder { color: var(--muted); }
.blog-search-btn {
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.blog-search-btn:hover { color: var(--accent); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 20px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .blog-search-form { max-width: none; }
}
.blog-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(225, 6, 0, 0.25);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover {
  border-color: rgba(225, 6, 0, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.blog-card-link:hover { text-decoration: none; color: inherit; }
.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0a0a0c;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }
.blog-card-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(225, 6, 0, 0.5);
}
.blog-card-body { padding: 20px; }
.blog-card-category {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(225, 6, 0, 0.15);
  border-radius: 4px;
}
.blog-card-title {
  margin: 0 0 10px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: var(--text);
}
.blog-card-excerpt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-card-meta-sep { opacity: 0.6; margin: 0 4px; }
.blog-card-read {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s;
}
.blog-card:hover .blog-card-read { color: var(--accent-hover); }
.blog-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
}
.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.blog-pagination a:hover {
  background: rgba(225, 6, 0, 0.2);
  border-color: rgba(225, 6, 0, 0.5);
  text-decoration: none;
}
.blog-pagination .current {
  background: var(--accent);
  border-color: var(--accent);
}
.blog-pagination .prev,
.blog-pagination .next { min-width: auto; }
.blog-no-posts {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  padding: 48px 16px;
}

/* ========== Single post: light article container on dark site ========== */
body.cadence-single-post .main-single {
  background: #0b0b0d;
  padding-top: 100px;
  padding-bottom: 64px;
}
body.cadence-single-post .single-post {
  max-width: 820px;
  margin: 0 auto;
  background: #fafafa;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
body.cadence-single-post .single-header {
  padding: 52px clamp(32px, 5vw, 48px) 36px;
  background: #fafafa;
}
body.cadence-single-post .breadcrumbs,
body.cadence-single-post .breadcrumbs a {
  color: #666;
}
body.cadence-single-post .breadcrumbs a:hover {
  color: var(--accent);
}
body.cadence-single-post .breadcrumbs-current {
  color: #111;
}
body.cadence-single-post .single-title {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 800;
  color: #111;
  margin: 20px 0 16px;
}
body.cadence-single-post .single-meta {
  font-size: 15px;
  color: #666;
}
body.cadence-single-post .single-meta a {
  color: var(--accent);
}
body.cadence-single-post .single-meta a:hover {
  color: var(--accent-hover);
}
body.cadence-single-post .single-featured {
  background: #f0f0f0;
  overflow: hidden;
}
body.cadence-single-post .single-featured img {
  display: block;
  margin: 0;
  border-radius: 0;
}
body.cadence-single-post .single-content-wrap {
  padding: 48px clamp(32px, 5vw, 48px) 56px;
  background: #fafafa;
}
body.cadence-single-post .single-content-wrap .container {
  max-width: 100%;
  padding: 0;
}
body.cadence-single-post .single-content.entry-content {
  max-width: 100%;
  margin: 0 0 48px;
  font-size: 19px;
  line-height: 1.7;
  color: #222;
}
body.cadence-single-post .single-content.entry-content p {
  margin: 0 0 1.4em;
}
body.cadence-single-post .single-content.entry-content h2 {
  margin: 2em 0 0.7em;
  font-size: 1.4em;
  font-weight: 800;
  color: #111;
}
body.cadence-single-post .single-content.entry-content h2:first-child {
  margin-top: 0;
}
body.cadence-single-post .single-content.entry-content h3 {
  margin: 1.6em 0 0.5em;
  font-size: 1.2em;
  font-weight: 700;
  color: #111;
}
body.cadence-single-post .single-content.entry-content ul,
body.cadence-single-post .single-content.entry-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}
body.cadence-single-post .single-content.entry-content blockquote {
  margin: 1.8em 0;
  padding: 1.2em 1.6em;
  border-left: 4px solid var(--accent);
  background: rgba(225, 6, 0, 0.06);
  color: #333;
}
body.cadence-single-post .single-content.entry-content img {
  margin: 1.8em 0;
  border-radius: 6px;
}
body.cadence-single-post .single-footer-actions {
  margin-bottom: 48px;
}
body.cadence-single-post .related-posts {
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.cadence-single-post .related-title {
  color: #111;
}
body.cadence-single-post .single-share {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
body.cadence-single-post .single-share-label {
  color: #666;
}
body.cadence-single-post .single-share-btn {
  color: #333;
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.08);
}
body.cadence-single-post .single-share-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
body.cadence-single-post .btn-outline {
  border-color: #333;
  color: #111;
}
body.cadence-single-post .btn-outline:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Related cards: light styling (inside white article container) */
body.cadence-single-post .related-posts .blog-card {
  background: #f8f8f8;
  border-color: rgba(0, 0, 0, 0.08);
}
body.cadence-single-post .related-posts .blog-card:hover {
  border-color: rgba(225, 6, 0, 0.3);
}
body.cadence-single-post .related-posts .blog-card-link {
  color: #111;
}
body.cadence-single-post .related-posts .blog-card-title {
  color: #111;
}
body.cadence-single-post .related-posts .blog-card-excerpt {
  color: #555;
}
body.cadence-single-post .related-posts .blog-card-meta {
  color: #666;
}
body.cadence-single-post .related-posts .blog-card-category {
  color: #fff;
  background: var(--accent);
}

/* Single post (base) */
.main-single { padding-top: 100px; }
.single-header { padding: clamp(32px, 5vw, 48px) 0 24px; }
.breadcrumbs {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); text-decoration: underline; }
.breadcrumbs-sep { margin: 0 8px; opacity: 0.7; }
.breadcrumbs-current {
  color: var(--text);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
  vertical-align: bottom;
}
@media (min-width: 769px) {
  .breadcrumbs-current { max-width: 400px; }
}
.single-title {
  margin: 0 0 16px;
  font-family: 'Oswald', 'Bebas Neue', system-ui, sans-serif;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text);
}
.single-meta {
  font-size: 14px;
  color: var(--muted);
}
.single-meta-sep { margin: 0 6px; opacity: 0.6; }
.single-meta a { color: var(--accent); text-decoration: none; }
.single-meta a:hover { text-decoration: underline; }
.single-featured {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  background: #0a0a0c;
}
.single-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.single-content-wrap { padding: 32px 0 48px; }
.single-content.entry-content {
  max-width: 720px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
}
.single-content.entry-content p { margin: 0 0 1.2em; }
.single-content.entry-content h2 {
  margin: 1.6em 0 0.6em;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--text);
}
.single-content.entry-content h2:first-child { margin-top: 0; }
.single-content.entry-content h3 {
  margin: 1.4em 0 0.5em;
  font-size: 1.15em;
  font-weight: 700;
  color: var(--text);
}
.single-content.entry-content ul,
.single-content.entry-content ol {
  margin: 0 0 1.2em;
  padding-left: 1.5em;
}
.single-content.entry-content ul { list-style: disc; }
.single-content.entry-content ol { list-style: decimal; }
.single-content.entry-content li { margin-bottom: 0.4em; }
.single-content.entry-content blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  border-left: 4px solid var(--accent);
  background: rgba(225, 6, 0, 0.08);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted);
}
.single-content.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single-content.entry-content a:hover { color: var(--accent-hover); }
.single-content.entry-content img { margin: 1em 0; border-radius: 8px; }
.single-footer-actions { margin-bottom: 48px; text-align: center; }
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(225, 6, 0, 0.2); }
.related-title {
  margin: 0 0 24px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .related-grid { grid-template-columns: 1fr; } }
.single-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.single-share-label { font-size: 14px; color: var(--muted); }
.single-share-btn {
  display: inline-flex;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.single-share-btn:hover {
  background: rgba(225, 6, 0, 0.2);
  border-color: rgba(225, 6, 0, 0.5);
  text-decoration: none;
  color: var(--text);
}

