/* ==========================================================================
   ALLIANCE-B — завод металлических дверей
   Визуальная система «Босаға»: графит + бумага + бронза + казахский орнамент
   ========================================================================== */

:root {
  --graphite-950: #171415;
  --graphite-900: #231F20;
  --graphite-800: #2D2829;
  --graphite-700: #3B3536;
  --graphite-600: #57504F;
  --graphite-500: #7A716B;

  --paper-0: #FFFFFF;
  --paper-50: #F9F8F5;
  --paper-100: #F1EEE8;
  --paper-150: #ECE8E1;
  --paper-200: #E3DED4;
  --paper-300: #CFC8BB;

  --ink-900: #231F20;
  --ink-700: #5C5556;
  --ink-600: #6A6364;
  --ink-500: #8C8480;

  --ivory-50: #F4F1EA;
  --ivory-300: #B8B0A5;
  --ivory-400: #9A9288;

  --bronze-300: #DDC291;
  --bronze-400: #C9A46A;
  --bronze-500: #B08448;
  --bronze-600: #9A7038;
  --bronze-700: #7D5A2B;

  --navy-900: #15254E;
  --steel-400: #5BB8E6;
  --steel-500: #0C9CD8;
  --steel-600: #0A6E9E;
  --error-600: #B03A2E;
  --error-300: #F0907F;
  --success-600: #2E7553;

  /* светлая тема по умолчанию */
  --bg: var(--paper-50);
  --bg-alt: var(--paper-100);
  --bg-raised: var(--paper-0);
  --bg-stage: var(--paper-150);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-subtle: var(--ink-600);
  --accent: var(--bronze-500);
  --accent-hover: var(--bronze-400);
  --accent-text: var(--bronze-700);
  --on-accent: var(--graphite-900);
  --line: var(--paper-200);
  --line-strong: var(--paper-300);
  --border-ui: var(--ink-500);
  --tech-line: var(--steel-500);
  --link: var(--ink-900);
  --link-line: var(--bronze-500);
  --link-hover: var(--bronze-700);
  --focus: var(--steel-600);
  --orn: var(--bronze-500);
  --orn-bg: var(--graphite-900);
  --orn-bg-alpha: .045;
  --orn-mark-alpha: .07;

  --font-display: "Cormorant Garamond", "Noto Serif Display", Georgia, serif;
  --font-text: "Inter", "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.6rem + 3.2vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.65rem + 2.6vw, 4rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.9vw, 3rem);
  --fs-h3: clamp(1.375rem, 1.2rem + .75vw, 1.75rem);
  --fs-h4: clamp(1.125rem, 1.06rem + .3vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1.02rem + .3vw, 1.25rem);
  --fs-body: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-small: .875rem;
  --fs-caption: .8125rem;
  --fs-eyebrow: clamp(.75rem, .72rem + .12vw, .8125rem);
  --fs-counter: clamp(2.6rem, 1.9rem + 2.6vw, 4.25rem);

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px;
  --section-y: clamp(64px, 9vw, 140px);
  --section-head-gap: clamp(36px, 5vw, 60px);
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;

  --radius-xs: 2px;
  --radius-s: 4px;
  --shadow-lift: 0 16px 40px -24px rgb(35 31 32 / .35);
  --shadow-modal: 0 32px 80px -32px rgb(23 20 21 / .55);

  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms; --dur-4: 560ms; --dur-5: 900ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-standard: cubic-bezier(.4, 0, .2, 1);

  --header-h: 84px;
}

.theme-dark {
  --bg: var(--graphite-900);
  --bg-alt: var(--graphite-950);
  --bg-raised: var(--graphite-800);
  --bg-stage: var(--paper-150);
  --text: var(--ivory-50);
  --text-muted: var(--ivory-300);
  --text-subtle: var(--ivory-400);
  --accent-text: var(--bronze-400);
  --line: var(--graphite-700);
  --line-strong: var(--graphite-600);
  --border-ui: var(--graphite-500);
  --link: var(--ivory-50);
  --link-line: var(--bronze-400);
  --link-hover: var(--bronze-300);
  --focus: var(--steel-400);
  --orn: var(--bronze-400);
  --orn-bg: var(--bronze-500);
  --orn-bg-alpha: .06;
  --orn-mark-alpha: .09;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--paper-50);
  color: var(--ink-900);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-feature-settings: "cv11" 1;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
::selection { background: var(--bronze-300); color: var(--graphite-900); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--bronze-500); color: var(--graphite-900); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.section { position: relative; background: var(--bg); color: var(--text); padding-block: var(--section-y); isolation: isolate; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Типографика ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 500; }
.display { font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.015em; }
.h1 { font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.01em; }
.h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.005em; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; }
.h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 600; letter-spacing: -.005em; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-muted); max-width: 54ch; }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }
.caps { text-transform: uppercase; font-feature-settings: "case" 1; }
.italic-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; }
em.accent, .accent { color: var(--accent-text); font-style: normal; }
.display em, .h1 em, .h2 em { font-style: italic; font-weight: 400; color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .18em; line-height: 1.3;
  text-transform: uppercase; font-feature-settings: "case" 1; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }
.eyebrow--plain::before { display: none; }

.section-head { display: grid; gap: 16px; margin-bottom: var(--section-head-gap); max-width: 760px; }
.section-head .lead { margin-top: 4px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.section-head--split > div { display: grid; gap: 16px; max-width: 760px; }
@media (max-width: 899px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Орнамент ---------- */
.orn-divider { display: flex; align-items: center; justify-content: center; gap: 0; color: var(--orn); width: 100%; max-width: 420px; margin-inline: auto; }
.orn-divider svg { width: 96px; height: auto; flex: none; }
.orn-divider::before, .orn-divider::after { content: ""; flex: 1; height: 1px; }
.orn-divider::before { background: linear-gradient(to left, var(--orn), transparent); }
.orn-divider::after { background: linear-gradient(to right, var(--orn), transparent); }
.orn-divider--wide { max-width: none; }
.orn-divider--left { margin-inline: 0; max-width: 280px; }
.orn-divider--left::before { display: none; }

.orn-field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--orn-bg); opacity: var(--orn-bg-alpha);
  -webkit-mask: url(../img/ornament/ornament-tile.svg) 0 0 / 176px 176px repeat, radial-gradient(80% 90% at 92% 10%, #000 0%, transparent 72%);
  -webkit-mask-composite: source-in;
  mask: url(../img/ornament/ornament-tile.svg) 0 0 / 176px 176px repeat, radial-gradient(80% 90% at 92% 10%, #000 0%, transparent 72%);
  mask-composite: intersect;
}
.orn-field--left::before {
  -webkit-mask: url(../img/ornament/ornament-tile.svg) 0 0 / 176px 176px repeat, radial-gradient(70% 90% at 0% 100%, #000 0%, transparent 72%);
  -webkit-mask-composite: source-in;
  mask: url(../img/ornament/ornament-tile.svg) 0 0 / 176px 176px repeat, radial-gradient(70% 90% at 0% 100%, #000 0%, transparent 72%);
  mask-composite: intersect;
}
.orn-rosette {
  position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 1;
  background-color: var(--orn); opacity: var(--orn-mark-alpha);
  -webkit-mask: url(../img/ornament/ornament-rosette.svg) center / contain no-repeat;
  mask: url(../img/ornament/ornament-rosette.svg) center / contain no-repeat;
}

.frame { position: relative; padding: 14px; border: 1px solid var(--line); }
.frame__corner { position: absolute; width: 72px; height: 72px; color: var(--orn); pointer-events: none; z-index: 2; }
.frame__corner svg { width: 100%; height: 100%; }
.frame__corner--tl { top: -9px; left: -9px; }
.frame__corner--tr { top: -9px; right: -9px; transform: scaleX(-1); }
.frame__corner--bl { bottom: -9px; left: -9px; transform: scaleY(-1); }
.frame__corner--br { bottom: -9px; right: -9px; transform: scale(-1); }

.diamond-list { display: grid; gap: 12px; }
.diamond-list li { position: relative; padding-left: 26px; }
.diamond-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border: 1.25px solid var(--accent); transform: rotate(45deg); }

/* ---------- Кнопки и ссылки ---------- */
.btn {
  --btn-h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--btn-h); padding: 0 28px; border-radius: var(--radius-xs);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-feature-settings: "case" 1;
  line-height: 1.1; text-align: center; white-space: nowrap;
  transition: background-color var(--dur-2) var(--ease-standard), color var(--dur-2), border-color var(--dur-2), transform var(--dur-1);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--dur-2) var(--ease-out); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { border: 1px solid currentColor; color: var(--text); }
.btn--secondary:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--l { --btn-h: 56px; padding: 0 32px; font-size: .875rem; }
.btn--s { --btn-h: 40px; padding: 0 18px; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) { .btn:hover svg.arrow { transform: translateX(4px); } }

.link {
  display: inline-flex; align-items: center; gap: 10px; color: var(--link);
  font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-feature-settings: "case" 1;
  padding-bottom: 6px; background: linear-gradient(var(--link-line), var(--link-line)) 0 100% / 100% 1px no-repeat;
  transition: color var(--dur-2), background-size var(--dur-2);
}
.link:hover { color: var(--link-hover); background-size: 100% 2px; }
.link svg { width: 16px; height: 16px; transition: transform var(--dur-2) var(--ease-out); }
.link:hover svg { transform: translateX(4px); }
.text-link { color: var(--link); text-decoration: underline; text-decoration-color: var(--link-line); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--link-hover); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ivory-50); transition: height var(--dur-3) var(--ease-out), background-color var(--dur-3), border-color var(--dur-3);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-solid { --header-h: 68px; background: rgb(35 31 32 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom-color: rgb(244 241 234 / .08); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 196px; height: auto; transition: width var(--dur-3) var(--ease-out); }
.is-scrolled .brand img { width: 176px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 12px; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  font-feature-settings: "case" 1; color: var(--ivory-300); transition: color var(--dur-2);
}
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--bronze-400); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ivory-50); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { display: grid; line-height: 1.2; text-align: right; }
.header-phone a { font-weight: 600; font-size: .9375rem; letter-spacing: .01em; white-space: nowrap; }
.header-phone span { font-size: .72rem; color: var(--ivory-400); letter-spacing: .04em; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(244 241 234 / .22); border-radius: var(--radius-xs); color: var(--ivory-50); transition: border-color var(--dur-2), background-color var(--dur-2); }
.icon-btn:hover { border-color: var(--bronze-400); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .badge { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--bronze-500); color: var(--graphite-900); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.icon-btn[hidden] { display: none; }
.burger { display: none; }
.header-cta { --btn-h: 44px; padding: 0 20px; }
@media (max-width: 1240px) { .header-phone { display: none; } }
@media (max-width: 1060px) {
  .nav, .header-cta { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .brand img { width: 168px; }
}

/* мобильное меню */
.mnav { position: fixed; inset: 0; z-index: 150; background: var(--graphite-950); color: var(--ivory-50); display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; transform: translateY(-100%); visibility: hidden; transition: transform var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3); overflow-y: auto; }
.mnav.is-open { transform: none; visibility: visible; transition: transform var(--dur-3) var(--ease-out); }
.mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.mnav__top img { width: 168px; }
.mnav__links { display: grid; border-top: 1px solid var(--graphite-700); }
.mnav__links a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--graphite-700); font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.mnav__links a span { font-family: var(--font-text); font-size: .75rem; color: var(--ivory-400); letter-spacing: .1em; }
.mnav__contacts { margin-top: auto; padding-top: 32px; display: grid; gap: 14px; }
.mnav__contacts a.phone { font-size: 1.25rem; font-weight: 600; }
.mnav__contacts small { display: block; color: var(--ivory-400); font-size: .78rem; }

/* нижняя панель на мобильном */
.mbar { display: none; }
@media (max-width: 899px) {
  .mbar { position: fixed; inset: auto 0 0 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr 1.2fr; background: var(--graphite-950); border-top: 1px solid var(--graphite-700); padding-bottom: env(safe-area-inset-bottom); transition: transform var(--dur-3) var(--ease-out); }
  .mbar.is-hidden { transform: translateY(110%); }
  .mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--ivory-50); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .mbar a + a { border-left: 1px solid var(--graphite-700); }
  .mbar a svg { width: 18px; height: 18px; }
  .mbar a.mbar__cta { background: var(--bronze-500); color: var(--graphite-900); border-left: 0; }
  body { padding-bottom: 58px; }
}

/* плавающая кнопка WhatsApp (десктоп) */
.fab { position: fixed; right: 28px; bottom: 28px; z-index: 80; display: flex; align-items: center; gap: 12px; }
.fab__btn { width: 56px; height: 56px; border-radius: 50%; background: var(--graphite-900); color: var(--ivory-50); display: grid; place-items: center; border: 1px solid var(--bronze-500); box-shadow: 0 12px 32px -12px rgb(23 20 21 / .6); transition: background-color var(--dur-2); }
.fab__btn:hover { background: var(--graphite-700); }
.fab__btn svg { width: 24px; height: 24px; }
.fab__hint { background: var(--graphite-900); color: var(--ivory-50); font-size: .8125rem; padding: 10px 14px; border-radius: var(--radius-xs); opacity: 0; transform: translateX(8px); transition: opacity var(--dur-3), transform var(--dur-3) var(--ease-out); pointer-events: none; }
.fab.show-hint .fab__hint { opacity: 1; transform: none; }
.fab.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 899px) { .fab { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); padding-top: calc(var(--header-h) + clamp(32px, 6vw, 72px)); padding-bottom: clamp(48px, 6vw, 80px); background: var(--graphite-900); color: var(--ivory-50); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 78% 45%, #3B3536 0%, transparent 70%); }
.hero .orn-rosette { width: clamp(640px, 70vw, 1040px); right: -18%; top: 50%; translate: 0 -50%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero__text { display: grid; gap: 28px; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display); line-height: 1.02; letter-spacing: -.015em; }
.hero__title .line { display: block; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--bronze-400); }
.hero__lead { font-size: var(--fs-lead); color: var(--ivory-300); max-width: 52ch; line-height: 1.55; }
.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: 8px 36px; justify-content: start; padding-top: 28px; border-top: 1px solid var(--graphite-700); margin-top: 8px; }
.hero__stats b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }
.hero__stats b sup { font-family: var(--font-text); font-size: .38em; font-weight: 500; color: var(--bronze-400); vertical-align: top; margin-left: 3px; position: relative; top: .2em; }
.hero__stats > div > span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--ivory-400); line-height: 1.35; max-width: 16ch; }
.hero__media { position: relative; justify-self: end; width: min(100%, 520px); }
.hero__media .frame { border-color: rgb(244 241 234 / .14); }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 40%; background: var(--graphite-800); }
.hero__caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; color: var(--ivory-400); font-size: .8125rem; }
.hero__caption .italic-serif { font-size: 1.35rem; color: var(--bronze-400); }
@media (max-width: 1060px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; width: min(100%, 560px); }
  .hero .orn-rosette { right: -40%; top: 30%; }
}
@media (max-width: 640px) {
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .hero__media img { aspect-ratio: 4 / 4.4; }
}

/* шапка внутренних страниц */
.page-hero { position: relative; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(48px, 6vw, 88px); background: var(--graphite-900); color: var(--ivory-50); overflow: hidden; isolation: isolate; }
.page-hero .orn-rosette { width: clamp(520px, 52vw, 820px); right: -12%; top: -20%; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.page-hero h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h1); line-height: 1.05; letter-spacing: -.01em; max-width: 18ch; margin-top: 18px; }
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--bronze-400); }
.page-hero .lead { color: var(--ivory-300); margin-top: 22px; }
.page-hero .btn-row { margin-top: 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .78rem; color: var(--ivory-400); letter-spacing: .04em; }
.crumbs a:hover { color: var(--ivory-50); }
.crumbs span[aria-hidden] { color: var(--graphite-500); }
.page-hero__facts { display: grid; grid-template-columns: repeat(2, auto); gap: 22px 40px; padding: 28px 0 4px; }
.page-hero__facts b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.page-hero__facts span { display: block; margin-top: 6px; font-size: .8125rem; color: var(--ivory-400); }
@media (max-width: 899px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- Партнёры ---------- */
.partners { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.partners--all { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.partners li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 104px; display: grid; place-items: center; padding: 18px 20px; }
.partners img { width: auto; max-width: min(100%, 150px); max-height: 46px; object-fit: contain; opacity: .62; transition: opacity var(--dur-2); }
.partners img.is-tall { max-height: 64px; }
.partners li:hover img { opacity: 1; }
.theme-light-logos .partners img { filter: brightness(0); opacity: .55; }
@media (max-width: 1060px) { .partners { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .partners { grid-template-columns: repeat(3, minmax(0, 1fr)); } .partners li { min-height: 84px; padding: 14px 10px; } .partners img { max-height: 34px; } .partners img.is-tall { max-height: 48px; } }
.partners-strip { padding-block: clamp(40px, 5vw, 64px); background: var(--graphite-950); color: var(--ivory-50); }
.partners-strip__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-bottom: 28px; }
.partners-strip__head p { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory-300); }

/* ---------- Карточки направлений ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.dir-card { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--bg-raised); border: 1px solid var(--line); transition: border-color var(--dur-3), transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3); }
.dir-card:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.dir-card__stage { position: relative; aspect-ratio: 4 / 3.3; background: var(--bg-stage); display: flex; align-items: flex-end; justify-content: center; gap: 4%; overflow: hidden; padding-bottom: 7%; }
.dir-card__stage img { height: 82%; width: auto; filter: drop-shadow(0 18px 18px rgb(35 31 32 / .18)); transition: transform var(--dur-3) var(--ease-out); }
.dir-card:hover .dir-card__stage img { transform: translateY(-4px); }
.dir-card__stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7%; height: 1px; background: rgb(35 31 32 / .08); }
.dir-card__body { display: grid; gap: 12px; align-content: start; padding: 28px 28px 30px; }
.dir-card__body .h3 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); }
.dir-card__body p { color: var(--text-muted); font-size: .9375rem; }
.dir-card__body .link { margin-top: 10px; justify-self: start; }
.dir-card__body .link::before { content: ""; position: absolute; inset: 0; }
@media (max-width: 899px) { .dir-grid { grid-template-columns: 1fr; } .dir-card { grid-template-columns: 1fr 1.2fr; grid-template-rows: none; } .dir-card__stage { aspect-ratio: auto; min-height: 220px; } }
@media (max-width: 560px) { .dir-card { grid-template-columns: 1fr; } .dir-card__stage { aspect-ratio: 4 / 3; } }

/* ---------- Счётчики ---------- */
.counters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.counter { padding: 32px 24px 8px 0; display: grid; gap: 12px; align-content: start; }
.counter + .counter { padding-left: 24px; border-left: 1px solid var(--line); }
.counter__value { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-counter); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.counter__value sup { font-family: var(--font-text); font-weight: 500; font-size: .32em; color: var(--accent-text); vertical-align: top; position: relative; top: .25em; margin-left: 4px; letter-spacing: 0; }
.counter__label { font-size: .9375rem; color: var(--text-muted); max-width: 22ch; line-height: 1.45; }
@media (max-width: 1060px) { .counters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .counter:nth-child(4) { border-left: 0; padding-left: 0; } }
@media (max-width: 640px) { .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .counter { padding-right: 12px; } .counter:nth-child(odd) { border-left: 0; padding-left: 0; } .counter:nth-child(4) { border-left: 1px solid var(--line); padding-left: 16px; } .counter:nth-child(even) { padding-left: 16px; } .counter:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Преимущества ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.why { padding: clamp(24px, 3vw, 40px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.why__n { font-family: var(--font-display); font-size: 1.125rem; color: var(--accent-text); font-style: italic; }
.why h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); line-height: 1.2; }
.why p { color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 899px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* гарантия-полоса */
.guarantee { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; margin-top: clamp(32px, 4vw, 56px); padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px); background: var(--graphite-900); color: var(--ivory-50); }
.guarantee__big { font-family: var(--font-display); font-size: clamp(3rem, 2.4rem + 2vw, 4.5rem); line-height: .9; color: var(--bronze-400); }
.guarantee__big small { display: block; font-family: var(--font-text); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-300); margin-top: 8px; }
.guarantee p { color: var(--ivory-300); max-width: 62ch; }
.guarantee p strong { color: var(--ivory-50); font-weight: 600; }
@media (max-width: 899px) { .guarantee { grid-template-columns: 1fr; } }

/* ---------- Шкала классов ---------- */
.classes-scale { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cls { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); transition: background-color var(--dur-3); }
.cls:hover { background: var(--paper-0); }
.cls__stage { aspect-ratio: 3 / 3.6; background: var(--bg-stage); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; overflow: hidden; }
.cls__stage img { height: 84%; width: auto; filter: drop-shadow(0 14px 14px rgb(35 31 32 / .16)); transition: transform var(--dur-3) var(--ease-out); }
.cls:hover .cls__stage img { transform: translateY(-4px); }
.cls__head { padding: 18px 18px 6px; display: grid; gap: 8px; }
.cls__tier { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.cls__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.cls__specs { padding: 6px 18px 18px; font-size: .8125rem; color: var(--text-muted); display: grid; gap: 4px; align-content: start; }
.cls__specs b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.cls__go { padding: 14px 18px 18px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--accent-text); border-top: 1px solid var(--line); }
.cls a.cover { position: absolute; inset: 0; z-index: 1; }
@media (max-width: 1200px) { .classes-scale { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .classes-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cls__name { font-size: 1.3rem; } }

/* ---------- Процесс ---------- */
.process { display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 28px 24px 0 0; display: grid; gap: 10px; align-content: start; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.step::after { content: ""; position: absolute; top: -4px; left: 0; width: 9px; height: 9px; border: 1.25px solid var(--accent); background: var(--bg); transform: rotate(45deg); }
.step__n { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--accent-text); }
.step h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.step p { font-size: .875rem; color: var(--text-muted); }
@media (max-width: 1060px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; row-gap: 0; } .step { padding: 0 0 28px 32px; } .step::before { top: 6px; bottom: 0; left: 4px; right: auto; width: 1px; height: auto; } .step::after { top: 2px; } }

.facts-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.fact-list { display: grid; border-top: 1px solid var(--line); }
.fact-list li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.fact-list b { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; line-height: 1; color: var(--accent); min-width: 3.4ch; }
.fact-list span { color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 899px) { .facts-split { grid-template-columns: 1fr; } }

/* ---------- Кейсы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.case { position: relative; display: grid; gap: 16px; align-content: start; text-align: left; }
.case__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-200); }
.case__media img.case__bld { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.case:hover .case__media img.case__bld { transform: scale(1.04); }
.case__door { position: absolute; right: 12px; bottom: 12px; width: 23%; aspect-ratio: 1 / 2.15; background: var(--paper-150); padding: 6px; box-shadow: 0 12px 24px -10px rgb(23 20 21 / .5); }
.case__door img { width: 100%; height: 100%; object-fit: cover; }
.case__meta { display: grid; gap: 6px; }
.case__city { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); }
.case__name { font-family: var(--font-display); font-size: clamp(1.4rem, 1.25rem + .5vw, 1.75rem); font-weight: 600; line-height: 1.15; }
.case__types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.case__btn { position: absolute; inset: 0; z-index: 2; }
.case__more { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 7px 12px; background: rgb(23 20 21 / .8); color: var(--ivory-50); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; opacity: 0; transform: translateY(-4px); transition: opacity var(--dur-3), transform var(--dur-3) var(--ease-out); }
.case:hover .case__more, .case:focus-within .case__more { opacity: 1; transform: none; }
@media (max-width: 1060px) { .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cases { grid-template-columns: 1fr; } }
.cases--scroll { }
@media (max-width: 560px) {
  .cases--scroll { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
  .cases--scroll > * { scroll-snap-align: start; }
}

.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; font-feature-settings: "case" 1; }
.tag--premium { border-color: var(--bronze-500); color: var(--accent-text); }
.tag--premium::before { content: ""; width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }
.tag--business { border-color: var(--text); color: var(--text); }
.tag--standard { border-color: transparent; background: var(--bg-alt); }
.tag--tech { border-color: var(--steel-600); color: var(--steel-600); }
.tag--fire { border-color: var(--error-600); color: var(--error-600); }
.theme-dark .tag--fire { border-color: var(--error-300); color: var(--error-300); }
.theme-dark .tag--tech { border-color: var(--steel-400); color: var(--steel-400); }

.city-line { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--text-muted); }
.city-line a { color: var(--text); }
.city-line a b { font-weight: 600; font-variant-numeric: tabular-nums lining-nums; color: var(--accent-text); margin-left: 4px; }
.city-line a:hover { color: var(--accent-text); }

/* ---------- О заводе ---------- */
.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; filter: saturate(.8) contrast(1.02); }
.about__badge { position: absolute; right: -1px; bottom: -1px; background: var(--graphite-900); color: var(--ivory-50); padding: 22px 26px; display: grid; gap: 4px; }
.about__badge b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.about__badge span { font-size: .78rem; color: var(--ivory-300); letter-spacing: .04em; }
.about__text { display: grid; gap: 22px; }
.about__text > p { color: var(--text-muted); }
.about__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.about__nums div { padding: 20px 16px 0 0; }
.about__nums div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.about__nums b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); font-weight: 500; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.about__nums span { display: block; margin-top: 8px; font-size: .8125rem; color: var(--text-subtle); }
@media (max-width: 899px) { .about { grid-template-columns: 1fr; } }

/* ---------- Форма / CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.cta__aside { display: grid; gap: 24px; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-list small { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-subtle); }
.contact-list a { font-size: 1.25rem; font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums lining-nums; }
.contact-list a:hover { color: var(--accent-text); }
.contact-list span { font-size: .875rem; color: var(--text-muted); }
.form { display: grid; gap: 18px; background: var(--bg-raised); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); }
.theme-dark .form { background: var(--graphite-800); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field legend { font-size: .875rem; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--border-ui); border-radius: var(--radius-xs); transition: border-color var(--dur-2), box-shadow var(--dur-2);
}
.theme-dark .field input, .theme-dark .field select, .theme-dark .field textarea { background: var(--graphite-900); }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(176 132 72 / .25); }
.field input[aria-invalid="true"] { border-color: var(--error-600); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: .8125rem; color: var(--text-muted); cursor: pointer; transition: all var(--dur-2); user-select: none; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked), .chip.is-active, .chip[aria-pressed="true"] { background: var(--graphite-900); border-color: var(--graphite-900); color: var(--ivory-50); }
.theme-dark .chip:has(input:checked), .theme-dark .chip.is-active, .theme-dark .chip[aria-pressed="true"] { background: var(--ivory-50); border-color: var(--ivory-50); color: var(--graphite-900); }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.chip b { margin-left: 6px; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; opacity: .7; }
.consent { display: flex; gap: 10px; font-size: .8125rem; color: var(--text-subtle); align-items: flex-start; }
.consent input { margin-top: 3px; accent-color: var(--bronze-500); width: 16px; height: 16px; flex: none; }
.form__note { font-size: .8125rem; color: var(--text-subtle); }
.form__ok { display: none; padding: 16px; border: 1px solid var(--success-600); color: var(--success-600); font-size: .9375rem; }
.form.is-sent .form__ok { display: block; }
@media (max-width: 1060px) { .cta { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Футер ---------- */
.footer-band { background: var(--graphite-950); padding-top: 56px; }
.site-footer { position: relative; background: var(--graphite-950); color: var(--ivory-300); padding: 56px 0 28px; overflow: hidden; isolation: isolate; --orn: var(--bronze-400); --orn-mark-alpha: .045; }
.site-footer .orn-rosette { width: 720px; right: -260px; bottom: -380px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid h4 { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ivory-50); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 10px; }
.footer-grid a { font-size: .9375rem; transition: color var(--dur-2); }
.footer-grid a:hover { color: var(--ivory-50); }
.footer-brand img { width: 200px; }
.footer-brand p { margin-top: 18px; font-size: .9375rem; max-width: 34ch; }
.footer-brand .italic-serif { display: block; margin-top: 18px; font-size: 1.5rem; color: var(--bronze-400); }
.footer-contacts a.phone { font-size: 1.0625rem; font-weight: 600; color: var(--ivory-50); font-variant-numeric: tabular-nums lining-nums; }
.footer-contacts small { display: block; font-size: .75rem; color: var(--ivory-400); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--graphite-700); font-size: .8125rem; color: var(--ivory-400); }
@media (max-width: 1060px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Каталог ---------- */
.class-nav { position: sticky; top: 68px; z-index: 60; background: rgb(249 248 245 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.class-nav .container { display: flex; align-items: center; gap: 10px; min-height: 64px; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); mask: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.class-nav .container::-webkit-scrollbar { display: none; }
.class-nav__label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); white-space: nowrap; margin-left: 6px; }
.class-nav__label:first-child { margin-left: 0; }
.class-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: .8125rem; font-weight: 500; white-space: nowrap; transition: all var(--dur-2); color: var(--text-muted); }
.class-nav a sup { font-size: .68rem; color: var(--text-subtle); font-variant-numeric: tabular-nums lining-nums; top: -.3em; }
.class-nav a:hover { border-color: var(--text); color: var(--text); }
.class-nav a.is-active { background: var(--graphite-900); border-color: var(--graphite-900); color: var(--ivory-50); }
.class-nav a.is-active sup { color: var(--ivory-300); }
.class-nav .sep { width: 1px; height: 24px; background: var(--line-strong); flex: none; margin-inline: 6px; }
.class-search { position: relative; margin-left: auto; flex: none; }
.class-search input { height: 36px; width: 200px; padding: 0 12px 0 34px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); background: var(--paper-0); font-size: .8125rem; }
.class-search input:focus { outline: none; border-color: var(--accent); }
.class-search svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 15px; height: 15px; color: var(--text-subtle); }

.cls-section { padding-block: clamp(56px, 7vw, 104px); border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.cls-section:nth-of-type(even) { background: var(--paper-100); }
.cls-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(28px, 4vw, 64px); align-items: start; margin-bottom: clamp(32px, 4vw, 52px); }
.cls-head__title { display: grid; gap: 14px; align-content: start; }
.cls-head__title .h2 { font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); }
.cls-head__title p { color: var(--text-muted); max-width: 44ch; }
.keyspecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.keyspec { padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.keyspec:not(:nth-child(3n+1)) { padding-left: 14px; border-left: 1px solid var(--line); }
.keyspec span { font-size: .75rem; color: var(--text-subtle); line-height: 1.35; }
.keyspec b { font-size: .9375rem; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums lining-nums; }
.cls-details { margin-top: 18px; }
.cls-details summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); padding-bottom: 6px; border-bottom: 1px solid var(--accent); }
.cls-details summary::-webkit-details-marker { display: none; }
.cls-details summary svg { width: 14px; height: 14px; transition: transform var(--dur-3); }
.cls-details[open] summary svg { transform: rotate(180deg); }
.cls-details__body { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; }
.cls-extras h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; margin-bottom: 14px; }
.cls-extras .diamond-list { font-size: .9375rem; gap: 10px; }
@media (max-width: 1060px) { .cls-head { grid-template-columns: 1fr; } .cls-details__body { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .keyspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .keyspec:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; } .keyspec:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); } }

.spec-table { font-size: .9375rem; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:first-child { border-top: 1px solid var(--line); }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 11px 0; line-height: 1.45; }
.spec-table th { width: 42%; font-weight: 400; color: var(--text-subtle); font-size: .875rem; padding-right: 16px; }
.spec-table td { padding-left: 16px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 480px) { .spec-table tr { display: grid; padding: 10px 0; } .spec-table th, .spec-table td { width: auto; padding: 0; border: 0; } .spec-table td { margin-top: 2px; } }

.series-toggle { display: inline-flex; border: 1px solid var(--border-ui); border-radius: var(--radius-xs); padding: 3px; gap: 3px; margin-top: 8px; flex-wrap: wrap; }
.series-toggle button { min-height: 40px; padding: 0 16px; font-size: .8125rem; font-weight: 500; color: var(--text-muted); border-radius: 1px; transition: all var(--dur-2); }
.series-toggle button[aria-pressed="true"] { background: var(--graphite-900); color: var(--ivory-50); }
.series-toggle button b { font-weight: 600; }
[data-series-panel][hidden] { display: none; }

.door-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 1200px) { .door-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.door { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--paper-0); border: 1px solid var(--line); transition: border-color var(--dur-3), box-shadow var(--dur-3); }
.door.is-dim { opacity: .25; }
.door.is-hit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.door__stage { position: relative; aspect-ratio: 3 / 4; background: var(--paper-150); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; transition: background-color var(--dur-3); }
.door__stage::after { content: ""; position: absolute; left: 50%; bottom: 4.5%; width: 46%; height: 18px; translate: -50% 50%; background: radial-gradient(closest-side, rgb(35 31 32 / .22), transparent); transition: opacity var(--dur-3), width var(--dur-3); z-index: 0; }
.door__stage img { position: relative; z-index: 1; height: 86%; width: auto; max-width: 84%; object-fit: contain; margin-bottom: 6%; transition: transform var(--dur-3) var(--ease-out); }
.door__stage .vnum { position: absolute; left: 10px; top: 10px; z-index: 2; font-size: .68rem; letter-spacing: .1em; color: var(--text-subtle); text-transform: uppercase; }
.door__body { display: grid; gap: 10px; padding: 16px 16px 18px; align-content: start; }
.door__name-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.door__name { font-size: .9375rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; font-feature-settings: "case" 1; }
.door__name::after { content: ""; display: block; width: 24px; height: 1px; background: var(--tech-line); margin-top: 7px; }
.door__nums { font-size: .8125rem; color: var(--text-subtle); line-height: 1.45; font-variant-numeric: tabular-nums lining-nums; }
.door__actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.door__open { position: absolute; inset: 0; z-index: 3; }
.add-btn { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); transition: all var(--dur-2); }
.add-btn:hover { border-color: var(--text); color: var(--text); }
.add-btn[aria-pressed="true"] { background: var(--graphite-900); border-color: var(--graphite-900); color: var(--ivory-50); }
.add-btn svg { width: 13px; height: 13px; }
.door__more { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .door:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
  .door:hover .door__stage { background: #E6E1D9; }
  .door:hover .door__stage img { transform: translateY(-4px); }
  .door:hover .door__stage::after { opacity: .7; width: 40%; }
}
.door, .case, .dir-card, .cls, .lining, .pair { min-width: 0; }
.door__name { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .door-grid .door__more { display: none; } .door-grid .door__actions { justify-content: flex-end; } }
@media (max-width: 760px) { .door__name-row .tag { display: none; } .tech-grid .door__name-row .tag { display: inline-flex; } .tech-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .door__nums { display: none; } .door__body { padding: 12px; } .door__name { font-size: .8125rem; } .add-btn span { display: none; } }

/* обшивки */
.linings { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.lining { display: grid; gap: 10px; text-align: center; }
.lining__stage { aspect-ratio: 1 / 2; background: var(--paper-150); display: grid; place-items: center; padding: 10% 14%; transition: background-color var(--dur-3); }
.lining:hover .lining__stage { background: #E6E1D9; }
.lining__stage img { max-height: 100%; width: auto; filter: drop-shadow(0 8px 10px rgb(35 31 32 / .14)); }
.lining span { font-size: .75rem; letter-spacing: .08em; color: var(--text-muted); font-variant-numeric: tabular-nums lining-nums; }
@media (max-width: 1060px) { .linings { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* сравнение */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper-0); }
.compare { min-width: 980px; font-size: .875rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.compare td + td, .compare th + th { border-left: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; background: var(--graphite-900); color: var(--ivory-50); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.compare tbody th { position: sticky; left: 0; background: var(--paper-50); font-weight: 500; color: var(--text-muted); min-width: 190px; z-index: 1; }
.compare td { font-variant-numeric: tabular-nums lining-nums; }
.compare tr.group th { background: var(--paper-100); color: var(--accent-text); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.compare-note { margin-top: 14px; font-size: .8125rem; color: var(--text-subtle); }

/* индивидуальный дизайн */
.custom { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.custom__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.custom__pics figure { margin: 0; display: grid; gap: 10px; }
.custom__pics img { width: 100%; aspect-ratio: 3 / 4.6; object-fit: cover; }
.custom__pics figcaption { font-size: .78rem; color: var(--text-subtle); }
@media (max-width: 899px) { .custom { grid-template-columns: 1fr; } }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(23 20 21 / .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade var(--dur-3) var(--ease-out); }
.modal__dialog { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: min(1180px, calc(100vw - 48px)); max-height: calc(100svh - 48px); overflow: auto; background: var(--paper-50); color: var(--ink-900); border-radius: var(--radius-s); box-shadow: var(--shadow-modal); animation: rise var(--dur-3) var(--ease-out); overscroll-behavior: contain; }
.modal__close { position: sticky; top: 0; float: right; z-index: 5; width: 52px; height: 52px; display: grid; place-items: center; background: var(--paper-50); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { color: var(--accent-text); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 760px) {
  .modal__dialog { top: auto; bottom: 0; left: 0; translate: none; width: 100%; max-height: 94svh; border-radius: var(--radius-s) var(--radius-s) 0 0; }
}

.mdl { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.mdl__stage { position: sticky; top: 0; align-self: start; height: min(calc(100svh - 48px), 820px); background: var(--paper-150); display: flex; align-items: center; justify-content: center; padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 48px) 80px; }
.mdl__stage img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 24px 24px rgb(35 31 32 / .2)); }
.mdl__stage .frame__corner { width: 64px; height: 64px; }
.mdl__nav { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.mdl__nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: rgb(249 248 245 / .9); border-radius: var(--radius-xs); }
.mdl__nav button:hover { border-color: var(--text); }
.mdl__nav svg { width: 18px; height: 18px; }
.mdl__info { padding: clamp(28px, 4vw, 52px); display: grid; gap: 22px; align-content: start; }
.mdl__title { display: grid; gap: 12px; }
.mdl__title h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; font-family: var(--font-text); }
.mdl__title h2::after { content: ""; display: block; width: 32px; height: 1px; background: var(--tech-line); margin-top: 12px; }
.mdl__sub { font-size: .9375rem; color: var(--text-muted); }
.mdl h3 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-subtle); font-weight: 600; margin-bottom: 10px; }
.mdl__custom { padding: 16px 18px; background: var(--paper-100); font-size: .875rem; color: var(--text-muted); border-left: 2px solid var(--accent); }
.mdl__cta { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; background: var(--paper-50); padding: 14px 0 4px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .mdl { grid-template-columns: 1fr; } .mdl__stage { position: relative; height: auto; padding: 32px 24px 72px; } .mdl__stage img { max-height: 46svh; } }

.case-mdl { display: grid; }
.case-mdl__gallery { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 10px; padding: 10px; background: var(--paper-150); align-items: start; }
.case-mdl__gallery .g-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.case-mdl__gallery .g-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.case-mdl__gallery .g-side button { display: block; padding: 0; border: 0; cursor: zoom-in; position: relative; }
.case-mdl__gallery .g-side button.is-current::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.case-mdl__gallery .g-side img { width: 100%; aspect-ratio: 4 / 4.85; object-fit: cover; }
.case-mdl__gallery .g-door { background: var(--paper-0); object-fit: contain !important; padding: 8px; }
.case-mdl__body { padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); }
.case-mdl__body h2 { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.75rem); font-weight: 500; line-height: 1.05; }
.case-mdl__doors { display: grid; gap: 28px; }
@media (max-width: 760px) { .case-mdl__gallery { grid-template-columns: 1fr; } .case-mdl__gallery .g-side { grid-template-columns: repeat(4, 1fr); } .case-mdl__body { grid-template-columns: 1fr; } }

/* панель «Запрос» */
.drawer { position: fixed; inset: 0; z-index: 280; display: none; }
.drawer.is-open { display: block; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper-50); display: grid; grid-template-rows: auto 1fr auto; box-shadow: var(--shadow-modal); animation: slide var(--dur-3) var(--ease-out); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 500; }
.drawer__list { overflow-y: auto; padding: 8px 24px; }
.drawer__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__item img { width: 56px; height: 76px; object-fit: contain; background: var(--paper-150); padding: 4px; }
.drawer__item b { display: block; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.drawer__item span { font-size: .8125rem; color: var(--text-subtle); }
.drawer__item input { width: 72px; height: 36px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); margin-top: 6px; font-size: .8125rem; }
.drawer__item button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-subtle); }
.drawer__item button:hover { color: var(--error-600); }
.drawer__empty { padding: 40px 0; color: var(--text-muted); text-align: center; font-size: .9375rem; }
.drawer__foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ---------- Объекты ---------- */
.obj-tools { display: grid; gap: 18px; margin-bottom: 28px; }
.obj-tools__row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.obj-search { position: relative; }
.obj-search input { height: 44px; width: min(320px, 100%); padding: 0 14px 0 40px; border: 1px solid var(--border-ui); border-radius: var(--radius-xs); background: var(--paper-0); }
.obj-search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--text-subtle); }
.obj-count { font-size: .875rem; color: var(--text-subtle); font-variant-numeric: tabular-nums lining-nums; }
.obj-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line-strong); }
.obj { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .875rem; break-inside: avoid; }
.obj span { color: var(--text-subtle); font-size: .78rem; white-space: nowrap; }
.obj.is-hidden { display: none; }
.obj__type { display: inline-block; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--accent); margin-right: 10px; vertical-align: middle; position: relative; top: -1px; }
.obj[data-t="school"] .obj__type { background: var(--accent); }
.obj[data-t="other"] .obj__type { border-color: var(--steel-600); }
.obj-more { margin-top: 28px; text-align: center; }
.obj-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .8125rem; color: var(--text-subtle); }
@media (max-width: 1060px) { .obj-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .obj-list { grid-template-columns: 1fr; } }

/* ---------- Технические двери ---------- */
.ei-note { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 24px 28px; border: 1px solid var(--line); background: var(--paper-0); margin-bottom: clamp(32px, 4vw, 48px); }
.ei-note b { font-family: var(--font-display); font-size: 3rem; font-weight: 500; line-height: 1; color: var(--error-600); }
.ei-note p { color: var(--text-muted); font-size: .9375rem; }
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
@media (max-width: 1060px) { .tech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group-spec { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .group-spec { grid-template-columns: 1fr; } }
.drawing { background: var(--paper-0); border: 1px solid var(--line); padding: 20px; }
.drawing img { margin-inline: auto; max-height: 520px; width: auto; }
.use-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.use-grid li { padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.use-grid b { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; line-height: 1.2; }
.use-grid span { font-size: .875rem; color: var(--text-muted); }
@media (max-width: 899px) { .use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* фактовая карточка предприятия */
.factsheet { border-top: 1px solid var(--line-strong); }
.factsheet div { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.factsheet dt { color: var(--text-subtle); font-size: .875rem; }
.factsheet dd { margin: 0; font-size: 1rem; font-variant-numeric: tabular-nums lining-nums; }
.factsheet dd b { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1; margin-right: 6px; }
@media (max-width: 560px) { .factsheet div { grid-template-columns: 1fr; gap: 4px; } }

.pairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.pair { display: grid; gap: 12px; }
.pair__imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--paper-150); padding: 6px; }
.pair__imgs img { width: 100%; aspect-ratio: 1 / 1.6; object-fit: cover; }
.pair b { font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; }
.pair span { font-size: .8125rem; color: var(--text-subtle); }
@media (max-width: 1060px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* контакты */
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.contact-card { display: grid; gap: 14px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); background: var(--paper-0); align-content: start; }
.contact-card small { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); font-weight: 600; }
.contact-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.15; }
.contact-card a.phone { font-size: 1.375rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.contact-card p { font-size: .875rem; color: var(--text-muted); }
@media (max-width: 899px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-4) var(--ease-out), transform var(--dur-4) var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.hero__title .line { opacity: 0; transform: translateY(24px); animation: line-in var(--dur-4) var(--ease-out) forwards; animation-delay: calc(120ms + var(--l, 0) * 90ms); }
@keyframes line-in { to { opacity: 1; transform: none; } }
.orn-divider[data-draw] svg { opacity: 0; transform: scale(.96); transition: opacity var(--dur-5) var(--ease-out), transform var(--dur-5) var(--ease-out); }
.orn-divider[data-draw]::before, .orn-divider[data-draw]::after { transform: scaleX(0); transition: transform var(--dur-5) var(--ease-out); }
.orn-divider[data-draw]::before { transform-origin: right; }
.orn-divider[data-draw]::after { transform-origin: left; }
.orn-divider[data-draw].is-in svg { opacity: 1; transform: none; }
.orn-divider[data-draw].is-in::before, .orn-divider[data-draw].is-in::after { transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero .orn-rosette { animation: drift linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    @keyframes drift { to { transform: translateY(48px); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  [data-reveal], .hero__title .line { opacity: 1 !important; transform: none !important; }
}

/* утилиты */
.mt-0 { margin-top: 0; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; } .mt-8 { margin-top: 64px; }
.center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 899px) { .grid-2 { grid-template-columns: 1fr; } }
