:root {
  --bg: #0e0e0d;
  --bg-soft: #171716;
  --panel: #20201e;
  --paper: #f4f0e7;
  --muted: #b8b0a2;
  --line: rgba(244, 240, 231, 0.14);
  --gold: #d6b15e;
  --gold-soft: #f0d99b;
  --red: #ba2531;
  --steel: #8f9692;
  --ink: #131313;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--paper);
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(var(--bg), #151412 48%, #0b0b0a);
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(14, 14, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

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

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.text-link,
.site-footer a {
  text-decoration: none;
}

.nav a:hover,
.text-link:hover,
.site-footer a:hover {
  color: var(--gold-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.social-link:hover {
  color: var(--paper);
  border-color: rgba(214, 177, 94, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.vk-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  color: #fff;
  background: #2f6fed;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 14, 13, 0.95) 0%, rgba(14, 14, 13, 0.82) 38%, rgba(14, 14, 13, 0.28) 100%),
    linear-gradient(0deg, rgba(14, 14, 13, 0.94) 0%, rgba(14, 14, 13, 0) 48%);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  filter: saturate(0.78) contrast(1.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 32px));
  margin: 0 clamp(16px, 7vw, 96px) 64px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 96px;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 650px;
  color: #ddd6c8;
  font-size: 23px;
  line-height: 1.45;
}

.hero-slogan {
  display: inline-block;
  margin: 4px 0 0;
  padding: 12px 16px;
  color: var(--gold-soft);
  background: rgba(186, 37, 49, 0.34);
  border: 1px solid rgba(240, 217, 155, 0.32);
  border-radius: 6px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.btn-primary {
  color: var(--ink);
  background: var(--gold);
}

.btn-ghost {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #141413;
}

.stats article {
  min-height: 122px;
  padding: 24px clamp(18px, 3vw, 38px);
  border-right: 1px solid var(--line);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  color: var(--gold-soft);
  font-size: 46px;
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section {
  padding: clamp(46px, 6vw, 78px) clamp(16px, 5vw, 72px);
}

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

.section-heading h2,
.project-copy h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-grid,
.contacts-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.story-copy,
.mission,
.contact-panel,
.map-panel,
.club-details article,
.review-card,
.group-card,
.coach-grid article,
.project-goal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 32, 30, 0.78);
}

.story-copy {
  padding: clamp(24px, 3vw, 36px);
}

.story-copy p,
.project-copy p,
.project-goal p,
.mission p,
.contact-panel p,
.club-details p,
.review-card p,
.group-card p {
  color: #d5cec0;
  font-size: 17px;
  line-height: 1.65;
}

.story-copy p:last-child,
.mission p,
.project-copy p,
.project-goal p,
.contact-panel p:last-child,
.review-card p,
.group-card p,
.club-details p {
  margin-bottom: 0;
}

.mission,
.contact-panel,
.project-goal {
  padding: 24px;
}

.mission span,
.project-goal span,
.contact-label,
.group-card span,
.coach-grid span,
.club-details span {
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1120px, 100%);
  margin: 0 auto 20px;
}

.filter {
  min-height: 40px;
  padding: 0 18px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.filter.is-active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

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

.group-card {
  min-height: 205px;
  padding: 22px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.group-card.is-hidden {
  display: none;
}

.group-card h3,
.club-details h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.coach-grid article {
  min-height: 158px;
  padding: 22px;
}

.coach-grid strong {
  display: block;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.22;
}

.coach-grid small {
  color: var(--muted);
  font-size: 15px;
}

.project-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
  gap: 24px;
  padding: clamp(48px, 6vw, 82px) clamp(16px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(186, 37, 49, 0.24), transparent 52%),
    #1a1715;
  border-block: 1px solid var(--line);
}

.project-content,
.project-goal {
  width: min(100%, 1120px);
}

.project-content {
  display: grid;
  align-content: center;
  gap: 24px;
  justify-self: end;
}

.project-photo {
  align-self: center;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-photo img {
  width: 100%;
  height: auto;
  max-height: 330px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  background: #0e0e0d;
}

.project-photo figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

.team-section {
  background:
    linear-gradient(180deg, rgba(214, 177, 94, 0.08), rgba(14, 14, 13, 0)),
    #10100f;
  border-bottom: 1px solid var(--line);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.team-copy,
.leadership,
.team-photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 32, 30, 0.78);
}

.team-copy {
  display: grid;
  align-content: space-between;
  gap: 22px;
  padding: 28px;
}

.team-copy p {
  margin-bottom: 0;
  color: #d5cec0;
  font-size: 18px;
  line-height: 1.65;
}

.leadership {
  padding: 22px;
  background: rgba(214, 177, 94, 0.08);
}

.leadership span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.leadership ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leadership li {
  color: var(--paper);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.team-photo {
  margin: 0;
  overflow: hidden;
}

.team-photo-wide {
  grid-column: 2;
  grid-row: span 2;
}

.team-photo img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.team-photo-wide img {
  min-height: 620px;
}

.team-photo img.team-photo-logo {
  padding: 64px;
  object-fit: contain;
  background: #0e0e0d;
}

.team-photo figcaption {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 14px;
}

.reviews-grid {
  grid-template-columns: repeat(4, 1fr);
}

.review-card {
  min-height: 220px;
  padding: 22px;
}

.stars {
  margin-bottom: 18px;
  color: var(--gold-soft);
  letter-spacing: 0;
}

.review-card span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: block;
  width: min(1120px, 100%);
  margin: 24px auto 0;
  color: var(--gold-soft);
  font-weight: 800;
}

.gallery-main {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.gallery-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.gallery-main figcaption {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 14px;
}

.club-details {
  display: grid;
  gap: 14px;
}

.club-details article {
  padding: 22px;
}

.contacts-section {
  background: var(--paper);
  color: var(--ink);
}

.contacts-section .eyebrow,
.contacts-section .contact-label,
.contacts-section .section-heading h2 {
  color: var(--ink);
}

.contacts-grid {
  grid-template-columns: 0.7fr 1.3fr;
}

.contact-panel,
.location-photo,
.map-panel {
  background: #fffaf0;
  border-color: rgba(19, 19, 19, 0.12);
}

.location-photo {
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 19, 19, 0.12);
  border-radius: 8px;
}

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

.contact-panel strong {
  display: block;
  margin-bottom: 16px;
  font-size: 40px;
  line-height: 1.1;
}

.contact-panel p {
  color: #544d43;
}

.contacts-section .btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(19, 19, 19, 0.24);
}

.map-panel {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}

.yandex-map {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-open-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.map-open-link:hover {
  color: var(--ink);
  background: var(--gold-soft);
}

.js-photo {
  cursor: zoom-in;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.86);
}

.photo-modal.is-open {
  display: grid;
}

.photo-modal img {
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 72px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
}

.photo-modal__close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--paper);
  background: rgba(32, 32, 30, 0.92);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.body-modal-open {
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(16px, 5vw, 72px);
  color: var(--muted);
  background: #0a0a09;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .stats,
  .group-grid,
  .coach-grid,
  .reviews-grid,
  .story-grid,
  .gallery-grid,
  .contacts-grid,
  .team-layout,
  .project-section {
    grid-template-columns: 1fr 1fr;
  }

  .story-copy,
  .gallery-main,
  .map-panel,
  .team-copy,
  .team-photo-wide,
  .project-content,
  .project-photo {
    grid-column: 1 / -1;
  }

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

  h1 {
    font-size: 66px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-slogan {
    font-size: 18px;
  }

  .section-heading h2,
  .project-copy h2 {
    font-size: 48px;
  }

  .stats strong {
    font-size: 38px;
  }

  .contact-panel strong {
    font-size: 32px;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand span {
    font-size: 14px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .header-call,
  .social-link {
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
  }

  .nav {
    grid-column: auto;
  }

  .hero {
    min-height: 535px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(14, 14, 13, 0.94) 0%, rgba(14, 14, 13, 0.66) 100%),
      linear-gradient(0deg, rgba(14, 14, 13, 0.96) 0%, rgba(14, 14, 13, 0) 55%);
  }

  .hero-inner {
    width: calc(100% - 32px);
    margin: 0 16px 42px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 18px;
    max-width: 340px;
  }

  .section-heading h2,
  .project-copy h2 {
    font-size: 36px;
  }

  .stats strong {
    font-size: 34px;
  }

  .contact-panel strong {
    font-size: 28px;
  }

  .stats,
  .group-grid,
  .coach-grid,
  .reviews-grid,
  .story-grid,
  .gallery-grid,
  .contacts-grid,
  .team-layout,
  .project-section {
    grid-template-columns: 1fr;
  }

  .team-photo-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .team-photo img,
  .team-photo-wide img {
    min-height: 280px;
  }

  .stats article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .gallery-main img {
    height: 330px;
  }

  .project-photo,
  .project-photo img,
  .location-photo,
  .location-photo img,
  .yandex-map {
    min-height: 280px;
  }

  .yandex-map {
    height: 300px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
