/* tokens.css */
/*
  Сайт салона. Белый фон, почти чёрный текст, цвет салона — крупными плоскостями
  (кнопка записи, полосы акций), а не тонкими акцентами. Заголовки и цены — узкий
  гротеск Fira Sans Extra Condensed: так выглядят вывески и прайсы салонов. Текст —
  Fira Sans. Армянские буквы — HyFont (/fonts.css, выбор в админке). Салон может выбрать
  заголовки с засечками (PT Serif) — класс heading-serif на <html>.
  Без теней, без карточек в карточках, скругления скромные.
*/

:root {
  color-scheme: light;
  --accent: #2563eb;           /* цвет салона — приходит из данных */
  --accent-ink: #ffffff;       /* текст на цвете салона — сервер выбирает по контрасту */
  --accent-text: color-mix(in srgb, var(--accent) 80%, #000);

  --bg: #ffffff;
  --ink: #161616;
  --ink-2: #3a3a3a;
  --muted: #666666;            /* 5.7:1 на белом */
  --line: #e3e3e3;
  --dots: #bcbcbc;
  --mist: #f4f4f2;
  --star: #d79b12;
  --green: #1c8a4a;
  --danger: #c0392b;

  --font-body: "HyFont", "Fira Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "HyFont", "Fira Sans Extra Condensed", "Fira Sans", "Arial Narrow", sans-serif;
  --display-weight: 600;

  --gutter: 20px;
  --container: 1160px;
  --section-y: 64px;
  --topbar-h: 60px;

  --r-sm: 6px;
  --r: 10px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 180ms;
  --scrim: rgba(22, 22, 22, .5);
}

.heading-serif {
  --font-display: "HyFont", "PT Serif", Georgia, serif;
  --display-weight: 700;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section-y: 88px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 48px; --section-y: 112px; --topbar-h: 68px; }
}

/* base.css */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 12px);
  background: var(--bg);
}
/* Плавная прокрутка к якорю — только на компьютере: на телефоне и во встроенных
   браузерах (Instagram) она дробит прокрутку «ступеньками» */
@media (hover: hover) and (pointer: fine) {
  html:not(.in-app) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(hy) body, body:lang(hy) { line-height: 1.6; }
html.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
:where(ul, ol)[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
:where(h1, h2, h3) { text-wrap: balance; overflow-wrap: break-word; }
:where(p) { text-wrap: pretty; overflow-wrap: break-word; }
:lang(ru), :lang(en) { hyphens: auto; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, #fff); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

.container {
  width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }
.icon--star { color: var(--star); }

/* --- кнопки: прямоугольные со скруглением, без теней --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; white-space: normal;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.btn .icon { width: 18px; height: 18px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
.btn--line, .btn--ghost, .btn--soft { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover, .btn--ghost:hover, .btn--soft:hover { background: var(--ink); color: #fff; }
.btn--invert { background: #fff; color: var(--ink); }
.btn--invert:hover { background: color-mix(in srgb, #fff 88%, #000); }
.btn--light { background: #fff; color: var(--ink); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; cursor: not-allowed; }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r); background: transparent; color: inherit;
  text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn--soft { background: var(--mist); color: var(--ink); }
.icon-btn--glass { background: rgba(0, 0, 0, .45); color: #fff; }

/* Появление блоков при прокрутке (ui/motion.js ставит rv, затем is-in) */
.js .rv { opacity: 0; translate: 0 18px; }
.js .rv.is-in { opacity: 1; translate: 0 0; transition: opacity .55s var(--ease), translate .55s var(--ease); transition-delay: var(--rv-delay, 0ms); }
/* Нажатие кнопки: лёгкое «вдавливание» */
.btn { transition-property: background-color, border-color, color, scale; }
.btn:active { scale: .98; }

.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  color: var(--ink-2); font-size: 0.9rem; font-weight: 500; text-decoration: none;
}
.chip.is-active, .chip[aria-current="page"] { border-color: var(--ink); color: var(--ink); }

.link { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.stars { display: inline-flex; gap: 1px; color: var(--star); }
.stars__star { width: 14px; height: 14px; }
.stars__star--off { color: var(--line); }

/* --- «Читать полностью» на <details>: работает без JS --- */
.more > summary { list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.more__close, .more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.more[open] .more__chevron { rotate: 180deg; }
.more[open] > summary { order: 2; }
.more[open] { display: flex; flex-direction: column; }
.more > p { margin-top: 12px; }

/* --- горизонтальная лента (мастера на телефоне) --- */
.rail {
  display: flex; gap: 14px; margin: 0; padding: 0 var(--gutter) 8px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* --- секции --- */
.section { padding-block: var(--section-y) 0; }
.section__title {
  margin-bottom: 20px;
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1; letter-spacing: -.005em;
}
:lang(hy) .section__title { line-height: 1.15; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); }
.heading-serif .section__title { line-height: 1.08; }
.section__more { display: flex; justify-content: center; margin-top: 24px; }
.section__more--start { justify-content: flex-start; }
@media (min-width: 1024px) {
  .section__title { margin-bottom: 32px; }
}

/* header.css */
/* Шапка: над фото — прозрачная, светлая; после прокрутки — белая с тонкой линией */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h);
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.topbar.is-scrolled { background: #fff; color: var(--ink); border-bottom-color: var(--line); }
.topbar--plain:not(.is-scrolled) { color: var(--accent-ink); }
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 100%; }

.brand { min-width: 0; margin-right: auto; color: inherit; text-decoration: none; transition: opacity var(--dur); }
.brand__name {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.35rem; line-height: 1;
}
/* Пока видно большое название на фото, в шапке его не повторяем */
.topbar:not(.is-scrolled) .brand { opacity: 0; pointer-events: none; }

.topbar__nav { display: none; }
.topbar__nav ul { display: flex; gap: clamp(12px, 1.5vw, 22px); margin: 0; padding: 0; list-style: none; }
.topbar__nav a { color: inherit; white-space: nowrap; font-size: 0.95rem; font-weight: 500; text-decoration: none; opacity: .85; }
.topbar__nav a:hover, .topbar__nav a.is-current { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.topbar__end { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.topbar__cta { display: none; }
.topbar:not(.is-scrolled) .topbar__cta { background: #fff; color: var(--ink); }
.topbar--plain:not(.is-scrolled) .topbar__cta { background: var(--accent-ink); color: var(--accent); }

.langs { display: none; gap: 10px; }
.langs a { color: inherit; font-size: 0.85rem; font-weight: 500; text-decoration: none; opacity: .7; }
.langs a:hover { opacity: 1; }
.langs a[aria-current="page"] { opacity: 1; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

@media (min-width: 768px) {
  .langs { display: flex; }
  .topbar__cta { display: inline-flex; }
}
@media (min-width: 1200px) {
  .topbar__nav { display: block; }
  .topbar__menu { display: none; }
  .brand { margin-right: 0; flex: 0 1 300px; }
  .topbar__inner { justify-content: space-between; }
  .topbar__end { margin-left: 0; }
}

/* --- мобильное меню (шторка) --- */
.menu__nav ul { margin: 0; padding: 0; list-style: none; display: grid; }
.menu__nav li + li { border-top: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px;
  color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.2rem; line-height: 1.1;
  text-decoration: none;
}
.menu__nav a .icon { color: var(--muted); }
.menu__langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.menu__share { margin-top: 12px; }
/* Кнопки меню: телефон и «Поделиться» в одну строку, «Записаться» ниже на всю ширину */
.sheet--menu .sheet__foot { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet--menu .sheet__foot .btn { flex: 1 1 calc(50% - 4px); min-height: 44px; padding: 0 14px; font-size: 0.95rem; }
.sheet--menu .sheet__foot .btn--primary { order: 2; flex-basis: 100%; min-height: 48px; }

/* hero.css */
/*
  Первый экран: фото на всю ширину уходит под прозрачную шапку, название салона
  крупно в левом нижнем углу (затемнение снизу и сверху — только для читаемости
  текста). Под фото — полоса: строка о салоне, «открыто сейчас», рейтинг,
  «Записаться» и «Позвонить», ссылки на маршрут и такси.
*/
.hero__photo {
  position: relative; overflow: hidden;
  margin-top: calc(var(--topbar-h) * -1);
  height: min(74vh, 760px); min-height: 460px;
  background: var(--accent); color: #fff;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, .66) 0%, rgba(0, 0, 0, .2) 42%, rgba(0, 0, 0, 0) 62%),
              linear-gradient(to bottom, rgba(0, 0, 0, .35) 0, rgba(0, 0, 0, 0) 22%);
}
.hero--plain .hero__photo { height: auto; min-height: 0; padding: calc(var(--topbar-h) + 72px) 0 36px; color: var(--accent-ink); }
.hero--plain .hero__photo::after { display: none; }

.hero__caption { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 1; }
.hero--plain .hero__caption { position: static; }
.hero__logo {
  width: 56px; height: 56px; margin-bottom: 16px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, .9); background: #fff; object-fit: cover;
}
.hero__title {
  max-width: 14ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 1.7rem + 6.2vw, 7rem); line-height: .9; letter-spacing: -.01em;
}
.heading-serif .hero__title { line-height: 1; font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
:lang(hy) .hero__title { line-height: 1.05; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin-top: 14px; font-size: 1.02rem; opacity: .9; }
.hero__meta > span + span::before { content: "·"; margin-right: 8px; }
.hero__kind::first-letter { text-transform: uppercase; }

.hero__bar { display: grid; gap: 18px; padding-top: 24px; }
.hero__tagline { max-width: 34em; font-size: 1.15rem; line-height: 1.45; color: var(--ink); }
.hero__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; color: var(--muted); font-size: 0.95rem; }
.hero__status { display: inline-flex; align-items: center; gap: 8px; }
.hero__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dots); }
.hero__status.is-open { color: var(--ink); }
.hero__status.is-open::before { background: var(--green); }
.hero__rating { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); text-decoration: none; }
.hero__rating strong { font-weight: 600; }
.hero__rating span { color: var(--muted); }
.hero__rating:hover span { text-decoration: underline; }

.hero__actions { display: flex; gap: 10px; }
.hero__cta { flex: 1; }
.hero__call { flex: none; }
.hero__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dots); }
.hero__links a:hover { text-decoration-color: currentColor; }
.hero__links .icon { color: var(--muted); }

/* Узкий телефон: у «Позвонить» остаётся иконка, подпись — для скринридера */
@media (max-width: 420px) {
  .hero__call { padding: 0 16px; }
  .hero__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 960px) {
  .hero__photo { height: min(82vh, 820px); }
  .hero__caption { bottom: 44px; }
  .hero__bar {
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 48px; row-gap: 10px;
    padding-top: 28px;
  }
  .hero__actions { grid-column: 2; grid-row: 1 / span 2; }
  .hero__cta { flex: none; min-width: 240px; }
  .hero__links { grid-column: 1; }
}

/* sections.css */
/* --- Акции: полосы цвета салона, фото слева на компьютере --- */
.promos__list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.promo { display: grid; overflow: hidden; border-radius: var(--r); background: var(--accent); color: var(--accent-ink); }
.promo__media { overflow: hidden; }
.promo__img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo__body { display: grid; gap: 8px; align-content: center; justify-items: start; padding: 24px 22px 26px; }
.promo__badge { font-family: var(--font-display); font-weight: 700; font-size: 3rem; line-height: .95; }
.promo__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.75rem; line-height: 1.05; }
.promo__text { max-width: 40em; opacity: .92; }
.promo__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 0.9rem; opacity: .8; }
.promo__cta { margin-top: 8px; }
@media (min-width: 768px) {
  .promo--photo { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 300px; }
  /* Высоту полосы задаёт текст, фото заполняет свою колонку */
  .promo__media { position: relative; }
  .promo__img { position: absolute; inset: 0; aspect-ratio: auto; }
  .promo__body { padding: 36px 40px; }
}

/* --- О салоне: заголовок слева, текст справа на компьютере --- */
.about__grid { display: grid; }
.about__body { max-width: 40em; color: var(--ink-2); font-size: 1.06rem; line-height: 1.65; }
.about__subtitle { margin-top: 24px; font-weight: 600; }
.about__list { margin: 8px 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.about__list li { position: relative; padding-left: 20px; }
.about__list li + li { margin-top: 4px; }
.about__list li::before { content: "–"; position: absolute; left: 0; color: var(--muted); }
.about__list li.has-icon { display: flex; align-items: center; gap: 10px; padding-left: 0; }
.about__list li.has-icon::before { content: none; }
.about__list li.has-icon .icon { flex: none; color: var(--muted); }
@media (min-width: 960px) {
  .about__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 56px; }
  .about__grid > .section__title { margin-bottom: 0; }
}

/* --- Новости --- */
.news__list { display: grid; gap: 28px; margin: 0; padding: 0; list-style: none; }
.post { display: grid; gap: 12px; }
.post__media { overflow: hidden; border-radius: var(--r-sm); }
.post__img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.post__date { color: var(--muted); font-size: 0.875rem; }
.post__title { margin-top: 2px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.55rem; line-height: 1.1; }
.post__lead, .post .more > p { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 768px) {
  .news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
}

/* --- Подвал --- */
.footer { margin-top: var(--section-y); padding: 36px 0 40px; background: var(--mist); }
.footer__inner { display: grid; gap: 12px; justify-items: start; color: var(--muted); font-size: 0.875rem; }
.footer__name { color: var(--ink); font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1; }
.footer__langs { display: flex; gap: 16px; }
.footer__langs a { color: var(--muted); text-decoration: none; }
.footer__langs a:hover { color: var(--ink); }
.footer__langs a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer__rights { font-size: 0.8125rem; color: var(--muted); }
.footer__glowry { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.footer__glowry a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--dots); text-underline-offset: 3px; }
.footer__glowry a:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 767px) {
  .footer { padding: 28px 0; }
  body.has-dock .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* --- Нижняя панель записи (телефон) --- */
.dock { display: none; }
@media (max-width: 767px) {
  .dock {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
    translate: 0 110%; transition: translate 220ms var(--ease);
  }
  .dock.is-visible { translate: 0 0; }
  .dock__inner { display: flex; gap: 10px; }
  .dock__cta { flex: 1; }
  .dock__call { width: 54px; height: 54px; }
}

/* --- Состояния: 404 --- */
.state-page { display: grid; min-height: 100vh; }
.state { display: grid; place-content: center; justify-items: center; gap: 14px; padding: 48px 20px; text-align: center; }
.state__logo { display: grid; place-items: center; width: 80px; height: 80px; margin-bottom: 8px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.state__eyebrow { color: var(--muted); }
.state__title { max-width: 18em; font-family: var(--font-display); font-weight: var(--display-weight); font-size: clamp(2rem, 1.5rem + 2vw, 3rem); line-height: 1.05; }
.state__text { max-width: 30em; color: var(--ink-2); }

/* services.css */
/*
  Цены — прейскурант: название, отточие, цена узким гротеском. Категории —
  раскрывающиеся списки, одинаковые везде: открыта первая, у каждой название,
  число услуг и стрелка. На компьютере список ограничен по ширине, чтобы
  отточие не растягивалось на весь экран.
*/
.services__layout { max-width: 820px; }
.svc-group { border-bottom: 1px solid var(--line); }
.svc-group--single { padding-bottom: 8px; }
.svc-group__head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 0; cursor: pointer; list-style: none;
}
.svc-group__head::-webkit-details-marker { display: none; }
.svc-group__title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.25rem; line-height: 1.2;
}
/* Первые три категории видны сразу, остальные — по «Показать ещё» (только со скриптом) */
.svc-more { display: none; }
.js .services__layout:not(.is-all) .svc-group--extra { display: none; }
.js .svc-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 10px 18px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.js .svc-more:hover { border-color: var(--ink); }
.js .svc-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-more__count { min-width: 1.75em; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: 0.8125rem; text-align: center; font-variant-numeric: tabular-nums; }
.svc-more__chev { width: 18px; height: 18px; }
.js .services__layout.is-all .svc-more { display: none; }
.svc-group--single .svc-group__title { margin: 0 0 4px; }
.svc-group__count { flex: none; min-width: 1.75em; padding: 1px 8px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: 0.8125rem; font-weight: 600; line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.svc-group__chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: rotate 0.3s var(--ease), color 0.2s ease; }
.svc-group__head:hover .svc-group__chev, .svc-group__head:focus-visible .svc-group__chev { color: var(--ink); }
.svc-group[open] > .svc-group__head .svc-group__chev { rotate: 180deg; color: var(--accent-text); }
.svc-group__head:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* backwards, а не both: после показа слой не остаётся «залипшим» и не перехватывает клики */
.svc-group[open] > .svc-group__body { animation: svc-open 0.22s ease backwards; }
@keyframes svc-open { from { opacity: 0; translate: 0 -6px; } }
/* Со скриптом раскрытие ведёт services.js (высота + прозрачность); CSS-анимация — только для случая без JS */
.js .svc-group[open] > .svc-group__body { animation: none; }
.svc-group__count { transition: background-color 0.2s ease, color 0.2s ease; }
.svc-group[open] > .svc-group__head .svc-group__count { background: var(--accent); color: var(--accent-ink); }
.svc-group__body .svc-list { margin-bottom: 8px; }
.svc-group__body .svc-list li:last-child .svc { border-bottom: 0; }

.svc-list { margin: 0; padding: 0; list-style: none; }
.svc { display: block; padding: 15px 0 14px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
/* Длинное название переносится — отточие и цена стоят на уровне его последней строки */
.svc__line { display: flex; align-items: baseline; align-items: last baseline; gap: 8px; }
.svc__name { font-weight: 500; font-size: 1.06rem; line-height: 1.35; }
.svc__dots { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted var(--dots); translate: 0 -5px; }
.svc__price {
  flex: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.svc__sub { display: flex; flex-wrap: wrap; margin-top: 5px; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
.svc__sub > span + span::before { content: "·"; margin: 0 7px; }
a.svc:hover .svc__name { text-decoration: underline; text-underline-offset: 3px; }
a.svc:hover .svc__price { color: var(--accent-text); }

@media (max-width: 400px) {
  .svc__price { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-group[open] > .svc-group__body { animation: none; }
  .svc-group__chev { transition: none; }
}

/* team.css */
/* Мастера: портрет 3:4, имя узким гротеском, роль, «Записаться →» */
.team__list { padding-top: 4px; }
.member { display: flex; flex-direction: column; width: min(64vw, 250px); }
/* Ряд карточек одной высоты (rail/flex растягивает), «Записаться» прижата вниз —
   на одном уровне у всех мастеров, сколько бы строк ни занимали роль, стаж и языки */
.member__open {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.member__portrait {
  display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 3 / 4;
  border-radius: var(--r-sm); background: var(--mist);
}
.member__img { width: 100%; height: 100%; object-fit: cover; }
.member__mono {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent-text);
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
}
.member__name {
  margin-top: 12px;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.45rem; line-height: 1.05;
}
.member__open:hover .member__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.member__role { margin-top: 3px; color: var(--muted); font-size: 0.92rem; }
.member__meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; color: var(--muted); font-size: 0.85rem; }
.member__speaks { margin-top: 3px; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.member__rating { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; }
.member__book {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; min-height: 32px; align-self: flex-start;
  white-space: nowrap;
  color: var(--accent-text); font-weight: 600; text-decoration: none;
}
.member__book:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Мастеров мало — стоят по центру, без пустоты справа. Много — лента прокручивается:
   у auto-полей в переполненной ленте ширина 0, начало ленты не обрезается */
.team__list > .member:first-child { margin-left: auto; }
.team__list > .member:last-child { margin-right: auto; }

/* Компьютер: та же лента, ограничена шириной контейнера; стрелки — у середины портрета */
.strip--team .strip__arrow { top: 150px; }
@media (min-width: 1024px) {
  .strip--team { max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; }
  .team__list { gap: 24px; }
  .member { width: 250px; }
}

/* --- Карточка мастера в окне --- */
.profile { display: grid; gap: 18px; }
.profile__head { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; }
.profile__portrait { display: block; overflow: hidden; width: 88px; aspect-ratio: 3 / 4; border-radius: var(--r-sm); background: var(--mist); }
.profile__portrait .member__mono { font-size: 2rem; }
.profile__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.9rem; line-height: 1; }
.profile__role { margin-top: 4px; color: var(--muted); }
.profile__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.profile__meta span { display: inline-flex; align-items: center; gap: 4px; }
.profile__bio { color: var(--ink-2); }
.profile__subtitle { margin-top: 4px; font-weight: 600; }
.profile__works { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.profile__work { display: block; width: 104px; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden; cursor: zoom-in; }
.profile__work img { width: 100%; height: 100%; object-fit: cover; }
.profile__services { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.profile__services li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.profile__svc { font-weight: 500; }
.profile__svc-meta { flex: none; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-align: right; font-variant-numeric: tabular-nums; }
.profile__cta { position: sticky; bottom: 0; padding: 12px 0 4px; background: #fff; }

/* works.css */
/*
  Лента фото (интерьер и работы): два ряда, листается вбок. Плитки квадратные;
  блок из трёх фото = крупное 2x2 + два малых друг над другом, через блок — зеркально.
  data-mod = число фото % 3: хвост из одного фото становится крупным, из двух —
  двумя высокими, поэтому дыр в ленте нет.
*/
.strip { --tile: 128px; --gap: 6px; position: relative; }
.strip__rail {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, var(--tile)); grid-auto-columns: var(--tile); gap: var(--gap);
  margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip__rail::-webkit-scrollbar { display: none; }
.strip__item { min-width: 0; scroll-snap-align: start; }
.strip__item:nth-child(6n+1), .strip__item:nth-child(6n+6) { grid-column: span 2; grid-row: span 2; }
.strip__rail[data-mod="1"] .strip__item:last-child { grid-column: span 2; grid-row: span 2; }
.strip__rail[data-mod="2"] .strip__item:last-child,
.strip__rail[data-mod="2"] .strip__item:nth-last-child(2) { grid-column: span 1; grid-row: span 2; }
.strip__btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: var(--mist); cursor: zoom-in; }
.strip__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease, opacity var(--dur); }
.strip__btn:hover .strip__img { transform: scale(1.04); }
.strip__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Стрелки — только там, где есть мышь; на телефоне лента листается пальцем */
.strip__arrow {
  display: none; position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  align-items: center; justify-content: center; border: 0; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .18); cursor: pointer;
  transition: transform var(--dur), opacity var(--dur);
}
.strip__arrow[hidden] { display: none !important; }
.strip__arrow:hover { transform: scale(1.08); }
.strip__arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.strip__arrow--prev { left: -14px; }
.strip__arrow--next { right: -14px; }
.strip__arrow .icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .strip__arrow { display: inline-flex; } }
@media (min-width: 768px) { .strip { --tile: 170px; --gap: 8px; } }
@media (min-width: 1024px) { .strip { --tile: 200px; } }
@media (prefers-reduced-motion: reduce) {
  .strip__img, .strip__arrow { transition: none; }
  .strip__btn:hover .strip__img, .strip__arrow:hover { transform: none; }
}

/* --- Просмотр фото --- */
.lightbox {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
  background: #111; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: #111; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px; }
.lightbox__counter { font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .7); font-size: 0.9rem; }
/* Явная строка сетки: без неё max-height: 100% у фото не срабатывает и высокий кадр вылезает за экран */
.lightbox__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 12px; touch-action: pan-y; user-select: none; }
.lightbox__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: #1b1b1b; transition: opacity 200ms; }
.lightbox__img.is-loading { opacity: .35; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__foot { display: grid; gap: 14px; padding: 16px 20px calc(18px + env(safe-area-inset-bottom)); }
.lightbox__caption:has(p:empty + p:empty) { display: none; }
.lightbox__title { font-weight: 600; font-size: 1.05rem; }
.lightbox__title:empty, .lightbox__by:empty { display: none; }
.lightbox__by { margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 0.9rem; }
.lightbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lightbox__actions:not(:has(> :not([hidden]))) { display: none; }
.lightbox__book[hidden] { display: none; }
@media (max-width: 639px) {
  .lightbox__book { width: 100%; }
}
@media (min-width: 640px) {
  .lightbox__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
}

/* interior.css */
/* Интерьер использует общую ленту .strip (works.css) */

/* reviews.css */
/* Отзывы: рейтинг крупной цифрой, отзывы — просто текст через тонкие линии */
.reviews__layout { display: grid; gap: 8px; }
.reviews__summary { display: grid; gap: 6px; align-content: start; }
.score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted); }
.score .stars { align-self: center; }
.score strong { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--ink); }

.reviews__list { display: grid; margin: 0; padding: 0; list-style: none; }
.reviews__list > li { border-top: 1px solid var(--line); }
.reviews__list > li:last-child { border-bottom: 1px solid var(--line); }
.review { display: grid; gap: 8px; padding: 20px 0; }
.review__text { max-width: 62ch; font-size: 1.06rem; line-height: 1.6; color: var(--ink); }
.js .review__text.is-clamped p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review__expand { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.review__foot { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.review__author { font-weight: 600; }
.review__meta { color: var(--muted); font-size: 0.875rem; }
.review__reply { padding: 12px 14px; border-radius: var(--r-sm); background: var(--mist); color: var(--ink-2); font-size: 0.95rem; }
.review__reply-title { margin-bottom: 2px; color: var(--muted); font-size: 0.85rem; }

@media (min-width: 960px) {
  .reviews__layout { grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start; }
  .reviews__summary { position: sticky; top: calc(var(--topbar-h) + 24px); }
}

/* contacts.css */
/* Контакты: адрес крупно, ссылки Яндекса, телефон, часы; филиалы — колонками */
.contacts__places { display: grid; gap: 40px; }
.place { display: grid; gap: 12px; align-content: start; }
.place__name { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.6rem; line-height: 1.05; }
.place__address { font-size: 1.15rem; font-weight: 500; line-height: 1.4; }
.place__links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.place__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dots); }
.place__links a:hover { text-decoration-color: currentColor; }
.place__links .icon { color: var(--muted); }
.place__phone { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; line-height: 1; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.place__phone:hover { color: var(--accent-text); }

.hours { width: 100%; max-width: 380px; margin-top: 4px; font-size: 0.95rem; }
.hours th { padding: 5px 16px 5px 0; color: var(--muted); font-weight: 400; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.hours td { padding: 5px 0; text-align: right; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line); }
.hours--closed td { color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 600; }

.socials { margin-top: 40px; }
.socials__title { margin-bottom: 10px; font-weight: 600; }
.socials__list { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--dots); }
.social:hover { text-decoration-color: currentColor; }

@media (min-width: 768px) {
  .contacts__places { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 56px; }
}

/* dialogs.css */
/*
  Окна на <dialog>. Телефон: «шторка» снизу. Desktop: панель справа
  (запись, мастер, меню) или окно по центру (все отзывы).
*/
.sheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: 92dvh; margin: 0; padding: 0;
  border: 0; border-radius: 14px 14px 0 0;
  background: #fff; color: var(--ink);
  overflow: hidden;
}
/* Движение окон: выезд снизу и затемнение фона при открытии, обратный ход при закрытии
   (класс is-closing ставит dialogs.js). backwards, а не both: открытое окно не остаётся «залипшим» слоем */
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 340ms var(--ease) backwards; }
.sheet::backdrop { background: var(--scrim); }
.sheet[open]::backdrop { animation: scrim-in 300ms ease backwards; }
.sheet.is-closing { animation: sheet-down 230ms cubic-bezier(.4, 0, 1, 1) forwards; }
.sheet.is-closing::backdrop { animation: scrim-out 230ms ease forwards; }
@keyframes sheet-up { from { translate: 0 100%; } to { translate: 0 0; } }
@keyframes sheet-down { to { translate: 0 100%; } }
@keyframes scrim-in { from { opacity: 0; } }
@keyframes scrim-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; scale: .96; translate: 0 12px; } }
@keyframes pop-out { to { opacity: 0; scale: .97; translate: 0 8px; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

/* Просмотр фото: появляется и гаснет плавно */
.lightbox[open] { animation: fade-in 260ms ease backwards; }
.lightbox.is-closing { animation: fade-out 200ms ease forwards; }
.lightbox[open]::backdrop { animation: scrim-in 260ms ease backwards; }

/* Меню: пункты появляются по очереди */
.sheet--menu[open] .menu__nav li { animation: rise 380ms var(--ease) backwards; }
.sheet--menu[open] .menu__nav li:nth-child(1) { animation-delay: 80ms; }
.sheet--menu[open] .menu__nav li:nth-child(2) { animation-delay: 120ms; }
.sheet--menu[open] .menu__nav li:nth-child(3) { animation-delay: 160ms; }
.sheet--menu[open] .menu__nav li:nth-child(4) { animation-delay: 200ms; }
.sheet--menu[open] .menu__nav li:nth-child(5) { animation-delay: 240ms; }
.sheet--menu[open] .menu__nav li:nth-child(6) { animation-delay: 280ms; }
.sheet--menu[open] .menu__nav li:nth-child(n+7) { animation-delay: 320ms; }
.sheet--menu[open] .menu__langs, .sheet--menu[open] .sheet__foot { animation: rise 380ms var(--ease) 360ms backwards; }

.sheet__bar {
  display: flex; align-items: center; gap: 8px; flex: none;
  min-height: 60px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line);
}
.sheet__bar--floating { position: absolute; top: 0; right: 0; z-index: 3; border: 0; padding: 12px; }
.sheet__title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 1.5rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__body { flex: 1; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet__foot { flex: none; display: grid; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }

.sheet--menu { height: 92dvh; }
/* Карточка мастера: высокая шторка (не ниже 90% экрана), а не полоска под содержимое (у мастера с 1–2 услугами окно
   иначе съёживалось и прижималось к низу экрана); список услуг при нехватке места прокручивается */
.sheet--profile { min-height: 90dvh; }
/* Крестик карточки мастера — компактный; зона нажатия остаётся не меньше 44px (через ::after) */
.sheet--profile .sheet__bar--floating { padding: 10px; }
.sheet--profile .sheet__bar--floating .icon-btn { position: relative; width: 32px; height: 32px; border-radius: 50%; }
.sheet--profile .sheet__bar--floating .icon-btn svg { width: 16px; height: 16px; }
.sheet--profile .sheet__bar--floating .icon-btn::after { content: ""; position: absolute; inset: -6px; }
.sheet--profile .sheet__body { padding-top: 24px; }

@media (min-width: 768px) {
  .sheet { inset: 0 0 0 auto; width: min(480px, 100vw); height: 100dvh; max-height: none; border-radius: 0; }
  .sheet[open] { animation: sheet-left 320ms var(--ease) backwards; }
  .sheet.is-closing { animation: sheet-right 230ms cubic-bezier(.4, 0, 1, 1) forwards; }
  .sheet--menu { height: 100dvh; }
  @keyframes sheet-left { from { translate: 100% 0; } to { translate: 0 0; } }
  @keyframes sheet-right { to { translate: 100% 0; } }
  .sheet--reviews { inset: 0; margin: auto; width: min(680px, calc(100vw - 48px)); height: min(820px, calc(100dvh - 48px)); border-radius: var(--r); }
  .sheet--reviews[open] { animation: pop-in 280ms var(--ease) backwards; }
  .sheet--reviews.is-closing { animation: pop-out 200ms ease forwards; }
}

/* «Ручка» шторки на телефоне: окно можно смахнуть вниз */
@media (max-width: 767px) {
  .sheet .sheet__bar { position: relative; touch-action: none; }
  .sheet .sheet__bar::before {
    content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--line);
  }
  .sheet .sheet__bar--floating::before { display: none; }

  /* Плавающий крестик (карточка мастера) остаётся поверх содержимого в углу: правило выше делало его
     обычной строкой в потоке высотой 60px */
  .sheet .sheet__bar--floating { position: absolute; min-height: 0; touch-action: auto; }
  .sheet--profile .sheet__body { padding-top: 44px; }
  .sheet.is-dragging { animation: none; transition: none; }
  .sheet.is-settling { transition: transform 220ms var(--ease); }
}

/* booking.css */
/*
  Онлайн-запись — в оформлении страницы записи Glowry (webapp/templates/public.html),
  чтобы клиент видел одну и ту же запись и на сайте салона, и по ссылке /{slug}:
  шрифт Inter, светлый фон с оттенком цвета салона, белые карточки со скруглением
  22px и мягкой тенью, полоска шагов отрезками, аккордеон категорий, ряд дней,
  сетка времени, итог карточкой, кнопки-пилюли внизу. Цвет — салона (--accent).
  Разметку строит booking/render.js. Всё — внутри .sheet--booking.
*/
.sheet--booking {
  --bk-text: #111827;
  --bk-sub: #6b7280;
  --bk-border: #e5e7eb;
  --bk-surface-2: #f8fafc;
  --bk-light: color-mix(in srgb, var(--accent) 9%, #fff);
  --bk-price: var(--accent-text);
  --bk-green: #10b981;
  --bk-shadow: 0 4px 24px rgba(0, 0, 0, .08);
  --bk-shadow-sm: 0 2px 12px rgba(0, 0, 0, .05);
  --bk-ease: cubic-bezier(.22, 1, .36, 1);
  height: 92dvh;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 7%, #fff) 0%, #f0f4f9 55%,
    color-mix(in srgb, var(--accent) 5%, #f5f3ff) 100%);
  color: var(--bk-text);
  font-family: "HyFont", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { .sheet--booking { height: 100dvh; border-radius: 0; } }
.sheet--booking button, .sheet--booking input { font-family: inherit; }

/* --- верх: логотип и название салона, крестик --- */
.bk-top {
  display: flex; align-items: center; gap: 10px; flex: none;
  min-height: 60px; padding: 12px 12px 6px 20px; border: 0;
}
.bk-top__logo {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px; overflow: hidden;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px;
}
.bk-top__logo img { width: 100%; height: 100%; object-fit: cover; }
.bk-top__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15px; }
.bk-top__close {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .8); color: var(--bk-sub); cursor: pointer; box-shadow: var(--bk-shadow-sm);
}
.bk-top__close:hover { color: var(--bk-text); background: #fff; }

/* --- полоска шагов --- */
.bk-steps { display: flex; gap: 6px; flex: none; padding: 6px 20px 10px; }
.bk-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--bk-border); transition: background .3s; }
.bk-steps span.is-on { background: var(--accent); }

.bk-body { flex: 1; min-height: 0; padding: 14px 20px 24px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bk-body:focus, .bk-title:focus, .bk-done__title:focus { outline: none; }
.bk-title { margin-bottom: 6px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bk-sub { margin-bottom: 20px; color: var(--bk-sub); font-size: 14.5px; line-height: 1.5; }
.bk-title + :not(.bk-sub) { margin-top: 16px; }

.bk-alert {
  display: flex; gap: 10px; flex: none; margin: 0 20px 10px; padding: 12px 14px;
  border-radius: 14px; background: #fef2f2; color: #991b1b; font-size: 14px; font-weight: 500;
}
.bk-alert .icon { flex: none; color: #dc2626; }

/* --- карточки выбора (услуга, мастер) --- */
.bk-list { display: grid; gap: 10px; }
.bk-card {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 18px; border: 2px solid transparent; border-radius: 22px;
  background: #fff; color: var(--bk-text); text-align: left; cursor: pointer;
  box-shadow: var(--bk-shadow-sm); transition: transform .22s var(--bk-ease), box-shadow .22s, border-color .15s, background .15s;
}
.bk-card:hover { transform: translateY(-2px); box-shadow: var(--bk-shadow); }
.bk-card[aria-checked="true"] { border-color: var(--accent); background: var(--bk-light); }
.bk-card__main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.bk-card__name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.bk-card__desc {
  color: var(--bk-sub); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-card[aria-checked="true"] .bk-card__desc { -webkit-line-clamp: unset; }
.bk-card__sub { color: var(--bk-sub); font-size: 13px; }
.bk-card__price { flex: none; margin-left: auto; color: var(--bk-price); font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Время визита у мастера под ценой: у мастеров оно бывает разным */
.bk-card__dur { display: block; margin-top: 2px; color: var(--bk-sub); font-size: 13px; font-weight: 600; text-align: right; }

.bk-avatar {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; overflow: hidden; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #7c3aed));
  color: #fff; font-weight: 800; font-size: 17px;
}
.bk-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-avatar--any { border-radius: 18px; background: var(--bk-light); color: var(--accent-text); }
.bk-rating { display: flex; align-items: center; gap: 1px; margin-top: 2px; color: #d97706; font-size: 12px; }
.bk-rating b { margin-left: 4px; font-weight: 700; }
.bk-star { width: 13px; height: 13px; fill: currentColor; }
.bk-star.is-off { opacity: .3; }

/* --- филиалы --- */
.bk-branch {
  display: flex; align-items: center; gap: 16px; width: 100%; padding: 18px 20px;
  border: 2px solid transparent; border-radius: 28px; background: #fff; color: var(--bk-text);
  text-align: left; cursor: pointer; box-shadow: var(--bk-shadow); transition: transform .22s var(--bk-ease), box-shadow .22s;
}
.bk-branch:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 0, 0, .1); }
.bk-branch[aria-checked="true"] { border-color: var(--accent); }
.bk-branch__icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 18px; background: var(--bk-light); color: var(--accent-text); }
.bk-branch__icon .icon { width: 26px; height: 26px; }
.bk-branch__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bk-branch__name { font-weight: 700; font-size: 15px; }
.bk-branch__addr { color: var(--bk-sub); font-size: 13px; line-height: 1.4; }
.bk-branch__arrow { flex: none; color: var(--bk-border); }
.bk-branch:hover .bk-branch__arrow { color: var(--accent); }

/* --- категории услуг: аккордеон --- */
.bk-filter { margin-bottom: 14px; }
.bk-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px;
  border: 1.5px solid var(--accent); border-radius: 999px; background: var(--bk-light);
  color: var(--accent-text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.bk-cat { margin-bottom: 10px; border-radius: 22px; transition: box-shadow .22s var(--bk-ease); }
.bk-cat__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  padding: 14px 18px; border: 0; border-radius: 22px; background: #fff; color: var(--bk-text);
  text-align: left; cursor: pointer; box-shadow: var(--bk-shadow-sm); transition: transform .22s var(--bk-ease), box-shadow .22s;
}
.bk-cat__head:hover { transform: translateY(-1px); box-shadow: var(--bk-shadow); }
.bk-cat__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bk-cat__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.bk-cat__count { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--bk-light); color: var(--bk-sub); font-size: 12px; font-weight: 600; }
.bk-cat__chev { flex: none; width: 20px; height: 20px; color: var(--bk-sub); transition: transform .5s cubic-bezier(.45, .05, .25, 1); }
.bk-cat.is-open { background: #fff; box-shadow: var(--bk-shadow-sm); }
.bk-cat.is-open .bk-cat__head { border-bottom: 1px solid var(--bk-border); border-radius: 22px 22px 0 0; box-shadow: none; }
.bk-cat.is-open .bk-cat__head:hover { transform: none; }
.bk-cat.is-open .bk-cat__chev { transform: rotate(180deg); }
/* Высота раскрытия: 0fr → 1fr — браузер сам ведёт её к размеру содержимого */
.bk-cat__body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .36s cubic-bezier(.45, .05, .25, 1), opacity .24s ease; }
.bk-cat.is-open .bk-cat__body { grid-template-rows: 1fr; opacity: 1; transition-duration: .56s, .4s; }
.bk-cat__clip { min-height: 0; overflow: hidden; }
.bk-cat__pad { display: grid; gap: 4px; padding: 6px 6px 8px; }
.bk-cat__pad .bk-card { background: var(--bk-surface-2); box-shadow: none; }
.bk-cat__pad .bk-card:hover { transform: none; box-shadow: none; background: var(--bk-light); }
.bk-cat__pad .bk-card[aria-checked="true"] { background: var(--bk-light); }

/* варианты услуги — под выбранной карточкой */
.bk-var { margin: -2px 0 6px; padding: 10px 12px 12px; border-radius: 0 0 22px 22px; background: var(--bk-light); }
.bk-var__title { margin-bottom: 8px; color: var(--bk-sub); font-size: 12.5px; font-weight: 600; }
.bk-var__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 100%;
  padding: 8px 12px; border: 1.5px solid var(--bk-border); border-radius: 12px; background: #fff;
  color: var(--bk-text); text-align: left; cursor: pointer; transition: border-color .15s;
}
.bk-chip b { font-size: 14px; font-weight: 700; }
.bk-chip span { color: var(--bk-sub); font-size: 12px; }
.bk-chip[aria-checked="true"] { border-color: var(--accent); box-shadow: none; }
.bk-chip--unsure { border-style: dashed; }

/* --- дни и время --- */
.bk-days { display: flex; gap: 10px; margin: 0 -20px 6px; padding: 0 20px 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 20px; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  flex: 0 0 68px; display: flex; flex-direction: column; align-items: center; padding: 12px 8px 8px;
  border: 2px solid transparent; border-radius: 18px; background: #fff; color: var(--bk-text);
  cursor: pointer; scroll-snap-align: start; box-shadow: 0 2px 8px rgba(0, 0, 0, .04); transition: .22s;
}
.bk-day__dow { color: var(--bk-sub); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.bk-day__num { margin-top: 3px; font-size: 22px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bk-day__dot { width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: transparent; }
.bk-day.has-slots .bk-day__dot { background: var(--bk-green); }
.bk-day.no-slots { opacity: .45; box-shadow: none; cursor: not-allowed; }
.bk-day.no-slots .bk-day__num { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.bk-day[aria-pressed="true"] { border-color: var(--accent); background: var(--bk-light); }
.bk-day[aria-pressed="true"] .bk-day__dow, .bk-day[aria-pressed="true"] .bk-day__num { color: var(--accent-text); }
.bk-dayname { margin: 4px 0 12px; color: var(--bk-sub); font-size: 13px; font-weight: 600; }
.bk-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bk-slot {
  padding: 14px 4px; border: 0; border-radius: 14px; background: #fff; color: var(--bk-text);
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04); transition: .22s var(--bk-ease);
}
.bk-slot:hover { background: var(--bk-light); color: var(--accent-text); }
.bk-slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.bk-skeleton__days { display: flex; gap: 10px; margin-bottom: 18px; }
.bk-skeleton__days span { flex: 0 0 68px; height: 74px; border-radius: 18px; }
.bk-skeleton span {
  display: block; height: 48px; border-radius: 14px;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 37%, #e5e7eb 63%); background-size: 400% 100%; animation: bk-shine 1.4s infinite;
}
.bk-skeleton__days span { height: 74px; }
@keyframes bk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bk-empty { display: grid; justify-items: start; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; color: var(--bk-sub); font-size: 14px; box-shadow: var(--bk-shadow-sm); }

/* --- итог и данные --- */
.bk-sum {
  margin: 0 0 20px; padding: 20px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px;
  background: rgba(255, 255, 255, .86); box-shadow: 0px 4px 24px rgba(16,24,40,0.18);
}
.bk-sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--bk-border); font-size: 14px; }
.bk-sum__row:last-of-type { border-bottom: 0; }
.bk-sum__row dt { flex: none; color: var(--bk-sub); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bk-sum__row dd { margin: 0; max-width: 62%; text-align: right; font-weight: 600; }
.bk-sum__row--list { flex-direction: column; align-items: stretch; gap: 8px; }
.bk-sum__row--list dd { max-width: none; text-align: left; }
.bk-sum__items { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bk-sum__items { gap: 0; }
.bk-sum__items li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--bk-border); }
.bk-sum__items li:last-child { border-bottom: 0; }
.bk-sum__nm { flex: 0 1 auto; min-width: 0; text-align: left; }
/* Название у левого края, цена и длительность у правого; между ними тонкая линия, проступающая от названия */
.bk-sum__lead {
  flex: 1 1 24px; min-width: 16px; align-self: flex-start; height: 1px; margin: .66em 2px 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bk-sub) 38%, transparent) 30%, color-mix(in srgb, var(--bk-sub) 38%, transparent));
}
.bk-sum__meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; white-space: nowrap; }
.bk-sum__meta b { font-weight: 700; }
.bk-sum__meta small, .bk-sum__total small { color: var(--bk-sub); font-size: 13px; font-weight: 600; }
.bk-sum__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 8px; padding-top: 14px; border-top: 2px solid var(--bk-border); font-size: 17px; font-weight: 800;
}
.bk-sum__total { align-items: flex-start; }
.bk-sum__total dd { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.bk-sum__price { white-space: nowrap; }
.bk-field { margin-bottom: 12px; }
.bk-field label { display: block; margin-bottom: 6px; color: var(--bk-sub); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.bk-field input {
  width: 100%; padding: 15px 16px; border: 1.5px solid var(--bk-border); border-radius: 18px;
  background: #fff; color: var(--bk-text);
  font-size: 16px; /* меньше 16px — iOS увеличит страницу при фокусе */
  outline: none; transition: .18s;
}
.bk-field input:focus { border-color: var(--accent); box-shadow: none; }
.bk-field [aria-invalid="true"] { border-color: #dc2626; }
.bk-field__error { margin-top: 4px; color: #dc2626; font-size: 12px; }
.bk-field__error:empty { display: none; }

/* --- низ: итог, «Назад», «Продолжить» --- */
.bk-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: none;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bk-border); background: rgba(255, 255, 255, .98);
}
/* Проверка «я не робот» (/captcha.js) — над итогом и кнопками, только на шаге с данными */
.bk-bar__captcha { order: -2; flex-basis: 100%; margin: 0 0 2px; }
.bk-bar__captcha[hidden] { display: none; }
.bk-bar__total { order: -1; flex-basis: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--accent-text); font-size: 13px; font-weight: 700; }
.bk-bar__total[hidden] { display: none; }
.bk-bar__total span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-bar__total b { flex: none; font-weight: 800; }
.bk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 22px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform .18s var(--bk-ease), box-shadow .18s, filter .18s;
}
.bk-btn[hidden] { display: none; }
.bk-btn:active { transform: scale(.98); }
.bk-btn--primary { flex: 1; background: var(--accent); color: var(--accent-ink); box-shadow: 0px 8px 28px rgba(16,24,40,0.18); }
.bk-btn--primary:hover { filter: brightness(1.06); }
.bk-btn--primary[aria-disabled="true"], .bk-btn--primary:disabled { opacity: .4; box-shadow: none; }
.bk-btn--ghost { flex: none; border: 1.5px solid var(--bk-border); background: var(--bk-surface-2); color: var(--bk-sub); }
.bk-btn--ghost:hover { background: var(--bk-border); }
.bk-btn--block { width: 100%; }

/* --- готово --- */
.bk-done { padding: 28px 0 8px; text-align: center; }
.bk-check { width: 96px; height: 96px; margin: 0 auto 24px; }
.bk-check svg { width: 96px; height: 96px; }
.bk-check__circle { fill: none; stroke: var(--bk-green); stroke-width: 2; stroke-dasharray: 214; stroke-dashoffset: 214; animation: bk-dash .7s .1s ease forwards; }
.bk-check__tick { fill: none; stroke: var(--bk-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 52; stroke-dashoffset: 52; animation: bk-dash .42s .65s ease forwards; }
@keyframes bk-dash { to { stroke-dashoffset: 0; } }
.bk-done__title { margin-bottom: 8px; font-size: 24px; font-weight: 800; }
.bk-done__text { margin: 0 auto 24px; max-width: 30em; color: var(--bk-sub); font-size: 14.5px; line-height: 1.6; }
.bk-done .bk-sum { text-align: left; }
.bk-tg { margin-bottom: 14px; padding: 22px; border-radius: 28px; background: linear-gradient(135deg, #229ed9, #1a8cd8); color: #fff; text-align: left; }
.bk-tg h3 { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.bk-tg ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bk-tg li { display: flex; align-items: center; gap: 11px; font-size: 13.5px; line-height: 1.4; }
.bk-tg__icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .18); }
.bk-tg__btn { display: block; margin-bottom: 12px; padding: 14px; border-radius: 14px; background: #fff; color: #1a8cd8; font-weight: 700; font-size: 15px; text-align: center; text-decoration: none; }
.bk-tg__btn:hover { background: #e0f2fe; }

@media (prefers-reduced-motion: reduce) {
  .sheet--booking *, .sheet--booking *::before { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .bk-check__circle, .bk-check__tick { stroke-dashoffset: 0; }
}

/* Скрытое поле-ловушка для ботов: человек его не видит */
.bk-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* touch.css */
/*
  Касания. Файл идёт последним в бандле: минимальные размеры должны перекрывать
  размеры компонентов из остальных файлов.
*/
a, button, summary, [role="button"], [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  /* На сенсорных экранах всё нажимаемое — не меньше 44 px в высоту */
  .btn--sm, .chip, .social, .langs a, .member__book,
  .hero__links a, .place__links a, .hero__rating {
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .langs a { min-width: 44px; justify-content: center; }
  .brand { min-height: 44px; display: flex; align-items: center; }
  .more__toggle, .review__expand, .link, .footer__langs a, .footer__glowry a, .place__phone {
    display: inline-flex; align-items: center; min-height: 44px;
  }
}
