/*
Theme Name: setkino_clau
Theme URI: https://setkino.ru/
Author: Компания «Сеть»
Description: Тема сайта setkino.ru — сети для защиты от БПЛА, канатные и страховочные сети. Три раздела с калькуляторами, форма заявки с приложением чертежа, журнал заявок в админке, плавающие кнопки связи (телефон, MAX, Telegram), цели Яндекс Метрики, базовое SEO и микроразметка. При активации сама создаёт страницы и меню.
Version: 1.4.0
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: setkino
*/

/* ==========================================================================
   1. Токены
   ========================================================================== */
:root {
	/* Фон и текст. Палитра «Тёмно-синий и бирюза». Все цвета сайта — здесь. */
	--paper: #eef2f5;      /* фон страницы */
	--paper-2: #e0e7ed;    /* фон второстепенных блоков */
	--card: #fafcfd;       /* карточки, калькулятор, форма */
	--ink: #0e1c2b;        /* основной текст, рамки */
	--ink-2: #34465a;      /* вторичный текст */
	--muted: #5a6b7d;      /* подписи */
	--line: #d0dae3;       /* тонкие линии */
	--line-2: #a7b6c4;     /* рамки полей, сетка фона */

	/* Тёмные блоки: верхняя полоса, «Как мы работаем», подвал, карточка контактов */
	--dark: #0f2233;
	--dark-2: #16304a;
	--dark-line: #28445f;
	--on-dark: #e4edf4;    /* текст на тёмном */
	--on-dark-2: #93a7ba;  /* подписи на тёмном */
	--on-dark-accent: #5fc3cc; /* иконки и ссылки на тёмном */

	/* Акценты */
	--teal: #0b717a;       /* главный: кнопки, ссылки, канатные сети */
	--teal-2: #085960;     /* наведение */
	--teal-soft: #d3ecee;
	--navy: #1f3b5c;       /* раздел «Защита от БПЛА» */
	--navy-2: #152b45;
	--navy-soft: #dde5ef;
	--red: #c62a2a;        /* раздел «Страховочные сети» */
	--red-2: #a11f1f;
	--red-soft: #f8e7e7;
	--rope: #1f3b5c;       /* верёвка с бирками, канат на иллюстрациях */
	--beam: #c5d3df;       /* деревянная/металлическая рама на иллюстрациях */
	--highlight: rgba(11, 113, 122, .25); /* подчёркивание в заголовке */
	--danger: #b42318;
	--ok: #085960;
	--ok-soft: #d3ecee;
	--on-accent: #ffffff;  /* текст на акцентных кнопках */

	--signal: var(--teal);
	--signal-2: var(--teal-2);
	--accent: var(--teal);
	--accent-2: var(--teal-2);
	--accent-soft: var(--teal-soft);

	--f-display: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 1240px;
	--gut: clamp(16px, 4vw, 40px);
	--r: 4px;
	--r-lg: 10px;
	--shadow: 0 1px 0 rgba(14, 28, 43, .06), 0 10px 30px -18px rgba(14, 28, 43, .35);
	--ease: cubic-bezier(.2, .7, .2, 1);

	--net-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M0 22L22 0L44 22L22 44Z' fill='none' stroke='%23a7b6c4' stroke-width='.8' opacity='.55'/%3E%3Ccircle cx='22' cy='0' r='1.4' fill='%23a7b6c4'/%3E%3Ccircle cx='0' cy='22' r='1.4' fill='%23a7b6c4'/%3E%3Ccircle cx='44' cy='22' r='1.4' fill='%23a7b6c4'/%3E%3Ccircle cx='22' cy='44' r='1.4' fill='%23a7b6c4'/%3E%3C/svg%3E");
}

.accent-navy { --accent: var(--navy); --accent-2: var(--navy-2); --accent-soft: var(--navy-soft); }
.accent-teal { --accent: var(--teal); --accent-2: var(--teal-2); --accent-soft: var(--teal-soft); }
.accent-red { --accent: var(--red); --accent-2: var(--red-2); --accent-soft: var(--red-soft); }

/* ==========================================================================
   2. База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--f-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(38px, 6vw, 72px); text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.6vw, 44px); text-transform: uppercase; }
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
p { margin: 0 0 1em; }
strong { font-weight: 600; }
small { font-size: .82em; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { top: 12px; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap-narrow { max-width: 860px; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }

/* Маркировка-бирка */
.tag {
	display: inline-flex; align-items: center; gap: 8px;
	font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
	color: var(--ink-2); padding: 7px 10px 7px 8px; margin-bottom: 18px;
	border: 1px solid var(--line-2); border-radius: 3px; background: var(--card);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.tag-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tag-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.tag-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* Кнопки */
.btn {
	--b: var(--accent);
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 46px; padding: 11px 20px; border-radius: var(--r);
	font: 600 15px/1.1 var(--f-body); letter-spacing: .01em; text-decoration: none;
	border: 1.5px solid var(--b); cursor: pointer; transition: background .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
	white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--b); color: var(--on-accent); box-shadow: 0 6px 18px -10px var(--b); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }

/* ==========================================================================
   3. Шапка
   ========================================================================== */
.topbar { background: var(--dark); color: var(--on-dark-2); font: 400 13px/1 var(--f-body); }
.topbar-in { display: flex; gap: 22px; align-items: center; min-height: 36px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.topbar-item small { color: var(--on-dark-2); margin-left: 4px; }
.topbar a.topbar-item:hover { color: #fff; }
.topbar-push { margin-left: auto; }
.topbar-phone { font-weight: 600; color: #fff; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(238, 242, 245, .92);
	-webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
	border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0, 0, 0, .5); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-img { max-height: 48px; width: auto; }
.logo-mark { width: 40px; height: 40px; }
.logo-line { fill: none; stroke: currentColor; stroke-width: 2.2; }
.logo-mark .net-knots circle { fill: var(--signal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font: 600 25px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; }
.brand-sub { font: 500 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.site-nav .menu a {
	display: block; padding: 10px 12px; color: var(--ink); text-decoration: none;
	font: 500 15px/1.2 var(--f-body); border-radius: var(--r); position: relative;
}
.site-nav .menu a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.site-nav .menu a:hover::after, .site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { transform: scaleX(1); }
.site-nav .sub-menu { display: none; }
.nav-contacts { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); line-height: 1.1; }
.header-phone-num { font: 600 18px/1.1 var(--f-body); letter-spacing: .01em; white-space: nowrap; }
.header-phone-sub { font: 400 12px/1.3 var(--f-body); color: var(--muted); }
.header-phone:hover .header-phone-num { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--ink); background: transparent; border-radius: var(--r); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ico { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }

@media (max-width: 1500px) {
	.header-actions .header-phone { display: none; }
}
@media (max-width: 1320px) {
	.header-phone-sub { display: none; }
	.site-nav .menu a { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 1200px) {
	.nav-toggle { display: inline-flex; }
	.header-in { justify-content: space-between; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 60;
		background: var(--paper); flex-direction: column; justify-content: flex-start;
		padding: 96px 24px 32px; overflow-y: auto;
		clip-path: inset(0 0 0 100%); transition: clip-path .35s var(--ease), visibility .35s;
		visibility: hidden; box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .5);
	}
	.nav-open .site-nav { clip-path: inset(0); visibility: visible; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(22, 24, 26, .45); z-index: 55; }
	.nav-open .site-header { z-index: 70; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--paper); }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { font: 600 22px/1.2 var(--f-display); text-transform: uppercase; padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
	.site-nav .menu a::after { display: none; }
	.nav-contacts { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
	.nav-phone { font: 600 22px/1.2 var(--f-body); color: var(--ink); text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
	.nav-open .nav-toggle-open { display: none; }
	.nav-open .nav-toggle-close { display: inline; }
	.nav-toggle { position: relative; z-index: 80; }
	.header-phone { display: none; }
}
@media (max-width: 640px) {
	.topbar-hide-sm { display: none; }
	.topbar-in > .topbar-item:first-child { display: none; }
	.topbar-phone { margin-left: auto; margin-right: auto; }
	.topbar-in { gap: 14px; font-size: 12px; }
	.topbar-item small { display: none; }
	.header-in { min-height: 64px; gap: 10px; }
	.brand-name { font-size: 21px; }
	.brand-sub { font-size: 9.5px; }
	.logo-mark { width: 34px; height: 34px; }
	.header-cta span { display: none; }
	.header-cta { padding: 10px 13px; }
}
@media (max-width: 380px) {
	.topbar .topbar-item:first-child { display: none; }
	.topbar-push { margin-left: 0; }
	.brand-sub { display: none; }
}

/* ==========================================================================
   4. Иллюстрации
   ========================================================================== */
.ill { display: block; width: 100%; height: auto; overflow: visible; }
.ill .net-line { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.ill .net-rope { stroke: var(--rope); stroke-width: 5; stroke-linecap: round; }
.ill .net-knots circle { fill: var(--ink); }
.ill-kanat .net-knots circle { fill: var(--ink); }
.ill .net-edge { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.ill .ill-ground { stroke: var(--ink); stroke-width: 2; }
.ill .ill-solid { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.ill .ill-solid rect { fill: var(--paper-2); stroke: var(--ink); stroke-width: 2; }
.ill .ill-detail { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.ill .ill-mast path, .ill path.ill-mast { fill: none; stroke: var(--ink); stroke-width: 2; }
.ill .ill-guy { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 2 5; }
.ill .ill-beam rect { fill: var(--beam); stroke: var(--ink); stroke-width: 2; }
.ill .ill-track { fill: none; stroke: var(--danger); stroke-width: 2; stroke-dasharray: 7 7; animation: track 1.6s linear infinite; }
.ill .ill-drone path { stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; fill: var(--ink); }
@keyframes track { to { stroke-dashoffset: -28; } }

/* ==========================================================================
   5. Главный экран
   ========================================================================== */
.hero, .sec-hero, .page-hero { position: relative; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--net-bg) center/44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.7) 55%, transparent 100%); }
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-title { font-size: clamp(40px, 6.2vw, 80px); line-height: .98; margin-bottom: 22px; }
.hero-title .u { display: inline; background: linear-gradient(transparent 62%, var(--highlight) 62%, var(--highlight) 92%, transparent 92%); }
.hero-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-facts strong { display: block; font: 600 clamp(22px, 2.3vw, 32px)/1 var(--f-display); text-transform: uppercase; white-space: nowrap; }
.hero-facts span { display: block; font: 500 12px/1.3 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }

/* Доска с бирками */
.hero-board { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 34px; }
.board-rope { position: absolute; left: -2%; right: -2%; top: 0; width: 104%; height: 60px; overflow: visible; }
.board-rope path { fill: none; stroke: var(--rope); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 0; }
.hang-tag { position: relative; display: block; text-decoration: none; color: var(--ink); transform-origin: 50% -26px; animation: swing 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.7s); }
.hang-tag:nth-child(3) { margin-top: 14px; }
.hang-tag:nth-child(4) { margin-top: 0; }
.hang-string { position: absolute; left: 50%; top: -30px; width: 2px; height: 34px; background: var(--rope); transform: translateX(-50%); }
.hang-body {
	position: relative; display: flex; flex-direction: column; min-height: 100%;
	background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px 6px 10px 10px;
	padding: 26px 14px 14px; box-shadow: var(--shadow); overflow: hidden;
	transition: transform .3s var(--ease), border-color .2s;
}
.hang-body::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--accent); }
.hang-body { border-radius: 14px 14px 8px 8px; }
.tag-hole { position: absolute; top: 11px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.hang-code { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hang-title { font: 600 clamp(16px, 1.45vw, 20px)/1.05 var(--f-display); text-transform: uppercase; margin: 6px 0 10px; hyphens: manual; }
.hang-ill { display: block; margin: auto -4px 10px; }
.hang-more { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--f-body); color: var(--accent); }
.hang-tag:hover { animation-play-state: paused; color: var(--ink); }
.hang-tag:hover .hang-body { transform: translateY(-4px) rotate(-1deg); border-color: var(--accent); }
@keyframes swing { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }

@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-board { max-width: 640px; }
}
@media (max-width: 560px) {
	.hero-board { grid-template-columns: 1fr; gap: 26px; padding-top: 10px; }
	.board-rope { display: none; }
	.hang-tag, .hang-tag:nth-child(3) { margin-top: 0; animation: none; }
	.hang-string { display: none; }
	.hang-body { display: grid; grid-template-columns: 1fr 110px; grid-template-rows: auto auto 1fr; column-gap: 12px; padding: 22px 14px 14px; }
	.hang-ill { grid-column: 2; grid-row: 1 / span 3; margin: 0; align-self: center; }
	.hang-code, .hang-title, .hang-more { grid-column: 1; }
	.hero-facts { grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
	.hero-facts span { font-size: 10.5px; }
	.hero-actions .btn { flex: 1 1 100%; }
}

/* ==========================================================================
   6. Блоки
   ========================================================================== */
.block { padding: clamp(56px, 8vw, 110px) 0; }
.block-tight { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.block-paper { background: var(--paper-2); }
.block-dark { background: var(--dark); color: var(--on-dark); }
.block-dark h2, .block-dark h3 { color: #fff; }
.block-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.block-head p { color: var(--muted); font-size: 18px; }
.block-dark .block-head p { color: var(--on-dark-2); }
.block-head-row { display: flex; justify-content: space-between; align-items: flex-end; max-width: none; gap: 20px; }

/* Направления */
.dir-list { display: grid; gap: clamp(20px, 3vw, 32px); }
.dir {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 0;
	background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden;
	box-shadow: var(--shadow);
}
.dir:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.dir:nth-child(even) .dir-ill { order: 2; border-right: 0; border-left: 1.5px solid var(--ink); }
.dir-ill { background: var(--accent-soft) var(--net-bg) center/44px; padding: clamp(18px, 3vw, 36px); display: flex; align-items: center; border-right: 1.5px solid var(--ink); }
.dir-copy { padding: clamp(22px, 3.5vw, 44px); display: flex; flex-direction: column; }
.dir-num { font: 500 13px/1 var(--f-mono); color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.dir-title { font-size: clamp(26px, 3vw, 38px); font-weight: 600; text-transform: uppercase; }
.dir-title a { color: var(--ink); text-decoration: none; }
.dir-title a:hover { color: var(--accent); }
.dir-copy > p { color: var(--ink-2); }
.dir-foot { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px dashed var(--line-2); }
.dir-price { font-size: 16px; color: var(--muted); }
.dir-price strong { color: var(--ink); font: 600 24px/1 var(--f-display); }

.spec-tags { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-tags li { font: 500 12.5px/1 var(--f-mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper); color: var(--ink-2); }
.spec-tags-lg li { font-size: 13px; background: var(--card); }

@media (max-width: 860px) {
	.dir, .dir:nth-child(even) { grid-template-columns: 1fr; }
	.dir-ill, .dir:nth-child(even) .dir-ill { order: 0; border: 0; border-bottom: 1.5px solid var(--ink); }
	.dir-ill .ill { max-height: 260px; }
}

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--dark-line); }
.steps li { padding: 28px 24px 8px 0; border-right: 1px solid var(--dark-line); margin-right: 24px; position: relative; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); }
.steps .step-n { display: block; font: 600 46px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.2px var(--on-dark-2); margin-bottom: 16px; }
.steps h3 { text-transform: uppercase; font-weight: 600; font-size: 21px; }
.steps p { color: var(--on-dark-2); font-size: 15.5px; }
@media (max-width: 900px) {
	.steps { grid-template-columns: 1fr 1fr; }
	.steps li:nth-child(2) { border-right: 0; margin-right: 0; }
}
@media (max-width: 520px) {
	.steps { grid-template-columns: 1fr; }
	.steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--dark-line); padding-bottom: 20px; }
}

/* Почему мы */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px; }
.why-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.why-item .ico { width: 30px; height: 30px; color: var(--signal); margin-bottom: 14px; }
.why-item h3 { text-transform: uppercase; font-weight: 600; font-size: 19px; }
.why-item p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 22px 0; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.proof-label { font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.proof-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.proof-list li { font: 500 17px/1.3 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.proof-list li::before { content: "✕"; color: var(--signal); margin-right: 10px; font-size: 12px; vertical-align: 2px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq details:first-child { border-top: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 600 19px/1.3 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: linear-gradient(currentColor, currentColor) center/16px 2px no-repeat, linear-gradient(currentColor, currentColor) center/2px 16px no-repeat; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--ink-2); padding: 0 40px 20px 0; margin: 0; max-width: 62ch; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } }

/* Статьи */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card-img { display: block; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-ph { display: flex; height: 100%; align-items: center; padding: 18px; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-body time { font: 500 12px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; }
.post-card-title { font-size: 21px; margin: 10px 0 8px; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--accent); }
.post-card-body p { color: var(--ink-2); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==========================================================================
   7. Страница раздела
   ========================================================================== */
.sec-hero { padding: clamp(24px, 4vw, 48px) 0 clamp(36px, 5vw, 64px); }
.sec-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.sec-title { font-size: clamp(38px, 5.4vw, 68px); line-height: 1; }
.sec-lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); max-width: 38em; }
.sec-hero-copy .hero-actions { margin: 26px 0 0; }
.sec-hero-visual { background: var(--accent-soft); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); position: relative; }
.sec-hero-visual::before { content: ""; position: absolute; inset: 10px; border: 1px dashed var(--line-2); border-radius: 6px; pointer-events: none; }
.sec-photo { display: block; width: 100%; border-radius: 6px; }
@media (max-width: 920px) { .sec-hero-grid { grid-template-columns: 1fr; } .sec-hero-visual { max-width: 620px; } }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 400 14px/1.4 var(--f-body); color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }

/* ==========================================================================
   8. Калькулятор
   ========================================================================== */
.calc {
	position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg);
	padding: clamp(20px, 3.5vw, 44px); box-shadow: var(--shadow); scroll-margin-top: 90px;
}
.calc::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: repeating-linear-gradient(-45deg, var(--accent) 0 14px, var(--ink) 14px 28px); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.calc-head { max-width: 760px; margin-bottom: 26px; }
.calc-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.calc-head p { color: var(--muted); margin: 0; }
.calc-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

.calc-step { border: 0; margin: 0; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px dashed var(--line-2); min-width: 0; }
.calc-step:last-child { border-bottom: 0; margin-bottom: 0; }
.calc-step legend { font: 600 18px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .02em; padding: 0; margin-bottom: 14px; display: flex; gap: 10px; align-items: baseline; }
.step-n { font: 500 12px/1 var(--f-mono); color: var(--accent); letter-spacing: .08em; }
.hint { font-size: 14.5px; color: var(--muted); margin: 12px 0 0; max-width: 62ch; }
.hint[hidden] { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px;
	border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff;
	font: 500 15px/1.15 var(--f-body); color: var(--ink); transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
	user-select: none;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip.is-off { display: none; }
.chip.is-rec span::after { content: "реком."; font: 500 10px/1 var(--f-mono); text-transform: uppercase; margin-left: 8px; padding: 3px 5px; border-radius: 2px; background: var(--accent-soft); color: var(--accent-2); }
.chip.is-rec input:checked + span::after { background: var(--accent); color: var(--on-accent); }
.chips-sm .chip span { min-height: 40px; padding: 8px 13px; font-size: 14px; }
.chips-color { margin-top: 12px; }
.chips-color[hidden] { display: none; }
.chips + .field-row { margin-top: 16px; }

.field-row { display: flex; flex-wrap: wrap; gap: 14px; }
.field-row[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font: 500 13px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.field-label b { color: var(--signal); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field textarea {
	width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: var(--r);
	background: #fff; color: var(--ink); font: 400 16px/1.3 var(--f-body); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-num { flex: 1 1 140px; max-width: 220px; }
.num-wrap { position: relative; display: block; }
.num-wrap input { padding-right: 44px; font: 600 20px/1 var(--f-body) !important; }
.num-wrap input { -moz-appearance: textfield; }
.num-wrap input::-webkit-outer-spin-button, .num-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips.is-single .chip span { cursor: default; }
.num-unit { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 500 14px/1 var(--f-mono); pointer-events: none; }
.field-qty { flex: 0 0 auto; }
.qty { display: flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; height: 48px; overflow: hidden; }
.qty:focus-within { border-color: var(--ink); }
.qty input { width: 58px; min-height: 0 !important; height: 100%; padding: 0 !important; border: 0 !important; box-shadow: none !important; text-align: center; font: 600 18px/1 var(--f-body); -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-btn { width: 44px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--ink); }
.qty-btn:hover { background: var(--paper); }

/* Карточки полотен */
.net-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
@media (max-width: 600px) { .net-cards { grid-template-columns: 1fr 1fr; } .net-card-body { padding: 12px 10px 10px; } .net-card-title { font-size: 14.5px; } }
.net-card { position: relative; cursor: pointer; display: block; }
.net-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.net-card-body { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 14px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: #fff; transition: border-color .15s, box-shadow .15s; }
.net-card:hover .net-card-body { border-color: var(--ink); }
.net-card input:checked + .net-card-body { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 -4px 0 1.5px var(--accent); }
.net-card input:focus-visible + .net-card-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.net-card-title { font: 600 15.5px/1.25 var(--f-body); }
.net-card-meta { font-size: 13px; color: var(--muted); }
.net-card-price { font: 600 17px/1.2 var(--f-display); margin-top: 4px; }
.net-card-rec { display: none; position: absolute; top: -9px; right: 10px; font: 500 10px/1 var(--f-mono); text-transform: uppercase; padding: 4px 6px; background: var(--accent); color: var(--on-accent); border-radius: 2px; }
.net-card.is-rec .net-card-rec { display: block; }

/* Итог — бирка */
.calc-summary { position: sticky; top: 96px; }
.tag-card { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px 8px 12px 12px; padding: 34px 20px 20px; border-radius: 18px 18px 10px 10px; }
.tag-card .tag-hole { top: 12px; width: 14px; height: 14px; margin-left: -7px; background: var(--card); }
.sum-title { font: 600 22px/1 var(--f-display); text-transform: uppercase; margin-bottom: 14px; text-align: center; }
.sum-rows { margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dotted var(--line-2); font-size: 14.5px; }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; text-align: right; font-weight: 500; }
.sum-total { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; margin: 0 0 12px; background: var(--ink); color: #fff; border-radius: var(--r); }
.sum-total[hidden] { display: none; }
.sum-total span { font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); }
.sum-total strong { font: 600 clamp(26px, 3vw, 34px)/1.05 var(--f-display); letter-spacing: .01em; }
.sum-note { font-size: 13.5px; color: var(--muted); margin: 0 0 14px; }
.tag-card .btn + .btn { margin-top: 8px; }
/* Живое превью сетки в калькуляторе */
.net-preview { margin: 0 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 10px; }
.pv { display: block; width: 100%; height: auto; }
.pv .pv-net { fill: none; stroke: var(--accent); stroke-linecap: round; }
.pv .pv-knots circle { fill: var(--ink); }
.pv .pv-edge { fill: none; stroke: var(--ink); }
.pv .pv-edge.is-thin { stroke: var(--line-2); stroke-dasharray: 3 3; }
.pv .pv-edge.is-cut { stroke: var(--muted); stroke-width: 1 !important; stroke-dasharray: 6 4; }
.pv .pv-ends { fill: none; stroke: var(--accent); stroke-linecap: round; opacity: .75; }
.pv .pv-frame { fill: none; stroke: var(--muted); stroke-width: 4; }
.pv .pv-light { opacity: .75; }
.pv .pv-sealed { fill: none; stroke: var(--ink); stroke-linecap: round; }
.field[hidden], .field-row[hidden], .chips[hidden] { display: none !important; }
.pv .pv-dim path { fill: none; stroke: var(--muted); stroke-width: 1; }
.pv .pv-dim text { font: 500 11px var(--f-mono); fill: var(--ink-2); }
.pv.pv-pop .pv-net, .pv.pv-pop .pv-knots { animation: pv-pop .45s var(--ease); transform-origin: center; transform-box: view-box; }
@keyframes pv-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.net-count { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-top: 4px; }
.pv-total { font: 500 15px/1.2 var(--f-body); color: var(--ink-2); }
.pv-total strong { font: 600 30px/1 var(--f-display); color: var(--ink); letter-spacing: .01em; }
.pv-grid { font: 500 12.5px/1.3 var(--f-mono); color: var(--muted); }
.pv-note { font-size: 12px; color: var(--muted); font-style: italic; }
.net-preview.is-inline { margin: 16px 0 0; max-width: 480px; }
@media (max-width: 960px) {
	.calc-body { grid-template-columns: 1fr; }
	.calc-summary { position: static; }
}

/* ==========================================================================
   9. Текст страниц
   ========================================================================== */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }

.prose { max-width: 760px; }
.prose-page { max-width: 820px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.6em 0 .6em; }
.prose h3 { margin: 1.4em 0 .5em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin-bottom: .55em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border: 1.5px solid var(--accent); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { position: relative; padding-left: 44px; margin-bottom: .8em; counter-increment: n; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1em; font: 500 13px/1.6 var(--f-mono); color: var(--accent); }
.prose li strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 15px; background: var(--card); display: block; overflow-x: auto; }
.prose table thead, .prose table tbody { display: table; width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font: 500 12px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1.5px solid var(--ink); background: var(--paper); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); }
.prose img { border-radius: var(--r); }
.prose figure { margin: 1.4em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose em { color: var(--muted); }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--muted); }

.content-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.aside-box-accent { border: 1.5px solid var(--ink); }
.aside-h { font-size: 18px; text-transform: uppercase; }
.aside-box p { font-size: 15px; color: var(--ink-2); }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.aside-links a { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; line-height: 1.25; }
.aside-links a:hover { color: var(--accent); }
.aside-ill { display: block; background: var(--paper); border-radius: var(--r); padding: 6px; border: 1px solid var(--line); }
.aside-phone { display: block; text-align: center; margin-top: 12px; font: 600 18px/1 var(--f-body); color: var(--ink); text-decoration: none; }
@media (max-width: 960px) { .content-aside { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .content-aside { grid-template-columns: 1fr; } }

.page-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); border-bottom: 1.5px solid var(--ink); }
.page-title { font-size: clamp(36px, 5vw, 60px); }
.page-lead { font-size: 19px; color: var(--ink-2); max-width: 44em; margin: 0; }
.article-meta { font: 500 13px/1 var(--f-mono); color: var(--muted); text-transform: uppercase; margin: 0; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; border-radius: var(--r-lg); }
.article .prose { max-width: none; }
.empty { font-size: 18px; }

.contacts-dl { margin: 0; display: grid; gap: 0; }
.contacts-dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts-dl dt { font: 500 13px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.contacts-dl dd { margin: 0; font-size: 18px; }
.contacts-dl small { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { .contacts-dl > div { grid-template-columns: 1fr; gap: 4px; } }
.map-box { margin-top: 32px; border: 1.5px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; min-height: 320px; background: var(--paper-2); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.mini-dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.mini-dir { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--dark-line); background: var(--dark-2); color: #fff; text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s var(--ease); }
.mini-dir:hover { color: #fff; border-color: var(--accent); transform: translateY(-2px); }
.mini-ill { background: var(--paper); border-radius: var(--r); padding: 6px; display: block; }
.mini-dirs-light .mini-dir { background: var(--card); border-color: var(--line-2); color: var(--ink); }
.mini-dirs-light .mini-dir:hover { color: var(--ink); }
@media (max-width: 860px) { .mini-dirs { grid-template-columns: 1fr; } }

/* Фото работ */
.sk-gallery { margin: 1.4em 0; }
.sk-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sk-gallery-1 .sk-gallery-grid { grid-template-columns: minmax(0, 1fr); }
.sk-gallery-2 .sk-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sk-gallery-4 .sk-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sk-photo { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--r); background: var(--paper-2); border: 1px solid var(--line); }
.sk-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); border-radius: 0 !important; }
.sk-photo:hover img { transform: scale(1.04); }
.sk-gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
@media (max-width: 600px) { .sk-gallery-grid, .sk-gallery-4 .sk-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sk-gallery-1 .sk-gallery-grid { grid-template-columns: 1fr; } }
.sk-lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 18, 28, .92); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.sk-lightbox.is-open { display: flex; }
.sk-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.sk-lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.sk-lightbox button:hover { background: rgba(255, 255, 255, .25); }
.sk-lb-close { top: 12px; right: 12px; }
.sk-lb-prev { left: 12px; top: 50%; margin-top: -24px; }
.sk-lb-next { right: 12px; top: 50%; margin-top: -24px; }
.sk-lightbox button[hidden] { display: none; }

/* ==========================================================================
   10. Форма заявки
   ========================================================================== */
.block-form { background: var(--paper-2) var(--net-bg) center/44px; border-top: 1.5px solid var(--ink); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 920px) { .form-grid { grid-template-columns: 1fr; } }

.lead-form { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 40px); box-shadow: var(--shadow); scroll-margin-top: 96px; }
.lead-title { font-size: clamp(24px, 2.8vw, 34px); }
.lead-text { color: var(--muted); }
.lead-calc { background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 12px 14px; margin: 0 0 18px; }
.lead-calc[hidden] { display: none; }
.lead-calc-label { font: 500 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 6px; }
.lead-calc-text { margin: 0; white-space: pre-wrap; font: 400 13.5px/1.5 var(--f-mono); color: var(--ink-2); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-wide { grid-column: 1 / -1; }
.field-via { border: 0; padding: 0; margin: 0; }
.field-via legend { margin-bottom: 6px; }
.field-file { position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.field-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: #fff; font-weight: 500; }
.field-file:hover .file-btn, .field-file.has-file .file-btn { border-color: var(--ink); border-style: solid; }
.field-file:focus-within .file-btn { outline: 3px solid var(--accent); outline-offset: 2px; }
.field-hint { font-size: 13px; color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lead-alt { margin: 0; color: var(--muted); font-size: 15px; }
.lead-status { margin-top: 14px; font-weight: 500; }
.lead-status:empty { display: none; }
.lead-status.is-ok { color: var(--ok); padding: 12px 14px; background: var(--ok-soft); border-radius: var(--r); }
.lead-status.is-error { color: var(--danger); }
.lead-form.is-sending { opacity: .85; }
@media (max-width: 600px) {
	.lead-grid { grid-template-columns: 1fr; }
	.lead-actions .btn { width: 100%; }
}

.contact-card .tag-card { background: var(--dark); color: var(--on-dark); border-color: var(--dark); padding: 38px 24px 26px; }
.contact-card .tag-hole { background: var(--paper-2); border-color: var(--dark); }
.contact-title { font-size: 22px; color: #fff; text-transform: uppercase; }
.contact-phone { display: block; font: 600 clamp(26px, 3vw, 32px)/1.1 var(--f-body); color: #fff; text-decoration: none; margin-top: 6px; }
.contact-phone:hover { color: var(--on-dark-accent); }
.contact-muted { color: var(--on-dark-2); font-size: 14px; }
.contact-msg .btn { height: 46px; }
.tag-card .contact-msg .btn + .btn { margin-top: 0; }
.contact-msg { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.contact-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--dark-line); display: grid; gap: 12px; font-size: 15px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .ico { margin-top: 3px; color: var(--on-dark-accent); }
.contact-list a { color: #fff; }

/* ==========================================================================
   11. Подвал
   ========================================================================== */
.site-footer { position: relative; background: var(--dark); color: var(--on-dark-2); padding: clamp(48px, 6vw, 80px) 0 24px; overflow: hidden; }
.footer-net { position: absolute; inset: 0; background: var(--net-bg) center/44px; opacity: .08; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.brand-light { color: #fff; }
.brand-light:hover { color: #fff; }
.brand-light .brand-sub { color: var(--on-dark-2); }
.footer-brand p { margin-top: 18px; font-size: 15px; max-width: 32ch; }
.footer-h { font: 500 12px/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-2); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-phone { font: 600 20px/1 var(--f-body); }
.footer-msg { display: flex; gap: 16px; }
.footer-msg a { display: inline-flex; gap: 6px; align-items: center; }
.footer-addr { font-size: 14px; }
.footer-addr span { color: var(--on-dark-2); }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--dark-line); font-size: 13px; color: var(--on-dark-2); }
.footer-bottom a { color: var(--on-dark-2); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* ==========================================================================
   12. Плавающие кнопки
   ========================================================================== */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-list { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .55); transition: transform .2s var(--ease); }
.fab-btn .ico { width: 24px; height: 24px; }
.fab-btn:hover { transform: scale(1.07); color: #fff; }
.fab-call { background: var(--ink); }
.fab-max { background: #2d6cf6; }
.fab-tg { background: #229ed9; }
.fab-wa { background: #1fa855; }
.fab-mail { background: #5b5f64; }
.fab-label { position: absolute; right: 62px; white-space: nowrap; background: var(--ink); color: #fff; font: 500 13px/1 var(--f-body); padding: 8px 10px; border-radius: var(--r); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity .2s, transform .2s; }
.fab-btn:hover .fab-label, .fab-btn:focus-visible .fab-label { opacity: 1; transform: none; }
.fab-toggle { display: none; background: var(--ink); }
.fab-toggle .ico + .ico { display: none; }
.fab-calc { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 26px; background: var(--accent); color: var(--on-accent); text-decoration: none; font: 600 15px/1 var(--f-body); box-shadow: 0 10px 24px -10px var(--accent); transition: opacity .25s, transform .25s; }
.fab-calc:hover { color: var(--on-accent); background: var(--accent-2); }
.fab-calc-short { display: none; }
.fab.calc-visible .fab-calc, .fab.form-visible .fab-calc { opacity: 0; transform: translateY(10px); pointer-events: none; }
@media (max-width: 700px) {
	.fab { flex-direction: row-reverse; align-items: flex-end; gap: 10px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
	.fab-list { position: absolute; bottom: 62px; right: 0; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s; }
	.fab.is-open .fab-list { opacity: 1; transform: none; pointer-events: auto; }
	.fab-toggle { display: inline-flex; }
	.fab.is-open .fab-toggle .ico:first-child { display: none; }
	.fab.is-open .fab-toggle .ico + .ico { display: inline; }
	.fab-btn, .fab-calc { height: 48px; min-height: 48px; }
	.fab-btn { width: 48px; }
	.fab-label { opacity: 1; transform: none; right: 56px; }
	.fab-calc { padding: 0 16px; }
	.fab-calc-long { display: none; }
	.fab-calc-short { display: inline; }
}

/* ==========================================================================
   13. Движение
   ========================================================================== */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal .steps li[data-reveal]:nth-child(2), .js-reveal .why-item[data-reveal]:nth-child(2) { transition-delay: .08s; }
.js-reveal .steps li[data-reveal]:nth-child(3), .js-reveal .why-item[data-reveal]:nth-child(3) { transition-delay: .16s; }
.js-reveal .steps li[data-reveal]:nth-child(4), .js-reveal .why-item[data-reveal]:nth-child(4) { transition-delay: .24s; }
.hero .ill .net-line, .sec-hero .ill .net-line { animation: net-in 1.6s var(--ease) both; }
@keyframes net-in { from { opacity: 0; } to { opacity: 1; } }

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

@media print {
	.topbar, .site-header, .fab, .site-footer, .lead-form, .calc-summary .btn { display: none !important; }
	body { background: #fff; }
}
.lead-status.is-wait { color: var(--muted); }
