/* GLAMME — макет сайта.
   Настройки вида — атрибуты на <html>. Из админки: data-gallery, data-filter, data-hero-d/-m, data-foot-d/-m,
   data-gift, data-glook, data-gphoto, data-giftmenu, data-account, data-accm, data-popup, data-plook, data-dock; порядок блоков — style.order.
   Панель «Варианты» в макете переопределяет часть из них для сравнения. */

:root {
  --bg: #f5f3f0;            /* тёплый белый — фон страницы */
  --surface: #ffffff;
  --ink: #1d1c1a;           /* графит — основной текст и кнопки */
  --ink-2: #6b6762;         /* приглушённый текст */
  --line: rgba(29, 28, 26, 0.12);
  --rule: rgba(29, 28, 26, 0.3);   /* линия под заголовком группы */
  --night: #161514;                /* тёмный низ страницы: контакты и подвал */
  --photo: #aca8a3;         /* серый фон фотографии — заливка, пока грузится фото */
  --metro: #3aa651;         /* Замоскворецкая линия — Маяковская */

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 2.6vw, 48px);   /* поля шапки */
  --gutter: clamp(10px, 1vw, 20px);  /* отступ фото от краёв экрана */
  --radius: clamp(16px, 1.6vw, 28px);

  --hh: 84px;          /* высота шапки */
  --hh-s: 64px;        /* высота шапки после прокрутки */
  --logo-h: 46px;
  --ls-s: 0.8;         /* масштаб логотипа после прокрутки */
  /* линии логотипа (доли его высоты, измерены по файлу): низ «GLAMME» и низ «beauty studio» */
  --logo-base: 0.545;
  --logo-sub: 0.944;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-hdr: 0.55s;
  --ease-hdr: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hh); scrollbar-gutter: stable; }
body {
  margin: 0;
  padding-top: var(--hh);   /* место под фиксированную шапку — не меняется при её сжатии */
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
svg { flex: none; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px;
}
.skip:focus { top: 12px; }

/* ---------- Кнопки и ссылки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; height: 52px; font-size: 15px; }

.ulink { position: relative; }
.ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.ulink:hover::after, .ulink[aria-expanded="true"]::after, .ulink[aria-current="page"]::after { transform: scaleX(1); }   /* текущая страница — подчёркнута */

.metro-st { display: inline-flex; align-items: center; gap: 6px; }
.metro { width: 7px; height: 7px; border-radius: 50%; background: var(--metro); flex: none; }

/* ---------- Шапка ---------- */

/* Шапка фиксированная: её сжатие не двигает страницу, поэтому нет «дребезга» на границе прокрутки */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  --ls: 1;
  background: var(--bg);
  transition: background-color var(--t-hdr) var(--ease-hdr), box-shadow var(--t-hdr) var(--ease-hdr);
}
.hdr.is-scrolled { --ls: var(--ls-s); }
.hdr.is-scrolled {
  background: rgba(245, 243, 240, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.hdr.is-menu { background: var(--bg); box-shadow: 0 1px 0 var(--line); }

.hdr__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); /* логотип строго по центру */
  align-items: center;
  column-gap: 24px;
  height: var(--hh);
  padding: 0 var(--pad);
  transition: height var(--t-hdr) var(--ease-hdr);
}
.hdr__in > * { grid-row: 1; }
.hdr.is-scrolled .hdr__in { height: var(--hh-s); }

.logo { grid-column: 2; display: block; line-height: 0; }
.logo img {
  height: var(--logo-h); width: auto;
  transform: scale(var(--ls));   /* уменьшается масштабом — без перерасчёта раскладки, плавно */
  transition: transform var(--t-hdr) var(--ease-hdr);
}

.nav {
  grid-column: 1; justify-self: start;
  display: flex; align-items: center; gap: 28px; white-space: nowrap;
}
.nav a { font-size: 14px; font-weight: 500; padding: 6px 0; }

.side {
  grid-column: 3; justify-self: end;
  display: flex; align-items: center; gap: 22px; white-space: nowrap;
}
.contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.contact__phone { font-size: 15px; font-weight: 600; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.contact__addr {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 4px;
  font-size: 12px; color: var(--ink-2); transition: color 0.2s;
}
.contact__addr:hover { color: var(--ink); }

.cta { display: flex; align-items: center; gap: 8px; }
.cta__book, .cta__write { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cta__write .chev { transition: transform 0.25s var(--ease); }
.cta__write[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* «Онлайн-запись» и «Написать» — текстом, без плашек */
.cta { gap: 22px; order: 1; }
.cta__book, .cta__write { font-size: 14px; font-weight: 600; padding: 8px 0; }
.cta__book { order: 0; }
.cta .drop { order: 1; }

/* телефон с адресом — в правом углу, прижаты к краю (зеркально меню слева) */
.contact { order: 2; }
.side { gap: 34px; }

/* Выравнивание «в линию»: пункты меню, телефон и «Онлайн-запись / Написать» стоят на одной линии
   с низом «GLAMME», адрес — на линии «beauty studio». 0.383em — положение базовой линии Manrope
   относительно середины строки; 16px — половины высот строк телефона (18) и адреса (14). */
.nav a, .cta__book, .cta__write, .contact__phone {
  transform: translateY(calc(var(--logo-h) * var(--ls) * (var(--logo-base) - 0.5) - 0.383em));
  transition: transform var(--t-hdr) var(--ease-hdr), background-color 0.2s;
}
.contact { height: 18px; }
.contact__phone { line-height: 18px; }
.contact__addr {
  line-height: 14px;
  margin-top: calc(var(--logo-h) * var(--ls) * (var(--logo-sub) - 0.5) - 16px - 0.383em);
  transition: margin-top var(--t-hdr) var(--ease-hdr), color 0.2s;
}

/* Выпадающий выбор мессенджера */
.drop { position: relative; }
.drop__menu {
  position: absolute; right: -12px; top: calc(100% + 12px); z-index: 5;
  min-width: 168px; padding: 6px;
  background: var(--surface); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(29, 28, 26, 0.14), 0 0 0 1px var(--line);
  display: flex; flex-direction: column;
  animation: pop 0.22s var(--ease);
}
.drop__menu[hidden] { display: none; }
.drop__menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: 11px; font-size: 14px; font-weight: 500;
}
.drop__menu a:hover { background: var(--bg); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } }

/* Кнопки, которые видны только на планшете/телефоне: меню и «Связаться» */
.burger, .talk {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  align-items: center; justify-content: center; position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; border-radius: 2px;
  background: currentColor; transition: top 0.3s var(--ease), transform 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Вход в личный кабинет — иконка-человечек (data-account: on / off, включается в админке).
   Компьютер: иконка в углу, справа от телефона.
   Телефон (data-accm): icon — иконка слева от логотипа вместо «Связаться»; menu — «Связаться» остаётся,
   а в меню под Instg появляется пункт «Личный кабинет». */
.acc {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  transition: background-color 0.2s;
}
.acc:hover { background: rgba(29, 28, 26, 0.06); }
.acc--d {
  order: 3; margin: 0 -9px 0 -12px;   /* поля кнопки не добавляют лишнего зазора */
  transform: translateY(calc(var(--logo-h) * var(--ls) * (var(--logo-base) - 0.5) - 6px));
  transition: transform var(--t-hdr) var(--ease-hdr), background-color 0.2s;
}
@media (min-width: 760px) { html[data-account="on"] .acc--d { display: inline-flex; } }
@media (max-width: 759px) {
  html[data-account="on"][data-accm="icon"] .acc--m { display: inline-flex; grid-column: 1; justify-self: start; width: 44px; height: 44px; }
  html[data-account="on"][data-accm="icon"] .talk { display: none !important; }
}
.menu__nav .nav__acc { display: none; }
html[data-account="on"][data-accm="menu"] .menu__nav .nav__acc { display: flex; }

/* пустая ссылка в админке — кнопка скрыта везде */
[data-link][hidden] { display: none !important; }

/* пункт «Сертификаты» в меню — только если включены и блок, и пункт (админка) */
html:not([data-gift="on"]) .nav__gift, html:not([data-giftmenu="on"]) .nav__gift { display: none !important; }

/* Ноутбуки 13–14": всё помещается в одну строку */
@media (max-width: 1365px) {
  :root { --hh: 76px; --logo-h: 42px; }
  .hdr__in { column-gap: 20px; }
  .nav { gap: 22px; }
  .nav a { font-size: 13.5px; }
  .side { gap: 26px; }
  .contact__phone { font-size: 14.5px; }
  .contact__addr { font-size: 11.5px; gap: 8px; }
}

/* Планшет: меню прячется в бургер, справа телефон и запись */
@media (max-width: 1179px) {
  .nav { display: none; }
  .burger { display: inline-flex; grid-column: 1; justify-self: start; margin-left: -10px; }
  .contact__addr { display: none; }
}

/* Узкий планшет: в шапке остаются телефон и запись, «Написать» — в меню */
@media (max-width: 1099px) {
  :root { --logo-h: 38px; }
  .hdr__in { column-gap: 16px; }
  .side { gap: 18px; }
  .side .drop { display: none; }
  .contact__phone { font-size: 14px; }
}

/* Телефон: телефон-иконка | логотип | бургер */
@media (max-width: 759px) {
  :root { --hh: 60px; --hh-s: 60px; --logo-h: 30px; --ls-s: 1; --gutter: 10px; }
  .hdr__in { grid-template-columns: 44px 1fr 44px; column-gap: 8px; padding: 0 8px; }
  .logo { justify-self: center; }
  .side { display: none; }
  .talk { display: inline-flex; grid-column: 1; justify-self: start; }
  .burger { grid-column: 3; justify-self: end; margin-left: 0; }
}

/* ---------- Меню (планшет и телефон) ---------- */

.menu {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--menu-top, var(--hh));
  z-index: 45; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  padding: 8px 24px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 32px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-size: 26px; font-weight: 300; letter-spacing: -0.005em;
}
.menu__info { display: flex; flex-direction: column; gap: 10px; }
.menu__phone { font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.menu__addr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; color: var(--ink-2); font-size: 15px; }
/* «Написать нам»: WhatsApp, Telegram, Instg, Max — значки с подписью (как в подвале нынешнего сайта).
   В мобильном меню (отдельно от пунктов, над телефоном) и в шторке «Написать нам». */
.menu__write { display: flex; flex-direction: column; gap: 14px; }
.menu__label {
  margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
/* у всех значков одинаковая ширина «ячейки» — расстояния между значками равные, хотя подписи разной длины;
   ряд прижат влево: первый значок стоит на одной линии с текстом меню */
.msgs { display: flex; gap: 12px; margin-left: -10px; }
.msgs a {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 9px;
  flex: none; width: 66px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; transition: opacity 0.2s;
}
.msgs a:active { opacity: 0.6; }
.msg__ic { display: block; flex: none; width: 46px; height: 46px; color: var(--ink); }
@media (max-width: 359px) { .msgs { gap: 4px; } }
/* «Онлайн-запись» — сразу под адресом, с воздухом (раньше прижималась к низу экрана, и её не замечали) */
.menu .btn--block { margin-top: -6px; flex: none; }
@media (min-width: 760px) {
  .menu { padding: 16px var(--pad) 40px; }
  .menu__nav a { font-size: 32px; }
  .menu .btn--block { max-width: 360px; }
}
@media (min-width: 1180px) { .menu { display: none; } }

/* ---------- Обложка ---------- */

.hero { display: grid; padding: 0 var(--gutter); }
.hero__media {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--photo);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* обложка в карточке (по умолчанию) или на весь экран — отдельно для компьютера и телефона (админка → «Оформление») */
@media (min-width: 760px) {
  html[data-hero-d="full"] .hero { padding: 0; }
  html[data-hero-d="full"] .hero__media { border-radius: 0; }
}
@media (max-width: 759px) {
  html[data-hero-m="full"] .hero { padding: 0; }
  html[data-hero-m="full"] .hero__media { border-radius: 0; }
}

.hero h1 { margin: 0; font-weight: inherit; }
.eyebrow {
  display: block; margin-bottom: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
}
.title {
  display: block; font-weight: 300; text-transform: uppercase;
  letter-spacing: 0.08em; line-height: 1.14;
}
.title .l { display: block; }
.hero__cta { display: none; }

/* фото в полном цвете, заголовок графитом на свободном сером поле справа */
.hero__media, .hero__copy { grid-area: 1 / 1; }
.hero__media {
  aspect-ratio: 16 / 9;             /* фото всегда целиком по ширине, режется только сверху/снизу */
  max-height: calc(100vh - var(--hh) - var(--gutter));
  max-height: calc(100svh - var(--hh) - var(--gutter));
  min-height: 420px; width: 100%;
}
.hero__copy {
  position: relative; z-index: 1;
  justify-self: end; align-self: start;
  /* верхняя правая часть кадра — там больше всего свободного серого фона */
  width: 21.5%; margin-right: 3%; margin-top: 11%;
  color: var(--ink);
}
.hero .eyebrow { color: rgba(29, 28, 26, 0.78); font-size: clamp(10px, 0.74vw, 13px); }
.hero .title { font-size: clamp(20px, 2.1vw, 44px); }

/* узкие экраны: текст уходит под фото */
@media (max-width: 1023px) {
  .hero__media, .hero__copy { grid-area: auto; }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; min-height: 0; }
  .hero__media img { object-position: 48% 30%; }
  .hero__copy { width: auto; margin: 0; justify-self: stretch; text-align: center; padding: 28px 8px 8px; }
  .hero .eyebrow { color: var(--ink-2); font-size: 11px; }
  .hero .title { font-size: clamp(24px, 3.6vw, 34px); }
  .hero .title .l { display: inline; }
}

@media (max-width: 759px) {
  .hero__cta { display: flex; gap: 8px; margin-top: 24px; }
  .hero__cta .btn { flex: 1; height: 48px; font-size: 14.5px; }
  .hero .eyebrow { letter-spacing: 0.18em; margin-bottom: 12px; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 62svh; }
  .hero__copy { padding: 24px 6px 4px; }
  .hero .title { font-size: 25px; letter-spacing: 0.08em; line-height: 1.16; font-weight: 300; }
  .hero .title .l { display: block; }
}

/* порядок блоков (админка → «Оформление»): прайс, сертификат, работы, философия — по умолчанию;
   другой порядок app.js проставляет блокам через style.order. Обложка всегда первая, контакты — последние. */
#main { display: flex; flex-direction: column; }
#main > .hero { order: 0; }
#main > .price { order: 1; }
#main > .giftband { order: 2; }
#main > .works { order: 3; }
#main > .about { order: 4; }
#main > .contacts { order: 99; }

/* ---------- Обложка на телефоне ----------
   Всё на фото: над головами продлён серый фон фото, там заголовок в 2 строки;
   низ фото (одежда) затонирован, на нём белые подчёркнутые надписи-кнопки. */
@media (max-width: 759px) {
  /* заголовок в 2 строки: «Красота за пределами / ожиданий» */
  .hero .title .l { display: inline; }
  .hero .title .l:last-child { display: block; }
  .hero .title { font-size: clamp(17px, 5.3vw, 23px); letter-spacing: 0.07em; line-height: 1.22; }

  /* тихие кнопки: подчёркнутые надписи вместо плашек */
  .hero__cta { justify-content: center; gap: 40px; margin-top: 0; }
  .hero__cta .btn {
    flex: none; height: auto; padding: 6px 0; border: 0; border-radius: 0; background: none; color: #fff;
    font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px;
  }

  .hero__media, .hero__copy { grid-area: 1 / 1; }
  .hero__media {
    --photo-h: 80%;
    aspect-ratio: auto; max-height: none; min-height: 0;
    height: min(calc(100svh - var(--hh) - 2 * var(--gutter)), 680px);
    background: #b3ada7;                         /* цвет фона над головами — замерен по верху фото */
  }
  .hero__media img {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: var(--photo-h);
    object-position: 48% 100%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);   /* верх фото плавно переходит в продлённый фон */
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
  .hero__copy {
    position: relative; z-index: 1; align-self: stretch;     /* слой текста — на всю высоту фото: заголовок сверху, надписи снизу */
    display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: 26px 16px 22px; text-align: center;
  }
  .hero .eyebrow { color: rgba(29, 28, 26, 0.75); }

  /* тонировка низа фото (одежда) — под белые надписи */
  .hero__media::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; pointer-events: none;
    background: linear-gradient(to top, rgba(22, 21, 20, 0.6) 0%, rgba(22, 21, 20, 0.3) 45%, rgba(22, 21, 20, 0) 100%);
  }
}

/* ---------- Услуги и прайс ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* разделы «Услуги и прайс» и «Наши работы» устроены одинаково: заголовок слева, вкладки справа */
.price, .works {
  --rule: rgba(29, 28, 26, 0.3);          /* единственная линия — под заголовком группы */
  --plate-pad: clamp(22px, 2.4vw, 36px);  /* внутренний отступ белых плашек */
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  padding: clamp(64px, 8vw, 128px) var(--pad) 0;
}
.price > .panes, .price > .price__note, .price > .price__rule,
.works > .wgrid, .works > .works__more, .works > .price__rule { grid-column: 1 / -1; }
.sec-title {
  grid-column: 1; margin: 0 0 18px;
  font-size: clamp(26px, 2.8vw, 44px); font-weight: 300; line-height: 1.05;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* вкладки: текстом, активная подчёркнута — подчёркивание ложится на линию раздела */
.tabs { grid-column: 2; display: flex; gap: clamp(18px, 2.2vw, 36px); }
.tab {
  position: relative; padding: 6px 0 18px; white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--ink-2); transition: color 0.2s;
}
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab sup { margin-left: 4px; font-size: 10.5px; font-weight: 500; color: var(--ink-2); vertical-align: super; line-height: 0; }
.tab__short { display: none; }
@media (max-width: 759px) {
  .tab__full { display: none; }
  .tab__short { display: inline; }
}
.price__rule { height: 1px; background: var(--line); }

.pane { padding-top: clamp(32px, 3.4vw, 56px); }
.pane[hidden] { display: none; }
.panes { position: relative; }

/* общий вид: подпись группы заглавными с одной линией под ней; категория крупно, имена мелко */
.course__ptitle--line {
  display: block; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink);
}
.lv b { display: block; font-size: 16px; font-weight: 500; line-height: 1.3; }
.lv small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; line-height: 1.4; color: var(--ink-2); }

/* прайс — белые плашки без обводок, как карточка обложки */
.plates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.plates--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plate { background: var(--surface); border-radius: var(--radius); padding: var(--plate-pad); }
.plate__head { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.plate__kicker {
  margin: 0 0 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-2);
}
.plate__title { margin: 0; font-size: clamp(26px, 2.2vw, 36px); font-weight: 300; line-height: 1.1; }
.plate__desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.pt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pt .pt__lv { width: 56%; }
.pt th, .pt td { padding: 14px 12px 0 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.pt thead th { vertical-align: bottom; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.pt thead th small { display: block; }
.pt td { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plates--3 .pt .pt__lv { width: 60%; }
.plates--3 .pt:has(thead) .pt__lv { width: 42%; }   /* Light: две цены — студия и выезд */

.xplate {
  grid-column: 1 / -1;                    /* сквозная — под всеми плашками раздела */
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: clamp(24px, 3vw, 48px);
  background: var(--surface); border-radius: var(--radius); padding: 22px var(--plate-pad);
}
.xplate__t { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.xplate__list { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: 14.5px; color: var(--ink-2); }
.xplate__i b { margin-left: 8px; font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Брови и ресницы — на плашках, одна цена для всех мастеров */
.blist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: start; }
.brow { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-top: 14px; }
.brow > span { font-size: 16px; }
.brow > span small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.brow > b { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bcol { background: var(--surface); border-radius: var(--radius); padding: var(--plate-pad); }
.bcol__t {
  display: block; margin: 0; padding-bottom: 14px; border-bottom: 1px solid var(--rule);
  font-size: clamp(26px, 2.2vw, 36px); font-weight: 300; line-height: 1.1;
}

/* Обучение — каждый курс на своей плашке: так курсы разделены без лишних линий */
.courses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: stretch; }
.course {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: var(--plate-pad);
}
.course__kind, .course__ptitle {
  margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
.course__title { margin: 8px 0 16px; font-size: clamp(30px, 2.6vw, 42px); font-weight: 300; line-height: 1.05; }
.course__intro { margin: 0 0 8px; font-size: 16px; max-width: 52ch; }
.course__tools { margin: 0; font-size: 14px; color: var(--ink-2); max-width: 56ch; }
.course__ptitle { margin: 28px 0 4px; }
.course__lead { margin: 6px 0 2px; font-size: 15px; }
.course__prog { list-style: none; margin: 0; padding: 0; }
.course__prog li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-top: 14px; }
.course__prog .n { padding-top: 2px; font-size: 13px; color: var(--ink-2); }
.course__prog b { display: block; font-size: 15.5px; font-weight: 400; line-height: 1.45; }
.course__prog li.has-text b { font-size: 17px; font-weight: 500; }
.course__prog p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.course__inc { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.course__inc li { position: relative; padding-left: 20px; font-size: 14.5px; }
.course__inc li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--ink);
}
.course__pricebox { margin-top: auto; padding-top: 32px; }   /* стоимость обоих курсов — на одной высоте */
.course__ptitle--line { margin: 0; }
.lvrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; }
.lvrow > b { font-size: 16px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.course__notes { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.course__notes li::before { content: "* "; }

.price__note { margin: 16px 0 0; padding-left: var(--plate-pad); font-size: 12px; color: var(--ink-2); }

/* планшет */
@media (max-width: 1099px) {
  /* minmax(0, …): широкие таблицы не должны растягивать страницу вбок */
  .price, .works { grid-template-columns: minmax(0, 1fr); }
  .tabs { grid-column: 1; flex-wrap: wrap; row-gap: 4px; }
  .sec-title { margin-bottom: 20px; }
  .plates--3 { grid-template-columns: minmax(0, 1fr); }
  .courses { grid-template-columns: minmax(0, 1fr); }
}

/* телефон: один раздел — один экран */
@media (max-width: 759px) {
  .price, .works { padding-top: 56px; }
  .sec-title { margin-bottom: 6px; }
  .price__rule { display: none; }
  /* вкладки облаком по центру: все категории видны сразу, ничего не прилипает и не уезжает */
  .tabs { justify-content: center; gap: 8px; padding-top: 10px; }
  .tab { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); }
  .tab::after { display: none; }
  .tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
  .tab[aria-selected="true"] sup { color: rgba(255, 255, 255, 0.65); }
  .pane { padding-top: 16px; }

  .plates { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .price { --plate-pad: 20px; }
  .pt .pt__lv, .plates--3 .pt .pt__lv, .plates--3 .pt:has(thead) .pt__lv { width: 46%; }
  .pt th, .pt td { padding-right: 8px; }
  .pt td { font-size: 15px; }
  .xplate { grid-template-columns: minmax(0, 1fr); row-gap: 12px; padding-top: 18px; padding-bottom: 18px; }
  .xplate__list { flex-direction: column; gap: 8px; }
  .xplate__i { display: flex; justify-content: space-between; gap: 16px; }

  .blist { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brow > span, .brow > b { font-size: 15px; }

  .courses { gap: 10px; }
  .course__prog li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
}

/* самые узкие телефоны (320–359 px) */
@media (max-width: 359px) {
  .pt .pt__lv, .plates--3 .pt .pt__lv, .plates--3 .pt:has(thead) .pt__lv { width: 40%; }
  .pt td { font-size: 13.5px; }
  .price { --plate-pad: 16px; }
}

/* ---------- Подарочный сертификат ----------
   Включается в админке (data-gift="on"); место на странице — из админки («Оформление» → порядок блоков).
   Фото на половину блока, рядом — текст и два формата: электронный (нарисованный сертификат на 15 000 ₽)
   и в фирменном конверте (вырезанный ровный конверт). Кнопка «Написать администратору» открывает «Написать нам».
   Вид — data-glook: dark (по умолчанию) / light; фото — data-gphoto: left (по умолчанию) / right. */
.giftband { display: none; padding: clamp(36px, 4.2vw, 64px) var(--pad) 0; }   /* у блока нет своего заголовка — отступ меньше, чем у разделов, чтобы не отрывался от предыдущего */
html[data-gift="on"] .giftband { display: block; }
.giftband__in {
  --gb-ink: var(--ink); --gb-ink-2: var(--ink-2); --gb-tile: var(--bg);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--gb-ink);
}
.giftband__ph { position: relative; margin: 0; min-height: 600px; background: var(--photo); }
.giftband__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }   /* высоту блока задаёт текст */
html[data-gphoto="right"] .giftband__ph { order: 2; }
/* по высоте: заголовок с подписью — ближе к верху, форматы — сразу под ними с умеренным отступом,
   кнопка — внизу (всё свободное место — перед кнопкой). Неравные отступы делят блок на смысловые части */
.giftband__text {
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  padding: clamp(44px, 5.2vw, 84px) clamp(28px, 4.6vw, 88px) clamp(40px, 4.6vw, 76px);
}
.giftband__title {
  margin: 0; font-size: clamp(28px, 2.9vw, 46px); font-weight: 300; line-height: 1.08;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.giftband__lead { margin: 18px 0 0; max-width: 34ch; font-size: 15.5px; line-height: 1.6; color: var(--gb-ink-2); }
@media (min-width: 1024px) {
  .giftband__btn { margin-top: auto; }
}

/* два формата — на компьютере маленькие и неакцентные: картинка слева, название и строка справа */
.gbf { list-style: none; margin: clamp(32px, 3.2vw, 48px) 0 clamp(40px, 4vw, 60px); padding: 0; display: flex; flex-wrap: wrap; gap: 18px 24px; }
.gbf__i { display: grid; grid-template-columns: 80px 162px; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; }   /* 1fr — строка описания всегда сразу под названием, на одной высоте у обоих форматов */
.gbf__vis { grid-row: 1 / span 2; align-self: start; display: flex; justify-content: center; align-items: flex-start; }   /* верх сертификата и конверта на одной линии */
.gbf__vis > * { width: 100%; flex: none; }
.gbf__env { height: auto; filter: drop-shadow(0 4px 8px rgba(29, 28, 26, 0.16)); }
.gbf__i b { align-self: start; margin-top: -2px; font-size: 14px; font-weight: 600; }
.gbf__i small { align-self: start; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--gb-ink-2); }
.giftband__btn { height: 50px; padding: 0 30px; font-size: 14.5px; }

/* электронный сертификат: бумага, тонкая рамка, логотип, сумма — те же пропорции, что у конверта */
.gcert {
  container-type: inline-size; position: relative; aspect-ratio: 1.66;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 8% 4%; border-radius: 3px; color: var(--ink);
  background: radial-gradient(120% 100% at 30% 0%, #f6f1ea 0%, #ece5db 60%, #e4dbcf 100%);
  box-shadow: 0 4px 10px rgba(29, 28, 26, 0.16);
}
.gcert::before { content: ""; position: absolute; inset: 4.5cqw; border: 1px solid rgba(29, 28, 26, 0.18); border-radius: 2px; pointer-events: none; }
.gcert__logo { width: 34%; height: auto; }
.gcert__k { margin: 4cqw 0 0; font-size: 3.6cqw; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-2); }
.gcert__v { margin: 1.6cqw 0 0; font-size: 12cqw; font-weight: 200; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gcert__f { margin: 2cqw 0 0; font-size: 3.8cqw; color: var(--ink-2); }
.gcert__n { position: absolute; left: 9%; right: 9%; bottom: 8%; display: flex; justify-content: space-between; margin: 0;
  font-size: 2.8cqw; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(29, 28, 26, 0.45); }

/* сертификат крупно: нажатие на картинку формата — она вырастает в середину экрана, повторное нажатие — обратно */
[data-zoom] { cursor: zoom-in; border-radius: 4px; -webkit-tap-highlight-color: transparent; }
[data-zoom] > * { transition: transform 0.35s var(--ease); }
@media (hover: hover) { [data-zoom]:hover > * { transform: scale(1.04); } }
[data-zoom]:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
.zoom { position: fixed; inset: 0; z-index: 90; cursor: zoom-out; }
.zoom::before {
  content: ""; position: absolute; inset: 0; background: rgba(22, 21, 20, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity 0.35s;
}
.zoom.is-open::before { opacity: 1; }
.zoom__obj { position: fixed; margin: 0; max-width: none; transform-origin: 0 0; }
img.zoom__obj { height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45)); }
.gcert.zoom__obj { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); border-radius: 6px; }

/* заголовок на фото — только телефон (см. ниже) */
.giftband__over { display: none; }

/* тёмный вид — та же раскладка, тёмная плашка, светлая кнопка */
html[data-glook="dark"] .giftband__in { --gb-ink: #f2efea; --gb-ink-2: rgba(242, 239, 234, 0.62); --gb-tile: rgba(242, 239, 234, 0.07); background: var(--night); }
html[data-glook="dark"] .giftband__btn { background: #f2efea; color: var(--ink); }
html[data-glook="dark"] .giftband__btn:hover { background: #fff; }
html[data-glook="dark"] .gbf__env { filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45)); }
html[data-glook="dark"] .gcert { box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }

@media (max-width: 1023px) {
  .giftband__in { grid-template-columns: minmax(0, 1fr); }
  html[data-gphoto="right"] .giftband__ph { order: 0; }
  .giftband__ph { min-height: 0; aspect-ratio: 4 / 3; }
}
/* телефон: заголовок «Подарочный сертификат» — на фото, на чёрном пиджаке (как заголовок на обложке сайта);
   под фото — «Подарок, которому будет рада каждая» и подпись одной парой, два формата прямо на фоне блока, кнопка */
@media (max-width: 759px) {
  .giftband { padding-top: 48px; }
  /* фото почти квадратное: весь блок помещается в экран iPhone 16 Pro Max (440×956) под шапкой.
     Сверху срезано совсем немного — виден вырез пиджака, снизу больше; конверт — чуть ниже середины кадра */
  .giftband__ph { aspect-ratio: 20 / 21; max-height: 64svh; }
  .giftband__ph img { object-position: 50% 15%; }   /* сверху срезано ~5%: вырез виден; конверт — на ~63% высоты кадра */
  .giftband__text { align-items: center; text-align: center; padding: 40px 22px 38px; }
  .giftband__title { font-size: 24px; line-height: 1.2; letter-spacing: 0.08em; }
  .giftband__lead { margin-top: 16px; max-width: 28ch; font-size: 15px; }

  html[data-gover="on"] .giftband__over {
    position: absolute; left: 0; right: 0; top: 15%; z-index: 1;
    display: flex; flex-direction: column; align-items: center; padding: 0 24px;
    color: #f2efea; text-align: center; pointer-events: none;
  }
  .giftband__over-t { font-size: 25px; font-weight: 300; line-height: 1.18; text-transform: uppercase; letter-spacing: 0.08em; }
  /* заголовок уже на фото — под фото он не повторяется (для чтения с экрана остаётся) */
  html[data-gover="on"] .giftband__title {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* под фото — только «На любую сумму…»: крупнее и светлым, как главный текст блока */
  html[data-gover="on"] .giftband__lead {
    margin: 2px 0 0; max-width: 28ch; font-size: 18px; font-weight: 400; line-height: 1.4;
    color: var(--gb-ink); text-wrap: balance;
  }

  /* форматы — прямо на фоне блока, как на компьютере: картинки одного размера, верх на одной линии, под ними название */
  .gbf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; margin: 36px 0 60px; }
  .gbf__i { display: flex; flex-direction: column; align-items: stretch; max-width: none; }
  /* высота — по бумаге конверта и сертификата (~68 px); хвосты ленты свисают ниже, к подписи */
  .gbf__vis { align-self: stretch; height: 70px; display: flex; justify-content: center; align-items: flex-start; }
  .gbf__vis > * { width: 112px; }
  .gbf__i b { align-self: stretch; margin-top: 12px; font-size: 13.5px; text-align: center; text-wrap: balance; }
  .gbf__i small { display: none; }   /* подписи под форматами — лишний мелкий текст: хватает названия и картинки */
  .giftband__btn { width: 100%; max-width: 380px; }
}

/* телефон (data-gfade="on", по умолчанию; выключается в админке): низ фото растворяется в цвет блока — без резкой границы.
   Градиент с плавным разгоном (много точек), чтобы не было видимой «полосы» */
@media (max-width: 759px) {
  html[data-gfade="on"] .giftband__ph::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 20%; pointer-events: none;   /* только самый низ — не доходит до рук */
    --c: 22, 21, 20;
    background: linear-gradient(to bottom, rgba(var(--c), 0) 0%, rgba(var(--c), 0.06) 22%, rgba(var(--c), 0.2) 42%,
      rgba(var(--c), 0.45) 62%, rgba(var(--c), 0.75) 82%, rgb(var(--c)) 100%);
  }
  html[data-gfade="on"][data-glook="light"] .giftband__ph::after { --c: 255, 255, 255; }
}

/* всплывающее окно «Подарочный сертификат»: настоящее фото на всю высоту левой части (в обоих видах) */
.ipop--photo .ipop__media img,
html[data-plook="dark"] .ipop--photo .ipop__media img {
  left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; transform: none; mix-blend-mode: normal;
}
.ipop--photo .ipop__media { background: var(--photo); }
@media (max-width: 759px) { .ipop--photo .ipop__media img { object-position: 50% 46%; } }

/* ---------- Наши работы ---------- */

.wgrid {
  --cols: 5; --gap: 10px; --wr: 12px;
  display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: var(--gap);
  grid-auto-flow: dense;            /* крупное первое фото — остальные аккуратно обтекают */
  padding-top: clamp(24px, 3vw, 44px);
}
/* вид галереи (админка → «Наши работы», data-gallery):
   accent — по умолчанию: крупное фото на две строки, справа от него блок 4 в ширину × 2 в высоту
            (по ширине — пять фото: крупное + четыре). Сетка в 6 колонок, ниже ряды идут по тем же колонкам;
   equal  — ровная сетка, не больше 5 фото в ряд */
@media (min-width: 1024px) { html[data-gallery="accent"] .wgrid { --cols: 6; --gap: 8px; } }
html[data-gallery="accent"] .work.is-lead { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1023px) { .wgrid { --cols: 4; --gap: 8px; } }
@media (max-width: 759px) { .wgrid, html[data-gallery="accent"] .wgrid { --cols: 3; --gap: 3px; --wr: 6px; padding-top: 16px; } }

.work {
  position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: var(--wr); background: var(--photo); cursor: zoom-in;
}
.work[hidden] { display: none; }
.work img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.6s var(--ease);
}
@media (hover: hover) {
  .work:hover img { transform: scale(1.045); }
}
.work:focus-visible { outline-offset: 2px; }

/* фильтр на миниатюрах (админка → «Наши работы», data-filter="on"): чуть приглушённый цвет;
   полный цвет возвращается при наведении и в окне просмотра. По умолчанию выключен — фото в полном цвете. */
html[data-filter="on"] :is(.work, .step__ph) img { filter: saturate(0.35) sepia(0.15) hue-rotate(-6deg) contrast(0.96) brightness(1.03); }
@media (hover: hover) {
  html[data-filter="on"] .work:hover img { filter: none; }
  html[data-filter="on"] .step:hover .step__ph img { filter: none; }
}
html[data-filter="on"] .work:focus-visible img { filter: none; }

/* главное действие — перейти в Instg; «Показать ещё» — тихая ссылка.
   На компьютере они в одной строке: «Показать ещё» по центру, кнопка — справа под галереей; на телефоне ссылка над кнопкой */
.works__more {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding-top: clamp(22px, 2.4vw, 34px);
}
.works__more-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0;
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color 0.2s;
}
.works__more-link:hover { color: var(--ink); }
.works__more-link svg { transition: transform 0.3s var(--ease); }
.works__more-link:hover svg { transform: translateY(2px); }
.works__more-link.is-less svg { transform: rotate(180deg); }
.works__more-link.is-less:hover svg { transform: rotate(180deg) translateY(2px); }
.works__more-link[hidden] { display: none; }
.works__insta { height: 52px; padding: 0 30px; font-size: 15px; }
@media (min-width: 760px) {
  .works__more { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
  .works__more-link { grid-column: 2; }
  .works__insta { grid-column: 3; justify-self: end; }
}
@media (max-width: 759px) {
  .works__insta { width: 100%; max-width: 380px; padding: 0 16px; font-size: 14.5px; }
}
@media (max-width: 359px) {
  .works__insta { font-size: 13.5px; gap: 6px; padding: 0 12px; }
}

/* ---------- Просмотр фото поверх страницы ---------- */

.lb { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb__backdrop {
  position: absolute; inset: 0; background: rgba(22, 21, 20, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.35s;
}
.lb.is-open .lb__backdrop { opacity: 1; }
.lb__fig { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.lb__img {
  display: block; object-fit: cover; border-radius: calc(var(--radius) * 0.8);
  background: var(--photo); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  pointer-events: auto; cursor: zoom-out; touch-action: pan-y; user-select: none; -webkit-user-drag: none;
}
.lb__cap {
  display: flex; align-items: center; gap: 16px; width: 100%;
  color: #fff; font-size: 13px; pointer-events: auto;
  opacity: 0; transition: opacity 0.3s 0.15s;
}
.lb.is-open .lb__cap { opacity: 1; }
.lb__count { color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.lb__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.92); color: var(--ink);
  opacity: 0; transition: opacity 0.3s, background-color 0.2s;
}
.lb.is-open .lb__btn { opacity: 1; }
.lb__btn:hover { background: #fff; }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 28px; top: 50%; transform: translateY(-50%); }
@media (max-width: 759px) {
  .lb__prev, .lb__next { display: none; }   /* на телефоне — свайп */
  .lb__close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .lb__cap { flex-wrap: wrap; row-gap: 4px; padding: 0 2px; }
}

/* ---------- Наша философия ---------- */

/* заголовок — как у «Услуг и прайса» и «Наших работ» */
.about, .contacts {
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: clamp(64px, 8vw, 128px) var(--pad) 0;
}

/* половина экрана — текст, половина — «кубик» из трёх фото */
.about__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: clamp(32px, 5vw, 96px); padding-top: clamp(28px, 3.2vw, 52px);
}
.about__media { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.about__ph { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--photo); }
.about__ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__ph--a { grid-row: 1 / span 2; }
.about__ph--b { aspect-ratio: 4 / 5; }
.about__ph--c { aspect-ratio: 3 / 2; }

.about__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
/* тонкий крупный текст: одна спокойная мысль, по центру под эмблемой */
.about__lead {
  margin: 0; max-width: 18em; font-size: clamp(22px, 2.05vw, 32px); font-weight: 200; line-height: 1.36; letter-spacing: -0.005em;
  text-wrap: balance;                                   /* ровные строки при выравнивании по центру */
}

/* эмблема-печать: «G» из логотипа, по кругу одна надпись «BEAUTY STUDIO · MOSCOW · GLAMME ·» с равномерной разрядкой.
   Неподвижная, крупная, по центру левой половины. */
.emblem {
  position: relative; width: clamp(168px, 15vw, 236px); aspect-ratio: 1;
  margin-bottom: clamp(32px, 3.4vw, 52px); color: var(--ink);
}
.emblem__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emblem__ring text { font-family: var(--font); font-size: 10px; font-weight: 600; letter-spacing: 0; fill: currentColor; }   /* разрядку задаёт textLength */
.emblem__g {
  position: absolute; left: 50%; top: 50%; width: 41%; aspect-ratio: 177 / 176; transform: translate(-50%, -50%);
  /* буква G — первые 177×176 px файла логотипа 1157×321 */
  background: url("img/logo.png") 0 0 / calc(100% * 1157 / 177) auto no-repeat;
}

/* печать в «Нашей философии» — из админки («Оформление»), отдельно для компьютера и телефона:
   explicit — как есть, крупно над текстом; watermark — водяной знак: большая полупрозрачная подложка под текстом;
   off (только телефон) — печати нет, заголовок с тем же отступом, что у остальных разделов */
.about__text { position: relative; isolation: isolate; }
@media (min-width: 760px) {
  html[data-seal-d="watermark"] .about .emblem {
    position: absolute; left: 50%; top: 50%; z-index: -1; margin: 0;
    width: clamp(360px, 34vw, 540px); transform: translate(-50%, -50%);
    opacity: 0.06; pointer-events: none;
  }
}

@media (max-width: 1023px) {
  .about__body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 759px) {
  .about, .contacts { padding-top: 56px; }
  .about__body { padding-top: 18px; gap: 24px; }
  .about__media { gap: 4px; }
  .about__ph { border-radius: 14px; }
  .about__lead { font-size: 20px; line-height: 1.42; }
  .emblem { width: 148px; margin-bottom: 22px; }
  #about-title { justify-self: center; }

  /* печать как есть — над заголовком: раскрываем обёртки, чтобы её можно было поставить первой */
  html:is([data-seal-m="explicit"], [data-seal-m="divider"]) :is(.about__body, .about__text) { display: contents; }
  html:is([data-seal-m="explicit"], [data-seal-m="divider"]) .about .emblem { order: -1; justify-self: center; }
  html:is([data-seal-m="explicit"], [data-seal-m="divider"]) .about__lead { justify-self: center; text-align: center; margin: 14px 0 26px; }


  /* «Разделитель»: маленькая печать на тонкой линии между разделами — как сургучная печать на ленте */
  html[data-seal-m="divider"] .about { padding-top: 46px; }
  html[data-seal-m="divider"] .about .emblem { width: 72px; margin-bottom: 46px; }   /* печать ровно посередине между кнопкой Instg и заголовком */
  html[data-seal-m="divider"] .about .emblem::before,
  html[data-seal-m="divider"] .about .emblem::after { content: ""; position: absolute; top: 50%; width: 96px; height: 1px; }
  html[data-seal-m="divider"] .about .emblem::before { right: calc(100% + 16px); background: linear-gradient(to left, var(--rule), rgba(29, 28, 26, 0)); }
  html[data-seal-m="divider"] .about .emblem::after { left: calc(100% + 16px); background: linear-gradient(to right, var(--rule), rgba(29, 28, 26, 0)); }

  /* без печати */
  html[data-seal-m="off"] .about .emblem { display: none; }
  /* водяной знак — под текстом философии */
  html[data-seal-m="watermark"] .about .emblem {
    position: absolute; left: 50%; top: calc(50% + 8px); z-index: -1; margin: 0;   /* чуть ниже центра текста — кольцо не задевает заголовок */
    width: 236px; transform: translate(-50%, -50%); opacity: 0.07; pointer-events: none;
  }
}

/* ---------- Страница «Как добраться» ----------
   те же заголовки, линии, белые карточки и подписи-метки, что на главной; карта — как в контактах (ч/б Яндекс),
   маршруты от выходов 1 и 4 нарисованы поверх; фото шагов — в том же тоне, что галерея, цвет при наведении */
.road {
  display: grid; grid-template-columns: minmax(0, 1fr);
  padding: clamp(36px, 4vw, 64px) var(--pad) 0;
}
.road--steps { padding-top: clamp(64px, 8vw, 128px); }

/* адрес и главное */
.road__intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start;
  gap: clamp(24px, 4vw, 72px); padding-top: clamp(28px, 3.2vw, 52px);
}
.road__street { margin: 0; font-size: clamp(28px, 2.8vw, 44px); font-weight: 300; line-height: 1.15; letter-spacing: -0.005em; }
.road__room { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 16px; color: var(--ink-2); }
.road__facts { margin: 0; display: grid; gap: 14px; }
.road__facts div { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 22px; align-items: baseline; }
.road__facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.road__facts dd { margin: 0; font-size: 16px; line-height: 1.45; }

/* карта маршрутов + карточка «на такси / на метро» */
.road__ways {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(12px, 1.4vw, 20px); padding-top: clamp(36px, 4vw, 64px);
}
.road__map {
  position: relative; min-height: 520px; overflow: hidden;
  border-radius: var(--radius); background: #e7e3dc; isolation: isolate;
}
/* картинка 1200×700 точек (в файле вдвое больше) в натуральную величину, середина маршрутов — в центре блока */
.road__canvas { position: absolute; left: 50%; top: 50%; width: 1200px; height: 700px; transform: translate(-50%, -50%); }
.road__canvas img { display: block; width: 100%; height: 100%; max-width: none; filter: sepia(0.14); pointer-events: none; user-select: none; -webkit-user-drag: none; }
.road__canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road__halo { stroke: #fff; stroke-width: 10; opacity: 0.9; }
.road__line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.road__line--dots { stroke-width: 5; stroke-dasharray: 0.1 9; }
.road__exit circle { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.road__exit text { fill: #fff; font: 700 13px var(--font); text-anchor: middle; }
.road__exit .road__exit-name {
  fill: var(--ink); font-weight: 600; text-anchor: start;
  paint-order: stroke; stroke: rgba(255, 255, 255, 0.92); stroke-width: 4px; stroke-linejoin: round;
}
.road__exit .road__exit-name--left { text-anchor: end; }
.road__pin { position: absolute; z-index: 1; width: 0; height: 0; }
.road__pin .pin__label { left: auto; right: 14px; bottom: auto; top: -13px; transform: none; }   /* подпись слева от точки — не закрывает маршруты */

.road__card {
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 48px);
}
.road__way + .road__way { margin-top: clamp(24px, 2.6vw, 36px); padding-top: clamp(24px, 2.6vw, 36px); border-top: 1px solid var(--line); }
.road__h { margin: 0 0 12px; font-size: clamp(22px, 1.9vw, 28px); font-weight: 300; line-height: 1.2; }
.road__way p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; }
.road__way .road__note { font-size: 14px; color: var(--ink-2); }
.road__taxi { align-self: flex-start; margin-top: 10px; height: 46px; padding: 0 26px; font-size: 14px; }
.road__way:first-child { display: flex; flex-direction: column; }
.road__legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.road__legend li { display: flex; align-items: center; gap: 10px; }
.road__legend svg { width: 40px; height: 12px; flex: none; }
.road__legend .road__line { stroke-width: 3; }
.road__legend .road__line--dots { stroke-width: 4; stroke-dasharray: 0.1 7; }

/* от входа до студии: четыре шага с фото */
.steps {
  list-style: none; margin: 0; padding: clamp(28px, 3.2vw, 52px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 28px);
}
.step__ph { margin: 0 0 18px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: clamp(12px, 1.2vw, 20px); background: var(--photo); }
.step__ph img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.4s; }
.step__n { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.step__t { margin: 0; font-size: 15.5px; line-height: 1.55; }
.step__t b { font-weight: 600; }

@media (max-width: 1023px) {
  .road__intro, .road__ways { grid-template-columns: minmax(0, 1fr); }
  .road__card { order: -1; }                 /* на узких экранах сначала текст, под ним карта */
  .road__map { min-height: 420px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}
@media (max-width: 759px) {
  .road { padding-top: 28px; }
  .road--steps { padding-top: 56px; }
  .road--steps { padding-top: 72px; }
  .road__intro { padding-top: 18px; gap: 22px; }
  .road__street { font-size: 26px; }
  .road__room { font-size: 15px; }
  .road__facts div { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
  .road__facts dd { font-size: 15px; }
  .road__ways { padding-top: 28px; gap: 10px; }
  .road__card { padding: 22px 20px; }
  .road__map { min-height: 340px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 18px; }
  .step__ph { border-radius: 14px; margin-bottom: 14px; }
  .step__t { font-size: 15px; }
}

/* ---------- Контакты ---------- */

/* карта слева, белая карточка с контактами справа — пополам, как весь сайт */
.contacts__body {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 1.4vw, 20px);
  padding-top: clamp(28px, 3.2vw, 52px);
}
.contacts__card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 48px);
}
.contacts__phone { font-size: clamp(26px, 2.4vw, 38px); font-weight: 300; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.contacts__addr { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; row-gap: 4px; margin-top: -8px; font-size: 16px; }   /* адрес ближе к телефону */
.contacts__addr .metro-st { color: var(--ink-2); }
/* «Онлайн-запись» и «Как добраться» — тем же шрифтом, что WhatsApp / Telegram / Max / Instg, без плашек;
   постоянное подчёркивание — единственное, что отличает их как главные действия */
.contacts__actions { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 4px; font-size: 15px; font-weight: 500; }
.contacts__act {
  padding: 2px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
  text-decoration-color: var(--rule); transition: text-decoration-color 0.2s;
}
.contacts__act:hover { text-decoration-color: currentColor; }
/* «Написать» / «Смотреть»: подпись — своя колонка, ссылки переносятся только внутри своей колонки */
.contacts__links {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; column-gap: 22px;
  font-size: 15px; font-weight: 500;
}
.contacts__list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.contacts__links:not(:has(a:not([hidden]))) { display: none; }
.contacts__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
/* «Хорошее место» — официальный виджет Яндекса в тёмной теме (theme=dark), углы скруглены */
/* без прокрутки внутри (scrolling="no"): на телефонах браузер может увеличить мелкий текст виджета — тогда он не вылезает
   полосами прокрутки; размер фиксирован и не сжимается в узкой карточке */
.contacts__badge { display: block; flex: none; width: 150px; min-width: 150px; height: 50px; border: 0; border-radius: 12px; margin-top: auto; overflow: hidden; color-scheme: normal; }

/* карта: в макете — картинка карты Яндекса (ч/б, как на нынешнем сайте), студия в центре картинки */
.contacts__map {
  position: relative; display: block; min-height: 440px; overflow: hidden;
  border-radius: var(--radius); background: #e7e3dc;
  isolation: isolate;
}
.contacts__mapimg {
  /* картинка в двойной чёткости 2000×1100 = 1000×550 точек: показываем в натуральную величину,
     лишнее обрезается краями блока (иначе на телефоне подписи мельчают) */
  position: absolute; left: 50%; top: 50%; width: max(1000px, 100%); height: max(550px, 100%); max-width: none;
  transform: translate(calc(-50% + var(--map-shift, 0px)), -50%); object-fit: cover; object-position: 50% 50%;
  filter: sepia(0.14);                             /* серая карта чуть теплее — в тон страницы */
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.contacts__pin { position: absolute; left: calc(50% + var(--map-shift, 0px)); top: 50%; z-index: 1; width: 0; height: 0; }
.contacts__mapcopy {
  position: absolute; right: 0; bottom: 0; z-index: 1; padding: 3px 8px;
  border-radius: 8px 0 0 0; background: rgba(245, 243, 240, 0.8); color: var(--ink-2); font-size: 10px;
}
/* метка студии */
.pin__dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.92), 0 4px 12px rgba(0, 0, 0, 0.25);
}
.pin__label {
  position: absolute; left: 0; bottom: 14px; transform: translateX(-50%);
  padding: 7px 12px; border-radius: 999px; background: var(--ink); color: #fff;
  font: 600 11px/1 var(--font); letter-spacing: 0.18em; white-space: nowrap;
}
.contacts__mapbtn {
  z-index: 1000;
  position: absolute; left: 16px; bottom: 16px;   /* только у заглушки: на живой карте вместо неё кнопка Яндекса */
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 16px rgba(29, 28, 26, 0.12);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}

/* «на тёмном фоне» (data-ccard="open", по умолчанию; в админке — «Оформление»): без белой карточки — телефон, адрес, действия и ссылки светлым
   прямо на тёмном фоне блока; карта остаётся карточкой со скруглением; значок «Хорошее место» — светлый */
.contacts__badge--light { display: none; }
html[data-ccard="open"] .contacts__badge--dark { display: none; }
html[data-ccard="open"] .contacts__badge--light { display: block; }
html[data-ccard="open"] .contacts__card {
  background: none; color: var(--night-ink); border-radius: 0;
  /* сверху и снизу — те же отступы, что были в белой карточке: текст стоит там же, где стоял бы в ней */
  padding: clamp(24px, 3vw, 48px) 0 clamp(24px, 3vw, 48px) clamp(24px, 3.4vw, 64px);
}
html[data-ccard="open"] .contacts__addr .metro-st { color: rgba(242, 239, 234, 0.6); }
html[data-ccard="open"] .contacts__act { text-decoration-color: rgba(242, 239, 234, 0.35); }
html[data-ccard="open"] .contacts__act:hover { text-decoration-color: currentColor; }
html[data-ccard="open"] .contacts__label { color: rgba(242, 239, 234, 0.5); }

/* живая карта Яндекса (map.js): проявляется поверх заглушки, потом заглушка прячется.
   Логотип и копирайты Яндекса (справа внизу) ничем не закрываем — так требуют условия API. */
.ymap { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.is-live > .ymap { opacity: 1; }
.is-live > .contacts__mapimg, .is-live > .contacts__pin, .is-live > .contacts__mapcopy, .is-live > .road__canvas { visibility: hidden; transition: visibility 0s 0.6s; }
/* у живой карты своя кнопка Яндекса «Открыть Яндекс Карты» (внизу слева) — наша не нужна */
.is-live > .contacts__mapbtn { display: none; }
.ymap__pin { position: relative; display: block; width: 0; height: 0; }
a.ymap__pin .pin__label { transition: background 0.2s; }
a.ymap__pin:hover .pin__label { background: #000; }
.ymap__zoom {
  position: absolute; z-index: 1000; right: 16px; top: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 16px rgba(29, 28, 26, 0.12);
}
.ymap__zoom button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); transition: background 0.2s; }
.ymap__zoom button:hover { background: rgba(29, 28, 26, 0.06); }
.ymap__zoom button + button { border-top: 1px solid var(--line); }
/* выходы метро на карте «Как добраться» — как на схеме: тёмный кружок с номером и подпись */
.ymap__exit { position: relative; display: block; width: 0; height: 0; }
.ymap__exit b {
  position: absolute; left: -12px; top: -12px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 3px #fff; font: 700 12px/1 var(--font);
}
.ymap__exit span {
  position: absolute; top: 0; transform: translateY(-50%); white-space: nowrap;
  font: 600 13px/1 var(--font); color: var(--ink);
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
}
.ymap__exit--right span { left: 20px; }
.ymap__exit--left span { right: 20px; }

@media (max-width: 1023px) {
  .contacts__body { grid-template-columns: minmax(0, 1fr); }
  .contacts__card { order: -1; }                 /* на узких экранах сначала контакты, под ними карта */
  html[data-ccard="open"] .contacts__card { padding: 0 0 8px; }
  .contacts__map { min-height: 360px; }
}
@media (max-width: 759px) {
  .contacts__body { padding-top: 18px; gap: 10px; }
  .contacts__card { padding: 22px 20px; gap: 16px; }
  .contacts__actions { column-gap: 28px; }
  .contacts__links { grid-template-columns: 76px minmax(0, 1fr); column-gap: 14px; }
  .contacts__list { column-gap: 16px; }
  .contacts__map { min-height: 300px; --map-shift: -56px; }   /* сдвиг влево — чтобы в кадр попала и «Маяковская» */
  /* на тёмном фоне: текст вровень с краями раздела, под ним карта */
  html[data-ccard="open"] .contacts__card { padding: 10px 0 0; }
  /* телефон — акцент, но заметно меньше заголовка «Контакты» (26 px заглавными) и больше адреса (16 px) */
  html[data-ccard="open"] .contacts__phone { font-size: 22px; }
  html[data-ccard="open"] .contacts__body { gap: 28px; }
}

/* ---------- Подвал: документы и сноска — одной строкой (логотип и так всегда виден в закреплённой шапке) ---------- */

.foot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 40px;
  margin-top: clamp(20px, 2vw, 28px);
  padding: 20px var(--pad) calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
}
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 26px; font-weight: 500; }
.foot__note { margin: 0; justify-self: end; text-align: right; font-size: 11.5px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 1023px) {
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot__note { justify-self: start; text-align: left; }
}
@media (max-width: 759px) {
  .foot { grid-template-columns: minmax(0, 1fr); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  html[data-dock="pill"] .foot { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }   /* место под кнопку записи внизу справа */
}

/* ---------- Контакты и подвал — одной тёмной полосой ---------- */

.contacts {
  --night-ink: #f2efea;
  margin-top: clamp(64px, 8vw, 128px);
  padding-top: clamp(40px, 4.5vw, 72px);
  padding-bottom: 1px;   /* + margin-top: -1px у подвала: блоки заходят друг на друга на 1 px */
  background: var(--night); color: var(--night-ink);
  border-radius: var(--radius) var(--radius) 0 0;   /* тёмная полоса «поднимается» скруглением, как карточки сайта */
}
/* края тёмного блока: скруглённые (по умолчанию) или прямые — отдельно для компьютера и телефона (админка → «Оформление») */
@media (min-width: 760px) { html[data-foot-d="flat"] .contacts { border-radius: 0; } }
@media (max-width: 759px) { html[data-foot-m="flat"] .contacts { border-radius: 0; } }
.contacts .price__rule { background: rgba(255, 255, 255, 0.14); }
.contacts__map { background: #3a3734; }
/* подвал заходит на контакты на 1 px: когда граница блоков приходится на дробный пиксель
   (на телефоне она совпадает с низом карты), сквозь стык просвечивал светлый фон страницы — тонкая белая полоса */
.foot {
  margin-top: -1px; padding-top: clamp(24px, 2.4vw, 32px);
  background: var(--night); color: #f2efea;
}
.foot__note { color: rgba(242, 239, 234, 0.55); }
.foot__legal { color: rgba(242, 239, 234, 0.85); }

/* при переключении вкладок браузер не должен «цепляться» за содержимое и дёргать прокрутку */
.panes, .wgrid { overflow-anchor: none; }

/* ---------- Кнопка «Онлайн-запись» внизу справа (телефон) ----------
   Не панель во всю ширину, а одна небольшая тёмная кнопка в правом нижнем углу — как у сайта, не как меню приложения.
   Появляется, когда кнопки обложки ушли из вида. Включается в админке (data-dock="pill"). */
.dock {
  position: fixed; z-index: 40;
  right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
  display: none;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.dock .btn {
  height: 44px; padding: 0 20px; font-size: 14px; letter-spacing: 0.01em;
  box-shadow: 0 8px 24px rgba(29, 28, 26, 0.22);
}
.dock.is-shown { opacity: 1; transform: none; pointer-events: auto; }
body.is-locked .dock { opacity: 0; pointer-events: none; }
@media (max-width: 759px) { html[data-dock="pill"] .dock { display: block; } }

/* ---------- Шторка «Написать» (телефон) ---------- */

.sheet {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(29, 28, 26, 0); transition: background-color 0.25s;
  display: flex; align-items: flex-end;
}
.sheet[hidden] { display: none; }
.sheet.is-open { background: rgba(29, 28, 26, 0.32); }
.sheet__panel {
  width: 100%; background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform 0.3s var(--ease);
}
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 14px; }
.sheet__title {
  margin: 4px 0 22px; text-align: center;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2);
}
/* в шторке те же значки, что в меню, только по центру и чуть крупнее */
.sheet__msgs { justify-content: space-around; gap: 0; margin-left: 0; padding: 0 4px; }   /* ячейки равной ширины — значки на равном расстоянии */
.sheet__msgs .msg__ic { width: 52px; height: 52px; }
.sheet__call {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding: 16px 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 16px; font-weight: 500;
}
.sheet__call span { color: var(--ink-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.sheet__close { width: 100%; margin-top: 12px; height: 48px; border-radius: 999px; background: var(--bg); font-weight: 600; }
/* компьютер: окно по центру — появляется и исчезает на месте (растворяется с лёгким уменьшением),
   а не уезжает вниз, как шторка на телефоне */
@media (min-width: 760px) {
  .sheet { align-items: center; justify-content: center; }
  .sheet__panel {
    max-width: 380px; border-radius: 24px;
    opacity: 0; transform: translateY(8px) scale(0.97);
    transition: opacity 0.2s ease, transform 0.25s var(--ease);
  }
  .sheet.is-open .sheet__panel { opacity: 1; transform: none; }
  .sheet__grip { display: none; }   /* «ручка» для свайпа нужна только на телефоне */
}

/* заголовки разделов на телефоне: по центру — в одну ось с вкладками, эмблемой и текстом философии */
@media (max-width: 759px) {
  .sec-title { justify-self: center; text-align: center; }
}

/* отступы у заголовков на телефоне: заголовок отделён от того, что под ним (≈28 px вместо 16),
   а разделы — друг от друга ещё сильнее (72 px вместо 56), чтобы ритм читался: раздел → заголовок → содержимое */
@media (max-width: 759px) {
  :is(.price, .works, .about) { padding-top: 72px; }
  .sec-title { margin-bottom: 18px; }
  .emblem { margin-bottom: 34px; }
  .about__lead { margin-top: 8px; }
  .contacts__body { padding-top: 12px; }
}

/* самые узкие телефоны: «Онлайн-запись» и «Написать нам» длиннее прежних подписей — ужимаем поля овалов */
@media (max-width: 359px) {
  .hero__cta .btn { padding: 0 10px; font-size: 13.5px; }
}

/* ---------- Уведомление о cookie ----------
   небольшая белая карточка в углу (на телефоне — снизу во всю ширину), мягко всплывает; не перекрывает страницу */
.cookie {
  position: fixed; z-index: 65; right: 16px; bottom: 16px; width: 360px;
  display: grid; gap: 14px; padding: 18px 18px 16px;
  background: var(--surface); color: var(--ink); border-radius: 18px;
  box-shadow: 0 16px 48px rgba(29, 28, 26, 0.14), 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), visibility 0s 0.55s;
}
.cookie.is-shown {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease);
}
body.is-locked .cookie { opacity: 0; visibility: hidden; }
.cookie__text { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.cookie__text a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cookie__actions { display: flex; align-items: center; gap: 4px; }
.cookie__actions .btn { height: 38px; padding: 0 22px; font-size: 13.5px; }
.cookie__decline {
  height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: color 0.2s;
}
.cookie__decline:hover { color: var(--ink); }
@media (max-width: 759px) {
  .cookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); width: auto; padding: 16px 16px 14px; gap: 12px; }
  body:has(.dock.is-shown) .cookie { bottom: calc(70px + env(safe-area-inset-bottom)); }   /* над кнопкой записи */
}

/* ---------- Окно «Следи за нами в Instagram» ----------
   Брендированная карточка: слева — телефон с профилем на тёплом фоне и тонкое кольцо (как у эмблемы-печати),
   справа — заголовок заглавными, имя профиля, одна фраза, кнопка. На телефоне — снизу во всю ширину.
   data-plook: dark — тёмная, как блок «Контакты» (по умолчанию); light — светлая. */
.ipop { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; }
.ipop[hidden] { display: none; }
.ipop__backdrop {
  position: absolute; inset: 0; background: rgba(22, 21, 20, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.35s;
}
.ipop.is-open .ipop__backdrop { opacity: 1; }
.ipop__card {
  position: relative; display: grid; grid-template-columns: 310px minmax(0, 1fr);
  width: min(780px, 100%); min-height: 440px; overflow: hidden;
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.28);
  opacity: 0; transform: translateY(18px) scale(0.985);
  transition: opacity 0.4s var(--ease), transform 0.55s var(--ease);
}
.ipop.is-open .ipop__card { opacity: 1; transform: none; }
.ipop__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); color: var(--ink); transition: background-color 0.2s;
}
.ipop__close:hover { background: #ebe7e1; }
/* «ручка» сверху окна — подсказка, что на телефоне окно можно стянуть вниз (на компьютере не видна) */
.ipop__grip { display: none; }
@media (max-width: 759px) {
  .ipop__grip {
    display: block; position: absolute; z-index: 2; top: 8px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 4px; border-radius: 2px;
    /* светлая с тонкой тенью — видна и на фото, и на тёмной картинке Instagram, и на светлом фоне */
    background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.16), 0 1px 4px rgba(0, 0, 0, 0.18);
  }
}
.ipop__media {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 18%, #f3eee8 0%, #e6ded3 55%, #d9cfc2 100%);
}
.ipop__halo {
  position: absolute; left: 50%; top: 34px; width: 250px; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; border: 1px solid rgba(29, 28, 26, 0.16);
}
.ipop__halo::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(29, 28, 26, 0.08); }
/* картинка со старого сайта — телефон на светлом фоне: «умножение» растворяет её фон в бежевом,
   остаются телефон и его тень */
.ipop__media img {
  position: absolute; left: 50%; top: 30px; width: 340px; height: auto; max-width: none;
  transform: translateX(-50%); mix-blend-mode: multiply;
}
.ipop__body { display: flex; flex-direction: column; justify-content: center; padding: 48px 48px 30px 44px; }
.ipop__kicker { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2); }
.ipop__title {
  margin: 0; font-size: clamp(24px, 2.2vw, 30px); font-weight: 300; line-height: 1.16;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ipop__title span { display: block; }
.ipop__handle {
  align-self: flex-start; margin-top: 14px; font-size: 16px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rule);
}
.ipop__text { margin: 18px 0 0; max-width: 34ch; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.ipop__actions { display: flex; align-items: center; gap: 6px; margin-top: 28px; }
.ipop__btn { height: 48px; padding: 0 28px; font-size: 14.5px; }
.ipop__later { height: 48px; padding: 0 16px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color 0.2s; }
.ipop__later:hover { color: var(--ink); }
.ipop__note { margin: 26px 0 0; font-size: 10.5px; line-height: 1.45; color: rgba(29, 28, 26, 0.45); max-width: 44ch; }

html[data-plook="dark"] .ipop__card { background: var(--night); color: #f2efea; }
html[data-plook="dark"] .ipop__media { background: radial-gradient(110% 80% at 50% 22%, #34302c 0%, #211f1c 60%, #181715 100%); }
html[data-plook="dark"] .ipop__halo { border-color: rgba(242, 239, 234, 0.2); }
html[data-plook="dark"] .ipop__halo::after { border-color: rgba(242, 239, 234, 0.1); }
/* тёмное: слева светлая картинка во всю высоту, справа тёмный текст — двухцветная карточка */
html[data-plook="dark"] .ipop__media { background: #f1ede8; }
html[data-plook="dark"] .ipop__halo { display: none; }
html[data-plook="dark"] .ipop__media img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: none; mix-blend-mode: normal; }
html[data-plook="dark"] .ipop__kicker, html[data-plook="dark"] .ipop__text { color: rgba(242, 239, 234, 0.62); }
html[data-plook="dark"] .ipop__handle { text-decoration-color: rgba(242, 239, 234, 0.4); }
html[data-plook="dark"] .ipop__btn { background: #f2efea; color: var(--ink); }
html[data-plook="dark"] .ipop__btn:hover { background: #fff; }
html[data-plook="dark"] .ipop__later { color: rgba(242, 239, 234, 0.6); }
html[data-plook="dark"] .ipop__later:hover { color: #fff; }
html[data-plook="dark"] .ipop__close { background: rgba(242, 239, 234, 0.1); color: #f2efea; }
html[data-plook="dark"] .ipop__close:hover { background: rgba(242, 239, 234, 0.18); }
html[data-plook="dark"] .ipop__note { color: rgba(242, 239, 234, 0.38); }

@media (max-width: 759px) {
  .ipop { place-items: end stretch; padding: 0; }
  .ipop__card {
    grid-template-columns: minmax(0, 1fr); width: 100%; min-height: 0;
    border-radius: 24px 24px 0 0; transform: translateY(40px);
  }
  .ipop__media { height: 236px; }
  .ipop__halo { width: 200px; top: 22px; }
  .ipop__media img { top: 14px; width: 290px; }
  html[data-plook="dark"] .ipop__media img { object-position: 50% 12%; }
  .ipop__close { top: 12px; right: 12px; background: rgba(255, 255, 255, 0.7); }
  .ipop__body { align-items: center; text-align: center; padding: 24px 22px calc(18px + env(safe-area-inset-bottom)); }
  .ipop__kicker { margin-bottom: 10px; }
  .ipop__title { font-size: 22px; }
  .ipop__title span { display: inline; }
  .ipop__handle { align-self: center; margin-top: 10px; font-size: 15px; }
  .ipop__text { margin-top: 12px; font-size: 14px; }
  .ipop__actions { flex-direction: column; align-self: stretch; gap: 2px; margin-top: 20px; }
  .ipop__btn { width: 100%; }
  .ipop__later { height: 42px; }
  .ipop__note { margin-top: 10px; }
}

/* ---------- Макет: метка «показаны данные из админки» ---------- */
.adminbar {
  position: fixed; z-index: 58; left: 50%; top: calc(var(--hh) + 12px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.adminbar a, .adminbar button { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 12px; font-weight: 600; }
body.is-locked .adminbar { display: none; }
@media (max-width: 759px) {
  .adminbar { left: 10px; transform: none; top: calc(var(--hh) + 10px); font-size: 11px; gap: 8px; padding-left: 12px; max-width: calc(100vw - 150px); white-space: normal; line-height: 1.25; }
}

/* ---------- Панель переключения вариантов (только для макета) ---------- */

.mk {
  position: fixed; left: 16px; bottom: 16px; z-index: 60;
  width: 280px; font-size: 13px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 14px 44px rgba(29, 28, 26, 0.16), 0 0 0 1px var(--line);
}
.mk__toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 11px 14px; font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
}
.mk__toggle .chev { transition: transform 0.25s; }
.mk.is-collapsed .mk__toggle .chev { transform: rotate(180deg); }
.mk__body {
  display: grid; gap: 14px; padding: 2px 14px 14px;
  max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain;
}
.mk.is-collapsed .mk__body { display: none; }
.mk fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.mk legend { padding: 0; margin-bottom: 6px; font-size: 11px; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 3px; background: var(--bg); padding: 3px; border-radius: 12px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 44px; padding: 5px 4px; border-radius: 9px; line-height: 1.2; font-size: 11.5px; font-weight: 500; color: var(--ink-2);
}
.seg b { font-size: 13px; color: var(--ink); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 1px; }
.mk__note { margin: 0; font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.mk__new legend { color: var(--ink); font-weight: 600; }
.mk__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.mk__link { justify-self: start; font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.is-locked .mk { display: none; }
.mk.is-collapsed { width: auto; }
.mk.is-collapsed .mk__toggle { gap: 10px; }
@media (max-width: 759px) {
  /* на телефоне — маленькая плашка сверху справа, чтобы не закрывать кнопки записи */
  .mk { left: auto; right: 10px; bottom: auto; top: calc(var(--hh) + 10px); width: min(300px, calc(100vw - 20px)); }
  .mk__toggle { padding: 8px 12px; font-size: 11px; }
}

/* ---------- Документы: оферта, согласие на обработку персональных данных ----------
   Сплошной текст на белом листе поверх тёплого фона. Шапка листа — мягкий тёплый перелив и едва заметная печать «G».
   На компьютере слева содержание (стоит на месте при прокрутке, текущий раздел темнее), справа — текст ~70 знаков в строке. */
.doc { padding: clamp(28px, 3.4vw, 56px) var(--pad) 0; }
.doc__sheet { background: var(--surface); border-radius: var(--radius); overflow: clip; }
.doc__head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 5vw, 88px) clamp(22px, 4.4vw, 80px) clamp(30px, 3.6vw, 56px);
  background:
    radial-gradient(90% 120% at 100% 0%, #ece6de 0%, rgba(236, 230, 222, 0) 62%),
    linear-gradient(180deg, #f6f3ef 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}
.doc__seal.emblem {
  position: absolute; z-index: -1; right: clamp(-150px, -7vw, -40px); top: 50%;
  width: clamp(260px, 32vw, 480px); margin: 0; transform: translateY(-50%); opacity: 0.07;
}
.doc__kicker { margin: 0 0 18px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.doc__title {
  margin: 0; max-width: 18ch;
  font-size: clamp(30px, 3.8vw, 58px); font-weight: 300; line-height: 1.06; letter-spacing: 0.06em; text-transform: uppercase;
}
.doc__meta { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.doc__switch { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: clamp(26px, 2.8vw, 40px); font-size: 15px; font-weight: 500; }
.doc__switch a { padding: 2px 0 8px; color: var(--ink-2); border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.doc__switch a:hover { color: var(--ink); }
.doc__switch a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.doc__stub {
  display: flex; gap: 10px; align-items: baseline; margin: 22px 0 0; max-width: 62ch;
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
}
.doc__stub::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #c9a227; transform: translateY(-1px); }

.doc__body {
  display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: clamp(32px, 5.4vw, 104px);
  padding: clamp(32px, 4vw, 72px) clamp(22px, 4.4vw, 80px) clamp(44px, 5vw, 96px);
}
.doc__toc { position: sticky; top: calc(var(--hh-s) + 28px); align-self: start; font-size: 14px; line-height: 1.4; }
.doc__toc-t { margin: 0 0 16px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); }
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; counter-reset: toc; }
.doc__toc li { display: grid; grid-template-columns: 30px minmax(0, 1fr); counter-increment: toc; }
.doc__toc li::before { content: counter(toc, decimal-leading-zero); padding-top: 1px; font-size: 12px; font-weight: 600; color: rgba(29, 28, 26, 0.35); font-variant-numeric: tabular-nums; }
.doc__toc a { color: var(--ink-2); transition: color 0.2s; }
.doc__toc a:hover, .doc__toc a.is-active { color: var(--ink); }

.doc__text { max-width: 70ch; font-size: 16px; line-height: 1.75; }
.doc__text section { scroll-margin-top: calc(var(--hh-s) + 24px); }
.doc__text section + section { margin-top: clamp(30px, 3.2vw, 46px); padding-top: clamp(30px, 3.2vw, 46px); border-top: 1px solid var(--line); }
.doc__text h2 { display: flex; align-items: baseline; gap: 16px; margin: 0 0 16px; font-size: clamp(19px, 1.6vw, 23px); font-weight: 500; line-height: 1.3; }
.doc__text h2 > span { flex: none; min-width: 26px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(29, 28, 26, 0.35); font-variant-numeric: tabular-nums; }
.doc__text p { margin: 0 0 12px; }
.doc__text p > b:first-child { margin-right: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc__text ul { margin: 0 0 12px; padding-left: 22px; }
.doc__text li { margin-bottom: 6px; }
.doc__text li::marker { color: var(--ink-2); }
.doc__text a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 4px; }
.doc__text a:hover { text-decoration-color: currentColor; }
.doc__req { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 28px; margin: 4px 0 0; font-size: 15px; }
.doc__req dt { color: var(--ink-2); }
.doc__req dd { margin: 0; }

@media (max-width: 1023px) {
  .doc__body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .doc__toc { position: static; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
  .doc__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}
@media (max-width: 759px) {
  .doc { padding-top: 12px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .doc__sheet { border-radius: 20px; }
  .doc__head { padding: 34px 20px 28px; }
  .doc__seal.emblem { width: 230px; right: -84px; top: 34px; transform: none; }
  .doc__title { font-size: clamp(26px, 8vw, 34px); letter-spacing: 0.05em; }
  .doc__switch { gap: 6px 22px; font-size: 14px; }
  .doc__body { padding: 26px 20px 40px; }
  .doc__toc ol { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .doc__text { font-size: 15.5px; line-height: 1.7; }
  .doc__text h2 { gap: 12px; }
  .doc__req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc__req dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
