/* ===== fonts.css ===== */
/* Шрифт сайта — Onest, локальные копии. Обращений к Google нет.
   400/500 — текст и интерфейс, 600/700 — заголовки. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Onest-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Onest-400-latin.woff2') format('woff2');
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Onest-500-latin.woff2') format('woff2');
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Onest-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Onest-600-latin.woff2') format('woff2');
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Onest-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Onest-700-latin.woff2') format('woff2');
  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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== style.css ===== */
/* ==========================================================================
   Стихия СПА — базовая дизайн-система
   Палитра и шрифты сохранены со старого сайта, подтянуты сетка,
   типографика, отступы и состояния элементов.
   ========================================================================== */

/* --- 1. Токены ----------------------------------------------------------- */

:root {
  /* Фирменные цвета */
  --deep:        #232323;   /* основной тёмный изумруд */
  --deep-2:      #373737;   /* изумруд светлее, для кнопок и подложек */
  --deep-3:      #3f3f3f;
  --gold:        #bbbbbb;   /* золото — акценты, заголовки на тёмном */
  --gold-deep:   #959595;   /* золото приглушённое — hover, обводки */
  --gold-soft:   #dbdbdb;
  --mint:        #b5b5b5;
  --cream:       #d1d1d1;

  /* Нейтральные */
  --white:       #ffffff;
  --sand:        #f4f4f4;   /* светлый фон секций */
  --sand-2:      #eaeaea;
  --text:        #262626;   /* основной текст на светлом */
  --text-muted:  #676767;
  --line:        rgba(35, 35, 35, .14);
  --line-gold:   rgba(187, 187, 187, .38);

  /* Типографика: один шрифт на весь сайт — Onest.
     Заголовки отличаются от текста весом и плотностью, а не гарнитурой. */
  --font-head: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Ритм: единая шкала отступов */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Сетка */
  --wrap: 1280px;
  --wrap-narrow: 880px;
  --gutter: 24px;

  /* Прочее */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(35, 35, 35, .07);
  --shadow:    0 8px 30px rgba(35, 35, 35, .11);
  --shadow-lg: 0 18px 50px rgba(35, 35, 35, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
}

@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --header-h: 60px;
  }
}

/* --- 2. Сброс и база ----------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  /* clip, а не hidden: hidden делает body отдельным контейнером прокрутки,
     из-за чего ломаются переходы к якорям и программная прокрутка */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Атрибут hidden должен побеждать любой display из CSS */
[hidden] { display: none !important; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- 3. Типографика ------------------------------------------------------ */

/* Заголовки — тот же Onest, что и текст, но плотнее и жирнее.
   Гротеск в крупном размере выглядит массивнее серифа, поэтому размеры
   чуть меньше прежних, интерлиньяж плотнее, а трекинг отрицательный —
   иначе крупные буквы «рассыпаются». */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 var(--sp-4);
  letter-spacing: -.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(31px, 4.3vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}
h4 {
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.6;
  color: var(--text-muted);
}

.muted { color: var(--text-muted); }
.small { font-size: 14px; line-height: 1.55; }

/* Мелкая надпись над заголовком */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 var(--sp-3);
}

/* --- 4. Раскладка -------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section--tight { padding-block: clamp(40px, 5vw, 64px); }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Тёмная секция */
.section--dark {
  background: var(--deep);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--gold); }

.section--dark .lead,
.section--dark .muted { color: rgba(255, 255, 255, .74); }

.section--dark .eyebrow { color: var(--gold); }

/* Светлая песочная секция */
.section--sand { background: var(--sand); }

/* Универсальные сетки */
.grid { display: grid; gap: var(--sp-5); }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Плитка услуг: 10 карточек ровно ложатся в 5 колонок */
.grid--services { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1180px) {
  .grid--services { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--services { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .grid--services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
}

/* --- 5. Кнопки ----------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .22s var(--ease),
              box-shadow .22s var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn:disabled,
.btn[disabled] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}

.btn:disabled:hover,
.btn[disabled]:hover { transform: none; }

/* Основная — золото */
.btn--primary {
  background: var(--gold);
  color: var(--deep);
}

.btn--primary:hover {
  background: var(--gold-soft);
  box-shadow: var(--shadow);
}

/* Тёмная */
.btn--dark {
  background: var(--deep-2);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--gold-deep);
  box-shadow: var(--shadow);
}

/* Контурная */
.btn--ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--ghost:hover {
  background: var(--gold);
  color: var(--deep);
}

/* Контурная на светлом фоне */
.btn--outline {
  background: transparent;
  border-color: var(--deep-2);
  color: var(--deep-2);
}

.btn--outline:hover {
  background: var(--deep-2);
  color: var(--white);
}

.btn--wide { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
}

/* --- 6. Карточки --------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease),
              border-color .28s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--line-gold);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sand-2);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.card:hover .card__media img { transform: scale(1.045); }

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-3);
  padding: var(--sp-5);
}

.card__title {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0;
}

.card__descr {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.card__foot {
  margin-top: auto;
  padding-top: var(--sp-3);
}

/* Карточка-плитка услуги (картинка + подпись поверх) */
.tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease);
}

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
              rgba(35, 35, 35, .88) 0%,
              rgba(35, 35, 35, .42) 42%,
              rgba(35, 35, 35, .08) 100%);
  transition: opacity .35s var(--ease);
}

.tile:hover img { transform: scale(1.06); }

.tile__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--sp-5);
  font-family: var(--font-head);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}

/* --- 7. Прайс ------------------------------------------------------------ */

.price {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.price th {
  padding: 0 var(--sp-3) var(--sp-3);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.price th:first-child { text-align: left; }

.price td {
  padding: var(--sp-4) var(--sp-3);
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price td:first-child {
  text-align: left;
  white-space: normal;
  font-weight: 600;
}

.price tr:hover td { background: rgba(187, 187, 187, .08); }

.price__group {
  font-family: var(--font-head);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: var(--sp-7) 0 var(--sp-4);
}

.price__group:first-child { margin-top: 0; }

/* Тёмный вариант прайса */
.section--dark .price th { color: rgba(255, 255, 255, .6); }
.section--dark .price td { border-top-color: var(--line-gold); }
.section--dark .price tr:hover td { background: rgba(187, 187, 187, .1); }
.section--dark .price__group { color: var(--gold); }

/* На мобильном таблица прокручивается, а не ломает страницу */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 560px) {
  .price { font-size: 15px; }
  .price td { padding: var(--sp-3) var(--sp-2); }
}

/* --- 8. Программа: карточка с составом ----------------------------------- */

.program {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4) var(--sp-6);
  align-items: start;
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line);
}

.program:first-of-type { border-top: 0; }

/* Программа с фотографией: снимок слева, описание справа */
.program--with-photo {
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
}

.program__media {
  grid-row: span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
}

.program__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.program:hover .program__media img { transform: scale(1.04); }

.program__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3) var(--sp-5);
}

.program__name {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0;
}

.program__meta {
  display: flex;
  align-items: baseline;
  gap: var(--sp-4);
  text-align: right;
  white-space: nowrap;
}

.program__duration {
  font-size: 15px;
  color: var(--text-muted);
}

.program__price {
  font-family: var(--font-body);
  font-size: clamp(21px, 1.9vw, 26px);
  font-weight: 600;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}

.program__body { grid-column: 1 / -1; }

/* В варианте с фото описание остаётся в правой колонке, рядом со снимком */
.program--with-photo .program__body { grid-column: 2; }

.program__descr {
  max-width: 62ch;
  color: var(--text-muted);
  margin: 0 0 var(--sp-4);
}

.program__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2) var(--sp-6);
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
}

.program__list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
}

.program__list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.program__note {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.section--dark .program { border-top-color: var(--line-gold); }
.section--dark .program__name,
.section--dark .program__price { color: var(--gold); }
.section--dark .program__descr,
.section--dark .program__duration,
.section--dark .program__note { color: rgba(255, 255, 255, .72); }

@media (max-width: 900px) {
  .program--with-photo { grid-template-columns: 1fr; }
  .program--with-photo .program__body { grid-column: 1; }
  .program__media { grid-row: auto; }
  .program__media img { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .program {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
    padding: var(--sp-6) 0;
  }
  .program__head { gap: var(--sp-2); }
  .program__meta {
    justify-content: space-between;
    width: 100%;
  }
  .program__list { grid-template-columns: 1fr; }
}

/* --- 9. Появление при скролле -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- 10. Служебное ------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  padding: var(--sp-3) var(--sp-4);
  background: var(--gold);
  color: var(--deep);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus { top: var(--sp-3); }

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--sp-7);
}

.section--dark .divider { background: var(--line-gold); }

/* ===== layout.css ===== */
/* ==========================================================================
   Стихия СПА — шапка, навигация, подвал
   ========================================================================== */

/* --- Верхняя строка с контактами ----------------------------------------- */

.topbar {
  background: var(--deep);
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.4;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 44px;
  padding-block: var(--sp-2);
}

.topbar__group {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.topbar a:hover { color: var(--gold); }

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  white-space: nowrap;
}

.topbar__item svg {
  width: 15px;
  height: 15px;
  flex: none;
  opacity: .75;
}

.socials {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.socials a {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.socials a:hover {
  background: var(--gold);
  color: var(--deep);
  transform: translateY(-2px);
}

.socials svg { width: 16px; height: 16px; }

@media (max-width: 900px) {
  .topbar { display: none; }
}

/* --- Шапка --------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(35, 35, 35, .97);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-bottom: 1px solid rgba(187, 187, 187, .2);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* Логотип */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex: none;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
}

.logo img { width: 34px; height: 34px; }

.logo:hover { color: var(--gold-soft); }

/* Навигация */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.nav__link {
  position: relative;
  padding-block: var(--sp-2);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--gold); }

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Выпадающий список услуг */
.nav__item { position: relative; }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: var(--sp-2) 0;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
}

.nav__toggle svg {
  width: 11px;
  height: 11px;
  transition: transform .25s var(--ease);
}

.nav__item:hover .nav__toggle,
.nav__toggle[aria-expanded="true"] { color: var(--gold); }

.nav__item:hover .nav__toggle svg,
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 2px var(--sp-5);
  min-width: 460px;
  padding: var(--sp-5);
  margin: 0;
  list-style: none;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease),
              visibility .22s var(--ease);
}

.submenu::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 14px;              /* мостик, чтобы меню не закрывалось при переходе мыши */
}

.nav__item:hover .submenu,
.nav__item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu a {
  display: block;
  padding: var(--sp-3);
  border-radius: var(--radius);
  font-size: 15px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.submenu a:hover {
  background: var(--sand);
  color: var(--deep-2);
}

/* Кнопка записи в шапке */
/* Дубли кнопок — только для раскрытого мобильного меню */
.nav__mobile-extra { display: none; }

.header__cta { flex: none; }

.header__cta .btn {
  min-height: 42px;
  padding: 10px 22px;
  font-size: 14px;
}

/* Девять пунктов меню плюс логотип и кнопка не влезают в узкий ноутбук:
   сначала поджимаем меню, потом убираем кнопку — она есть в верхней строке. */
@media (max-width: 1420px) {
  .nav { gap: var(--sp-4); }
  .nav__link,
  .nav__toggle { font-size: 14px; }
}

@media (max-width: 1340px) {
  .header__cta { display: none; }
}

@media (max-width: 1120px) {
  .nav { gap: var(--sp-3); }
  .nav__link,
  .nav__toggle { font-size: 13.5px; }
}

/* --- Бургер и мобильное меню --------------------------------------------- */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  /* Размытие фона создаёт для потомков новую систему координат,
     из-за чего position:fixed у меню считался бы от шапки, а не от окна.
     На мобильных оно не нужно — фон и так плотный. */
  .header {
    backdrop-filter: none;
    background: var(--deep);
  }

  .burger { display: block; }
  .nav,
  .header__cta { display: none; }

  /* Раскрытое мобильное меню */
  .nav.is-open {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: block;
    height: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-4) var(--gutter) var(--sp-9);
    background: var(--deep);
    animation: nav-in .26s var(--ease);
  }

  @keyframes nav-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
  }

  .nav.is-open .nav__link,
  .nav.is-open .nav__toggle {
    display: flex;
    width: 100%;
    padding: var(--sp-4) 0;
    font-size: 18px;
    border-bottom: 1px solid rgba(187, 187, 187, .16);
  }

  .nav.is-open .nav__link::after { display: none; }

  .nav.is-open .nav__toggle { justify-content: space-between; }

  .nav.is-open .submenu {
    position: static;
    transform: none;
    display: none;
    grid-template-columns: 1fr;
    min-width: 0;
    padding: var(--sp-2) 0 var(--sp-4);
    background: transparent;
    box-shadow: none;
    color: var(--white);
    opacity: 1;
    visibility: visible;
  }

  .nav.is-open .nav__toggle[aria-expanded="true"] + .submenu { display: grid; }

  .nav.is-open .submenu a {
    padding: var(--sp-3) var(--sp-4);
    color: rgba(255, 255, 255, .82);
  }

  .nav.is-open .submenu a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--gold);
  }

  .nav.is-open .nav__mobile-extra {
    display: grid;
    gap: var(--sp-3);
    margin-top: var(--sp-6);
  }

  body.is-locked { overflow: hidden; }
}

/* --- Хлебные крошки ------------------------------------------------------ */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  font-size: 14px;
  color: var(--text-muted);
}

.crumbs a:hover { color: var(--gold-deep); }

.crumbs__sep { opacity: .5; }

/* --- Подвал -------------------------------------------------------------- */

.footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .74);
  font-size: 15px;
}

.footer a:hover { color: var(--gold); }

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--sp-6) var(--sp-7);
  padding-block: clamp(48px, 6vw, 72px);
}

.footer__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-4);
}

.footer__list {
  display: grid;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__phone {
  display: block;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: var(--sp-2);
}

.footer__phone:hover { color: var(--gold); }

.footer .socials { margin-top: var(--sp-5); }

.footer__bottom {
  padding-block: var(--sp-5);
  border-top: 1px solid rgba(187, 187, 187, .2);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .55);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  margin-bottom: var(--sp-3);
}

.footer__req { max-width: 780px; }

@media (max-width: 1100px) {
  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }
}

@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* --- Плашка с предупреждением о противопоказаниях ------------------------ */

.warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--gutter);
  background: var(--sand-2);
  font-size: 14px;
  text-align: center;
  color: var(--text-muted);
}

.warning a {
  color: var(--deep-2);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.warning a:hover { color: var(--gold-deep); }

/* --- Плавающая кнопка онлайн-записи -------------------------------------- */

.float-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.float-cta:hover {
  transform: scale(1.06);
  background: var(--gold-soft);
}

@media (max-width: 640px) {
  .float-cta {
    width: 68px;
    height: 68px;
    font-size: 11px;
    right: 14px;
    bottom: 14px;
  }
}

/* --- Куки-баннер --------------------------------------------------------- */

.cookie {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: min(920px, calc(100% - 32px));
  padding: var(--sp-4) var(--sp-5);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  line-height: 1.5;
}

.cookie[hidden] { display: none; }

.cookie a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie .btn {
  flex: none;
  min-height: 42px;
  padding: 10px 22px;
  font-size: 14px;
}

@media (max-width: 640px) {
  .cookie {
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    text-align: center;
  }
}

/* ===== components.css ===== */
/* ==========================================================================
   Стихия СПА — первый экран, формы, модальное окно, галереи
   ========================================================================== */

/* --- Первый экран с видео ------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 88vh, 860px);
  padding-block: clamp(64px, 10vh, 120px);
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Кадр и видео лежат друг на друге: сначала виден кадр,
   при запуске видео он плавно гаснет */
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media img { transition: opacity .6s var(--ease); }

/* Затемнение: слева плотнее, чтобы текст читался на любом кадре */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 23, 23, .92) 0%, rgba(23, 23, 23, .74) 38%,
                    rgba(23, 23, 23, .42) 68%, rgba(23, 23, 23, .34) 100%),
    linear-gradient(to top, rgba(23, 23, 23, .6), transparent 42%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content { max-width: 780px; }

.hero h1 {
  color: var(--white);
  margin-bottom: var(--sp-5);
  text-wrap: balance;
}

/* На широком экране заголовку даём больше места, чтобы он лёг в три строки.
   Остальной текст первого экрана остаётся узким и читаемым. */
@media (min-width: 1200px) {
  .hero__content { max-width: 1060px; }
  .hero h1 { max-width: 1020px; }
  .hero__offer,
  .hero__text { max-width: 62ch; }
}

.hero__offer {
  font-family: var(--font-body);
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--gold);
  margin-bottom: var(--sp-3);
}

.hero__text {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
  max-width: 58ch;
  margin-bottom: var(--sp-6);
}

.hero .btn-row { margin-bottom: clamp(32px, 5vh, 56px); }

/* Преимущества под кнопками */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  max-width: 1000px;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.hero__fact {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.hero__fact svg {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 3px;
  color: var(--gold);
}

.hero__fact b {
  display: block;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hero__fact span {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 860px) {
  .hero__facts { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* Компактный первый экран внутренних страниц */
.page-hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 88px);
  background: var(--deep);
  color: var(--white);
  overflow: hidden;
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .38;
}

.page-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(35, 35, 35, .95), rgba(35, 35, 35, .6));
}

.page-hero .wrap { position: relative; z-index: 1; }

.page-hero h1 { color: var(--gold); margin-bottom: var(--sp-3); }

.page-hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, .8);
}

.page-hero .crumbs { color: rgba(255, 255, 255, .6); }
.page-hero .crumbs a:hover { color: var(--gold); }

/* --- Формы --------------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--sp-4);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
}

.field {
  display: grid;
  gap: 6px;
}

.field > label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;             /* 16px — чтобы iOS не зумил при фокусе */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(187, 187, 187, .22);
}

.field input:user-invalid {
  border-color: #757575;
}

/* Согласия */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}

.consent a {
  color: var(--deep-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent a:hover { color: var(--gold-deep); }

/* Honeypot — скрытое поле против спам-ботов */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 1.2em;
}

.form__status--ok  { color: #626262; font-weight: 600; }
.form__status--err { color: #757575; font-weight: 600; }

/* Форма на тёмном фоне */
.section--dark .field > label { color: rgba(255, 255, 255, .62); }
.section--dark .consent { color: rgba(255, 255, 255, .66); }
.section--dark .consent a { color: var(--gold); }

/* --- Кнопки мессенджеров под формой -------------------------------------- */

.msgs {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

.msgs__label {
  margin: 0 0 var(--sp-3);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.msgs__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}

.msg svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.msg:hover {
  transform: translateY(-2px);
  color: var(--white);
}

.msg--wa:hover  { background: #939393; border-color: #939393; }
.msg--tg:hover  { background: #8a8a8a; border-color: #8a8a8a; }
.msg--vk:hover  { background: #636363; border-color: #636363; }
.msg--max:hover { background: #6a6a6a; border-color: #6a6a6a; }

/* На тёмном фоне */
.section--dark .msgs { border-top-color: var(--line-gold); }
.section--dark .msgs__label { color: rgba(255, 255, 255, .66); }

.section--dark .msg {
  background: transparent;
  border-color: rgba(255, 255, 255, .22);
  color: var(--white);
}

@media (max-width: 700px) {
  .msgs__row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .msg span { display: none; }
  .msgs__row { grid-template-columns: repeat(4, 1fr); }
}

/* --- Модальное окно ------------------------------------------------------ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(23, 23, 23, .72);
  backdrop-filter: blur(4px);
  overflow-y: auto;
  animation: modal-in .22s var(--ease);
}

.modal[hidden] { display: none; }

@keyframes modal-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__box {
  position: relative;
  width: min(560px, 100%);
  margin: auto;
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.modal__close:hover {
  background: var(--sand);
  color: var(--deep);
}

.modal__title {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin: 0 0 var(--sp-2);
  padding-right: 40px;
}

.modal__descr {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 var(--sp-5);
}

/* --- Слайдер: стрелки по бокам, точки снизу ------------------------------ */

.slider { position: relative; }

.slider__viewport {
  overflow: hidden;
}

.slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--slide-gap, 16px) * (var(--per-view, 4) - 1)) / var(--per-view, 4));
  gap: var(--slide-gap, 16px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.slider__track::-webkit-scrollbar { display: none; }

.slider__track > * { scroll-snap-align: start; }

/* Стрелки */
.slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--deep);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color .2s var(--ease), color .2s var(--ease),
              opacity .2s var(--ease), transform .2s var(--ease);
}

.slider__arrow:hover {
  background: var(--gold);
  color: var(--deep);
  transform: scale(1.06);
}

.slider__arrow svg { width: 18px; height: 18px; }

.slider__arrow--prev { left: -22px; }
.slider__arrow--next { right: -22px; }

.slider__arrow[disabled] {
  opacity: .3;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* Точки */
.slider__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}

.slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 35, 35, .2);
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease), width .2s var(--ease);
}

.slider__dot:hover { background: rgba(35, 35, 35, .4); }

.slider__dot[aria-current="true"] {
  width: 26px;
  border-radius: 5px;
  background: var(--gold-deep);
}

/* На тёмном фоне */
.section--dark .slider__dot { background: rgba(255, 255, 255, .25); }
.section--dark .slider__dot[aria-current="true"] { background: var(--gold); }

.section--dark .slider__arrow {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  color: var(--white);
}

.section--dark .slider__arrow:hover {
  background: var(--gold);
  color: var(--deep);
}

/* Стрелки внутрь, когда снаружи нет места */
@media (max-width: 1400px) {
  .slider__arrow--prev { left: 8px; }
  .slider__arrow--next { right: 8px; }
}

/* На узких экранах листаем свайпом, стрелки убираем */
@media (max-width: 700px) {
  .slider__arrow { display: none; }
}

/* --- Галереи ------------------------------------------------------------- */

/* Горизонтальная лента с прокруткой (отзывы, мастера) */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: var(--sp-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--sp-4);
  scrollbar-width: thin;
}

.scroller > * { scroll-snap-align: start; }

.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb {
  background: var(--line-gold);
  border-radius: 3px;
}

@media (min-width: 1025px) {
  .scroller { grid-auto-columns: minmax(260px, 1fr); }
}

/* Карточка мастера */
.master {
  text-align: center;
}

.master__photo {
  aspect-ratio: 3 / 4;
  margin-bottom: var(--sp-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
}

.master__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.master:hover .master__photo img { transform: scale(1.05); }

.master__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0;
}

/* Отзыв-скриншот */
.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.review img {
  width: 100%;
  height: auto;
}

/* --- Табы (хаммам, бочка, купель, массаж) -------------------------------- */

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  padding: 0;
  list-style: none;
}

.tabs__btn {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--line-gold);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease);
}

.tabs__btn:hover { border-color: var(--gold); }

.tabs__btn[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--deep);
}

.tabs__panel[hidden] { display: none; }

.tabs__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.tabs__panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

@media (max-width: 860px) {
  .tabs__panel { grid-template-columns: 1fr; }
}

/* --- Список цен внутри карточки услуги ----------------------------------- */

/* Цены прижаты к низу карточки — так они выравниваются в ряду
   независимо от длины описания */
.card__prices { margin-top: auto; }
.card .card__foot { margin-top: 0; }

.pricelist {
  display: grid;
  gap: 2px;
  padding-top: var(--sp-2);
}

.pricerow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.pricerow:first-child { border-top: 0; }

.pricerow span { color: var(--text-muted); }

.pricerow b {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- Блок акции ---------------------------------------------------------- */

.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
}

.promo__price {
  font-family: var(--font-body);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--gold-deep);
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.promo__list {
  display: grid;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

.promo__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
}

.promo__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.promo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .promo { grid-template-columns: 1fr; }
}

/* --- Квиз ---------------------------------------------------------------- */

.quiz {
  padding: clamp(28px, 4vw, 48px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quiz__bar {
  height: 4px;
  margin-bottom: var(--sp-4);
  background: var(--sand-2);
  border-radius: 2px;
  overflow: hidden;
}

.quiz__bar-fill {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width .35s var(--ease);
}

.quiz__count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--sp-5);
}

.quiz__step {
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz__q {
  display: block;
  padding: 0;
  margin-bottom: var(--sp-5);
  font-family: var(--font-head);
  font-size: clamp(21px, 2.2vw, 27px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.quiz__opts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 560px) {
  .quiz__opts { grid-template-columns: 1fr; }
}

.quiz__opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}

.quiz__opt:hover { border-color: var(--gold); }

.quiz__opt input {
  flex: none;
  width: 20px;
  height: 20px;
  accent-color: var(--gold-deep);
  cursor: pointer;
}

.quiz__opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(187, 187, 187, .12);
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

.quiz__nav [data-quiz-next] { margin-left: auto; }

.quiz__step--final .form { margin-top: var(--sp-4); }

/* --- Уровни лояльности --------------------------------------------------- */

.levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.level {
  padding: var(--sp-6) var(--sp-5);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.level:nth-child(1) { background: #767676; }
.level:nth-child(2) { background: #959595; }
.level:nth-child(3) { background: #bbbbbb; color: var(--deep); }

.level__name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 var(--sp-2);
}

.level__descr {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  opacity: .92;
}

@media (max-width: 760px) {
  .levels { grid-template-columns: 1fr; }
}

/* --- Контакты ------------------------------------------------------------ */

.contacts {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.contacts__map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts__item { margin-bottom: var(--sp-5); }

.contacts__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contacts__value {
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .contacts { grid-template-columns: 1fr; }
}

/* --- Текстовые (юридические) страницы ------------------------------------ */

.doc {
  max-width: 78ch;
  font-size: 16px;
  line-height: 1.75;
}

.doc h2 {
  font-size: clamp(23px, 2.4vw, 30px);
  margin-top: var(--sp-7);
}

.doc h3 {
  font-size: clamp(19px, 1.8vw, 22px);
  margin-top: var(--sp-6);
}

.doc ul,
.doc ol {
  margin: 0 0 var(--sp-4);
  padding-left: 22px;
}

.doc li { margin-bottom: var(--sp-2); }

.doc a {
  color: var(--deep-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc a:hover { color: var(--gold-deep); }

/* --- Сколько карточек показывать в слайдерах ------------------------------ */

.slider--reviews { --per-view: 5; --slide-gap: 16px; }
.slider--masters { --per-view: 4; --slide-gap: 20px; }

@media (max-width: 1200px) {
  .slider--reviews { --per-view: 4; }
  .slider--masters { --per-view: 3; }
}

@media (max-width: 900px) {
  .slider--reviews { --per-view: 3; }
  .slider--masters { --per-view: 2; }
}

@media (max-width: 640px) {
  .slider--reviews { --per-view: 2; --slide-gap: 12px; }
  .slider--masters { --per-view: 2; --slide-gap: 12px; }
}

@media (max-width: 420px) {
  .slider--reviews { --per-view: 1; }
  .slider--masters { --per-view: 1; }
}

/* --- Две колонки: текст и фото на всю высоту ------------------------------ */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: stretch;
}

.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand-2);
  min-height: 100%;
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* Счётчик вместо точек, когда слайдов слишком много */
.slider__counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.section--dark .slider__counter { color: rgba(255, 255, 255, .7); }

/* --- Просмотр картинок на весь экран ------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  background: rgba(16, 16, 16, .94);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

/* Картинка не должна выходить за экран ни по одной стороне */
.lightbox__figure {
  position: relative;
  margin: 0;
  max-width: min(100%, 620px);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - clamp(96px, 16vh, 150px));
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  transform: scale(.97);
  opacity: 0;
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.lightbox.is-open .lightbox__img {
  transform: none;
  opacity: 1;
}

/* Кнопка закрытия */
.lightbox__close {
  position: absolute;
  top: clamp(10px, 2vw, 22px);
  right: clamp(10px, 2vw, 22px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}

.lightbox__close:hover {
  background: var(--gold);
  color: var(--deep);
  transform: rotate(90deg);
}

.lightbox__close svg { width: 18px; height: 18px; }

/* Стрелки */
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-top: -26px;
  padding: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              transform .2s var(--ease), opacity .2s var(--ease);
}

.lightbox__nav:hover {
  background: var(--gold);
  color: var(--deep);
  transform: scale(1.07);
}

.lightbox__nav svg { width: 20px; height: 20px; }

.lightbox__nav--prev { left: clamp(8px, 3vw, 40px); }
.lightbox__nav--next { right: clamp(8px, 3vw, 40px); }

.lightbox__nav[disabled] {
  opacity: .3;
  cursor: default;
  transform: none;
}

/* Счётчик снизу */
.lightbox__counter {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 3vh, 30px);
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

/* Подсказка, что картинку можно открыть */
.review { cursor: zoom-in; }

.review img { transition: transform .35s var(--ease), opacity .2s var(--ease); }
.review:hover img { transform: scale(1.03); }

@media (max-width: 700px) {
  .lightbox__nav {
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* --- Колесо удачи --------------------------------------------------------- */
/* Своя замена стороннему виджету: колесо рисуется на canvas, заявка уходит
   в тот же form.php. Разметку собирает template.py, логику — js/wheel.js. */

.wheel {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(19, 19, 19, .78);
  backdrop-filter: blur(5px);
  overflow-y: auto;
  animation: modal-in .25s var(--ease);
}

.wheel[hidden] { display: none; }

.wheel__card {
  position: relative;
  width: min(940px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(24px, 3.2vw, 44px);
  background:
    radial-gradient(120% 120% at 15% 0%, #424242 0%, #282828 55%, #1e1e1e 100%);
  border: 1px solid rgba(187, 187, 187, .34);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

.wheel__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}

.wheel__close:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
}

/* Колесо */

.wheel__stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 1;
  filter: drop-shadow(0 14px 34px rgba(0, 0, 0, .35));
}

.wheel__canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

/* Ступица: не крутится вместе с колесом */
.wheel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 23%;
  height: 23%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  background: var(--deep);
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.wheel__hub img {
  width: 56%;
  height: auto;
}

/* Указатель справа — как на прежнем виджете */
.wheel__pointer {
  position: absolute;
  right: -8px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-right: 26px solid var(--gold);
  filter: drop-shadow(-2px 2px 3px rgba(0, 0, 0, .4));
}

/* Правая колонка */

.wheel__pre {
  margin: 0 0 var(--sp-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}

.wheel__title {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 33px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
}

.wheel__descr {
  margin: 0 0 var(--sp-5);
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .78);
}

.wheel__form { display: grid; gap: var(--sp-4); }

.wheel__form input[type="tel"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.wheel__form input[type="tel"]:focus {
  outline: 0;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(187, 187, 187, .3);
}

.wheel__form .consent { color: rgba(255, 255, 255, .68); }
.wheel__form .consent a { color: var(--gold); }
.wheel__form .form__status { color: rgba(255, 255, 255, .8); }
.wheel__form .form__status--err { color: #c8c8c8; }

/* Экран выигрыша */

.wheel__win-title {
  font-family: var(--font-head);
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 var(--sp-3);
  color: var(--gold);
}

.wheel__code {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-4);
  padding: 10px 18px;
  border: 1px dashed rgba(187, 187, 187, .55);
  border-radius: var(--radius);
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
}

.wheel__code b {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.wheel__note {
  margin: var(--sp-3) 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: #c8c8c8;
}

/* Кнопка вызова — слева внизу, чтобы не спорить с онлайн-записью */

.wheel-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 92px;
  height: 92px;
  padding: 8px;
  background: var(--deep-2);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease);
}

.wheel-fab[hidden] { display: none; }

.wheel-fab svg {
  width: 26px;
  height: 26px;
}

.wheel-fab:hover {
  transform: scale(1.06);
  background: var(--gold);
  color: var(--deep);
}

@media (max-width: 900px) {
  .wheel__card {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }

  .wheel__stage { max-width: 300px; }
  .wheel__panel { text-align: center; }
  .wheel__code { margin-inline: auto; }
  .wheel__form .consent { text-align: left; }
}

@media (max-width: 640px) {
  .wheel { padding: 10px; }
  .wheel__stage { max-width: 240px; }
  .wheel__descr { margin-bottom: var(--sp-4); }

  .wheel-fab {
    width: 66px;
    height: 66px;
    font-size: 10.5px;
    left: 14px;
    bottom: 14px;
  }

  .wheel-fab svg { width: 20px; height: 20px; }
}

/* --- Вопрос-ответ -------------------------------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: '';
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  border-right: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}

.faq__item[open] .faq__q::after { transform: rotate(-135deg); }

.faq__q:hover { color: var(--gold-deep); }

.faq__a {
  padding-bottom: var(--sp-5);
  color: var(--text-muted);
  line-height: 1.7;
}

.faq__a p { margin: 0 0 var(--sp-3); }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a ul { margin: 0 0 var(--sp-3); padding-left: 20px; }

/* --- Как проходит визит: пронумерованные шаги ----------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  counter-reset: step;
}

.step {
  position: relative;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.step__num {
  position: absolute;
  top: calc(-1 * var(--sp-4));
  left: var(--sp-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
}

.step__name {
  margin: 0 0 var(--sp-2);
  font-size: 18px;
  font-weight: 600;
}

.step__descr {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* --- Блок доверия -------------------------------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.trust__item {
  padding-top: var(--sp-4);
  border-top: 2px solid var(--gold);
}

.trust__name {
  margin: 0 0 var(--sp-2);
  font-size: 17px;
  font-weight: 600;
}

.trust__descr {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* --- Карточка-ссылка (перелинковка) -------------------------------------- */

.card--link {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.card--link:hover .card__title { color: var(--gold-deep); }

/* --- Нижняя панель на телефоне ------------------------------------------- */

.mbar { display: none; }

/* Панель включается там же, где меню сворачивается в бургер (1024px).
   Раньше она появлялась только с 768px, и на промежуточных ширинах
   получалось худшее из двух: панели ещё нет, а круглые кнопки уже
   ложатся поверх текста — колонка на таких экранах узкая. */
@media (max-width: 1024px) {
  .mbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--deep);
    border-top: 1px solid rgba(187, 187, 187, .28);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mbar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 58px;
    padding: 8px 4px;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
  }

  .mbar__btn svg { width: 21px; height: 21px; }

  .mbar__btn--main {
    background: var(--gold);
    color: var(--deep);
    font-weight: 600;
  }

  /* Круглую кнопку записи на телефоне убираем совсем: её работу делает
     нижняя панель, а вместе они загораживали пол-экрана текста. */
  .float-cta { display: none; }
  /* Колесо остаётся, но меньше: на узкой колонке 92 пикселя закрывали
     половину строки текста. */
  .wheel-fab {
    width: 72px;
    height: 72px;
    font-size: 11px;
    left: 14px;
    bottom: 70px;
  }
  .wheel-fab svg { width: 22px; height: 22px; }
  .cookie { bottom: 72px; }

  body { padding-bottom: 58px; }
}

/* --- Карта сайта --------------------------------------------------------- */

.sitemap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-7) var(--sp-6);
}

.sitemap__title {
  margin: 0 0 var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 2px solid var(--gold);
  font-size: 18px;
  font-weight: 600;
}

.sitemap__list {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.sitemap__list a { color: var(--text-muted); }
.sitemap__list a:hover { color: var(--gold-deep); }

@media (max-width: 900px) { .sitemap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sitemap { grid-template-columns: 1fr; } }

/* --- Текстовый блок страницы услуги --------------------------------------- */

.prose p {
  margin: 0 0 var(--sp-4);
  font-size: clamp(16px, 1.6vw, 17.5px);
  line-height: 1.75;
}

.prose p:last-child { margin-bottom: 0; }

/* --- Три цифры: длительность, периодичность, результат --------------------- */

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  padding: var(--sp-5) var(--sp-6);
  background: var(--deep);
  border-radius: var(--radius-lg);
  color: var(--white);
}

.numbers__item { display: grid; gap: 4px; }

.numbers__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
}

.numbers__value {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

@media (max-width: 700px) {
  .numbers { grid-template-columns: 1fr; padding: var(--sp-5); }
}

/* --- Списки «что даёт / кому подходит / когда нельзя» ---------------------- */

.factbox__title {
  margin: 0 0 var(--sp-4);
  font-size: 19px;
  font-weight: 600;
}

.factbox__list {
  display: grid;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-4);
  padding: 0;
  list-style: none;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.factbox__list li {
  position: relative;
  padding-left: 28px;
}

.factbox__list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

.factbox__list--yes li::before {
  content: '✓';
  background: rgba(181, 181, 181, .22);
  color: var(--deep-2);
}

.factbox__list--no li::before {
  content: '—';
  background: rgba(149, 149, 149, .2);
  color: var(--gold-deep);
}

/* --- Прайс со строкой-кнопкой --------------------------------------------- */

.pricelist--wide .pricerow { padding: 12px 0; font-size: 16px; }

.pricerow--cta {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--sp-4);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .pricerow--cta {
    grid-template-columns: 1fr auto;
    row-gap: var(--sp-2);
  }
  .pricerow--cta .btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}

/* --- Отзывы --------------------------------------------------------------- */

.revs {
  display: grid;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.rev {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.rev__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.rev__name { font-weight: 600; font-size: 17px; }

.stars { white-space: nowrap; letter-spacing: 1px; }
.stars__on { color: var(--gold-deep); }
.stars__off { color: var(--line); }

.rev__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-4);
  margin-bottom: var(--sp-3);
  font-size: 13px;
  color: var(--text-muted);
}

.rev__svc {
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--sand-2);
  color: var(--deep-2);
  font-weight: 500;
}

.rev__src { text-decoration: underline; text-underline-offset: 3px; }

.rev__text { margin: 0; line-height: 1.7; }

.rev__reply {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border-left: 2px solid var(--gold);
  background: var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
  line-height: 1.65;
}

.rev__reply b { color: var(--deep-2); }

/* Форма отзыва прячется под кнопкой, чтобы не растягивать страницу */

.revform { margin-top: var(--sp-5); }

.revform > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  text-align: center;
}

.revform > summary::-webkit-details-marker { display: none; }
.revform[open] > summary { display: none; }

.revform__body {
  margin-top: var(--sp-5);
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.form--review select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}

@media (max-width: 560px) {
  .revform__body { padding: var(--sp-4); }
}

/* Ссылка «подробнее» под кнопкой записи в карточке услуги */

.card__more {
  display: block;
  margin-top: var(--sp-3);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-gold);
}

.card__more:hover { color: var(--gold-deep); }

.card__title a { color: inherit; }
.card__title a:hover { color: var(--gold-deep); }

/* Ссылки внутри мелкого текста должны быть заметны как ссылки */
.small a,
.factbox a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-gold);
}

.small a:hover,
.factbox a:hover { color: var(--gold-deep); }

/* --- Прайс-лист таблицей -------------------------------------------------- */

.price-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.price-nav a {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

.price-nav a:hover {
  border-color: var(--gold);
  color: var(--deep);
  background: var(--sand);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
}

.price-table th,
.price-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
}

.price-table thead th {
  border-bottom: 2px solid var(--line-gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-table th[scope="row"],
.price-table thead th:first-child {
  text-align: left;
  font-weight: 500;
  white-space: normal;
  min-width: 220px;
}

.price-table td {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.price-table tbody tr:hover { background: var(--sand); }

.price-table th[scope="row"] a { text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--line-gold); }
.price-table th[scope="row"] a:hover { color: var(--gold-deep); }

.price-table__dur {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-table__cta { width: 1%; }

@media (max-width: 700px) {
  .price-table__cta { display: none; }
  .price-table th,
  .price-table td { padding: 11px 8px; font-size: 14.5px; }
  .price-table th[scope="row"] { min-width: 160px; }
}

/* --- Карточки акций ------------------------------------------------------- */

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}

.offer {
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.offer__name {
  margin: 0 0 var(--sp-3);
  font-size: 21px;
  font-weight: 600;
}

.offer .promo__price { margin: 0 0 var(--sp-3); }

.offer p { line-height: 1.65; }

.offer .program__list { margin-bottom: var(--sp-5); }

@media (max-width: 900px) { .offers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .offers { grid-template-columns: 1fr; } }

/* --- Мастера -------------------------------------------------------------- */

.masters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}

.master-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.master-card__photo { aspect-ratio: 3 / 4; overflow: hidden; }

.master-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.master-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-5);
  flex: 1;
}

.master-card__name {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.master-card__role {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.master-card__since,
.master-card__about,
.master-card__skills {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

.master-card .btn { margin-top: auto; align-self: start; }

@media (max-width: 1000px) { .masters-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .masters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .masters-grid { grid-template-columns: 1fr; } }

/* --- Карта на странице контактов ------------------------------------------ */

.split__media .contacts__map {
  width: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Блог: лента, карточка статьи, сама статья
   ========================================================================== */

.blog-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}

.blog-nav a {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.blog-nav a:hover {
  border-color: var(--gold);
  color: var(--deep);
  background: var(--sand);
}

.blog-nav a.is-current {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--gold);
}

/* --- Лента статей --------------------------------------------------------- */

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.post {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}

.post:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post__media {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--sand-2);
}

.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.post:hover .post__media img { transform: scale(1.04); }

.post__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  flex: 1;
}

.post__cat {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.post__cat:hover { color: var(--deep); }

.post__title {
  margin: 0;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.32;
}

.post__title a { color: inherit; }
.post__title a:hover { color: var(--gold-deep); }

.post__descr {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.post__meta {
  display: flex;
  gap: var(--sp-4);
  margin: auto 0 0;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 1000px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .posts { grid-template-columns: 1fr; } }

/* --- Постраничная навигация ----------------------------------------------- */

.pager {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
}

.pager a,
.pager__cur {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}

.pager a:hover { border-color: var(--gold); background: var(--sand); }

.pager__cur {
  background: var(--deep);
  border-color: var(--deep);
  color: var(--gold);
}

/* --- Страница статьи ------------------------------------------------------ */

.article__head {
  /* Нижний отступ больше верхнего: обложка ниже подтянута наверх
     отрицательным margin и иначе накрыла бы строку с датой. */
  padding-block: var(--sp-7) var(--sp-8);
  background: var(--sand);
}

.article__head .crumbs { padding-top: 0; }

.article__head .post__cat { display: inline-block; margin-bottom: var(--sp-3); }

.article__head h1 { margin-bottom: var(--sp-4); }

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: var(--sp-5) 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.article__cover {
  margin: calc(-1 * var(--sp-6)) 0 var(--sp-7);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article__cover img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 700px) {
  .article__cover { margin-top: var(--sp-5); }
}

/* Оглавление */

.toc {
  margin-bottom: var(--sp-7);
  padding: var(--sp-5) var(--sp-6);
  background: var(--sand);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.toc__title {
  margin: 0 0 var(--sp-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.toc__list {
  display: grid;
  gap: var(--sp-2);
  margin: 0;
  padding-left: 20px;
  font-size: 15.5px;
}

.toc__list a { color: var(--text-muted); }
.toc__list a:hover { color: var(--gold-deep); }

/* Текст статьи */

.article__body { padding-bottom: var(--sp-6); }

.article__body h2 {
  margin: var(--sp-8) 0 var(--sp-4);
  font-size: clamp(22px, 3vw, 28px);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.article__body h2:first-child { margin-top: 0; }

.article__body ul,
.article__body ol {
  margin: 0 0 var(--sp-5);
  padding-left: 24px;
  font-size: clamp(16px, 1.6vw, 17.5px);
  line-height: 1.75;
}

.article__body li { margin-bottom: var(--sp-3); }

.article__body a {
  color: var(--deep-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-gold);
}

.article__body a:hover { color: var(--gold-deep); }

.note {
  margin: var(--sp-6) 0;
  padding: var(--sp-5) var(--sp-6);
  background: var(--deep);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.7;
}

.note a { color: var(--gold); }

.article__figure {
  margin: var(--sp-6) 0;
}

.article__figure img {
  width: 100%;
  border-radius: var(--radius-lg);
}

.article__figure figcaption {
  margin-top: var(--sp-3);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.article__table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-5) 0;
  font-size: 15.5px;
}

.article__table th,
.article__table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article__table thead th {
  border-bottom: 2px solid var(--line-gold);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Темы под статьёй */

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-5) 0 var(--sp-8);
  border-top: 1px solid var(--line);
}

.tags__label {
  margin-right: var(--sp-2);
  font-size: 13px;
  color: var(--text-muted);
}

.tags a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.tags a:hover {
  border-color: var(--gold);
  color: var(--deep);
  background: var(--sand);
}

/* --- Состав программы ------------------------------------------------------ */

.includes {
  display: grid;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
  font-size: 16.5px;
  line-height: 1.6;
}

.includes li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--line);
}

.includes li:last-child { border-bottom: 0; }

.includes li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.includes a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-gold);
}

.includes a:hover { color: var(--gold-deep); }

/* --- Таблица сравнения программ -------------------------------------------- */

/* Ширины колонок задаём жёстко: при обычной раскладке таблицы длинный
   состав программы растягивает ячейку и текст уезжает за край. */
.compare {
  table-layout: fixed;
  min-width: 820px;
}

.compare th:nth-child(1), .compare td:nth-child(1) { width: 21%; }
.compare th:nth-child(2), .compare td:nth-child(2) { width: 11%; }
.compare th:nth-child(3), .compare td:nth-child(3) { width: 55%; }
.compare th:nth-child(4), .compare td:nth-child(4) { width: 13%; }

/* Селекторы с .compare — чтобы перебить nowrap из .price-table td:
   у того специфичность выше, чем у одиночного класса. */
.compare th[scope="row"] { white-space: normal; }

.compare td.compare__inc {
  white-space: normal;
  word-break: break-word;
  text-align: left;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Ссылка «подробнее» в карточке программы выравнивается по левому краю */
.program__body .card__more { display: inline-block; margin-left: var(--sp-4); }

@media (max-width: 560px) {
  .program__body .card__more { display: block; margin-left: 0; text-align: left; }
}

/* Обёртка <picture> не должна создавать свою коробку: иначе ломается
   разметка там, где картинка растягивается по родителю (карточки мастеров,
   обложки статей). display:contents делает picture «прозрачным» для вёрстки. */

picture { display: contents; }

/* --- Встроенная онлайн-запись ---------------------------------------------- */

.booking-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  box-shadow: var(--shadow-sm);
}

.booking-frame iframe {
  position: relative;
  display: block;
  width: 100%;
  height: 900px;
  border: 0;
}

/* Запасной блок лежит под рамкой: если календарь отрисуется, он его
   закроет; если нет — гость увидит кнопку, а не пустое место. */
.booking-frame__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
  text-align: center;
}

.booking-frame__fallback p { margin: 0; max-width: 420px; }

@media (max-width: 900px) {
  .booking-frame iframe { height: 780px; }
}

@media (max-width: 560px) {
  .booking-frame { border-radius: var(--radius); }
  .booking-frame iframe { height: 680px; }
}

/* На телефоне состав программы в таблицу не помещается и выдавливает цену
   за край экрана. Цена важнее: прячем колонку «что входит», состав гость
   посмотрит на странице программы. */

@media (max-width: 760px) {
  .compare { min-width: 0; }
  .compare th:nth-child(3),
  .compare td:nth-child(3) { display: none; }

  .compare th:nth-child(1), .compare td:nth-child(1) { width: 52%; }
  .compare th:nth-child(2), .compare td:nth-child(2) { width: 24%; }
  .compare th:nth-child(4), .compare td:nth-child(4) { width: 24%; }
}
