/* CityGym — концепция «Включи свет». Цвета и шрифты меняются здесь. */

@font-face {
  font-family: "Tektur";
  src: url("../fonts/tektur-cyr.woff2") format("woff2");
  font-weight: 500 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Tektur";
  src: url("../fonts/tektur-lat.woff2") format("woff2");
  font-weight: 500 800; font-stretch: 75% 100%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-cyr.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-lat.woff2") format("woff2");
  font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black: #000000;
  --night: #06142E;
  --blue: #3782FC;
  --glow: #5FB0FF;
  --white: #FFFFFF;
  --steel: #9AA6BC;
  --line: rgba(154, 166, 188, 0.28);

  --display: "Tektur", "Arial Narrow", sans-serif;
  --body: "Montserrat", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 136px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 1rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* Типографика: 14 / 16 / 20 / 28 / 40 / 64 / 96 */
.h2 {
  font: 700 clamp(2rem, 4.2vw, 3.5rem)/1.08 var(--body);
  letter-spacing: -0.02em;
}
.h3 { font: 700 1.5rem/1.2 var(--body); letter-spacing: -0.01em; }
.text { font-size: 1.125rem; color: var(--steel); max-width: 36em; }

/* Светящаяся линия — LED-лента зала */
.led {
  height: 2px;
  background: var(--glow);
  box-shadow: 0 0 6px 1px rgba(55, 130, 252, 0.9), 0 0 28px 4px rgba(55, 130, 252, 0.4);
}

/* Кнопки */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--body);
  text-decoration: none; border: 2px solid transparent; border-radius: 4px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #2A6FE0; }
.btn--ghost { border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.icon { width: 20px; height: 20px; flex: none; }

.round {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.round:hover { border-color: var(--glow); }
.round:disabled { opacity: .35; cursor: default; border-color: var(--line); }

.link { color: var(--glow); text-underline-offset: 4px; font-weight: 600; }
.link:hover { color: var(--white); }

/* Шапка */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .2s;
}
.header.is-solid { background: rgba(0, 0, 0, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h); max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
}
.header__logo img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { text-decoration: none; font-weight: 500; color: rgba(255,255,255,.82); padding-block: 8px; }
.nav a:hover { color: var(--white); }
.burger { display: none; }

/* Первый экран: карусель фото зала */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide {
  position: relative; flex: 0 0 100%; height: 100%;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(96px, 14vh, 136px);
  scroll-snap-align: start; scroll-snap-stop: always;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
/* затемнение сверху под шапку и снизу под кнопки листания */
.hero__slide::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(to top, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 22%);
}
/* на первом слайде — сильнее, чтобы читался заголовок */
.hero__slide--main::before {
  background:
    linear-gradient(to top, rgba(0,0,0,.94) 0%, rgba(0,0,0,.72) 34%, rgba(0,0,0,.2) 62%, rgba(0,0,0,0) 78%),
    linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 22%);
}
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: clamp(96px, 14vh, 136px);
  transition: opacity .35s, visibility .35s;
}
.hero.is-away .hero__content { opacity: 0; visibility: hidden; }
.hero__title {
  font: 700 clamp(2.25rem, 5.2vw, 4.75rem)/1.04 var(--body);
  letter-spacing: -0.02em;
  max-width: 13em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.hero__lead { margin: 20px 0 32px; font-size: clamp(1.125rem, 1.8vw, 1.375rem); color: rgba(255,255,255,.88); }

.hero__controls {
  position: absolute; z-index: 2;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  bottom: clamp(32px, 6vh, 56px);
  display: flex; align-items: center; gap: 8px;
}
.hero__controls .round { background: rgba(0,0,0,.45); border-color: rgba(255,255,255,.35); }
.hero__dots { display: flex; gap: 4px; margin-right: 12px; }
.hero__dots button {
  width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.hero__dots button::before {
  content: ""; width: 20px; height: 2px; background: rgba(255,255,255,.4);
  transition: background-color .2s, box-shadow .2s;
}
.hero__dots button[aria-current="true"]::before {
  background: var(--glow);
  box-shadow: 0 0 6px 1px rgba(55,130,252,.9);
}
.led--hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }

/* Единственная анимация: свет в зале включается */
@media (prefers-reduced-motion: no-preference) {
  .led--hero { transform-origin: left center; animation: led-on 1.6s cubic-bezier(.2,.7,.2,1) .25s both; }
  .hero__slide--main .hero__media { animation: lights-on 1.6s ease-out .25s both; }
  @keyframes led-on {
    0%   { transform: scaleX(0); opacity: 0; }
    12%  { opacity: 1; }
    18%  { opacity: .2; }
    24%  { opacity: 1; }
    30%  { opacity: .45; }
    36%  { opacity: 1; }
    100% { transform: scaleX(1); opacity: 1; }
  }
  @keyframes lights-on {
    0%, 12% { filter: brightness(.25); }
    18% { filter: brightness(.7); }
    24% { filter: brightness(.35); }
    36%, 100% { filter: brightness(1); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__track, .carousel__track { scroll-behavior: auto; }
}

/* Секции */
.section { position: relative; padding-block: var(--section); }
.section > .led { position: absolute; left: 0; right: 0; top: 0; }
.section--night { background: var(--night); }

/* Характеристики */
.specs__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: start; }
.specs__intro .text { margin-top: 24px; }
.spec { border-top: 1px solid var(--line); }
.spec__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.spec dt { color: var(--steel); flex: none; }
.spec dd {
  font: 600 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 var(--display); font-stretch: 90%;
  text-align: right;
}
.spec dd.spec__words { font: 600 1.125rem/1.4 var(--body); }
.spec--plain dd { font: 600 1.125rem/1.4 var(--body); }
.spec dd a { text-decoration: none; }
.spec dd a:hover { color: var(--glow); }

/* Зоны: текст слева, карусель фото справа */
.zones { padding-top: 0; }
.zones .h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.zone {
  display: grid; grid-template-columns: 5fr 7fr; gap: 24px 56px; align-items: center;
}
.zone + .zone { margin-top: clamp(48px, 7vw, 96px); }
.zone__body .text { margin-top: 16px; }

.carousel { min-width: 0; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.carousel__count { min-width: 3.5em; text-align: center; color: var(--steel); font-variant-numeric: tabular-nums; }
.shot { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.ext { color: inherit; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ext:hover, .spec dd .ext:hover { color: var(--glow); }
.spec dd .ext { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Тарифы */
.prices__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: start; }
.prices__intro .text { margin: 24px 0 32px; }
.price { border-top: 1px solid var(--line); }
.price__row {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.price__name { font-size: 1.125rem; font-weight: 600; }
.price__note { display: block; margin-top: 4px; font-size: .9375rem; font-weight: 400; color: var(--steel); }
.price__sum {
  font: 700 clamp(1.5rem, 2.6vw, 2rem)/1 var(--display); font-stretch: 85%;
  white-space: nowrap;
}
.price__row--main { border-bottom-color: transparent; }
.price__row--main::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--glow);
  box-shadow: 0 0 6px 1px rgba(55,130,252,.9), 0 0 20px 3px rgba(55,130,252,.4);
}
.price__row--main .price__note { color: var(--glow); }

/* Отзывы */
.reviews__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: start; }
.score { display: flex; align-items: center; gap: 20px; margin: 32px 0 24px; }
.score__num { font: 800 clamp(4rem, 8vw, 6rem)/0.9 var(--display); font-stretch: 80%; color: var(--glow); }
.score__text { color: var(--steel); }
.review-links { display: grid; justify-items: start; gap: 4px; }
.review-links .link { padding-block: 10px; }
.quotes { display: grid; gap: 40px; }
.quote { border-left: 2px solid var(--blue); padding-left: 24px; }
.quote blockquote { font-size: 1.25rem; line-height: 1.5; max-width: 34em; }
.quote figcaption { margin-top: 12px; color: var(--steel); font-size: .9375rem; }

/* Вопросы */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 32px 64px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--glow), var(--glow)) center / 14px 2px no-repeat,
    linear-gradient(var(--glow), var(--glow)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 24px; color: var(--steel); max-width: 38em; font-size: 1.0625rem; }

/* Контакты */
.contacts__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 64px; align-items: stretch; }
.contacts__info .spec { margin: 32px 0; }
.map { min-height: 420px; border: 1px solid var(--line); background: #e8e4dc url("../img/map.jpg") center / cover no-repeat; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(.2); }

/* Подвал */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); color: var(--steel); font-size: .9375rem; }
.footer__inner { display: grid; gap: 12px; }
.footer__logo { height: 36px; width: auto; margin-bottom: 8px; }
.footer__note { font-size: .875rem; max-width: 48em; }

/* Панель связи на телефоне */
.dock { display: none; }

/* Просмотр фото */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0,0,0,.94); color: var(--white);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 86vh; width: auto; height: auto; }
.lightbox .round { position: absolute; background: rgba(0,0,0,.5); border-color: rgba(255,255,255,.3); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Планшет */
@media (max-width: 1080px) {
  .header__inner { gap: 20px; }
  .nav { gap: 20px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .hero {
    height: auto; min-height: 0;
    display: flex; flex-direction: column;
    padding-top: var(--header-h);
  }
  .hero__track { height: auto; order: 0; }
  .hero__slide { height: auto; aspect-ratio: 16 / 9; padding: 0; }
  .hero__slide::before, .hero__slide--main::before { display: none; }
  .hero__controls {
    position: static; order: 1;
    justify-content: flex-start;
    padding: 12px var(--gutter) 0;
  }
  .hero__content {
    position: static; order: 2;
    opacity: 1; visibility: visible;
    padding-top: 20px; padding-bottom: 48px;
  }
  .hero.is-away .hero__content { opacity: 1; visibility: visible; }
  .burger {
    display: grid; place-content: center; gap: 7px;
    width: 48px; height: 48px; margin-left: auto; margin-right: -8px;
    background: none; border: 0; cursor: pointer;
  }
  .burger span { display: block; width: 26px; height: 2px; background: var(--white); transition: transform .2s; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .header__call { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; background: rgba(0,0,0,.96);
    border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s;
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav a { font: 600 1.375rem/1.1 var(--body); padding: 16px 0; border-bottom: 1px solid var(--line); }
  .header.menu-open { background: rgba(0,0,0,.96); }

  .specs__grid, .prices__grid, .reviews__grid, .faq__grid, .contacts__grid,
  .zone { grid-template-columns: 1fr; gap: 20px; }
  .map, .map iframe { min-height: 360px; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid;
    background: rgba(0,0,0,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .25s;
  }
  .dock.is-visible { transform: none; }
  .dock a {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 60px; text-decoration: none; font-weight: 600;
    background: var(--blue);
  }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 599px) {
  .hero__controls .round { display: none; }
  .hero__dots { margin-right: 0; }
  .actions .btn { flex: 1 1 100%; }
  .spec__row { flex-direction: column; gap: 4px; }
  .spec dd { text-align: left; }
  .score { margin-top: 24px; }
  .quote blockquote { font-size: 1.125rem; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; transform: none; }
}
