:root {
  --bg: #0e0f12;
  --bg-2: #131418;
  --card: #16181d;
  --card-hover: #1c1f25;
  --acc: #ff2640;
  --acc-soft: rgba(255, 38, 64, 0.10);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.65);
  --muted-2: rgba(255, 255, 255, 0.45);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 20px;
  --radius-sm: 12px;
  /* Header height tokens — drawer + drawer offsets depend on these. */
  --header-h: 88px;
  /* Fluid spacing tokens — scale smoothly between mobile and desktop */
  --space-section: clamp(40px, 6vw, 80px);
  --space-container: clamp(16px, 4vw, 32px);
  --space-card: clamp(20px, 3vw, 32px);
  --space-card-sm: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x: clip prevents horizontal scroll without breaking position:sticky descendants. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .heading {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--space-container);
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .pin {
  flex-shrink: 0;
  color: var(--acc);
  display: inline-block;
}
a.eyebrow {
  transition: color 0.15s;
  cursor: pointer;
}
a.eyebrow:hover { color: var(--text); }
a.eyebrow:hover .pin { color: var(--acc); }

/* HEADER */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo-img {
  display: block;
  height: 64px;
  width: auto;
}
.logo-mark {
  width: 14px;
  height: 14px;
  background: var(--acc);
  border-radius: 3px;
}
.logo-sub {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-switch {
  display: flex;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lang-switch span,
.lang-switch a { padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.lang-switch .active,
.lang-switch .current-lang { background: var(--card); color: var(--text); }
.lang-switch .inactive,
.lang-switch a { color: var(--muted-2); }
.lang-switch a:hover { color: var(--text); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.nav-phone .icon { color: var(--muted); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.15s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  /* `top` is set inline by JS to match current header.bottom in the viewport, so the
     drawer opens directly under whatever header position is right now — no layout flip,
     no jank when UBD strip is visible vs. scrolled past. */
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 99;
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease-out, visibility 0s linear 0.25s;
}
.nav-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease-out, visibility 0s linear 0s;
}

/* When menu is open: nothing on body — locking scroll via overflow:hidden breaks
   position:sticky on the header. Drawer + header are both fixed/sticky and overlay
   the page; if the user scrolls behind they only shift content inside the page area,
   while header sticks to top:0 and burger-cross stays visible. */
.nav-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 32px;
}
.nav-drawer-links a {
  display: block;
  padding: 18px 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.nav-drawer-bottom {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.nav-drawer-phone {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-drawer .lang-switch { align-self: flex-start; font-size: 14px; }
.nav-drawer .lang-switch span,
.nav-drawer .lang-switch a { padding: 10px 16px; min-width: 44px; text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-pill-acc {
  background: var(--acc);
  color: white;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  min-height: 44px;
}
.btn-pill-acc:hover { background: #e91f37; transform: translateY(-1px); }

.btn-pill-light {
  background: white;
  color: #0e0f12;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}
.btn-pill-light:hover { background: #f0f0f0; transform: translateY(-1px); }

.btn-pill-outline {
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
}
.btn-pill-outline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

/* HERO — fixed proportions so photo crops, not stretches */
.hero {
  padding: 24px 0 40px;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  height: 480px;
}
.hero-text {
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}
.hero-eyebrow { margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(28px, 6.5vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text);
  max-width: 620px;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--acc); }
.hero-sub {
  font-size: clamp(16px, 1.6vw, 17px);
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.55;
  font-weight: 500;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--card) 0%, transparent 12%);
  pointer-events: none;
}

/* STATS ROW under hero, 4 horizontal columns */
.stats-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
}
.stat-value {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-value.accent { color: var(--acc); }
.stat-value .small {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
  font-weight: 600;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.stat-note {
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* SECTIONS */
section { padding: var(--space-section) 0; }
section.bordered { border-top: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.today-date {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.section-head h2 {
  font-size: clamp(22px, 2vw, 30px);
  max-width: 900px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head .link {
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}
.section-head .link:hover { color: var(--text); }

/* TODAY */
.today-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-row {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 2vw, 22px) clamp(20px, 2.6vw, 28px);
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
}
.today-time {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.today-name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.today-room { font-size: 13px; color: var(--muted); font-weight: 500; }
.today-pill {
  background: transparent;
  color: var(--text);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--acc);
  transition: background 0.15s, color 0.15s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.today-pill:hover { background: var(--acc); color: #fff; }

/* PROGRAMS */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.program-card {
  --card-pad: var(--space-card);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
}
.program-photo {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 24px;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.program-num {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.program-card h3 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  min-height: 2.2em;
}
.program-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.program-desc {
  font-size: 15px;
  color: var(--muted);
  flex-grow: 1;
  font-weight: 500;
}

/* BAR FEATURE */
.bar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 480px;
  border-radius: var(--radius);
  overflow: hidden;
}
.bar-photo {
  height: 100%;
  overflow: hidden;
  position: relative;
}
.bar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}
.bar-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: none;
  color: #fff;
  padding: 40px clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.bar-content h2 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--text);
}
.bar-content p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
  max-width: 480px;
}

/* SCHEDULE TABLE */
.schedule-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.schedule-table th {
  text-align: left;
  padding: 18px 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.schedule-table th:first-child { width: 80px; padding-left: 28px; }
.schedule-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
}
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table td:first-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.02em;
  padding-left: 28px;
}
.schedule-table td.has-class {
  color: var(--text);
  font-weight: 700;
}
.schedule-table .today-col { background: rgba(255, 38, 64, 0.04); }
.schedule-note {
  padding: 16px 28px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-weight: 500;
}

/* SCHEDULE MOBILE TABS */
.schedule-mobile { display: none; }
.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.schedule-tab {
  padding: 12px 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}
.schedule-tab:hover { color: var(--text); }
.schedule-tab.active {
  background: var(--acc);
  border-color: var(--acc);
  color: #fff;
}
.schedule-panels { }
.schedule-panel { display: none; }
.schedule-panel.active { display: block; }
.schedule-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.schedule-item:last-child { border-bottom: none; }
.schedule-item .time {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.schedule-item .name {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.schedule-empty {
  padding: 32px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* TARIFFS */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tariff {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-card-sm);
  position: relative;
}
.tariff.featured {
  border-color: var(--acc);
  background: linear-gradient(180deg, var(--acc-soft) 0%, var(--card) 70%);
}
.tariff-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: var(--acc);
  border-radius: 4px;
}
.tariff-name {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 800;
}
.tariff-price {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
  line-height: 1;
}
.tariff-price .currency {
  font-size: 18px;
  color: var(--muted);
  margin-left: 4px;
  font-weight: 700;
}
.tariff-period {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.tariff-note {
  font-size: 12px;
  color: var(--muted-2);
  padding-top: 14px;
  border-top: 1px solid var(--line);
  min-height: 28px;
  font-weight: 500;
}
.tariff.featured .tariff-note { color: rgba(255,255,255,0.85); }

.ubd-strip {
  background: rgba(255, 38, 64, 0.16);
  border-bottom: 1px solid rgba(255, 38, 64, 0.4);
  padding: 9px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.ubd-strip strong { color: var(--text); font-weight: 700; }
.ubd-strip .accent { color: var(--acc); font-weight: 700; }
@media (max-width: 540px) {
  .ubd-strip { font-size: 13px; padding: 11px 12px; }
  .ubd-strip-extra { display: none; }
  .social-icon { width: 44px; height: 44px; }
  .nav-actions .btn-pill-acc { padding: 10px 18px; font-size: 13px; min-height: 40px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .contacts-actions { flex-direction: column; gap: 10px; }
  .contacts-actions .btn { width: 100%; }
  .today-pill { justify-self: stretch; width: 100%; justify-content: center; }
}

/* SMALL MOBILE — <380px (iPhone SE etc.) */
@media (max-width: 380px) {
  .stat-value { font-size: 30px; }
  .stat-card { min-height: 88px; padding: 16px 18px; }
  .tariff-price { font-size: 32px; }
  .bar-content { padding: 40px 24px; }
  .bar-content h2 { font-size: 38px; }
  .schedule-tab { font-size: 12px; padding: 10px 4px; }
  .schedule-tabs { gap: 4px; padding: 12px; }
  .schedule-item { padding: 14px 16px; gap: 10px; grid-template-columns: 64px 1fr; }
  .schedule-item .time { font-size: 20px; }
  .price-card { padding: 16px 18px; }
  .price-card-name { font-size: 15px; }
  .price-rows .value { font-size: 15px; }
  .ubd-strip { font-size: 11px; padding: 7px 12px; }
}

/* GROUP PRICES TABLE */
.group-prices-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.group-prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.group-prices-table th {
  text-align: left;
  padding: 18px 24px;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.group-prices-table th:not(:first-child) { text-align: center; }
.group-prices-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.group-prices-table tr:last-child td { border-bottom: none; }
.group-prices-table td:first-child {
  font-weight: 700;
}
.group-prices-table td:not(:first-child) {
  text-align: center;
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

/* GROUP PRICES MOBILE CARDS */
.group-prices-mobile { display: none; padding: 12px; }
.price-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 8px;
}
.price-card:last-child { margin-bottom: 0; }
.price-card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.price-rows {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 10px;
  column-gap: 16px;
  font-size: 14px;
  align-items: baseline;
}
.price-rows .label {
  color: var(--muted);
  font-weight: 500;
}
.price-rows .value {
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  font-size: 16px;
}

/* CONTACTS */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}
.contacts-info {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 40px);
}
.contacts-info dl { margin-bottom: 28px; }
.contacts-info dt {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  margin-top: 24px;
  font-weight: 700;
}
.contacts-info dt:first-child { margin-top: 0; }
.contacts-info dd { font-size: 16px; line-height: 1.5; font-weight: 500; }
.contacts-info dd a:hover { color: var(--acc); }
.contacts-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.map {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(255, 38, 64, 0.05) 0%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 40px);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  font-size: 32px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}
.map-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
}
.map-label small { font-weight: 500; color: var(--muted); display: block; margin-top: 2px; }

/* FOOTER */
footer {
  background: var(--bg-2);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 48px;
  margin-bottom: 40px;
  align-items: start;
}
.footer-col-badge img {
  width: 170px;
  height: auto;
  display: block;
}
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 800;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text); transition: color 0.15s; font-weight: 500; }
.footer-col a:hover { color: var(--acc); }
.footer-about { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 420px; font-weight: 500; }
.footer-about strong { color: var(--text); font-weight: 700; }
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.social-icon {
  width: 36px;
  height: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.social-icon svg { display: block; fill: var(--text); transition: fill 0.15s; pointer-events: none; }
.social-icon:hover { background: var(--acc); border-color: var(--acc); }
.social-icon:hover svg { fill: #fff; }
.contacts-social { display: flex; gap: 8px; margin-top: 4px; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.footer-dev a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; transition: color 0.15s; }
.footer-dev a:hover { color: var(--acc); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .nav-actions .lang-switch { display: none; }
  .nav-actions .btn-pill-acc { display: none; }
  .nav-burger { display: flex; }
  .nav { gap: 12px; }
  .nav-actions { gap: 8px; }
  .logo-sub { display: none; }
  .logo-img { height: 48px; }
  .hero-card {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-photo { height: 240px; order: 2; }
  .hero-photo::after { background: linear-gradient(0deg, var(--card) 0%, transparent 30%); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .tariffs-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-badge { grid-column: 1 / -1; justify-self: start; }
  .footer-col-badge img { width: 140px; }
  .today-row { grid-template-columns: 80px 1fr; padding: 18px 22px; gap: 16px; }
  .today-pill { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
  .today-time { font-size: 24px; }
  .schedule-table { font-size: 12px; }
  .schedule-table th, .schedule-table td { padding: 10px 8px; }
  .schedule-table th:first-child, .schedule-table td:first-child { padding-left: 14px; }
  .group-prices-table th, .group-prices-table td { padding: 12px 10px; }
  .group-prices-table { font-size: 12px; }
  .stat-card { min-height: 100px; padding: 20px 22px; }
  .stat-value { font-size: 36px; }
  .bar-grid { grid-template-columns: 1fr; height: auto; }
  .bar-photo { height: 280px; }
  .bar-content { padding: 48px 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 16px 0 32px; }
  .schedule-table { display: none; }
  .schedule-mobile { display: block; }
  .group-prices-table { display: none; }
  .group-prices-mobile { display: block; }
  .tariffs-grid { grid-template-columns: 1fr; }
}

/* Якорные ссылки (#programs, #schedule, #faq…) не уезжают под sticky header */
section[id] { scroll-margin-top: 80px; }

/* === FAQ accordion (нативный <details>) === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: var(--line-strong);
  background: var(--card-hover);
}
.faq-item summary.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  user-select: none;
}
.faq-item summary.faq-q::-webkit-details-marker { display: none; }
.faq-item summary.faq-q::marker { content: ''; }
.faq-q-text { flex: 1; }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 0.25s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--acc);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { opacity: 0; }
.faq-a {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: 10px; }
.faq-a a { color: var(--acc); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .faq-item summary.faq-q { padding: 16px 18px; font-size: 15px; }
  .faq-a { padding: 0 18px 18px; font-size: 14px; }
}

/* === Trainers page === */
.trainers-section { padding-block: var(--space-section); }
.trainers-head h1 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin: 0;
}
.trainers-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 32px;
}
.trainers-empty {
  color: var(--muted);
  text-align: center;
  padding: 40px 0;
}

.trainers-grid {
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: 1fr;
  max-width: 400px;
  margin: 0 auto;
}
/* 2-up at tablet, 3-up at desktop. Explicit breakpoints so the column
   count is predictable and a 3rd trainer always fits on a wide screen. */
@media (min-width: 760px) {
  .trainers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 828px;
  }
}
@media (min-width: 1140px) {
  .trainers-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1256px;
  }
}
/* A single trainer stays a single 400px card (no left-aligned-in-grid look). */
.trainers-grid:has(> .trainer-card:only-child) {
  grid-template-columns: 1fr;
  max-width: 400px;
}

.trainer-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Photo at the top with breathing room. Card background continues around
   the photo so it reads as "framed" not "cropped". Placeholder uses 4:5
   portrait fallback. */
.trainer-card-photo {
  width: 100%;
  background: var(--card);
  padding: 18px 18px 0;
  line-height: 0;
}
.trainer-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.trainer-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--bg-2) 0%, var(--card-hover) 100%);
}

/* Compact body: tighter padding + smaller gap between sections. */
.trainer-card-body {
  padding: clamp(18px, 2.2vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.trainer-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.trainer-card-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 24px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
.trainer-card-ig {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acc);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.trainer-card-ig:hover { opacity: 0.8; }
.trainer-card-ig svg { flex-shrink: 0; }

.trainer-card-role {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* Meta as a thin inline strip — no separate "island" plate */
.trainer-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 8px 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trainer-meta-row {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  margin: 0;
}
.trainer-meta-row dt {
  color: var(--muted-2);
  font-weight: 500;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.trainer-meta-row dd {
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

/* Block sections stack tightly. Override the global `section` padding
   (var(--space-section) ≈ 40-80px) — these are inner blocks, not page sections. */
.trainer-card-block { margin: 0; padding: 0; }
.trainer-blocks-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trainer-block-title {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acc);
  font-weight: 700;
  margin: 0 0 6px;
}
.trainer-edu-inst {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
  margin: 0 0 4px;
}
.trainer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.trainer-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.trainer-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  background: var(--acc);
  border-radius: 50%;
}

/* Mobile: tighter still */
@media (max-width: 560px) {
  .trainer-card-name { font-size: 19px; }
  .trainer-card-body { padding: 18px; gap: 10px; }
}

/* === Class info trigger button (inline in schedule/today rows) === */
.class-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  transition: color 0.15s ease;
}
.class-trigger:hover .class-trigger-text { color: var(--acc); }
.class-trigger:hover .class-trigger-icon { color: var(--acc); opacity: 1; }
.class-trigger:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}
.class-trigger-text {
  transition: color 0.15s ease;
}
.class-trigger-icon {
  flex-shrink: 0;
  color: var(--muted-2);
  opacity: 0.75;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* When .today-name is a button trigger, keep the typographic weight of the original div */
button.today-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
/* Trigger inside schedule table cells */
.schedule-table td .schedule-cell-trigger {
  width: 100%;
  justify-content: center;
}
/* Mobile schedule list trigger */
.schedule-mobile-trigger {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* === Class info modal === */
body.modal-open { overflow: hidden; }
.class-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.class-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.class-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.class-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 32px 32px 28px;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.class-modal.is-open .class-modal-dialog {
  transform: translateY(0);
}
.class-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  border: 1px solid var(--line);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.class-modal-close:hover {
  color: var(--text);
  background: var(--card-hover);
  border-color: var(--line-strong);
}
.class-modal-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 38px 16px 0;
  color: var(--text);
}
.class-modal-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.class-modal-body p { margin: 0; }
.class-modal-body p + p { margin-top: 12px; }
.class-modal-body a { color: var(--acc); }
.class-modal-body strong { color: var(--text); }
@media (max-width: 480px) {
  .class-modal { padding: 12px; }
  .class-modal-dialog { padding: 24px 20px 22px; border-radius: var(--radius-sm); }
  .class-modal-title { font-size: 20px; }
  .class-modal-body { font-size: 14px; }
}

