/* ==========================================================================
   SteelBuild — основной стиль
   Все цвета и шрифты берутся из CSS-переменных, которые задаются
   в «Внешний вид → Настроить» (функция sb_css_vars()). Не меняйте цвета здесь.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
	--c-accent: #CC4A12;
	--c-primary: #2A3036;
	--c-dark: #15181B;
	--c-text: #15181B;
	--c-muted: #5B636B;
	--c-bg: #FFFFFF;
	--c-surface: #ECEAE6;
	--radius: 2px;
	--container: 1280px;
	--fs-base: 16px;
	--fw-heading: 600;
	--ff-heading: system-ui, sans-serif;
	--ff-body: system-ui, sans-serif;
	--ff-mono: ui-monospace, Menlo, Consolas, monospace;

	/* Производные оттенки — вычисляются автоматически */
	--c-accent-hover: color-mix(in srgb, var(--c-accent) 86%, #000);
	--c-accent-on-dark: color-mix(in srgb, var(--c-accent) 82%, #fff);
	--c-accent-soft: color-mix(in srgb, var(--c-accent) 9%, var(--c-bg));
	--c-primary-soft: color-mix(in srgb, var(--c-primary) 8%, var(--c-bg));
	--c-body: color-mix(in srgb, var(--c-primary) 92%, var(--c-text));
	--c-border: color-mix(in srgb, var(--c-surface) 72%, var(--c-muted) 28%);
	--c-line: color-mix(in srgb, var(--c-surface) 88%, var(--c-muted) 12%);
	--c-dark-2: color-mix(in srgb, var(--c-dark) 85%, #fff);
	--c-on-dark: #fff;
	--c-on-dark-muted: color-mix(in srgb, #fff 80%, var(--c-dark));
	--c-on-dark-dim: color-mix(in srgb, #fff 55%, var(--c-dark));
	--radius-lg: var(--radius);
	--radius-sm: var(--radius);
	--shadow-sm: 0 1px 2px rgb(21 24 27 / .06);
	--shadow: 0 20px 40px -24px rgb(21 24 27 / .45);
	--shadow-lg: 0 24px 56px -32px rgb(21 24 27 / .45);
	--gap: clamp(16px, 2vw, 20px);
	--section: clamp(64px, 8vw, 120px);
	--header-h: 76px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--grid-light: linear-gradient(rgb(21 24 27 / .055) 1px, transparent 1px), linear-gradient(90deg, rgb(21 24 27 / .055) 1px, transparent 1px);
	--grid-dark: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
	--hatch: repeating-linear-gradient(45deg, var(--c-border) 0 1px, transparent 1px 9px);

	--fs-h1: clamp(2.2rem, 1.2rem + 3.1vw, 4rem);
	--fs-h2: clamp(2rem, 1.4rem + 1.9vw, 3rem);
	--fs-h3: clamp(1.15rem, 1rem + .5vw, 1.45rem);
	--fs-lead: clamp(1.06rem, .98rem + .35vw, 1.25rem);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--ff-body);
	font-size: var(--fs-base);
	line-height: 1.6;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--c-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ff-heading);
	font-weight: var(--fw-heading);
	line-height: 1.1;
	letter-spacing: -.025em;
	color: var(--c-dark);
	margin: 0 0 .5em;
	text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
::selection { background: var(--c-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
:root { --pad: clamp(16px, 4vw, 48px); }
.container--narrow { max-width: calc(820px + 40px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--c-accent); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.muted { color: var(--c-muted); }
.small { font-size: .875rem; }
.lead { font-size: var(--fs-lead); color: var(--c-muted); }
.hp { position: absolute; left: -9999px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--ff-mono); font-size: .75rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); margin: 0 0 .8em; line-height: 1.3; }
.eyebrow:empty { display: none; }
.icon { flex-shrink: 0; }

/* ---------- 3. Кнопки, чипы, метки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 22px; border: 1.5px solid transparent; border-radius: var(--radius);
	font-family: var(--ff-body); font-weight: 600; font-size: .94rem; line-height: 1.2; text-decoration: none; text-align: center;
	transition: background .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-accent { background: var(--c-accent); color: #fff; }
.btn-accent:hover { background: var(--c-accent-hover); color: #fff; }
.btn-outline { border-color: var(--c-dark); color: var(--c-dark); background: transparent; }
.btn-outline:hover { background: var(--c-dark); color: #fff; }
.btn-ghost { border-width: 1px; border-color: rgb(255 255 255 / .4); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--c-dark); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1rem; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn-block { width: 100%; white-space: normal; }
.chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--radius);
	border: 1px solid var(--c-border); background: var(--c-bg); color: var(--c-text); font-size: .875rem; font-weight: 500; text-decoration: none;
}
.chip--light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .3); }
a.chip:hover { border-color: var(--c-dark); background: var(--c-dark); color: #fff; }
.price-tag { font-weight: 600; color: var(--c-accent); font-family: var(--ff-heading); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--c-dark); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* Технические метки «голосом чертежа» */
.tag {
	position: absolute; left: 14px; top: 14px; z-index: 1;
	padding: 4px 8px; background: var(--c-bg); color: var(--c-dark);
	font-family: var(--ff-mono); font-size: .69rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4;
}
.tag--dark { background: var(--c-dark); color: #fff; }
.axis {
	width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1.2px solid currentColor;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--ff-mono); font-size: .8rem; font-weight: 400; letter-spacing: 0; color: var(--c-dark);
}

/* ---------- 4. Верхняя панель и шапка ---------- */
.topbar { background: var(--c-dark); color: var(--c-on-dark-dim); font-size: .8rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; }
.topbar__info, .topbar__links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar a { color: var(--c-on-dark-muted); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar__msg { padding: 2px 10px; border: 1px solid rgb(255 255 255 / .16); border-radius: var(--radius); font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.topbar__msg--whatsapp:hover { background: #25D366; border-color: #25D366; }
.topbar__msg--telegram:hover { background: #229ED9; border-color: #229ED9; }
.topbar__msg--max:hover { background: #6A3CF5; border-color: #6A3CF5; }

/* Шапка — сплошной белый фон без backdrop-filter: он делает шапку
   контейнером для position:fixed, и мобильное меню сжималось до её высоты. */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
	transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 12px 24px -20px rgb(21 24 27 / .5); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.logo { flex-shrink: 0; }
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-dark); }
.logo-mark { color: var(--c-dark); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.logo-text strong { font-family: var(--ff-heading); font-weight: 600; font-size: 1.08rem; letter-spacing: .01em; text-transform: uppercase; }
.logo-text small { font-family: var(--ff-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); line-height: 1.25; max-width: 210px; }
.logo--light .logo-link, .logo--light .logo-mark { color: #fff; }
.logo--light .logo-text small { color: var(--c-on-dark-dim); }
.custom-logo { max-height: 56px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu > li { position: relative; }
.main-nav .menu a {
	display: block; padding: 10px 11px;
	color: var(--c-text); text-decoration: none; font-weight: 500; font-size: .9rem; white-space: nowrap;
}
.main-nav .menu a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a { color: var(--c-accent); }
.main-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 6px 0;
	background: var(--c-bg); border: 1px solid var(--c-border); border-top: 2px solid var(--c-accent); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { font-weight: 500; padding: 10px 18px; white-space: normal; }
.main-nav .sub-menu a:hover { background: var(--c-surface); color: var(--c-dark); }
.main-nav__mobile { display: none; }

.header-contacts { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex-shrink: 0; }
.header-phone { font-weight: 600; font-size: .96rem; color: var(--c-dark); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--c-accent); }
.header-hours { font-size: .75rem; color: var(--c-muted); white-space: nowrap; }
.header-callback { background: none; border: 0; padding: 2px 0 0; color: var(--c-muted); font-size: .78rem; border-bottom: 1px dashed currentColor; }
.header-callback:hover { color: var(--c-accent); }
.header-cta { min-height: 46px; padding: 0 20px; font-size: .9rem; flex-shrink: 0; }

.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); position: relative; }
.burger__lines, .burger__lines::before, .burger__lines::after { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--c-dark); transition: .25s var(--ease); content: ""; }
.burger__lines { top: 50%; margin-top: -1px; }
.burger__lines::before { left: 0; right: 0; top: -6px; }
.burger__lines::after { left: 0; right: 0; top: 6px; }
.burger[aria-expanded="true"] .burger__lines { background: transparent; }
.burger[aria-expanded="true"] .burger__lines::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines::after { top: 0; transform: rotate(-45deg); }

/* ---------- 5. Секции ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 5vw, 64px); }
.section--surface { background: var(--c-surface); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark-muted); position: relative; }
.has-grid .section--dark, .has-grid .card-note { background-image: var(--grid-dark); background-size: 40px 40px; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head {
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px 64px; align-items: end;
	margin: 0 0 clamp(32px, 4.5vw, 56px);
}
.section-head__main { display: flex; flex-direction: column; gap: 18px; }
.section-head__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.section-head .eyebrow { margin: 0; }
.section-title { margin: 0; font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -.03em; }
.section-title--sm { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: clamp(40px, 6vw, 72px) 0 .6em; }
.section-sub { font-size: 1.06rem; line-height: 1.6; color: var(--c-muted); margin: 0; max-width: 56ch; }
.section-head--stack, .section-head--left { grid-template-columns: 1fr; gap: 20px; }
.section-head--stack .section-sub { font-size: var(--fs-lead); color: var(--c-body); }
.section-head--light .section-title { color: #fff; }
.section-head--light .section-sub { color: var(--c-on-dark-muted); }
.section-head--light .axis { color: var(--c-on-dark-dim); }
.section-head--light .eyebrow { color: var(--c-accent-on-dark); }
.section-more { margin: clamp(28px, 4vw, 44px) 0 0; }
.section-more--left { text-align: left; }

.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 6. Первый экран ---------- */
.hero { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.has-grid .hero, .has-grid .cta-section { background-image: var(--grid-light); background-size: 40px 40px; }
.hero__inner {
	display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(40px, 5vw, 72px); align-items: center;
	padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.hero__content { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero__badge { margin: 0; color: var(--c-primary); }
.hero__title { margin: 0; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -.035em; hyphens: manual; overflow-wrap: break-word; }
.hero__sub { margin: 0; font-size: var(--fs-lead); line-height: 1.55; color: var(--c-body); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .92rem; color: var(--c-body); }
.hero__list li { display: flex; align-items: center; gap: 8px; }
.hero__list .icon { color: var(--c-accent); stroke-width: 2.4; }

.hero__media { position: relative; min-width: 0; }
.hero__media.has-dim-w { padding-top: 30px; }
.hero__media.has-dim-h { padding-left: 30px; }
.hero__media.has-specs { margin-bottom: 40px; }
.hero__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-primary); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo figcaption { position: absolute; left: 16px; top: 16px; margin: 0; }
.dim { position: absolute; display: flex; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: .69rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--c-dark); }
.dim::before, .dim::after { content: ""; flex: 1 1 0; background: var(--c-dark); }
.dim--w { top: 0; right: 0; left: 0; height: 18px; border-inline: 1px solid var(--c-dark); }
.has-dim-h .dim--w { left: 30px; }
.dim--w::before, .dim--w::after { height: 1px; }
.dim--h { left: 0; bottom: 0; top: 0; width: 18px; flex-direction: column; border-block: 1px solid var(--c-dark); }
.has-dim-w .dim--h { top: 30px; }
.dim--h::before, .dim--h::after { width: 1px; }
.dim--h span { writing-mode: vertical-rl; transform: rotate(180deg); }
.hero__specs {
	position: absolute; left: 24px; right: 24px; bottom: -40px; margin: 0;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: var(--c-bg); box-shadow: var(--shadow);
}
.has-dim-h .hero__specs { left: 54px; }
.hero__specs > div { padding: 14px 18px; border-right: 1px solid var(--c-line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero__specs > div:last-child { border-right: 0; }
.hero__specs dt { font-family: var(--ff-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.hero__specs dd { margin: 0; font-family: var(--ff-heading); font-weight: 600; font-size: 1.25rem; color: var(--c-dark); }
.hero__form { max-width: 520px; justify-self: end; width: 100%; }

/* ---------- 7. Формы ---------- */
.form-card {
	background: var(--c-bg); color: var(--c-text);
	padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-lg); border: 1px solid var(--c-border);
}
.lead-form__title { font-family: var(--ff-heading); font-weight: 600; font-size: 1.5rem; letter-spacing: -.015em; color: var(--c-dark); margin-bottom: .4em; line-height: 1.2; }
.lead-form__text { color: var(--c-muted); font-size: .95rem; }
.lead-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.form-card .lead-form__grid, .modal .lead-form__grid { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 500; color: var(--c-primary); }
.field input, .field textarea, .search-form input {
	width: 100%; min-height: 48px; padding: .7em 14px; border: 1px solid var(--c-border); border-radius: var(--radius);
	background: var(--c-bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--c-dark); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.field input.is-invalid { border-color: #d63638; }
.file-input {
	display: flex; align-items: center; gap: 10px; padding: .75em 1em; cursor: pointer;
	border: 1px dashed var(--c-muted); border-radius: var(--radius); color: var(--c-primary); font-size: .9rem;
	transition: border-color .2s, color .2s;
}
.file-input:hover { border-color: var(--c-dark); color: var(--c-dark); }
.file-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .78rem; line-height: 1.45; color: var(--c-muted); margin-bottom: 14px; }
.consent input { margin-top: 1px; width: 18px; height: 18px; accent-color: var(--c-dark); flex-shrink: 0; }
.lead-form__status { margin: 10px 0 0; font-size: .9rem; font-weight: 600; min-height: 1em; }
.lead-form__status.is-ok { color: #1a7f37; }
.lead-form__status.is-error { color: #d63638; }
.lead-form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }
.search-form { display: flex; gap: 8px; }

/* ---------- 8. Цифры и доверие ---------- */
.trust { border-bottom: 1px solid var(--c-border); }
.stats {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1px;
	background: var(--c-border); border-inline: 1px solid var(--c-border);
}
.stat { background: var(--c-bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; }
.stat__num { font-family: var(--ff-heading); font-weight: 600; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 2.75rem); color: var(--c-dark); line-height: 1; letter-spacing: -.03em; }
.stat__label { font-size: .92rem; color: var(--c-body); }
.badges { list-style: none; margin: 0; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .9rem; color: var(--c-body); }
.stats + .badges { border-top: 1px solid var(--c-border); }
.badges li { display: flex; align-items: center; gap: 8px; }
.badges .icon { color: var(--c-accent); }

/* ---------- 9. Карточки услуг ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: var(--gap); }
.card-service { background: var(--c-bg); border: 1px solid var(--c-border); display: flex; transition: border-color .25s; }
.card-service:hover { border-color: var(--c-dark); }
.card-service__link { display: flex; flex-direction: column; width: 100%; color: var(--c-dark); text-decoration: none; }
.card-service__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface); }
.card-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-service:hover .card-service__img img { transform: scale(1.04); }
.card-service__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-service__title { margin: 0; font-size: 1.45rem; letter-spacing: -.015em; color: var(--c-dark); }
.card-service:hover .card-service__title { color: var(--c-accent); }
.card-service__text { margin: 0; font-size: .94rem; line-height: 1.55; color: var(--c-muted); }
.card-service__meta {
	margin-top: auto; padding-top: 14px; border-top: 1px solid var(--c-line);
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
	font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted);
}
.card-service__meta > :last-child { color: var(--c-dark); }
.card-service__arrow { display: inline-flex; transition: transform .2s var(--ease); }
.card-service:hover .card-service__arrow { transform: translateX(4px); color: var(--c-accent); }

.card-note {
	background-color: var(--c-dark); color: var(--c-on-dark-muted); padding: 32px;
	display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px; min-height: 360px;
}
.card-note__mark { color: #fff; }
.card-note__title { color: #fff; font-size: 1.75rem; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; }
.card-note p { margin: 0; font-size: .94rem; line-height: 1.55; }

/* ---------- 10. Типовые проекты ---------- */
.card-model { background: var(--c-bg); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); transition: transform .25s var(--ease), box-shadow .25s; }
.card-model:hover { box-shadow: var(--shadow); }
.card-model__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: block; }
.card-model__img img { width: 100%; height: 100%; object-fit: cover; }
.card-model__area { position: absolute; left: 12px; top: 12px; background: var(--c-dark); color: #fff; font-weight: 600; font-size: .85rem; padding: 4px 10px; border-radius: var(--radius); }
.card-model__body { padding: 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-model__title { font-size: 1.12rem; margin: 0; }
.card-model__title a { color: var(--c-dark); text-decoration: none; }
.card-model__title a:hover { color: var(--c-accent); }
.specs { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.specs li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--c-border); }
.specs span { color: var(--c-muted); }
.card-model__price { margin: auto 0 0; font-family: var(--ff-heading); font-weight: 600; font-size: 1.35rem; color: var(--c-dark); line-height: 1.2; }
.card-model__price small { display: block; font-size: .75rem; font-weight: 600; color: var(--c-muted); font-family: var(--ff-body); }
.card-model__price em { display: block; font-style: normal; font-size: .85rem; color: var(--c-accent); }

/* ---------- 11. Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: var(--gap); align-items: start; }
.calc__form { background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .1); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 36px); display: grid; gap: 26px; color: #fff; }
.section:not(.section--dark) .calc__form { background: var(--c-surface); color: var(--c-text); border-color: var(--c-border); }
.calc__group { border: 0; padding: 0; margin: 0; }
.calc__group legend { font-weight: 600; margin-bottom: 10px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid rgb(255 255 255 / .16); font-weight: 600; transition: .2s; height: 100%; }
.section:not(.section--dark) .seg span { border-color: var(--c-border); background: var(--c-bg); }
.seg small { font-weight: 500; opacity: .7; font-size: .8rem; }
.seg input:checked + span { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 18%, transparent); }
.seg input:focus-visible + span { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.calc__ranges { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.range { display: grid; gap: 10px; }
.range__head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-weight: 600; font-size: .95rem; }
.range__head output { margin-left: auto; font-family: var(--ff-heading); font-weight: 600; font-size: 1.2rem; color: var(--c-accent); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c-accent) var(--p, 50%), rgb(128 128 128 / .3) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--c-accent); box-shadow: var(--shadow-sm); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c-accent); cursor: grab; }
.calc__checks { display: flex; gap: 24px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--c-accent); }
.calc__result { background: var(--c-bg); color: var(--c-text); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-lg); position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--c-border); }
.calc__label { color: var(--c-muted); font-weight: 600; margin-bottom: 4px; }
.calc__total { font-family: var(--ff-heading); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--c-dark); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 18px; }
.calc__lines { list-style: none; margin: 0 0 20px; padding: 0; font-size: .92rem; }
.calc__lines li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--c-border); }
.calc__lines span { color: var(--c-muted); }
.calc__note { font-size: .78rem; color: var(--c-muted); margin: 12px 0 0; }

/* ---------- 12. Преимущества, этапы ---------- */
.features { gap: 1px !important; background: var(--c-border); border: 1px solid var(--c-border); }
.feature { padding: clamp(24px, 2.6vw, 32px); background: var(--c-bg); display: flex; flex-direction: column; gap: 12px; }
.feature__icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--c-border); color: var(--c-dark); margin-bottom: 8px; }
.feature__icon .icon { stroke-width: 1.5; }
.feature:hover .feature__icon { border-color: var(--c-accent); color: var(--c-accent); }
.feature__title { margin: 0; font-size: 1.25rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--c-muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 36px 0; }
.step { display: flex; flex-direction: column; gap: 14px; padding-right: 20px; }
.step__axis { display: flex; align-items: center; }
.step__axis::after { content: ""; flex: 1 1 0; border-top: 1px dashed var(--c-border); }
.step:last-child .step__axis::after { display: none; }
.step__num {
	width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1.2px solid var(--c-muted);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--ff-mono); font-size: .94rem; color: var(--c-dark);
}
.step:first-child .step__num { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.step__title { margin: 0; font-size: 1.2rem; }
.step p { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--c-muted); }
.section--dark .step__axis::after { border-color: rgb(255 255 255 / .3); }
.section--dark .step__num { border-color: var(--c-on-dark-dim); color: #fff; }
.section--dark .step:first-child .step__num { border-color: var(--c-accent); }
.section--dark .step p { color: var(--c-on-dark-muted); }

/* ---------- 13. Объекты ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter__btn { min-height: 40px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--c-border); background: transparent; font-weight: 500; font-size: .92rem; color: var(--c-text); text-decoration: none; transition: .2s; }
.filter__btn:hover { border-color: var(--c-dark); }
.filter__btn.is-active { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }
.card-project { overflow: hidden; background: var(--c-bg); border: 1px solid var(--c-border); transition: transform .25s var(--ease), box-shadow .25s; }
.card-project[hidden] { display: none; }
.card-project:hover { box-shadow: var(--shadow); }
.card-project__link { display: block; color: inherit; text-decoration: none; }
.card-project__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card-project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-project:hover .card-project__img img { transform: scale(1.05); }
.card-project__body { padding: 18px 20px 20px; }
.card-project__title { font-size: 1.25rem; margin-bottom: .7em; color: var(--c-dark); }
.card-project__facts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--ff-mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--c-muted); }
.card-project__facts li { display: inline-flex; align-items: center; gap: 5px; }
.card-project__facts .icon { color: var(--c-accent); }

/* ---------- 14. Таблицы ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); background: var(--c-bg); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.compare th, .compare td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.compare td, .compare thead th + th { border-left: 1px solid var(--c-border); }
.compare thead th { padding-block: 20px; border-bottom-color: var(--c-border); vertical-align: bottom; font-family: var(--ff-heading); font-weight: 600; font-size: 1.2rem; color: var(--c-dark); }
.compare thead th:first-child { background: var(--c-surface); font-family: var(--ff-mono); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.compare thead th small { display: block; margin-top: 4px; font-weight: 400; font-size: .82rem; color: var(--c-muted); font-family: var(--ff-body); }
.compare thead th.is-best { box-shadow: inset 0 3px 0 var(--c-accent); }
.compare tbody th { font-weight: 500; color: var(--c-dark); width: 22%; background: var(--c-surface); }
.compare td.is-best { background: var(--c-accent-soft); font-weight: 600; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare--prices tbody th a { color: var(--c-dark); font-weight: 600; }
.compare--prices td b { color: var(--c-accent); }

/* ---------- 15. Отзывы ---------- */
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review { scroll-snap-align: start; margin: 0; padding: 28px; background: var(--c-surface); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 16px; }
.review__stars { display: flex; gap: 2px; color: #F5A623; }
.review__stars .icon { fill: currentColor; }
.review__text { margin: 0; font-size: .98rem; flex: 1; }
.review__text p:last-child { margin: 0; }
.review__author { display: flex; align-items: center; gap: 12px; }
.review__author span { display: flex; flex-direction: column; line-height: 1.3; }
.review__author small { color: var(--c-muted); }
.review__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review__object { color: var(--c-accent) !important; font-weight: 600; }
.review__links { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; font-size: .88rem; }
.review__links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* ---------- 16. FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(260px, .8fr) 1.6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout__aside { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.faq-layout .section-head { grid-template-columns: 1fr; margin: 0; }
.faq-layout__aside > p { margin: 0; }
.faq { border-top: 1px solid var(--c-border); }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__item summary { list-style: none; cursor: pointer; padding: 22px 56px 22px 0; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--c-border); border-radius: 50%;
	font-family: var(--ff-mono); font-size: 1.1rem; color: var(--c-dark); transition: .2s;
}
.faq__item[open] summary::after { content: "−"; background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.faq__item summary:hover .faq__q { color: var(--c-accent); }
.faq__q { font-size: 1.12rem; margin: 0; font-weight: 600; display: inline; transition: color .2s; }
.faq__a { padding: 0 56px 22px 0; color: var(--c-muted); }
.faq__a p:last-child { margin: 0; }

/* ---------- 17. О компании, статьи ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about__media { position: relative; }
.about__content .section-title { margin-bottom: .6em; }
.about__media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__media-badge { position: absolute; right: -12px; bottom: -20px; background: var(--c-dark); color: #fff; padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; line-height: 1.1; }
.about__media-badge b { font-family: var(--ff-heading); font-size: 2.4rem; }
.checklist { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: var(--c-accent); margin-top: 3px; }
.checklist--light li { color: #fff; }
.checklist--muted .icon { color: var(--c-muted); }
.card-post { background: var(--c-bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); display: flex; flex-direction: column; }
.card-post__img { aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.card-post__img img { width: 100%; height: 100%; object-fit: cover; }
.card-post__body { padding: 20px; }
.card-post__title { font-size: 1.12rem; }
.card-post__title a { color: var(--c-dark); text-decoration: none; }
.card-post__title a:hover { color: var(--c-accent); }
.card-post p { color: var(--c-muted); font-size: .94rem; margin: 0; }

/* ---------- 18. Финальный CTA ---------- */
.cta-section { background-color: var(--c-surface); padding-block: var(--section); }
.cta-section__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px clamp(40px, 5vw, 72px); align-items: start; }
.cta-section__content { display: flex; flex-direction: column; gap: 26px; }
.cta-section .section-head { margin: 0; }
.numlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-border); }
.numlist li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--c-border); font-size: 1rem; }
.numlist__n { font-family: var(--ff-mono); font-size: .82rem; color: var(--c-accent); padding-top: 2px; }
.cta-section__contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.cta-section__phone { font-family: var(--ff-heading); font-weight: 600; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.02em; color: var(--c-dark); text-decoration: none; margin-right: 10px; }
.cta-section__phone:hover { color: var(--c-accent); }
.cta-section .form-card { border: 0; }

/* ---------- 19. Внутренние страницы ---------- */
.page-hero { position: relative; isolation: isolate; background-color: var(--c-dark); color: var(--c-on-dark-muted); padding-block: clamp(40px, 6vw, 88px) clamp(36px, 5vw, 72px); overflow: hidden; }
.has-grid .page-hero:not(.page-hero--image) { background-image: var(--grid-dark); background-size: 40px 40px; }
.has-grid .page-hero--plain { background-image: var(--grid-light) !important; }
.page-hero--image { min-height: 440px; display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--c-dark) 95%, transparent) 10%, color-mix(in srgb, var(--c-dark) 55%, transparent)); }
.page-hero--plain { background: var(--c-surface); color: var(--c-text); padding-block: 24px; }
.page-hero__title { color: #fff; max-width: 22ch; margin-bottom: .35em; letter-spacing: -.03em; }
.page-hero--plain .page-hero__title { color: var(--c-dark); max-width: none; margin-top: 12px; }
.page-hero__lead { font-size: var(--fs-lead); max-width: 64ch; color: rgb(255 255 255 / .85); }
.page-hero__chips { list-style: none; margin: 16px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.post-meta { color: var(--c-muted); font-size: .9rem; margin: 0; }

.breadcrumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; opacity: .45; }
.breadcrumbs a { color: inherit; opacity: .8; text-decoration: none; }
.breadcrumbs a:hover { opacity: 1; color: var(--c-accent); }
.breadcrumbs [aria-current] span { opacity: .6; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.sidebar__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.info-card { background: var(--c-surface); border-radius: var(--radius-lg); padding: 24px; }
.info-card__title { font-family: var(--ff-heading); font-weight: 600; font-size: 1.15rem; color: var(--c-dark); margin-bottom: 14px; }
.info-card .checklist { margin: 0; font-size: .95rem; }
.link-list { padding-left: 1.2em; }

.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product__title { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--c-border); text-align: left; }
.spec-table th { color: var(--c-muted); font-weight: 500; }
.spec-table td { font-weight: 600; text-align: right; }
.price-box { display: flex; gap: 16px; margin: 20px 0; padding: 18px 20px; background: var(--c-surface); border-radius: var(--radius-lg); }
.price-box > div { display: flex; flex-direction: column; flex: 1; }
.price-box small { color: var(--c-muted); font-size: .8rem; }
.price-box b { font-family: var(--ff-heading); font-size: 1.3rem; color: var(--c-dark); }
.price-box__main b { color: var(--c-accent); font-size: 1.6rem; }
.price-box em { font-style: normal; font-size: .85rem; color: var(--c-muted); }

.facts-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 0; }
.facts > div { padding: 20px 16px; border-right: 1px solid var(--c-border); }
.facts > div:last-child { border-right: 0; }
.facts dt { font-size: .8rem; color: var(--c-muted); }
.facts dd { margin: 0; font-family: var(--ff-heading); font-weight: 600; color: var(--c-dark); font-size: 1.1rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }

.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list > li > .icon { width: 48px; height: 48px; padding: 12px; border: 1px solid var(--c-border); color: var(--c-dark); }
.contact-list div { display: flex; flex-direction: column; }
.contact-list small { color: var(--c-muted); }
.contact-list__big { font-family: var(--ff-heading); font-weight: 600; font-size: 1.5rem; color: var(--c-dark); text-decoration: none; }
.contacts__msg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.requisites { margin: 0 0 24px; font-size: .92rem; color: var(--c-muted); }
.requisites dt { font-weight: 600; color: var(--c-text); }
.requisites dd { margin: 0; }
.map iframe { border: 0; display: block; filter: grayscale(.2); }

.error-404 { text-align: center; }
.error-404__code { font-family: var(--ff-heading); font-weight: 600; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--c-accent); margin: 0; }
.error-404 .hero__actions { justify-content: center; margin: 24px 0 32px; }
.search-box { max-width: 560px; margin: 0 auto 32px; }

/* ---------- 20. Контент из редактора ---------- */
.entry-content > * + * { margin-top: 1.1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content ul:not([class]) li::marker { color: var(--c-accent); }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin-inline: 0; padding: 20px 24px; background: var(--c-surface); font-size: 1.05rem; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--c-border); text-align: left; }
.entry-content thead th { background: var(--c-surface); }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content--narrow { max-width: 820px; }
.entry-content--full > .alignwide { max-width: var(--container); margin-inline: auto; }
.entry-content--full > :not(.alignfull):not(.alignwide) { max-width: 820px; margin-inline: auto; padding-inline: 20px; }
.entry-content .wp-block-button__link { border-radius: var(--radius); }
.post-cover img { border-radius: var(--radius-lg); width: 100%; }
.post-cover { margin: 0 0 32px; }
.sb-cta-box { margin: 48px 0; padding: clamp(24px, 4vw, 40px); background-color: var(--c-dark); background-image: var(--grid-dark); background-size: 40px 40px; color: var(--c-on-dark-muted); }
.sb-cta-box h2, .sb-cta-box__title { color: #fff; font-family: var(--ff-heading); font-weight: 600; font-size: 1.5rem; margin-top: 0; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--c-muted); }

.pagination, .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 10px; border-radius: var(--radius-sm); border: 1px solid var(--c-border); text-decoration: none; color: var(--c-text); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

/* ---------- 21. Подвал ---------- */
.site-footer { background: var(--c-dark); color: var(--c-on-dark-muted); padding-top: 64px; font-size: .92rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__about p { margin: 18px 0; max-width: 36ch; line-height: 1.6; }
.site-footer__title { font-family: var(--ff-mono); font-size: .69rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--c-on-dark-dim); margin-bottom: 14px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent-on-dark); }
.site-footer__contacts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer__contacts .muted { color: var(--c-on-dark-dim); margin: 0; }
.site-footer__phone { font-family: var(--ff-heading); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; color: #fff !important; }
.site-footer__contacts .btn { margin-top: 10px; color: #fff; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials__link { display: inline-block; padding: 5px 10px; border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius); font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.socials__link:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff !important; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-block: 24px; border-top: 1px solid var(--c-primary); font-size: .8rem; color: var(--c-on-dark-dim); }
.site-footer__bottom a { color: var(--c-on-dark-dim); }
.site-footer__bottom p { margin: 0; }

/* ---------- 22. Плавающие элементы ---------- */
.sticky-bar { display: none; }
.float-msg { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.float-msg__toggle { width: 56px; height: 56px; border-radius: 50%; border: 0; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); position: relative; }
.float-msg__toggle::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: sb-pulse 2.4s infinite; }
.float-msg__list { display: flex; flex-direction: column; gap: 8px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s var(--ease); }
.float-msg.is-open .float-msg__list { opacity: 1; visibility: visible; transform: none; }
.float-msg__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius); background: var(--c-bg); color: var(--c-text); text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.float-msg__item--whatsapp .icon { color: #25D366; }
.float-msg__item--telegram .icon { color: #229ED9; }
.float-msg__item--max .icon { color: #6A3CF5; }
@keyframes sb-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 440px; display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--c-dark); color: var(--c-on-dark-muted); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: .82rem; }
.cookie p { margin: 0; }
.cookie a { color: #fff; }
.cookie[hidden] { display: none; }

/* ---------- 23. Модальные окна ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; }
.modal::backdrop { background: rgb(13 22 32 / .7); backdrop-filter: blur(4px); }
.modal[open] { animation: sb-pop .3s var(--ease); }
.modal__box { position: relative; background: var(--c-bg); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 36px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.modal__title { font-family: var(--ff-heading); font-weight: 600; font-size: 1.5rem; color: var(--c-dark); line-height: 1.2; margin-right: 32px; }
.modal__text { color: var(--c-muted); font-size: .95rem; }
.modal__close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border: 0; border-radius: var(--radius); background: var(--c-surface); display: grid; place-items: center; }
.modal__close:hover { background: var(--c-accent); color: #fff; }
@keyframes sb-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8 12 18 / .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; max-width: 92vw; max-height: 88dvh; }
.lightbox__figure img { max-width: 92vw; max-height: 82dvh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__figure figcaption { color: #ddd; text-align: center; margin-top: 8px; }
.lightbox__close, .lightbox__nav { position: fixed; border: 0; background: rgb(255 255 255 / .1); color: #fff; border-radius: 50%; width: 52px; height: 52px; display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; }
.lightbox__next { right: 16px; top: 50%; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--c-accent); }

/* ---------- 24. Анимации появления ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 25. Адаптив ---------- */
@media (max-width: 1240px) {
	.header-contacts { display: none; }
}
@media (max-width: 1200px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
	:root { --header-h: 66px; }
	.hide-md { display: none !important; }
	.burger { display: block; margin-left: auto; }
	.header-cta { display: none; }
	.main-nav {
		position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 99; margin: 0;
		background: var(--c-bg); padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
		border-top: 1px solid var(--c-border);
		opacity: 0; transform: translateY(-12px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; visibility: hidden;
	}
	.main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.main-nav .menu { flex-direction: column; gap: 0; }
	.main-nav .menu a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--c-border); border-radius: 0; white-space: normal; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
	.main-nav .sub-menu a { font-size: 1rem; }
	.main-nav .menu-item-has-children > a::after { display: none; }
	.main-nav__mobile { display: grid; gap: 14px; margin-top: 24px; }
	.main-nav__phone { font-family: var(--ff-heading); font-weight: 600; font-size: 1.5rem; color: var(--c-dark); text-decoration: none; }
	body.nav-open { overflow: hidden; }
	.hero__inner, .cta-section__inner, .calc, .about, .faq-layout, .layout-sidebar, .product, .contacts, .section-head { grid-template-columns: 1fr; }
	.section-head { gap: 18px; }
	.hero__media { max-width: 720px; }
	.hero__form { max-width: 560px; justify-self: start; }
	.faq-layout__aside, .calc__result, .sidebar__sticky { position: static; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.slider { grid-auto-columns: calc((100% - var(--gap)) / 2); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.about__media-badge { right: 12px; }
}
@media (max-width: 680px) {
	.topbar__info { display: none; }
	.topbar__links a[href^="mailto"] { display: none; }
	.filter { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
	.filter__btn { flex-shrink: 0; }
	.topbar__inner { justify-content: center; }
	.logo-text small { display: none; }
	.grid--2, .grid--3, .grid--4, .calc__ranges { grid-template-columns: 1fr; }
	.hero__specs { position: static; margin-top: 12px; box-shadow: none; border: 1px solid var(--c-border); }
	.hero__media.has-specs { margin-bottom: 0; }
	.hero__specs dd { font-size: 1.05rem; }
	.hero__specs > div { padding: 12px; }
	.card-note { min-height: 0; }
	.step__axis::after { display: none; }
	.compare th, .compare td { padding: 14px 16px; }
	.faq__a { padding-right: 0; }
	.slider { grid-auto-columns: 86%; }
	.seg { grid-template-columns: 1fr; }
	.seg span { flex-direction: row; justify-content: space-between; align-items: center; }
	.lead-form__grid { grid-template-columns: 1fr; }
	.hero__actions .btn { width: 100%; }
	.hero__list { flex-direction: column; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.price-box { flex-direction: column; }
	.facts > div { border-right: 0; border-bottom: 1px solid var(--c-border); }
	.page-hero--image { min-height: 360px; }

	.has-sticky-bar { padding-bottom: 64px; }
	.sticky-bar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 98; height: 64px;
		background: var(--c-dark); border-top: 1px solid rgb(255 255 255 / .1);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.sticky-bar a, .sticky-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; text-decoration: none; background: none; border: 0; font-size: .72rem; font-weight: 600; }
	.sticky-bar button { background: var(--c-accent); }
	.has-sticky-bar .float-msg { display: none; }
	.has-sticky-bar .cookie { bottom: 76px; }
	.cookie { left: 12px; right: 12px; max-width: none; }
}

/* ---------- 26. Печать ---------- */
@media print {
	.topbar, .site-header, .sticky-bar, .float-msg, .cookie, .lead-form, .cta-section, .hero__form { display: none !important; }
	body { color: #000; }
}
