/* ============================================================
   M99 Hotel — вёрстка главной (desktop 1440)
   Источник: Figma "M99 Hotel (DEV)", фрейм M99 (10285:26826)
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Pitagon Sans Mono";
  src: url("../assets/fonts/pitagon-sans-mono-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pitagon Sans Mono";
  src: url("../assets/fonts/pitagon-sans-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pitagon Sans Mono";
  src: url("../assets/fonts/pitagon-sans-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pitagon Sans Mono";
  src: url("../assets/fonts/pitagon-sans-mono-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (из UI Kit: Colors / Gaps) ---------- */
:root {
  /* серая шкала 0-1000 */
  --c-50:  #FFFFFF;
  --c-95:  #F2F2F2;   /* FAQ rows */
  --c-100: #E6E6E6;   /* текст на тёмном */
  --c-150: #D9D9D9;   /* границы карточек */
  --c-500: #808080;   /* вторичный текст, M99-подписи */
  --c-800: #333333;   /* активный таб */
  --c-900: #1A1A1A;
  --c-950: #0D0D0D;
  --c-1000:#000000;

  /* акценты */
  --c-teal:       #008385;
  --c-teal-dark:  #0A888A;
  --c-yellow:     #FABC43;

  /* фон страницы (между карточками) */
  --bg-page: var(--c-95);

  /* отступы: межблоковые только 2 размера + внутренние */
  --gap-block-s: 16px;
  --gap-block-l: 64px;
  --pad-section-s: 24px;   /* боковой паддинг секции (узкие карточки) */
  --pad-section-l: 40px;   /* боковой паддинг секции (баннеры/резерв) */
  --pad-card: 40px;        /* внутренний паддинг белых карточек */

  --radius-card: 24px;
  --radius-md: 16px;

  --font-main: "Pitagon Sans Mono", "JetBrains Mono", ui-monospace, "Courier New", monospace;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-page);
  color: var(--c-900);
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 24px;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 12px 24px;
  border-radius: 100px;
  background: var(--c-teal);
  color: var(--c-50);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }

body :where(h1, h2, h3, p, a, span, button, label, input) {
  letter-spacing: -0.02em;
}

/* ---------- Typography ---------- */
.h5 {           /* Headline/H5 — заголовки секций */
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  line-height: 28px;
}
.text-l {       /* Text/Text L CAPS */
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
}
.text-m {       /* Text/Text M */
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
}
.h5,
.text-l,
.header__link,
.header__contact,
.btn,
.hero__title,
.numbers__text,
.reserve__title,
.capsule__heading,
.capsule__tab,
.benefit-card__text,
.banner__title-xl,
.banner-1__text,
.banner-2__sub,
.facility__title,
.faq__q,
.reviews__title,
.contacts__card-title,
.footer__menu a {
  text-transform: uppercase;
}
.text--gray100 { color: var(--c-100); }
.link { color: var(--c-teal); }
.link--white { color: var(--c-50); }

/* ---------- Icons ---------- */
.icon { fill: none; color: var(--c-500); }
.icon-16 { width: 14px;  height: 14px; }
.icon-24 { width: 24px;  height: 24px; }
.icon-40 { width: 40px;  height: 40px; }

/* ---------- Layout: секции = карточки на тёмном фоне ---------- */
.section {
  display: flex;
}
.section--p24 { padding-left: var(--pad-section-s); padding-right: var(--pad-section-s); }
.section--p40 { padding-left: var(--pad-section-l); padding-right: var(--pad-section-l); }
.section--m16 { margin-bottom: var(--gap-block-s); }
.section--m64 { margin-bottom: var(--gap-block-l); }

.card {
  width: 100%;
  border-radius: var(--radius-card);
}
.card--white  { background: var(--c-50); }
.card--teal   { background: var(--c-teal); }
.card--yellow { background: var(--c-yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 100px;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }

.btn--l {      /* большая кнопка: текст 24, высота 68, паддинги 18/40 */
  height: 68px;
  padding: 18px 40px;
  font-size: 24px;
  line-height: 32px;
}
.btn--accent { background: var(--c-teal); color: var(--c-100); }   /* teal, текст #E6E6E6 */
.btn--accent:hover { background: var(--c-teal-dark); }
.btn--white  { background: var(--c-50); color: var(--c-1000); }    /* белая, чёрный текст */
.btn--white:hover { opacity: .88; }
.btn--white .icon { color: var(--c-1000); }
.btn--white-s {                                                   /* маленькая белая кнопка хедера */
  height: 40px;
  padding: 0 24px;
  border-radius: 100px;
  font-size: 16px;
  line-height: 24px;
  background: var(--c-teal);
  color: var(--c-50);
}
.btn--dark {                                                        /* чёрная кнопка формы */
  height: 48px;
  padding: 0 32px;
  border-radius: var(--radius-md);
  background: var(--c-1000);
  color: var(--c-50);
  font-size: 16px;
  line-height: 24px;
}

/* ---------- Slider buttons (56x56, круглые) ---------- */
.slider-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 100px;
  transition: background-color .2s ease, opacity .2s ease;
}
.slider-btn .icon { display: block; width: 16px; height: 16px; color: var(--c-900); opacity: 1; }
.slider-btn--dark {
  border: 1px solid var(--c-900);
  background: transparent;
}
.slider-btn--dark:hover { background: var(--c-95); }
.slider-btn--ghost { border: 1px solid var(--c-100); background: transparent; }
.slider-btn--ghost .icon { color: var(--c-100); }
.slider-btn--light { border: 1px solid var(--c-900); background: transparent; }
.slider-btn.swiper-button-lock { display: inline-flex; }
.slider-btn:disabled,
.slider-btn[aria-disabled="true"] {
  cursor: default;
  opacity: .4;
}

.svg-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ============================================================
   HEADER — контент (лого/меню/контакты) всегда на hero-линии
   и никогда не двигается; после первого экрана под ним fade'ом
   проявляется белая пилюля (Menu Sticky): слева 24, справа —
   до края окна
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 15px 56px 0;
}
.header::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 15px;
  height: 73px;
  z-index: -1;
  border-radius: 80px;
  background: var(--c-50);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.header.is-sticky::before { opacity: 1; visibility: visible; }

/* белая панель за контактами и кнопкой: видна сразу (в т.ч. на
   промежуточном скролле — подложка не даёт им лечь на фото),
   упирается в правый край окна при любой ширине; в sticky fade-out */
.header__right::before {
  content: "";
  position: absolute;
  left: -48px;
  right: -56px; /* = боковой паддинг .header → до края окна */
  top: -16.5px;
  bottom: -16.5px;
  z-index: -1;
  border-radius: 40px 0 0 40px;
  opacity: 1;
  transition: opacity .25s ease;
}
.header.is-sticky .header__right::before { opacity: 0; }
.header__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  height: 73px;
}
.header__logo img { display: block; height: 73px; width: auto; transition: filter .25s ease; }
.header__logo svg { height: 73px; width: auto; }

.header__nav {
  display: flex;
  gap: 40px;
  justify-content: center;
}
.header__link {
  font-size: 16px;
  line-height: 20px;
  color: var(--c-1000);
  transition: opacity .2s;
}
.header__link:hover { opacity: 1; text-decoration: underline; }

.header__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  justify-self: end;      /* box прилипает к контенту → ::before обнимает его */
  width: fit-content;
}
.header__contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.header__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 16px;
  color: var(--c-1000);
}
.header__contact .icon { color: var(--c-900); }
.header__contact:hover { opacity: 1; }

/* Переключатель языка (desktop): Figma 12239:2840 (закрытый) / 12239:3491 (dropdown) */
.header__lang {
  position: relative;
  display: flex;
  align-items: center;
}
.header__lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: var(--c-1000);
  text-transform: lowercase;
}
.header__lang-btn:hover { opacity: 1; text-decoration: underline; }
.header__lang-chevron { color: var(--c-900); transition: transform .25s ease; }
.header__lang-btn[aria-expanded="true"] .header__lang-chevron { transform: rotate(180deg); }
.header__lang-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 120px;
  padding: 16px;
  background: var(--c-50, #fff);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(26, 26, 26, .12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}
.header__lang-option {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.02em;
  text-align: left;
  color: var(--c-1000);
  text-transform: lowercase;
}
.header__lang-option:hover { text-decoration: underline; }
.header__lang-option.is-active { color: #b3b3b3; cursor: default; }
.header__lang-option.is-active:hover { text-decoration: none; }

/* Языки в мобильном меню: Figma 12239:6051 (mobile) / 12239:6159 (tablet) */
.mobile-menu__lang {
  display: flex;
  gap: 16px;
}
.mobile-menu__lang a {
  color: #b3b3b3;
  letter-spacing: -0.02em;
}
.mobile-menu__lang a:hover { opacity: 1; }
.mobile-menu__lang a.is-active { color: var(--c-1000); }

/* sticky-состояние: только появление подложки и затемнение лого */
.header.is-sticky .header__logo img {
  filter: brightness(.1);
}

/* hamburger: только mobile/tablet (responsive.css) */
.header__menu-toggle { display: none; }

/* ============================================================
   1. HERO — видео-фон, высота = 100vh - 16px, слоган слева внизу
   shell: hero + sentinel + RHA (на mobile RHA уходит в поток)
   ============================================================ */
.hero-shell { position: relative; }
.hero-exit-sentinel {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
}
.hero {
  position: relative;
  min-height: calc(100vh - 16px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: var(--gap-block-s);   /* 16px до About */
}
.hero__media {
  position: absolute;
  inset: 12px 24px 0;
  overflow: hidden;
  background: var(--c-150);
  /* «папочный» угол: короткое ушко слева сверху, скруглённый переход к полотну,
     срез правого нижнего угла (уступ + плавная кривая) и увеличенный
     нижне-левый радиус. Форма из Figma (Video Background 10348:20979, 1392×768),
     нормализована в viewBox 100×55 (= 768/1392) c preserveAspectRatio='none'
     → тянется под desktop и Large Desktop. Пропорции сверены по 01-hero.png.
     Маска обязана иметь собственные размеры + no-repeat + size 100% 100%:
     без этого тайл повторяется и по краям вылезают лишние уголки */
  --hero-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='55' viewBox='0 0 100 55' preserveAspectRatio='none'%3E%3Cpath d='M 15.44 0 C 17.73 0.41 18.92 5.45 20.36 5.45 L 98.48 5.45 C 99.87 5.36 100 6.98 100 6.98 L 100 45.46 C 99.87 47.11 97.21 46.95 97.21 46.95 L 87.91 46.95 C 85.72 46.96 82.73 55.02 81.5 55 L 1.21 55 C -0.04 54.65 -0.05 53.33 0 51.97 L 0 1.6 C 0.05 0.84 0.25 0.31 1.1 0.07 L 15.44 0 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--hero-mask);
          mask-image: var(--hero-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
.hero__poster,
.hero__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__poster {
  z-index: 0;
  opacity: 1;
  transition: opacity .2s ease;
}
.hero__poster.is-hidden { opacity: 0; }
.hero__video {
  z-index: 1;
  opacity: 0;
}
.hero__video.is-playing { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(13,13,13,.15) 0%, rgba(13,13,13,0) 40%, rgba(13,13,13,.35) 100%);
}

.hero__content {
  position: relative;
  width: 100%;
  padding: 0 64px 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.hero__description {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 514px;
  height: 380px;
  padding: 32px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  color: var(--c-50);
}
.hero__subtitle {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  color: var(--c-50);
}
.hero__btn { align-self: flex-start; margin-top: 24px; }
.hero__btn .icon { color: var(--c-100); }
.hero__rha {
  /* Белая плашка-«вырез» из макета (форма из rha.png без логотипа);
     rha-2.png — сам логотип, кладётся в слот native-размера 150×85 */
  --rha-plaque: url("../assets/img/rha-plaque.png");
  position: absolute;
  right: 35px;
  bottom: 0px;
  z-index: 2;
  width: 244px;
  aspect-ratio: 488 / 213;
  background: var(--rha-plaque) 0 0 / 100% 100% no-repeat;
}
.hero__rha-logo {
  position: absolute;
  left: 75px;
  top: 7px;
  width: 150px;
  height: auto;
}

/* ============================================================
   2. ABOUT — белая карточка, 2 колонки, квадратное фото слева снизу
   ============================================================ */
.about {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 40px;
  min-height: 640px;
}
.about__left {
  display: flex;
  flex-direction: column;
}
.about__photo-wrap { position: static; margin-top: auto; }
.about__photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 393px;
  height: 393px;
  object-fit: cover;
}
.about__sparkle {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 14px;
  height: 14px;
  color: var(--c-900);
}
.about__right { display: flex; flex-direction: column; gap: 24px; }
.about__text-secondary { color: var(--c-900); }

/* ============================================================
   3. NUMBERS — 4 карточки, счётчики при входе во вьюпорт
   (mobile — touch-rail: включается Swiper в sliders.js)
   ============================================================ */
.numbers {
  display: flex;
  gap: 10px;
  width: 100%;
}
.numbers__track {
  display: flex;
  width: 100%;
}
.numbers__card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: var(--c-50);
  border-radius: var(--radius-card);
  padding: 32px 24px;
}
.numbers__value {
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  color: var(--c-1000);
  font-variant-numeric: tabular-nums;
}
.numbers__label {
  display: block;
  width: 100%;
  height: 17px;
  margin-top: 24px;
  font-size: 0;
  line-height: 17px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 17px;
}
.numbers__card:nth-child(1) .numbers__label { background-image: url("../assets/img/m99-number-1.png"); }
.numbers__card:nth-child(2) .numbers__label { background-image: url("../assets/img/m99-number-2.png"); }
.numbers__card:nth-child(3) .numbers__label { background-image: url("../assets/img/m99-number-3.png"); }
.numbers__card:nth-child(4) .numbers__label { background-image: url("../assets/img/m99-number-4.png"); }
.numbers__text {
  margin: 8px 0 0;
  font-size: 24px;
  line-height: 32px;
  color: var(--c-1000);
  margin-top: auto;
}

/* ============================================================
   4. RESERVE — teal-карточка, форма поиска
   ============================================================ */
.reserve { padding: 40px; }
.reserve__title {
  margin: 0 0 24px;
  text-align: center;
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  color: var(--c-50);
}
.reserve__form {
  display: flex;
  gap: 16px;
}
.reserve__field {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 48px;
  padding: 0 48px 0 16px;
  background: var(--c-50);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow .2s;
}
.reserve__field:hover { box-shadow: 0 0 0 2px var(--c-teal-dark); }
.reserve__control {
  font: inherit;
  letter-spacing: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: var(--c-1000);
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.reserve__control:focus { outline: none; }
.reserve__control::-webkit-calendar-picker-indicator { display: none; }
.reserve__control::-webkit-outer-spin-button,
.reserve__control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.reserve__control[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.reserve__label {
  font-size: 12px;
  line-height: 16px;
  color: var(--c-500);
}
.reserve__value {
  font-size: 14px;
  line-height: 18px;
  color: var(--c-1000);
}
.reserve__icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-500);
}
.reserve__submit { flex: 0 0 auto; min-width: 218px; border-radius: 8px; }

/* ============================================================
   5. CAPSULE — тёмная секция, табы с fade
   ============================================================ */
.capsule {
  position: relative;
  width: 100%;
  height: auto;
  padding: 40px;
  border-radius: var(--radius-card);
  background: var(--c-950);
}
.capsule__heading {
  position: absolute;
  top: 43px;
  left: 56px;
  z-index: 2;
  color: var(--c-100);
}
.capsule__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
  height: auto;
}
.capsule__media { position: relative; width: 100%; height: auto; aspect-ratio: 624 / 625; }
.capsule__media-track { width: 100%; height: 100%; }
.capsule__slide { width: 100%; height: 100%; }
.capsule__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px; /* fallback для браузеров без mask-image */
  transition: opacity .3s ease;
  /* «папочная» форма Img из Figma (10348:21185, 624×624.74), нормализована
     в viewBox 100×100 c preserveAspectRatio='none' → тянется под любой размер.
     fill обязан быть непрозрачным: CSS-маска читает alpha */
  --capsule-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M 17.18 8.3 C 20.28 8.26 25.06 0 26.5 0 L 94.17 0 C 100.56 -0.12 100 5.94 100 5.94 L 100 95.32 C 100.05 97.17 97.14 100.01 95.19 100 L 7.62 100 C 6.36 99.36 0.45 93.65 0 92.13 L 0 15.67 C -0.09 9.31 3.66 8.56 3.66 8.56 L 17.18 8.3 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--capsule-mask);
          mask-image: var(--capsule-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  .capsule__img { border-radius: 0; } /* форма целиком в маске */
}
.capsule__img.is-fading { opacity: 0; }
/* mobile-переключатель типа (виден только < 600 — responsive.css) */
.capsule__select-wrap { display: none; }
.capsule__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,13,13,.5);
}
.capsule__arrow--prev { left: 16px; }
.capsule__arrow--next { right: 16px; }
.capsule__arrow .icon { color: var(--c-100); }

.capsule__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 40px;
}
.capsule__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.capsule__tab {
  height: 56px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-50);
  background: transparent;
  color: var(--c-100);
  font-size: 24px;
  line-height: 32px;
  transition: background-color .25s ease;
}
.capsule__tab:hover { background: rgba(255,255,255,.08); }
.capsule__tab.is-active { background: var(--c-800); }

.capsule__panel {
  display: none;
  flex-direction: column;
  flex: 1;
  margin-top: 40px;
  animation: capsuleFade .3s ease;
}
.capsule__panel.is-active { display: flex; }
@keyframes capsuleFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.capsule__features {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 24px 0 0;
  padding: 0;
}
.capsule__features img { width: 40px; height: 40px; }
.capsule__btn { margin-top: auto; align-self: flex-start; }
.capsule__btn .icon { color: var(--c-100); }

/* ============================================================
   6. BENEFITS — слайдер по 1 карточке + scroll-stacking секции
   ============================================================ */
.benefits { padding: 40px; }
.benefits__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.benefits__heading-col { display: flex; flex-direction: column; }
.benefits__arrows { margin-top: auto; display: flex; gap: 16px; }
.benefits__desc-col { display: flex; flex-direction: column; gap: 24px; }

.benefits__viewport {
  position: relative;
  margin-top: 64px;
  overflow: hidden;
  height: 360px;
}
.benefits__track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
.benefit-card {
  flex: 0 0 316px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: var(--c-50);
  border: 1px solid var(--c-150);
  border-radius: var(--radius-md);
  padding-bottom: 40px;
}
.benefit-card img {
  width: 314px;
  height: 140.6px;
  object-fit: cover;
  margin: 1px 1px 0;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.benefit-card__text {
  margin: auto 24px 0;
  text-align: center;
  font-size: 24px;
  line-height: 32px;
}

/* ============================================================
   7/11/14. BANNERS
   ============================================================ */
.banner { position: relative; width: 100%; }

/* Banner 1 — жёлтый, персонаж поверх правого верха */
.banner--1 { padding: 40px; min-height: 220px; overflow: hidden;}
.banner-1__content { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; }
.banner__title-xl {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 48px;
  color: var(--c-1000);
}
.banner-1__text {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  color: var(--c-1000);
}
.banner__man {
  position: absolute;
  z-index: 1;
  right: 40px;
  top: -30px;
  width: 862px;
  height: auto;
  pointer-events: none;
  /* анимация «плавания»: 10px вверх-вниз, цикл 3с */
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Banner 2 — teal CTA */
.banner-2-section { position: relative; isolation: isolate; padding-top: 53px; }
.banner-2-section::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 53px;
  bottom: 0;
  z-index: 0;
  border-radius: var(--radius-card);
  background: var(--c-teal);
}
.banner--2 { display: flex; align-items: flex-end; justify-content: space-between; padding: 40px; height: 220px; min-height: 220px; }
.banner-2-section .banner--2 { z-index: 1; background: transparent; }
.banner-2__text { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
.banner--2 .banner__title-xl { color: var(--c-50); }
.banner-2__sub { margin: 0; font-size: 24px; line-height: 32px; color: var(--c-50); }
.banner-2__btn .icon { color: var(--c-1000); }
.banner__man--2 {
  right: auto;
  left: calc(50% + 94px);
  top: -52px;
  width: 298px;
  animation: none;          /* drema2.png — без анимации */
}
.banner--2, .banner--3 { overflow: visible; }

/* Banner 3 — фото-фон */
.banner--3 {
  position: relative;
  min-height: 219px;
  height: 219px;
}
.banner-3__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-card);
}
.banner-3__content {
  position: absolute;
  top: 40px;
  left: 53.53%;
  z-index: 1;
  width: 474px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.banner--3 .banner__title-xl { color: var(--c-50); }
.banner-3__btn .icon { color: var(--c-1000); }
.banner__man--3 {
  left: 195px;
  right: auto;
  top: -24px;
  width: 330px;
  animation: float 3s ease-in-out infinite;
}

/* ============================================================
   8-10. FACILITY (coworking / bar / playroom)
   Scroll-stacking по референсу «Мои курсы»: карточка фиксируется
   под пилюлей хедера, следующая наезжает и перекрывает по z-index
   ============================================================ */
.facility-stack > .section {
  position: sticky;
  top: var(--stack-top, 121px);      /* 121px на desktop; mobile/tablet считает JS (safe pin) */
  z-index: 1;
  scroll-margin-top: 140px; /* якорь #services не прятать под пилюлей */
}
.facility-stack > .section:nth-child(2) { z-index: 2; }
.facility-stack > .section:nth-child(3) { z-index: 3; }
/* spacer удерживает карточки 1-2 на линии, пока игровая (последняя)
   не подъедет и не перекроет их — без него они отпускаются
   одновременно с приездом следующей (высоты почти равны) */
.facility-stack::after {
  content: "";
  display: block;
  height: 200px;
}

.facility {
  display: flex;
  gap: 40px;
  padding: 40px;
}
/* DOM: info первым, media вторым; визуально у обычной карточки
   фото слева (row-reverse + pack к левому краю), у --reverse — фото справа */
.facility        { flex-direction: row-reverse; justify-content: flex-end; }
.facility--reverse { flex-direction: row; }
.facility__media {
  flex: 0 0 auto;
  width: 636px;
  height: 636px;
  margin: 0;                 /* сброс swiper-css margin:0 auto */
  overflow: hidden;
  border-radius: 21px;       /* fallback для браузеров без mask-image */
  /* «папочная» форма фото услуг из Figma (img_coworking/img_bar/img_playroom,
     636×636), нормализована в viewBox 100×100 c preserveAspectRatio='none'
     → тянется под любые размеры слайдов; совпадает с alpha-контуром,
     запечённым в coworking/bar/playroom.png. fill непрозрачный: маска
     читает alpha; маску несёт контейнер — действует на все слайды */
  --facility-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M 17.26 3.48 C 19.66 3.41 20.85 0 22.29 0 L 95.85 0 C 99.05 0.06 100 3.48 100 3.48 L 100 93.99 C 100.23 97.91 98.09 100.07 95.85 100 L 7.78 100 C 0.31 94.4 0 91.8 0 91.8 L 0 7.67 C 0.05 6.3 2.08 4.47 2.93 4.02 C 5.14 3.36 14.49 3.56 17.26 3.48 Z' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--facility-mask);
          mask-image: var(--facility-mask);
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}
@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  /* форма целиком в маске контейнера; радиус img убираем, чтобы
     у «прямых» краёв маски не просвечивала карточка сквозь углы фото */
  .facility__media,
  #services .facility__media,
  .facility__img { border-radius: 0; }
}
#services .facility__media { height: 633px; }
.facility__track,
.facility__slide { width: 100%; height: 100%; }
.facility__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
}
.facility__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 24px;
}
.facility__tag {
  display: block;
  height: 29px;
  font-size: 0;
  line-height: 29px;
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 29px;
}
.facility__tag--coworking { width: 213px; background-image: url("../assets/img/m99-coworking.png"); }
.facility__tag--bar { width: 292px; background-image: url("../assets/img/m99-bar.png"); }
.facility__tag--playroom { width: 166px; background-image: url("../assets/img/m99-playroom.png"); }
.facility__title {
  margin: 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 56px;
  color: var(--c-1000);
}
.facility__text { margin-top: 16px; max-width: 480px; }
.facility__arrows { margin-top: 40px; display: flex; gap: 16px; }

/* ============================================================
   12. GALLERY — карусель: боковое фото «приезжает» в центр и растёт
   (геометрию ведёт GallerySection.vue: слоты центр/бока, только transform)
   ============================================================ */
.gallery-section { display: block; }
.gallery { position: relative; overflow: hidden; touch-action: pan-y; }
.gallery__viewport {
  position: relative;
  height: 640px;
}
.gallery__slide {
  position: relative;
  will-change: transform;
}
.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 21px;
}
.gallery__arrows {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 40px 0 64px;
}
.gallery .slider-btn--light {
  border-color: var(--c-50);
  background: var(--c-50);
}
.gallery .slider-btn--light:hover { background: var(--c-100); }

/* ============================================================
   13. FAQ — аккордеон single-open
   ============================================================ */
.faq { padding: 40px; }
.faq__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;   /* row 2px = межитемный зазор колонок, column 16px */
  margin-top: 80px;
}
/* DOM последователен 001–006; row-major 2 колонки дают
   визуально 001/003/005 слева, 002/004/006 справа */
.faq__item {
  background: var(--c-95);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: background-color .25s ease;
}
.faq__item.is-open { background: var(--c-95); }
.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  text-align: left;
}
.faq__q {
  display: block;
  font-size: 24px;
  line-height: 32px;
  color: var(--c-1000);
}
.faq__number {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 24px;
  color: var(--c-1000);
}
.faq__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.faq__icon .icon { color: var(--c-900); }
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq__item.is-open .faq__answer { grid-template-rows: 1fr; }
.faq__answer-inner {
  overflow: hidden;
  padding-top: 0;
  font-size: 18px;
  line-height: 24px;
  color: var(--c-500);
}
.faq__item.is-open .faq__answer-inner { padding-top: 8px; }

/* ============================================================
   15. REVIEWS — свёрстанные карточки (структура Яндекс-отзыва)
   ============================================================ */
.reviews { padding: 40px 40px 64px; }
.reviews__title { line-height: 24px; }
.reviews__body {
  position: relative;
  width: min(100%, 1369px);
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
}
.reviews__viewport {
  width: min(100%, 1315.31px);
  margin: 0 auto;
  overflow: hidden;
}
.reviews__track {
  display: flex;
  width: 100%;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}
/* capsule-media fade при смене типа (sliders.js) */
.capsule__media { transition: opacity .15s ease; }
.capsule__media.is-fading { opacity: 0; }
.review-card {
  position: relative;
  flex: 0 0 430px;
  height: 304px;
  padding: 32px;
  border: 1px solid var(--c-150);
  background: var(--c-95);
  border-radius: 16px;
  overflow: hidden;
  color: var(--c-1000);
  font-family: var(--font-main);
}
.review-card__head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.review-card__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 430px 304px;
}
.review-card__avatar--photo-1 { background-image: url("../assets/img/review-1.png"); background-position: -24px -25px; }
.review-card__avatar--photo-2 { background-image: url("../assets/img/review-2.png"); background-position: -24px -25px; }
.review-card__avatar--photo-3 { background-image: url("../assets/img/review-3.png"); background-position: -24px -25px; }
img.review-card__avatar {
  display: block;
  object-fit: cover;
  background: none;
}
.review-card__name {
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}
.review-card__stars {
  margin-left: auto;
  color: #ffbd00;
  font-size: 21px;
  line-height: 20px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.review-card__text {
  margin: 0 0 0 56px;
  font-size: 18px;
  line-height: 24px;
}
.review-card__more {
  display: block;
  margin-left: 56px;
  color: #0675e8;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.review-card__photos {
  display: flex;
  gap: 4px;
  margin: 16px 0 0 56px;
}
.review-card__photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background-image: url("../assets/img/review-2.png");
  background-repeat: no-repeat;
  background-size: 430px 304px;
}
.review-card__photo--1 { background-position: -81px -183px; }
.review-card__photo--2 { background-position: -136px -183px; }
.review-card__photo--3 { background-position: -192px -183px; }
img.review-card__photo {
  display: block;
  object-fit: cover;
  background: none;
}
.review-card__photo--more {
  display: grid;
  place-items: center;
  background-position: -248px -183px;
  color: #fff;
  font-size: 28px;
}
.review-card__source {
  position: absolute;
  left: 88px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: 18px;
}
.review-card__source span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f44;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--c-50);
}
.reviews__arrow--prev { left: 56px; }
.reviews__arrow--next { right: 0; }

/* ============================================================
   16. CONTACTS — квадратные карточки + Яндекс.Карта
   ============================================================ */
.contacts { display: flex; gap: 16px; width: 100%; }
.contacts__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
  flex: 1 1 0;
}
.contacts__card {
  aspect-ratio: 1/1;                 /* квадратные карточки-стретч */
  background: var(--c-50);
  border-radius: var(--radius-md);
  padding: 32px;
}

.contacts__card-title {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  color: var(--c-1000);
}
.contacts__socials { display: flex; gap: 16px; margin-top: 32px; }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--c-900);
}
.social .icon { color: var(--c-900); }
.social--white .icon { color: var(--c-50); }
.contacts__map {
  flex: 1 1 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.contacts__map img { width: 100%; height: 100%; object-fit: cover; }
.contacts__map .yandex-map { width: 100%; height: 100%; }
.yandex-map img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   17. FOOTER — teal
   ============================================================ */
.footer {
  position: relative;
  padding: 64px 40px 40px;
  overflow: hidden;
}
.footer__bg-pattern {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 632px;
  height: auto;
  opacity: .9;
  pointer-events: none;
}
.footer__top {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  height: 166px;
}
.footer__logo { width: 100%; }
.footer__logo img { width: 320px; height: auto; }
.footer__cols {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);   /* 3 равные колонки с отступами 24 */
  gap: 24px;
}
.footer__menu { display: flex; flex-direction: column; gap: 16px; }
.footer__menu a {
  font-size: 18px;
  line-height: 24px;
  color: var(--c-50);
}
.footer__menu a:hover { text-decoration: underline; }
.footer__address { display: flex; flex-direction: column; gap: 38px; }
.footer__address .text-m { color: var(--c-50); }
.footer__socials {
  display: flex;
  justify-content: flex-end;               /* соцсети с правой выключкой */
  gap: 16px;
}
.footer__bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: 24px;
  margin-top: 160px;
  color: var(--c-50);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Общие элементы оверлеев (menu): крест 40x40
   ============================================================ */
.close-x {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.close-x__line {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-900);
  transform-origin: center;
}
.close-x__line:first-child { transform: translateY(-50%) rotate(45deg); }
.close-x__line:last-child  { transform: translateY(-50%) rotate(-45deg); }

/* dialog-оверлей: закрыт → display:none (нативно), стили состояний в responsive.css */
.mobile-menu { color: var(--c-900); }
.mobile-menu {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}
.mobile-menu.is-visible { transform: translateY(0); opacity: 1; }
.mobile-menu:not([open]) { display: none; }
.mobile-booking-bar[hidden] { display: none; }
