@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/cormorantgaramond-italic-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Cormorant Garamond';font-style:italic;font-weight:500;font-display:swap;src:url(/fonts/cormorantgaramond-italic-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/cormorantgaramond-normal-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/cormorantgaramond-normal-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/cormorantgaramond-normal-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Cormorant Garamond';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/cormorantgaramond-normal-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/manrope-normal-400_700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/manrope-normal-400_700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* Ритуальные услуги — Гатчинский район. Основные стили */
:root {
  --paper: #f7f4ef;
  --paper-2: #efe9e1;
  --tint: #f1edf5;
  --card: #fff;
  --ink: #1e1a24;
  --ink-2: #4a4452;
  --muted: #6b6473;
  --line: #e4ded5;
  --line-2: #d5cdc2;
  --plum: #4f3d69;
  --plum-2: #644f84;
  --plum-3: #8c78aa;
  --gold: #b0915f;
  --gold-2: #d9c29a;
  --gold-ink: #80633a; /* золото для текста на светлом фоне (контраст AA) */
  --ok: #3d7a57;
  --err: #b0443a;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --sh-1: 0 1px 2px rgba(30, 26, 36, .05), 0 4px 14px rgba(30, 26, 36, .05);
  --sh-2: 0 18px 40px -18px rgba(30, 26, 36, .28);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; /* открытие окон не сдвигает страницу вбок */ scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-variant-numeric: lining-nums; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--plum); color: #fff; }
:focus-visible { outline: 2px solid var(--plum-3); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.i { width: 20px; height: 20px; flex: none; }
.i--xs { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; margin-top: 24px; }
.mt { margin-top: 28px; }

/* ── type */
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--plum-2); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .7; }
a.eyebrow:hover { color: var(--plum); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--plum); white-space: nowrap; }
.link-arrow .i { width: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

/* ── buttons */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 26px; border-radius: 999px; font: 600 15px/1.1 var(--sans); letter-spacing: .01em; text-align: center; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; border: 1px solid transparent; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--primary { background: var(--plum); color: #fff; box-shadow: 0 10px 24px -14px rgba(79, 61, 105, .9); }
.btn--primary:hover { background: var(--plum-2); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; transition: background .2s; position: relative; flex: none; }
.icon-btn:hover { background: rgba(30, 26, 36, .06); }

/* ── topbar & header */
.topbar { background: var(--paper-2); color: var(--ink-2); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; gap: 28px; align-items: center; min-height: 38px; }
.topbar span { display: inline-flex; gap: 8px; align-items: center; }
.topbar .i { width: 15px; height: 15px; color: var(--gold); }
.topbar__right { margin-left: auto; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 244, 239, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.is-scrolled { border-color: var(--line); background: rgba(247, 244, 239, .94); }
.header__in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.logo__mark { width: 40px; height: 40px; color: var(--plum); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font: 600 30px/0.9 var(--serif); letter-spacing: .01em; }
.logo__text small { font: 600 9.5px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.nav { margin-inline: auto; }
.nav > ul { display: flex; gap: 4px; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; white-space: nowrap; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav > ul > li > a:hover, .nav > ul > li:focus-within > a { color: var(--ink); background: rgba(30, 26, 36, .05); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ''; position: absolute; }
.nav > ul > li { position: relative; }
.nav > ul > li > a[aria-current="page"] { background: rgba(79, 61, 105, .08); color: var(--plum); }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }
.header__phone { display: flex; flex-direction: column; line-height: 1.15; margin-right: 8px; text-align: right; }
.header__phone small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); font-weight: 600; }
.header__phone small::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(61, 122, 87, .18); }
.header__phone b { font-weight: 700; font-size: 16px; white-space: nowrap; }
.header__cta { margin-left: 6px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--plum); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.cart-count.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; }

/* mega menu */
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-42%, 8px); width: min(880px, 92vw); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; z-index: 60; }
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-42%, 0); }
.mega__inner { display: grid; grid-template-columns: 1fr 260px; gap: 8px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-2); }
.mega__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 6px; }
.mega__cat { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; transition: background .2s; }
.mega__cat:hover { background: var(--paper); }
.mega__img { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--tint); flex: none; }
.mega__img img { width: 100%; height: 100%; object-fit: cover; }
.mega__cat b { display: block; font-weight: 600; font-size: 15px; }
.mega__cat em { font-style: normal; font-size: 13px; color: var(--muted); }
.mega__promo { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: radial-gradient(120% 90% at 100% 0, #e6dcf0 0, var(--tint) 70%); color: var(--ink); }
.mega__promo b { font: 500 26px/1.05 var(--serif); }
.mega__promo em { font-style: normal; color: var(--ink-2); font-size: 14px; }
.mega__promo .link-arrow { margin-top: auto; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(23, 19, 29, .5); backdrop-filter: blur(4px); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--paper); display: flex; flex-direction: column; animation: slidein .3s var(--ease); overflow-y: auto; overscroll-behavior: contain; }
@keyframes slidein { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer__nav { display: flex; flex-direction: column; padding: 12px 20px; }
.drawer__nav > a, .drawer__nav summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font: 500 22px/1.2 var(--serif); cursor: pointer; list-style: none; }
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav details[open] summary .i { transform: rotate(180deg); }
.drawer__nav details div { display: flex; flex-direction: column; padding: 6px 0 10px 14px; border-bottom: 1px solid var(--line); }
.drawer__nav details a { padding: 8px 0; font-size: 15px; display: flex; justify-content: space-between; }
.drawer__nav em { font-style: normal; color: var(--muted); font-family: var(--sans); font-size: 13px; }
.drawer__foot { margin-top: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); }
.drawer__phone { font: 600 28px/1.1 var(--serif); }
.drawer__foot small { color: var(--muted); margin-bottom: 8px; }

/* ── sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--stone { background: var(--paper-2); }
.section--tint { background: linear-gradient(180deg, var(--tint), var(--paper)); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head > div { max-width: 720px; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 14px; color: var(--ink-2); font-size: 17px; }

/* ── hero */
.hero { position: relative; background: linear-gradient(180deg, var(--paper-2) 0, var(--paper) 100%); color: var(--ink); overflow: hidden; isolation: isolate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E"); pointer-events: none; }
/* фото между текстом и формой: растворяется в бежевом слева, справа (под формой) и снизу */
.hero__bg { position: absolute; z-index: -1; top: 0; bottom: 0; left: 28%; width: 56%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 42%, #000 62%, transparent 100%), linear-gradient(0deg, transparent 0, #000 26%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 42%, #000 62%, transparent 100%), linear-gradient(0deg, transparent 0, #000 26%);
  mask-composite: intersect;
  /* на дробных пикселях (масштаб 125%, планшеты) у края маски проступает 1px фото — подрезаем */
  clip-path: inset(0 2px 2px); }
.hero__bg picture, .hero__bg img { width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 22% 50%; }
.hero__in { min-height: min(720px, calc(100svh - 114px)); display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: center; padding-block: 56px 44px; }
.hero__content { max-width: 640px; }
.hero__form .lead-form { grid-template-columns: 1fr 1fr; gap: 12px; padding: clamp(24px, 2.6vw, 34px); border-radius: 24px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 30px 70px -32px rgba(30, 26, 36, .4); }
.hero__form .lead-form > * { grid-column: 1 / -1; }
.hero__form .lead-form > .field:nth-of-type(-n+2) { grid-column: auto; }
.hero__form .lead-form__title { font-size: clamp(28px, 2.4vw, 34px); }
.hero__form .lead-form__text { margin-bottom: 8px; }
.hero__form .lead-form > .btn { min-height: 58px; font-size: 16px; margin-top: 4px; }
.hero h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: .98; margin: 22px 0 26px; }
.hero h1 em { display: block; }
.hero__text { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero__note .i { width: 16px; color: var(--gold); }
.hero__note a { color: var(--plum); font-weight: 600; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.facts li { padding: 28px 24px 34px 0; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line-2); }
.facts b { font: 500 clamp(30px, 3.4vw, 44px)/1 var(--serif); color: var(--plum); }
.facts span { font-size: 14px; color: var(--muted); max-width: 220px; }
.facts--light { border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.facts--light li { padding: 28px; }
.facts--light li + li { border-color: var(--line); }

/* ── steps */
.steps-sec__in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.steps-sec__head { position: sticky; top: calc(var(--header-h) + 32px); }
.steps-sec__head h2 { margin: 14px 0 18px; }
.steps-sec__head p { color: var(--ink-2); font-size: 17px; margin-bottom: 28px; }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { display: flex; gap: 22px; padding: 26px 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .3s var(--ease); }
.steps li:hover { border-color: var(--line-2); transform: translateX(4px); }
.steps__n { font: 500 44px/0.9 var(--serif); color: var(--gold-ink); min-width: 34px; }
.steps b { font-size: 18px; font-weight: 600; }
.steps p { color: var(--ink-2); margin-top: 6px; }

/* ── service cards */
.scards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .2s; }
.scard:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: transparent; }
.scard__img { aspect-ratio: 4 / 3.2; overflow: hidden; background: var(--tint); }
.scard__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.72) contrast(1.02); transition: transform .8s var(--ease), filter .5s; }
.scard:hover .scard__img img { filter: none; }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.scard__num { font: 600 12px var(--sans); letter-spacing: .16em; color: var(--gold-ink); }
.scard b { font: 600 24px/1.1 var(--serif); }
.scard em { font-style: normal; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.scard__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); }
.scard__price { font-weight: 700; font-size: 15px; }
.scard__price--muted { font-weight: 500; color: var(--muted); }
.scard__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); transition: background .2s, color .2s; }
.scard__go .i { width: 18px; }
/* вся карточка — ссылка на услугу (растянутая ссылка заголовка), а нижняя строка — отдельная кнопка заявки поверх неё */
.scard { position: relative; }
.scard__link { color: inherit; }
.scard__link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.scard__ask { position: relative; z-index: 2; width: 100%; margin-left: 0; margin-right: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.scard__ask .scard__price--muted { transition: color .2s; }
.scard__ask:hover .scard__price--muted, .scard__ask:focus-visible .scard__price--muted { color: var(--plum); }
.scard__ask:hover .scard__go, .scard__ask:focus-visible .scard__go { background: var(--plum); color: #fff; }
.scard__ask:focus-visible { outline: none; }
.scard__ask:focus-visible .scard__go { box-shadow: 0 0 0 3px rgba(140, 120, 170, .35); }

/* ── packages */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.pack { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px 28px 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.pack h3 { font: 500 34px/1 var(--serif); }
.pack__price { font: 600 22px/1 var(--sans); }
.pack__price small { font-weight: 500; font-size: 14px; color: var(--muted); }
.pack ul { display: grid; gap: 10px; color: var(--ink-2); font-size: 15px; }
.pack li { display: flex; gap: 10px; align-items: flex-start; }
.pack li .i { width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.pack__actions { margin-top: auto; display: grid; gap: 8px; }
.pack--featured { background: linear-gradient(180deg, var(--tint) 0, var(--card) 55%); border: 1.5px solid var(--plum-3); box-shadow: var(--sh-2); }
.pack__badge { position: absolute; top: -12px; left: 28px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--plum); color: #fff; }
.pack--custom { background: transparent; border-style: dashed; border-color: var(--line-2); }
.pack--custom p { color: var(--ink-2); }

/* ── category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); overflow: hidden; border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); min-height: 100%; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cat-tile__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--tint); }
.cat-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-tile:hover .cat-tile__img img { transform: scale(1.05); }
.cat-tile__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px; }
.cat-tile b { font: 600 26px/1.05 var(--serif); }
.cat-tile em { font-style: normal; color: var(--muted); font-size: 14px; }
.cat-tile__go { position: absolute; right: 18px; bottom: 22px; width: 20px; color: var(--plum); transition: transform .25s var(--ease); }
.cat-tile:hover .cat-tile__go { transform: translateX(4px); }
.cat-tile--promo { background: radial-gradient(120% 90% at 100% 0, #e3d8ef 0, var(--card) 70%); border-color: rgba(79, 61, 105, .22); justify-content: flex-end; min-height: 260px; }
.cat-tile--promo .cat-tile__body { gap: 10px; padding: 26px; }
.cat-tile--promo b { font-size: 34px; color: var(--plum); }
.cat-tile--promo em { color: var(--ink-2); }

/* ── monuments band */
.monuments-band { background: var(--paper-2); overflow: hidden; }
.monuments-band__in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.monuments-band h2 { margin: 16px 0 20px; }
.monuments-band p { color: var(--ink-2); font-size: 17px; }
.ticks { display: grid; gap: 12px; margin: 26px 0 32px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .i { width: 20px; color: var(--gold); margin-top: 2px; }
.monuments-band__strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.monuments-band__strip a { position: relative; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); aspect-ratio: 3 / 4.6; display: block; }
.monuments-band__strip a:nth-child(5n+2), .monuments-band__strip a:nth-child(5n+4) { transform: translateY(28px); }
.monuments-band__strip img { width: 100%; height: 100%; object-fit: contain; padding: 10px 6px 30px; transition: transform .6s var(--ease); }
.monuments-band__strip a:hover img { transform: scale(1.05); }
.monuments-band__strip span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11.5px; font-weight: 600; text-align: center; color: var(--ink-2); background: linear-gradient(transparent, #fff 40%); }

/* ── values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 30px 26px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.value__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--plum); margin-bottom: 22px; }
.value__ic .i { width: 24px; height: 24px; }
.value h3 { font: 600 24px/1.1 var(--serif); margin-bottom: 10px; }
.value p { color: var(--ink-2); font-size: 15px; }

/* ── team */
.team-sec { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px clamp(32px, 5vw, 72px); align-items: start; }
.team-sec__head h2 { margin: 14px 0 16px; }
.team-sec__head p { color: var(--ink-2); margin-bottom: 22px; font-size: 17px; }
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.person { border-radius: var(--r); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.person img { aspect-ratio: 4 / 4.2; width: 100%; object-fit: cover; object-position: center 20%; background: var(--tint); }
.person figcaption { padding: 16px 20px 18px; display: flex; flex-direction: column; }
.person b { font: 600 22px/1.15 var(--serif); }
.person span { color: var(--muted); font-size: 14px; }
.installment { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 28px 32px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.installment__ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--plum); flex: none; }
.installment__ic .i { width: 26px; height: 26px; }
.installment h3 { font: 600 26px/1.1 var(--serif); margin-bottom: 6px; }
.installment p { color: var(--ink-2); }
.installment .btn { margin-left: auto; }

/* ── faq */
.faq-sec { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-sec > div:first-child h2 { margin: 14px 0 16px; }
.faq-sec > div:first-child p { color: var(--ink-2); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; cursor: pointer; list-style: none; font: 600 18px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq__ic { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; transition: transform .3s var(--ease), background .2s, color .2s; }
.faq__ic .i { width: 16px; height: 16px; }
.faq details[open] .faq__ic { transform: rotate(45deg); background: var(--plum); color: #fff; border-color: var(--plum); }
.faq details p { padding: 0 60px 26px 0; color: var(--ink-2); }

/* ── CTA band & forms */
.cta-band { background: radial-gradient(45% 70% at 0 100%, rgba(203, 189, 224, .45) 0, transparent 100%), var(--tint); border-top: 1px solid var(--line); }
.cta-band__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-band h2 { margin: 16px 0 18px; font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.cta-band p { color: var(--ink-2); font-size: 17px; max-width: 520px; }
.cta-band__phone { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; font: 500 clamp(30px, 3.4vw, 42px)/1 var(--serif); color: var(--plum); }
.cta-band__phone .i { width: 28px; height: 28px; color: var(--gold); }
.cta-band .lead-form { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.lead-form { display: grid; gap: 12px; }
.lead-form__title { font: 600 28px/1.1 var(--serif); }
.lead-form__text { color: var(--ink-2); font-size: 15px; margin-bottom: 4px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 22px 18px 8px; min-height: 58px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field textarea { min-height: 84px; }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); font-size: 15px; pointer-events: none; transition: transform .18s var(--ease), font-size .18s, top .18s, color .18s; }
.field input:focus, .field textarea:focus { border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(140, 120, 170, .16); }
.field select { width: 100%; min-height: 58px; padding: 22px 44px 8px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237b7483' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 18px center; -webkit-appearance: none; appearance: none; color: var(--ink); font: inherit; cursor: pointer; outline: none; transition: border-color .2s, box-shadow .2s; }
.field select:focus { border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(140, 120, 170, .16); }
.field select + label { top: 8px; font-size: 12px; }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; color: var(--plum-2); }
.field.is-invalid input { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 2px 0 4px; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--err); }
.lead-form__status { font-size: 14px; min-height: 0; }
.lead-form__status.is-ok { color: var(--ok); }
.lead-form__status.is-err { color: var(--err); }
.lead-form.is-sent > :not(.lead-form__status):not(.lead-form__done) { display: none; }
.lead-form__done { display: none; text-align: center; padding: 18px 0; }
.lead-form.is-sent .lead-form__done { display: block; }
.lead-form__done .i { width: 56px; height: 56px; padding: 14px; border-radius: 50%; background: rgba(61, 122, 87, .12); color: var(--ok); margin: 0 auto 14px; }
.lead-form__done b { display: block; font: 600 26px/1.1 var(--serif); margin-bottom: 6px; }
.lead-form__done p { color: var(--muted); }

/* ── page hero & crumbs */
.page-hero { padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 2.5vw, 28px); background: linear-gradient(180deg, var(--paper-2), var(--paper)); }
/* под шапкой раздела сразу содержимое — без полосы и большого отступа */
.page-hero + .section--tight { padding-top: clamp(8px, 1.5vw, 16px); }
.page-hero h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); margin: 22px 0 0; max-width: 980px; }
.page-hero__lead { margin-top: 18px; max-width: 760px; font-size: 18px; color: var(--ink-2); }
.page-hero .btn-row, .page-hero .chips { margin-top: 28px; }
.page-hero--404 { padding-block: 96px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--plum); }
.crumbs span[aria-current] { color: var(--ink-2); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 14px; font-weight: 500; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip em { font-style: normal; font-size: 12px; color: var(--muted); }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-active em { color: rgba(255, 255, 255, .6); }

/* ── product cards & grid */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pgrid--row { grid-template-columns: repeat(4, 1fr); }
.pgrid--row > :nth-child(n+5) { display: none; }
.shop { overflow-anchor: none; }
/* карточка: все части фиксированной высоты (фото 5:4, название 2 строки, характеристики 3 строки), цена и кнопка прижаты
   к низу — названия и цены в одном ряду стоят на одной линии. При наведении карточка не подпрыгивает, меняется только тень. */
.pcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .2s; }
.pcard:hover { box-shadow: var(--sh-2); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 5 / 4; min-height: 0; display: block; background: #fff; padding: 7%; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--plum); color: #fff; font: 600 11px/1.4 var(--sans); letter-spacing: .04em; }
.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; border-top: 1px solid var(--line); }
.pcard__meta, .pcard__cat { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__cat { color: var(--gold-ink); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 11.5px; line-height: 1.4; }
.pcard__title { font: 600 22px/1.12 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.24em; }
.pcard__title a:hover { color: var(--plum); }
.pcard__specs { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 4.5em; }
.pcard__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__price { font: 700 20px/1 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 600; transition: background .2s, color .2s; white-space: nowrap; }
.add-btn .i { width: 16px; height: 16px; }
.add-btn:hover { background: var(--plum); color: #fff; }
.add-btn.is-added { background: var(--ok); color: #fff; }

/* shop layout */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; overscroll-behavior: contain; padding: 4px 6px 4px 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.filters__head { display: none; }
.filters__group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.filters__group:first-of-type { padding-top: 0; }
.filters__group h3 { font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.filters .btn { margin-top: 18px; }
.filters__foot { display: grid; gap: 8px; margin-top: 18px; }
.filters__foot .btn { margin-top: 0; }
.filters__apply { display: none; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; font-size: .88rem; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); outline: none; }
.price-range input:focus { border-color: var(--plum-3); }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--plum); margin: 0; flex: none; }
.check span { flex: 1; }
.check em { font-style: normal; font-size: 12px; color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.toolbar__search:focus-within { border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(140, 120, 170, .14); }
.toolbar__search .i { color: var(--muted); width: 18px; }
.toolbar__search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.toolbar__sort select { height: 46px; padding: 0 38px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%237b7483' stroke-width='1.6'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; appearance: none; color: var(--ink); cursor: pointer; }
.toolbar__filters { display: none; }
.toolbar__filters em { font-style: normal; background: var(--plum); color: #fff; border-radius: 9px; padding: 0 6px; font-size: 12px; }
.shop__count { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

/* ── магазин (/catalog/): разделы слева, «Найдено» и сортировка над сеткой */
.page-hero--shop h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* описание раздела всегда занимает 2 строки — при смене раздела ничего ниже не сдвигается */
.page-hero--shop .page-hero__lead { max-width: 920px; line-height: 1.6; height: 3.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-note { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; padding: 15px 20px; border-left: 3px solid var(--gold); border-radius: 0 14px 14px 0; background: var(--paper-2); color: var(--ink-2); font-size: 15px; }
.shop-note .i { width: 18px; height: 18px; color: var(--gold); flex: none; }
.shop-note a { text-decoration: underline; text-underline-offset: 3px; }
.shop-note a:hover { color: var(--plum); }
.shop[data-cur] { grid-template-columns: 280px minmax(0, 1fr); gap: 28px; }
.cat-list { display: grid; gap: 2px; margin: 0 -8px; }
.cat-list__a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; transition: background .15s, color .15s; }
.cat-list__a:hover { background: var(--paper); }
.cat-list__a em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-list__a.is-active { background: var(--ink); color: #fff; font-weight: 600; }
.cat-list__a.is-active em { color: rgba(255, 255, 255, .7); }
.cat-list__a--empty { color: var(--muted); }
.cat-list__a--ext { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; color: var(--plum); }
.field-search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); transition: border-color .2s, box-shadow .2s; }
.field-search:focus-within { border-color: var(--plum-3); box-shadow: 0 0 0 4px rgba(140, 120, 170, .14); }
.field-search .i { width: 17px; height: 17px; color: var(--muted); flex: none; }
.field-search input { border: 0; outline: 0; background: none; flex: 1; min-width: 0; height: 100%; font-size: 14.5px; }
.shop__chips { display: none; }
.toolbar--shop { justify-content: space-between; min-height: 52px; }
.toolbar--shop .shop__count { margin: 0; font-size: 15px; color: var(--ink-2); }
.toolbar--shop .shop__count b { color: var(--ink); font-variant-numeric: tabular-nums; }
.toolbar__search--m { display: none; }
.pgrid--shop { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (min-width: 1025px) {
  /* панель слева — белая карточка, как в образце; прилипает при прокрутке */
  /* место под полосу прокрутки занято всегда — ширина панели не меняется, когда у раздела появляются свои фильтры */
  .shop[data-cur] .filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 10px 22px 18px; scrollbar-gutter: stable; }
  .shop[data-cur] .price-range input { padding: 0 8px; font-size: .84rem; }
  .shop[data-cur] .filters__group--cats { padding-top: 0; }
}
.empty { text-align: center; padding: 64px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty b { font: 600 26px var(--serif); display: block; margin-bottom: 6px; }
.empty p { color: var(--muted); margin-bottom: 18px; }

/* product page */
.product { padding: clamp(24px, 3vw, 36px) 0 clamp(56px, 7vw, 96px); }
.product__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); margin-top: 24px; align-items: start; }
.product__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.product__img { position: relative; display: block; width: 100%; aspect-ratio: 1; min-height: 0; border-radius: var(--r-lg); background: #fff; padding: 8%; cursor: zoom-in; border: 1px solid var(--line); }
.product__img img { width: 100%; height: 100%; object-fit: contain; }
.product__zoom { position: absolute; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); box-shadow: var(--sh-1); }
.product__info h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); margin: 14px 0 10px; }
.product__code { color: var(--muted); font-size: 14px; }
.product__code b { color: var(--ink-2); font-weight: 600; }
.product__buy { margin-top: 26px; padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.product__price { font: 600 40px/1 var(--serif); }
.product__row { display: flex; gap: 12px; flex-wrap: wrap; }
.product__row .btn { flex: 1; }
.qty { display: inline-flex; align-items: center; height: 56px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--paper); }
.qty button .i { width: 16px; height: 16px; }
.qty input { width: 40px; text-align: center; border: 0; outline: 0; background: none; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; padding: 0 2px; }
.qty--sm button { width: 32px; height: 32px; }
.qty--sm input { width: 32px; font-size: 14px; }
/* каталог из переписки: фото-позиции (транспорт, бригады), галерея, цена по запросу, примечания, пустые разделы */
.product__price--ask { font-size: 30px; }
.product__note { font-size: 14px; color: var(--ink-2); padding: 10px 14px; border-radius: 12px; background: var(--paper); border-left: 3px solid var(--gold); }
.product__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 12px; }
.product__thumb { aspect-ratio: 1; min-height: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in; transition: border-color .2s, transform .2s; }
.product__thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__gallery--photo .product__img { aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: var(--paper-2); }
.product__gallery--photo .product__img img { position: relative; object-fit: contain; filter: none; }
.product__gallery--photo .product__img .product__bg { position: absolute; inset: 0; object-fit: cover; filter: blur(26px) saturate(.8); opacity: .45; transform: scale(1.2); }
.product__gallery--photo .product__zoom { z-index: 1; }
.product__gallery--photo .product__thumb img { object-fit: cover; }
.pcard--photo .pcard__media { padding: 0; overflow: hidden; background: var(--paper-2); }
.pcard--photo .pcard__media img { object-fit: cover; filter: none; }
.pcard__price--ask { font-size: 14px; font-weight: 600; color: var(--plum); }
.cat-tile--photo .cat-tile__img img { object-fit: cover; padding: 0; }
.cat-tile--empty { border-style: dashed; background: transparent; }
.cat-tile--empty .cat-tile__img { display: grid; place-items: center; background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(0, 0, 0, .025) 12px 24px); }
.cat-tile__todo { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cat-tile__todo .i { width: 16px; height: 16px; }
.cat-tile--empty .cat-tile__body em { color: var(--muted); font-style: italic; }
.chip--empty { border-style: dashed; color: var(--muted); }
.notes { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-size: 14.5px; color: var(--ink-2); }
.notes li { display: flex; gap: 10px; align-items: center; }
.notes .i { width: 18px; height: 18px; color: var(--gold); flex: none; }
.notes a { text-decoration: underline; text-underline-offset: 3px; }
.page-hero .notes + .chips { margin-top: 18px; }
.empty--todo { padding: 56px 16px; }
.empty--todo .btn-row { justify-content: center; }
.product__perks { display: grid; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.product__perks li { display: flex; gap: 10px; align-items: center; }
.product__perks .i { width: 18px; color: var(--gold); }
.specs { margin-top: 30px; }
.specs h2 { font-size: 30px; margin-bottom: 14px; }
.specs dl > div { display: grid; grid-template-columns: minmax(140px, 1fr) 1.3fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 500; }

/* monuments */
.turnkey { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.turnkey h2 { margin: 14px 0 16px; }
.turnkey p { color: var(--ink-2); font-size: 17px; }
.turnkey .ticks { margin: 0; padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); font-size: 17px; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: p; }
.process li { padding: 28px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); position: relative; }
.process span { font: 500 46px/1 var(--serif); color: var(--gold-ink); display: block; margin-bottom: 18px; }
.process h3 { font: 600 23px/1.15 var(--serif); margin-bottom: 8px; }
.process p { color: var(--ink-2); font-size: 15px; }
.mcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.mcat { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.mcat:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.mcat__img { aspect-ratio: 1 / 1.1; min-height: 0; overflow: hidden; display: block; background: #fff; padding: 14px 14px 6px; }
.mcat__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.mcat__body { display: flex; flex-direction: column; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.mcat b { font: 600 20px/1.15 var(--serif); }
.mcat em { font-style: normal; font-size: 13px; color: var(--muted); }
.materials-sec .sec-head { margin-bottom: 28px; }
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.materials article { padding: 26px 24px; border-top: 2px solid var(--gold); background: var(--card); border-radius: 0 0 var(--r) var(--r); }
.materials h3 { font: 600 24px/1.1 var(--serif); margin-bottom: 8px; }
.materials p { color: var(--ink-2); font-size: 15px; }
.terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px; }
.terms > div { padding: 20px 24px; border-radius: var(--r); border: 1px solid var(--line-2); }
.terms dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.terms dd { font-weight: 500; }
.works { columns: 4 240px; column-gap: 14px; }
.works__item { display: block; width: 100%; margin-bottom: 14px; border-radius: 14px; overflow: hidden; break-inside: avoid; cursor: zoom-in; background: var(--paper-2); }
.works__item img { width: 100%; transition: transform .6s var(--ease); }
.works__item:hover img { transform: scale(1.04); }
.toolbar--mon { justify-content: space-between; }
.toolbar--mon .toolbar__search { max-width: 420px; }
.toolbar--mon .shop__count { margin: 0; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); scroll-margin-top: calc(var(--header-h) + 24px); }
.mcard:hover { box-shadow: var(--sh-2); transform: translateY(-3px); }
.mcard.is-target { box-shadow: 0 0 0 3px var(--plum-3); }
.mcard__img { display: block; aspect-ratio: 3 / 4; min-height: 0; overflow: hidden; padding: 16px 14px 8px; cursor: zoom-in; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; }
.mcard figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; border-top: 1px solid var(--line); }
.mcard figcaption span { font-weight: 600; font-size: 13.5px; letter-spacing: .02em; }
.mcard__order { font-size: 13px; font-weight: 600; color: var(--plum); padding: 8px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.mcard__order:hover { background: var(--plum); color: #fff; }

/* service page */
.svc-hero { padding: clamp(24px, 3vw, 36px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--paper-2), var(--paper)); border-bottom: 1px solid var(--line); }
.svc-hero__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: 24px; }
.svc-hero__img { border-radius: 999px 999px 22px 22px; overflow: hidden; aspect-ratio: 3 / 3.6; background: var(--tint); box-shadow: var(--sh-2); position: relative; }
.svc-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(.8); }
.svc-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); margin: 16px 0 18px; }
.svc-hero__lead { font-size: 18px; color: var(--ink-2); max-width: 620px; }
.svc-hero__price { font: 600 30px/1 var(--serif); margin: 24px 0; color: var(--plum); }
.svc-hero__price--ask { font: 500 17px/1.4 var(--sans); color: var(--ink-2); }
.svc-hero .product__perks { border: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-form { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 780px; min-width: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); color: var(--ink); margin-top: 1.8em; line-height: 1.12; }
.prose h3 { font: 600 1.45rem/1.2 var(--serif); color: var(--ink); margin-top: 1.6em; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 0; display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--gold); }
.prose ol { counter-reset: o; }
.prose ol li { position: relative; padding-left: 34px; counter-increment: o; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .05em; font: 600 1.1em/1.5 var(--serif); color: var(--gold-ink); }
.prose a { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { padding: 20px 24px; border-radius: var(--r); background: var(--tint); border-left: 3px solid var(--plum-3); color: var(--ink); font-size: 16px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 13px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--paper-2); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 500; }
.contact-card { padding: 26px; border-radius: var(--r-lg); background: radial-gradient(120% 80% at 100% 0, #ebe3f3 0, var(--card) 70%); border: 1px solid rgba(79, 61, 105, .2); }
.contact-card__phone { display: block; font: 500 34px/1.05 var(--serif); color: var(--plum); margin: 12px 0 4px; }
.contact-card > p { color: var(--muted); font-size: 14px; }
.contact-card__list { display: grid; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.contact-card__list li { display: flex; gap: 12px; }
.contact-card__list .i { width: 18px; color: var(--gold); margin-top: 2px; }
.scards--row { grid-template-columns: repeat(4, 1fr); }

/* constructor & cart */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.builder__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.builder__steps button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 14.5px; transition: all .2s; }
.builder__steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 13px; flex: none; }
.builder__steps button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.builder__steps button[aria-selected="true"] span { background: var(--gold-2); color: var(--ink); }
.builder__steps button.is-done span { background: var(--ok); color: #fff; }
.builder__panel h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.builder__panel > .muted { margin: 8px 0 22px; }
.builder__panel .chips { margin-bottom: 18px; }
.builder__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.bpacks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.bpack input, .bsvc input { position: absolute; opacity: 0; pointer-events: none; }
.bpack__box { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.bpack__box b { font: 600 26px/1 var(--serif); }
.bpack__price { font-weight: 700; color: var(--plum); }
.bpack__box ul { color: var(--ink-2); font-size: 14px; display: grid; gap: 4px; }
.bpack__box li::before { content: '— '; color: var(--gold); }
.bpack input:checked + .bpack__box, .bsvc input:checked + .bsvc__box { border-color: var(--plum); box-shadow: 0 0 0 3px rgba(79, 61, 105, .12); }
.bpack input:focus-visible + .bpack__box, .bsvc input:focus-visible + .bsvc__box { outline: 2px solid var(--plum-3); outline-offset: 2px; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bitem { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.bitem img { aspect-ratio: 1; object-fit: contain; padding: 12px; background: #fff; }
.bitem__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: 1px solid var(--line); }
.bitem b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bitem__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.bitem__foot span { font-weight: 700; font-size: 14.5px; }
.bitem .add-btn { height: 34px; padding: 0 10px; font-size: 12.5px; }
.bservices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bsvc__box { display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; transition: border-color .2s, box-shadow .2s; height: 100%; }
.bsvc__box img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none; }
.bsvc__box > span:not(.bsvc__tick) { flex: 1; display: flex; flex-direction: column; }
.bsvc__box b { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bsvc__box em { font-style: normal; font-size: 13px; color: var(--muted); }
.bsvc__tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.bsvc__tick .i { width: 14px; height: 14px; }
.bsvc input:checked + .bsvc__box .bsvc__tick { background: var(--plum); border-color: var(--plum); color: #fff; }
.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary__in { padding: 24px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); display: grid; gap: 14px; }
.summary h2 { font-size: 30px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.summary__total span { color: var(--muted); }
.summary__total b { font: 600 32px/1 var(--serif); }
.summary__note { font-size: 13px; color: var(--muted); }
.sline { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sline img, .sline .sline__ph { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; background: var(--paper); }
.sline .sline__ph { display: grid; place-items: center; color: var(--gold); }
.sline__t { line-height: 1.3; }
.sline__t small { display: block; color: var(--muted); font-size: 12.5px; }
.sline__x { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sline__x:hover { background: var(--paper); color: var(--err); }
.sline__x .i { width: 14px; height: 14px; }
.summary [data-summary-list] { max-height: 46vh; overflow: auto; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.citem { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 20px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.citem + .citem { margin-top: 10px; }
.citem__img { width: 96px; height: 96px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; color: var(--gold); }
.citem__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.citem__img .i { width: 34px; height: 34px; }
.citem__t a { font-weight: 600; }
.citem__t a:hover { color: var(--plum); }
.citem__t small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.citem__sum { font-weight: 700; min-width: 100px; text-align: right; white-space: nowrap; }
.cart__empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.cart__empty b { font: 600 30px/1.1 var(--serif); display: block; margin-bottom: 8px; }
.cart__empty p { color: var(--muted); margin-bottom: 22px; }
.cart__empty .btn-row { justify-content: center; }
.summary--cart .lead-form { margin-top: 6px; }

/* about */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.timeline li { padding: 26px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.timeline__year { font: 500 52px/1 var(--serif); color: var(--gold-ink); display: block; margin-bottom: 16px; }
.timeline h3 { font: 600 22px/1.15 var(--serif); margin-bottom: 8px; }
.timeline p { color: var(--ink-2); font-size: 15px; }
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.doc-card { display: flex; flex-direction: column; gap: 12px; text-align: left; font-weight: 600; font-size: 14.5px; }
.doc-card__img { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.doc-card__img img { width: 100%; height: 100%; object-fit: cover; }

/* contacts */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch; }
.contacts__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ccard { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
a.ccard:hover { border-color: var(--plum-3); }
.ccard__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--tint); color: var(--plum); display: grid; place-items: center; margin-bottom: 8px; }
.ccard small { color: var(--muted); font-size: 13px; }
.ccard b { font-weight: 600; font-size: 16px; line-height: 1.4; }
.ccard .link-arrow { margin-top: auto; padding-top: 10px; font-size: 14px; }
.map { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 420px; background: var(--paper-2); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(1) sepia(.18) contrast(.92) brightness(1.03); }
.map__pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -56px 0 0 -23px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--plum); color: var(--gold-2); box-shadow: 0 10px 24px rgba(23, 19, 29, .35); pointer-events: none; }
.map__pin svg { width: 26px; height: 26px; transform: rotate(45deg); color: var(--gold-2); }
.map__open { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 600; box-shadow: var(--sh-2); }
.map__open svg { width: 16px; height: 16px; }
.contacts--nomap { grid-template-columns: 1fr; }
.contacts--nomap .contacts__cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.is-todo { color: var(--muted); font-style: italic; font-weight: 500; }
.contacts-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.requisites h2 { margin: 14px 0 22px; }
.requisites dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.requisites dt { color: var(--muted); }
.requisites dd { font-weight: 500; }
.requisites .btn { margin-top: 20px; }

/* footer */
.footer { background: var(--paper-2); color: var(--ink-2); font-size: 14.5px; padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand p { margin: 20px 0 22px; max-width: 320px; }
.footer__phone { display: block; font: 500 30px/1.1 var(--serif); color: var(--plum); }
.footer__brand small { font-size: 13px; color: var(--muted); }
.footer__col { display: flex; flex-direction: column; gap: 9px; }
.footer__col h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer__col h3.mt { margin-top: 18px; }
.footer__col a:hover { color: var(--plum); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 22px 0 28px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a:hover { color: var(--plum); }
.footer__credit { flex-basis: 100%; font-size: 12px; opacity: .8; }
.footer__credit a { text-decoration: underline; text-underline-offset: 2px; }
.footer__credit a:hover { color: var(--plum); }
.callbar { display: none; }

/* modal, search, lightbox, toast */
dialog { padding: 0; border: 0; background: transparent; color: inherit; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(23, 19, 29, .62); backdrop-filter: blur(4px); }
.modal { width: min(480px, calc(100% - 24px)); margin: auto; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-lg); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.modal[open] .modal__box { animation: pop .3s var(--ease); }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } }
.modal__box { position: relative; padding: 34px 32px 28px; border-radius: var(--r-lg); background: var(--paper); }
.modal__close { position: absolute; top: 12px; right: 12px; }
.modal h2 { font-size: 36px; margin: 12px 0 10px; }
.modal__lead { color: var(--ink-2); margin-bottom: 20px; font-size: 15px; }
.modal__alt { margin-top: 16px; text-align: center; font-size: 14px; color: var(--muted); }
.modal__alt a { color: var(--plum); font-weight: 600; }
.search { width: min(760px, calc(100% - 24px)); margin: 8vh auto auto; }
.search[open] .search__box { animation: pop .25s var(--ease); }
.search__box { border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; border-bottom: 1px solid var(--line); }
.search__bar > .i { color: var(--muted); }
.search__bar input { flex: 1; border: 0; outline: 0; background: none; height: 52px; font-size: 18px; min-width: 0; }
.search__results { max-height: min(62vh, 620px); overflow: auto; overscroll-behavior: contain; padding: 8px 10px 14px; }
.search__hint { padding: 18px 14px; color: var(--muted); font-size: 15px; }
.search__group { padding: 12px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.search__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 8px 12px; border-radius: 12px; }
.search__item:hover, .search__item:focus { background: var(--card); outline: none; }
.search__item img { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.search__item b { font-weight: 600; font-size: 15px; display: block; line-height: 1.3; }
.search__item small { color: var(--muted); font-size: 13px; }
.search__item span:last-child { font-weight: 700; font-size: 14px; white-space: nowrap; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(15, 12, 19, .94); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; animation: fade .2s; overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } }
.lightbox__fig { display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100vh; padding: 56px 0 24px; }
.lightbox__fig img { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; border-radius: 8px; background: #fff; }
.lightbox__fig figcaption { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; color: rgba(255, 255, 255, .85); font-size: 15px; }
.lightbox .icon-btn { color: #fff; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__nav { justify-self: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 130; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: var(--sh-2); font-size: 14.5px; animation: toast .35s var(--ease); max-width: calc(100% - 32px); }
@keyframes toast { from { transform: translate(-50%, 16px); opacity: 0; } }
.toast a { color: var(--gold-2); font-weight: 600; white-space: nowrap; padding: 6px 10px; border-radius: 999px; }
.toast a:hover { background: rgba(255, 255, 255, .08); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── responsive */

/* ── кладбища района */
.cem-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cem-tools .toolbar__search { flex: 1 1 320px; max-width: 520px; }
.cem-only { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.cem-only input { width: 18px; height: 18px; margin: 0; accent-color: var(--plum); }
.cem-only em { font-style: normal; color: var(--muted); }
.cem-group { padding-top: clamp(28px, 4vw, 44px); }
.cem-group h2 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 16px; }
.cem-group h2 em { margin-left: 6px; font: 500 14px var(--sans); font-style: normal; color: var(--muted); }
.cem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.cem-card { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.cem-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.cem-card h3 { flex: 1 1 160px; font: 600 16px/1.35 var(--sans); }
.cem-badge { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.4; background: var(--paper-2); color: var(--muted); }
.cem-badge--ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.cem-badge--off { color: var(--ink-2); }
.cem-card__aka, .cem-card__meta, .cem-card__note { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cem-card__addr { display: flex; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.cem-card__addr .i { flex: none; width: 15px; margin-top: 2px; color: var(--gold); }
.cem-card__foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cem-card[hidden], .cem-group[hidden] { display: none; }
.cem-empty { padding: 32px 0 0; color: var(--muted); }
.cem-source { margin-top: 32px; font-size: 13px; color: var(--muted); }

@media (min-width: 761px) { .page-hero .chips--scroll { flex-wrap: wrap; overflow: visible; -webkit-mask-image: none; mask-image: none; } }
@media (max-width: 1519px) { .header__cta { display: none; } }
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header__actions { margin-left: auto !important; }
  .scards, .packages, .values, .process, .materials, .terms, .timeline, .docs, .scards--row { grid-template-columns: repeat(2, 1fr); }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .pgrid--row { grid-template-columns: repeat(2, 1fr); }
  .topbar__right { display: none !important; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  :root { --header-h: 66px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) 360px; }
  .hero__form .lead-form > .field:nth-of-type(-n+2) { grid-column: 1 / -1; }
  .hero__bg { left: 30%; width: 54%; }
  .hero__text { max-width: 440px; }
  .steps-sec__in, .faq-sec, .team-sec, .monuments-band__in, .cta-band__in, .turnkey, .contacts, .contacts-2, .article-grid, .builder, .cart { grid-template-columns: 1fr; }
  .steps-sec__head, .article-aside, .summary { position: static; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; z-index: 95; width: min(360px, 88vw); max-height: none; background: var(--paper); padding: 0 20px 24px; transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--sh-2); }
  .filters.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(23, 19, 29, .45), var(--sh-2); }
  .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--paper); padding: 14px 0; margin-bottom: 8px; border-bottom: 1px solid var(--line); z-index: 1; font-size: 18px; }
  .toolbar__filters { display: inline-flex; }
  .filters { padding-bottom: 0; }
  .filters__foot { position: sticky; bottom: 0; z-index: 1; background: var(--paper); border-top: 1px solid var(--line); margin: 18px -20px 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
  .filters__apply { display: inline-flex; }
  /* магазин на планшете и телефоне: разделы — лента над списком, поиск — над списком, в панели «Фильтры» — цена и свойства */
  .shop[data-cur] { grid-template-columns: minmax(0, 1fr); }
  .shop__chips { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 12px; padding: 2px var(--gut) 6px; }
  .shop__chips::-webkit-scrollbar { display: none; }
  .shop__chips .chip { flex: none; }
  .shop__chips .chip--ext { color: var(--plum); }
  .filters__group--cats, .filters__group--search { display: none; }
  .toolbar__search--m { display: flex; flex: 1 1 100%; }
  .toolbar--shop .shop__count { order: 5; flex-basis: 100%; }
  .page-hero--shop h1 { white-space: normal; line-height: 1.1; height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .page-hero--shop .page-hero__lead { height: 4.8em; -webkit-line-clamp: 3; }
  .product__grid, .svc-hero__grid { grid-template-columns: 1fr; }
  .product__gallery { position: static; }
  .svc-hero__img { max-width: 420px; }
  .monuments-band__strip { grid-template-columns: repeat(5, 1fr); }
  .summary { order: -1; }
  .builder .summary { order: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__form { max-width: 500px; }
  .hero__form .lead-form > .field:nth-of-type(-n+2) { grid-column: auto; }
  .hero__bg { left: auto; right: 0; width: 72%; clip-path: inset(0 0 2px 2px);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 50%), linear-gradient(0deg, transparent 0, #000 26%);
    mask-image: linear-gradient(90deg, transparent 0, #000 50%), linear-gradient(0deg, transparent 0, #000 26%); }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; padding-bottom: 64px; }
  .topbar { display: none; }
  .header__phone { display: none; }
  .logo__text b { font-size: 26px; }
  .logo__mark { width: 36px; height: 36px; }
  /* телефон: фото сверху растворяется вниз в бежевом, сразу под заголовком — форма */
  .hero__bg { position: relative; inset: auto; left: auto; width: 100%; height: clamp(220px, 60vw, 340px); order: 0; clip-path: inset(0 0 2px);
    -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
  .hero { display: flex; flex-direction: column; }
  .hero__in { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding-block: 0 8px; margin-top: -64px; order: 1; position: relative; }
  .hero h1 { margin: 16px 0 16px; }
  /* на телефоне те же две кнопки всегда внизу экрана — здесь не дублируем */
  .hero__actions, .hero__note { display: none; }
  .hero__form .lead-form { padding: 22px 16px; }
  .hero__form .lead-form > .field:nth-of-type(-n+2) { grid-column: 1 / -1; }
  .hero__form .lead-form__title { font-size: 26px; }
  .hero > .wrap:last-child { order: 3; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .facts li, .facts li + li { padding: 18px 14px 20px 0; border-left: 0; }
  .facts li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-2); }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .facts--light li:nth-child(even) { border-color: var(--line); }
  .facts--light li:nth-child(n+3) { border-top-color: var(--line); }
  .facts--light li { padding: 18px; }
  .scards, .packages, .values, .process, .materials, .terms, .timeline, .scards--row, .bpacks, .bservices, .contacts__cards { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-tile b { font-size: 21px; }
  .cat-tile__body { padding: 14px 14px 16px; }
  .cat-tile em { font-size: 12.5px; }
  .cat-tile__go { display: none; }
  .cat-tile--promo { min-height: 0; grid-column: 1 / -1; }
  .pgrid, .pgrid--row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-tiles--page, .pgrid--row { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 44%; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 10px; scroll-padding-inline: var(--gut); }
  .cat-tiles--page::-webkit-scrollbar, .pgrid--row::-webkit-scrollbar { display: none; }
  .cat-tiles--page > *, .pgrid--row > * { scroll-snap-align: start; }
  .cat-tiles--page .cat-tile--promo { grid-column: auto; }
  .cat-tiles--page .cat-tile--promo .cat-tile__body { padding: 14px 14px 16px; }
  .cat-tiles--page .cat-tile--promo .eyebrow { letter-spacing: .12em; }
  .cat-tiles--page .cat-tile--promo .eyebrow::before { display: none; }
  .cat-tiles--page .cat-tile--promo b { font-size: 26px; }
  .pgrid--row > :nth-child(n+5) { display: flex; }
  .page-hero .chips { scroll-snap-type: x proximity; overscroll-behavior-x: contain; scroll-padding-inline: var(--gut); }
  .page-hero .chips > * { scroll-snap-align: start; }
  .pcard__body { padding: 12px; gap: 4px; }
  .pcard__title { font-size: 18px; }
  .pcard__cat { font-size: 10.5px; letter-spacing: .08em; }
  .pcard__specs { font-size: 12.5px; }
  .pcard__note { font-size: 12px; line-height: 1.4; }
  .pcard__badge { top: 8px; left: 8px; padding: 3px 8px; font-size: 10.5px; }
  .page-hero--shop .page-hero__lead { font-size: 14.5px; line-height: 1.55; height: 6.2em; -webkit-line-clamp: 4; }
  .shop-note { font-size: 14px; padding: 12px 14px; margin-bottom: 16px; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .add-btn { justify-content: center; }
  .pcard__price { font-size: 16px; }
  .mgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mcats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .monuments-band__strip { grid-template-columns: repeat(3, 1fr); }
  .monuments-band__strip a:nth-child(n+7) { display: none; }
  .monuments-band__strip a:nth-child(5n+2), .monuments-band__strip a:nth-child(5n+4) { transform: none; }
  .monuments-band__strip a:nth-child(3n+2) { transform: translateY(18px); }
  .team { grid-template-columns: 1fr 1fr; gap: 10px; }
  .person b { font-size: 18px; }
  .installment { flex-direction: column; align-items: flex-start; padding: 24px; }
  .installment .btn { margin-left: 0; width: 100%; }
  .faq summary { font-size: 16px; padding: 18px 0; }
  .faq details p { padding-right: 0; }
  .steps li { padding: 20px; gap: 16px; }
  .builder__steps { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .builder__steps button { flex-direction: column; gap: 4px; font-size: 12px; padding: 8px 4px; }
  .citem { grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px; }
  .citem__img { width: 72px; height: 72px; }
  .citem .qty { grid-column: 2; justify-self: start; }
  .citem__sum { grid-column: 3; grid-row: 2; }
  .citem .sline__x { grid-column: 3; grid-row: 1; justify-self: end; }
  .specs dl > div, .requisites dl > div { grid-template-columns: 1fr; gap: 2px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(247, 244, 239, .96); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); padding: 8px max(8px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom)); gap: 8px; box-shadow: 0 -10px 30px rgba(30, 26, 36, .08); }
  .callbar a, .callbar button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
  .callbar__call { background: var(--plum); color: #fff; }
  .callbar button { border: 1px solid var(--line-2); color: var(--ink); background: var(--card); }
  .callbar .i { width: 18px; }
  .toast { bottom: 84px; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__prev { left: 18px; }
  .lightbox__next { right: 18px; }
  .lightbox__fig { padding: 60px 12px 90px; }
  .modal__box { padding: 30px 20px 22px; }
  .modal h2 { font-size: 30px; }
  .toolbar__sort span { display: none; }
  .toolbar__sort { flex: 1; }
  .toolbar__sort select { width: 100%; padding: 0 30px 0 14px; background-position: right 12px center; font-size: 14.5px; }
  .toolbar__filters { flex: 1; }
  .toolbar__search { flex-basis: 100%; }
  .mcard figcaption { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .mcard figcaption span { font-size: 13px; text-align: center; }
  .mcard__order { text-align: center; background: var(--tint); padding: 8px 10px; }
  .page-hero .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 4px; }
  .page-hero .chips::-webkit-scrollbar { display: none; }
  .page-hero .chips > * { flex: none; }
  .sec-head { margin-bottom: 24px; }
}
@media (max-width: 420px) {
  .header__in { gap: 10px; }
  .header__actions { gap: 0; }
  .header .icon-btn { width: 40px; height: 40px; }
  .logo { gap: 9px; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text b { font-size: 24px; }
  .logo__text small { font-size: 8.5px; letter-spacing: .16em; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .header, .footer, .callbar, .cta-band, .lead-form { display: none !important; }
  body { background: #fff; }
}

input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
/* обложки разделов каталога — предметные фото целиком, на светлом фоне */
.cat-tile:not(.cat-tile--photo):not(.cat-tile--promo) .cat-tile__img { background: #fff; }
.cat-tile:not(.cat-tile--photo):not(.cat-tile--promo) .cat-tile__img img { object-fit: contain; padding: 8% 10%; }
.mega__img img { object-fit: contain; background: #fff; }
.shop--nofilters { grid-template-columns: 1fr; }
.shop--nofilters .filters, .shop--nofilters .toolbar__filters { display: none; }
