/* ============================================================
   SELECTORY PADEL CLUB — дизайн-система
   Тёмная терракотовая тема. Палитра снята с кортов клуба.
   ============================================================ */

/* ---------- Шрифты (self-hosted) ---------- */
@font-face {
  font-family: 'Unbounded';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-900-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/unbounded-latin-900-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/golos-text-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/golos-text-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/golos-text-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Токены ---------- */
:root {
  /* цвет */
  --bg: #171310;          /* тёплый почти-чёрный */
  --bg-2: #201914;        /* приподнятая поверхность */
  --ink: #F3EDE7;         /* тёплый почти-белый */
  --ink-dim: #B5A79B;     /* приглушённый текст */
  --terra: #C4573A;       /* терракот кортов */
  --terra-bright: #DB6B4A;
  --terra-deep: #9C3F28;
  --line: rgba(243, 237, 231, 0.14);

  /* типографика */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, sans-serif;

  /* моушен: кастомные кривые (animations.dev) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* ритм */
  --section-pad: clamp(3.75rem, 7.5vw, 6.5rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --radius: 14px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

::selection { background: var(--terra); color: var(--bg); }

.wrap {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.1rem, 6.4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.h-section {
  font-size: clamp(1.55rem, 3.6vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.h-sub {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  font-family: var(--font-display);
}

.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: var(--ink-dim);
  max-width: 34em;
}

.accent { color: var(--terra-bright); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  padding: 1.05em 1.9em;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out),
              background-color 200ms ease,
              border-color 200ms ease,
              color 200ms ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--terra);
  color: #14100D;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--terra-bright); }
  .btn-ghost:hover { border-color: var(--ink-dim); }
}

.btn-lg { font-size: 1.05rem; padding: 1.15em 2.3em; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 250ms ease, box-shadow 250ms ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.nav-logo-emblem { height: 44px; width: auto; flex-shrink: 0; }
.nav-logo-word { height: 38px; width: auto; flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
}
.nav-tg:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .nav-tg:hover { color: var(--terra-bright); border-color: var(--ink-dim); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-dim);
  transition: color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); }
}
.nav .btn { padding: 0.8em 1.5em; font-size: 0.82rem; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-inner { height: 64px; }
  .nav-logo-emblem { height: 36px; }
  .nav-logo-word { height: 30px; }
  .nav-tg { width: 38px; height: 38px; }

  .nav-tg-menu {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
  }
}

@media (max-width: 600px) {
  .nav-actions .nav-tg { display: none; }
  .nav-actions .btn { padding: 0.72em 1.1em; font-size: 0.76rem; }
  .nav-inner { gap: 0.8rem; }

  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .nav.open .nav-links a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.15rem;
    color: var(--ink);
    width: 100%;
  }
  .nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Хиро ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
}
.hero::before {
  /* скрим: читаемость текста поверх фото */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(17, 13, 11, 0.94) 8%, rgba(17, 13, 11, 0.45) 46%, rgba(17, 13, 11, 0.30) 100%);
}
.hero-content {
  width: 100%;
  padding-block: clamp(5.5rem, 13vh, 9rem) clamp(3rem, 8vh, 5.5rem);
}
.hero h1 {
  max-width: 11em;
}
.hero .lead {
  margin: 1.4rem 0 2.2rem;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero-meta {
  margin-top: clamp(2.2rem, 6vh, 3.6rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(243, 237, 231, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.6rem, 4vw, 3.4rem);
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
}
.hero-meta strong { color: var(--ink); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding-block: var(--section-pad); scroll-margin-top: 64px; }
.section-head { margin-bottom: clamp(2.2rem, 5vw, 3.8rem); max-width: 26em; }
.section-head .lead { margin-top: 1rem; }

/* ---------- Клуб ---------- */
.club-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.club-copy .h-section { max-width: 12em; }
.club-copy .lead { margin: 1.4rem 0 0; }

.club-facts {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 2.2rem;
}
.fact .fact-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: var(--terra-bright);
  line-height: 1.1;
}
.fact .fact-label {
  margin-top: 0.35rem;
  color: var(--ink-dim);
  font-size: 0.97rem;
  line-height: 1.45;
}

.club-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.club-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

/* ---------- Цены ---------- */
.prices {
  background:
    linear-gradient(rgba(26, 20, 16, 0.93), rgba(23, 19, 16, 0.96)),
    url('../img/texture-1200.webp') center / cover no-repeat;
}

.price-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
.price-group-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.05rem;
}
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-name { color: var(--ink); font-weight: 500; }
.price-note { display: block; color: var(--ink-dim); font-size: 0.9rem; margin-top: 0.15rem; font-weight: 400; }
.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  white-space: nowrap;
  color: var(--terra-bright);
}
.price-value small { font-size: 0.62em; color: var(--ink-dim); font-weight: 500; }

.price-foot {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.price-foot p { margin: 0; color: var(--ink-dim); max-width: 34em; }

/* ---------- Тренеры ---------- */
.coaches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.coach {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(196, 87, 58, 0.10) 0%, transparent 55%),
    var(--bg-2);
}
.coach-name {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
}
.coach-role { color: var(--terra-bright); margin: 0.5rem 0 1.3rem; font-weight: 500; }
.coach ul {
  margin: 0; padding: 0;
  list-style: none;
  color: var(--ink-dim);
}
.coach li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  line-height: 1.5;
}
.coach li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.98em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--terra);
}

/* ---------- Фото-вставка ---------- */
.band {
  height: clamp(280px, 52vh, 540px);
  overflow: hidden;
}
.band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

/* ---------- Компаниям ---------- */
.corp {
  background:
    linear-gradient(rgba(26, 20, 16, 0.95), rgba(23, 19, 16, 0.97)),
    url('../img/net-1200.webp') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}
.corp-emblem {
  position: absolute;
  right: -4%;
  bottom: -12%;
  width: clamp(220px, 30vw, 460px);
  opacity: 0.07;
  pointer-events: none;
}
.corp-inner { position: relative; }

.corp-offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.offer { border-top: 2px solid var(--terra); padding-top: 1.3rem; }
.offer h3 {
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
}
.offer p { color: var(--ink-dim); margin: 0.8rem 0 0; }
.offer .offer-price {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--terra-bright);
  font-size: 1.15rem;
}
.offer .offer-price small { color: var(--ink-dim); font-weight: 500; font-size: 0.68em; }

.corp-cta { margin-top: clamp(2.4rem, 5vw, 3.4rem); display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

/* ---------- Галерея ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 16vw, 220px);
  gap: clamp(0.7rem, 1.5vw, 1.1rem);
}
.shot { border-radius: var(--radius); overflow: hidden; position: relative; }
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .shot:hover img { transform: scale(1.04); }
}
.shot-a { grid-column: 1 / 6;  grid-row: span 2; }
.shot-b { grid-column: 6 / 10; grid-row: span 2; }
.shot-c { grid-column: 10 / 13; grid-row: span 1; }
.shot-d { grid-column: 10 / 13; grid-row: span 1; }
.shot-e { grid-column: 1 / 8;  grid-row: span 1; }
.shot-f { grid-column: 8 / 13; grid-row: span 1; }

/* ---------- Контакты ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  padding: 1.05rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-label { font-size: 0.85rem; color: var(--ink-dim); }
.contact-value {
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  width: fit-content;
}
a.contact-value { transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  a.contact-value:hover { color: var(--terra-bright); }
}
.contacts .btn { margin-top: 1.8rem; }

.map-frame {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius);
  filter: grayscale(0.4) contrast(1.02);
}

/* ---------- Футер ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer a { color: var(--ink-dim); text-decoration: none; transition: color 180ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer a:hover { color: var(--ink); }
}
.footer-social { display: flex; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; }
.footer-brand img { height: 34px; width: auto; opacity: 0.9; }

/* ---------- Reveal-анимации ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
  transition-delay: var(--rv-delay, 0ms);
}
.rv.in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .club-grid,
  .price-groups,
  .coaches-grid,
  .contacts-grid { grid-template-columns: 1fr; }

  .corp-offers { grid-template-columns: 1fr; gap: 2rem; }

  .club-photo { order: -1; aspect-ratio: 16 / 10; }

  .gallery-grid { grid-auto-rows: clamp(110px, 26vw, 180px); }
  .shot-a { grid-column: 1 / 8; grid-row: span 2; }
  .shot-b { grid-column: 8 / 13; grid-row: span 2; }
  .shot-c { grid-column: 1 / 7; grid-row: span 1; }
  .shot-d { grid-column: 7 / 13; grid-row: span 1; }
  .shot-e { grid-column: 1 / 13; grid-row: span 1; }
  .shot-f { grid-column: 1 / 13; grid-row: span 1; }

  .map-frame { min-height: 320px; }
}

@media (max-width: 520px) {
  .hero-cta .btn { width: 100%; }
  .club-facts { grid-template-columns: 1fr 1fr; gap: 1.4rem 1.2rem; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .shot img, .club-photo img { transition: none; }
  *, *::before, *::after { animation-duration: 0.001s !important; }
}
