/* Шрифты: Spectral и Onest (Google Fonts, лицензия SIL Open Font License), подключены локально */
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/onest-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:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(../fonts/onest-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;}
@font-face{font-family:'Spectral';font-style:italic;font-weight:300;font-display:swap;src:url(../fonts/spectral-300-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Spectral';font-style:italic;font-weight:300;font-display:swap;src:url(../fonts/spectral-300-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;}
@font-face{font-family:'Spectral';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/spectral-400-italic-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Spectral';font-style:italic;font-weight:400;font-display:swap;src:url(../fonts/spectral-400-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;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/spectral-300-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/spectral-300-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:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/spectral-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/spectral-400-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:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/spectral-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'Spectral';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/spectral-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;}

/* =====================================================================
   K-MEBEL — шаблон для DataLife Engine
   Палитра: белый, камень, графит и «рулеточный» жёлтый для всего, что
   связано с замером. Шрифты: Spectral (заголовки) + Onest (текст).
   ===================================================================== */

:root {
	--bg: #ffffff;
	--stone: #efefec;
	--stone-2: #e4e4df;
	--ink: #1f2326;
	--ink-2: #41474c;
	--muted: #656b70;
	--line: #dcdcd6;
	--line-2: #c9cac4;
	--dark: #1b1f22;
	--dark-2: #252a2e;
	--dark-line: rgba(255, 255, 255, .14);
	--on-dark: #f2f2ef;
	--on-dark-2: #aab0b4;
	--tape: #f0b429;
	--tape-2: #e2a414;
	--ok: #2e7d4f;
	--err: #b3261e;

	--f-display: 'Spectral', Georgia, 'Times New Roman', serif;
	--f-ui: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--sec: clamp(64px, 8.5vw, 124px);
	--hdr-h: 76px;
	--r-sm: 3px;
	--r: 6px;
	--r-lg: 10px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--shadow: 0 18px 50px -12px rgba(17, 20, 22, .28);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
	margin: 0;
	font: 400 17px/1.6 var(--f-ui);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--tape); color: var(--ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--tape); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	margin: 0; padding: .95em 1.45em;
	font: 600 .9375rem/1.15 var(--f-ui); letter-spacing: .005em; text-align: center; text-decoration: none; white-space: nowrap;
	color: #fff; background: var(--ink);
	border: 1px solid transparent; border-radius: var(--r-sm);
	cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: #343a3f; color: #fff; border-color: transparent; }
.btn:active { transform: translateY(1px); background: #343a3f; box-shadow: none; }
.btn .ico { width: 18px; height: 18px; }
.btn--tape { background: var(--tape); color: var(--ink); }
.btn--tape:hover, .btn--tape:active { background: var(--tape-2); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .34); }
.btn--ghost:hover, .btn--ghost:active { background: rgba(255, 255, 255, .06); color: #fff; border-color: #fff; }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover, .btn--line:active { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--lg { padding: 1.12em 1.7em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
	transition: background-color .2s;
}
.icon-btn:hover { background: var(--stone); }
.icon-btn .ico { width: 22px; height: 22px; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--dark); color: var(--on-dark-2); font-size: .8125rem; }
.topbar__in { display: flex; align-items: center; gap: 28px; min-height: 40px; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.topbar__item .ico { width: 16px; height: 16px; color: var(--tape); }
.topbar__nav { display: flex; gap: 24px; margin-left: auto; }
.topbar__nav a, .topbar__social a { color: var(--on-dark-2); text-decoration: none; transition: color .2s; }
.topbar__nav a:hover, .topbar__social a:hover { color: #fff; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { display: grid; place-items: center; width: 30px; height: 30px; }
.topbar__social .ico { width: 16px; height: 16px; }

/* ---------- Шапка ---------- */
.hdr {
	position: sticky; top: 0; z-index: 50;
	height: var(--hdr-h);
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
@supports (backdrop-filter: blur(8px)) { .hdr { background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(12px); } }
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 20, 22, .5); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; flex: none; }
.logo__word {
	position: relative; display: inline-block; padding-bottom: 9px;
	font: 700 1.375rem/1 var(--f-ui); letter-spacing: .08em; white-space: nowrap;
}
/* размерная линия под логотипом */
.logo__word::after {
	content: ""; position: absolute; left: 0; right: .08em; bottom: 0; height: 7px;
	border-left: 1.5px solid var(--tape); border-right: 1.5px solid var(--tape);
	background: linear-gradient(var(--tape), var(--tape)) center / 100% 1.5px no-repeat;
}
.logo__note { padding-left: 16px; border-left: 1px solid var(--line); font-size: .75rem; line-height: 1.3; color: var(--muted); }
.logo--light { color: #fff; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__more-btn {
	position: relative; display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 12px; border: 0; background: none; cursor: pointer;
	font: 500 .9375rem/1.2 var(--f-ui); color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav__list > li > a::after, .nav__more-btn::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
	background: var(--tape); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__list > li > a:hover::after, .nav__list > li > a[aria-current]::after, .nav__more-btn:hover::after, .nav__more-btn[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__more-btn .ico { width: 16px; height: 16px; transition: transform .2s; }
.nav__more-btn[aria-expanded="true"] .ico { transform: rotate(180deg); }
.nav__drop {
	position: absolute; top: calc(100% + 10px); left: 0; z-index: 10;
	min-width: 230px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.nav__more.is-open .nav__drop { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s; }
.nav__drop a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: .9375rem; }
.nav__drop a:hover { background: var(--stone); }

.hdr__actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr__phone { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; font: 600 1.0625rem/1.2 var(--f-ui); white-space: nowrap; }
.hdr__phone span { font-size: .75rem; font-weight: 400; color: var(--muted); }
.hdr__call, .hdr__burger { display: none; }

/* Мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(17, 20, 22, .5); opacity: 0; transition: opacity .25s; }
.drawer.is-open { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
	display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
	padding: 16px 24px calc(28px + env(safe-area-inset-bottom));
	background: #fff; transform: translateX(24px); transition: transform .3s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__nav a { padding: 7px 0; font: 400 1.625rem/1.2 var(--f-display); color: var(--ink); text-decoration: none; }
.drawer__sub { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer__sub a { color: var(--muted); text-decoration: none; font-size: .9375rem; }
.drawer__contact { margin-top: auto; }
.drawer__phone { display: block; font: 600 1.375rem/1.2 var(--f-ui); color: var(--ink); text-decoration: none; }
.drawer__contact p { margin: 4px 0 16px; color: var(--muted); font-size: .875rem; }

/* ---------- Мессенджеры ---------- */
.msgr { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.msgr__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px;
	color: var(--ink); text-decoration: none; font: 500 .9375rem/1.1 var(--f-ui);
	transition: border-color .2s, background-color .2s;
}
.msgr__btn:hover { border-color: var(--ink); }
.msgr__btn .ico { width: 18px; height: 18px; }
a[href^="viber:"] .ico { color: #7360f2; }
a[href*="wa.me"] .ico { color: #1fa855; }
a[href*="instagram.com"] .ico { color: #d62976; }
.topbar a .ico, .ftr__social a .ico { color: inherit; }

/* ---------- Первый экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding-block: clamp(44px, 6.5vw, 96px) clamp(56px, 7.5vw, 112px); }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
	background-size: 56px 56px; background-position: -1px -1px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 60%, transparent 100%);
	mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .4) 60%, transparent 100%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title { margin: 0 0 24px; font: 300 clamp(2.5rem, 1.25rem + 3.9vw, 4.5rem)/1.04 var(--f-display); letter-spacing: -.018em; color: #fff; }
.hero__lead { max-width: 36em; margin: 0 0 36px; font-size: 1.125rem; line-height: 1.6; color: #c3c8cb; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 44px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--dark-line); font-size: .9375rem; color: var(--on-dark); }
.hero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.hero__facts .ico { width: 22px; height: 22px; color: var(--tape); }

.hero__visual { position: relative; margin: 0; padding: 40px 48px 0 0; }
.hero__photo { position: relative; aspect-ratio: 5 / 4; overflow: hidden; border-radius: var(--r-sm); background: var(--dark-2) url("../images/noimage-dark.svg") center / cover no-repeat; }
.hero__shot { display: block; height: 100%; color: #fff; text-decoration: none; }
.hero__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__tag {
	position: absolute; left: 16px; bottom: 16px; max-width: calc(100% - 32px);
	padding: 10px 14px; border-radius: var(--r-sm);
	background: rgba(27, 31, 34, .84); font: 500 .9375rem/1.3 var(--f-ui); color: #fff;
}
.hero__tag small { display: block; margin-bottom: 2px; font-size: .75rem; color: var(--tape); }
.hero__shot:hover .hero__tag { background: rgba(27, 31, 34, .95); }

/* Размерные линии — главный графический мотив */
.dim { position: absolute; display: flex; align-items: center; gap: 12px; color: var(--tape); font: 500 .8125rem/1 var(--f-ui); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dim i { position: relative; flex: 1; background: currentColor; }
.dim span { white-space: nowrap; transition: opacity .5s .55s; }
.dim::before, .dim::after { content: ""; position: absolute; background: currentColor; opacity: .55; transition: opacity .4s; }
.dim i::before { content: ""; position: absolute; width: 1px; height: 13px; background: currentColor; }
.dim--h { top: 4px; left: 0; right: 48px; height: 24px; }
.dim--h i { height: 1px; }
.dim--h i:first-child { transform-origin: left center; }
.dim--h i:last-child { transform-origin: right center; }
.dim--h i:first-child::before { left: 0; top: 0; transform: translate(-50%, -50%) rotate(45deg); }
.dim--h i:last-child::before { right: 0; top: 0; transform: translate(50%, -50%) rotate(45deg); }
.dim--h::before, .dim--h::after { top: 0; bottom: -12px; width: 1px; }
.dim--h::before { left: 0; }
.dim--h::after { right: 0; }
.dim--v { top: 40px; bottom: 0; right: 4px; width: 24px; flex-direction: column; }
.dim--v i { width: 1px; }
.dim--v i:first-child { transform-origin: center top; }
.dim--v i:last-child { transform-origin: center bottom; }
.dim--v i:first-child::before { top: 0; left: 0; transform: translate(-50%, -50%) rotate(45deg); }
.dim--v i:last-child::before { bottom: 0; left: 0; transform: translate(-50%, 50%) rotate(45deg); }
.dim--v span { writing-mode: vertical-rl; transform: rotate(180deg); }
.dim--v::before, .dim--v::after { left: -12px; right: 0; height: 1px; }
.dim--v::before { top: 0; }
.dim--v::after { bottom: 0; }

.js .hero .dim i { transition: transform .8s var(--ease); }
.js .hero .dim--h i { transform: scaleX(0); }
.js .hero .dim--v i { transform: scaleY(0); transition-delay: .35s; }
.js .hero .dim span { opacity: 0; }
.js .hero .dim::before, .js .hero .dim::after { opacity: 0; }
.js .hero.is-in .dim i { transform: none; }
.js .hero.is-in .dim span { opacity: 1; }
.js .hero.is-in .dim::before, .js .hero.is-in .dim::after { opacity: .55; }
.js .hero.is-in .dim--v span { transition-delay: .9s; }

/* ---------- Секции ---------- */
.sec { padding-block: var(--sec); }
.sec--stone { background: var(--stone); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.sec__head--split > div:first-child { max-width: 620px; }
.sec__title { margin: 0 0 16px; font: 400 clamp(2rem, 1.35rem + 2.1vw, 3.125rem)/1.08 var(--f-display); letter-spacing: -.012em; color: inherit; }
.sec__lead { max-width: 58ch; margin: 0; font-size: 1.0625rem; color: var(--muted); }
.sec--dark .sec__lead { color: var(--on-dark-2); }
.sec__more { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- Каталог-плитки ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 17vw, 236px); gap: 12px; }
.cat { position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: var(--r-sm); background: var(--stone-2); color: #fff; text-decoration: none; }
.cat--kitchen { grid-column: span 2; grid-row: span 2; }
.cat--wardrobe { grid-row: span 2; }
.cat__img, .cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.cat__img img { object-fit: cover; transition: transform .7s var(--ease); }
.cat:hover .cat__img img { transform: scale(1.035); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(18, 21, 23, .8) 0%, rgba(18, 21, 23, .28) 42%, rgba(18, 21, 23, 0) 68%); }
.cat__body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.cat__name { display: inline-flex; align-items: center; gap: 10px; font: 400 1.5rem/1.1 var(--f-display); }
.cat--kitchen .cat__name { font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); }
.cat__note { font-size: .875rem; color: rgba(255, 255, 255, .82); }
.cat:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }

/* ---------- Карточки работ ---------- */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(18px, 2.2vw, 30px); }
.works--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.works--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work { display: block; color: inherit; text-decoration: none; }
.work__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--stone-2); }
.sec--stone .work__img { background: var(--stone-2); }
.work__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work__img::after {
	content: "Смотреть проект"; position: absolute; left: 14px; bottom: 14px;
	padding: 8px 12px; border-radius: var(--r-sm); background: #fff; color: var(--ink);
	font: 600 .8125rem/1 var(--f-ui); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease);
}
.work:hover .work__img img { transform: scale(1.03); }
.work:hover .work__img::after, .work:focus-visible .work__img::after { opacity: 1; transform: none; }
.work__body { display: flex; flex-direction: column; gap: 3px; padding-top: 14px; }
.work__title { margin: 0; font: 500 1.0625rem/1.35 var(--f-ui); color: var(--ink); }
.work__cat { font-size: .875rem; color: var(--muted); }
.work:hover .work__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.work-card { min-width: 0; }
.work__edit { display: inline-block; margin-top: 6px; font-size: .8125rem; }
.work__edit a { color: var(--muted); }

/* ---------- Вкладки ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab {
	padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent;
	font: 500 .9375rem/1.2 var(--f-ui); color: var(--ink); cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Этапы ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
/* шкала рулетки */
.steps::before {
	content: ""; position: absolute; left: 0; right: 0; top: 20px; height: 13px;
	border-top: 1px solid var(--ink);
	background:
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 100px) 0 0 / 100% 13px no-repeat,
		repeating-linear-gradient(90deg, rgba(31, 35, 38, .55) 0 1px, transparent 1px 10px) 0 0 / 100% 6px no-repeat;
}
.step { position: relative; padding-top: 60px; }
.step__n { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tape); color: var(--ink); font: 600 1rem/1 var(--f-ui); box-shadow: 0 0 0 6px var(--bg); }
.sec--stone .step__n { box-shadow: 0 0 0 6px var(--stone); }
.step__title { margin: 0 0 8px; font: 600 1.125rem/1.3 var(--f-ui); }
.step p { margin: 0; font-size: .9375rem; color: var(--muted); }
.process-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 52px; padding: 22px 28px; border-radius: var(--r); background: var(--stone); }
.process-cta p { margin: 0; font-size: 1.0625rem; }

/* ---------- Почему мы ---------- */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
.why__photo { position: relative; margin-top: 36px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--stone-2); }
.why__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.why__item { padding: 28px 0 32px; border-top: 1px solid var(--line-2); }
.why__item .ico { width: 30px; height: 30px; margin-bottom: 18px; color: var(--ink); }
.why__item h3 { margin: 0 0 8px; font: 600 1.125rem/1.3 var(--f-ui); }
.why__item p { margin: 0; color: var(--muted); }

/* ---------- Материалы ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 22px 14px; margin: 0; padding: 0; list-style: none; }
.swatches--row { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.swatch img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .07); background: var(--stone); }
.swatch span { display: block; margin-top: 8px; font-size: .75rem; line-height: 1.3; color: var(--muted); }
.js .swatches.is-collapsed .swatch:nth-child(n+19) { display: none; }
.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.brands__label { margin: 0 0 12px; font-size: .875rem; color: var(--muted); }
.brands__list { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0; padding: 0; list-style: none; font: 600 1.375rem/1.2 var(--f-ui); letter-spacing: .14em; color: var(--ink-2); }

/* ---------- Калькулятор ---------- */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.quiz-intro .ticks { margin-top: 28px; }
.quiz { position: relative; display: flex; flex-direction: column; min-height: 470px; padding: clamp(24px, 3.4vw, 44px); background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg); }
.quiz__top { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.quiz__count { margin: 0; font-size: .875rem; color: var(--on-dark-2); white-space: nowrap; }
.quiz__count b { color: #fff; font-weight: 600; }
.quiz__bar { position: relative; flex: 1; height: 9px; border-bottom: 1px solid rgba(255, 255, 255, .25); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 1px, transparent 1px 10px) 0 100% / 100% 5px no-repeat, repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 50px) 0 100% / 100% 9px no-repeat; }
.quiz__bar span { position: absolute; left: 0; bottom: -1px; height: 4px; width: 20%; background: var(--tape); transition: width .45s var(--ease); }
.quiz__step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz__step.is-active { display: block; animation: quizIn .35s var(--ease); }
@keyframes quizIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.quiz__q { float: left; width: 100%; margin: 0 0 24px; padding: 0; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.2 var(--f-display); color: #fff; }
.quiz__q + * { clear: both; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { position: relative; display: block; cursor: pointer; }
.opt--wide { grid-column: 1 / -1; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
	display: flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 14px 18px;
	border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r);
	font: 500 1rem/1.25 var(--f-ui); color: #fff; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.opt small { margin-top: 3px; font-size: .8125rem; font-weight: 400; color: var(--on-dark-2); }
.opt:hover span { border-color: rgba(255, 255, 255, .5); }
.opt input:checked + span { border-color: var(--tape); background: rgba(240, 180, 41, .1); box-shadow: inset 0 0 0 1px var(--tape); }
.opt input:focus-visible + span { outline: 2px solid var(--tape); outline-offset: 2px; }
.opts--inline { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.opt--sm span { min-height: 0; padding: 9px 16px; border-radius: 999px; font-size: .875rem; }
.quiz__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.quiz__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 24px; }
.quiz__back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: var(--on-dark-2); font: 500 .9375rem/1 var(--f-ui); cursor: pointer; }
.quiz__back:hover { color: #fff; }
.quiz__hint { margin: 0 0 0 auto; font-size: .8125rem; color: var(--on-dark-2); }
.quiz__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .875rem; color: var(--on-dark-2); }
.quiz__wa:hover { color: #fff; }
.quiz__wa .ico { color: #25d366 !important; }
.quiz.is-done .quiz__top, .quiz.is-done .quiz__step, .quiz.is-done .quiz__nav { display: none; }

/* ---------- Списки с галочкой ---------- */
.ticks { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 13px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
.ticks--light li { color: var(--on-dark); }
.ticks--light li::before { border-color: var(--tape); }

/* ---------- Отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; padding-top: 28px; border-top: 2px solid var(--ink); }
.review__text { margin: 0; font: 300 italic 1.375rem/1.45 var(--f-display); color: var(--ink); }
.review__text::before { content: "«"; }
.review__text::after { content: "»"; }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__who img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.review__who span { display: flex; flex-direction: column; font-size: .875rem; color: var(--muted); }
.review__who b { font-size: 1rem; font-weight: 600; color: var(--ink); }
.reviews__more { margin: 44px 0 0; color: var(--muted); }
.reviews__more a { color: var(--ink); text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }
.contacts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; margin: 32px 0; }
.contacts__list dt { margin-bottom: 4px; font-size: .8125rem; color: var(--muted); }
.contacts__list dd { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.contacts__list dd a { color: var(--ink); text-decoration: none; }
.contacts__list div:first-child dd a { font-size: 1.25rem; font-weight: 600; }
.contacts__list--stack { grid-template-columns: 1fr; gap: 16px; margin: 0 0 24px; }
.contacts__mapcol { display: flex; flex-direction: column; gap: 14px; }
.contacts__mapcol .contacts__map { flex: 1; }
.map-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.map-link .ico { width: 18px; height: 18px; color: var(--tape-ink, var(--ink)); }
.map-link:hover { text-decoration-color: var(--ink); }
.fb-contacts .map-link { margin-top: 12px; }
.contacts__map { min-height: 440px; overflow: hidden; border-radius: var(--r); background: var(--stone); }
.contacts__map iframe { display: block; width: 100%; height: 100%; min-height: 440px; border: 0; }

/* ---------- CTA перед подвалом ---------- */
.cta-band { margin-top: clamp(64px, 8vw, 112px); padding-block: clamp(44px, 5.5vw, 72px); background: var(--stone); }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta-band__title { margin: 0 0 8px; font: 400 clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem)/1.12 var(--f-display); }
.cta-band__text p { max-width: 52ch; margin: 0; color: var(--muted); }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-band__phone { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; font: 600 1.25rem/1.25 var(--f-ui); }
.cta-band__phone span { font-size: .75rem; font-weight: 400; color: var(--muted); }

/* ---------- Подвал ---------- */
.ftr { padding-top: clamp(56px, 6vw, 88px); background: var(--dark); color: var(--on-dark-2); font-size: .9375rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.ftr__brand p { max-width: 34ch; margin: 22px 0; }
.ftr__social { display: flex; gap: 8px; }
.ftr__social a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--dark-line); border-radius: 50%; color: var(--on-dark); transition: border-color .2s; }
.ftr__social a:hover { border-color: #fff; }
.ftr__social .ico { width: 18px; height: 18px; }
.ftr__title { margin: 0 0 16px; font: 600 .9375rem/1.3 var(--f-ui); color: #fff; }
.ftr__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ftr__col a { color: var(--on-dark-2); text-decoration: none; transition: color .2s; }
.ftr__col a:hover { color: #fff; }
.ftr__phone { display: block; margin-bottom: 8px; font: 600 1.25rem/1.3 var(--f-ui); color: #fff !important; }
.ftr__contacts p { margin: 0 0 6px; }
.ftr__contacts .btn { margin-top: 16px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-block: 22px; border-top: 1px solid var(--dark-line); font-size: .8125rem; }
.ftr__bottom p { margin: 0; }

/* Вход для администратора */
.acct { position: relative; }
.acct__btn { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; color: var(--on-dark-2); font-size: .8125rem; }
.acct__btn::-webkit-details-marker { display: none; }
.acct__btn .ico { width: 16px; height: 16px; }
.acct__btn:hover { color: #fff; }
.acct__pop { position: absolute; right: 0; bottom: calc(100% + 12px); z-index: 20; width: 300px; padding: 20px; border-radius: var(--r); background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.acct__menu { margin: 0; padding: 0; list-style: none; }
.acct__menu a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.acct__menu li:last-child a { border-bottom: 0; }
.acct__menu span { color: var(--muted); }
.acct__links { display: flex; justify-content: space-between; margin: 12px 0 0; font-size: .8125rem; }
.acct__social { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; font-size: .8125rem; }
.acct__social:empty { display: none; }

/* ---------- Плавающая кнопка связи и нижняя панель ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab__btn { display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 12px 30px -6px rgba(17, 20, 22, .45); cursor: pointer; transition: transform .2s, background-color .2s; }
.fab__btn:hover { background: #343a3f; }
.fab__btn .ico { width: 24px; height: 24px; }
.fab__ico-close, .fab__btn[aria-expanded="true"] .fab__ico-open { display: none; }
.fab__btn[aria-expanded="true"] .fab__ico-close { display: inline-block; }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.fab__menu:not([hidden]) .fab__item { animation: fabIn .22s var(--ease) both; }
.fab__menu .fab__item:nth-child(2) { animation-delay: .03s; }
.fab__menu .fab__item:nth-child(3) { animation-delay: .06s; }
.fab__menu .fab__item:nth-child(4) { animation-delay: .09s; }
@keyframes fabIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fab__item { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font: 500 .9375rem/1 var(--f-ui); box-shadow: 0 8px 26px -6px rgba(17, 20, 22, .3); }
.fab__item:hover { background: var(--stone); }
.fab__item .ico { width: 20px; height: 20px; }
.mbar { display: none; }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 22, .62); }
.modal__box { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); width: min(880px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; border-radius: var(--r-lg); background: #fff; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5); }
.modal.is-open .modal__box { animation: modalIn .28s var(--ease); }
.modal.is-open .modal__backdrop { animation: fadeIn .28s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal__aside { position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 40px 32px; background: var(--dark); color: var(--on-dark); }
.modal__aside .ticks { margin-bottom: 0; }
.modal__dim { position: absolute; top: 36px; left: 32px; right: 32px; display: flex; align-items: center; gap: 10px; height: 20px; color: var(--tape); font: 500 .75rem/1 var(--f-ui); letter-spacing: .08em; border-left: 1px solid; border-right: 1px solid; }
.modal__dim i { flex: 1; height: 1px; background: currentColor; }
.modal__aside-title { margin: 0 0 6px; font: 400 1.625rem/1.15 var(--f-display); color: #fff; }
.modal__main { padding: 44px 40px 32px; }
.modal__title { margin: 0 0 8px; font: 400 2.125rem/1.08 var(--f-display); }
.modal__sub { margin: 0 0 24px; color: var(--muted); }
.modal__x { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.modal__x:hover { background: var(--stone); }
.modal__x .ico { width: 22px; height: 22px; }

/* ---------- Формы ---------- */
.field { display: block; margin: 0 0 14px; }
.field__label { display: block; margin-bottom: 6px; font: 500 .8125rem/1.3 var(--f-ui); color: var(--ink-2); }
.field__label em { font-style: normal; font-weight: 400; color: var(--muted); }
.field__input,
.fb__recip select, .searchtable input[type="text"], .searchtable select {
	display: block; width: 100%; height: 50px; margin: 0; padding: 12px 14px;
	font: 400 1rem/1.4 var(--f-ui); color: var(--ink);
	background-color: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm);
	-webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
textarea.field__input { height: auto; min-height: 96px; line-height: 1.5; resize: vertical; }
select.field__input, .fb__recip select, .searchtable select {
	padding-right: 42px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2326' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 15px center;
}
.field__input:focus, .fb__recip select:focus, .searchtable input:focus, .searchtable select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(240, 180, 41, .5); }
.field__input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .15); }
.field__input::placeholder { color: #9a9fa3; }
.field--dark .field__label { color: var(--on-dark-2); }
.field--dark .field__input { background-color: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); color: #fff; }
.field--dark .field__input::placeholder { color: #80878c; }
.field--dark .field__input:focus { border-color: var(--tape); box-shadow: 0 0 0 3px rgba(240, 180, 41, .25); }
.field__row { display: flex; gap: 10px; }
.field__row .field__input { flex: 1; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-note { margin: 12px 0 0; font-size: .75rem; line-height: 1.45; color: var(--muted); }
.sec--dark .form-note { color: var(--on-dark-2); }
.form-error { margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r-sm); background: #fbeceb; color: #7e1a15; font-size: .875rem; line-height: 1.45; }
.form-error a { color: inherit; font-weight: 600; }
.sec--dark .form-error { background: rgba(179, 38, 30, .22); color: #ffdad6; }
.req { font-style: normal; color: var(--err); }
.checkbox { margin: 8px 0; font-size: .9375rem; }
.lead__captcha:empty { display: none; }
.lead__captcha { margin: 4px 0 14px; }
.captcha-code__row { display: flex; align-items: center; gap: 10px; }
.captcha-code__row img, .lead__captcha img { display: block; height: 50px; width: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; cursor: pointer; }
.captcha-code__row .field__input, .lead__captcha .field__input { max-width: 200px; }
.lead__captcha .captcha-code__row { flex-wrap: wrap; }

.done { padding: 28px 8px; text-align: center; }
.done:focus { outline: none; }
.done__mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--tape); color: var(--ink); }
.done__mark .ico { width: 30px; height: 30px; }
.done p { max-width: 40ch; margin: 0 auto 20px; color: var(--muted); }
.done .msgr { justify-content: center; margin: 0; }
.done__title { margin: 0 0 10px; font: 400 2rem/1.1 var(--f-display); color: #fff; }
.done--dark { margin: auto 0; }
.done--dark p { color: var(--on-dark-2); }

/* ---------- Поиск ---------- */
.search-pop { position: fixed; inset: 0; z-index: 100; }
.search-pop__backdrop { position: absolute; inset: 0; background: rgba(17, 20, 22, .55); animation: fadeIn .2s; }
.search-pop__box { position: relative; display: flex; align-items: center; gap: 12px; padding: 28px var(--gut); background: #fff; box-shadow: var(--shadow); animation: dropIn .25s var(--ease); }
@keyframes dropIn { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.search-pop__form { display: flex; flex: 1; align-items: center; gap: 14px; max-width: 980px; margin: 0 auto; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.search-pop__form > .ico { width: 26px; height: 26px; color: var(--muted); }
.search-pop__form input[type="search"] { flex: 1; width: auto; min-width: 0; height: 56px; padding: 0; border: 0; background: transparent; font: 300 clamp(1.25rem, 1rem + 1vw, 1.875rem)/1.2 var(--f-display); color: var(--ink); -webkit-appearance: none; appearance: none; box-sizing: border-box; }
.search-pop__form input[type="search"]:focus { outline: none; background: transparent; }
#searchsuggestions { z-index: 2200 !important; }

/* ---------- Внутренние страницы ---------- */
.pagehead { padding: 22px 0 0; }
.pagehead--cat { padding: 24px 0 36px; background: var(--stone); }
.crumbs-wrap { padding-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs > *:not(:last-child)::after { content: "/"; margin: 0 10px; color: #b2b4ae; }
.crumbs__current { color: var(--ink); }
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px 64px; align-items: end; margin-top: 28px; }
.pagehead__title { margin: 0 0 16px; font: 400 clamp(2.25rem, 1.45rem + 2.6vw, 3.75rem)/1.04 var(--f-display); letter-spacing: -.014em; }
.pagehead__lead { max-width: 62ch; margin: 0; font-size: 1.0625rem; color: var(--ink-2); }
.pagehead__offer { padding: 22px 24px 24px; border-top: 3px solid var(--tape); border-radius: var(--r-sm); background: #fff; }
.pagehead__offer p { margin: 0 0 16px; font-size: .9375rem; color: var(--ink-2); }
.pagehead__offer .pagehead__offer-title { margin-bottom: 6px; font: 600 1.0625rem/1.3 var(--f-ui); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { display: inline-flex; align-items: center; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; font: 500 .875rem/1.2 var(--f-ui); white-space: nowrap; transition: border-color .2s, background-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip--sm { padding: 6px 12px; font-size: .8125rem; }

.content { padding-top: clamp(32px, 4vw, 56px); }
main > .content:last-child { padding-bottom: clamp(64px, 8vw, 112px); }
.content--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(18px, 2.2vw, 30px); align-items: start; }
.content--grid > :not(.work-card) { grid-column: 1 / -1; }
.content--project { padding-top: 8px; }

/* Сообщения DLE */
.notice { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 32px; padding: 20px 24px; border: 1px solid #ecd9a6; border-radius: var(--r); background: #fdf7e7; }
.notice__ico { width: 24px; height: 24px; color: var(--tape-2); }
.notice__title { margin: 0 0 4px; font-weight: 600; }
.notice__text { color: var(--ink-2); }
.notice__text a { color: var(--ink); }

/* Постраничная навигация */
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.pager__pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pager__pages > a, .pager__pages > span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font: 500 .9375rem/1 var(--f-ui); transition: border-color .2s; }
.pager__pages > a:hover { border-color: var(--ink); }
.pager__pages > span { border-color: var(--ink); background: var(--ink); color: #fff; }
.pager__pages > span.nav_ext { border-color: transparent; background: none; color: var(--muted); }
.pager__arrow > a, .pager__arrow > span { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); }
.pager__arrow > a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.pager__arrow > span { opacity: .35; }
.pager--split { justify-content: flex-start; margin: 24px 0; }
.pager__label { font-size: .875rem; color: var(--muted); }

/* ---------- Страница проекта ---------- */
.project__head { max-width: 900px; padding: 18px 0 28px; }
.project__title { margin: 16px 0 12px; font: 400 clamp(2.25rem, 1.45rem + 2.6vw, 3.5rem)/1.06 var(--f-display); letter-spacing: -.014em; }
.project__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-size: .875rem; color: var(--muted); }
.project__meta > span:empty { display: none; }
.project__edit a { color: var(--muted); }
.project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3.6vw, 56px); align-items: start; }
.project__aside { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 22px; }
.project__story { margin-top: 32px; }
.project__story.is-empty { display: none; }
.project__share p { margin: 0 0 8px; font-size: .8125rem; color: var(--muted); }

.order-card { padding: 28px; border-radius: var(--r); background: var(--dark); color: var(--on-dark); }
.order-card__title { margin: 0 0 10px; font: 400 1.75rem/1.15 var(--f-display); color: #fff; }
.order-card > p { margin: 0; color: var(--on-dark-2); }
.order-card .ticks li { color: var(--on-dark); }
.order-card .ticks li::before { border-color: var(--tape); }
.order-card__phone { display: flex; flex-direction: column; align-items: center; margin: 18px 0 14px; color: #fff; text-decoration: none; font: 600 1.25rem/1.25 var(--f-ui); }
.order-card__phone span { font-size: .75rem; font-weight: 400; color: var(--on-dark-2); }
.msgr--compact { flex-wrap: nowrap; margin: 0; }
.msgr--compact .msgr__btn { flex: 1; border-color: var(--dark-line); color: var(--on-dark); }
.msgr--compact .msgr__btn:hover { border-color: #fff; }

/* Галерея */
.gallery { display: grid; gap: 10px; }
.gallery:empty { display: none; }
.gallery__stage { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-sm); background: var(--stone); }
.gallery__main { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.gallery__main img.is-loading { opacity: .25; }
.gallery__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3); cursor: pointer; transform: translateY(-50%); transition: background-color .2s; }
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count, .gallery__zoom { position: absolute; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(27, 31, 34, .78); color: #fff; font: 500 .8125rem/1 var(--f-ui); pointer-events: none; }
.gallery__count { left: 14px; }
.gallery__zoom { right: 14px; }
.gallery__zoom .ico { width: 15px; height: 15px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.gallery__thumb { flex: 0 0 96px; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 2px; background: var(--stone); opacity: .55; cursor: pointer; transition: opacity .2s, box-shadow .2s; }
.gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: .85; }
.gallery__thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }

/* Лайтбокс */
.lb { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(12, 14, 15, .96); animation: fadeIn .2s; touch-action: pan-y; }
.lb__img { max-width: calc(100vw - 180px); max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lb__btn { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; transition: background-color .2s, border-color .2s; }
.lb__btn:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.lb__btn .ico { width: 24px; height: 24px; }
.lb__prev { left: 28px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 28px; top: 50%; transform: translateY(-50%); }
.lb__close { top: 20px; right: 20px; }
.lb__count { position: absolute; top: 36px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .72); font-size: .875rem; }

/* Декоры (kupe.tpl) */
.decors { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.decors__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.decors__title { margin: 0; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--f-display); }
.decors__head p { max-width: 62ch; margin: 0; color: var(--muted); }
.decors__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.related { margin-top: clamp(56px, 7vw, 96px); }
.related__title { margin: 0 0 28px; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--f-display); }

/* Комментарии */
.project__comments { max-width: 820px; margin-top: clamp(48px, 6vw, 80px); }
.project__comments:empty { display: none; }
.comm { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.comm__av img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--stone); }
.comm__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .8125rem; color: var(--muted); }
.comm__author, .comm__author a { font: 600 .9375rem/1.3 var(--f-ui); color: var(--ink); text-decoration: none; }
.comm__rate { display: inline-flex; gap: 6px; align-items: center; }
.comm__vote { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; }
.comm__text { margin-top: 8px; font-size: 1rem; }
.comm__sign { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .8125rem; color: var(--muted); }
.comm__tools { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-size: .8125rem; }
.comm__tools li:empty { display: none; }
.comm__tools a { color: var(--muted); }
.comm__tools a:hover { color: var(--ink); }
.comm-news { margin: 24px 0 0; font-weight: 600; }
.addcomm { margin-top: 32px; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--stone); }
.addcomm__title { margin: 0 0 6px; font: 400 1.75rem/1.15 var(--f-display); }
.addcomm__lead { margin: 0 0 20px; color: var(--muted); }
.addcomm__editor textarea, .addcomm .bb-editor textarea { min-height: 140px; }

/* ---------- Текстовые страницы ---------- */
.text { font-size: 1.0625rem; line-height: 1.7; color: var(--ink-2); }
.text > :first-child { margin-top: 0; }
.text > :last-child { margin-bottom: 0; }
.text h2 { margin: 1.6em 0 .6em; font: 400 1.875rem/1.15 var(--f-display); color: var(--ink); }
.text h3 { margin: 1.5em 0 .5em; font: 600 1.25rem/1.3 var(--f-ui); color: var(--ink); }
.text p { margin: 0 0 1em; }
.text a { color: var(--ink); text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.text img { max-width: 100%; height: auto; border-radius: 2px; }
.text ul, .text ol { margin: 0 0 1em; padding-left: 1.3em; }
.text li { margin-bottom: .4em; }
.text table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.text td, .text th { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.text blockquote, .text .quote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tape); background: none; font: 300 italic 1.25rem/1.5 var(--f-display); color: var(--ink); }
.text blockquote::before, .text .quote::before { content: none; }

.article { max-width: 820px; }
.article--wide { max-width: none; }
.article__title { margin: 0 0 24px; font: 400 clamp(2.25rem, 1.45rem + 2.6vw, 3.5rem)/1.06 var(--f-display); letter-spacing: -.014em; }
.article__lead { max-width: 60ch; margin: 0 0 40px; font-size: 1.1875rem; color: var(--ink-2); }
.article__body { max-width: 760px; }
.article__body:empty { display: none; }

/* О компании */
.about__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 64px; align-items: start; padding-bottom: 40px; }
.about__lead { font-size: 1.1875rem; }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.about__facts li { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 28px 0; }
.about__facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.about__facts b { font: 400 2rem/1.1 var(--f-display); }
.about__facts span { color: var(--muted); }
.about__block { margin-top: clamp(48px, 6vw, 80px); }
.about__title { margin: 0 0 28px; font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1.1 var(--f-display); }
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; font-size: 1.0625rem; color: var(--ink-2); }
.about__cols p { margin: 0; }
.about__works-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.about__works-head .about__title { margin: 0; }
.steps--compact .step { padding-top: 56px; }
.steps--compact .step__title { font-size: 1rem; }

/* Доставка и оплата */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-bottom: 40px; }
.term { padding: 30px 0 34px; border-top: 1px solid var(--line-2); }
.term .ico { width: 32px; height: 32px; margin-bottom: 18px; }
.term__title { margin: 0 0 4px; font: 600 1.125rem/1.3 var(--f-ui); }
.term__price { margin: 0 0 12px; font: 400 1.375rem/1.25 var(--f-display); }
.term p:last-child { margin: 0; color: var(--muted); }

/* Обратная связь */
.fb { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fb__lead { max-width: 56ch; margin: -6px 0 28px; color: var(--ink-2); }
.fb__form .btn { margin-top: 6px; }
.fb-contacts { position: sticky; top: calc(var(--hdr-h) + 24px); padding: 28px; border-radius: var(--r); background: var(--stone); }
.fb-contacts__title { margin: 0 0 20px; font: 400 1.75rem/1.1 var(--f-display); }
.fb-contacts__map { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--stone-2); }
.fb-contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.fb-contacts__legal { margin: 16px 0 0; font-size: .75rem; color: var(--muted); }

/* Поиск по сайту */
.searchbox { padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--stone); }
.searchbox .article__title { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
.searchtable table { width: 100%; border-collapse: collapse; }
.searchtable td { padding: 6px 8px 6px 0; vertical-align: middle; }
.searchtable fieldset { margin: 0 0 12px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.searchtable legend { padding: 0 6px; font-size: .8125rem; color: var(--muted); }
.searchbox__msg { margin: 16px 0 0; color: var(--ink-2); }

/* Формы пользователей */
.formpage { max-width: 560px; }
.formpage--wide { max-width: 860px; }
.formpage__lead { margin: 0 0 24px; color: var(--ink-2); }
.formpage__lead p { margin: 0; }
.profile__card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; }
.profile__av { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; background: var(--stone); }
.profile__name { margin: -14px 0 0; color: var(--muted); }
.profile__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 24px; margin: 24px 0; }
.profile__list dt { font-size: .8125rem; color: var(--muted); }
.profile__list dd { margin: 0; }
.profile__options { margin-top: 40px; padding: 28px; border-radius: var(--r); background: var(--stone); }
.is-online { color: var(--ok); }
.userpop { display: flex; gap: 16px; font-size: .875rem; }
.userpop__av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.userpop__list { margin: 0; padding: 0; list-style: none; }
.pm-status { margin: 16px 0 24px; font-size: .875rem; color: var(--muted); }
.pm-new { margin-top: 32px; }
.pm-subj { margin: 10px 0 0; font: 600 1.125rem/1.3 var(--f-ui); }
.pmlist table { width: 100%; }
.poll { padding: 20px; border-radius: var(--r); background: var(--stone); }
.poll__title { margin: 0 0 12px; font-weight: 600; }
.poll__votes, .poll__more { font-size: .875rem; color: var(--muted); }
.stats__period { margin: 0 0 32px; padding: 0; list-style: none; }
.stats__period li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stats__groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.stats__group h2 { margin: 0 0 12px; font: 600 1.0625rem var(--f-ui); }
.stats__group ul { margin: 0; padding: 0; list-style: none; }
.stats__group li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.table-wrap { overflow-x: auto; }
.tag_list a { display: inline-block; margin: 0 6px 8px 0; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .875rem; }
.catmenu { margin: 0; padding: 0; list-style: none; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1200px) {
	.logo__note { display: none; }
	.hdr__in { gap: 20px; }
	.nav__list > li > a, .nav__more-btn { padding-inline: 9px; }
	.nav__list > li > a::after, .nav__more-btn::after { left: 9px; right: 9px; }
}
@media (max-width: 1100px) {
	.nav { display: none; }
	.hdr__burger { display: inline-grid; }
	.works--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.works--4 > :nth-child(n+4) { display: none; }
	.swatches--row { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
	.steps::before { display: none; }
	.step { padding-top: 56px; border-top: 1px solid var(--ink); }
	.step__n { top: -20px; }
	.ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.project__grid { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (max-width: 900px) {
	:root { --hdr-h: 64px; }
	body { font-size: 16px; }
	.topbar { display: none; }
	.hero__in { grid-template-columns: 1fr; }
	.hero__visual { padding: 34px 40px 0 0; }
	.hero__facts { margin-top: 32px; }
	.works, .works--3, .content--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.works > :nth-child(n+5) { display: none; }
	.works--4 > :nth-child(4) { display: block; }
	.why, .quiz-wrap, .contacts, .fb, .about__head, .decors__head { grid-template-columns: 1fr; }
	.why__intro { position: static; }
	.why__photo { display: none; }
	.reviews { grid-template-columns: 1fr; gap: 36px; }
	.pagehead__grid { grid-template-columns: 1fr; align-items: start; }
	.pagehead__offer { display: none; }
	.project__grid { grid-template-columns: 1fr; }
	.project__aside { position: static; }
	.terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fb-contacts { position: static; }
	.stats__groups { grid-template-columns: 1fr; }
	.contacts__map, .contacts__map iframe { min-height: 340px; }
}
@media (max-width: 760px) {
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.hdr__phone, .hdr__cta, .js-search-open { display: none; }
	.hdr__call { display: inline-grid; }
	.hdr__actions { gap: 4px; margin-right: -8px; }
	.logo__word { font-size: 1.25rem; }
	.mbar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
		background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(17, 20, 22, .5);
	}
	.mbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 6px 4px; border: 0; border-radius: var(--r); background: none; color: var(--ink); text-decoration: none; font: 500 .75rem/1.1 var(--f-ui); cursor: pointer; }
	.mbar__btn .ico { width: 22px; height: 22px; }
	.mbar__btn--tape { flex-direction: row; gap: 8px; background: var(--tape); font-size: .875rem; font-weight: 600; }
	.fab { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); }
	.fab__btn { display: none; }

	.sec__head--split { display: block; }
	.tabs { flex-wrap: nowrap; overflow-x: auto; margin: 24px calc(var(--gut) * -1) 0; padding: 0 var(--gut) 4px; scrollbar-width: none; }
	.tabs::-webkit-scrollbar { display: none; }
	.chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding: 0 var(--gut) 4px; scrollbar-width: none; }
	.chips::-webkit-scrollbar { display: none; }
	.cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 8px; }
	.cat__body { left: 14px; right: 14px; bottom: 12px; }
	.cat__name { font-size: 1.25rem; }
	.cat__note { display: none; }
	.cat--kitchen .cat__note { display: block; }
	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { padding: 0 0 28px 64px; border-top: 0; }
	.step__n { top: 0; }
	.steps::before { display: block; left: 19px; right: auto; top: 0; bottom: 0; width: 13px; height: auto; border-top: 0; border-left: 1px solid var(--ink); background: repeating-linear-gradient(180deg, rgba(31, 35, 38, .55) 0 1px, transparent 1px 10px) 0 0 / 6px 100% no-repeat; }
	.process-cta { padding: 20px; }
	.why__list { grid-template-columns: 1fr; }
	.why__item { padding: 22px 0 24px; }
	.swatches--row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
	.swatches { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
	.brands { grid-template-columns: 1fr; }
	.brands__list { font-size: 1.125rem; gap: 8px 28px; }
	.opts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.quiz { min-height: 0; }
	.quiz__fields, .form-row, .form-row--3 { grid-template-columns: 1fr; }
	.quiz__hint { display: none; }
	.contacts__list { grid-template-columns: 1fr; gap: 14px; }
	.ftr__top { grid-template-columns: 1fr; gap: 32px; }
	.ftr__bottom { flex-direction: column; align-items: flex-start; }
	.modal { padding: 0; align-items: end; }
	.modal__box { grid-template-columns: 1fr; width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
	.modal__aside { display: none; }
	.modal__main { padding: 32px 20px calc(24px + env(safe-area-inset-bottom)); }
	.modal__title { font-size: 1.875rem; }
	.lb__img { max-width: 100vw; max-height: calc(100vh - 160px); max-height: calc(100dvh - 160px); }
	.lb__prev, .lb__next { top: auto; bottom: 28px; transform: none; width: 52px; height: 52px; }
	.lb__prev { left: calc(50% - 64px); }
	.lb__next { right: calc(50% - 64px); }
	.gallery__nav { width: 40px; height: 40px; }
	.gallery__thumb { flex-basis: 72px; }
	.gallery__zoom { display: none; }
	.terms { grid-template-columns: 1fr; }
	.about__facts { grid-template-columns: 1fr; }
	.about__facts li, .about__facts li + li { padding: 18px 0; border-left: 0; }
	.about__facts li + li { border-top: 1px solid var(--line); }
	.about__cols { grid-template-columns: 1fr; }
	.profile__card { grid-template-columns: 1fr; }
	.cta-band__actions { width: 100%; }
	.cta-band__actions .btn { flex: 1; }
	.search-pop__box { padding: 16px var(--gut); }
	.search-pop__form .btn { display: none; }
	.msgr--compact { flex-wrap: wrap; }
}
@media (max-width: 420px) {
	.works, .works--3, .content--grid { grid-template-columns: 1fr; }
	.works > :nth-child(n+4) { display: none; }
	.hero__cta .btn { flex: 1 1 100%; }
	.hero__visual { padding: 30px 32px 0 0; }
	.dim { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
	.topbar, .hdr, .drawer, .fab, .mbar, .modal, .search-pop, .cta-band, .ftr, .project__aside, .decors, .related, .project__comments { display: none !important; }
	body { padding: 0; }
}

/* =====================================================================
   Стили для служебных элементов DLE (диалоги, загрузка, подсказки поиска)
   ===================================================================== */
#loading-layer { background: rgba(255, 255, 255, .85) !important; }
#loading-layer::before { background-color: var(--tape) !important; }
#loading-layer::after { background-color: var(--ink) !important; }
.ui-widget-overlay { background: rgba(17, 20, 22, .62) !important; opacity: 1 !important; z-index: 998; }
.ui-dialog { z-index: 999; border: 0 !important; border-radius: var(--r-lg) !important; background: #fff !important; color: var(--ink) !important; font: 400 1rem/1.55 var(--f-ui) !important; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .5) !important; max-width: calc(100vw - 24px); }
.ui-dialog-titlebar { padding: 18px 56px 16px 22px !important; border-bottom: 1px solid var(--line) !important; }
.ui-dialog-title { float: none !important; font-weight: 600 !important; }
.ui-dialog-content { padding: 20px 22px !important; }
.ui-dialog .ui-dialog-buttonpane { padding: 14px 22px 20px !important; border-top: 0 !important; text-align: right !important; }
.ui-dialog .ui-button, .ui-button { height: auto !important; margin: 0 0 0 8px !important; padding: 11px 20px !important; border: 0 !important; border-radius: var(--r-sm) !important; background: var(--tape) !important; color: var(--ink) !important; font: 600 .875rem/1 var(--f-ui) !important; cursor: pointer; }
.ui-dialog .ui-button:hover, .ui-button:hover { background: var(--tape-2) !important; }
.ui-dialog .ui-dialog-titlebar-close { right: 12px !important; }
#searchsuggestions { max-width: min(560px, calc(100vw - 32px)) !important; border-radius: var(--r) !important; box-shadow: var(--shadow) !important; font-family: var(--f-ui); }
#searchsuggestions a:hover { background: var(--stone) !important; }
#dropmenudiv { border-radius: var(--r) !important; font-family: var(--f-ui); }
#dropmenudiv a:hover { background: var(--ink) !important; color: #fff !important; }
.bb-editor textarea { padding: 12px !important; border: 1px solid var(--line-2) !important; border-radius: 0 0 var(--r-sm) var(--r-sm); font: 400 1rem/1.5 var(--f-ui) !important; }
.voteprogress span, .pollprogress span { background: var(--tape) !important; }
.highslide-wrapper, .highslide-outline { background: #fff; }
