/* KORRTO 2026 — главная.
 * Фирменный стиль клиента сохранён: чёрно-белая фотография, чёрный + белый, один акцент — красный #B22D39,
 * узкий гротеск капсом в заголовках (семейство Roboto, как на korrto.ru; здесь переменная версия Roboto Flex).
 * Правило формы: кнопки и чипы — капсулы, фото и плитки — прямые углы.
 */
:root {
  --paper: #FFFFFF;
  --mist: #F2F2F2;
  --stone: #E7E7E5;
  --ink: #0F0F0F;
  --ink-2: #474747;
  --ink-3: #6E6E6E;
  --line: rgba(15, 15, 15, .12);
  --line-strong: rgba(15, 15, 15, .28);
  --red: #B22D39;
  --red-dk: #921F2A;
  --night: #0F0F0F;
  --night-2: #1A1A1A;
  --night-3: #262626;
  --on-night: #F2F2F2;
  --on-night-2: #A8A8A8;
  --line-night: rgba(242, 242, 242, .14);

  --f-sans: 'Roboto Flex', 'Roboto', system-ui, sans-serif;
  --f-mono: 'Golos Text', system-ui, sans-serif;

  --wrap: 1360px;
  --gut: clamp(16px, 3.2vw, 44px);
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100, "opsz" 16;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--f-mono); font-variation-settings: normal; letter-spacing: 0; font-feature-settings: "tnum"; }

/* Display: узкий гротеск капсом, как фирменное «ФОРМА ВАШЕГО УСПЕХА» */
.display {
  font-family: var(--f-sans);
  font-weight: 680;
  font-variation-settings: "wdth" 52, "opsz" 144, "GRAD" 0;
  text-transform: uppercase;
  letter-spacing: -.004em;
  line-height: .92;
  margin: 0;
}
.h2 { font-size: clamp(40px, 5.6vw, 84px); }
.h3 { font-size: clamp(28px, 3vw, 40px); line-height: .95; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; margin: 18px 0 0; }

/* Buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 560; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--red { --bg: var(--red); --bd: var(--red); --fg: #fff; }
.btn--red:hover { --bg: var(--red-dk); --bd: var(--red-dk); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bd: var(--ink); }
.btn--ghost-inv { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.45); }
.btn--ghost-inv:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color .2s; white-space: nowrap; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 00 Header ---------- */
.util { background: var(--mist); font-size: 13px; color: var(--ink-2); }
.util .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 24px; }
.util nav, .util .util__contacts { display: flex; gap: 22px; align-items: center; }
.util a:hover { color: var(--ink); }
.util .mono { font-size: 12.5px; }

.head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .head { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(12px); } }
.head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--head-h); }
.nav { display: flex; gap: 26px; align-items: center; font-size: 15px; font-weight: 520; }
.nav a, .nav button { position: relative; padding: 6px 0; }
.nav a::after, .nav > button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav > button:hover::after, .nav > button[aria-expanded="true"]::after { transform: scaleX(1); }
.nav__cat { display: inline-flex; align-items: center; gap: 6px; }
.nav__cat svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav__cat[aria-expanded="true"] svg { transform: rotate(180deg); }
.logo img { height: 38px; width: auto; }
.head__tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; transition: background-color .2s; }
.icon-btn:hover { background: var(--mist); }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.6; }
.badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font: 600 11px/18px var(--f-mono); text-align: center; transform: scale(0); transition: transform .3s var(--ease); }
.fly { position: fixed; z-index: 90; object-fit: cover; border-radius: 50%; box-shadow: 0 12px 30px -8px rgba(0,0,0,.45); pointer-events: none; }
.icon-btn.is-hit { animation: cartHit .5s var(--ease); }
@keyframes cartHit { 0% { transform: scale(1); } 35% { transform: scale(1.25) rotate(-8deg); } 70% { transform: scale(.95) rotate(4deg); } 100% { transform: scale(1); } }
[data-add] { transition: background-color .25s, border-color .25s, transform .15s; }
[data-add].is-added, [data-padd].is-added { --bg: var(--red); --bd: var(--red); --fg: #fff; animation: addPop .35s var(--ease); }
[data-add] svg, [data-padd] svg { width: 16px; height: 16px; margin-right: -2px; }
@keyframes addPop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.badge.is-on { transform: scale(1); }
.badge.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.head__cta { margin-left: 10px; }
.burger { display: none; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(15,15,15,.18); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .22s, transform .28s var(--ease), visibility 0s .28s; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s, transform .28s var(--ease); }
.mega .wrap { display: grid; grid-template-columns: 1.3fr 1fr .9fr; gap: 48px; padding-top: 36px; padding-bottom: 40px; height: auto; align-items: start; }
.mega h4 { margin: 0 0 14px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.mega__roles a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 540; transition: padding .25s var(--ease), color .2s; }
.mega__roles a:hover { color: var(--red); padding-left: 6px; }
.mega__roles .mono { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.mega__types { columns: 2; column-gap: 24px; font-size: 15px; }
.mega__types a { display: block; padding: 5px 0; color: var(--ink-2); break-inside: avoid; }
.mega__types a:hover { color: var(--ink); }
.mega__promo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--stone); }
.mega__promo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.mega__promo span { position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; font-size: 26px; }
.mega__promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.6), transparent 55%); }
.mega__promo span { z-index: 1; }

/* ---------- 01 Hero ---------- */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; filter: grayscale(1) contrast(1.05); transform: scale(1.04); animation: heroIn 1.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.1); opacity: .4; } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 42%, rgba(10,10,10,0) 70%), linear-gradient(0deg, rgba(10,10,10,.55), rgba(10,10,10,0) 40%); }
.hero__inner { position: relative; min-height: clamp(560px, calc(100svh - 104px - 196px), 700px); display: flex; flex-direction: column; justify-content: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(64px, 9.6vw, 148px); max-width: 7.2em; }
.hero h1 span { display: block; overflow: hidden; }
.hero h1 span i { display: block; font-style: normal; animation: rise 1s var(--ease) both; }
.hero h1 span:nth-child(2) i { animation-delay: .08s; }
.hero h1 span:nth-child(3) i { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } }
.hero__sub { margin: 26px 0 0; max-width: 44ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: rgba(255,255,255,.86); animation: fade 1s .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

.doors { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.door { position: relative; padding: 34px var(--gut) 36px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 6px 32px; min-height: 196px; }
.door--brand { background: var(--paper); color: var(--ink); }
.door--stock { background: var(--night-2); color: #fff; }
.door__kicker { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 10px; align-items: center; }
.door--stock .door__kicker { color: var(--on-night-2); }
.door__title { font-size: clamp(34px, 3.4vw, 52px); }
.door__text { margin: 10px 0 0; max-width: 44ch; color: var(--ink-2); font-size: 16px; }
.door--stock .door__text { color: var(--on-night-2); }
.door__cta { grid-column: 2; grid-row: 2 / 4; align-self: end; }
.door__body { grid-column: 1; grid-row: 2 / 4; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; color: #fff; }
.live b { font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(178,45,57,.6); animation: ping 2.4s ease-out 3; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(178,45,57,0); } 100% { box-shadow: 0 0 0 0 rgba(178,45,57,0); } }

/* ---------- 02 Clients ---------- */
.clients { border-bottom: 1px solid var(--line); }
.clients .wrap { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 32px; height: 112px; }
.clients__label { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 52px; width: auto; filter: grayscale(1) contrast(1.15); opacity: .62; transition: opacity .25s, filter .25s; }
.marquee img:hover { opacity: 1; filter: none; }
.marquee img.wide { height: 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section head ---------- */
.sec { padding: var(--sec) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head > div { max-width: 820px; }

/* ---------- 03 Roles bento ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 21vw, 300px); gap: 10px; }
.role { position: relative; overflow: hidden; background: var(--stone); color: #fff; isolation: isolate; }
.role--xl { grid-column: span 2; grid-row: span 2; }
.role--wide { grid-column: span 2; }
.role img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; z-index: -2; }
.role::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,.72) 0%, rgba(10,10,10,.12) 46%, rgba(10,10,10,0) 70%); z-index: -1; }
.role:hover img { transform: scale(1.045); }
.role__body { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.role__name { font-size: clamp(22px, 2vw, 30px); line-height: .95; }
.role--xl .role__name { font-size: clamp(34px, 3.4vw, 54px); }
.role__count { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 8px; }
.role__count .dot { animation: none; width: 7px; height: 7px; }
.role__arrow { flex: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; transition: background-color .25s, border-color .25s, transform .35s var(--ease); }
.role__arrow svg { width: 18px; height: 18px; }
.role:hover .role__arrow { background: #fff; color: var(--ink); border-color: #fff; transform: rotate(-45deg); }
.role--textile { background: var(--red); }
.role--textile::before { display: none; }
.role--textile .role__note { position: absolute; left: 22px; right: 22px; top: 22px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.9); max-width: 30ch; }
.role--textile:hover { background: var(--red-dk); }

/* ---------- 04 Products rail ---------- */
.rail-wrap { position: relative; }
/* На десктопе в ширину контейнера входит целое число карточек (4 / 3 / 2), обрезки края нет; на телефоне — свайп с выглядывающей карточкой. */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 0 8px; scrollbar-width: none; }
@media (max-width: 1199px) { .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); } }
@media (max-width: 899px) { .rail { grid-auto-columns: calc((100% - 20px) / 2); } }
.rail::-webkit-scrollbar { display: none; }
.rail-cta { margin-top: clamp(36px, 4vw, 56px); display: flex; justify-content: center; }
.rail-ctrl { display: flex; gap: 8px; align-items: center; }
.round-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .2s, border-color .2s, color .2s, opacity .2s; }
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.round-btn svg { width: 20px; height: 20px; }

.card { scroll-snap-align: start; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 3 / 4; background: var(--stone); overflow: hidden; }
.card__media > a { display: block; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .8s var(--ease); }
.card__nophoto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; font-size: 13.5px; color: var(--ink-3); background: var(--mist); }
.card__nophoto-dot { width: 64px; height: 64px; border-radius: 50%; background: var(--c); border: 1px solid var(--line-strong); }
.card:hover .card__media img { transform: scale(1.035); }
.card__fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 999px; background: rgba(255,255,255,.9); display: grid; place-items: center; transition: transform .2s var(--ease); }
.card__fav:active { transform: scale(.9); }
.card__fav svg { width: 18px; height: 18px; stroke-width: 1.7; }
.card__fav.is-on svg { fill: var(--red); stroke: var(--red); }
.card__stock { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(255,255,255,.94); font-size: 12px; color: var(--ink); }
.card__stock .dot { width: 6px; height: 6px; animation: none; }
.card__body { padding-top: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.swatches { display: flex; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.swatch::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid transparent; transition: border-color .2s; }
.swatch.is-on::after { border-color: var(--ink); }
.card__name { margin: 0; font-size: 15.5px; line-height: 1.35; font-weight: 520; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { min-width: 38px; height: 30px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-strong); font: 500 12px/28px var(--f-mono); text-align: center; transition: background-color .15s, color .15s, border-color .15s; }
.size:hover { border-color: var(--ink); }
.size.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.size[disabled] { color: #A3A3A3; border-color: var(--line); text-decoration: line-through; cursor: not-allowed; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price { font-size: 22px; font-weight: 640; font-variation-settings: "wdth" 100, "opsz" 36; letter-spacing: -.01em; }
.price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.card__err { min-height: 18px; font-size: 13px; color: var(--red); margin-top: -4px; }

/* ---------- 05 Portfolio ---------- */
.pf { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; }
.pf a { position: relative; overflow: hidden; background: var(--stone); display: block; }
.pf img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s var(--ease); }
@media (hover: hover) { .pf img { filter: grayscale(1) contrast(1.06); } .pf a:hover img { filter: none; transform: scale(1.03); } }
.pf figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; color: #fff; background: linear-gradient(to top, rgba(10,10,10,.7), transparent); }
.pf figcaption b { display: block; font-weight: 560; font-size: 17px; line-height: 1.25; }
.pf figcaption span { font-size: 12px; color: rgba(255,255,255,.78); }
.pf figure { margin: 0; height: 100%; }
.pf__a { grid-column: span 7; height: clamp(320px, 38vw, 560px); }
.pf__b { grid-column: span 5; height: clamp(320px, 38vw, 560px); }
.pf__c, .pf__d, .pf__e { grid-column: span 4; height: clamp(240px, 24vw, 340px); }

/* ---------- 06 Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.step { position: relative; background: var(--mist); padding: 28px 26px 30px; min-height: 300px; display: flex; flex-direction: column; transition: background-color .3s, color .3s; }
.step::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.step__num { font-family: var(--f-display); font-variation-settings: "wdth" 52, "opsz" 144; font-weight: 680; font-size: 76px; line-height: .8; color: var(--red); }
.step h3 { margin: auto 0 10px; padding-top: 48px; font-size: 24px; line-height: 1; }
.step p { margin: 0; min-height: 6em; color: var(--ink-2); font-size: 15px; line-height: 1.5; transition: color .3s; }
@media (hover: hover) { .step:hover { background: var(--ink); color: #fff; } .step:hover p { color: #bdbdbd; } .step:hover::after { transform: scaleX(1); } }
.brandline { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px; }
.brandline__text { background: var(--mist); padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.brandline__text p { margin: 10px 0 0; color: var(--ink-2); }
.brandline figure { margin: 0; height: 300px; overflow: hidden; background: var(--stone); }
.brandline img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 07 Service ---------- */
.service { background: var(--mist); }
.service .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.service__media { position: relative; min-height: 560px; overflow: hidden; background: var(--stone); }
.service__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__media figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 12px; color: #fff; }
.service__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), transparent 30%); }
.service__media figcaption { z-index: 1; }
.service__content { display: flex; flex-direction: column; justify-content: center; padding: 12px 0; }
.benefits { margin: 40px 0 36px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-strong); }
.benefit { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line-strong); }
.benefit:nth-child(odd) { border-right: 1px solid var(--line-strong); }
.benefit:nth-child(even) { padding-left: 24px; padding-right: 0; }
.benefit .mono { font-size: 12px; color: var(--red); }
.benefit h3 { margin: 0 0 6px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.benefit p { margin: 0; color: var(--ink-2); font-size: 15px; }
.service__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- 08 Proof ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.stat { padding: 26px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__num { font-size: clamp(56px, 6.4vw, 104px); line-height: .9; }
.stat__num small { font-size: .42em; margin-left: 4px; vertical-align: .9em; letter-spacing: 0; }
.stat p { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; max-width: 26ch; }
.quotes { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.quote { margin: 0; display: flex; flex-direction: column; gap: 22px; }
.quote blockquote { margin: 0; text-indent: -.5em; font-size: clamp(19px, 1.6vw, 22px); line-height: 1.42; font-weight: 440; letter-spacing: -.005em; }
.quote blockquote::before, .quote blockquote::after { color: var(--red); font-weight: 700; }
.quote blockquote::before { content: "«"; }
.quote blockquote::after { content: "»"; }
.quote figcaption { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.quote figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }

/* ---------- 09 Как заказать: два пути построчно ---------- */
.buy { border-top: 1px solid var(--line); }
.buy__grid { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(0, 1fr); }
.buy__head { padding: 24px 28px 18px; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 6px; }
.buy__head .mono { font-size: 12px; color: var(--ink-3); }
.buy__head .display { font-size: clamp(28px, 2.6vw, 38px); }
.buy__corner { border-bottom: 2px solid var(--ink); }
.buy__label { padding: 20px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 16px; }
.buy__cell { padding: 20px 28px; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.45; }
.buy--me { background: var(--mist); }
.buy__corner:last-of-type, .buy__grid > .buy__corner ~ .buy__corner { border-bottom: 0; }
.buy__cta { padding: 26px 28px 28px; }
.buy__links { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px 28px; }

/* ---------- 10 Final + 11 Footer (одна тёмная концовка) ---------- */
.final { background: var(--night); color: var(--on-night); }
.final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.final__info { display: flex; flex-direction: column; }
.next { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line-night); }
.next li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-night); }
.next .mono { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(242,242,242,.3); display: grid; place-items: center; font-size: 13px; color: #fff; }
.next b { display: block; color: #fff; font-weight: 600; font-size: 17px; }
.next p { margin: 2px 0 0; color: var(--on-night-2); font-size: 15px; }
.final h2 { color: #fff; }
.final .lead { color: var(--on-night-2); }
.contacts { margin-top: auto; padding-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.contacts span { display: block; font-size: 12.5px; color: var(--on-night-2); margin-bottom: 4px; }
.contacts a, .contacts p { font-size: 18px; color: #fff; margin: 0; line-height: 1.35; }
.contacts a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.form { background: var(--night-2); padding: clamp(24px, 3vw, 40px); align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label, .field legend { font-size: 14px; color: var(--on-night); font-weight: 500; padding: 0; }
.field .hint { font-size: 12.5px; color: var(--on-night-2); }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 16px; border-radius: 4px; background: var(--night-3); border: 1px solid rgba(242,242,242,.18); color: #fff; font: 400 16px var(--f-sans); transition: border-color .2s, background-color .2s; }
.field textarea { height: 92px; padding: 12px 16px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A8A8A8' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input::placeholder, .field textarea::placeholder { color: #8C8C8C; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(242,242,242,.36); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #fff; background: #2C2C2C; }
.field.has-err input, .field.has-err select { border-color: #E5707B; }
.err { font-size: 13px; color: #F08A93; min-height: 0; }
fieldset.field { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid rgba(242,242,242,.24); font-size: 14px; color: var(--on-night); transition: background-color .15s, color .15s, border-color .15s; }
.chips input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--on-night-2); margin: 4px 0 22px; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.consent a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { width: 100%; justify-content: center; height: 56px; }
.form__done { display: none; text-align: left; }
.form.is-done .form__body { display: none; }
.form.is-done .form__done { display: block; }
.form__done svg { width: 44px; height: 44px; color: #fff; stroke-width: 1.4; }
.form__done h3 { color: #fff; font-size: 40px; margin: 20px 0 12px; }
.form__done p { color: var(--on-night-2); margin: 0 0 24px; }

.foot { background: var(--night); color: var(--on-night-2); font-size: 14.5px; }
.foot__top { border-top: 1px solid var(--line-night); padding: 56px 0 48px; display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot__brand img { height: 36px; filter: invert(1); }
.foot__brand p { margin: 18px 0 0; max-width: 30ch; }
.foot h4 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a:hover { color: #fff; }
.foot__bottom { border-top: 1px solid var(--line-night); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.foot__bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }

/* Toast + prototype tag */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 14px 18px 14px 16px; border-radius: 999px; display: flex; gap: 12px; align-items: center; font-size: 14.5px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); transition: transform .45s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: #fff; flex: none; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proto { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); border: 1px solid var(--line); padding: 8px 8px 8px 14px; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: 0 8px 24px -12px rgba(0,0,0,.25); }
.proto button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.proto button:hover { background: var(--mist); }
.proto svg { width: 14px; height: 14px; }

/* Reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .head__cta { display: none; }
  .nav { gap: 20px; }
  .foot__top { grid-template-columns: 1fr 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .util nav { display: none; }
  .nav a:not(.nav__keep) { display: none; }
  .door { grid-template-columns: 1fr; min-height: 0; }
  .door__cta, .door__body { grid-column: 1; grid-row: auto; }
  .door__cta { justify-self: start; margin-top: 18px; }
  .process { grid-template-columns: 1fr; }
  .step { min-height: 0; display: grid; grid-template-columns: clamp(64px, 11vw, 110px) 1fr; padding: 24px clamp(18px, 3vw, 28px); }
  .step__num { grid-row: span 2; font-size: clamp(48px, 7vw, 64px); }
  .step h3 { margin: 4px 0 8px; padding-top: 0; }
  .step p { min-height: 0; }
  .brandline { grid-template-columns: 1fr 1fr; }
  .brandline__text { grid-column: 1 / -1; }
  .service .wrap { grid-template-columns: 1fr; }
  .service__media { min-height: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { margin-top: 28px; border-top: 1px solid var(--line); }
  .quotes { grid-template-columns: 1fr; }
  .final .wrap { grid-template-columns: 1fr; }
  .mega .wrap { grid-template-columns: 1fr 1fr; }
  .mega__promo { display: none; }
}
@media (max-width: 767px) {
  :root { --head-h: 60px; }
  .util { display: none; }
  .nav > *:not(.burger) { display: none; }
  .burger { display: grid; margin-left: -10px; }
  .mega { max-height: calc(100svh - var(--head-h)); overflow-y: auto; }
  .mega .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .stat:nth-child(3) { grid-column: 1 / -1; }
  .logo img { height: 32px; }
  .head__tools .icon-btn--search { display: none; }
  .hero__inner { min-height: 520px; padding-top: 56px; padding-bottom: 48px; justify-content: flex-end; }
  .hero__media img { object-position: 64% 30%; }
  .hero__media::after { background: linear-gradient(0deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.35) 55%, rgba(10,10,10,.1) 100%); }
  .hero h1 { font-size: clamp(56px, 17vw, 84px); }
  .hero__sub { font-size: 16.5px; }
  .doors { grid-template-columns: 1fr; }
  .door { padding: 28px var(--gut) 30px; }
  .clients .wrap { grid-template-columns: 1fr; height: auto; padding-top: 24px; padding-bottom: 24px; gap: 14px; }
  .marquee img { height: 40px; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .roles { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; gap: 8px; }
  .role--xl { grid-column: span 2; grid-row: span 2; }
  .role--wide { grid-column: span 2; }
  .role__body { left: 14px; right: 14px; bottom: 14px; }
  .role__name { font-size: 21px; }
  .role__arrow { display: none; }
  .role--textile .role__note { left: 14px; right: 14px; top: 14px; font-size: 13.5px; }
  .rail-ctrl .round-btn { display: none; }
  .rail { grid-auto-columns: 78%; gap: 14px; scroll-padding-left: var(--gut); padding: 0 var(--gut) 8px; margin: 0 calc(var(--gut) * -1); }
  .pf { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
  .pf a { scroll-snap-align: start; }
  .pf__a, .pf__b, .pf__c, .pf__d, .pf__e { grid-column: auto; height: 420px; }
  .brandline { grid-template-columns: 1fr; }
  .brandline figure { height: 240px; }
  .benefits { grid-template-columns: 1fr; }
  .benefit:nth-child(odd) { border-right: 0; }
  .benefit:nth-child(even) { padding-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 12px; }
  .stat:nth-child(3) { padding-left: 0; }
  .contacts { grid-template-columns: 1fr; }
  .buy__grid { grid-template-columns: 1fr; gap: 0; }
  .buy__label { display: none; }
  .buy--co { order: 1; }
  .buy--me { order: 2; }
  .buy__head { padding: 22px 20px 16px; border-bottom-width: 1px; }
  .buy__head.buy--me { margin-top: 16px; padding-top: 22px; }
  .buy__head.buy--co { border: 1px solid var(--line); border-bottom: 2px solid var(--ink); }
  .buy__cell { padding: 14px 20px; font-size: 15.5px; }
  .buy__cell.buy--co { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .buy__cell::before { content: attr(data-label); display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
  .buy__cta { padding: 20px; }
  .buy__cta.buy--co { border: 1px solid var(--line); border-top: 0; }
  .buy__cta .btn { width: 100%; justify-content: center; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__bottom { flex-direction: column; }
  .proto { left: 16px; right: 16px; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .rv { transition-delay: 0s !important; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .rv { opacity: 1; transform: none; }
}

/* ---------- Поиск по каталогу ---------- */
.srch { position: fixed; inset: 0; z-index: 85; background: rgba(10,10,10,.45); animation: srchIn .2s ease; }
.srch[hidden] { display: none !important; }
body.srch-open { overflow: hidden; }
.srch__panel { background: #fff; padding: 20px 0 28px; max-height: 100dvh; overflow-y: auto; box-shadow: 0 30px 60px -30px rgba(0,0,0,.4); }
.srch__panel .wrap { max-width: 920px; }
.srch__bar { position: relative; display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--ink); }
.srch__bar > svg { flex: none; width: 24px; height: 24px; color: var(--ink-3); }
.srch__bar input { flex: 1; min-width: 0; height: 64px; border: 0; background: none; font: inherit; font-size: clamp(18px, 2vw, 24px); color: var(--ink); }
.srch__bar input:focus { outline: none; }
.srch__bar input::-webkit-search-cancel-button { display: none; }
.srch__close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.srch__close:hover { background: var(--mist); color: var(--ink); }
.srch__close svg { width: 22px; height: 22px; }
.srch__body { padding-top: 18px; }
.srch__label { margin: 4px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.srch__sug { display: flex; flex-wrap: wrap; gap: 8px; }
.srch__sug button { height: 38px; padding: 0 16px; border-radius: 999px; background: var(--mist); font-size: 14.5px; color: inherit; transition: background-color .15s, color .15s; }
.srch__sug button:hover { background: var(--ink); color: #fff; }
.srch__empty { margin: 0 0 20px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.srch__empty a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.srch__list { list-style: none; margin: 0 0 18px; padding: 0; }
.srch__list a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 10px 12px; margin: 0 -12px; transition: background-color .15s; }
.srch__list a:hover, .srch__list [aria-selected="true"] a { background: var(--mist); }
.srch__img { width: 56px; height: 70px; overflow: hidden; background: var(--stone); }
.srch__img img, .srch__img span { display: block; width: 100%; height: 100%; object-fit: cover; }
.srch__txt { min-width: 0; }
.srch__txt b { display: block; font-size: 15.5px; font-weight: 560; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.srch__txt .mono, .srch__meta .mono { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-3); }
.srch__meta { text-align: right; white-space: nowrap; }
.srch__meta b { font-size: 15px; font-weight: 600; }
@keyframes srchIn { from { opacity: 0; } }
@media (max-width: 767px) {
  .srch__panel { padding-top: 8px; min-height: 100dvh; }
  .srch__list a { grid-template-columns: 48px minmax(0, 1fr); }
  .srch__img { width: 48px; height: 60px; }
  .srch__meta { grid-column: 2; text-align: left; display: flex; gap: 10px; align-items: baseline; }
  .srch__meta .mono { margin: 0; }
}
