/* ============================================
   MMA Kids — denser combat-sports redesign
   ============================================ */

:root {
  --background: #070809;
  --surface: #101215;
  --surface-light: #171A1F;
  --red: #E62420;
  --red-dark: #A91512;
  --red-glow: rgba(230, 36, 32, 0.35);
  --white: #FFFFFF;
  --muted: #A9ADB4;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --container: 1240px;
  --header-h: 68px;
  --sticky-h: 74px;
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: 'Oswald', Arial Narrow, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--white);
  background:
    radial-gradient(ellipse 90% 50% at 80% -10%, rgba(230, 36, 32, 0.12), transparent 50%),
    var(--background);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 200;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 1.5rem, var(--container));
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .container {
    width: min(100% - 2.5rem, var(--container));
  }
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.benefits,
.audience,
.schedule {
  padding-bottom: clamp(1.75rem, 3.5vw, 3rem);
}

.audience,
.schedule,
.location {
  padding-top: clamp(1.75rem, 3.5vw, 3rem);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.2vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 40rem;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-cta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.label {
  display: inline-flex;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(230, 36, 32, 0.55);
  border-radius: 999px;
  background: rgba(230, 36, 32, 0.14);
  color: #ffb2ae;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  max-width: 100%;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-header {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 1.6rem;
  font-size: 1.05rem;
}

.btn-xl {
  min-height: 58px;
  padding: 1.05rem 1.8rem;
  font-size: 1.08rem;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

@media (min-width: 560px) {
  .btn-xl {
    width: auto;
    min-width: 260px;
  }
}

.btn-primary {
  background: linear-gradient(180deg, #f0332e 0%, var(--red) 55%, var(--red-dark) 100%);
  color: var(--white);
  box-shadow: 0 12px 28px var(--red-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(230, 36, 32, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 8, 9, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.header-phone {
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.header-phone:hover {
  color: #ff7a74;
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .site-header,
  .header-inner {
    height: auto;
    min-height: var(--header-h);
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding-block: 0.45rem;
  }

  .header-phone {
    display: none;
  }

  .header-actions {
    min-width: 0;
    width: 100%;
  }

  .btn-header {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    padding: 0.55rem 0.8rem;
    font-size: 0.92rem;
  }

  .hero {
    overflow: visible;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-lead,
  .hero-note {
    max-width: 100%;
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .hero-copy h1 span,
  .hero-line-accent,
  .hero-lead,
  .hero-note {
    white-space: normal;
    overflow-wrap: break-word;
  }
}

.brand {
  text-decoration: none;
  display: grid;
  gap: 0.12rem;
}

.brand-top {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand-mma {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-kids {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #e8eaed;
}

.brand-area {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: auto;
  padding: 1.5rem 0 1.75rem;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, #12161c 0%, #070809 55%, #1a1010 100%);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.42;
}

.hero-img.is-missing {
  display: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.96) 0%, rgba(7, 8, 9, 0.88) 42%, rgba(7, 8, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.2) 0%, rgba(7, 8, 9, 0.75) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-grid > *,
.gallery > *,
.location-panel > *,
.sparring-layout > * {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.15rem, 5.6vw, 3.55rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 12em;
}

.hero-copy h1 span {
  display: block;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.hero-copy h1 span + span {
  margin-top: 0.12em;
}

.hero-line-accent {
  color: #ffd4d2;
  text-shadow: 0 0 30px rgba(230, 36, 32, 0.35);
  white-space: nowrap;
}

.hero-lead {
  margin: 1rem 0 0.45rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  max-width: 28rem;
}

.hero-age {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

.hero-note {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-meta {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.hero-meta li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.8rem 0.9rem;
  background: rgba(16, 18, 21, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.hero-meta-link {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.hero-meta li:has(.hero-meta-link) {
  padding: 0;
}

.hero-meta-link:hover {
  background: rgba(230, 36, 32, 0.12);
}

#schedule,
#map {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.meta-icon {
  color: var(--red);
  display: inline-flex;
  margin-top: 0.1rem;
}

.hero-meta strong {
  display: block;
  font-size: 0.98rem;
}

.hero-meta small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.hero-photo-frame {
  position: relative;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  max-height: 420px;
  background:
    linear-gradient(160deg, rgba(230, 36, 32, 0.28), transparent 45%),
    linear-gradient(180deg, #1a1f27, #0c0e12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.hero-photo.fallback img,
.media-frame.fallback img {
  display: none;
}

.hero-photo-badge {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(7, 8, 9, 0.8);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(88vh, 820px);
    padding: 2.25rem 0 2.5rem;
    display: flex;
    align-items: center;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .hero-meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-photo {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .hero-img {
    opacity: 0.55;
  }
}

@media (min-width: 1100px) {
  .hero-copy h1 {
    font-size: 3.55rem;
    line-height: 1.28;
  }
}

/* Trust strip */
.strip {
  padding: 1.35rem 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(23, 26, 31, 0.85), rgba(16, 18, 21, 0.95));
}

.strip-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.strip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.strip-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  background: rgba(7, 8, 9, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.strip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(230, 36, 32, 0.14);
  color: var(--red);
}

.strip-item h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.strip-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 768px) {
  .strip-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Pad work video band */
.video-band {
  padding: 1.25rem 0 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b0d10;
  aspect-ratio: 16 / 10;
  max-height: 620px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .video-band {
    padding-top: 1.75rem;
  }

  .video-frame {
    aspect-ratio: 21 / 10;
    max-height: 560px;
  }
}

.hall-clip {
  display: flex;
  justify-content: center;
}

.hall-clip video {
  width: min(100%, 210px);
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #0b0d10;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(145deg, rgba(230, 36, 32, 0.22), transparent 42%),
    linear-gradient(180deg, #171b22, #0c0e12);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.6rem 0.9rem 0.75rem;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 9, 0.9));
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-frame.fallback::before {
  content: 'Фото тренування';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  z-index: 1;
}

.gallery {
  display: grid;
  gap: 0.85rem;
  align-items: stretch;
}

.gallery-main {
  aspect-ratio: 4 / 3;
  min-height: 220px;
  height: 100%;
}

.gallery-side {
  aspect-ratio: 4 / 5;
  min-height: 280px;
  height: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .gallery .media-frame:hover img,
  .gallery .story-card:hover img,
  .coach-frame:hover img,
  .hero-photo:hover img {
    transform: scale(1.04);
  }
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: 1.35fr 1fr auto;
    gap: 1.1rem;
    align-items: center;
  }

  .gallery-main,
  .gallery-side,
  .story-card.gallery-side-card {
    aspect-ratio: unset;
    height: clamp(400px, 38vw, 520px);
    min-height: 400px;
  }

  .hall-clip video {
    width: auto;
    height: clamp(400px, 38vw, 520px);
  }
}

/* Instagram training highlight card */
.story-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  background: #0b0d10;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.45s var(--ease);
}

.story-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 9, 0.08) 30%, rgba(7, 8, 9, 0.78) 100%);
  pointer-events: none;
}

.story-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(230, 36, 32, 0.95);
  color: var(--white);
  box-shadow: 0 10px 24px var(--red-glow);
}

.story-card-text {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: grid;
  gap: 0.2rem;
}

.story-card-kicker {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffb2ae;
}

.story-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}

.training .section-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Sparring / Instagram reel */
.sparring {
  padding-top: 0;
}

.sparring-layout {
  display: grid;
  gap: 1.35rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 80% at 0% 0%, rgba(230, 36, 32, 0.14), transparent 50%),
    linear-gradient(160deg, var(--surface-light), var(--surface));
}

.sparring-embed {
  position: relative;
  width: min(100%, 400px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  max-height: 680px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b0d10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.sparring-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.sparring-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sparring-actions .btn {
  flex: 1 1 180px;
}

@media (min-width: 900px) {
  .sparring-layout {
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .sparring-embed {
    margin-inline: 0;
    width: 100%;
  }
}

/* Benefits */
.benefits {
  background:
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(230, 36, 32, 0.08), transparent 55%),
    var(--background);
}

.benefits .section-title {
  margin-bottom: 1.35rem;
}

.benefits-grid {
  display: grid;
  gap: 0.9rem;
}

.benefit-card {
  padding: 1.35rem 1.25rem;
  background: linear-gradient(180deg, var(--surface-light), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.benefit-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.benefit-mark {
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4a45, var(--red-dark));
  box-shadow: 0 0 18px var(--red-glow);
}

.benefit-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.benefit-card p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .benefit-card {
    padding: 1.6rem 1.4rem;
    min-height: 190px;
  }
}

/* Coach */
.coach {
  background: linear-gradient(180deg, #0a0c0f 0%, #101215 100%);
}

.coach-layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.coach-frame {
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin-inline: auto;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.coach-frame.fallback::before {
  content: 'Тренер';
}

.coach-copy .section-lead {
  margin-bottom: 1.35rem;
}

@media (min-width: 900px) {
  .coach-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
  }

  .coach-frame {
    margin-inline: 0;
    width: 100%;
    max-width: none;
  }
}

/* Audience */
.check-grid {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-item {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.check-item::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(230, 36, 32, 0.16);
}

.check-item::after {
  content: '';
  position: absolute;
  left: 1.28rem;
  top: 50%;
  width: 0.38rem;
  height: 0.72rem;
  margin-top: -0.45rem;
  border-right: 2.5px solid var(--white);
  border-bottom: 2.5px solid var(--white);
  transform: rotate(40deg);
}

@media (min-width: 700px) {
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .check-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Schedule */
.schedule-week {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin: 1.35rem 0 0;
  padding: 0;
}

.schedule-week li {
  margin: 0;
  padding: 0.7rem 0.15rem;
  text-align: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(16, 18, 21, 0.7);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-week li.is-on {
  color: var(--white);
  border-color: rgba(230, 36, 32, 0.75);
  background: rgba(230, 36, 32, 0.2);
}

.schedule-cards {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0.85rem 0 0;
  padding: 0;
}

.schedule-card {
  margin: 0;
  padding: 1.2rem 1.15rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(230, 36, 32, 0.14), transparent 42%),
    var(--surface);
}

.schedule-time {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.schedule-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.12rem;
  font-weight: 600;
}

.schedule-card p {
  margin: 0;
  color: var(--muted);
}

.schedule-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 800px) {
  .schedule-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Location */
.location-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(230, 36, 32, 0.16), transparent 50%),
    linear-gradient(160deg, var(--surface-light), var(--surface));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.location-grid {
  display: grid;
  gap: 1.15rem;
  margin: 1.35rem 0 1.5rem;
}

.location-grid h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.location-grid p {
  margin: 0;
  font-size: 1.05rem;
}

.phone {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.phone:hover {
  color: #ff7a74;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.location-actions .btn {
  flex: 0 1 auto;
}

.location-side {
  display: block;
}

.location-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  min-height: 220px;
  height: 100%;
}

.location-photo img {
  object-position: center 18%;
}

.location-photo.fallback::before {
  content: 'Зал';
}

.location-map {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b0d10;
  min-height: 240px;
  aspect-ratio: 16 / 10;
}

.location-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

@media (min-width: 768px) {
  .location-panel {
    padding: 2rem;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-map {
    min-height: 300px;
    aspect-ratio: 21 / 9;
  }
}

@media (min-width: 1024px) {
  .location-panel {
    grid-template-columns: 1.15fr 0.95fr;
    gap: 1.5rem;
    padding: 2.25rem;
  }

  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-photo {
    min-height: 360px;
    aspect-ratio: auto;
  }

  .location-map {
    min-height: 340px;
  }
}

/* Final CTA */
.final {
  position: relative;
  isolation: isolate;
  padding: clamp(3.75rem, 8vw, 6rem) 0;
  overflow: hidden;
  text-align: center;
}

.final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #120c0c;
}

.final-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.final-bg img.is-missing {
  display: none;
}

.final-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(230, 36, 32, 0.38), transparent 60%),
    linear-gradient(180deg, rgba(7, 8, 9, 0.72), rgba(7, 8, 9, 0.9));
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.final-inner .section-title {
  max-width: 16ch;
}

.final-inner .section-lead {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.final-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #050607;
  padding: 2.25rem 0 calc(1.75rem + env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-name {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-note,
.footer-copy {
  margin: 0;
  color: rgba(169, 173, 180, 0.75);
  font-size: 0.85rem;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr auto;
  }

  .footer-nav {
    justify-content: flex-end;
  }

  .footer-note,
  .footer-copy {
    grid-column: 1 / -1;
  }
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(7, 8, 9, 0.92) 25%, rgba(7, 8, 9, 0.98));
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-btn {
  width: 100%;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none !important;
  }
}

/* Privacy page */
.privacy-page .privacy-main {
  padding-top: 2.5rem;
}

.privacy-content {
  max-width: 720px;
}

.privacy-content h1 {
  margin-bottom: 0.5rem;
}

.privacy-updated {
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.privacy-content section {
  margin-bottom: 1.5rem;
}

.privacy-content h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.privacy-content p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.privacy-content a {
  color: var(--white);
}

.privacy-content code {
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.privacy-back {
  margin-top: 2rem;
}

/* Reveal */
.reveal {
  opacity: 1;
  transform: none;
}

html.anim-ready .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

html.anim-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.anim-ready .reveal:not(.is-visible),
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
