/* Престол — стили сайта */

@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/manrope-normal-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-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: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-normal-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: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 700; font-display: swap; src: url(/fonts/playfair-display-italic-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 {
	--bg: #f7f3ee;
	--bg-alt: #efe8df;
	--surface: #fff;
	--ink: #211a16;
	--ink-2: #4a403a;
	--muted: #7a6e66;
	--line: #e4dace;
	--accent: #653033;
	--accent-hover: #4e2427;
	--accent-soft: #f3e7e4;
	--gold: #a97c3f;
	--radius: 22px;
	--radius-sm: 14px;
	--shadow: 0 1px 2px rgb(33 26 22 / .04), 0 10px 30px rgb(33 26 22 / .07);
	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 3.2vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0 0 1em; }
.icon { flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section--alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: #fff; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: #000; border-color: #000; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 243 238 / .9); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.logo { display: block; flex: none; }
.logo img { height: 54px; width: auto; }
.nav { flex: 1; }
.nav ul { display: flex; gap: clamp(16px, 2vw, 32px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding-block: 6px; border-bottom: 1.5px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); border-bottom-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.burger .icon-close { display: none; }

@media (max-width: 1100px) {
	.header-phone span { display: none; }
}
@media (max-width: 960px) {
	.site-header__inner { gap: 16px; }
	.burger { display: inline-flex; }
	.nav { position: fixed; inset: var(--header-h) 0 auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; box-shadow: var(--shadow); display: none; }
	.nav ul { flex-direction: column; gap: 0; }
	.nav a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
	.site-header.is-open .nav { display: block; }
	.site-header.is-open .burger .icon-menu { display: none; }
	.site-header.is-open .burger .icon-close { display: block; }
	.header-actions { margin-left: auto; gap: 12px; }
	.logo img { height: 46px; }
}
@media (max-width: 560px) {
	.header-actions .btn { display: none; }
}

/* Хлебные крошки */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 24px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { text-decoration: none; }
.page-top { padding-top: clamp(20px, 3vw, 36px); }
.page-head { margin-bottom: clamp(24px, 4vw, 48px); }
.page-head p { color: var(--muted); max-width: 64ch; font-size: 17px; }

/* Первый экран */
.hero { padding-top: clamp(12px, 2vw, 24px); }
.hero__panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--bg-alt); border-radius: calc(var(--radius) + 6px); overflow: hidden; min-height: min(640px, calc(100svh - var(--header-h) - 40px)); }
.hero__text { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.4rem, 3.4vw + 1rem, 4.25rem); line-height: 1.04; margin-bottom: 24px; }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 44ch; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__media { position: relative; min-height: 320px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__tag { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; background: rgb(255 255 255 / .92); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow); }
.hero__tag img { position: static; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 24px; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.hero .stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stats dt { font: 500 clamp(1.8rem, 1.5vw + 1rem, 2.4rem)/1 var(--serif); margin-bottom: 6px; }
.stats dd { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
	.hero__panel { grid-template-columns: minmax(0, 1fr); }
	.hero__media { order: -1; aspect-ratio: 4 / 3; }
}

/* Лента поставщиков */
.suppliers { padding-block: 28px; border-bottom: 1px solid var(--line); }
.suppliers__inner { display: flex; align-items: center; gap: 12px 40px; flex-wrap: wrap; justify-content: center; }
.suppliers span { font: 500 15px/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) {
	.suppliers__inner { gap: 10px 22px; }
	.suppliers span { font-size: 13px; }
}
.suppliers small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }

/* Категории */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0) 45%, rgb(20 14 10 / .72)); z-index: -1; }
.cat-tile:hover { color: #fff; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile__body { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.cat-tile__body h3 { font-size: clamp(1.5rem, 1vw + 1rem, 2rem); margin: 0 0 4px; }
.cat-tile__body p { margin: 0; font-size: 14px; opacity: .85; }
.cat-tile__arrow { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .9); color: var(--ink); display: grid; place-items: center; transition: transform .2s; }
.cat-tile:hover .cat-tile__arrow { transform: rotate(-45deg); }
@media (max-width: 900px) {
	.categories { grid-template-columns: 1fr 1fr; }
	.categories .cat-tile:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
	.categories { grid-template-columns: 1fr; }
	.cat-tile, .categories .cat-tile:last-child { aspect-ratio: 4 / 3; }
}

/* Фильтры */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14px/1.2 var(--sans); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.select { padding: 9px 38px 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23211a16' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; font: 500 14px/1.2 var(--sans); color: var(--ink); appearance: none; cursor: pointer; }
.empty { display: none; padding: 40px; text-align: center; color: var(--muted); }

/* Карточки моделей */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 2vw, 24px); }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card[hidden] { display: none; }
.card__link { display: block; height: 100%; text-decoration: none; color: inherit; }
.card__link:hover { color: inherit; }
.card__img { position: relative; aspect-ratio: 1; background: #fff; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.card__body { padding: 18px 20px 22px; border-top: 1px solid var(--bg-alt); }
.card__title { font-size: 1.35rem; margin: 0 0 4px; }
.card__meta { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.card__price { margin: 0; font-size: 15px; color: var(--ink-2); }
.card__price b { font-size: 1.2rem; color: var(--ink); }
@media (max-width: 560px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.card { border-radius: var(--radius-sm); }
	.card__body { padding: 12px 12px 14px; }
	.card__title { font-size: 1.05rem; }
	.card__meta { font-size: 12px; margin-bottom: 8px; }
	.card__price, .card__price b { font-size: 14px; }
	.badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 9px; }
}

/* Шаги работы */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.step { position: relative; padding: 28px; background: var(--surface); border-radius: var(--radius); counter-increment: step; }
.step::before { content: "0" counter(step); position: absolute; top: 24px; right: 26px; font: italic 500 1.6rem/1 var(--serif); color: var(--gold); }
.step__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 22px; }
.step__icon .icon { width: 24px; height: 24px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 1024px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Материалы */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split__media { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--radius); overflow: hidden; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__text > p { color: var(--ink-2); font-size: 17px; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; margin: 32px 0 0; padding: 0; }
.props li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border-radius: var(--radius-sm); }
.props img { width: 40px; height: 40px; flex: none; filter: grayscale(1) brightness(.5) sepia(.4); }
.props b { display: block; margin-bottom: 2px; }
.props span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; }
	.split__media { position: static; }
	.split__media img { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .props { grid-template-columns: 1fr; } }

/* Интерьеры */
.interiors { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 18vw, 260px); gap: 16px; }
.interiors .shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
.shot > a { display: block; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.03); }
.shot figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; background: rgb(255 255 255 / .94); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.4; }
.shot figcaption b { font-weight: 600; display: block; }
.shot figcaption a { color: var(--accent); }
@media (max-width: 900px) {
	.interiors { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 560px) {
	.interiors { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.interiors .shot:first-child { grid-column: auto; grid-row: auto; }
}

/* Галерея */
.masonry { columns: 3 320px; column-gap: 16px; }
.masonry .shot { break-inside: avoid; margin-bottom: 16px; }
.masonry .shot img { height: auto; }
.masonry .shot figcaption { position: static; background: none; padding: 12px 4px 4px; border-radius: 0; }

/* Заявка */
.lead { background: var(--ink); color: #f1e9df; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lead h1, .lead h2 { color: #fff; }
.lead h1 em, .lead h2 em { color: #e3b7a8; }
.lead h1 { font-size: clamp(2rem, 2vw + 1rem, 2.8rem); }
.lead__text p { color: #cfc3b7; font-size: 17px; }
.lead__contacts { display: grid; gap: 12px; margin-top: 28px; }
.lead__contacts a { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.lead__contacts a:hover { color: #e3b7a8; }
@media (max-width: 900px) { .lead { grid-template-columns: 1fr; } }

.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.lead-form__title { font-size: 1.6rem; margin-bottom: 6px; }
.lead-form__lead { color: var(--muted); font-size: 15px; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0 18px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.lead-form__note { margin: 0; font-size: 12px; color: var(--muted); max-width: 36ch; }
.lead-form .g-recaptcha { min-height: 78px; }
.form-error { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-weight: 600; margin: 0 0 16px; }
@media (max-width: 560px) { .lead-form__grid { grid-template-columns: 1fr; } }

/* Где купить */
.cities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.city { padding: 28px; background: var(--surface); border-radius: var(--radius); }
.city h3 { font-size: 1.5rem; }
.city ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.city li { font-size: 15px; }
.city li b { display: block; font-weight: 600; }
.city li a { text-decoration: none; color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .cities { grid-template-columns: 1fr; } }

.shop-list { display: grid; gap: 12px; }
.shop { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.shop summary { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 20px 24px; cursor: pointer; list-style: none; }
.shop summary::-webkit-details-marker { display: none; }
.shop summary b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.shop summary span { color: var(--muted); font-size: 15px; }
.shop__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.shop__map { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }
.shop[open] .shop__map { color: var(--ink); }
.shop iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (max-width: 640px) {
	.shop summary { grid-template-columns: 1fr; gap: 8px; }
}
.city-block + .city-block { margin-top: 40px; }
.city-block > h2 { font-size: 1.8rem; }

/* Страница модели */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pgallery__main { position: relative; display: block; aspect-ratio: 1; background: #fff; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.pgallery__main img { width: 100%; height: 100%; object-fit: contain; }
.pgallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pgallery__thumbs button { flex: none; width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: #fff; overflow: hidden; cursor: pointer; transition: border-color .2s; }
.pgallery__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pgallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { position: sticky; top: calc(var(--header-h) + 24px); }
.pinfo h1 { margin-bottom: 12px; }
.pinfo__price { font-size: 17px; color: var(--ink-2); margin-bottom: 24px; }
.pinfo__price b { font: 500 2.2rem/1 var(--serif); color: var(--ink); }
.options { display: grid; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.option { border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.option summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.option summary::-webkit-details-marker { display: none; }
.option summary small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.option summary .option__price { white-space: nowrap; }
.option__body { padding: 0 18px 16px; font-size: 14px; color: var(--ink-2); }
.option__body img { margin-top: 12px; border-radius: 10px; max-height: 220px; width: auto; }
.option--static { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 600; }
.specs { margin: 0 0 28px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.pinfo__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pinfo__note { font-size: 14px; color: var(--muted); }
.pnav { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; }
.pnav a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
@media (max-width: 960px) {
	.product { grid-template-columns: minmax(0, 1fr); }
	.pinfo { position: static; }
}

.swatches { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.swatch { flex: none; width: 132px; margin: 0; scroll-snap-align: start; }
.swatch a { display: block; position: relative; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); }
.swatch a::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211a16' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") no-repeat center / 15px; opacity: 0; transition: opacity .2s; }
.swatch a:hover::after, .swatch a:focus-visible::after { opacity: 1; }
.swatch img { width: 132px; height: 132px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-alt); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.swatch a:hover img { transform: scale(1.06); }
@media (hover: none) {
	/* На телефоне подсказки при наведении нет — показываем значок всегда */
	.swatch a::after { opacity: 1; }
}
.swatch figcaption { margin-top: 8px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.swatch figcaption small { display: block; color: var(--muted); }
.swatch figcaption a { color: inherit; }
.note { font-size: 14px; color: var(--muted); }

/* Текстовые страницы и документы */
.prose { max-width: 72ch; font-size: 17px; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin: 16px 0 8px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.doc .icon { width: 28px; height: 28px; color: var(--accent); }
.doc small { display: block; font-weight: 400; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.contact-card { padding: clamp(24px, 3vw, 40px); background: var(--surface); border-radius: var(--radius); }
.contact-card dl { margin: 0; display: grid; gap: 20px; }
.contact-card dt { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-size: 18px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.contact-card dd a { text-decoration: none; }
.messenger { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bg-alt); color: var(--ink); }
.messenger img { width: 20px; height: 20px; }
.map-frame { border-radius: var(--radius); overflow: hidden; min-height: 420px; background: var(--bg-alt); }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: min(80%, 520px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-top: 40px; }
.slides a { scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; }
.slides img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 404 */
.notfound { text-align: center; padding-block: clamp(64px, 12vw, 160px); }
.notfound b { display: block; font: italic 500 clamp(6rem, 18vw, 12rem)/1.1 var(--serif); color: var(--accent); margin-bottom: 12px; }

/* Подвал */
.site-footer { margin-top: clamp(48px, 7vw, 96px); background: var(--ink); color: #cfc3b7; padding-block: 64px 32px; font-size: 15px; }
.site-footer a { color: #f1e9df; text-decoration: none; }
.site-footer a:hover { color: #e3b7a8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8f8379; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-logo { display: inline-block; background: #f7f3ee; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 20px; }
.footer-logo img { height: 56px; width: auto; }
.footer-contacts { display: grid; gap: 12px; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #4a403a; display: grid; place-items: center; }
.socials img { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #3a322d; font-size: 13px; color: #8f8379; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Мобильная кнопка заявки */
.mobile-cta { display: none; }
@media (max-width: 720px) {
	.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
	.mobile-cta .btn { box-shadow: var(--shadow); }
	body { padding-bottom: 76px; }
	#vk_community_messages { bottom: 84px !important; }
}

/* Просмотр фото */
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; touch-action: pan-y pinch-zoom; overscroll-behavior: contain; }
.lightbox::backdrop { background: rgb(20 14 10 / .9); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto; border-radius: 12px; -webkit-user-drag: none; user-select: none; }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #f1e9df; font-size: 15px; padding-inline: 72px; text-shadow: 0 1px 6px rgb(0 0 0 / .8); }
.lightbox button { position: absolute; width: 64px; height: 64px; border: 0; border-radius: 50%; background: rgb(20 14 10 / .62); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 2px rgb(255 255 255 / .5), 0 6px 22px rgb(0 0 0 / .45); backdrop-filter: blur(6px); transition: background .15s, box-shadow .15s, scale .12s; }
.lightbox button svg { width: 32px; height: 32px; }
.lightbox button:hover { background: rgb(20 14 10 / .85); box-shadow: 0 0 0 2px #fff, 0 8px 26px rgb(0 0 0 / .55); }
.lightbox button:active { scale: .94; }
.lightbox button[hidden] { display: none; }
.lightbox button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 720px) {
	.lightbox button { width: 52px; height: 52px; }
	.lightbox button svg { width: 27px; height: 27px; }
	.lightbox__prev { left: 10px; }
	.lightbox__next { right: 10px; }
	.lightbox__close { top: 10px; right: 10px; }
	.lightbox img { max-width: calc(100vw - 16px); max-height: calc(100vh - 88px); }
}

/* Уведомление после отправки формы */
.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 16px); translate: -50% 0; z-index: 60; display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 16px 20px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow); animation: toast-in .4s cubic-bezier(.2, .7, .2, 1); }
.toast button { background: none; border: 0; color: inherit; cursor: pointer; padding: 4px; }
@keyframes toast-in { from { opacity: 0; translate: -50% -12px; } }

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

/* Старая разметка страницы статуса заказа (order_status.php) */
.page { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
