/* ============ Базовые переменные и сброс ============ */
:root {
  --navy: #101b2c;
  --navy-2: #182741;
  --paper: #ffffff;
  --soft: #f3f5f9;
  --red: #d3222a;
  --red-dark: #b01b22;
  --blue: #1f4fa0;
  --text: #1c2534;
  --muted: #5a6577;
  --line: #e3e7ee;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(16, 27, 44, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
}

/* height: auto обязателен рядом с атрибутами width/height в разметке:
   иначе height из атрибута остаётся presentational hint и растягивает картинку. */
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }

h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: .6em; }

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #eef2f8; }
.section-dark h2 { color: #fff; }

.section-lead { max-width: 640px; color: var(--muted); margin-bottom: 2.2em; font-size: 1.06rem; }
.price-link { display: inline-block; margin-top: .5em; color: var(--blue); font-weight: 700; text-decoration: none; }
.price-link:hover { color: var(--red); }
.section-dark .section-lead { color: #b9c4d6; }

.accent { color: var(--red); }

/* ============ Кнопки ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(211, 34, 42, .35); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 15px 32px; font-size: 1.06rem; }
.btn-outline { border-color: var(--line); color: var(--navy); background: var(--paper); }
.btn-outline:hover { border-color: var(--navy); }

/* ============ Шапка ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16, 27, 44, .92);
  backdrop-filter: blur(8px);
  color: #fff;
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand img { border-radius: 50%; background: #fff; }
.brand-name { font-weight: 800; font-size: .82rem; line-height: 1.15; letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: #cfd8e6; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.header-cta { padding: 9px 20px; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 5px 8px; background: #fff; border-radius: 2px; transition: .2s; }

/* ============ Hero ============ */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(31, 79, 160, .35), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(211, 34, 42, .22), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #eef2f8;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 24px;
}
.hero-kicker {
  text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  font-size: .82rem; color: #8fa5c4; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; margin-bottom: 18px; }
.hero-sub { font-size: 1.08rem; color: #c3cddd; max-width: 520px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 16px 30px; list-style: none; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.35rem; color: #fff; }
.hero-facts span { font-size: .85rem; color: #8fa5c4; }
.hero-photo img { width: 100%; max-width: 560px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }

/* ============ Полоса федераций ============ */
.fed-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.fed-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; padding: 22px 0; }
.fed-item { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; font-weight: 600; max-width: 240px; }
.fed-item, .fed-item span { text-decoration: none; }
.fed-item img { width: 46px; height: 46px; object-fit: contain; }
a.fed-item:hover { color: var(--blue); }

/* ============ Карточки преимуществ ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.card-icon { color: var(--red); margin-bottom: 14px; }
.card-icon svg { width: 42px; height: 42px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; }

/* ============ Тренер ============ */
.coach-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: center; }
.coach-photo img { border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.coach-rank { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: 16px; }
.coach-text p { margin-bottom: 16px; color: #c3cddd; }
.coach-text .btn { margin-top: 8px; }

/* ============ Наследие ============ */
.legacy-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: center; }
.legacy-text p { margin-bottom: 16px; color: var(--muted); font-size: 1.02rem; }
.legacy-text a { color: var(--navy); }
.legacy-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-caption { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 10px; }
.legacy-values { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.legacy-values span {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px;
  font-size: .88rem; font-weight: 600; color: var(--blue);
}

/* ============ Галерея ============ */
.gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-item { border-radius: 10px; overflow: hidden; display: block; }
.gallery-item img {
  width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============ Залы ============ */
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.place {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative; overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
}
.place-num {
  position: absolute; top: 6px; right: 16px;
  font-size: 3.4rem; font-weight: 800; color: var(--soft);
  z-index: 0; user-select: none;
}
.place h2, .place h3, .place p, .place .sched { position: relative; z-index: 1; }
.place h2, .place h3 { margin-bottom: 8px; font-size: 1.3rem; }
.place h2 a { color: var(--text); text-decoration: none; }
.place h2 a:hover { color: var(--red); }
.place-more { margin-top: 20px; }
.place-addr { color: var(--text); font-weight: 600; }
.place-metro { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.metro-st { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-weight: 600; }
.metro-st svg { width: 17px; height: 12px; flex: none; }
.place-area { margin-top: 6px; font-size: .86rem; color: var(--muted); }
.place-map { margin-top: 6px; font-size: .88rem; }
.place-map a { color: var(--blue); text-decoration: none; font-weight: 600; }
.place-map a:hover { color: var(--red); }
.sched-days {
  margin-top: 16px; font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--blue);
}
.sched ul { list-style: none; margin-top: 6px; }
.sched li { display: flex; gap: 10px; padding: 3px 0; font-size: .92rem; color: var(--muted); }
.sched li span { font-weight: 700; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ============ Форма ============ */
.signup-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.signup-photo img { filter: drop-shadow(0 20px 36px rgba(0, 0, 0, .45)); }
.signup-form-wrap > p { color: #b9c4d6; margin-bottom: 24px; }
.signup-form-wrap > p.signup-free { margin: -12px 0 24px; color: #fff; font-weight: 800; font-size: 1.2rem; }
.call-us { margin-top: 6px; font-weight: 800; font-size: 1.3rem; color: #fff; }
.call-us a { color: #fff; text-decoration: none; white-space: nowrap; }
.call-us a:hover { text-decoration: underline; }
.call-us .tg-link { margin-left: 12px; vertical-align: middle; display: inline-flex; transition: transform .15s ease, filter .15s ease; }
.call-us .tg-link svg { width: 1.4em; height: 1.4em; }
.call-us .tg-link:hover { transform: scale(1.1); filter: brightness(1.15); }
#leadForm { display: flex; flex-direction: column; gap: 16px; }
#leadForm label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .92rem; }
#leadForm input[type="text"], #leadForm input[type="tel"], #leadForm select {
  padding: 13px 16px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07); color: #fff; font-size: 1rem; outline: none;
  font-family: inherit;
}
#leadForm select { appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23b9c4d6' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; }
#leadForm select option { color: var(--text); background: var(--paper); }
.hall-coaches { font-weight: 400; font-size: .85rem; color: #b9c4d6; }
#leadForm input:focus, #leadForm select:focus { border-color: var(--red); }
#leadForm input::placeholder { color: #7d8ba1; }
#leadForm .optional { color: #7d8ba1; font-weight: 400; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: #b9c4d6; font-size: .85rem !important; }
.consent input { margin-top: 4px; accent-color: var(--red); }
.consent a { color: #fff; }
.form-status { min-height: 1.4em; font-weight: 600; }
.form-status.ok { color: #6fdc8c; }
.form-status.err { color: #ff8f8f; }

/* ============ Подвал ============ */
.site-footer { background: #0b1420; color: #8fa5c4; padding: 36px 0; }
/* Две строки: бренд и контакты сверху, юридический хвост — во всю ширину снизу. */
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 50%; background: #fff; }
.footer-brand strong { color: #fff; }
.footer-brand span { font-size: .85rem; }
.footer-contacts { font-size: .85rem; text-align: right; }
.footer-contacts p a { color: #8fa5c4; text-decoration: none; }
.footer-contacts p a:hover { color: #fff; }
.footer-phone { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; margin-bottom: 4px; }
/* flex: none — иначе длинный телефон с nowrap выдавливается на соседнюю ссылку. */
.footer-phone a { flex: none; color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer-phone a:hover { text-decoration: underline; }
.footer-phone .tg-link { display: inline-flex; align-items: center; transition: transform .15s ease, filter .15s ease; }
.footer-phone .tg-link svg { width: 20px; height: 20px; }
.footer-phone .tg-link:hover { transform: scale(1.12); filter: brightness(1.15); }
.footer-note {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px;
  padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .85rem;
}
.footer-note a { color: #8fa5c4; }


/* ============ Заголовок секции со ссылкой «все →» ============ */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .6em; }
.section-more { color: var(--blue); font-weight: 700; text-decoration: none; white-space: nowrap; }
.section-more:hover { color: var(--red); }

/* ============ Карусель карточек ============ */
/* Прокрутка на CSS scroll-snap; стрелки показывает JS, только если карточки не помещаются. */
.carousel { position: relative; }
.carousel-track {
  display: flex; gap: 22px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; padding: 4px 4px 14px;
  margin: -4px -4px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { flex: 0 0 calc((100% - 44px) / 3); scroll-snap-align: start; min-width: 0; }
.carousel-arrow {
  position: absolute; top: 40%; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--paper); color: var(--navy);
  font-size: 1.6rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
.carousel-arrow[hidden] { display: none; }
.carousel-arrow:disabled { opacity: .35; cursor: default; }
.carousel-prev { left: -22px; }
.carousel-next { right: -22px; }

/* ============ Карточка зала (короткая) ============ */
.hall-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hall-card-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.hall-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.hall-card:hover .hall-card-photo img { transform: scale(1.04); }
.hall-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex-grow: 1; }
.hall-card h3 { font-size: 1.15rem; }
.hall-card h3 a { color: var(--text); text-decoration: none; }
.hall-card h3 a:hover { color: var(--red); }
.hall-card .place-metro { margin-top: 2px; }
.hall-card-days { color: var(--muted); font-size: .88rem; }
.hall-card-days::first-letter { text-transform: uppercase; }
.hall-card-more { margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 700; text-decoration: none; font-size: .95rem; }
.hall-card-more:hover { color: var(--red); }

/* ============ Карточка тренера ============ */
/* Пять карточек в ряд на десктопе; постеры разных пропорций обрезаются до 2:3 по верху. */
.carousel-coaches .carousel-track > * { flex-basis: calc((100% - 4 * 16px) / 5); }
.carousel-coaches .carousel-track { gap: 16px; }
.coach-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow);
}
.coach-card-photo { display: block; aspect-ratio: 2 / 3; overflow: hidden; }
.coach-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.coach-card:hover .coach-card-photo img { transform: scale(1.03); }
.coach-card-body { padding: 14px 16px 16px; }
.coach-card h3 { font-size: 1rem; line-height: 1.25; }
.coach-card h3 a { color: var(--text); text-decoration: none; }
.coach-card h3 a:hover { color: var(--red); }
.coach-card-rank { margin-top: 4px; color: var(--muted); font-size: .84rem; }

/* ============ Страница тренеров ============ */
.coach-item {
  display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 80px;
}
.coach-item-photo img { border-radius: 10px; }
/* Тренер без текста — компактная карточка: постер меньше, содержимое прижато к верху. */
.coach-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.coach-list .coach-item:not(.coach-item-compact) { grid-column: 1 / -1; }
.coach-item-compact { grid-template-columns: 160px 1fr; gap: 24px; align-items: start; padding: 22px; }
.coach-item-compact h2 { font-size: 1.25rem; }
.coach-item-compact .btn { padding: 10px 20px; font-size: .92rem; white-space: nowrap; }
.coach-item h2 { font-size: 1.5rem; margin-bottom: 4px; }
.coach-item .coach-rank { margin-bottom: 14px; }
.coach-item-text p { color: var(--muted); margin-bottom: 12px; }
.coach-item-text .btn { margin-top: 6px; }
.coach-halls a { color: var(--blue); }

/* ============ Внутренние страницы ============ */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5em; }
.page-head .section-lead { margin-bottom: 1.2em; }
.page-head .section-lead a { color: var(--blue); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--blue); text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs a::after { content: "›"; margin-left: 6px; color: var(--muted); }

/* Календарный план мероприятий */
.page-head .event-title { text-align: center; margin-bottom: .1em; }
.event-period { text-align: center; font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; color: var(--muted); margin-bottom: 1em; }
.event-period::first-letter { text-transform: uppercase; }
.page-head .event-lead { max-width: 820px; margin: 0 auto 1.2em; text-align: center; }
.event-list { list-style: none; max-width: 820px; margin: 0 auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-item { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 16px 24px; border-top: 1px solid var(--line); }
.event-item:first-child { border-top: 0; }
.event-when { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.event-body strong { display: block; }
.event-place { color: var(--muted); font-size: .95rem; }
.event-place a { color: var(--blue); }
#events .event-list { max-width: none; }
@media (max-width: 640px) {
  .event-item { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
}

.hall-head { padding-bottom: 48px; }
.hall-head-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hall-head-text .place-metro { margin-top: 6px; }
.hall-head-text .hero-actions { margin: 24px 0 0; }
.hall-head-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }

.hall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.hall-grid .card h2 { font-size: 1.2rem; margin-bottom: .5em; }
.hall-grid .card p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.hall-grid .card .sched-days:first-child { margin-top: 0; }
.hall-grid .card .price-link { margin-top: 0; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 44px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item summary:hover h3 { color: var(--red); }
.faq-answer { padding: 0 0 18px; color: var(--muted); max-width: 760px; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer a { color: var(--blue); }
.faq-answer strong { color: var(--text); }

.faq-layout { display: grid; grid-template-columns: 220px 1fr; gap: 44px; align-items: start; }
.faq-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 6px; }
.faq-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 4px 0; }
.faq-nav a:hover { color: var(--red); }
.faq-section + .faq-section { margin-top: 44px; }
.faq-section h2 { font-size: 1.4rem; }
.faq-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.faq-cta p { color: #b9c4d6; }

/* ============ Лайтбокс ============ */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 13, 22, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 4vmin;
}
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 14px; right: 22px;
  background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ============ Появление при прокрутке ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ Адаптивность ============ */
@media (max-width: 900px) {
  .hero-inner, .coach-inner, .legacy-inner, .signup-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; display: flex; justify-content: center; }
  .hero-photo img { max-width: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .places { grid-template-columns: 1fr; }
  .carousel-track > * { flex-basis: calc((100% - 22px) / 2); }
  .carousel-coaches .carousel-track > * { flex-basis: calc((100% - 2 * 16px) / 3); }
  .coach-list { grid-template-columns: 1fr; }
  .coach-item { grid-template-columns: 1fr; }
  .coach-item-photo { max-width: 320px; }
  .coach-item-compact { grid-template-columns: 130px 1fr; }
  .coach-item-compact .coach-item-photo { max-width: none; }
  .hall-head-inner { grid-template-columns: 1fr; }
  .hall-grid { grid-template-columns: 1fr; }
  .faq-layout { grid-template-columns: 1fr; gap: 20px; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
  .legacy-photo { max-width: 420px; margin: 0 auto; }
  .signup-photo { display: none; }
}

/* Бургер-меню — с 1100 px: пять пунктов с кнопкой «Записаться» в шапку уже не помещаются. */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column; gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 15px 24px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
}

@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .cards { grid-template-columns: 1fr; }
  .carousel-track > * { flex-basis: 86%; }
  .carousel-coaches .carousel-track > * { flex-basis: 46%; }
  .carousel-arrow { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-facts { gap: 22px; }
  .fed-inner { gap: 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-contacts { text-align: left; }
  .footer-phone { justify-content: flex-start; }
}

/* Зал без фотографии: логотип школы на мягком фоне */
.hall-nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  aspect-ratio: 3 / 2; background: linear-gradient(135deg, #eef1f6, #dfe5ee); color: var(--muted); font-weight: 600; font-size: .9rem; }
.hall-nophoto img, .hall-head-photo .hall-nophoto img { width: 34%; max-width: 160px; height: auto; aspect-ratio: 1; object-fit: contain;
  border-radius: 50%; box-shadow: none; opacity: .9; }
.hall-head-photo .hall-nophoto { border-radius: var(--radius); box-shadow: var(--shadow); }
.hall-card:hover .hall-nophoto img { transform: none; }
.hall-card-photo.hall-nophoto { text-decoration: none; }
.sched-empty { color: var(--muted); }
