:root {
  --ink: #171717;
  --paper: #fbfaf7;
  --muted: #6b6862;
  --line: rgba(23, 23, 23, 0.12);
  --red: #b30f22;
  --red-dark: #720817;
  --blue: #1764a5;
  --gold: #d7a33d;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(20, 16, 12, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(12, 12, 12, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/10.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 52%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.06) 42%);
}

.hero-content {
  position: relative;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 140px 0 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}

.button.primary {
  background: var(--red);
  color: var(--white);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(1080px, 100%);
  margin: 0 auto 36px;
}

.section-heading h2 {
  max-width: 880px;
}

.section-heading.compact {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.intro-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature,
.hall-card,
.map-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(34, 28, 22, 0.08);
}

.feature {
  padding: 28px;
}

.feature-mark {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature p,
.hall-body p,
.training-copy p,
.contacts-section p {
  color: var(--muted);
  line-height: 1.65;
}

.training-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: #1d1c1a;
  color: var(--white);
}

.training-image {
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.training-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.training-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stats-row div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.stats-row strong,
.stats-row span {
  display: block;
}

.stats-row strong {
  color: var(--gold);
  font-size: 1.7rem;
}

.stats-row span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.hall-grid,
.map-section {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hall-card {
  overflow: hidden;
}

.hall-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.hall-body {
  padding: 24px;
}

.hall-body a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.gallery-section {
  background: #efeee9;
}

.gallery-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.contacts-section {
  background:
    linear-gradient(90deg, rgba(179, 15, 34, 0.94), rgba(114, 8, 23, 0.94)),
    url("assets/4.jpg") center / cover;
  color: var(--white);
}

.contact-panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-panel h2 {
  max-width: 680px;
}

.contact-panel p,
.contact-panel p a {
  color: rgba(255, 255, 255, 0.84);
}

.social-links {
  display: grid;
  gap: 10px;
  min-width: 220px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
}

.telegram {
  background: #1888c9;
}

.instagram {
  background: #d52862;
}

.facebook {
  background: #28549c;
}

.map-section {
  padding-top: clamp(48px, 7vw, 84px);
}

.map-card {
  overflow: hidden;
}

.map-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.map-title span {
  color: var(--muted);
  font-weight: 800;
}

.map-card iframe {
  width: 100%;
  height: 340px;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 18px;
  color: rgba(255, 255, 255, 0.78);
  background: #111;
}

.site-footer img {
  width: 36px;
  height: 36px;
}

.site-footer a {
  margin-left: 14px;
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.lightbox {
  width: min(1080px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 68px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    display: none;
    padding: 16px;
    border-radius: 8px;
    background: rgba(12, 12, 12, 0.94);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-bottom: 46px;
  }

  .intro-grid,
  .training-band,
  .hall-grid,
  .map-section,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    display: grid;
  }

  .section-heading.compact {
    display: block;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .hero-content {
    width: calc(100% - 28px);
  }

  .hero-actions,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .button,
  .hero-actions {
    width: 100%;
  }

  .section {
    padding-inline: 14px;
  }

  .feature {
    padding: 22px;
  }

  .training-image,
  .training-image img {
    min-height: 310px;
  }

  .hall-card img {
    height: 250px;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .map-card iframe {
    height: 290px;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}




/* Стили для блока записи */
.trial-section {
  padding: 60px 20px;
  background: #111;
  color: #fff;
}
.trial-card {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  background: #1e1e1e;
  padding: 40px;
  border-radius: 16px;
  border: 1px solid #333;
}
.trial-text { flex: 1; min-width: 300px; }
.trial-text h2 { font-size: 2rem; margin-bottom: 15px; }
.highlight { color: #e50914; }
.trial-benefits { list-style: none; padding: 0; margin-top: 20px; }
.trial-benefits li { margin-bottom: 10px; color: #ccc; }

.trial-form {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.trial-form input, .trial-form select {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #444;
  background: #2b2b2b;
  color: #fff;
  font-size: 1rem;
}
.btn-primary {
  padding: 15px;
  background: #e50914;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover { background: #b80710; }
