/* =====================================================================
   ЧМС — Челябинская Мемориальная служба
   Единая дизайн-система публичной части сайта.
   Цвета: обсидиан / графит / коричнево-чёрный, золото — только акцент,
   тёплый молочный текст. Шрифты: PT Serif (заголовки) + Inter (текст).
   ===================================================================== */

/* Резервные шрифты с подогнанной шириной: пока PT Serif/Inter загружаются,
   текст в Georgia/Arial занимает то же место — страница не «прыгает» (CLS). */
@font-face { font-family: "PT Serif Fallback"; src: local("Georgia"); font-weight: 400; size-adjust: 99.6%; }
@font-face { font-family: "PT Serif Fallback"; src: local("Georgia Bold"), local("Georgia-Bold"); font-weight: 700; size-adjust: 93.4%; }
@font-face { font-family: "PT Serif Fallback"; src: local("Georgia Italic"), local("Georgia-Italic"); font-weight: 400; font-style: italic; size-adjust: 99.6%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 400 500; size-adjust: 106.6%; ascent-override: 90%; descent-override: 22%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 700; size-adjust: 102%; ascent-override: 90%; descent-override: 22%; }

:root {
  --bg: #16130f;
  --bg-alt: #1c1814;
  --graphite: #24201b;
  --umber: #2c241c;
  --panel: rgba(40, 33, 27, .62);
  --line: rgba(195, 160, 99, .24);
  --line-strong: rgba(195, 160, 99, .45);
  --line-soft: rgba(239, 230, 214, .08);
  --gold: #c3a063;
  --gold-2: #e3c992;
  --gold-deep: #8a6c3c;
  --text: #f3ebdc;
  --text-2: #ddd3c2;
  --muted: #b5a995;
  --faint: #897d6d;

  --serif: "PT Serif", "PT Serif Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  /* Сдержанные радиусы: скругление — только у арки, остальное почти прямое. */
  --r-sm: 3px;
  --r: 4px;
  --r-lg: 6px;

  /* Панель: ровная тёмная поверхность с тонкой тёплой кромкой — без свечений и «стекла». */
  --glass-bg: linear-gradient(180deg, rgba(255, 240, 215, .028), rgba(255, 240, 215, .012));
  --glass-border: rgba(227, 201, 146, .13);
  --glass-border-hover: rgba(227, 201, 146, .32);
  --glass-shadow: none;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, .85);

  /* Редакционная шкала: крупные заголовки — обычным начертанием, как в хорошей
     книжной вёрстке; жирный остаётся для мелких заголовков карточек. */
  --fs-display: clamp(2.25rem, 1.2rem + 3.2vw, 4.25rem);
  --fs-h2: clamp(2rem, 1.35rem + 2vw, 3.2rem);
  --section-y: clamp(80px, 8.4vw, 132px);
}

/* ------------------------------ База ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
/* Атрибут hidden всегда скрывает элемент, даже если у класса задан display. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  padding-top: var(--header-h);
}
body.has-hero { padding-top: 0; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Тёплый мягкий свет сверху — статичный слой. */
  /* Первый слой — едва заметное «зерно» бумаги: рисуется один раз, слой статичный. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .78 0 0 0 .055 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1100px 700px at 60% -10%, rgba(160, 120, 62, .17), transparent 62%),
    radial-gradient(900px 700px at -10% 100%, rgba(70, 52, 32, .35), transparent 60%),
    radial-gradient(800px 600px at 110% 70%, rgba(40, 30, 20, .5), transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .75));
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, .75));
}
img, picture, svg, video { display: block; max-width: 100%; }
/* Изображения не «ловят» курсор и касание: наведение попадает в рамку фото, а не
   в само <img>. Так браузеры не накладывают на фото свои кнопки (Яндекс Браузер —
   «Алиса»/«Умная камера», поиск по картинке), фото не перетаскивается и не
   выделяется. Ссылки и кнопки вокруг фото работают как прежде — клик уходит родителю. */
picture { pointer-events: none; }
img { height: auto; pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
dl, dd { margin: 0; }
::selection { background: rgba(195, 160, 99, .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: #16110a; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(780px + var(--gutter) * 2); }

/* ---------------------------- Типографика ---------------------------- */
.h2, .display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  text-wrap: balance;
}
.display { font-size: var(--fs-display); line-height: 1.05; letter-spacing: -.025em; }
.h2 em, .display em { font-style: italic; color: var(--gold-2); }

/* «01 — Услуги»: номер раздела, тонкая линия, подпись капителью. */
.kicker {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.kicker__num { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-weight: 400; font-size: .95rem; letter-spacing: .04em; color: var(--gold); }
.kicker__num::after { content: ""; width: 40px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(195, 160, 99, .15)); }
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--sans); font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--gold { color: var(--gold); font-size: .78rem; margin-bottom: 18px; }
.eyebrow--section { margin-bottom: 22px; }
.h3 {
  font-family: var(--serif);
  font-weight: 400; letter-spacing: -.01em;
  font-size: clamp(1.3rem, 1.2rem + .4vw, 1.55rem);
  line-height: 1.2;
  margin: 2rem 0 1rem;
}
.prose { color: var(--text-2); max-width: 35.2em; }
.prose p + p { margin-top: 1em; }
.prose--lg { font-size: 1.075rem; line-height: 1.75; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--gold-2); font-weight: 600; font-size: .95rem;
  transition: color .25s;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a.link-arrow:hover, a:hover > .link-arrow, a:hover .link-arrow { color: #f2dcaa; }
a.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }

/* ------------------------------ Кнопки ------------------------------ */
/* Кнопки: плоское золото и тонкая линия. Движение — только у стрелки и заливки,
   без подпрыгивания и свечения. */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 50px; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--sans); font-weight: 600; font-size: .9rem; line-height: 1.2;
  letter-spacing: .04em; white-space: nowrap; cursor: pointer;
  transition: background-color .35s, border-color .35s, color .35s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon:has(use[href="#icon-phone"]) { transform: rotate(-12deg); }
.btn--gold { background: #c7a568; color: #15100a; border-color: #c7a568; }
.btn--gold:hover { background: #d8ba80; border-color: #d8ba80; }
.btn--line { border-color: rgba(227, 201, 146, .3); color: var(--text); background: transparent; }
/* Заливка поднимается снизу — дорогой, но дешёвый для браузера эффект (transform). */
.btn--line::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(199, 165, 104, .1); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease-out); }
.btn--line:hover { border-color: rgba(227, 201, 146, .6); color: var(--gold-2); }
.btn--line:hover::before { transform: none; }
.btn--lg { min-height: 56px; padding: 1rem 2rem; font-size: 1rem; }
.btn--sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(13, 11, 10, .3); color: var(--gold-2);
  cursor: pointer; transition: border-color .25s, color .25s, background-color .25s;
}
.icon-btn:hover { border-color: var(--gold); color: #f2dcaa; }
.icon-btn .icon { width: 20px; height: 20px; }

/* ------------------------------ Шапка ------------------------------ */
/* Единая система: три зоны на общей сетке (логотип / меню / телефон), меню
   центрируется относительно всей ширины шапки, а не «прилипает» к логотипу. */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s, border-color .4s, box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.has-hero) .site-header, .site-header.is-open {
  /* Тот же язык «жидкого стекла», что и у карточек (--glass-*), но без
     backdrop-filter: размытие под фиксированной шапкой перерисовывалось бы
     на каждый кадр прокрутки и заметно грузило бы слабые телефоны. */
  background:
    linear-gradient(180deg, rgba(255, 232, 190, .045), transparent 65%),
    linear-gradient(180deg, #1a1511, #110e0c);
  border-bottom-color: var(--line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .06), 0 18px 40px -28px rgba(0, 0, 0, .8);
}
.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(20px, 3vw, 48px);
}

/* Логотип и название — два независимых переключателя из админки: у каждого
   свой элемент, разделитель между ними появляется только когда оба на месте. */
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; justify-self: start; }
.brand__logo { height: 44px; width: auto; max-width: 160px; object-fit: contain; }
.brand picture { display: contents; }
.brand picture + .brand__name { padding-left: 14px; border-left: 1px solid var(--line); }
/* Подпись к знаку — капитель в две строки: тихо, как выходные данные, а не жирный заголовок. */
.brand__name { font-family: var(--sans); font-weight: 600; font-size: .62rem; line-height: 1.55; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
/* Размер из админки. Логотип никогда не выше самой шапки (на телефоне она ниже). */
.site-header .brand__logo { max-height: calc(var(--header-h) - 12px); }

.main-nav { display: flex; align-items: center; gap: clamp(18px, 1.8vw, 34px); }
.main-nav > a {
  position: relative; display: inline-block; padding: 10px 1px;
  font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1;
  color: var(--text-2); white-space: nowrap; transition: color .25s;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .35s var(--ease);
}
.main-nav > a:hover, .main-nav > a.is-active { color: var(--gold-2); }
.main-nav > a:hover::after, .main-nav > a.is-active::after { transform: scaleX(1); }
.main-nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 20px; justify-self: end; }
/* Телефон в шапке: значок-медальон + номер с подписью — тот же язык, что у
   круглых icon-btn рядом, но статичный (это не кнопка, а ссылка с подписью). */
.header-phone { display: flex; align-items: center; gap: 12px; padding-left: 20px; border-left: 1px solid var(--line); line-height: 1.25; }
.header-phone__icon {
  display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold-2);
  transition: border-color .25s, background-color .25s;
}
.header-phone__icon .icon { width: 15px; height: 15px; }
.header-phone__text { display: grid; }
.header-phone__num { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; letter-spacing: .01em; color: var(--text); white-space: nowrap; transition: color .25s; }
.header-phone__hours { font-size: .64rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.header-phone:hover .header-phone__num { color: var(--gold-2); }
.header-phone:hover .header-phone__icon { border-color: var(--gold); background: rgba(195, 160, 99, .1); }
.header-call, .nav-toggle { display: none; }
.nav-toggle .icon--close { display: none; }
.site-header.is-open .nav-toggle .icon--menu { display: none; }
.site-header.is-open .nav-toggle .icon--close { display: block; }

@media (max-width: 1279px) {
  .header-phone { display: none; }
  .header-call { display: inline-grid; }
}
@media (max-width: 1079px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .brand__name { display: none; }
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    /* Полностью непрозрачный фон: при .97 сквозь панель просвечивал светлый
       текст страницы (контраст кремового по чёрному «пробивает» даже 3% альфы). */
    background: var(--bg);
    background-image: linear-gradient(180deg, rgba(255, 232, 190, .045), transparent 220px);
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .site-header.is-open .main-nav { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s var(--ease); }
  .main-nav > a {
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
    font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; color: var(--text);
  }
  .main-nav > a::after { display: none; }
  .main-nav__mobile-extra { display: grid; gap: 10px; margin-top: 28px; }
  .main-nav__phone { font-family: var(--serif); font-size: 2rem; color: var(--gold-2); }
  .main-nav__hours { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 599px) {
  :root { --header-h: 64px; }
  .brand__logo { height: 38px; }
  .site-header__actions { gap: 10px; }
}

/* ------------------------------ Секции ------------------------------ */
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--flush { padding-block: 0 clamp(32px, 4vw, 56px); }
.section--alt { background: linear-gradient(180deg, rgba(38, 33, 28, .55), rgba(29, 25, 21, .55)); border-block: 1px solid var(--line-soft); }
.section--tight + .section--tight { padding-top: 0; }

.sec-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); }
@media (min-width: 900px) {
  .sec-head:has(.sec-head__lead) { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
}
.sec-head__lead { color: var(--muted); max-width: 28.6em; font-size: 1.02rem; }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head--wide { margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 900px) {
  .sec-head--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 64px; }
  .sec-head--wide .sec-head__lead { padding-bottom: .6em; }
}
.sec-foot { margin-top: clamp(32px, 4vw, 48px); display: flex; }

/* ------------------------- Первый экран (hero) ------------------------- */
/* Кинокадр: фото на всю ширину, текст — левой колонкой у нижнего края, как
   титры. Свет в кадре справа, текст на затенённой стороне — без плашек и
   стекла. Фото мягко «устаканивается» при загрузке и уходит медленнее
   страницы при прокрутке (только transform/opacity). */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(620px, 100svh);
  display: grid; align-items: end;
  padding: calc(var(--header-h) + 40px) 0 clamp(128px, 18vh, 184px);
  background: #0e0c0a;
}
.hero__photo { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__photo-inner { position: absolute; inset: -4% 0; }
.hero__photo picture, .hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--bg-pos, 50% 50%); }
.hero__photo img { opacity: var(--bg-opacity, .88); }
/* Затенение: слева — под текст, снизу — переход в страницу, сверху — под шапку. */
.hero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 8, 6, .9) 0%, rgba(10, 8, 6, .64) 34%, rgba(10, 8, 6, .14) 64%, rgba(10, 8, 6, .22) 100%),
    linear-gradient(180deg, rgba(10, 8, 6, .55) 0%, transparent 22%, transparent 56%, var(--bg) 100%);
}

/* Цветы бренда — необязательный слой (включается в админке), справа у края кадра. */
.hero__flower {
  position: absolute; bottom: 0; z-index: -1; pointer-events: none;
  height: calc(min(72svh, 700px) * var(--fl-scale, 1)); width: auto;
  translate: var(--fl-x, 0px) var(--fl-y, 0px);
}
.hero__flower img {
  height: 100%; width: auto; object-fit: contain; object-position: bottom; opacity: var(--fl-opacity, .95);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero__flower--left { right: clamp(160px, 24vw, 420px); }
.hero__flower--right { right: clamp(-40px, 1vw, 40px); height: calc(min(46svh, 460px) * var(--fl-scale, 1)); }
.hero__flower--right img { transform: scaleX(-1); }

/* Логотип необязателен: он не резервирует место — есть он или нет, текст сам
   занимает всю строку. Когда логотип есть, он встаёт рядом с текстом отдельной
   колонкой (герб слева от заголовка), а не блоком над ним. */
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: row; align-items: flex-start; gap: clamp(24px, 4vw, 56px); }
.hero__crest { flex: none; }
.hero__logo { display: block; width: clamp(104px, 9vw, 168px); max-width: 46vw; height: auto; object-fit: contain; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.hero__kicker {
  display: flex; align-items: center; gap: 16px; margin-bottom: clamp(20px, 2.6vw, 30px);
  font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2);
}
.hero__kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.4rem);
  line-height: 1.03; letter-spacing: -.032em;
  max-width: 11.5em; text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--gold-2); }
.hero__lead { margin-top: clamp(22px, 2.4vw, 30px); max-width: 31em; color: var(--text-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.6; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(30px, 3.4vw, 44px); }

/* Нижняя строка: подписи капителью над значениями, как в выходных данных книги. */
.hero__meta {
  position: absolute; left: 0; right: 0; bottom: clamp(24px, 4.2vh, 42px); z-index: 2;
  display: flex; align-items: end; gap: clamp(28px, 5vw, 72px);
}
.hero__meta::before { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: -22px; height: 1px; background: linear-gradient(90deg, rgba(227, 201, 146, .3), rgba(227, 201, 146, .07) 70%, transparent); }
.hero__meta-phone, .hero__meta-hours { display: grid; gap: 5px; font-family: var(--serif); font-size: 1.1rem; line-height: 1.2; color: var(--text); }
.hero__meta-phone span, .hero__meta-hours span { font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.hero__meta-phone { transition: color .25s; }
.hero__meta-phone:hover { color: var(--gold-2); }
.hero__scroll {
  margin-left: auto; display: inline-flex; align-items: center; gap: 14px;
  font-size: .66rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: color .25s;
}
.hero__scroll:hover { color: var(--gold-2); }
.hero__scroll-line { position: relative; display: block; width: 1px; height: 44px; overflow: hidden; background: rgba(227, 201, 146, .18); }
.hero__scroll-line::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, var(--gold-2)); transform: translateY(-100%); animation: scrollCue 2.8s var(--ease) 2s 3; }
@keyframes scrollCue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* Появление: кадр «устаканивается», строки заголовка поднимаются из-под маски
   по словам (слова размечает main.js), следом — текст и кнопки. Один раз. */
.js .hero__photo-inner { transform: scale(1.07); transition: transform 3.2s var(--ease-out); }
.js .hero__photo img { opacity: 0; transition: opacity 1.4s var(--ease); }
.js .hero.is-ready .hero__photo-inner { transform: none; }
.js .hero.is-ready .hero__photo img { opacity: var(--bg-opacity, .88); }
.js .hero__kicker, .js .hero__lead, .js .hero__actions, .js .hero__meta, .js .hero__logo, .js .hero__flower img {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease-out);
}
.js .hero__kicker { transition-delay: .15s; }
.js .hero__lead { transition-delay: .8s; }
.js .hero__actions { transition-delay: .95s; }
.js .hero__meta { transition-delay: 1.15s; }
.js .hero__flower--right img { transform: translateY(16px) scaleX(-1); }
.js .hero.is-ready :is(.hero__kicker, .hero__lead, .hero__actions, .hero__meta, .hero__logo) { opacity: 1; transform: none; }
.js .hero.is-ready .hero__flower img { opacity: var(--fl-opacity, .95); transform: none; }
.js .hero.is-ready .hero__flower--right img { transform: scaleX(-1); }
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; }
.js .hero__title .split-word > span { transform: translateY(108%); transition: transform 1.3s var(--ease-out); transition-delay: calc(.25s + var(--w, 0) * 50ms); }
.js .hero.is-ready .hero__title .split-word > span { transform: none; }

/* Уход кадра при прокрутке: фото движется медленнее страницы, текст чуть
   быстрее гаснет. Нативные scroll-driven animations, без JS. */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero__photo { animation: heroPhotoDrift linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .hero__content { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    .hero__meta { animation: heroMetaOut linear both; animation-timeline: scroll(root); animation-range: 0 30svh; }
  }
}
@keyframes heroPhotoDrift { to { translate: 0 20svh; } }
@keyframes heroDrift { to { translate: 0 -9svh; opacity: .2; } }
@keyframes heroMetaOut { to { opacity: 0; } }

@media (max-width: 899px) {
  .hero { padding-bottom: 128px; }
  .hero__shade {
    background: linear-gradient(180deg, rgba(10, 8, 6, .6) 0%, rgba(10, 8, 6, .12) 24%, rgba(10, 8, 6, .5) 48%, rgba(10, 8, 6, .9) 74%, var(--bg) 100%);
  }
  .hero__flower { opacity: .45; }
  .hero__content { flex-direction: column; gap: clamp(18px, 3vw, 26px); }
  .hero__logo { width: clamp(72px, 16vw, 108px); }
}
@media (max-width: 640px) {
  .hero { min-height: max(600px, 100svh); padding-bottom: 100px; }
  /* Вертикальный экран: в кадре — светлая часть с цветами, текст ниже на затемнении. */
  .hero__photo { --bg-pos: 95% 42% !important; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 8, 6, .45) 0%, rgba(10, 8, 6, .05) 16%, rgba(10, 8, 6, .3) 36%, rgba(10, 8, 6, .86) 58%, var(--bg) 100%); }
  .hero__title { font-size: clamp(2.25rem, 10.2vw, 3rem); }
  .hero__kicker { font-size: .64rem; letter-spacing: .2em; gap: 12px; }
  .hero__kicker::before { width: 26px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__meta::before, .hero__meta-hours, .hero__scroll { display: none; }
  .hero__meta-phone { font-size: 1rem; }
}

/* --------------------------- Шапка страниц --------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(48px, 7vw, 100px) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line-soft);
  background: radial-gradient(70% 90% at 12% 0%, rgba(88, 66, 36, .22), transparent 70%);
}
.page-hero--compact { padding-block: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px); border-bottom: 0; background: none; }
.page-hero--notfound { min-height: 60vh; display: grid; align-items: center; }

/* Одна строка: длинный последний пункт обрезается многоточием, высота не меняется. */
.crumbs { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; max-width: 100%; white-space: nowrap; overflow: hidden; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: clamp(28px, 4vw, 52px); }
.crumbs a { color: var(--muted); transition: color .2s; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs > * + *::before { content: ""; display: inline-block; width: 16px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--line-strong); }
.crumbs a { flex-shrink: 0; }
.crumbs span { color: var(--text-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.page-hero--compact .crumbs { margin-bottom: 0; }
.page-hero--compact .page-hero__title { margin-top: 28px; }

.page-hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 1.3rem + 3.6vw, 4.6rem);
  line-height: 1.04; letter-spacing: -.028em; max-width: 12em; text-wrap: balance;
}
.page-hero__lead { margin-top: 24px; max-width: 33em; color: var(--text-2); font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); }

/* Шапка с кадром справа: фото растворяется влево и вниз маской — без рамки,
   как продолжение фона страницы (тот же приём, что в финальном блоке). */
.page-hero--photo { min-height: clamp(360px, 44vw, 560px); display: grid; align-items: end; }
.page-hero__photo {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(62%, 980px); z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 55%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent, #000 45%), linear-gradient(180deg, #000 55%, transparent);
}
.page-hero__photo picture, .page-hero__photo img, .page-hero__photo .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero__photo img { opacity: .72; }
.js .page-hero__photo img { animation: pageHeroIn 1.8s var(--ease-out) both; }
@keyframes pageHeroIn { from { opacity: 0; transform: scale(1.05); } to { opacity: .72; transform: none; } }
.page-hero--photo .page-hero__inner { position: relative; }
@media (max-width: 899px) {
  .page-hero--photo { min-height: 0; }
  .page-hero__photo { width: 100%; }
  .page-hero__photo img { opacity: .34; }
  @keyframes pageHeroIn { from { opacity: 0; } to { opacity: .34; } }
}

/* Шапка страницы с аркой справа (о компании, страница услуги). */
.page-hero--split { padding-block: clamp(40px, 5vw, 72px) clamp(56px, 7vw, 104px); }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 96px); align-items: end; }
.page-hero__arch { position: relative; width: 100%; max-width: 400px; justify-self: end; }
.page-hero__arch::before { content: ""; position: absolute; inset: 0; translate: -20px 20px; z-index: -1; border: 1px solid var(--line); border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; }
@media (max-width: 899px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__arch { justify-self: start; width: 70%; max-width: 320px; margin-top: 8px; }
}
.page-hero__meta { margin-top: 14px; font-size: .9rem; }
.page-hero__meta a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 479px) {
  .page-hero__actions .btn { flex: 1 1 100%; }
  /* С запасом по ширине: названия услуг не переносятся «на грани» при загрузке шрифта. */
  .page-hero__title { font-size: 2.15rem; max-width: none; }
}

/* ------------------------------ Медиа ------------------------------ */
.media { position: relative; display: block; overflow: hidden; background: var(--graphite); border-radius: var(--r-sm); }
.media > img, .media > picture, .media > picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.media--square { aspect-ratio: 1; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 5 / 6; }
.media--wide { aspect-ratio: 16 / 8; }
@media (max-width: 700px) { .media--wide { aspect-ratio: 4 / 3; } }

.ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(195, 160, 99, .07), transparent 70%),
    repeating-linear-gradient(135deg, rgba(239, 230, 214, .018) 0 1px, transparent 1px 14px),
    linear-gradient(160deg, #262019, #1b1714);
  color: rgba(195, 160, 99, .38);
}
.ph .icon { width: clamp(32px, 22%, 64px); height: auto; aspect-ratio: 1; stroke-width: 1.1; }
.ph::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(195, 160, 99, .1); border-radius: 3px; }

/* ------------------------------- Сетки ------------------------------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1099px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
}

/* ------------------------------ Карточки ------------------------------ */
/* Товар: фото в тонкой рамке, под ним — подпись как в каталоге выставки. */
.products { row-gap: clamp(36px, 4vw, 56px); }
.product-card { display: flex; flex-direction: column; }
.product-card .media { border-radius: var(--r); background: #1d1915; }
.product-card .media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-soft); pointer-events: none; transition: box-shadow .4s; }
.product-card:hover .media::after { box-shadow: inset 0 0 0 1px var(--line-strong); }
.product-card img { transition: transform 1.2s var(--ease-out); }
.product-card:hover img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 2px 0; }
.product-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .4vw, 1.5rem); line-height: 1.2; color: var(--text); transition: color .3s; }
.product-card:hover .product-card__title { color: var(--gold-2); }
.product-card__text { color: var(--muted); font-size: .93rem; }
.product-card__foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); }
.product-card__price { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-2); }

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: clamp(40px, 6vw, 72px) 24px;
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 240, 215, .025), transparent);
  color: var(--muted);
}
.empty .icon { width: 40px; height: 40px; color: var(--gold-deep); stroke-width: 1.2; }
.empty p { max-width: 25.3em; }

/* --------------------------- Текст + фото --------------------------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.split__media { border-radius: var(--r-lg); box-shadow: var(--shadow); }
.split__media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line-soft); border-radius: inherit; pointer-events: none; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 4 / 3; }
}
.facts { display: flex; flex-wrap: wrap; gap: 20px 0; padding-top: 8px; }
.facts > div { padding-right: clamp(28px, 4vw, 56px); }
.facts > div + div { padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 2rem + 2vw, 3.8rem); line-height: 1; letter-spacing: -.03em; color: var(--gold-2); font-variant-numeric: tabular-nums lining-nums; }
.facts dd { color: var(--muted); font-size: .88rem; margin-top: 10px; letter-spacing: .02em; }

/* ------------------------ Преимущества / принципы ------------------------ */
/* Редакционный список: номер — заголовок — текст, строки разделены волосяными
   линиями. Заголовок раздела рядом «прилипает», пока читается список. */
.pillars { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.pillars__head { position: sticky; top: calc(var(--header-h) + 48px); }
.pillars__lead { color: var(--muted); margin-top: 22px; max-width: 24em; }
.pillars__media { margin-top: clamp(32px, 4vw, 52px); aspect-ratio: 4 / 3; max-width: 460px; border-radius: var(--r); }
.pillars__media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-soft); background: linear-gradient(180deg, transparent 50%, rgba(12, 10, 8, .45)); pointer-events: none; }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } .pillars__head { position: static; } .pillars__media { max-width: none; aspect-ratio: 16 / 10; } }

.features:not(.features--cards) { border-top: 1px solid var(--line); }
.features:not(.features--cards) .feature {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  padding: clamp(24px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-soft);
}
.features:not(.features--cards) .feature::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent); transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--ease-out);
}
.features:not(.features--cards) .feature.is-in::after { transform: scaleX(1); }
.feature__num { font-family: var(--serif); font-size: .95rem; color: var(--gold); padding-top: .55em; letter-spacing: .04em; }
.features:not(.features--cards) .feature__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.95rem); line-height: 1.2; letter-spacing: -.01em;
}
.features:not(.features--cards) .feature__icon { width: 22px; height: 22px; margin: 0; }
.features:not(.features--cards) .feature__text { margin-top: 10px; max-width: 32em; }
.feature__icon { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; stroke-width: 1.3; }
.feature__title { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: .95rem; }
.features--cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.features--cards .feature { padding: 28px 24px 30px; border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--panel); }
@media (max-width: 999px) { .features--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .features--cards { grid-template-columns: 1fr; }
  .features:not(.features--cards) .feature { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
}

/* «Что мы берём на себя»: фото и подпись, ритм задаёт смещение средней колонки. */
.takes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.takes__item { display: flex; flex-direction: column; gap: 18px; }
.takes__item:nth-child(3n + 2) { margin-top: clamp(0px, 5vw, 72px); }
.takes__media { aspect-ratio: 4 / 3; border-radius: var(--r); }
.takes__media img { transition: transform 1.4s var(--ease-out); }
.takes__item:hover .takes__media img { transform: scale(1.035); }
.takes__body { padding-top: 16px; border-top: 1px solid var(--line); }
.takes__title { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); line-height: 1.2; }
.takes__title .icon { width: 20px; height: 20px; color: var(--gold); }
.takes__text { margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 26em; }
@media (max-width: 899px) { .takes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .takes__item:nth-child(3n + 2) { margin-top: 0; } .takes__item:nth-child(even) { margin-top: 48px; } }
@media (max-width: 559px) { .takes { grid-template-columns: 1fr; } .takes__item:nth-child(even) { margin-top: 0; } }

/* «Ведомость»: сетка на волосяных линиях вместо набора одинаковых карточек. */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.ledger__item { display: grid; align-content: start; gap: 10px; padding: clamp(24px, 2.6vw, 36px) clamp(20px, 2.4vw, 34px) clamp(28px, 3vw, 40px); border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.ledger__icon { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.2; margin-bottom: 18px; }
.ledger__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.65rem); line-height: 1.2; }
.ledger__text { color: var(--muted); font-size: .95rem; max-width: 24em; }
.ledger--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 999px) { .ledger, .ledger--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .ledger, .ledger--4 { grid-template-columns: 1fr; } }

/* ------------------------------- Шаги ------------------------------- */
/* Крупные контурные цифры, под ними — общая линия пути. Золотая линия
   «прорисовывается» по мере прокрутки (scroll-driven, без JS); в браузерах без
   этой технологии — один раз при появлении блока. */
.steps {
  --num: clamp(3.4rem, 2.4rem + 3vw, 5.6rem);
  --rail: calc(var(--num) + 26px);
  position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px); counter-reset: step;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: var(--rail); height: 1px; pointer-events: none;
}
.steps::before { background: var(--line-soft); }
.steps::after { background: linear-gradient(90deg, var(--gold-deep), var(--gold-2) 70%, var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease-out) .2s; }
.steps.is-drawn::after { transform: scaleX(1); }
.step { position: relative; counter-increment: step; padding-top: calc(var(--rail) + 34px); }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: -.04em;
  font-family: var(--serif); font-size: var(--num); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(227, 201, 146, .5);
}
.step::after {
  content: ""; position: absolute; left: 0; top: calc(var(--rail) - 4px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 0 5px var(--bg);
}
.section--alt .step::after { background: #1d1914; box-shadow: 0 0 0 5px #1d1914; }
.step__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; margin-bottom: 10px; }
.step__text { color: var(--muted); font-size: .95rem; max-width: 22em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { transition: none; animation: railDraw linear both; animation-timeline: view(); animation-range: entry 40% cover 55%; }
  }
}
@keyframes railDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 999px) and (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: calc(var(--num) + 22px); border-top: 0; }
  .step::after { display: none; }
}
@media (max-width: 599px) {
  .steps { grid-template-columns: 1fr; --num: 2.6rem; gap: 0; padding-left: 30px; }
  .steps::before, .steps::after { top: 6px; bottom: 6px; left: 4px; right: auto; width: 1px; height: auto; }
  .steps::after { background: linear-gradient(180deg, var(--gold-deep), var(--gold-2)); transform: scaleY(0); transform-origin: top; }
  .steps.is-drawn::after { transform: scaleY(1); }
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) { .steps::after { animation-name: railDrawY; animation-range: entry 20% cover 70%; } }
  }
  .step { padding: 0 0 34px; }
  .step:last-child { padding-bottom: 0; }
  .step::before { position: static; display: block; margin-bottom: 10px; }
  .step::after { left: -30px; top: 16px; }
}
@keyframes railDrawY { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ----------------------------- Страница услуги ----------------------------- */
.svc-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 6vw, 88px); align-items: start; }
@media (max-width: 899px) { .svc-intro { grid-template-columns: 1fr; } }

/* Прайс как меню: название — отточие — цена, пояснение ниже. */
.includes { border-top: 1px solid var(--line); max-width: 980px; }
.includes__row {
  display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; column-gap: 16px; row-gap: 6px; align-items: baseline;
  padding: clamp(20px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line-soft);
}
.includes__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.25; }
.includes__leader { align-self: end; height: 1px; margin-bottom: .45em; background-image: radial-gradient(circle, rgba(227, 201, 146, .45) 1px, transparent 1.4px); background-size: 7px 3px; background-repeat: repeat-x; background-position: 0 50%; height: 3px; }
.includes__price { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); color: var(--gold-2); white-space: nowrap; }
.includes__desc { grid-column: 1 / -1; color: var(--muted); font-size: .95rem; max-width: 40em; }
@media (max-width: 599px) {
  .includes__row { grid-template-columns: 1fr; }
  .includes__leader { display: none; }
}

.svc-info { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.svc-info .h2 { margin-bottom: 28px; }
.svc-info__notes:only-child, .svc-info__faq:only-child { grid-column: 1 / -1; max-width: 860px; }
@media (max-width: 899px) { .svc-info { grid-template-columns: 1fr; } }
.notes { display: grid; gap: 14px; }
.note { display: flex; gap: 16px; padding: 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line-soft); border-left: 2px solid var(--gold); }
.note .icon { width: 26px; height: 26px; color: var(--gold); stroke-width: 1.3; }
.note h3 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; line-height: 1.3; }
.note p { color: var(--muted); font-size: .93rem; margin-top: 4px; }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line-soft); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem; color: var(--text); transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-2); }
.faq__item summary .icon { width: 20px; height: 20px; color: var(--gold); transition: transform .35s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__answer { padding: 0 40px 22px 2px; color: var(--muted); }
.faq__answer p + p { margin-top: .8em; }

/* ------------------------------ Слайдер ------------------------------ */
.slider { position: relative; }
.slider__track {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: var(--r-lg);
  gap: 16px;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__slide { flex: 0 0 100%; scroll-snap-align: start; }
.slider__slide .media { border-radius: var(--r-lg); }
.slider__caption { margin-top: 14px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1.5; }
.slider__controls { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 16px; }
.slider__count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 56px; text-align: center; }
.slider--empty .media { border-radius: var(--r-lg); }
/* Стрелки и счётчик поверх кадра — кадр не теряет высоту из-за панели под ним. */
.slider--overlay .slider__controls {
  position: absolute; right: 14px; bottom: 14px; margin: 0; gap: 10px; z-index: 2;
  padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(13, 11, 10, .55);
}
.slider--overlay .slider__count { color: var(--text-2); min-width: 42px; font-size: .82rem; }
.slider--overlay .slider__btn { width: 38px; height: 38px; background: rgba(13, 11, 10, .5); }
.slider--overlay .slider__btn .icon { width: 17px; height: 17px; }

/* ---- Страница работы: кадр слева, рассказ и заказ — справа рядом с ним ---- */
.work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.work__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.work__cat { margin-bottom: 10px; }
.work__cat a { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.work__cat a:hover { color: var(--gold-2); }
.work__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.9rem); line-height: 1.15; text-wrap: balance; }
.work__lead { margin-top: 16px; color: var(--text-2); font-size: clamp(1.02rem, .96rem + .3vw, 1.15rem); line-height: 1.6; max-width: 32em; }
.work__text { margin-top: 20px; }
/* Карточка заказа стоит рядом с фото, а не в конце страницы. */
.work-order { position: relative; overflow: hidden; margin-top: clamp(28px, 3.4vw, 40px); padding: clamp(24px, 2.6vw, 34px); }
.work-order::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(195, 160, 99, .05)); }
.work-order__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.work-order__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); line-height: 1.2; color: var(--text); margin-top: 12px; }
.work-order__text { margin-top: 10px; color: var(--muted); font-size: .95rem; line-height: 1.6; max-width: 30em; }
.work-order__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 2.2vw, 26px); }
.work-order__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--faint); font-size: .84rem; }
.work-more .sec-head { margin-bottom: clamp(24px, 3vw, 36px); }
@media (max-width: 899px) {
  .work { grid-template-columns: 1fr; }
  .work__gallery { position: static; }
  .work-order__actions .btn { flex: 1 1 200px; }
}

/* ------------------------------- Каталог ------------------------------- */
/* Фильтры — вкладки на общей линии, активная подчёркнута золотом. */
.chips { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-bottom: clamp(32px, 4vw, 52px); border-bottom: 1px solid var(--line-soft); }
.chip {
  position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0;
  font-size: .92rem; color: var(--muted); transition: color .25s;
}
.chip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.chip:hover { color: var(--text); }
.chip.is-active { color: var(--gold-2); }
.chip.is-active::after, .chip:hover::after { transform: none; }
@media (max-width: 599px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 899px) { .product { grid-template-columns: 1fr; } }
.product__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 899px) { .product__gallery { position: static; } }
.product__main { border-radius: var(--r-lg); }
/* Лента фото — нативный scroll-snap: свайп на телефоне работает без JS,
   стрелки и счётчик поверх фото только докручивают ленту. */
.product__track {
  position: absolute; inset: 0; display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.product__track::-webkit-scrollbar { display: none; }
.product__frame { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.product__frame > img, .product__frame > picture, .product__frame img { width: 100%; height: 100%; object-fit: cover; }
.product__nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2;
  background: rgba(13, 11, 10, .45); opacity: 0; transition: opacity .25s, border-color .25s, background-color .25s;
}
.product__main:hover .product__nav, .product__nav:focus-visible { opacity: 1; }
.product__nav:hover { background: rgba(13, 11, 10, .7); border-color: var(--gold); }
.product__nav--prev { left: 14px; }
.product__nav--next { right: 14px; }
.product__count {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 5px 12px; border-radius: 999px; background: rgba(13, 11, 10, .55);
  color: var(--text-2); font-size: .76rem; letter-spacing: .02em; font-variant-numeric: tabular-nums;
}
@media (hover: none) { .product__nav { opacity: 1; } }
.product__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 12px; }
.product__thumb { padding: 0; border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: none; cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .25s, border-color .25s; }
.product__thumb:hover, .product__thumb.is-active { opacity: 1; border-color: var(--gold); }
.product__thumb .media { border-radius: 0; }
.product__cat a { font-size: .9rem; color: var(--gold); }
.product__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.25; margin: 8px 0 20px; text-wrap: balance; }
.product__info .prose { margin-bottom: 28px; }
.product__price-box { padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.product__price { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; color: var(--gold-2); }
.product__price-note { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 479px) { .product__actions .btn { flex: 1 1 100%; } }
.specs { border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.specs dt { color: var(--muted); }

/* ------------------------------ Фото-сетка ------------------------------ */
/* Первое фото — крупное, остальные вокруг него; у каждого своя рамка без искажений. */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(180px, 18vw, 280px); gap: clamp(12px, 1.4vw, 18px); }
.photo-grid__item { position: relative; display: flex; flex-direction: column; min-height: 0; }
.photo-grid__item .media { flex: 1; min-height: 0; border-radius: var(--r); }
.photo-grid__item:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid--1 .photo-grid__item:first-child { grid-column: 1 / -1; }
.photo-grid--2 .photo-grid__item:nth-child(2) { grid-row: span 2; }
.photo-grid figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; font-family: var(--serif); font-style: italic; }
@media (max-width: 599px) {
  .photo-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .photo-grid__item:first-child, .photo-grid--2 .photo-grid__item:nth-child(2) { grid-column: 1 / -1; grid-row: span 1; }
  .photo-grid__item:first-child { grid-row: span 2; }
}

/* ------------------------------ Контакты ------------------------------ */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials--labeled a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; color: var(--text-2);
  transition: border-color .25s, color .25s;
}
.socials--labeled a:hover { border-color: var(--gold); color: var(--gold-2); }
.socials--labeled .icon { color: var(--gold); }

.home-place { display: grid; gap: 6px; justify-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.home-place:first-child { border-top: 1px solid var(--line); }
.home-place__title { font-size: .74rem; font-weight: 600; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; }
.home-place__addr { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.35; color: var(--text); }
.home-place__hours { color: var(--muted); font-size: .88rem; }
.home-place__maps { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.home-contacts__all { justify-self: start; margin-top: 22px; }

/* ------------------------------- Заявка ------------------------------- */

.request-form { position: relative; }
.request-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .86rem; color: var(--text-2); font-weight: 500; }
.field__opt { color: var(--faint); font-weight: 400; margin-left: 4px; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  background: rgba(10, 8, 7, .55); border: 1px solid var(--line-soft); border-radius: var(--r);
  color: var(--text); font-size: 1rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 160, 99, .16); background: rgba(10, 8, 7, .8); }
.field.is-invalid input { border-color: #c9826f; }
.request-form__error { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(160, 80, 60, .14); border: 1px solid rgba(201, 130, 111, .4); color: #f0b6a6; font-size: .92rem; }
.request-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.request-form__note { color: var(--faint); font-size: .8rem; max-width: 18.7em; }
.request-form__done { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 24px 8px; }
.request-form__done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-2); margin-bottom: 6px; animation: donePop .6s var(--ease); }
.request-form__done-icon .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.request-form__done h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.request-form__done p { color: var(--muted); max-width: 22em; }
.request-form__done a { color: var(--gold-2); white-space: nowrap; }
.request-form.is-done > :not(.request-form__done) { display: none; }
@keyframes donePop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 559px) {
  .request-form__fields { grid-template-columns: 1fr; }
  .request-form__foot .btn { width: 100%; }
}

.request-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100svh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(160deg, #262019, #191613 70%); color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9);
}
.request-dialog::backdrop { background: rgba(5, 4, 3, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.request-dialog[open] { animation: dialogIn .4s var(--ease); }
.request-dialog__panel { position: relative; padding: clamp(24px, 4vw, 40px); }
.request-dialog__close { position: absolute; top: 14px; right: 14px; }
.request-dialog__title { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; font-size: 1.75rem; line-height: 1.2; padding-right: 48px; }
.request-dialog__lead { color: var(--muted); margin: 10px 0 24px; }
.request-dialog .request-form__fields { grid-template-columns: 1fr; }
@keyframes dialogIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

/* Финал внутренних страниц — тот же язык, что на главной, без адресов. */
.finale--cta { padding-block: clamp(88px, 10vw, 150px); }
.finale--cta .finale__main { max-width: 760px; }
/* ------------------------------- Подвал ------------------------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: #110f0c; padding-top: clamp(48px, 6vw, 80px); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: clamp(32px, 5vw, 64px); }
.site-footer__about p { color: var(--muted); font-size: .92rem; margin-top: 18px; max-width: 23.1em; }
.site-footer__nav { display: grid; align-content: start; gap: 10px; }
.site-footer__nav a { color: var(--text-2); font-size: .95rem; width: fit-content; transition: color .2s; }
.site-footer__nav a:hover { color: var(--gold-2); }
.site-footer__contacts { display: grid; align-content: start; gap: 8px; color: var(--muted); font-size: .92rem; }
.site-footer__phone { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: var(--gold-2); }
.site-footer__addr a { border-bottom: 1px solid var(--line); transition: color .2s; }
.site-footer__addr a:hover { color: var(--gold-2); }
.site-footer .socials { margin-top: 10px; }
.site-footer__colophon { padding-bottom: clamp(36px, 5vw, 64px); margin-bottom: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line-soft); }
.site-footer__title { font-family: var(--serif); font-size: clamp(2rem, 1rem + 4.2vw, 5.4rem); line-height: 1; letter-spacing: -.03em; color: rgba(243, 235, 220, .9); }
.site-footer__title em { font-style: italic; color: var(--gold); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-block: 22px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); color: var(--faint); font-size: .84rem; }
.site-footer__top { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); transition: color .25s; }
.site-footer__top .icon { width: 16px; height: 16px; rotate: -90deg; transition: translate .4s var(--ease-out); }
.site-footer__top:hover { color: var(--gold-2); }
.site-footer__top:hover .icon { translate: 0 -3px; }
@media (max-width: 899px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: 1 / -1; } }
@media (max-width: 479px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}

/* -------------------- Мобильная панель звонка/заявки -------------------- */
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed; inset: auto 0 0; z-index: 90;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(21, 18, 15, .96);
    border-top: 1px solid var(--line-soft);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 46px; padding-inline: 12px; }
  .site-footer__bottom { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
}

/* =====================================================================
   ЖИДКОЕ СТЕКЛО — общий слой для карточек, панелей и CTA
   ===================================================================== */
.glass, .features--cards .feature, .note,
.product__price-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.note { border-left: 2px solid var(--gold); }
a.glass { transition: border-color .35s, transform .35s var(--ease), box-shadow .35s; }
a.glass:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 236, 200, .1), inset 0 0 40px rgba(195, 160, 99, .06), 0 28px 56px -30px rgba(0, 0, 0, .95);
}
.field select {
  width: 100%; min-height: 52px; padding: 13px 40px 13px 16px;
  background: rgba(10, 8, 7, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23c3a063' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--line-soft); border-radius: var(--r); color: var(--text); font-size: 1rem;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(195, 160, 99, .16); }
.field select option, .field select optgroup { background: #221d18; color: var(--text); }

/* =====================================================================
   РЕДАКЦИОННЫЕ КОМПОНЕНТЫ
   Арка (мотив ниши/часовни) — фирменная форма для главных фото. Крупные
   serif-заголовки, волосяные линии вместо карточек, полноширинные фото.
   ===================================================================== */
.arch {
  display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
  background: var(--graphite);
}
.arch > picture, .arch > img, .arch picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(227, 201, 146, .14);
  background: linear-gradient(180deg, rgba(60, 44, 26, .12), transparent 40%, rgba(30, 22, 14, .38));
}

/* ---- Главная: о службе ---- */
.intro__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(44px, 8vw, 128px); align-items: center; }
.intro__media { position: relative; width: 100%; max-width: 480px; justify-self: center; }
/* Вторая, контурная арка чуть смещена — глубина без теней и свечений. */
.intro__media::before {
  content: ""; position: absolute; inset: 0; translate: 22px -22px; z-index: -1; pointer-events: none;
  border: 1px solid var(--line); border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
}
.intro__text { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.intro__text .kicker { margin: 0; }
.intro__text .display { margin-top: -8px; max-width: 11em; }
@media (max-width: 899px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__media { max-width: 400px; width: 82%; order: 2; }
}

/* ---- Интерлюдия: полноширинное фото с одной фразой ---- */
.interlude {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(460px, 82svh, 820px); display: grid; align-items: end;
}
/* Края фото растворяются маской, а не заливкой цветом фона: фон страницы
   неоднородный, и заливка давала бы видимые «швы». */
.interlude__mask { position: absolute; inset: 0; z-index: -2; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent); mask-image: linear-gradient(180deg, transparent, #000 20%, #000 72%, transparent); }
.interlude__media { position: absolute; inset: -9% 0; }
.interlude__media picture, .interlude__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.interlude::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 8, 6, .72), rgba(10, 8, 6, .2) 62%, transparent);
}
.interlude__inner { padding-bottom: clamp(56px, 9vw, 128px); }
.interlude__quote {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 1rem + 3.8vw, 4.8rem);
  line-height: 1.06; letter-spacing: -.028em; max-width: 12.5em; text-wrap: balance;
}
.interlude__quote em { display: block; font-style: italic; color: var(--gold-2); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .interlude__media { animation: slowPan linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes slowPan { from { transform: translateY(-6%); } to { transform: translateY(6%); } }
@media (max-width: 640px) {
  /* На телефоне кадр ниже и фраза по центру нижней трети — без «пустого» экрана. */
  .interlude { min-height: 78svh; }
  .interlude::before { background: linear-gradient(180deg, transparent 30%, rgba(10, 8, 6, .75) 80%); }
  .interlude__media picture, .interlude__media img { object-position: 38% 60%; }
  .interlude__inner { padding-bottom: 72px; }
}

/* ---- Главная: указатель услуг с превью в арке ---- */
.offer { padding-bottom: calc(var(--section-y) * .55); }
.svc-index { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.svc-index__list { border-top: 1px solid var(--line); }
.svc-line {
  position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: clamp(24px, 2.6vw, 36px) 0; border-bottom: 1px solid var(--line-soft);
}
.svc-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(195, 160, 99, .1)); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.svc-line:hover::after, .svc-line:focus-visible::after, .svc-line.is-active::after { transform: scaleX(1); }
.svc-line__num { align-self: start; padding-top: .7em; font-family: var(--serif); font-size: .95rem; color: var(--gold); letter-spacing: .04em; }
.svc-line__body { display: block; min-width: 0; }
.svc-line__title {
  display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1.05rem + 1.3vw, 2.3rem);
  line-height: 1.12; letter-spacing: -.015em; color: var(--text);
  transition: color .35s, transform .6s var(--ease-out);
}
.svc-line__text { display: block; margin-top: 8px; color: var(--muted); font-size: .95rem; max-width: 30em; }
.svc-line__thumb { display: none; }
.svc-line__arrow { width: 24px; height: 24px; color: var(--gold-deep); transition: transform .5s var(--ease-out), color .3s; }
.svc-line:hover .svc-line__title, .svc-line.is-active .svc-line__title { color: var(--gold-2); transform: translateX(10px); }
.svc-line:hover .svc-line__arrow { color: var(--gold-2); transform: translateX(6px); }
.svc-index__preview {
  position: sticky; top: calc(var(--header-h) + 36px);
  aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 72px); width: 100%; justify-self: end;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px; overflow: hidden; background: var(--graphite);
}
.svc-index__frame { position: absolute; inset: 0; border-radius: 0; opacity: 0; transition: opacity .8s var(--ease), visibility 0s .8s; visibility: hidden; }
.svc-index__frame img { transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.svc-index__frame.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ease); }
.svc-index__frame.is-active img { transform: none; }
.svc-index__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 8, .8)); pointer-events: none; }
.svc-index__caption { position: absolute; left: 26px; right: 26px; bottom: 24px; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.svc-index__caption .icon { width: 20px; height: 20px; color: var(--gold-2); }
@media (max-width: 899px) {
  .svc-index { grid-template-columns: 1fr; }
  .svc-index__preview { display: none; }
  .svc-line { grid-template-columns: 34px minmax(0, 1fr) 76px; gap: 14px; }
  .svc-line__arrow { display: none; }
  .svc-line__thumb { display: block; width: 76px; aspect-ratio: 4 / 5; border-radius: 50% 50% 8px 8px / 40% 40% 8px 8px; }
  .svc-line:hover .svc-line__title { transform: none; }
}

/* ---- Главная: каталог как указатель-таблица ---- */
.cat-index { margin-top: clamp(72px, 9vw, 128px); }
.cat-index__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 22px; }
.cat-index__head .kicker { margin: 0; }
.cat-index__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.cat-cell {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 40px;
  min-height: clamp(150px, 14vw, 190px); padding: 24px 24px 22px;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
}
.cat-cell::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(195, 160, 99, .13), rgba(195, 160, 99, .015) 85%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out);
}
.cat-cell:hover::before, .cat-cell:focus-visible::before { transform: scaleY(1); }
.cat-cell__icon { width: 28px; height: 28px; color: var(--gold); stroke-width: 1.2; }
.cat-cell__title { margin-top: auto; font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.2; color: var(--text); transition: color .3s; }
.cat-cell__arrow { position: absolute; top: 24px; right: 22px; width: 18px; height: 18px; color: var(--gold-2); opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease-out); }
.cat-cell:hover .cat-cell__title { color: var(--gold-2); }
.cat-cell:hover .cat-cell__arrow, .cat-cell:focus-visible .cat-cell__arrow { opacity: 1; transform: none; }
/* На главной фото категории проявляется за текстом при наведении. */
.cat-cell__bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; opacity: .5; transition: opacity .7s var(--ease); }
.cat-cell__bg img { transform: scale(1.08); transition: transform 1.4s var(--ease-out); }
.cat-cell--reveal::before { z-index: -1; transform: none; background: linear-gradient(0deg, rgba(12, 10, 8, .88), rgba(12, 10, 8, .2) 70%); }
/* Категория без фото: крупный контурный знак у края ячейки — пустота выглядит намеренной. */
.cat-cell__glyph { position: absolute; right: -8%; bottom: -14%; z-index: -2; width: 62%; height: auto; aspect-ratio: 1; color: rgba(195, 160, 99, .1); stroke-width: .6; transition: color .6s var(--ease), transform 1.2s var(--ease-out); }
.cat-cell:hover .cat-cell__glyph { color: rgba(195, 160, 99, .2); transform: translate(-4%, -4%); }
.cat-cell__plate { display: grid; place-items: center; background: linear-gradient(160deg, #221d18, #171411); }
.cat-cell__plate::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(195, 160, 99, .12); }
.cat-cell__plate .icon { width: 30%; height: auto; aspect-ratio: 1; color: rgba(195, 160, 99, .42); stroke-width: .7; transition: transform 1.2s var(--ease-out), color .5s; }
.cat-cell:hover .cat-cell__plate .icon { transform: scale(1.06); color: var(--gold); }
.cat-cell--reveal:hover .cat-cell__bg, .cat-cell--reveal:focus-visible .cat-cell__bg { opacity: 1; }
.cat-cell--reveal:hover .cat-cell__bg img { transform: none; }
@media (hover: none) {
  .cat-cell__bg { opacity: .62; }
}
.cat-index__grid > li { display: flex; }
.cat-index__grid > li > .cat-cell { flex: 1; }
.cat-index__grid--page { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-index__grid--page .cat-cell { min-height: clamp(200px, 18vw, 250px); padding: clamp(24px, 2.6vw, 34px); }
.cat-index__grid--page .cat-cell__title { font-size: clamp(1.4rem, 1.15rem + .8vw, 1.9rem); }
.cat-cell__text { color: var(--muted); font-size: .92rem; max-width: 26em; margin-top: -24px; }
.cat-cell__media { margin: calc(-1 * clamp(24px, 2.6vw, 34px)) calc(-1 * clamp(24px, 2.6vw, 34px)) 0; aspect-ratio: 4 / 3; border-radius: 0; }
.cat-cell--photo .cat-cell__icon { display: none; }
.cat-cell__media img { transition: transform 1.2s var(--ease-out); }
.cat-cell:hover .cat-cell__media img { transform: scale(1.04); }
@media (max-width: 899px) {
  .cat-index__grid, .cat-index__grid--page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-cell, .cat-index__grid--page .cat-cell { gap: 20px; min-height: 118px; padding: 18px 16px 16px; }
  .cat-cell__text { display: none; }
  .cat-cell__media { margin: -18px -16px 0; }
}

/* ---- Работы: мозаика с ведущим кадром ---- */
.works-mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 19vw, 290px); gap: clamp(10px, 1.2vw, 18px); }
.work-tile { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--graphite); }
.work-tile:first-child { grid-column: span 2; grid-row: span 2; }
.works-mosaic--4 .work-tile:nth-child(4), .works-mosaic--3 .work-tile:nth-child(n + 2), .works-mosaic--2 .work-tile { grid-column: span 2; }
.works-mosaic--2 .work-tile { grid-row: span 2; }
.works-mosaic--1 .work-tile { grid-column: 1 / -1; }
.work-tile__media { position: absolute; inset: 0; border-radius: 0; }
.work-tile img { transition: transform 1.2s var(--ease-out); }
.work-tile:hover img { transform: scale(1.04); }
.work-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 8, 7, .82)); pointer-events: none; }
.work-tile__cap { position: absolute; left: clamp(16px, 2vw, 26px); right: clamp(16px, 2vw, 26px); bottom: clamp(14px, 1.8vw, 22px); z-index: 1; display: grid; gap: 4px; }
.work-tile__cat { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.work-tile__title { font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .5vw, 1.45rem); line-height: 1.25; color: var(--text); }
.work-tile:first-child .work-tile__title { font-size: clamp(1.3rem, 1rem + 1vw, 2rem); }
@media (max-width: 767px) {
  .works-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .work-tile:first-child, .works-mosaic--2 .work-tile, .works-mosaic--1 .work-tile { grid-column: 1 / -1; grid-row: span 1; }
  .work-tile:first-child { grid-row: span 2; }
  .works-mosaic--4 .work-tile:nth-child(4), .works-mosaic--3 .work-tile:nth-child(n + 2) { grid-column: span 1; }
  .works-mosaic--4 .work-tile:nth-child(4) { grid-column: 1 / -1; }
}

/* ---- Галерея: небольшие карточки в ряд, как в каталоге (фото + подпись) ---- */
.works-grid { row-gap: clamp(32px, 4vw, 48px); }
.work-card { display: flex; flex-direction: column; }
.work-card .media { border-radius: var(--r); background: #1d1915; }
.work-card .media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-soft); pointer-events: none; transition: box-shadow .4s; }
.work-card:hover .media::after { box-shadow: inset 0 0 0 1px var(--line-strong); }
.work-card img { transition: transform 1.2s var(--ease-out); }
.work-card:hover img { transform: scale(1.04); }
.work-card__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 2px 0; }
.work-card__cat { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.work-card__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.25; color: var(--text); transition: color .3s; }
.work-card:hover .work-card__title { color: var(--gold-2); }
.work-card .link-arrow { margin-top: 8px; font-size: .86rem; }

/* ---- Финал главной: контакты на фоне свечи ---- */
.finale { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(96px, 11vw, 168px) clamp(80px, 9vw, 140px); border-top: 1px solid var(--line-soft); }
/* Вертикальный кадр справа; края растворяются маской, без «рамки». */
.finale__media {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(46%, 760px); z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, transparent, #000 38%), linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}
.finale__media picture, .finale__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .finale__media img { animation: finaleZoom linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@keyframes finaleZoom { from { transform: scale(1.12); } to { transform: none; } }
.finale__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .75fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.finale__main { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.finale__main .kicker { margin: 0; }
.finale__title { max-width: 11em; }
.finale__lead { color: var(--text-2); max-width: 30em; font-size: 1.05rem; }
.finale__phone {
  margin-top: 10px; font-family: var(--serif); font-size: clamp(2.2rem, 1.1rem + 3.8vw, 4.7rem); line-height: 1;
  letter-spacing: -.02em; color: var(--gold-2); white-space: nowrap; transition: color .3s;
}
.finale__phone:hover { color: #f2dcaa; }
.finale__hours { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; margin-top: -6px; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-2); animation: pulse 2.6s var(--ease-out) 3; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.finale__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.finale__places { display: grid; align-content: end; }
@media (max-width: 899px) {
  .finale__grid { grid-template-columns: 1fr; }
  .finale__media { width: 100%; opacity: .38; }
}
@media (max-width: 479px) {
  .finale__phone { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .finale__actions { width: 100%; display: grid; }
}

/* ------------------------- Страница «Услуги» ------------------------- */
/* Направления как главы книги: фото и текст, стороны чередуются. */
.chapters { display: grid; gap: clamp(72px, 9vw, 136px); }
.chapter { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.chapter:nth-child(even) { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.chapter:nth-child(even) .chapter__media { order: 2; }
.chapter__media { aspect-ratio: 4 / 3; border-radius: var(--r); }
.chapter__media img { transition: transform 1.4s var(--ease-out); }
.chapter:hover .chapter__media img { transform: scale(1.03); }
.chapter__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.chapter__num { display: inline-flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .04em; }
.chapter__num .icon { width: 22px; height: 22px; }
.chapter__title { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -.02em; color: var(--text); text-wrap: balance; transition: color .35s; }
.chapter:hover .chapter__title { color: var(--gold-2); }
.chapter__text { color: var(--text-2); font-size: 1.05rem; max-width: 30em; }
.chapter__list { display: grid; gap: 0; width: 100%; max-width: 30em; margin-top: 4px; border-top: 1px solid var(--line-soft); }
.chapter__list span { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; color: var(--muted); }
.chapter .link-arrow { margin-top: 8px; }
@media (max-width: 899px) {
  .chapter, .chapter:nth-child(even) { grid-template-columns: 1fr; }
  .chapter:nth-child(even) .chapter__media { order: 0; }
}

/* Заявление: крупная строка слева, пояснение справа. */
.statement { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement .prose { padding-top: .8em; }
@media (max-width: 899px) { .statement { grid-template-columns: 1fr; } }

/* ----------------------- Страница «Контакты» -----------------------
   Всё на одном экране: сверху звонок (статус «на связи», номер, кнопка), ниже
   три колонки — адреса (офис и кладбища; клик раскрывает адрес и меняет карту),
   карта выбранного места и заявка. Человек сразу выбирает место или пишет. */
.cx { padding-block: clamp(14px, 1.6vw, 22px) clamp(40px, 5vw, 72px); }
.cx .crumbs { margin-bottom: clamp(8px, 1vw, 14px); }
.cx-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px 48px;
  padding-bottom: clamp(12px, 1.3vw, 20px); margin-bottom: clamp(10px, 1.1vw, 16px); border-bottom: 1px solid var(--line);
}
.cx-top__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1rem + 1.3vw, 2.25rem); line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.cx-top__lead { margin-top: 8px; max-width: 40em; color: var(--muted); font-size: .95rem; text-wrap: pretty; }
.cx-call { display: grid; justify-items: end; gap: 8px; }
/* «На связи» — живая точка (три мягких импульса, не бесконечно) и режим работы. */
.cx-call__status { display: inline-flex; align-items: center; gap: 12px; font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.cx-call__row { display: flex; align-items: center; gap: 12px 20px; }
.cx-call__phone { font-family: var(--serif); font-size: clamp(1.9rem, 1.1rem + 1.9vw, 2.7rem); line-height: 1; letter-spacing: -.02em; color: var(--gold-2); white-space: nowrap; transition: color .3s; }
.cx-call__phone:hover { color: #f2dcaa; }
.cx-call__request { display: none; }
.cx-call__extra { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-size: .86rem; }
.cx-call__extra a { color: var(--text-2); border-bottom: 1px solid var(--line); transition: color .25s, border-color .25s; }
.cx-call__extra a:hover { color: var(--gold-2); border-color: var(--gold); }

.cx-grid { display: grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.25fr) minmax(300px, .9fr); gap: 14px; align-items: stretch; }

/* ---- Адреса: карточки-вкладки; раскрыта одна, остальные — строкой ---- */
.cx-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cx-group { margin-top: 4px; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.cx-group:first-child { margin-top: 0; }
.cx-place {
  position: relative; border: 1px solid rgba(227, 201, 146, .12); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(41, 35, 29, .72), rgba(26, 22, 18, .72));
  transition: border-color .35s, background-color .35s;
}
.cx-place::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 2px; background: var(--gold-2); transform: scaleY(0); transition: transform .5s var(--ease-out); }
.cx-place:hover { border-color: rgba(227, 201, 146, .26); }
.cx-place.is-active { border-color: rgba(227, 201, 146, .42); background: linear-gradient(180deg, rgba(50, 42, 33, .86), rgba(29, 24, 20, .86)); }
.cx-place.is-active::before { transform: none; }
.cx-place__head {
  display: grid; grid-template-columns: minmax(0, 1fr) 16px; column-gap: 12px; align-items: center;
  width: 100%; padding: 11px 16px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.cx-place__head:focus-visible { outline-offset: -3px; }
.cx-place__name { font-family: var(--serif); font-size: 1.1rem; line-height: 1.25; color: var(--text); transition: color .3s; }
.cx-place.is-active .cx-place__name, .cx-place__head:hover .cx-place__name { color: var(--gold-2); }
.cx-place__addr { grid-column: 1; margin-top: 2px; font-size: .84rem; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.cx-place__chev { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--gold-deep); transition: rotate .35s var(--ease); }
.cx-place.is-active .cx-place__chev { rotate: 180deg; color: var(--gold-2); }
.cx-place__body { padding: 0 16px 13px; }
.js .cx-place:not(.is-active) .cx-place__body { display: none; }
.cx-place__line { display: flex; gap: 8px; font-size: .84rem; color: var(--muted); }
.cx-place__line .icon { width: 15px; height: 15px; margin-top: .2em; color: var(--gold); }
.cx-place__line + .cx-place__phones, .cx-place__line + .cx-place__nophone { margin-top: 10px; }
.cx-place__phones { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.cx-place__phones div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; }
.cx-place__phones dt { font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.cx-place__phones dd { font-family: var(--serif); font-size: 1.08rem; color: var(--gold-2); white-space: nowrap; }
.cx-place__phones dd a:hover { color: #f2dcaa; }
.cx-place__phones dd.is-note { font-size: .9rem; font-style: italic; color: var(--muted); white-space: normal; }
.cx-place__nophone { padding-top: 10px; border-top: 1px solid var(--line-soft); font-size: .84rem; color: var(--muted); }
.cx-place__nophone a { color: var(--gold-2); border-bottom: 1px solid var(--line); }
.cx-place__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cx-place__actions:empty { display: none; }
.cx-place__actions .btn { flex: 1 1 0; min-width: max-content; min-height: 38px; padding: .45rem 12px; font-size: .8rem; }
.cx-ext { rotate: -45deg; }
.btn:hover .cx-ext { transform: none; translate: 2px -2px; }

/* ---- Карта выбранного места: тёмная, в тонах сайта ---- */
.cx-map { position: relative; min-height: 400px; }
.c-map { position: absolute; inset: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--graphite); }
.c-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) grayscale(.7) sepia(.3) brightness(.92) contrast(.94); transition: filter .9s var(--ease); }
.c-map:hover iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.45) sepia(.25) brightness(.96); }
/* Место с координатами — неподвижный кадр OpenStreetMap: кнопки масштаба уходят
   за край (кадр шире рамки на 56 px с каждой стороны, центр — под меткой сайта),
   клик по карте открывает место в Яндекс.Картах. Без координат карта живая. */
.c-map.has-pin iframe { left: -56px; width: calc(100% + 112px); pointer-events: none; }
.c-map__pin { position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(22, 19, 15, .85), 0 0 0 5px rgba(227, 201, 146, .6), 0 10px 24px rgba(0, 0, 0, .6); opacity: 0; transition: opacity .4s; pointer-events: none; }
.c-map.has-pin .c-map__pin { opacity: 1; }
.c-map__pin::after { content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid var(--gold-2); opacity: 0; }
.c-map__pin.is-pulse::after { animation: pinPulse 2.4s var(--ease-out) .3s 3; }
@keyframes pinPulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.c-map__open { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; padding: 14px; }
.c-map.has-pin .c-map__open { right: 0; bottom: 0; }
.c-map__open span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(22, 19, 15, .88); color: var(--text); font-size: .8rem; font-weight: 600; letter-spacing: .04em; transition: border-color .3s, color .3s; }
.c-map__open .icon { width: 15px; height: 15px; rotate: -45deg; transition: translate .4s var(--ease-out); }
.c-map__open:hover span, .c-map__open:focus-visible span { border-color: var(--gold); color: var(--gold-2); }
.c-map__open:hover .icon { translate: 2px -2px; }

/* ---- Заявка — в панели с короткой золотой чертой на кромке ---- */
.cx-form {
  position: relative; padding: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(227, 201, 146, .16); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(41, 35, 29, .82), rgba(25, 21, 18, .82));
  box-shadow: 0 40px 80px -56px rgba(0, 0, 0, .95);
}
.cx-form::before { content: ""; position: absolute; top: -1px; left: clamp(20px, 2vw, 28px); width: 48px; height: 1px; background: var(--gold-2); }
.cx-form__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .6vw, 1.7rem); line-height: 1.15; letter-spacing: -.015em; }
.cx-form__lead { margin: 4px 0 12px; color: var(--muted); font-size: .9rem; }
.cx-form .request-form__fields { grid-template-columns: 1fr; gap: 10px; }
.cx-form .field { gap: 6px; }
.cx-form .field label { font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.cx-form .field__opt { margin-left: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--faint); }
.cx-form .field input, .cx-form .field textarea { min-height: 46px; padding-block: 10px; background-color: rgba(12, 10, 8, .5); }
.cx-form .field textarea { height: 46px; min-height: 46px; resize: none; transition: height .3s var(--ease); }
.cx-form .field textarea:focus { height: 92px; }
.cx-form .request-form__foot { display: grid; gap: 8px; margin-top: 14px; }
.cx-form .request-form__foot .btn { width: 100%; min-height: 50px; }
.cx-form .request-form__note { max-width: none; text-align: center; font-size: .72rem; line-height: 1.45; }

/* Крупнее: та же компоновка (звонок → адреса | карта | заявка), но шире
   страница, крупнее шрифты, карточки и карта — страница не выглядит миниатюрной. */
.cx > .wrap { max-width: calc(1380px + var(--gutter) * 2); }
.cx { padding-block: clamp(18px, 2vw, 30px) clamp(56px, 6vw, 96px); }
.cx-top { gap: 22px 56px; padding-bottom: clamp(20px, 2vw, 30px); margin-bottom: clamp(20px, 2vw, 30px); }
.cx-top__title { font-size: clamp(2.1rem, 1.2rem + 1.8vw, 3rem); }
.cx-top__lead { margin-top: 12px; font-size: 1.08rem; }
.cx-call { gap: 12px; }
.cx-call__status { font-size: .74rem; }
.cx-call__phone { font-size: clamp(2.2rem, 1.3rem + 2.2vw, 3.3rem); }
.cx-call__row .btn { min-height: 54px; padding-inline: 26px; font-size: .95rem; }
.cx-call__extra { font-size: .95rem; }
.cx-grid { grid-template-columns: minmax(320px, .95fr) minmax(0, 1.3fr) minmax(340px, .95fr); gap: 20px; }
.cx-list { gap: 10px; }
.cx-group { font-size: .72rem; margin-top: 8px; }
.cx-place__head { padding: 16px 20px; grid-template-columns: minmax(0, 1fr) 18px; }
.cx-place__name { font-size: 1.3rem; }
.cx-place__addr { margin-top: 4px; font-size: .95rem; }
.cx-place__chev { width: 18px; height: 18px; }
.cx-place__body { padding: 0 20px 18px; }
.cx-place__line, .cx-place__nophone { font-size: .95rem; }
.cx-place__phones { gap: 8px; padding-top: 14px; }
.cx-place__phones dt { font-size: .68rem; }
.cx-place__phones dd { font-size: 1.25rem; }
.cx-place__actions { gap: 10px; margin-top: 14px; }
.cx-place__actions .btn { min-height: 44px; font-size: .88rem; }
.cx-map { min-height: 560px; }
.c-map__open span { padding: 10px 16px; font-size: .88rem; }
.cx-form { padding: clamp(24px, 2.4vw, 36px); }
.cx-form__title { font-size: clamp(1.6rem, 1.3rem + .8vw, 2.1rem); }
.cx-form__lead { margin: 6px 0 18px; font-size: 1rem; }
.cx-form .request-form__fields { gap: 14px; }
.cx-form .field label { font-size: .7rem; }
.cx-form .field input, .cx-form .field textarea { min-height: 52px; font-size: 1rem; }
.cx-form .field textarea { height: 52px; min-height: 52px; }
.cx-form .field textarea:focus { height: 110px; }
.cx-form .request-form__foot { margin-top: 18px; }
.cx-form .request-form__foot .btn { min-height: 56px; font-size: .98rem; }
.cx-form .request-form__note { font-size: .78rem; }

/* Планшет: адреса и карта рядом, заявка — строкой ниже. */
@media (max-width: 1099px) {
  .cx-map { min-height: 460px; }
  .cx-grid { grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); }
  .cx-form { grid-column: 1 / -1; }
  .cx-form .request-form__fields { grid-template-columns: 1fr 1fr; }
  .cx-form .field--wide { grid-column: 1 / -1; }
  .cx-form .request-form__foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .cx-form .request-form__note { text-align: left; }
}
/* Телефон: звонок, адреса, карта, заявка — одной колонкой; кнопка «Заявка» ведёт к форме. */
@media (max-width: 699px) {
  .cx-top { grid-template-columns: 1fr; }
  .cx-call { justify-items: start; }
  .cx-call__row { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .cx-call__phone { grid-column: 1 / -1; }
  .cx-call__request { display: inline-flex; }
  .cx-call__row .btn { gap: .5rem; padding-inline: 12px; }
  .cx-call__extra { justify-content: flex-start; }
  .cx-grid { grid-template-columns: 1fr; }
  .cx-map { min-height: 0; aspect-ratio: 4 / 3; }
  .cx-form .request-form__fields, .cx-form .request-form__foot { grid-template-columns: 1fr; }
  .cx-form .request-form__note { text-align: center; }
}

/* ------------------------ Появление при прокрутке ------------------------ */
/* Три вида появления: текст мягко поднимается, фото раскрывается снизу как
   занавес (clip-path + лёгкое «приближение»), линии прорисовываются. Каскад —
   через --i, заданный в разметке. Всё срабатывает один раз. */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"] img { transform: scale(1.14); transition: transform 2.2s var(--ease-out); }
.js [data-reveal="mask"].is-in img { transform: none; }
.js .work-tile[data-reveal="mask"].is-in:hover img { transform: scale(1.04); }

/* ==================== Системные страницы: 404 и техобслуживание ==================== */
/* Общая часть для обеих страниц: логотип/бренд, центрированный блок текста,
   телефон-CTA, подпись разработчика. 404 встраивается в обычный header/footer
   сайта; техобслуживание — отдельный лёгкий документ без main.js и без шапки. */
body.page-maintenance { padding-top: 0; background: var(--bg); }

.system-page { position: relative; isolation: isolate; }
.system-page__inner {
  max-width: 42em; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.system-page__brand { display: inline-flex; margin-bottom: clamp(28px, 5vw, 44px); }
.system-page__brand .brand__logo { height: 44px; width: auto; }
.system-page__title {
  font-family: var(--serif); font-weight: 400; line-height: 1.25; text-wrap: balance;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); max-width: 14em;
}
.system-page__lead { margin-top: 16px; color: var(--text-2); max-width: 32em; font-size: clamp(1rem, .95rem + .2vw, 1.1rem); }
.system-page__image { width: clamp(120px, 22vw, 180px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); }
.system-page__image .media, .system-page__image picture, .system-page__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.system-page__phone { margin-top: clamp(32px, 5vw, 48px); padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 36px); border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.system-page__phone-note { color: var(--muted); font-size: .92rem; margin: 0; }
.system-page__phone-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.system-page__phone-num { font-family: var(--serif); font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); color: var(--gold-2); transition: color .25s; }
.system-page__phone-num:hover { color: #f2dcaa; }
.system-page__home { margin-top: 22px; }

.system-credit {
  margin: clamp(40px, 6vw, 64px) 0 0; text-align: center; font-size: .78rem;
  color: rgba(214, 191, 140, .55); letter-spacing: .02em;
}
.system-credit strong { color: rgba(227, 201, 146, .75); font-weight: 600; }
.error-page .system-credit { margin-top: clamp(48px, 7vw, 80px); padding-bottom: 4px; }

/* ---- 404: большой номер с золотым сиянием ---- */
.error-page { text-align: center; }
.error-page .system-page__inner { position: relative; }
.error-page__aura {
  position: absolute; top: -20%; left: 50%; translate: -50% 0; width: min(72vw, 640px); aspect-ratio: 1;
  z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(195, 160, 99, .07), transparent 72%);
}
@keyframes errorAuraPulse { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
/* Крупные контурные цифры — тот же приём, что в шагах «Как мы работаем». */
.error-page__code {
  margin: 0 0 10px; font-family: var(--serif); font-weight: 400; line-height: 1;
  font-size: clamp(5rem, 3.6rem + 7vw, 10rem); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(227, 201, 146, .55);
}
.error-page__subtext { margin-top: 10px; color: var(--muted); font-size: .92rem; max-width: 30em; }
.error-page .page-hero__actions { justify-content: center; }
.error-page button.btn { font-family: inherit; cursor: pointer; }

/* ---- Техобслуживание: спокойная композиция с тонкой золотой линией ---- */
.maintenance-page { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-block: clamp(56px, 8vw, 96px); }
.maintenance-page::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 50% -10%, rgba(150, 112, 58, .14), transparent 60%), var(--bg);
}
.maintenance-page__ring {
  width: 168px; height: 3px; margin: 0 0 clamp(28px, 5vw, 44px); border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  background-size: 200% 100%; animation: maintenanceShimmer 3.6s ease-in-out 3;
}
@keyframes maintenanceShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (max-width: 559px) {
  .system-page__phone-row { flex-direction: column; gap: 10px; }
  .error-page .page-hero__actions { width: 100%; }
  .error-page .page-hero__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="mask"] img { transform: none; }
  .steps::after, .features .feature::after { transform: none; }
  .pulse::after, .hero__scroll-line::after { animation: none; }
  .js :is(.hero__kicker, .hero__lead, .hero__actions, .hero__meta, .hero__logo, .hero__photo-inner, .hero__title .split-word > span) { opacity: 1; transform: none; }
  .js .hero__photo img { opacity: var(--bg-opacity, .88); }
  .js .hero__flower img { opacity: var(--fl-opacity, .95); transform: none; }
  .js .hero__flower--right img { transform: scaleX(-1); }
}
