/*
Theme Name: Stepenice
Theme URI: https://stepenice.me/
Description: Тема сайта Stepenice.me — лестницы на заказ в Черногории. Классическая, без конструктора; тексты в inc/content-me.php.
Version: 1.0.0
Requires PHP: 8.1
Author: Stepenice.me
Text Domain: stepenice
*/

/* ------------------------------------------------------------ шрифты */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(assets/fonts/instrument-serif-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap;
	src: url(assets/fonts/instrument-serif-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
	src: url(assets/fonts/instrument-serif-italic-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap;
	src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url(assets/fonts/albert-sans-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Albert Sans"; font-style: normal; font-weight: 300 700; font-display: swap;
	src: url(assets/fonts/albert-sans-latin-ext.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ------------------------------------------------------------ токены */
:root {
	/* шалфейное поле первого экрана */
	--sage-950: #262d24;
	--sage-900: #343c32;
	--sage-800: #4d5849;
	--sage-700: #66715f;
	--sage-600: #6c7768;
	--sage-500: #7d8879;
	--sage-400: #949d90;
	--sage-300: #b3bab0;
	--sage-200: #cfd4ca;

	/* светлые разделы */
	--paper: #eceee9;
	--paper-2: #e2e6de;
	--paper-hi: #f6f7f4;
	--ink: #1f231e;
	--ink-2: #4a5246;
	--line: rgba(31, 35, 30, .14);

	/* акценты: латунь для слов в заголовках, янтарь — свет подсветки ступеней */
	--brass: #8f6526;
	--amber: #f0a45a;
	--ok: #3e6a45;
	--err: #a2352b;

	--font-display: "Instrument Serif", "Times New Roman", serif;
	--font-text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 56px);
	--edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	--ease: cubic-bezier(.16, 1, .3, 1);
	--focus: var(--ink);
	--header-h: 96px;
}
@media (max-height: 800px) and (min-width: 761px) { :root { --header-h: 84px; } }

/* ------------------------------------------------------------ база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-text);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	caret-color: var(--sage-600);
	overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.icon { width: 24px; height: 24px; flex: none; }

/* заголовки разделов: тёмный + латунный курсив */
.h2 {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(2.4rem, 4.6vw, 4.25rem);
	line-height: 1.02;
	letter-spacing: -.012em;
	text-wrap: balance;
}
.h2 em { font-style: italic; color: var(--brass); }
.h2--center { text-align: center; margin-inline: auto; }

/* ------------------------------------------------------------ кнопки */
.cta {
	display: inline-flex; align-items: center; gap: 16px;
	padding: 6px 24px 6px 6px;
	background: #fff; color: var(--ink);
	border: 0; border-radius: 12px;
	font-size: 14.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 14px 34px -16px rgba(18, 22, 17, .55);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.cta__icon {
	display: grid; place-items: center;
	width: 48px; height: 48px; border-radius: 8px;
	background: var(--sage-950); color: #fff;
	transition: background-color .35s var(--ease), color .35s var(--ease);
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -18px rgba(18, 22, 17, .6); }
/* наведение «включает свет»: квадрат загорается янтарём, как подсветка ступеней */
.cta:hover .cta__icon, .cta:focus-visible .cta__icon { background: var(--amber); color: var(--ink); }
.cta--dark { background: var(--sage-950); color: #fff; box-shadow: none; }
.cta--dark .cta__icon { background: var(--sage-600); }
.cta--dark:hover { box-shadow: 0 16px 34px -18px rgba(18, 22, 17, .7); }
.cta--light { align-self: flex-start; }
.cta[disabled] { opacity: .65; cursor: progress; transform: none; }

.btn-ghost {
	display: inline-flex; align-items: center;
	padding: 10px 18px;
	border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px;
	font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.round-btn {
	display: grid; place-items: center;
	width: 54px; height: 54px; border-radius: 50%;
	border: 1px solid var(--line); background: transparent; color: var(--ink);
	transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s;
}
.round-btn:hover:not([disabled]) { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn[disabled] { opacity: .35; cursor: default; }

.link-arrow, .btn-line {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 600; font-size: 15px; text-decoration: none;
	padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.link-arrow .icon, .btn-line .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.link-arrow:hover .icon, .btn-line:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------ шапка */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 50;
	color: #fff; --focus: #fff;
	transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header__inner {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	height: var(--header-h);
	transition: height .35s var(--ease);
}
.site-header.is-stuck {
	background: rgba(92, 103, 88, .9);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	backdrop-filter: blur(14px) saturate(120%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .12), 0 14px 30px -24px rgba(10, 14, 9, .7);
}
.site-header.is-stuck .site-header__inner { height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__word { font-size: 21px; font-weight: 400; letter-spacing: .01em; }
.logo__tld { opacity: .62; }

.nav__list { display: flex; align-items: center; }
.nav__list li { display: flex; align-items: center; }
.nav__list li + li::before {
	content: ""; width: 4px; height: 4px; border-radius: 50%;
	background: rgba(255, 255, 255, .72); margin-inline: 22px;
}
.nav__list a { font-size: 15px; text-decoration: none; color: rgba(255, 255, 255, .9); transition: color .2s; }
.nav__list a:hover { color: #fff; text-decoration: underline; }

.site-header__end { display: flex; align-items: center; gap: 12px; }
.burger {
	display: none; place-items: center;
	width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
}

.drawer {
	position: fixed; inset: 0; z-index: 100;
	background: linear-gradient(160deg, var(--sage-600), var(--sage-800));
	color: #fff; --focus: #fff;
	overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer__inner { min-height: 100%; display: flex; flex-direction: column; gap: 40px; padding: 96px var(--gutter) 40px; }
.drawer__close {
	position: absolute; top: 24px; right: var(--gutter);
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .55); background: transparent; color: #fff;
}
.drawer__list { display: grid; gap: 6px; }
.drawer__list a {
	display: block; padding: 6px 0;
	font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.1;
	text-decoration: none;
}

/* ------------------------------------------------------------ первый экран */
.hero {
	position: relative; isolation: isolate;
	min-height: clamp(640px, 100svh, 980px);
	display: flex;
	color: #fff; --focus: #fff;
	background:
		radial-gradient(58% 72% at 74% 42%, rgba(170, 178, 166, .95) 0%, rgba(170, 178, 166, 0) 72%),
		linear-gradient(112deg, #626d5c 0%, #717c6c 36%, #879183 68%, #939c8f 100%);
	overflow: hidden;
}
.hero__art {
	position: absolute; z-index: -1;
	top: 0; right: 0; bottom: 0;
	width: min(54%, 1000px);
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 14%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, #000 30%), linear-gradient(0deg, transparent 0%, #000 22%), linear-gradient(180deg, transparent 0%, #000 14%);
	mask-composite: intersect;
	animation: art-in 1.6s var(--ease) both;
}
.hero__art picture, .hero__art img { width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: 50% 40%; }

.hero__inner {
	position: relative;
	display: flex; flex-direction: column; justify-content: space-between; gap: clamp(24px, 4.4vh, 56px);
	padding-top: calc(var(--header-h) + clamp(12px, 4vh, 64px));
	padding-bottom: clamp(22px, 4vh, 60px);
}
.hero__copy { max-width: 620px; }
.hero__copy > * { animation: rise 1s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }

.proof { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(16px, 3.4vh, 34px); font-size: 15px; color: rgba(255, 255, 255, .9); }
.proof strong { font-weight: 600; color: #fff; }
.proof__thumbs { display: flex; flex: none; }
.proof__thumbs picture {
	width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
	box-shadow: 0 0 0 2px #7a8574, 0 6px 14px -6px rgba(10, 14, 9, .6);
	transform: rotate(-4deg);
}
.proof__thumbs picture + picture { margin-left: -12px; }
.proof__thumbs picture:nth-child(2) { transform: rotate(2deg) translateY(-2px); }
.proof__thumbs picture:nth-child(3) { transform: rotate(6deg); }
.proof__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.hero__title {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(3rem, min(6.6vw, 11.2vh), 6rem);
	line-height: .98; letter-spacing: -.015em;
	margin-bottom: clamp(14px, 2.4vh, 22px);
}
.hero__title em { font-style: italic; }
.hero__lead { max-width: 33em; font-size: clamp(16px, 1.3vw, 18px); font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .92); margin-bottom: clamp(20px, 3.6vh, 38px); }

/* четыре шага: стеклянные «ступени», каждая выше предыдущей */
.steps { display: flex; align-items: flex-start; gap: 28px; }
.steps__list { display: flex; gap: 12px; padding-top: 42px; }
.step {
	--rise: calc(var(--i) * -14px);
	width: 96px; cursor: pointer;
	transform: translateY(var(--rise));
	animation: step-in .9s var(--ease) both;
	animation-delay: calc(.35s + var(--i) * .09s);
}
.step__card {
	display: flex; flex-direction: column; justify-content: space-between;
	height: 84px; padding: 12px 12px 11px;
	border: 1px solid rgba(255, 255, 255, .5); border-radius: 9px;
	background: rgba(255, 255, 255, .07);
	-webkit-backdrop-filter: blur(10px) saturate(120%);
	backdrop-filter: blur(10px) saturate(120%);
	transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.step__icon { width: 22px; height: 22px; opacity: .92; }
.step__title { font-size: 13px; line-height: 1.2; color: rgba(255, 255, 255, .92); }
.step__bar { display: block; height: 2px; margin-top: 14px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.step__bar i { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.step.is-done .step__bar i { transform: scaleX(1); opacity: .55; }
.step__num { display: block; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.step.is-active .step__card {
	background: rgba(255, 255, 255, .2); border-color: #fff;
	box-shadow: 0 18px 30px -18px rgba(10, 14, 9, .55), inset 0 -2px 0 rgba(240, 164, 90, .85);
}
.step.is-active .step__bar i { animation: fill var(--step-ms, 5200ms) linear forwards; }
.steps:hover .step.is-active .step__bar i, .steps.is-paused .step.is-active .step__bar i { animation-play-state: paused; }
.steps.is-static .step.is-active .step__bar i { animation: none; transform: scaleX(1); }

.steps__caption { max-width: 230px; padding-top: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .92); min-height: 84px; }
.steps__k { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* низкие окна ноутбуков (1536×680–760): шаги должны остаться на первом экране */
@media (max-height: 760px) and (min-width: 761px) {
	.hero__inner { gap: 20px; }
	.proof { margin-bottom: 14px; }
	.proof__thumbs picture { width: 36px; height: 36px; }
	.hero__title { margin-bottom: 12px; }
	.hero__lead { margin-bottom: 18px; }
	.steps__list { padding-top: 36px; }
	.step { --rise: calc(var(--i) * -12px); }
	.step__card { height: 74px; }
	.steps__caption { min-height: 74px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes step-in { from { opacity: 0; transform: translateY(calc(var(--rise) + 26px)); } }
@keyframes art-in { from { opacity: 0; transform: scale(1.045); } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------ виды лестниц */
.types { padding-block: clamp(80px, 11vw, 140px) clamp(72px, 9vw, 120px); }
.types__head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px 64px; align-items: end; }
.types__aside { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.types__aside p { max-width: 40ch; color: var(--ink-2); }
.types__nav { display: flex; gap: 10px; }

.types__track {
	margin-top: clamp(40px, 5vw, 64px);
	overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--edge);
	padding-bottom: 18px;
	scrollbar-width: thin; scrollbar-color: var(--sage-400) transparent;
}
.types__track::-webkit-scrollbar { height: 6px; }
.types__track::-webkit-scrollbar-thumb { background: var(--sage-400); border-radius: 3px; }
.types__track:focus-visible { outline-offset: -2px; }
.types__list { display: flex; gap: 22px; width: max-content; padding-inline: var(--edge); }
.type { width: clamp(256px, 23vw, 318px); flex: none; scroll-snap-align: start; }
.type__media { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--paper-2); }
.type__media picture, .type__img { width: 100%; height: 100%; }
.type__img { object-fit: cover; transition: transform 1.1s var(--ease); }
.type__media:hover .type__img { transform: scale(1.045); }
.type__chips { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.type__chips li {
	padding: 6px 11px; border-radius: 999px;
	font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
	color: #fff; background: rgba(22, 26, 21, .5);
	border: 1px solid rgba(255, 255, 255, .34);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.type__ask {
	position: absolute; left: 50%; top: 50%;
	display: grid; place-items: center;
	width: 74px; height: 74px; border-radius: 50%;
	color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: .04em;
	background: rgba(22, 26, 21, .58);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transform: translate(-50%, -50%) scale(.86);
	transition: opacity .4s var(--ease), transform .5s var(--ease), background-color .3s;
	--focus: #fff;
}
.type__media:hover .type__ask, .type__ask:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.type__ask:hover { background: var(--amber); color: var(--ink); }
.type__title { margin-top: 18px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.type__title a { text-decoration: none; }
.type__title a:hover { text-decoration: underline; }
.type__text { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
@media (hover: none) {
	.type__ask { left: auto; top: auto; right: 12px; bottom: 12px; width: 60px; height: 60px; opacity: 1; transform: none; }
	.type__media:hover .type__ask { transform: none; }
}

/* ------------------------------------------------------------ огромное слово + материалы */
.materials__stage { position: relative; padding-top: clamp(8px, 2vw, 24px); text-align: center; overflow: hidden; }
.materials__word {
	font-family: var(--font-display); font-weight: 400;
	font-size: clamp(5.5rem, 21vw, 22rem);
	line-height: .8; letter-spacing: -.025em;
	color: #dce0d7;
	user-select: none; white-space: nowrap;
	transform: translateY(.06em);
}
.materials__object {
	position: relative; z-index: 1;
	display: block;
	width: min(640px, 62vw);
	margin: calc(-1 * clamp(26px, 5.6vw, 104px)) auto 0;
}
.materials__object img { width: 100%; }
.materials__band { background: var(--paper-2); padding: clamp(44px, 5vw, 64px) 0 clamp(56px, 6vw, 80px); }
.rule-title {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
	font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.rule-title::before, .rule-title::after { content: ""; height: 1px; background: var(--line); }
.materials__list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.material { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; color: var(--ink-2); }
.material__icon { grid-row: span 2; width: 36px; height: 36px; color: var(--sage-700); }
.material__name { font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); line-height: 1.2; }
.material__note { font-size: 12.5px; line-height: 1.3; }

/* ------------------------------------------------------------ калькулятор */
.calc { padding-block: clamp(80px, 11vw, 140px); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.calc__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-2); }
.calc__media picture, .calc__img { width: 100%; height: 100%; }
.calc__img { object-fit: cover; }
.calc__lead { margin-top: 18px; max-width: 46ch; color: var(--ink-2); font-size: 17px; }

.calc__control { margin-top: 30px; }
.calc__label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.calc__inputs { display: flex; align-items: center; gap: 20px; }
.calc__range { flex: 1; min-width: 0; height: 28px; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.calc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--sage-600) var(--fill, 33%), var(--sage-200) var(--fill, 33%)); }
.calc__range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--sage-200); }
.calc__range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--sage-600); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--sage-950); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--sage-950), 0 6px 14px -6px rgba(10, 14, 9, .6); transition: background-color .25s; }
.calc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--sage-950); border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--sage-950); }
.calc__range:active::-webkit-slider-thumb { background: var(--amber); }
.calc__num { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-hi); }
.calc__num input { width: 3.4ch; border: 0; padding: 0; background: transparent; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.calc__num input::-webkit-outer-spin-button, .calc__num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__num input:focus { outline: none; }
.calc__num:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.calc__num span { color: var(--ink-2); font-size: 14px; }

.calc__result {
	display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
	margin-top: 30px; padding: 26px 0;
	border-block: 1px solid var(--line);
}
.calc__count { font-family: var(--font-display); font-size: clamp(4.2rem, 7vw, 6rem); line-height: .85; font-variant-numeric: tabular-nums; min-width: 1.1em; }
.calc__count-label { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.calc__count-label span:first-child { font-size: 18px; font-weight: 600; }
.calc__count-label span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.calc__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 6px 28px; }
.calc__facts dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.calc__facts dd { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

.calc__rule { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 500; }
.calc__source { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.calc__source strong { display: block; color: var(--ink); font-size: 15px; }
.calc__badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sage-600); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; flex: none; }
.calc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 30px; }
.calc__note { font-size: 13.5px; color: var(--ink-2); max-width: 40ch; }

/* ------------------------------------------------------------ вопросы */
.faq { background: var(--paper-2); padding-block: clamp(80px, 10vw, 130px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px clamp(40px, 7vw, 100px); align-items: start; }
.faq__head { position: sticky; top: 110px; display: grid; gap: 20px; justify-items: start; }
.faq__head p { color: var(--ink-2); max-width: 32ch; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding: 24px 0; cursor: pointer; list-style: none;
	font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon { width: 22px; height: 22px; color: var(--sage-700); transition: transform .45s var(--ease); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__item summary:hover span { text-decoration: underline; text-decoration-color: var(--sage-400); }
.faq__item p { padding: 0 48px 26px 0; max-width: 64ch; color: var(--ink-2); }

/* ------------------------------------------------------------ заявка */
.contact { padding-block: clamp(80px, 11vw, 140px); }
.contact__lead { margin: 20px auto 0; max-width: 52ch; text-align: center; color: var(--ink-2); font-size: 17px; }
.contact__stage { position: relative; margin-top: clamp(36px, 5vw, 56px); border-radius: 28px; overflow: hidden; display: flex; justify-content: flex-end; min-height: 700px; }
.contact__media { position: absolute; inset: 0; }
.contact__media picture, .contact__img { width: 100%; height: 100%; }
.contact__img { object-fit: cover; object-position: 30% 50%; }
.contact__card {
	position: relative; z-index: 1;
	width: min(500px, 100%);
	margin: 28px;
	padding: clamp(24px, 3vw, 34px);
	border-radius: 20px;
	background: var(--paper-hi);
	box-shadow: 0 30px 60px -28px rgba(14, 18, 13, .55);
}

.lead__title { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.1; margin-bottom: 22px; }
.lead__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field__req { color: var(--brass); }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #c8cec2; border-radius: 10px;
	background: #fff; font-size: 16px; line-height: 1.4;
	transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field select {
	appearance: none; -webkit-appearance: none; padding-right: 40px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%234a5246' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 15px center;
}
.field input::placeholder, .field textarea::placeholder { color: #6b7366; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage-700); box-shadow: 0 0 0 3px rgba(102, 113, 95, .25); }
.field input:user-invalid { border-color: var(--err); }
.lead__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 20px; }
.lead__privacy { font-size: 12.5px; color: var(--ink-2); max-width: 26ch; }
.lead__status { margin-top: 14px; font-size: 14.5px; font-weight: 500; min-height: 1px; }
.lead__status.is-ok { color: var(--ok); }
.lead__status.is-error { color: var(--err); }

/* ------------------------------------------------------------ подвал */
.site-footer { background: var(--sage-950); color: rgba(255, 255, 255, .74); padding: clamp(64px, 8vw, 96px) 0 30px; --focus: #fff; }
.site-footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px 48px; }
.site-footer__brand p { margin-top: 18px; max-width: 34ch; font-size: 15px; }
.logo--footer { color: #fff; }
.site-footer__title { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 14px; }
.site-footer__col li { font-size: 15px; line-height: 1.9; }
.site-footer__col p { font-size: 15px; margin-bottom: 16px; }
.site-footer__col a { color: #fff; }
.site-footer__cities { columns: 2; column-gap: 20px; }
.site-footer__phone { font-size: 20px; font-weight: 600; text-decoration: none; }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; }
.site-footer__top-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.site-footer__top-link .icon { width: 16px; height: 16px; }

/* ------------------------------------------------------------ внутренние страницы */
.page-hero {
	color: #fff; --focus: #fff;
	background: linear-gradient(112deg, #626d5c 0%, #717c6c 45%, #879183 100%);
	padding: calc(var(--header-h) + 56px) 0 clamp(48px, 6vw, 72px);
}
.page-hero__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.012em; margin-top: 14px; text-wrap: balance; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: rgba(255, 255, 255, .82); }
.crumbs a { color: #fff; }
.prose { max-width: 820px; padding-block: clamp(48px, 6vw, 80px) clamp(72px, 8vw, 110px); font-size: 17.5px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.08; margin-top: 1.8em; }
.prose h3 { font-size: 21px; font-weight: 600; margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.3em; }
.prose a { color: var(--brass); }
.prose img { border-radius: 14px; }
.post-list { display: grid; gap: 12px; }

.notfound { padding: calc(var(--header-h) + 80px) 0 clamp(90px, 12vw, 160px); background: var(--paper); }
.notfound__inner { display: grid; justify-items: start; gap: 22px; max-width: 760px; }
.notfound__code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 12rem); line-height: .8; color: var(--sage-300); }
.notfound__inner p:not(.notfound__code) { color: var(--ink-2); max-width: 46ch; }
/* на страницах без тёмного верха шапке нужен фон сразу */
.error404 .site-header { background: var(--sage-600); }

/* ------------------------------------------------------------ адаптив */
@media (max-width: 1180px) {
	.nav { display: none; }
	.burger { display: grid; }
	.materials__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
	.site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.types__head { grid-template-columns: 1fr; }
	.calc__grid { grid-template-columns: 1fr; }
	.calc__media { aspect-ratio: 16 / 10; }
	.faq__grid { grid-template-columns: 1fr; }
	.faq__head { position: static; }
	.contact__stage { display: block; min-height: 0; overflow: visible; border-radius: 0; }
	.contact__media { position: relative; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; }
	.contact__card { margin: -56px 12px 0; width: auto; }
}

@media (max-width: 760px) {
	:root { --header-h: 72px; }
	.site-header.is-stuck .site-header__inner { height: 60px; }
	.hero { min-height: 0; display: block; }
	.hero__art {
		left: 0; width: 100%; bottom: auto; height: 54svh; max-height: 460px;
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 50%, transparent 100%);
		-webkit-mask-composite: source-over;
		mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 50%, transparent 100%);
		mask-composite: add;
	}
	.hero__art img { object-position: 50% 40%; }
	.hero { background: linear-gradient(180deg, #76816f 0%, #69745f 46%, #5f6a59 100%); }
	.hero__inner { padding-top: min(43svh, 370px); gap: 40px; }
	.hero__title { font-size: clamp(2.7rem, 11.6vw, 4rem); }
	.proof { font-size: 14px; align-items: flex-start; }
	.steps { flex-direction: column; gap: 6px; }
	.steps__list { gap: 8px; padding-top: 36px; width: 100%; }
	.step { width: auto; flex: 1 1 0; --rise: calc(var(--i) * -12px); }
	.step__card { height: 76px; padding: 10px; }
	.steps__caption { min-height: 0; max-width: none; }
	.type { width: min(76vw, 300px); }
	.types__list { gap: 14px; }
	.materials__object { width: 80vw; }
	.calc__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 16px; width: 100%; }
	.calc__facts dd { font-size: 16px; }
	.calc__inputs { gap: 14px; }
	.faq__item p { padding-right: 0; }
}

@media (max-width: 560px) {
	.btn-ghost { display: none; }
	.lead__grid { grid-template-columns: 1fr; }
	.contact__card { margin-inline: 0; }
	.materials__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
	.material__icon { width: 30px; height: 30px; }
	.material__name { font-size: 14px; }
	.site-footer__top { grid-template-columns: 1fr; }
	.site-footer__bottom { flex-direction: column; align-items: flex-start; }
	.rule-title { gap: 14px; font-size: 12px; letter-spacing: .12em; }
}

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