/* ==========================================================================
   Mebelcraft — токены
   ========================================================================== */
:root {
	--paper: #f5f5f3;      /* фон страницы — нейтральный светлый */
	--white: #ffffff;
	--ink: #1d2124;        /* текст */
	--muted: #666c73;      /* второстепенный текст */
	--line: #dcddd9;       /* линии и рамки */
	--brass: #a8762a;      /* акцент — латунная фурнитура */
	--brass-d: #8a5f1f;
	--forest: #23403c;     /* тёмный фон секций */
	--ok: #2f6b47;
	--err: #a2392f;

	--f-head: "Unbounded", "Arial Black", system-ui, sans-serif;
	--f-body: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;

	--wrap: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--sec: clamp(56px, 8vw, 104px);
	--r-s: 6px;
	--r-l: 14px;
	--header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--brass-d); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec) 0; }
.section__title { font-size: clamp(26px, 3.4vw, 40px); }
.page-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: .6em; }
.empty { color: var(--muted); padding: 24px; border: 1px dashed var(--line); border-radius: var(--r-s); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 999; background: var(--white); padding: 8px 12px; }
.hp { position: absolute; left: -9999px; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Кнопки */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px; border: 0; border-radius: var(--r-s);
	background: var(--brass); color: var(--white); font: 600 16px/1 var(--f-body);
	text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--brass-d); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--brass); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 20px rgba(29, 33, 36, .07); }
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand img { max-height: 48px; width: auto; }
.brand__name { font: 700 20px/1 var(--f-head); text-decoration: none; }

.nav { flex: 1; display: flex; align-items: center; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 500; border-radius: var(--r-s); }
.nav__list > li > a:hover, .nav__list .current-menu-item > a { background: var(--paper); color: var(--ink); }
.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 280px; list-style: none; margin: 0; padding: 8px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
	box-shadow: 0 18px 40px rgba(29, 33, 36, .12);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-s); text-decoration: none; }
.nav .sub-menu a:hover { background: var(--paper); color: var(--ink); }
.menu-icon { width: 36px; height: 36px; object-fit: contain; flex: none; }
.nav__phone { display: none; }

.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.badge { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fc3f1d; color: #fff; font: 700 14px/1 var(--f-body); text-decoration: none; }
.badge--gis { background: #29a33c; font-size: 12px; }
.badge:hover { color: #fff; opacity: .85; }
.tools__phone { font-weight: 600; text-decoration: none; white-space: nowrap; margin-inline: 6px; }
.cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brass); color: #fff; font: 600 11px/18px var(--f-body); text-align: center; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span, .burger span::before, .burger span::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: .2s; }
.burger span { top: 21px; }
.burger span::before { left: 0; top: -7px; }
.burger span::after { left: 0; top: 7px; }
.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { top: 0; transform: rotate(45deg); }
.nav-open .burger span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1000px) {
	.burger { display: block; }
	.tools__phone { display: none; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; flex-direction: column; align-items: stretch;
		padding: 16px var(--gap) 32px; background: var(--white); overflow-y: auto;
		transform: translateX(100%); transition: transform .25s;
	}
	.nav-open { overflow: hidden; }
	.nav-open .nav { transform: none; }
	.nav__list { flex-direction: column; }
	.nav__list > li > a { padding: 14px 4px; font-size: 19px; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px; }
	.nav__phone { display: block; margin-top: 24px; font: 500 22px/1.2 var(--f-head); text-decoration: none; }
}

/* ==========================================================================
   Главный баннер — единственный громкий элемент страницы
   ========================================================================== */
.hero { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; color: var(--white); background: var(--forest); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 26, 25, .82) 0%, rgba(18, 26, 25, .35) 55%, rgba(18, 26, 25, .1) 100%); }
.hero--plain::after { display: none; }
.hero__inner { position: relative; z-index: 1; padding-block: 64px clamp(48px, 7vw, 88px); }
.hero__title { font-weight: 700; font-size: clamp(36px, 6.6vw, 88px); line-height: 1.02; letter-spacing: -.025em; max-width: 13ch; margin-bottom: .35em; }
.hero__text { font-size: clamp(17px, 1.6vw, 20px); max-width: 46ch; opacity: .9; margin-bottom: 28px; }

/* ==========================================================================
   Промо-баннеры
   ========================================================================== */
.promos { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.promo { position: relative; min-height: 340px; border-radius: var(--r-l); overflow: hidden; display: flex; align-items: flex-end; background: var(--forest); color: var(--white); }
.promo--1 { grid-column: 1 / -1; min-height: 420px; }
.promo--plain.promo--2 { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.promo--plain.promo--3 { background: #e9e4da; color: var(--ink); }
.promo__bg { position: absolute; inset: 0; }
.promo__bg img { width: 100%; height: 100%; object-fit: cover; }
.promo:not(.promo--plain)::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(18, 26, 25, .78), rgba(18, 26, 25, .1) 70%); }
.promo__body { position: relative; z-index: 1; padding: clamp(24px, 4vw, 48px); max-width: 560px; }
.promo h2 { font-size: clamp(22px, 2.6vw, 34px); }
.promo p { opacity: .9; }
@media (max-width: 760px) { .promos { grid-template-columns: 1fr; } .promo, .promo--1 { min-height: 300px; } }

/* ==========================================================================
   Наши работы — мозаика
   ========================================================================== */
.works__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; margin-bottom: 28px; }
.works__item { overflow: hidden; border-radius: var(--r-s); background: var(--line); }
.works__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.works__item:nth-child(4) { grid-row: span 2; }
.works__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.works__item:hover img { transform: scale(1.04); }
@media (max-width: 760px) {
	.works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.works__item:nth-child(4) { grid-row: auto; }
}

/* ==========================================================================
   Отзывы
   ========================================================================== */
.reviews { background: var(--forest); color: var(--white); padding-bottom: var(--sec); margin-top: var(--sec); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 32px; }
.reviews__head p { opacity: .75; max-width: 42ch; margin: 0; }
.rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; list-style: none; margin: 0 0 40px; padding: 0; background: rgba(255, 255, 255, .15); border-radius: var(--r-l); overflow: hidden; }
ul.rates li { background: var(--forest); }
ul.rates li > a, ul.rates li > span:first-child { display: block; }
ul.rates a, ul.rates li { text-decoration: none; padding: 24px 28px; }
ul.rates li:has(> a) { padding: 0; }
ul.rates a:hover { background: rgba(255, 255, 255, .06); color: inherit; }
.rates__score { display: block; font: 700 44px/1 var(--f-head); color: #e3b565; }
.rates__score::after { content: " ★"; font-size: .45em; vertical-align: .6em; }
.rates__name { display: block; margin-top: 8px; opacity: .8; }
.reviews__widget iframe { width: 100%; height: 560px; border: 0; border-radius: var(--r-l); background: #fff; margin-bottom: 40px; }
.reel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.reel__item { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-l); background: #000; scroll-snap-align: start; }
.reel__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.reel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.reel__btn:hover { background: #fff; color: var(--forest); }

/* ==========================================================================
   Формы
   ========================================================================== */
.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input[type=text], .form input[type=tel], .form textarea {
	width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-s);
	background: var(--white); font: inherit; color: var(--ink);
}
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(168, 118, 42, .18); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--brass); }
.file { position: relative; display: grid; place-items: center; gap: 2px; padding: 28px 16px; border: 1.5px dashed #b9bab5; border-radius: var(--r-l); background: var(--white); text-align: center; cursor: pointer; }
.file:hover, .file.has-file { border-color: var(--brass); }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file__label { font-weight: 600; }
.file__hint { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.calc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
.calc__media:empty { display: none; }
.calc:has(.calc__media:empty) { grid-template-columns: minmax(0, 640px); }
.calc__body > p { color: var(--muted); max-width: 48ch; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } .calc__media img { aspect-ratio: 16 / 10; } }

/* ==========================================================================
   Каталог WooCommerce
   ========================================================================== */
.catbar ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0; }
.catbar a { display: block; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); text-decoration: none; font-weight: 500; }
.catbar a:hover { border-color: var(--ink); color: var(--ink); }
.catbar a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); }

.shop__layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.shop__layout:not(:has(.shop__filters)) { grid-template-columns: 1fr; }
.shop__filters summary { display: none; }
.filter { margin-bottom: 28px; }
.filter__title { font: 600 15px/1.3 var(--f-body); margin-bottom: 10px; }
.filter ul { list-style: none; margin: 0; padding: 0; }
.filter li { padding: 4px 0; font-size: 15px; }
.filter a { text-decoration: none; }
.filter .chosen a { font-weight: 600; color: var(--brass-d); }
@media (max-width: 900px) {
	.shop__layout { grid-template-columns: 1fr; gap: 16px; }
	.shop__filters { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--white); padding: 0 16px; }
	.shop__filters summary { display: block; padding: 14px 0; font-weight: 600; cursor: pointer; }
}

.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { text-decoration: none; }


	border-radius: var(--r-s) !important; background: var(--ink) !important; color: var(--white) !important; font: 600 15px/1 var(--f-body) !important; padding: 13px 20px !important;
}

/* ==========================================================================
   Блог и страницы
   ========================================================================== */
.prose { max-width: 780px; }
.prose img { border-radius: var(--r-s); }
.prose__cover { margin-bottom: 28px; }
.prose time, .post-card time { color: var(--muted); font-size: 14px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px var(--gap); }
.post-card__img img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-s); margin-bottom: 12px; }
.post-card h2 { font-size: 20px; margin: 4px 0 8px; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--muted); }
.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; }

/* ==========================================================================
   Подвал
   ========================================================================== */
.site-footer { margin-top: var(--sec); background: var(--ink); color: #c9ccd0; padding-top: 56px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #e3b565; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.site-footer .brand__name { color: var(--white); }
.site-footer .custom-logo { max-height: 48px; width: auto; filter: brightness(0) invert(1); }
.site-footer__phone { display: block; margin-top: 20px; font: 500 22px/1.2 var(--f-head); }
.site-footer__menu ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.site-footer__menu li { padding: 5px 0; break-inside: avoid; }
.socials { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 20px; padding: 0; }
.requisites { font-size: 14px; }
.site-footer__small { font-size: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; padding-block: 24px; margin-top: 48px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Попап замера, плавающая кнопка, уведомления
   ========================================================================== */
.zamer-btn { position: fixed; right: 20px; bottom: 20px; z-index: 45; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--brass); color: #fff; font: 600 15px/1 var(--f-body); cursor: pointer; box-shadow: 0 10px 30px rgba(29, 33, 36, .25); }
.zamer-btn:hover { background: var(--brass-d); }
.nav-open .zamer-btn, .modal-open .zamer-btn { display: none; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(18, 22, 24, .6); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-open { overflow: hidden; }
.modal__box { position: relative; width: min(100%, 520px); padding: clamp(24px, 5vw, 40px); background: var(--white); border-radius: var(--r-l); animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px); } }
.modal__box h2 { font-size: 26px; padding-right: 32px; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--muted); }
.ticks { list-style: none; margin: 0 0 20px; padding: 0; }
.ticks li { position: relative; padding: 4px 0 4px 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 6px; border: solid var(--brass); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.benefits dt { font-weight: 600; font-size: 15px; }
.benefits dd { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
@media (max-width: 480px) { .benefits { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; top: calc(var(--header-h) + 16px); z-index: 120; transform: translateX(-50%); width: min(92vw, 480px); padding: 14px 18px; border-radius: var(--r-s); background: var(--ok); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: opacity .3s; }
.toast--err { background: var(--err); }
.toast.is-hidden { opacity: 0; pointer-events: none; }

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 44; display: flex; align-items: center; gap: 16px; max-width: 520px; padding: 14px 16px 14px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: 0 10px 30px rgba(29, 33, 36, .12); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
@media (max-width: 700px) { .cookie { left: 12px; right: 12px; bottom: 84px; } }

/* ==========================================================================
   Страница товара (витрина без корзины)
   ========================================================================== */
.price-from { font-weight: 400; color: var(--muted); font-size: .85em; margin-right: 2px; }
.pp__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.pp__main { border-radius: var(--r-l); overflow: hidden; background: var(--line); }
.pp__main img, .pp__main > div { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pp__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.pp__thumb { padding: 0; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; background: none; cursor: pointer; }
.pp__thumb.is-active { border-color: var(--brass); }
.pp__thumb img, .pp__thumb > div { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pp__info { position: sticky; top: calc(var(--header-h) + 24px); }
.pp__title { font-size: clamp(28px, 3.4vw, 44px); margin-bottom: .3em; }
.pp__price { font: 600 24px/1.2 var(--f-body); margin-bottom: 16px; }
.pp__lead { color: var(--muted); margin-bottom: 24px; max-width: 48ch; }
.pp__want { width: 100%; max-width: 360px; min-height: 56px; font-size: 17px; }
.pp__note { font-size: 14px; color: var(--muted); margin: 10px 0 28px; }
.attrs { margin: 0; border-top: 1px solid var(--line); }
.attrs div { display: grid; grid-template-columns: 44% 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.attrs dt { color: var(--muted); }
.attrs dd { margin: 0; }
.pp__desc { margin-top: var(--sec); }
.pp .related { margin-top: var(--sec); }
.pp .related > h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }
@media (max-width: 900px) { .pp__grid { grid-template-columns: 1fr; } .pp__info { position: static; } }

.modal__product { font: 500 18px/1.3 var(--f-head); color: var(--brass-d); margin: -4px 0 8px; }
.modal__product:empty { display: none; }
.modal__text { color: var(--muted); font-size: 15px; }
.file--small { padding: 16px; }
.file--small .file__label { font-weight: 500; font-size: 15px; }

/* ==========================================================================
   Контакты, FAQ, служебные страницы
   ========================================================================== */
.contacts { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--gap); align-items: stretch; }
.contacts__list { margin: 0; }
.contacts__list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contacts__list dt { font-size: 14px; color: var(--muted); }
.contacts__list dd { margin: 4px 0 0; font: 500 20px/1.3 var(--f-head); }
.contacts__list a { text-decoration: none; }
.contacts__map { min-height: 380px; border-radius: var(--r-l); overflow: hidden; background: var(--line); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }

.prose details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.prose details summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--brass); transition: transform .2s; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > *:not(summary) { color: var(--muted); margin-bottom: 16px; }

/* ==========================================================================
   Классы для оформления страниц (добавляются в редакторе блоков:
   «Дополнительно → Дополнительные CSS-классы»)
   ========================================================================== */
.lead { font-size: 20px; line-height: 1.5; color: var(--ink); }
.muted-lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }
.steps { padding-left: 1.3em; }
.steps li { padding: 6px 0; }
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.about__media { display: grid; gap: 12px; }
.about__media > * { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: var(--sec) 0 0; border-top: 1px solid var(--ink); }
.facts div { padding: 20px 20px 0 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 6px 0 0; font: 700 clamp(28px, 3.4vw, 44px)/1 var(--f-head); }
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px var(--gap); list-style: none; margin: 0; padding: 0; }
.docs p { font-size: 15px; margin-top: 12px; }
.doc { aspect-ratio: 1 / 1.414; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-s); padding: 18% 14%; display: grid; align-content: start; gap: 10px; box-shadow: 0 8px 24px rgba(29, 33, 36, .06); }
.doc span { height: 6px; border-radius: 3px; background: var(--line); }
.doc span:first-child { height: 10px; width: 60%; background: #d8c9ad; margin-bottom: 8px; }
.doc span.short { width: 45%; }
.portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px var(--gap); list-style: none; margin: 0; padding: 0; }
.portfolio figure { margin: 0; }
.portfolio figure > :first-child { aspect-ratio: 4 / 3; border-radius: var(--r-s); overflow: hidden; }
.portfolio figcaption { margin-top: 10px; font-size: 15px; }
.tcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.tcards li { background: var(--white); border-radius: var(--r-l); padding: 28px; border: 1px solid var(--line); }
.tcards footer { display: flex; flex-direction: column; margin-top: 8px; font-size: 15px; }
.tcards footer span { color: var(--muted); }
@media (max-width: 860px) { .about, .tcards { grid-template-columns: 1fr; } .facts { grid-template-columns: repeat(2, 1fr); } .portfolio { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Секции из блоков редактора (паттерны «Мастерская»)
   ========================================================================== */
.entry { padding-bottom: 8px; }
body:not(.home) .entry { padding-top: clamp(32px, 5vw, 64px); }
.entry > .page-title { margin-bottom: .6em; }
.entry > .wp-block-group.alignwide, .entry > .wp-block-columns.alignwide, .entry > .wp-block-gallery.alignwide { margin-block-start: var(--sec); }
.entry > .page-title + * { margin-block-start: 0 !important; }
.entry > .hero:first-child { margin-top: 0; }
.entry > .reviews { margin-block: var(--sec) 0; }

/* Кнопки блоков */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px;
	border-radius: var(--r-s); background: var(--brass); color: var(--white); font: 600 16px/1 var(--f-body); text-decoration: none;
}
.wp-block-button__link:hover { background: var(--brass-d); color: var(--white); }
.wp-block-button.is-light .wp-block-button__link { background: var(--white); color: var(--ink); }
.wp-block-button.is-light .wp-block-button__link:hover { background: var(--brass); color: var(--white); }
.wp-block-button.is-ghost .wp-block-button__link { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.wp-block-button.is-ghost .wp-block-button__link:hover { background: var(--ink); color: var(--white); }

/* Баннер */
.hero.wp-block-group { margin-top: 0; }
.hero > .hero__bg { position: absolute; inset: 0; margin: 0; height: 100%; }
.hero > .hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero > .hero__inner { width: min(100% - 2 * var(--gap), var(--wrap)); margin: 0 auto !important; padding-block: 64px clamp(48px, 7vw, 88px); }
.hero__title { color: inherit; }

/* Промо */
.promos > * { margin: 0 !important; }
.promo > .promo__bg { position: absolute; inset: 0; margin: 0; height: 100%; }
.promo > .promo__bg img { width: 100%; height: 100%; object-fit: cover; }
.promo__body > * { margin-block: 0 .7em; }
.promo h2 { color: inherit; }

/* Наши работы — галерея-мозаика */
.wp-block-gallery.works__grid { display: grid !important; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px !important; margin-bottom: 28px; }
.wp-block-gallery.works__grid > figure.wp-block-image { width: auto !important; margin: 0 !important; height: 100%; border-radius: var(--r-s); overflow: hidden; }
.wp-block-gallery.works__grid img { width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .4s; }
.wp-block-gallery.works__grid > figure:hover img { transform: scale(1.04); }
.wp-block-gallery.works__grid > figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.wp-block-gallery.works__grid > figure:nth-child(4) { grid-row: span 2; }
@media (max-width: 760px) {
	.wp-block-gallery.works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
	.wp-block-gallery.works__grid > figure:nth-child(4) { grid-row: auto; }
}

/* Отзывы */
.reviews.wp-block-group { padding-block: var(--sec); }
.reviews__inner { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }
.reviews__inner .section__title, .reviews__inner h2 { color: inherit; }
.reviews__lead { opacity: .75; max-width: 52ch; }
.wp-block-columns.rates { gap: 1px; background: rgba(255, 255, 255, .15); border-radius: var(--r-l); overflow: hidden; margin: 32px 0 40px; }
.wp-block-columns.rates > .wp-block-column { background: var(--forest); padding: 24px 28px; margin: 0; }
.rates__score.wp-block-heading { margin: 0; color: #e3b565; }
.rates__name { margin: 8px 0 0; opacity: .85; }
.rates__name a { color: inherit; text-decoration: none; }
.rates__name a:hover { color: #e3b565; }
.reel__track.wp-block-group { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.reel__track > * { margin: 0 !important; scroll-snap-align: start; }
.reel__track video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-l); background: #000; }
.reel__track > figure.wp-block-video:empty { display: none; }
.reel__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

/* Форма расчёта */
.wp-block-group.calc { display: block; }
.calc .wp-block-columns { align-items: center; gap: clamp(24px, 5vw, 64px); }
.calc__img { margin: 0; }
.calc__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }

/* О нас, цифры, отзывы текстом, контакты */
.about__media { display: grid; gap: 12px; }
.about__media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-l); }
.wp-block-columns.facts { gap: 0; border-top: 1px solid var(--ink); }
.facts > .wp-block-column { padding: 20px 20px 0 0; }
.facts p { font-size: 14px; color: var(--muted); margin: 0; }
.facts h3 { font: 700 clamp(28px, 3.4vw, 44px)/1 var(--f-head); margin: 6px 0 0; }
.tcards > .wp-block-column { margin: 0; }
.tcards__who { font-size: 15px; color: var(--muted); margin: 0; }
.contacts__label { font-size: 14px; color: var(--muted); margin: 18px 0 0 !important; }
.contacts__value { font: 500 20px/1.3 var(--f-head); margin: 4px 0 0 !important; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contacts__value a { text-decoration: none; }
.contacts__map { min-height: 380px; }
.contacts__map iframe { width: 100%; min-height: 380px; border: 0; border-radius: var(--r-l); }
.map-ph { height: 100%; min-height: 380px; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); border-radius: var(--r-l); background: repeating-linear-gradient(45deg, #e7e8e4 0 12px, #eeefeb 12px 24px); }
.wp-block-group.cta { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 4vw, 48px); }
.cta > * { margin-block: 0 .8em; }

/* Сертификаты и примеры работ (галереи) */
.wp-block-gallery.docs { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px var(--gap) !important; }
.wp-block-gallery.portfolio { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 28px var(--gap) !important; }
.wp-block-gallery.docs > figure, .wp-block-gallery.portfolio > figure { width: auto !important; margin: 0 !important; flex-direction: column !important; align-items: stretch !important; }
.wp-block-gallery.docs img { aspect-ratio: 1 / 1.414; height: auto !important; object-fit: cover; border: 1px solid var(--line); border-radius: var(--r-s); }
.wp-block-gallery.portfolio img { aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; border-radius: var(--r-s); }
.wp-block-gallery.docs figcaption, .wp-block-gallery.portfolio figcaption {
	position: static !important; background: none !important; color: var(--ink) !important; padding: 10px 0 0 !important;
	text-align: left !important; max-height: none !important; font-size: 15px; text-shadow: none !important;
}
@media (max-width: 860px) { .wp-block-gallery.portfolio { grid-template-columns: repeat(2, 1fr); } }

/* Вопросы-ответы */
.wp-block-details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.wp-block-details summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 26px; color: var(--brass); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > *:not(summary) { color: var(--muted); margin-bottom: 16px; }

/* Каталог на страницах */

/* Кнопки администратора (посетители их не видят) */
.admin-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 24px; }
.admin-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; margin-top: 8px;
	border: 1.5px dashed var(--brass); border-radius: var(--r-s); background: #fbf6ec;
	color: var(--brass-d); font: 500 14px/1.2 var(--f-body); text-decoration: none; align-self: flex-start;
}
.admin-chip:hover { background: var(--brass); border-style: solid; color: #fff; }
.admin-tools .admin-chip { margin-top: 0; }


/* ==========================================================================
   Каталог проектов (встроенный, без WooCommerce)
   ========================================================================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px var(--gap); margin: 0; padding: 0; list-style: none; }
.shop__main .cards { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; }
.card__link { display: block; text-decoration: none; }
.card__img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-s); margin-bottom: 14px; background: var(--line); transition: opacity .2s; }
.card__link:hover .card__img { opacity: .88; }
.card__img--empty { display: block; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 2px, transparent 2px 22px), linear-gradient(155deg, #e3ddd2, #b3a58f); }
.card__title { display: block; font: 500 17px/1.3 var(--f-body); margin-bottom: 4px; }
.card__price { display: block; font-weight: 600; margin-bottom: 12px; }
.card__more { margin-top: auto; align-self: flex-start; padding: 11px 18px; border-radius: var(--r-s); background: var(--ink); color: var(--white); font: 600 15px/1 var(--f-body); text-decoration: none; }
.card__more:hover { background: var(--brass); color: var(--white); }
@media (max-width: 1100px) { .cards, .shop__main .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .cards, .shop__main .cards { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; } .card__more { padding: 10px 14px; font-size: 14px; } }
.result-count { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.shop__desc { margin-bottom: 24px; color: var(--muted); }
.shop__filters select { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-s); font: inherit; font-size: 15px; background: var(--white); }
.opt { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.opt input { accent-color: var(--brass); }
.opt__n { color: var(--muted); font-size: 13px; }
.dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.linkbtn { color: var(--muted); font-size: 14px; }
.pp__empty { display: block; aspect-ratio: 4 / 3; }
.pp .related { margin-top: var(--sec); }
.pp .related > h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 24px; }
.nav-links { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.page-numbers { display: inline-block; min-width: 44px; padding: 12px; border-radius: var(--r-s); background: var(--white); text-align: center; text-decoration: none; }
.page-numbers.current { background: var(--ink); color: var(--white); }


/* ==========================================================================
   Выпадающий каталог с иконками
   ========================================================================== */
.nav .sub-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; width: min(600px, 90vw); left: -16px; padding: 12px; }
.nav .sub-menu a { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 12px; font-weight: 500; line-height: 1.25; }
.nav .sub-menu a:hover { background: #f7f1e6; color: var(--ink); }
.menu-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f6efe3; color: var(--brass); flex: none; overflow: hidden; transition: background .15s, color .15s; }
.menu-icon img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.nav .sub-menu a:hover .menu-icon--svg { background: var(--brass); color: #fff; }
.nav .sub-menu .menu-all a .menu-icon { background: var(--paper); color: var(--ink); }
.nav .sub-menu .menu-all a:hover .menu-icon { background: var(--ink); color: #fff; }
.catbar a { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Мобильная версия
   ========================================================================== */
.mbar { display: none; }
@media (max-width: 1000px) {
	.nav .sub-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: auto; gap: 8px; padding: 12px 0 8px; }
	.nav .sub-menu a { flex-direction: row; align-items: center; gap: 10px; padding: 10px; background: var(--paper); border-radius: 12px; font-size: 15px; }
	.nav .sub-menu .menu-icon { width: 40px; height: 40px; border-radius: 10px; }
	.nav .sub-menu .menu-icon svg { width: 24px; height: 24px; }
	.menu-item-has-children > a::after { display: none; }
	.nav__list > li.menu-item-has-children > a { border-bottom: 0; padding-bottom: 4px; }
}
@media (max-width: 760px) {
	:root { --header-h: 60px; --sec: 52px; }
	body { font-size: 16px; padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.badge { display: none; }
	.brand img { max-height: 38px; }

	.mbar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
		box-shadow: 0 -6px 20px rgba(29, 33, 36, .06);
	}
	.mbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 11.5px/1.1 var(--f-body); text-decoration: none; cursor: pointer; }
	.mbar__item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
	.mbar__item--accent { background: var(--brass); color: #fff; margin-left: 4px; }
	.mbar__item:active { background: var(--paper); }
	.mbar__item--accent:active { background: var(--brass-d); }
	.zamer-btn { display: none; }
	.cookie { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	.nav-open .mbar, .modal-open .mbar { display: none; }

	.hero { min-height: 78vh; }
	.hero__title { font-size: clamp(32px, 10vw, 44px); }
	.hero__text { font-size: 16px; }
	.hero .btn, .hero .wp-block-button__link { width: 100%; }
	.promo, .promo--1 { min-height: 260px; }
	.promo__body { padding: 22px; }

	.catbar ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gap) * -1); padding: 0 var(--gap) 4px; scrollbar-width: none; }
	.catbar ul::-webkit-scrollbar { display: none; }
	.catbar a { white-space: nowrap; }

	.card__title { font-size: 15px; }
	.card__price { font-size: 15px; }
	.admin-chip { font-size: 12px; padding: 5px 8px; }

	.pp__thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	.pp__thumb { flex: 0 0 22%; scroll-snap-align: start; }
	.pp__want { max-width: none; }
	.attrs div { grid-template-columns: 1fr; gap: 2px; }

	.modal { align-items: end; padding: 0; }
	.modal__box { width: 100%; border-radius: 18px 18px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; overflow-y: auto; }
	.form input[type=text], .form input[type=tel], .form textarea { font-size: 16px; }

	.site-footer { padding-top: 40px; }
	.site-footer__bottom { margin-top: 28px; }
	.reviews__head { margin-bottom: 20px; }
	.rates__score { font-size: 34px; }
}


/* ==========================================================================
   Логотип «Ваш дом»
   ========================================================================== */
.brand__link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #203133; }
.brand__link:hover { color: #203133; }
.brand__icon { width: 40px; height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 700 19px/1 var(--f-head); letter-spacing: -.01em; text-transform: uppercase; }
.brand__tag { margin-top: 5px; font: 500 12.5px/1 var(--f-body); color: var(--muted); letter-spacing: .02em; }
.brand--footer .brand__link, .brand--footer .brand__link:hover { color: #fff; }
.brand--footer .brand__icon { width: 46px; }
.brand--footer .brand__tag { color: #aeb3b8; }
@media (max-width: 760px) {
	.brand__icon { width: 34px; }
	.brand__link { gap: 10px; }
	.brand__name { font-size: 16px; }
	.brand__tag { font-size: 11.5px; margin-top: 4px; }
}

/* ==========================================================================
   Обязательное согласие на обработку данных
   ========================================================================== */
.check input { width: 18px; height: 18px; flex: none; }
.check.is-error { color: var(--err); }
.check.is-error input { outline: 2px solid var(--err); outline-offset: 2px; }
.check__error { margin: -4px 0 0; padding: 10px 12px; border-radius: var(--r-s); background: #fbeceb; color: var(--err); font-size: 14px; line-height: 1.4; }
.check__error[hidden] { display: none; }
.btn.is-disabled, .wp-block-button__link.is-disabled { opacity: .45; cursor: not-allowed; }
.btn.is-disabled:hover { background: var(--brass); }

.site-footer__mail { display: block; margin-top: 8px; color: #c9ccd0 !important; }
.site-footer__mail:hover { color: #e3b565 !important; }
.wp-block-group.requisites-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px); }
.requisites-block p { font-size: 15px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.requisites-block strong { font-weight: 600; color: var(--muted); }


/* ==========================================================================
   Исправления блока отзывов (2.4)
   ========================================================================== */
.reel__nav[hidden] { display: none !important; }
.reel__track:not(:has(video[src])) { display: none; }
.wp-block-columns.rates { margin-bottom: 0; }
.wp-block-columns.rates a { padding: 0; display: inline; }
.wp-block-columns.rates > .wp-block-column > * { margin-block: 0; }
.wp-block-columns.rates .rates__name { margin-top: 8px; }
.reel__track:has(video[src]) { margin-top: 40px; }

/* Отзывы текстом: карточки на всю ширину контента */
.entry > .wp-block-columns.tcards { max-width: var(--wp--style--global--wide-size, 1240px) !important; }
.wp-block-columns.tcards { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap) !important; margin-block-start: var(--sec); }
.wp-block-columns.tcards > .wp-block-column {
	margin: 0 !important; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
	padding: clamp(22px, 3vw, 32px); display: flex; flex-direction: column; gap: 14px;
}
.wp-block-columns.tcards > .wp-block-column > * { margin: 0; }
.wp-block-columns.tcards > .wp-block-column > p:first-child { font-size: 17px; line-height: 1.6; }
.wp-block-columns.tcards > .wp-block-column > p:first-child::before { content: "“"; display: block; height: 28px; font: 700 48px/1 var(--f-head); color: var(--brass); }
.tcards__who { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); }
.tcards__who strong { color: var(--ink); }
@media (max-width: 760px) { .wp-block-columns.tcards { grid-template-columns: 1fr; } }

/* Отступ между заголовком страницы и тёмным блоком отзывов */
.entry > .page-title + .reviews { margin-top: 24px !important; }


/* ==========================================================================
   Мобильное меню: плитки каталога с иконкой сверху (2.5)
   ========================================================================== */
.nav .sub-menu a > span:last-child { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 1000px) {
	.nav .sub-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav .sub-menu li { min-width: 0; }
	.nav .sub-menu a {
		flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
		gap: 8px; padding: 14px 8px 12px; min-height: 100%; font-size: 14.5px; line-height: 1.2;
	}
	.nav .sub-menu .menu-icon { width: 44px; height: 44px; }
}
@media (max-width: 340px) {
	.nav .sub-menu a { font-size: 13px; padding-inline: 4px; }
}


/* ==========================================================================
   Форма расчёта на телефоне: фото — невысокой полосой (2.6)
   ========================================================================== */
@media (max-width: 781px) {
	.calc .wp-block-columns { gap: 20px; }
	.calc__img img, .calc__media img, .calc__media .ph {
		aspect-ratio: auto !important; height: clamp(140px, 24vh, 200px) !important; width: 100%;
		object-fit: cover; object-position: center 40%; border-radius: var(--r-l);
	}
	.calc .section__title { margin-bottom: .4em; }
}


/* Форма внизу каталога (2.7) */
.calc-catalog { border-top: 1px solid var(--line); margin-top: var(--sec); }
.calc-catalog .calc__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-l); }
