/* ==========================================================================
   Марс — салон эротического массажа, Нижний Новгород
   Дизайн-система, снятая с артбордов Claude Design (папка «Дизайн»).
   Все значения — из инлайн-стилей макетов, без «улучшений».
   ========================================================================== */

/* --------------------------------------------------------------- токены */
:root {
  /* фоны */
  --bg-deep: #0d0a08;
  --bg: #100c0a;
  --surface: #161110;
  --surface-2: #1b1513;

  /* текст */
  --tx-hi: #f4ebdf;
  --tx-white: #fff;
  --tx: #e9ddd1;
  --tx-soft: #f2e8dc;
  --tx-mute: #bfae9f;
  --tx-mute-2: #c4b5a7;
  --tx-dim: #a99a95;
  --tx-dim-2: #9d8b7c;
  --tx-faint: #8a7466;
  --tx-eyebrow: #a8917f;
  --tx-label: #b09b8a;

  /* акцент */
  --acc: #e6be98;
  --acc-lt: #eecfb2;
  --acc-dk: #b4906d;
  --acc-hov: #e0ac86;
  --on-acc: #0d0a08;
  --live: #2fa96e;
  --warn: #d98a6a;

  /* звонок и мессенджеры (фирменные цвета — см. секцию «способы связи») */
  --call: #c2392f;
  --call-lt: #d24a3f;
  --tg: #229ed9;
  --tg-lt: #2aabee;
  --max-1: #471aff;
  --max-2: #9500ff;
  --max-1-lt: #5b33ff;
  --max-2-lt: #a420ff;

  /* границы */
  --bd-08: rgba(230, 190, 152, .08);
  --bd-10: rgba(230, 190, 152, .1);
  --bd-14: rgba(230, 190, 152, .14);
  --bd-16: rgba(230, 190, 152, .16);
  --bd-20: rgba(230, 190, 152, .2);
  --bd-22: rgba(230, 190, 152, .22);
  --bd-24: rgba(230, 190, 152, .24);
  --bd-25: rgba(230, 190, 152, .25);
  --bd-30: rgba(230, 190, 152, .3);
  --bd-35: rgba(230, 190, 152, .35);
  --bd-50: rgba(230, 190, 152, .5);

  /* радиусы */
  --r-xs: 4px;
  --r-sm: 6px;
  --r: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-pill: 30px;

  /* контейнеры */
  --w: 1360px;
  --w-text: 860px;
  --pad: 40px;

  /* прочее */
  --glow: radial-gradient(ellipse 62% 58% at 82% 6%, rgba(230, 190, 152, .13), transparent 62%);
  --shadow: 0 22px 50px -16px rgba(0, 0, 0, .75);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------------ база */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Скрытое — скрыто. Любое наше правило с display перебивает браузерное
   [hidden] { display: none }, а мы этим атрибутом прячем половину интерактива:
   карточки в фильтрах, абзацы под «Подробнее», формы, кнопки «Показать ещё». */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: var(--acc-lt); text-decoration: none; transition: color .18s; }
a:hover { color: var(--acc-hov); }

img, video { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: rgba(230, 190, 152, .35); }

:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* полосы прокрутки у горизонтальных лент прячем */
.rail, .slider, .promorail, .mcard__slider, .crail {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.rail::-webkit-scrollbar,
.slider::-webkit-scrollbar,
.promorail::-webkit-scrollbar,
.mcard__slider::-webkit-scrollbar,
.crail::-webkit-scrollbar { display: none; }

/* ---------------------------------------------------------------- сетка */
.wrap { max-width: var(--w); margin: 0 auto; padding-inline: var(--pad); }
.wrap--text { max-width: var(--w-text); }

.sec { padding-block: 142px; }
.sec--sm { padding-block: 96px; }
.sec--xs { padding-block: 64px; }
.sec--line { border-bottom: 1px solid var(--bd-30); }
.sec--glow { background: var(--glow), var(--bg-deep); }
.sec--deep { background: var(--bg-deep); }

/* ------------------------------------------------------------ типографика */
.eyebrow {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--tx-eyebrow);
}

.eyebrow--acc { color: var(--acc); font-size: 11px; display: flex; align-items: center; gap: 12px; }
.eyebrow--acc::before { content: ''; width: 28px; height: 1px; background: var(--acc); display: block; flex-shrink: 0; }

.h1 {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(34px, 4.8vw, 62px);
  line-height: 1.06;
  color: var(--tx-hi);
  text-wrap: pretty;
}

.h2 {
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.1;
  color: var(--tx-hi);
  text-wrap: pretty;
}

.h3 {
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.25;
  color: var(--tx-hi);
  text-wrap: pretty;
}

.h4 { font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--tx-soft); }

.accent { color: var(--acc-lt); }
.accent-soft { color: var(--acc-lt); font-weight: 500; }

.lead {
  font-weight: 300;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--tx-mute);
  text-wrap: pretty;
}

.body-t { font-weight: 300; font-size: 15.5px; line-height: 1.85; color: var(--tx-mute); }
.small { font-weight: 300; font-size: 13.5px; line-height: 1.8; color: var(--tx-dim-2); }
.tiny { font-weight: 400; font-size: 11.5px; color: var(--tx-faint); }

.caps {
  font-weight: 400;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

.mono-num { font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--tx-hi); }

/* заголовок раздела: надпись + h2 + необязательная ссылка справа */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.sec-head .eyebrow { margin-bottom: 20px; }
.sec-head__note { max-width: 420px; }

/* текстовый контент из редактора (статьи, юр. страницы) */
.rich { font-weight: 300; font-size: 16px; line-height: 1.85; color: var(--tx-mute); }
.rich > * + * { margin-top: 20px; }
.rich h2 { font-weight: 600; font-size: 26px; line-height: 1.25; color: var(--tx-hi); margin-top: 48px; }
.rich h3 { font-weight: 600; font-size: 20px; color: var(--tx-soft); margin-top: 36px; }
.rich strong { color: var(--tx-soft); font-weight: 500; }
.rich a { border-bottom: 1px solid var(--bd-35); }
.rich ul, .rich ol { padding-left: 22px; }
.rich li + li { margin-top: 10px; }
.rich li::marker { color: var(--acc); }

/* ---------------------------------------------------------------- кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: var(--r);
  padding: 19px 40px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background .18s, color .18s, border-color .18s;
}

.btn--primary { color: var(--on-acc); background: var(--acc); }
.btn--primary:hover { color: var(--on-acc); background: var(--acc-lt); }

.btn--ghost { color: var(--tx-soft); background: transparent; border-color: var(--bd-50); padding: 18px 32px; }
.btn--ghost:hover { color: var(--tx-hi); border-color: var(--acc); }

.btn--sm { font-size: 10.5px; letter-spacing: .18em; padding: 12px 22px; border-radius: 7px; }
.btn--xs { font-size: 10px; letter-spacing: .18em; padding: 10px 18px; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
/* Ставится и без .btn (в подвале, в шапке мастера), поэтому курсор,
   шрифт и наведение задаём здесь, а не наследуем от .btn. */
.btn--link {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: none; padding: 0;
  font-family: var(--font); font-size: 13.5px; font-weight: 300;
  text-transform: none; letter-spacing: 0;
  color: var(--acc-lt); cursor: pointer;
  /* во флекс-колонке подвала кнопка растягивалась, и линия уезжала за текст */
  align-self: flex-start;
  border-bottom: 1px solid rgba(230, 190, 152, .35);
  transition: color .18s, border-color .18s;
}
.btn--link:hover, .btn--link:focus-visible { color: var(--acc); border-bottom-color: var(--acc); }

/* ------------------------------------------------- способы связи */
/* Telegram — в фирменном цвете #229ED9, звонок — красный: тёплый,
   кирпичный, чтобы не спорить с бежевым акцентом сайта. */
.btn--call { color: var(--tx-white); background: var(--call); border-color: transparent; }
.btn--call:hover { color: var(--tx-white); background: var(--call-lt); }
.btn--tg { color: var(--tx-white); background: var(--tg); border-color: transparent; }
.btn--tg:hover { color: var(--tx-white); background: var(--tg-lt); }

/* Группа способов связи. Порядок один на весь сайт: звонок, анонимный
   чат, мессенджеры. Шрифт кнопок плотнее и жирнее обычного, трекинг
   поджат — жирный капс с широким трекингом читается хуже. */
.ways { display: grid; gap: 8px; }
.ways .btn { font-weight: 700; font-size: 11px; letter-spacing: .1em; padding: 14px 22px; }
.ways .btn svg { flex-shrink: 0; width: 16px; height: 16px; }
.ways--row { display: flex; flex-wrap: wrap; gap: 10px; }
.ways--row .btn { padding: 14px 24px; }

/* Telegram и MAX — в одну строку, пополам */
.ways__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ways__pair .btn { padding-left: 12px; padding-right: 12px; }
/* На узком телефоне подписи в половинной кнопке уже не помещаются */
@media (max-width: 380px) { .ways__pair { grid-template-columns: 1fr; } }

/* Звонок в группе — только на телефоне: на большом экране номер и так
   стоит в шапке. Исключение — мобильное меню, оно открывается с 1080px
   и там кнопка выводится без этого класса. */
.way--phone { display: none; }
@media (max-width: 640px) { .way--phone { display: inline-flex; } }

/* «Смотреть все →» */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acc-lt);
  white-space: nowrap;
}
.more-link:hover { gap: 14px; }

/* --------------------------------------------------------------- чипы/метки */
.chip {
  font-weight: 500;
  font-size: 12.5px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  color: var(--tx-mute-2);
  background: transparent;
  border: 1px solid var(--bd-25);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.chip:hover { color: var(--tx-hi); border-color: var(--bd-50); }
.chip.is-on { color: var(--on-acc); background: var(--acc-lt); border-color: transparent; }

.chips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chips__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-dim-2); margin-right: 6px; }

.tag {
  display: inline-block;
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--tx-soft);
  border: 1px solid var(--bd-35);
  border-radius: 5px;
  padding: 5px 11px;
  white-space: nowrap;
}
.tag--acc { color: var(--on-acc); background: var(--acc); border-color: transparent; }
.tag--hot { color: var(--warn); border-color: rgba(217, 138, 106, .5); }
.tag--live { color: var(--tx-white); background: var(--live); border-color: transparent; }

/* ссылка-подчёркивание «Подробнее» — общая: главная, посадочные страницы */
.ulink {
  display: inline-block;
  font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--acc-lt);
  border-bottom: 1px solid rgba(230, 190, 152, .4);
  padding-bottom: 6px;
}

/* ---------------------------------------------------------------- карточки */
.card {
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
}
.card--pad { padding: 30px; }
.card--soft { background: rgba(22, 17, 16, .6); }

.tile { border-radius: var(--r-xl); padding: 34px 30px; background: rgba(22, 17, 16, .5); }
.tile__num { font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--acc); margin-bottom: 18px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--gap-lg { gap: 64px 40px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--wide { gap: 80px; }

/* ------------------------------------------------- морфящиеся иконки */
morph-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  flex-shrink: 0;
}
morph-icon svg { display: block; }

/* --------------------------------------------------------------- шапка */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(16, 12, 10, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--bd-16);
}
.hdr__in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 20px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.logo__name { font-weight: 700; font-size: 20px; letter-spacing: .02em; color: var(--tx-soft); line-height: 1; }
.logo__sub { font-weight: 400; font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--tx-faint); }

.nav { display: flex; align-items: center; gap: 0 30px; flex-shrink: 0; }
.nav__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--tx-mute-2);
  white-space: nowrap;
}
.nav__link:hover, .nav__link.is-cur { color: var(--acc-lt); }

.nav__more { position: relative; }
.nav__dots {
  font-size: 15px; line-height: 1; letter-spacing: .08em;
  color: var(--tx-mute-2); background: transparent; border: none;
  cursor: pointer; padding: 4px 2px;
}
.nav__drop {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 268px;
  background: var(--surface);
  border: 1px solid var(--bd-24);
  padding: 8px 0;
  box-shadow: var(--shadow);
  z-index: 70;
}
.nav__drop.is-open { display: block; }
.nav__group {
  font-weight: 500; font-size: 9.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--tx-faint); padding: 14px 20px 6px;
}
.nav__item {
  display: block; font-weight: 300; font-size: 13.5px;
  color: var(--tx-mute-2); padding: 9px 20px; white-space: nowrap;
}
.nav__item:hover { color: var(--acc-lt); background: rgba(230, 190, 152, .06); }

.hdr__side { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.hdr__addr {
  display: flex; flex-direction: column; gap: 3px; white-space: nowrap;
  border-left: 1px solid var(--bd-22); padding-left: 22px;
}
.hdr__addr b { font-weight: 400; font-size: 13.5px; color: var(--tx); }
.hdr__addr span { font-weight: 300; font-size: 11.5px; color: var(--tx-faint); }
.hdr__tel { font-weight: 500; font-size: 16px; color: var(--tx-soft); white-space: nowrap; }

/* На узких экранах номер целиком не влезает рядом с бургером —
   вместо текста показываем компактную кнопку звонка. */
.hdr__call {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--bd-25); border-radius: var(--r);
  color: var(--acc); flex-shrink: 0;
}

/* бургер и мобильное меню */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--bd-25);
  border-radius: var(--r); color: var(--acc); cursor: pointer;
}
/* Панель раскрывается под липкой шапкой: бургер остаётся на виду
   и перетекает в крестик, а не подменяется второй кнопкой. */
.mnav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg-deep);
  padding: 104px var(--pad) 48px;
  overflow-y: auto;
  display: none;
}
.mnav.is-open { display: block; animation: fade .2s ease; }
.mnav__link {
  display: block; padding: 15px 0;
  border-bottom: 1px solid var(--bd-10);
  font-weight: 500; font-size: 15px; color: var(--tx-soft);
}
.mnav__group { padding: 26px 0 8px; }
.mnav__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

/* --------------------------------------------------------------- крошки */
.crumbs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 300; font-size: 12.5px; color: var(--tx-faint);
  padding-top: 28px;
}
.crumbs a { color: var(--tx-dim-2); }
.crumbs a:hover { color: var(--acc-lt); }
.crumbs__sep { color: var(--bd-50); }

/* ----------------------------------------------------------------- герой */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bd-30); }
.hero__bg { position: absolute; inset: 0; background-position: center right; background-size: cover; background-repeat: no-repeat; background-color: var(--bg-deep); }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(96deg, var(--bg) 10%, rgba(16, 12, 10, .86) 42%, rgba(34, 20, 14, .18) 80%),
    radial-gradient(ellipse 72% 72% at 74% 26%, rgba(230, 190, 152, .24), transparent 64%);
}
/* Шапка сайта липкая и высотой 86px — под ней нужен запас, иначе h1
   начинается сразу под ней. Снизу тоже был ноль, кнопки упирались в край. */
.hero__in { position: relative; max-width: var(--w); margin: 0 auto; padding: 104px var(--pad) 96px; }
.hero__lead { max-width: 470px; margin-bottom: 20px; }
.hero__note { font-weight: 400; font-size: 13.5px; letter-spacing: .02em; color: var(--acc-lt); margin-bottom: 38px; }
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* компактный герой внутренних страниц */
.phead { max-width: var(--w); margin: 0 auto; padding: 46px var(--pad) 14px; }
.phead__h1 { margin-bottom: 18px; }
.phead__big {
  display: block;
  font-weight: 700; letter-spacing: -.025em;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06;
  color: var(--tx-hi);
}
.phead__tail {
  display: block; margin-top: 12px;
  font-weight: 400; font-size: 14px; letter-spacing: .04em;
  color: var(--acc-lt);
}
.phead__row {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  padding-bottom: 34px; border-bottom: 1px solid var(--bd-14);
}
.phead__stat { text-align: right; white-space: nowrap; }
.phead__stat b { display: block; font-weight: 700; letter-spacing: -.02em; font-size: 46px; color: var(--acc-lt); line-height: 1; }
.phead__stat span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-dim-2); margin-top: 6px; }

/* полоса чисел */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--bd-20);
  margin-top: 70px; padding: 30px 0 40px;
}
.stats b { display: block; font-weight: 700; letter-spacing: -.02em; font-size: 30px; color: var(--tx-hi); line-height: 1; }
.stats span { display: block; font-weight: 400; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx-faint); margin-top: 10px; }

/* --------------------------------------------------- карточка мастера */
.mcard { display: flex; flex-direction: column; }
.mcard__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: 14px;
  background: var(--bg);
}
.mcard__slider { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.mcard__shot {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center;
  background-color: var(--bg); background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Слои внутри фото: ссылка (1) < панель параметров (2) < стрелки и бейдж (3).
   Так центр фото открывает анкету, а стрелки листают и никуда не ведут. */
.mcard__open { position: absolute; inset: 0; z-index: 1; }
/* Стрелки видны всегда — и на десктопе, и на телефоне: скрытые
   за hover стрелки на сенсорном экране не найти. */
.mcard__nav {
  z-index: 3;
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: var(--r-md);
  background: rgba(18, 14, 11, .55); color: var(--acc);
  cursor: pointer; padding: 0;
  transition: background .2s;
}
.mcard__nav:hover { background: rgba(18, 14, 11, .8); }
.mcard__nav--prev { left: 14px; }
.mcard__nav--next { right: 14px; }
.mcard__badge { position: absolute; top: 14px; right: 14px; z-index: 3; }
.mcard__foot {
  pointer-events: none;
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  padding: 56px 20px 20px;
  background: linear-gradient(180deg, transparent, rgba(13, 10, 8, .92));
}
/* Порядок задан разметкой: «в салоне», затем имя. Раньше здесь стоял
   column-reverse под старый порядок — из-за него подпись уезжала вниз. */
.mcard__id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.mcard__name { font-weight: 700; letter-spacing: -.02em; font-size: 23px; color: #f6efe6; line-height: 1.1; }
.mcard__age { font-weight: 300; font-size: 13px; color: #d3c4b8; }
.mcard__role {
  font-weight: 500; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--acc-dk);
  display: block; margin-bottom: 4px; white-space: nowrap;
}
.mcard__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.mcard__acts > * { flex: 1 1 100px; }

/* «карточка-параметры» — третий слайд */
.mcard__specs {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: 40px 34px;
}
.mcard__specs::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 10, 8, .78), rgba(13, 10, 8, .9)),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(230, 190, 152, .22), transparent 62%);
}
.mcard__specs > * { position: relative; }
.mcard__quote { font-weight: 300; font-size: 17px; line-height: 1.6; color: #f0dcc9; text-align: center; text-wrap: pretty; }

.speclist { display: flex; flex-direction: column; }
.speclist__row {
  display: flex; align-items: baseline; gap: 12px;
  padding: 12px 0; border-top: 1px solid rgba(240, 220, 201, .22);
}
.speclist__row:last-child { border-bottom: 1px solid rgba(240, 220, 201, .22); }
.speclist__k { font-weight: 400; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-label); }
.speclist__sp { flex: 1; }
.speclist__v { font-weight: 400; font-size: 13.5px; color: var(--tx-soft); text-align: right; }

/* ------------------------------------------------- таблица программ */
.prow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.4fr) minmax(0, 1fr) 120px 150px 30px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--bd-14);
  color: var(--tx);
  transition: background .18s;
}
.prow:hover { background: rgba(230, 190, 152, .04); }
.prow:last-of-type { border-bottom: 1px solid var(--bd-14); }
.prow__num { font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--tx-faint); }
.prow__name { font-weight: 600; font-size: 19px; color: var(--tx-hi); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prow__desc { font-weight: 300; font-size: 14px; line-height: 1.6; color: var(--tx-dim-2); }
.prow__dur { font-weight: 400; font-size: 14px; color: var(--tx-mute-2); white-space: nowrap; }
.prow__price { font-weight: 700; letter-spacing: -.02em; font-size: 20px; color: var(--acc-lt); text-align: right; white-space: nowrap; }
.prow__go { color: var(--acc); font-size: 18px; text-align: right; }

/* карточка программы (плитка) */
.pcard { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background-color: var(--bg); background-size: cover; background-position: center; }
.pcard__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 10, 8, .88)); }
.pcard__tags { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.pcard__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; }
.pcard__body { padding: 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.pcard__meta { display: flex; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--tx-mute-2); }
.pcard__price { font-weight: 700; letter-spacing: -.02em; font-size: 20px; color: var(--acc-lt); }

/* список «что входит» */
.incl { display: grid; gap: 12px; }
.incl__i { display: flex; align-items: flex-start; gap: 12px; font-weight: 300; font-size: 15px; line-height: 1.6; color: var(--tx-mute); }
.incl__i::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 9px;
  border-radius: 50%; background: var(--acc);
}

/* --------------------------------------------------------- аккордеон */
.acc { display: flex; flex-direction: column; gap: 12px; }
.acc__it { background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.acc__btn {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; background: none; border: none; cursor: pointer;
}
.acc__lab { display: flex; flex-direction: column; gap: 5px; }
.acc__cat { font-weight: 600; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.acc__q { font-weight: 500; font-size: 16px; color: var(--tx-hi); }
.acc__ico {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--bd-30); color: var(--acc);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; line-height: 1; transition: transform .2s;
}
.acc__it.is-open .acc__ico { transform: rotate(45deg); }
.acc__body { display: none; padding: 0 26px 24px; }
.acc__it.is-open .acc__body { display: block; }
.acc__a { font-weight: 300; font-size: 15px; line-height: 1.8; color: var(--tx-mute); }

/* ------------------------------------------------------- лента (rail) */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.rail--4 > * { flex: 0 0 calc((100% - 60px) / 4); }
.rail--3 > * { flex: 0 0 calc((100% - 40px) / 3); }
.rail-head { display: flex; align-items: center; gap: 12px; }
.rail-arrow {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bd-25); border-radius: var(--r-md);
  background: transparent; color: var(--acc); cursor: pointer;
}
.rail-arrow:hover { border-color: var(--acc); background: rgba(230, 190, 152, .08); }

/* --------------------------------------------------------- расписание */
.sched { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sched th, .sched td { padding: 12px 10px; border-bottom: 1px solid var(--bd-10); text-align: center; }
.sched th { font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); }
.sched th.is-today { color: var(--acc); }
.sched td.is-weekend, .sched th.is-weekend { background: rgba(230, 190, 152, .03); }
.sched__who { text-align: left; white-space: nowrap; }
.sched__who a { display: flex; align-items: center; gap: 12px; color: var(--tx-soft); }
.sched__ava { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; background-size: cover; background-position: center; background-color: var(--bg); }
.sched__slot {
  display: inline-block; min-width: 62px; padding: 6px 10px;
  border-radius: var(--r-sm); font-size: 11.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer; background: transparent; color: var(--tx-faint);
}
.sched__slot--day { background: rgba(230, 190, 152, .14); color: var(--acc-lt); }
.sched__slot--night { background: rgba(120, 140, 200, .14); color: #b9c2e6; }
.sched__slot--full { background: rgba(47, 169, 110, .16); color: #6fd3a1; }
.sched__slot--off { color: var(--tx-faint); opacity: .5; cursor: default; }

/* ---------------------------------------------------------- лайтбокс */
.lb {
  position: fixed; inset: 0; z-index: 120;
  display: none; align-items: center; justify-content: center;
  padding: 40px 88px; background: rgba(8, 6, 5, .92);
}
.lb.is-open { display: flex; }
.lb__img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); }
.lb__x, .lb__nav {
  position: absolute;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bd-35); border-radius: var(--r);
  background: rgba(13, 10, 8, .6); backdrop-filter: blur(6px);
  color: var(--acc); cursor: pointer; font-size: 18px;
}
.lb__x { top: 24px; right: 24px; }
.lb__x:hover, .lb__nav:hover { border-color: var(--acc); background: rgba(230, 190, 152, .12); }
.lb__nav { top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: 24px; }
.lb__nav--next { right: 24px; }
@media (max-width: 640px) {
  .lb { padding: 24px 12px 84px; }
  .lb__nav { top: auto; bottom: 20px; transform: none; }
  .lb__nav--prev { left: calc(50% - 52px); }
  .lb__nav--next { right: calc(50% - 52px); }
}

/* ------------------------------------------------------------- формы */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__lab { font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--tx-faint); }
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font); font-weight: 300; font-size: 15px;
  color: var(--tx-soft); background: var(--bg-deep);
  border: 1px solid var(--bd-20); border-radius: var(--r);
  padding: 15px 18px;
  transition: border-color .18s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--acc); }
.input::placeholder, .textarea::placeholder { color: var(--tx-faint); }
.textarea { min-height: 120px; resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 300; font-size: 12.5px; line-height: 1.7; color: var(--tx-dim-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--acc); flex-shrink: 0; }
.form-note { font-weight: 300; font-size: 12.5px; line-height: 1.7; color: var(--tx-faint); }
.form-msg { font-size: 14px; padding: 14px 16px; border-radius: var(--r); display: none; }
.form-msg.is-ok { display: block; background: rgba(47, 169, 110, .12); color: #6fd3a1; }
.form-msg.is-err { display: block; background: rgba(217, 138, 106, .12); color: var(--warn); }

/* ------------------------------------------------------------ модалки */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(8, 6, 5, .78);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; animation: fade .18s ease; }
.modal__box {
  width: 100%; max-width: 480px;
  background: var(--surface); border: 1px solid var(--bd-24);
  border-radius: var(--r-xl); padding: 36px;
  box-shadow: var(--shadow);
  max-height: 90vh; overflow-y: auto;
}
.modal__x {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--bd-25); border-radius: var(--r-sm);
  color: var(--acc); cursor: pointer;
}
.modal__head { margin-bottom: 24px; }
.modal__ways { display: grid; gap: 10px; margin-bottom: 22px; }

/* --------------------------------------------------------- подвал */
.foot { border-top: 1px solid var(--bd-16); background: var(--glow), var(--bg-deep); }
.foot__book {
  max-width: var(--w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.foot__book-in { padding: 132px 64px 132px var(--pad); }
.foot__book-img { min-height: 460px; background-color: var(--bg); background-size: cover; background-position: center; }
.foot__cols {
  max-width: var(--w); margin: 0 auto;
  padding: 104px var(--pad) 72px;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 56px;
}
.foot__col { display: flex; flex-direction: column; gap: 12px; }
.foot__ttl { font-weight: 500; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--tx-faint); margin-bottom: 4px; }
.foot__lnk { font-weight: 300; font-size: 13.5px; color: var(--tx-mute-2); }
.foot__legal {
  max-width: var(--w); margin: 0 auto;
  padding: 44px var(--pad) 64px;
  border-top: 1px solid var(--bd-22);
  display: flex; flex-direction: column; gap: 28px;
}
.foot__pol { display: flex; flex-wrap: wrap; gap: 18px 34px; align-items: center; }
.foot__pol a { font-weight: 400; font-size: 13.5px; letter-spacing: .04em; color: var(--tx-mute-2); }
.foot__18 {
  font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--acc-lt);
  border: 1px solid var(--bd-50); border-radius: var(--r-xs); padding: 5px 10px;
}
.foot__disc { font-weight: 300; font-size: 13px; line-height: 1.75; color: var(--tx-faint); }
.foot__meta {
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-weight: 300; font-size: 13px; color: var(--tx-dim-2);
  padding-top: 8px; border-top: 1px solid var(--bd-10);
}

/* ----------------------------------------------------- 18+ и cookie */
.gate {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 6, 5, .94);
  /* размытие, как у модалок: сквозь одно затемнение страница просвечивала
     и текст вопроса читался на чужих строках */
  backdrop-filter: blur(6px);
}
.gate.is-open { display: flex; }
/* Вопрос стоит на своей панели — той же, что у модалок */
.gate__box {
  max-width: 440px; text-align: center;
  background: var(--surface); border: 1px solid var(--bd-24);
  border-radius: var(--r-xl); padding: 42px 36px;
  box-shadow: var(--shadow);
}
.gate__t { font-weight: 700; letter-spacing: -.02em; font-size: 30px; line-height: 1.2; color: var(--tx-hi); margin-bottom: 14px; }

.cookie {
  position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 90;
  display: none;
  max-width: 640px;
  background: var(--surface); border: 1px solid var(--bd-24); border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie.is-open { display: flex; }

/* --------------------------------------------------------- адаптив */
@media (max-width: 1320px) { .hdr__addr { display: none; } }

/* На узких экранах кнопка «Выбрать мастера» ломает шапку — прячем,
   переход к мастерам остаётся в меню и в мобильной панели. */
@media (max-width: 860px) { .hdr__cta { display: none; } }

@media (max-width: 640px) {
  .hdr__tel { display: none; }
  .hdr__call { display: flex; }
  .hdr__in { gap: 14px; }
  .hdr__side { gap: 10px; }
  /* длинное название должно умещаться в экран: мельче и с переносом */
  .logo { flex-shrink: 1; min-width: 0; }
  .logo__name { font-size: 14px; letter-spacing: .04em; white-space: normal; line-height: 1.25; }
}

@media (max-width: 1180px) {
  .prow { grid-template-columns: 56px minmax(0, 1.3fr) 120px 150px 30px; gap: 22px; }
  .prow__desc { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .split, .foot__book, .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot__book-in { padding: 88px var(--pad); }
  .foot__book-img { min-height: 320px; }
  .sec { padding-block: 96px; }
}

@media (max-width: 980px) {
  .rail--4 > * { flex: 0 0 calc((100% - 20px) / 2); }
  .rail--3 > * { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .phead__row { grid-template-columns: 1fr; gap: 24px; }
  .phead__stat { text-align: left; }
}

@media (max-width: 820px) {
  .prow { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 18px; padding: 22px 0; }
  .prow__num, .prow__go { display: none; }
  .prow__price { font-size: 18px; }
  .prow__dur { font-size: 13px; }
}

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .hero__in { padding-top: 56px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .sec { padding-block: 72px; }
  .sec--sm { padding-block: 56px; }
  .h1 { font-size: clamp(30px, 8vw, 40px); }
  .btn { padding: 17px 28px; }
  .foot__cols { grid-template-columns: 1fr; }
  .foot__legal { padding-bottom: 48px; }
  .modal__box { padding: 26px 22px; }
  .gate__box { padding: 32px 22px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}

@media (max-width: 620px) {
  .rail--4 > *, .rail--3 > * { flex: 0 0 86%; }
  .grid--gap-lg { gap: 40px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
