/* ============ OFF — only for fun. Чёрно-белый минимализм ============ */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --gray: #6b6b6b;
  --light: #ececec;
  --font-display: "Unbounded", sans-serif;
  --font-body: "Onest", sans-serif;
  --pad: clamp(1rem, 4vw, 3rem);
  --header-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--paper);
  /* едва заметный лабиринт тонкими линиями */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.03' stroke-width='1'%3E%3Cpath d='M20 20h180v40H80v40h100v40H60'/%3E%3Cpath d='M20 60v140h120v-40H80'/%3E%3Cpath d='M220 100v100h-60v-40'/%3E%3Cpath d='M40 100h20v60'/%3E%3Cpath d='M180 180h20'/%3E%3Cpath d='M120 20v20'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.65;
}
::selection { background: var(--ink); color: var(--paper); }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.8rem; font-weight: 600; font-size: 1rem;
  border: 1.5px solid var(--ink); border-radius: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* ---------- Шапка: прозрачная поверх фото, белая при прокрутке ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  min-height: var(--header-h);
  padding: 0.7rem var(--pad);
  color: #fff;
  background: transparent;
  border-bottom: 1.5px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.site-header.is-solid {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--ink);
}
.logo { display: inline-flex; align-items: center; gap: 0.55rem; }
.logo-mark { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: 0.05em;
}
.logo-text small {
  font-family: var(--font-body); font-weight: 500; font-size: 0.55rem;
  letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.72;
  margin-top: 4px; white-space: nowrap;
}
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { font-weight: 500; font-size: 0.95rem; opacity: 0.82; transition: opacity 0.2s ease; }
.site-nav a:hover { opacity: 1; }
.header-phone { font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.header-phone:hover { text-decoration: underline; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Первый экран: фото или видео на весь экран ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 540px;
  background-color: var(--ink);
  /* лабиринт светлыми линиями — виден, пока нет фото/видео */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='1'%3E%3Cpath d='M20 20h180v40H80v40h100v40H60'/%3E%3Cpath d='M20 60v140h120v-40H80'/%3E%3Cpath d='M220 100v100h-60v-40'/%3E%3Cpath d='M40 100h20v60'/%3E%3Cpath d='M180 180h20'/%3E%3Cpath d='M120 20v20'/%3E%3C/g%3E%3C/svg%3E");
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.45) 100%);
}
.hero-content {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(3.5rem, 10vh, 6rem);
  color: #fff;
}
.hero-title {
  font-size: clamp(3.4rem, 12vw, 7.5rem);
  line-height: 0.95; letter-spacing: 0.02em;
  display: flex; flex-direction: column;
}
.hero-title small {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85;
  margin-top: 1rem;
}
.hero-scroll {
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 1.3rem; color: #fff; font-size: 1.4rem;
  animation: nudge 2.2s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Секции ---------- */
.section {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(2.8rem, 7vh, 5rem) var(--pad);
  border-top: 1.5px solid var(--ink);
  scroll-margin-top: var(--header-h);
}
.section:first-of-type { border-top: 0; }
.section-head { display: flex; align-items: baseline; gap: 1.1rem; margin-bottom: 1.8rem; }
.section-num { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; color: var(--gray); }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
.section-sub { color: var(--gray); margin: -0.8rem 0 1.8rem; }
.section-note { color: var(--gray); font-size: 0.9rem; margin-top: 1.3rem; }

/* ---------- О клубе ---------- */
.about-title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin-bottom: 1.2rem; letter-spacing: -0.01em; }
.about-lead { max-width: 620px; color: var(--gray); font-size: 1.08rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-facts { display: flex; gap: clamp(2rem, 6vw, 4.5rem); flex-wrap: wrap; margin-bottom: 2.8rem; }
.hero-facts dt { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.hero-facts dd { color: var(--gray); font-size: 0.9rem; max-width: 160px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.about-cols p { font-size: 1.02rem; }

/* ---------- Видео ---------- */
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.video-card { cursor: pointer; }
.video-poster {
  aspect-ratio: 16 / 9; background: var(--ink);
  display: grid; place-items: center; margin-bottom: 0.7rem;
}
.play-btn {
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid #fff; display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.play-btn::after {
  content: ""; margin-left: 4px;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.video-card:hover .play-btn, .video-card:focus-visible .play-btn { transform: scale(1.1); }
.video-card figcaption { font-weight: 500; font-size: 0.95rem; }
.video-card iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; margin-bottom: 0.7rem; }

/* ---------- Фото ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.photo-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: grayscale(100%); background: var(--light);
}
.photo-note { color: var(--gray); font-size: 0.95rem; }

/* ---------- Расписание ---------- */
.schedule-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.schedule-table td { padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--light); vertical-align: top; }
.schedule-table td:nth-child(1) { font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; width: 3.2rem; }
.schedule-table td:nth-child(2) { font-weight: 600; width: 5rem; white-space: nowrap; }
.schedule-table td:nth-child(3) { font-weight: 500; }
.schedule-table td:nth-child(4) { color: var(--gray); text-align: right; }
.row-extra td:nth-child(3), .row-extra td:nth-child(2) { color: var(--gray); font-weight: 400; }

/* ---------- Цены ---------- */
.pricing-list { display: flex; flex-direction: column; }
.price-row {
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 1.5rem; align-items: baseline;
  padding: 1.3rem 0; border-bottom: 1px solid var(--light);
}
.price-row:last-child { border-bottom: 0; }
.price-row h3 { font-size: 1.02rem; font-weight: 500; }
.price-row p { color: var(--gray); font-size: 0.92rem; }
.price-row b { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }

/* ---------- Тренеры ---------- */
.coaches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.coach-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1rem;
  background: var(--paper);
}
.coach-card h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.coach-role { font-weight: 600; font-size: 0.85rem; margin-bottom: 0.6rem; }
.coach-bio { color: var(--gray); font-size: 0.92rem; }

/* ---------- Контакты ---------- */
.contacts-lead { color: var(--gray); max-width: 540px; margin-bottom: 2rem; }
.contact-big {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 2.6rem); margin-bottom: 1.4rem;
}
.contact-big:hover { text-decoration: underline; }
.contact-links { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.contact-links a { font-weight: 600; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.contact-links a:hover { color: var(--gray); border-color: var(--gray); }
.contact-address { color: var(--gray); }

/* ---------- Подвал ---------- */
.site-footer {
  max-width: 1000px; margin: 0 auto; padding: 1.4rem var(--pad) 2.2rem;
  border-top: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--gray); font-size: 0.88rem;
}
.site-footer a { color: var(--ink); font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Адаптив ---------- */
@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1.5px solid var(--ink);
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  }
  .site-nav.is-open { max-height: 340px; }
  .site-nav a { padding: 0.95rem var(--pad); border-top: 1px solid var(--light); color: var(--ink); opacity: 1; }
  .nav-toggle { display: flex; }
  .header-phone { margin-left: auto; }
  .about-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .coaches-grid { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr auto; }
  .price-row p { grid-column: 1 / -1; }
  .schedule-table td:nth-child(4) { display: none; }
}
@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 1.4rem; }
}
