/* Монолит 2007 — «Разрез». Здание в сечении сверху вниз: кровля, отделка, инженерия, основа. */

/* ---------- Шрифты (локальные, OFL) ---------- */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/literata-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/literata-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/literata-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/literata-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/literata-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
	--ink: #0F3D44;        /* петроль: текст и тёмные слои */
	--ink-2: #0A2C31;      /* подвал */
	--clay: #B9673F;       /* глина: акцент, штриховка */
	--clay-d: #9A5131;     /* глина для кнопок и мелкого текста (контраст ≥ 4.5 с белым) */
	--paper: #F2EEE7;      /* известковый фон */
	--paper-2: #F8F5F0;
	--white: #FFFFFF;
	--line: #8A9A9C;
	--muted: #4C6366;
	--on-dark: #E7EEEC;
	--on-dark-2: #B9C9C8;

	--h-diag: repeating-linear-gradient(45deg, var(--clay) 0 1.5px, transparent 1.5px 7px);
	--h-dots: radial-gradient(circle, var(--ink) 1.1px, transparent 1.5px);
	--h-grid: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px);
	--h-dense: repeating-linear-gradient(45deg, var(--paper) 0 1px, transparent 1px 5px), repeating-linear-gradient(-45deg, var(--paper) 0 1px, transparent 1px 5px);

	--serif: "Literata", Georgia, "Times New Roman", serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1200px;
	--gut: clamp(16px, 4vw, 40px);
	--top-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-d); }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { top: 8px; color: var(--white); }
main:focus { outline: none; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 96px); }

/* ---------- Кнопки: прямоугольник с угловой меткой ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border: 1.5px solid transparent; font: 600 15px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn::before { content: ""; position: absolute; left: -7px; top: -7px; width: 12px; height: 12px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; opacity: .7; transition: transform .25s var(--ease); }
.btn:hover::before { transform: translate(-3px, -3px); }
.btn--clay { background: var(--clay-d); color: var(--white); }
.btn--clay::before { border-color: var(--clay-d); }
.btn--clay:hover { background: var(--ink); color: var(--white); }
.btn--clay:hover::before { border-color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--sm::before { width: 9px; height: 9px; left: -5px; top: -5px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(242, 238, 231, .92); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.is-stuck { border-bottom-color: rgba(15, 61, 68, .18); }
.top__in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); height: var(--top-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { flex: none; }
.brand__name { font: 600 21px/1 var(--serif); letter-spacing: .01em; }
.brand__year { margin-left: 6px; font: 500 13px/1 var(--sans); letter-spacing: .08em; color: var(--clay-d); vertical-align: 3px; }
.top__nav { margin-left: auto; }
.menu { display: flex; gap: 28px; }
.menu a { font: 500 15px/1 var(--sans); text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.menu a:hover, .menu a.is-active { border-bottom-color: var(--clay); color: var(--ink); }
.top__cta-short { display: none; }

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; font: 500 14px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.hero__tick { width: 28px; height: 10px; background: var(--h-diag); border: 1.5px solid var(--ink); flex: none; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.04; margin-bottom: 24px; }
.hero__lead { font-size: clamp(17px, 1.4vw, 19px); max-width: 34em; color: var(--muted); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 40px; }
.hero__legend { border-top: 1.5px solid var(--ink); max-width: 560px; }
.hl { display: grid; grid-template-columns: 44px 28px 1fr; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(15, 61, 68, .25); text-decoration: none; }
.hl:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.hl__swatch { height: 16px; border: 1.5px solid var(--ink); }
.hl__num { font: 500 18px/1 var(--serif); color: var(--clay-d); }
.hl__label { font: 500 16px/1.3 var(--sans); }
.hl:hover .hl__label { text-decoration: underline; text-underline-offset: 3px; }

/* Штриховки слоёв — общие для легенд, срезов и номеров */
.hl--diag .hl__swatch, .legend__item--diag .legend__swatch, .layer--diag .layer__cut { background: var(--white) var(--h-diag); }
.hl--dots .hl__swatch, .legend__item--dots .legend__swatch, .layer--dots .layer__cut { background: var(--white) var(--h-dots) 0 0 / 7px 7px; }
.hl--grid .hl__swatch, .legend__item--grid .legend__swatch, .layer--grid .layer__cut { background-color: var(--white); background-image: var(--h-grid); background-size: 9px 9px; }
.hl--dense .hl__swatch, .legend__item--dense .legend__swatch, .layer--dense .layer__cut { background-color: var(--ink); background-image: var(--h-dense); }

.hero__media { position: relative; margin: 0; }
.hero__img { width: 74%; mix-blend-mode: multiply; }
.hero__cap { margin-top: 8px; font: 400 12px/1.4 var(--sans); color: var(--muted); width: 74%; }
/* Слой выносок повторяет размер картинки: ширина 74% фигуры, пропорции 2:3 → 100 / (74 × 1,5). */
.callouts { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 100 / 111; pointer-events: none; }
.callout { position: absolute; top: var(--y); left: calc(var(--x) * .74); right: 0; display: flex; align-items: center; transform: translateY(-50%); }
.callout__dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--sans); box-shadow: 0 0 0 3px var(--paper); }
.callout__line { flex: 1; height: 1.5px; background: var(--ink); transform-origin: left center; }
.callout__label { flex: none; padding: 5px 9px; background: var(--white); border: 1.5px solid var(--ink); font: 600 12px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Заголовок раздела ---------- */
.shead { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.shead__mark { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font: 600 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--clay-d); }
.shead__tick { width: 40px; height: 1.5px; background: var(--clay); position: relative; }
.shead__tick::after { content: ""; position: absolute; right: -4px; top: -3.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.shead__title { font-size: clamp(2rem, 3.8vw, 3.2rem); }
.shead__lead { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 40em; }

/* ---------- Разрез: слои ---------- */
.razrez { padding-top: clamp(64px, 9vw, 120px); }
.layer { position: relative; background: var(--white); }
.layer--dots { background: var(--paper-2); }
.layer--grid { background: #EAEDE9; }
.layer--dense { background: var(--ink); color: var(--on-dark); }
.layer__cut { height: 20px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.layer--dense .layer__cut { border-color: var(--paper); }
.layer.is-active .layer__cut { animation: m7-crawl 6s linear infinite; }
@keyframes m7-crawl { to { background-position: 56px 0; } }
.layer__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 72px); align-items: center; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); }
.layer__num { margin: 0 0 12px; font: 600 clamp(72px, 9vw, 128px)/.9 var(--serif); }
.layer__num span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); background: var(--h-diag); -webkit-background-clip: text; background-clip: text; }
.layer--dots .layer__num span { background: var(--h-dots) 0 0 / 6px 6px; -webkit-background-clip: text; background-clip: text; }
.layer--grid .layer__num span { background: var(--h-grid); background-size: 8px 8px; -webkit-background-clip: text; background-clip: text; }
.layer--dense .layer__num span { -webkit-text-stroke-color: var(--paper); background: var(--h-dense); -webkit-background-clip: text; background-clip: text; }
.layer__title { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 16px; }
.layer__lead { font-size: 18px; color: var(--muted); }
.layer--dense .layer__lead { color: var(--on-dark-2); }
.layer__works { margin-top: 24px; border-top: 1px solid rgba(15, 61, 68, .3); }
.layer--dense .layer__works { border-color: rgba(231, 238, 236, .3); }
.layer__works li { position: relative; padding: 10px 0 10px 28px; border-bottom: 1px solid rgba(15, 61, 68, .14); }
.layer--dense .layer__works li { border-color: rgba(231, 238, 236, .14); }
.layer__works li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: var(--clay); }
.layer__media { position: relative; }
.layer__img { width: 100%; background: var(--paper); border: 1.5px solid var(--ink); }
.layer--dense .layer__img { border-color: var(--paper); }

/* ---------- Этапы: размерная линия ---------- */
.dim { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px; padding-top: 64px; counter-reset: dim; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 1.5px; background: var(--ink); transform-origin: left center; }
.dim::after { content: ""; position: absolute; right: 0; top: 18.5px; width: 12px; height: 12px; border-top: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transform: rotate(45deg); }
.dim__step { position: relative; }
.dim__tick { position: absolute; top: -56px; left: 0; display: inline-block; padding: 0 8px 0 0; background: var(--paper); font: 500 22px/32px var(--serif); color: var(--clay-d); }
.dim__tick::after { content: ""; position: absolute; left: 0; top: 34px; width: 1.5px; height: 16px; background: var(--ink); }
.dim__title { font-size: 21px; margin-bottom: 8px; }
.dim__text { font-size: 16px; color: var(--muted); margin: 0; }

/* ---------- О компании ---------- */
.about { background: var(--white); border-top: 1.5px solid var(--ink); }
.about__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.about__text { font-size: 18px; max-width: 38em; }
.sheet { background: var(--white); border: 1.5px solid var(--ink); padding: 0 24px 16px; }
.sheet::before { content: ""; display: block; height: 12px; margin: 0 -24px 20px; background: var(--h-diag); border-bottom: 1.5px solid var(--ink); }
.sheet__title { font-size: 22px; margin-bottom: 8px; }
.requisites div, .contacts div { padding: 12px 0; border-bottom: 1px solid rgba(15, 61, 68, .18); }
.requisites div:last-child { border-bottom: 0; }
.requisites dt, .contacts dt { font: 600 12px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.requisites dd, .contacts dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Запрос ---------- */
.request { background: var(--paper); border-top: 1.5px solid var(--ink); }
.request__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contacts { border-top: 1.5px solid var(--ink); max-width: 460px; }
.contacts a { font-weight: 500; }
.request__form { background: var(--white); border: 1.5px solid var(--ink); padding: clamp(20px, 3vw, 40px); }
.request-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin-bottom: 24px; }
.field__label { display: block; font: 600 13px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.field__input { display: block; width: 100%; min-height: 48px; padding: 10px 2px; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 400 17px/1.5 var(--sans); transition: background .2s, border-color .2s; }
.field__input:focus { outline: none; border-bottom-color: var(--clay); background: repeating-linear-gradient(45deg, rgba(185, 103, 63, .1) 0 1px, transparent 1px 6px); }
.field__input:focus-visible { box-shadow: 0 2px 0 0 var(--clay); }
.field__input--area { resize: vertical; min-height: 140px; }
.field__input[aria-invalid="true"] { border-bottom-color: #B3261E; }
.field__hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.field__error { margin: 8px 0 0; font-size: 14px; color: #B3261E; font-weight: 500; }
.field--check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.field__check { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--clay-d); }
.field--check .field__error { grid-column: 1 / -1; }
.request-form__status p { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid; }
.request-form__status .is-ok { border-color: #2E7D4F; background: #EEF6F0; }
.request-form__status .is-error { border-color: #B3261E; background: #FBEEEC; }
.request-off p { margin-bottom: 16px; }

/* ---------- Внутренние страницы ---------- */
.phead { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); border-bottom: 1.5px solid var(--ink); position: relative; }
.phead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -13.5px; height: 12px; background: var(--h-diag); border-bottom: 1.5px solid var(--ink); }
.phead__eyebrow { font: 500 14px/1.3 var(--sans); color: var(--muted); }
.phead__title { font-size: clamp(2rem, 4vw, 3rem); max-width: 22em; }
.phead__lead { margin-top: 16px; color: var(--muted); }
.prose { max-width: 820px; padding: clamp(20px, 3vw, 40px); }
.prose.sheet::before { margin: 0 calc(-1 * clamp(20px, 3vw, 40px)) 24px; margin-top: calc(-1 * clamp(20px, 3vw, 40px)); }
.prose h2 { font-size: 24px; margin: 1.6em 0 .6em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.e404 { border-bottom: 0; min-height: 60vh; }
.e404::after { display: none; }
.e404__cut { display: grid; gap: 6px; max-width: 360px; margin: 32px 0; }
.e404__cut span { height: 18px; border: 1.5px solid var(--ink); background: var(--h-diag); }
.e404__cut span:nth-child(2) { background: var(--white) var(--h-dots) 0 0 / 7px 7px; }
.e404__cut .is-gap { border-style: dashed; background: none; }
.e404__cut span:nth-child(4) { background-color: var(--ink); background-image: var(--h-dense); }

/* ---------- Подвал ---------- */
.foot { background: var(--ink-2); color: var(--on-dark); }
.foot__ground { height: 28px; background: var(--ink-2) radial-gradient(circle, rgba(185, 103, 63, .9) 1.2px, transparent 1.6px) 0 0 / 9px 9px; border-top: 1.5px solid var(--paper); }
.foot__in { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 40px; font-size: 15px; }
.foot a { color: var(--on-dark); }
.foot a:hover { color: #E8B596; }
.foot__name { font: 600 20px/1.2 var(--serif); margin-bottom: 8px; }
.foot__note, .foot__req p { color: var(--on-dark-2); margin-bottom: 6px; }
.foot__links li { margin-bottom: 10px; }
.foot__copy { grid-column: 1 / -1; margin: 16px 0 0; padding-top: 20px; border-top: 1px solid rgba(231, 238, 236, .2); color: var(--on-dark-2); font-size: 14px; }

/* ---------- Легенда разреза (фиксированная, широкие экраны) ---------- */
.legend { display: none; }
@media (min-width: 1400px) {
	.legend { display: block; position: fixed; z-index: 30; left: 12px; padding: 10px 12px; background: rgba(242, 238, 231, .95); border: 1px solid rgba(15, 61, 68, .25); top: 50%; transform: translate(-12px, -50%); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
	.legend.is-on { opacity: 1; visibility: visible; transform: translate(0, -50%); }
	.legend__title { margin: 0 0 8px; font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
	.legend__item { display: flex; align-items: center; gap: 8px; padding: 5px 0; text-decoration: none; font: 500 13px/1.2 var(--sans); color: var(--muted); }
	.legend__swatch { width: 20px; height: 10px; border: 1.5px solid var(--ink); background: var(--paper); transition: width .25s var(--ease); }
	.legend__num { font: 600 13px/1 var(--serif); color: var(--clay-d); }
	.legend__item--plain .legend__swatch { height: 1.5px; border: 0; background: var(--ink); }
	.legend__item.is-active { color: var(--ink); }
	.legend__item.is-active .legend__swatch { width: 36px; }
}
/* Между 1400 и 1640 px поле слева узкое: только штриховки и номера, подписи — для экранных дикторов. */
@media (min-width: 1400px) and (max-width: 1639px) {
	.legend__title { display: none; }
	.legend__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.legend__item { padding: 7px 0; }
}

/* ---------- Нижняя панель (телефоны) ---------- */
.dock { display: none; }

/* ---------- Появление (только при включённом JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .hero [data-reveal] { transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-layer] .layer__body, .js [data-layer] .layer__media { opacity: 0; transform: translateY(-28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-layer] .layer__media { transition-delay: .12s; }
.js [data-layer].is-in .layer__body, .js [data-layer].is-in .layer__media { opacity: 1; transform: none; }
.js .callout__line { transform: scaleX(0); transition: transform .8s var(--ease); transition-delay: calc(.5s + var(--i) * .18s); }
.js .callout__label, .js .callout__dot { opacity: 0; transition: opacity .4s; transition-delay: calc(.9s + var(--i) * .18s); }
.js .hero.is-in .callout__line { transform: none; }
.js .hero.is-in .callout__label, .js .hero.is-in .callout__dot { opacity: 1; }
.js .dim::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .dim.is-in::before { transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.menu { gap: 20px; }
	.hero__grid { grid-template-columns: 1fr 1fr; }
	.dim { grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-left: 64px; }
	.dim::before { left: 24px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; transform-origin: center top; }
	.js .dim::before { transform: scaleY(0); }
	.dim::after { display: none; }
	.dim__step { padding-bottom: 32px; }
	.dim__tick { top: -2px; left: -64px; width: 48px; padding: 0; text-align: center; }
	.dim__tick::after { display: none; }
}
@media (max-width: 900px) {
	.top__nav { display: none; }
	.top__cta { margin-left: auto; }
	.hero__grid, .layer__grid, .about__grid, .request__grid { grid-template-columns: 1fr; }
	.hero__media { max-width: 480px; width: 100%; margin: 8px auto 0; }
	.layer__media { order: -1; }
	.foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body { padding-bottom: 64px; }
	.dock { display: block; position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; background: var(--ink); padding-bottom: env(safe-area-inset-bottom); transition: transform .25s; }
	.dock.is-hidden { transform: translateY(110%); }
	.dock ul { display: grid; grid-template-columns: repeat(4, 1fr); }
	.dock a { display: flex; align-items: center; justify-content: center; min-height: 56px; color: var(--on-dark); font: 500 14px/1.1 var(--sans); text-decoration: none; border-top: 3px solid transparent; }
	.dock a.is-active { border-top-color: var(--clay); color: var(--white); }
	.top__cta-full { display: none; }
	.top__cta-short { display: inline; }
	.hero__title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
	.callout__label { font-size: 11px; padding: 4px 6px; letter-spacing: .03em; }
}
@media (max-width: 420px) {
	.brand__name { font-size: 18px; }
	.brand__mark { width: 26px; height: 26px; }
	.hl { grid-template-columns: 34px 22px 1fr; gap: 10px; }
	.hero__actions .btn { width: 100%; }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal], .js [data-layer] .layer__body, .js [data-layer] .layer__media, .js .callout__label, .js .callout__dot { opacity: 1; transform: none; }
	.js .callout__line, .js .dim::before { transform: none; }
}
