﻿/* =========================================================
   Пластика камня — дизайн-система v2 «Светлый камень»
   Логика: сайт — как выставочный зал камнереза. Светлые стены (известняк),
   на них — полированные плиты пород. Одна тёмная полоса — «плита габбро»
   для станка и подвала. Бронза — как золочение букв: только акценты.
   Тема: светлая по умолчанию, тёмная — переключателем в шапке (data-theme на <html>).
   Все компоненты берут цвета из смысловых токенов, поэтому работают в обеих темах.
   ========================================================= */

/* 1. Токены */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1eb;            /* стена из известняка */
  --bg-alt: #ebe6dd;        /* вторая полоса, теплее */
  --glow: #fffdf8;
  --surface: #fbfaf7;       /* карточки, формы */
  --surface-2: #f1ede6;     /* поля ввода, подложки */
  --text: #1b1c1e;
  --mute: #66635d;
  --line: #ddd6ca;
  --line-strong: #c9bfb0;
  --acc: #a9864e;           /* бронза: линии, рамки */
  --acc-text: #7d5f2c;      /* бронза для текста (контраст ≥ 4.5) */
  --acc-2: #c9a463;
  --acc-soft: rgba(169, 134, 78, .12);
  --btn-bg: #1d1e21; --btn-fg: #f6f2ea; --btn-bg-h: #3a3c41; --btn-glow: rgba(29, 30, 33, .28);
  --ghost-line: rgba(27, 28, 30, .22);
  --stage: radial-gradient(62% 58% at 50% 42%, #ffffff 0%, #f3efe8 48%, #e7e1d7 100%);
  --sh-1: 0 1px 2px rgba(48, 36, 18, .05), 0 14px 34px -20px rgba(48, 36, 18, .25);
  --sh-2: 0 34px 80px -40px rgba(48, 36, 18, .42);
  --top-bg: rgba(244, 241, 235, .84);
  --overlay: rgba(24, 21, 17, .42);
  --ok: #2f7a52; --ok-bg: rgba(47, 122, 82, .1);
  --err: #b4483a; --err-bg: rgba(180, 72, 58, .09);
  --warn: #946222;
  --grain-op: .45;
}
[data-theme="dark"], .is-dark {
  color-scheme: dark;
  --bg: #0e0f11;
  --bg-alt: #15171a;
  --glow: #1e2126;
  --surface: #191b1f;
  --surface-2: #0f1012;
  --text: #ece9e3;
  --mute: #9c9fa4;
  --line: #2a2e34;
  --line-strong: #3b4047;
  --acc: #c9a463;
  --acc-text: #d9ba7d;
  --acc-2: #e3c58c;
  --acc-soft: rgba(201, 164, 99, .12);
  --btn-bg: #c9a463; --btn-fg: #17130b; --btn-bg-h: #e0c288; --btn-glow: rgba(201, 164, 99, .45);
  --ghost-line: rgba(236, 234, 230, .26);
  --stage: radial-gradient(62% 58% at 50% 42%, #2a2e34 0%, #16181b 55%, #0b0c0e 100%);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .8);
  --sh-2: 0 40px 90px -40px rgba(0, 0, 0, .9);
  --top-bg: rgba(14, 15, 17, .82);
  --overlay: rgba(4, 5, 6, .7);
  --ok: #8fd1ad; --ok-bg: rgba(63, 143, 99, .16);
  --err: #f0a294; --err-bg: rgba(208, 98, 79, .14);
  --warn: #d9a75a;
  --grain-op: .12;
}
:root {
  --f-display: "Forum", "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --w: 1280px;
  --r: 16px;          /* карточки */
  --r-sm: 10px;       /* поля, мелкие плашки */
  --r-lg: 24px;       /* сцены 3D, крупные блоки */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* 2. База */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-body); transition: background-color .35s, color .35s; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--acc-soft); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 12px; }

/* типографика */
.display { font-family: var(--f-display); letter-spacing: .02em; line-height: 1.02; }
.caps { text-transform: uppercase; letter-spacing: .14em; }
.eyebrow { font: 500 12px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .16em; color: var(--acc-text); display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
/* у секций — порядковый номер вместо черты: 01, 02… */
main { counter-reset: sec; }
main > .band { counter-increment: sec; }
.band .sec-head .eyebrow::before, .band .eyebrow.num-i::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; opacity: 1; padding-right: 12px; border-right: 1px solid var(--line-strong); color: var(--mute); }
.h1 { font-family: var(--f-display); font-size: clamp(42px, 5.4vw, 82px); line-height: .98; letter-spacing: .005em; }
.h2 { font-family: var(--f-display); font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; }
.h3 { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--mute); max-width: 58ch; }
.mute { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--f-mono); font-size: .9em; }
.gold { color: var(--acc-text); }
em.acc, .h1 em, .h2 em { font-style: normal; color: var(--acc-text); }

/* полосы: base — стена, alt — тёплая полоса, glow — со светом, deep — всегда тёмная плита */
.band { position: relative; padding-block: clamp(76px, 10vw, 140px); background: var(--bg); color: var(--text); }
.band--alt { background: var(--bg-alt); }
.band--alt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--grain-op); background-image: var(--grain, none); background-size: 360px; mix-blend-mode: multiply; }
[data-theme="dark"] .band--alt::before { mix-blend-mode: screen; }
.band--glow { background: radial-gradient(110% 80% at 85% 0%, var(--glow) 0%, var(--bg) 62%); }
.band--deep { background: radial-gradient(120% 90% at 80% 0%, #1b1e22 0%, #0d0e10 60%); }
.band > .wrap { position: relative; }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 24px 64px; }
.sec-head--split .lead { justify-self: end; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border-radius: 99px; border: 1px solid transparent; background: var(--btn-bg); color: var(--btn-fg); font: 600 15px/1 var(--f-body); letter-spacing: .01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition-property: transform, background-color, border-color, color, box-shadow; transition-duration: .2s; transition-timing-function: var(--ease); box-shadow: 0 12px 28px -14px var(--btn-glow); }
.btn:hover { background: var(--btn-bg-h); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--ghost-line); box-shadow: none; }
.btn--ghost:hover { background: var(--acc-soft); border-color: var(--acc); }
.btn--gold { background: var(--acc-2); color: #17130b; box-shadow: 0 12px 28px -14px rgba(201, 164, 99, .6); }
.btn--gold:hover { background: #e0c288; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn .i { width: 18px; height: 18px; }
.link { color: var(--acc-text); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); transition: border-color .15s; }
.link:hover { border-color: var(--acc); }
.i { width: 22px; height: 22px; flex: none; }

/* 3. Шапка */
.top { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.is-solid { background: var(--top-bg); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-word { display: grid; line-height: 1; white-space: nowrap; }
.logo-word b { font: 400 21px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }
.logo-word small { font: 500 9.5px/1.3 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-top: 4px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 9px 11px; border-radius: 99px; white-space: nowrap; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--mute); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--text); background: var(--acc-soft); }
.nav a[aria-current="page"] { color: var(--text); background: var(--acc-soft); }
.theme-t { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--ghost-line); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); transition: border-color .15s, background-color .15s, transform .3s var(--ease); }
.theme-t:hover { border-color: var(--acc); background: var(--acc-soft); }
.theme-t:active { transform: rotate(-30deg) scale(.94); }
.theme-t .i { width: 19px; height: 19px; }
.theme-t .i-sun { display: none; }
[data-theme="dark"] .theme-t .i-sun { display: block; }
[data-theme="dark"] .theme-t .i-moon { display: none; }
.top .btn { margin-left: 4px; }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--ghost-line); background: none; border-radius: 50%; cursor: pointer; place-items: center; color: var(--text); }
.burger .i { width: 22px; height: 22px; }
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: none; flex-direction: column; padding: calc(env(safe-area-inset-top, 0px) + 20px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(20px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.drawer.is-open { display: flex; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 28px; }
.drawer nav { display: grid; }
.drawer nav a { font: 400 30px/1.2 var(--f-display); padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.drawer .btn { margin-top: 28px; }

/* 4. Герой */
.hero { position: relative; min-height: min(100svh, 980px); padding-top: calc(env(safe-area-inset-top, 0px) + 116px); padding-bottom: 48px; overflow: hidden; background: radial-gradient(64% 70% at 74% 44%, var(--glow) 0%, var(--bg) 70%); display: flex; flex-direction: column; }
[data-theme="dark"] .hero { background: radial-gradient(70% 60% at 72% 40%, #23272d 0%, #121417 46%, var(--bg) 78%); }
.hero-grid { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; }
.hero-copy { display: grid; gap: 28px; align-content: center; padding-bottom: 40px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); border-radius: 99px; font-size: 13px; color: var(--acc-text); background: var(--acc-soft); justify-self: start; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(201, 164, 99, .2); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(201, 164, 99, 0); } }
.stage { position: relative; height: min(76svh, 760px); min-height: 440px; margin-right: calc(-1 * max(20px, (100vw - var(--w)) / 2)); }
.stage::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: 9%; height: 26%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent); filter: blur(10px); pointer-events: none; }
.stage canvas { position: relative; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.stage canvas:active { cursor: grabbing; }
.no-webgl { background: var(--stage); }
.stage-ui { position: absolute; left: 0; right: max(20px, (100vw - var(--w)) / 2); bottom: -6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; z-index: 3; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px 0 5px; border-radius: 99px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; white-space: nowrap; cursor: pointer; color: var(--text); box-shadow: var(--sh-1); transition-property: border-color, background-color, transform; transition-duration: .15s; }
.chip .sw { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); background-size: cover; }
.chip:hover { border-color: var(--acc); transform: translateY(-1px); }
.chip[aria-pressed="true"] { border-color: var(--acc); background: var(--surface); box-shadow: 0 0 0 1px var(--acc), var(--sh-1); }
.stage-hint { position: absolute; top: 3%; right: max(24px, (100vw - var(--w)) / 2 + 8px); z-index: 3; font: 500 11px/1.5 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); text-align: right; }
.stage-hint b { display: block; color: var(--acc-text); font-weight: 500; }
.specs { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 8px; }
.spec { padding: 22px 24px 0 0; display: grid; gap: 4px; }
.spec + .spec { padding-left: 24px; border-left: 1px solid var(--line); }
.spec b { font: 400 clamp(26px, 2.6vw, 36px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.spec span { font-size: 13.5px; color: var(--mute); }

/* лента пород под героем */
.ribbon { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ribbon-track { display: flex; gap: 34px; width: max-content; animation: ribbon 70s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 400 19px/1 var(--f-display); color: var(--text); }
.ribbon a small { font: 500 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ribbon .sw { width: 30px; height: 30px; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* подстраничный герой: справа — «плиты» породы страницы */
.phero { padding-top: calc(env(safe-area-inset-top, 0px) + 150px); padding-bottom: clamp(64px, 8vw, 110px); background: radial-gradient(80% 100% at 85% 0%, var(--glow) 0%, var(--bg) 64%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.phero .wrap { display: grid; gap: 22px; position: relative; z-index: 1; }
.phero .lead { max-width: 60ch; }
.phero-slab { position: absolute; z-index: 0; right: max(28px, (100vw - var(--w)) / 2 + 20px); top: 54%; width: min(25vw, 340px); aspect-ratio: 3 / 4; border-radius: 18px; background-size: cover; transform: translateY(-46%) rotate(5deg); box-shadow: var(--sh-2), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.phero-slab::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--slab2, none) center / cover; transform: translate(-34%, 10%) rotate(-11deg) scale(.86); z-index: -1; filter: brightness(.92) saturate(.9); box-shadow: var(--sh-2); }
.phero-slab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(125deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, .1) 100%); }
@media (min-width: 1101px) { .phero .wrap { padding-right: calc(min(25vw, 340px) + 120px); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1.4 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; opacity: .5; }

/* 5. Сетки и карточки */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cell { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 2.8vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; box-shadow: var(--sh-1); transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease); }
.cell:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); box-shadow: var(--sh-2); }
.cell .k { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; color: var(--acc-text); }
.cell h3 { font: 400 26px/1.15 var(--f-display); }
.cell p { color: var(--mute); font-size: 15.5px; }
.cell > .i { color: var(--acc-text); width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--acc-soft); }
.cell-foot { margin-top: auto; padding-top: 12px; font: 500 13px/1.4 var(--f-mono); color: var(--mute); display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.cell-foot span:last-child { color: var(--text); }

/* обещания */
.vow { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.vow-quote { font: 400 clamp(34px, 4.4vw, 64px)/1.04 var(--f-display); }
.vow-quote em { font-style: normal; color: var(--acc-text); }
.vow-list { display: grid; }
.vow-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-top: 1px solid var(--line-strong); }
.vow-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.vow-list .n { font: 400 30px/1 var(--f-display); color: var(--acc-text); }
.vow-list b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.vow-list p { color: var(--mute); }

/* симуляция фрезеровки (всегда на тёмной плите) */
.mill { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.mill-frame { position: relative; border: 1px solid #2a2e34; background: #0a0b0c; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.mill-frame canvas { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.mill-bar { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 12px 18px; border-top: 1px solid #2a2e34; font: 500 12px/1.4 var(--f-mono); color: #9c9fa4; letter-spacing: .06em; background: #0f1012; }
.mill-bar b { color: #e3c58c; font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 4px; }
.mill-tag { position: absolute; left: 16px; top: 14px; font: 500 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #9c9fa4; }
.mill-tag i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e05b4a; margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s infinite; font-style: normal; }
.facts { display: grid; gap: 0; margin-top: 28px; }
.facts div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt, .facts span { color: var(--mute); font-size: 14.5px; }
.facts dt { display: flex; gap: 10px; align-items: center; }
.facts dt .i { width: 18px; height: 18px; color: var(--acc-text); }
.facts b { font: 500 15px/1.4 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.facts b .i { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: 4px; color: var(--acc-text); }
.facts dd { margin: 0; }

/* конструктор — промо */
.tool { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.tool-steps { display: grid; gap: 0; margin-top: 28px; counter-reset: s; }
.tool-steps li { counter-increment: s; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.tool-steps li::before { content: counter(s, decimal-leading-zero); font: 500 13px/1.6 var(--f-mono); color: var(--acc-text); }
.tool-steps b { display: block; font-weight: 600; }
.tool-steps span { color: var(--mute); font-size: 15px; }
.device { position: relative; background: #0c0d0f; border-radius: 26px; padding: 12px; box-shadow: var(--sh-2), 0 0 0 1px rgba(0, 0, 0, .25); color: var(--text); }
.device-in { border-radius: 16px; overflow: hidden; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 380px; }
.device-view { position: relative; background: var(--stage); }
.device-panel { padding: 18px; display: grid; gap: 14px; align-content: start; border-left: 1px solid var(--line); font-size: 13px; }
.device-panel .row { display: flex; justify-content: space-between; gap: 8px; color: var(--mute); }
.device-panel .row b { color: var(--text); font-weight: 500; font-family: var(--f-mono); font-size: 12.5px; }
.device-panel .sws { display: flex; gap: 6px; }
.device-panel .sws span { width: 26px; height: 26px; border-radius: 50%; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.device-panel .sws span.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--acc); }
.device-price { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.device-price b { font: 400 30px/1 var(--f-display); color: var(--acc-text); }
.device-tag { position: absolute; left: 14px; top: 12px; z-index: 1; font: 500 10.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* породы: плиты */
.breeds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.breed { position: relative; display: grid; gap: 12px; text-decoration: none; }
.breed-slab { aspect-ratio: 3 / 4; border-radius: 12px; background-size: cover; background-position: center; position: relative; overflow: hidden; box-shadow: 0 26px 40px -26px rgba(40, 30, 15, .55), inset 0 0 0 1px rgba(0, 0, 0, .06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
[data-theme="dark"] .breed-slab { box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .9); }
.breed-slab::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .08) 100%); transform: translateX(-30%); transition: transform .9s var(--ease); }
.breed:hover .breed-slab { transform: translateY(-4px) rotate(-1deg); }
.breed:hover .breed-slab::after { transform: translateX(10%); }
.breed b { font: 400 20px/1.15 var(--f-display); }
.breed small { display: block; color: var(--mute); font-size: 13px; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.note { font-size: 13px; color: var(--mute); margin-top: 24px; display: flex; gap: 10px; align-items: flex-start; max-width: 80ch; }
.note .i { width: 18px; height: 18px; color: var(--acc-text); margin-top: 2px; }

/* лаборатория пород: 3D-примерка + каталог */
.lab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.lab-side { position: sticky; top: 96px; display: grid; gap: 16px; }
.lab-stage { position: relative; height: min(48svh, 470px); min-height: 360px; border-radius: var(--r-lg); background: var(--stage); border: 1px solid var(--line); overflow: hidden; }
.lab-stage canvas { width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.lab-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: grid; gap: 12px; box-shadow: var(--sh-1); }
.lab-card h3 { font: 400 32px/1.05 var(--f-display); }
.lab-card p { color: var(--mute); font-size: 15px; }
.lab-card .facts { margin-top: 0; }
.lab-card .facts div { padding: 10px 0; }
.lab-card .hero-ctas .btn { min-height: 46px; }
.bfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bfilter button, .chip-s, .lib-tabs button { min-height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; cursor: pointer; color: var(--mute); transition-property: border-color, color, background-color; transition-duration: .15s; }
.bfilter button:hover, .chip-s:hover, .lib-tabs button:hover { color: var(--text); border-color: var(--line-strong); }
.bfilter button[aria-pressed="true"], .chip-s[aria-pressed="true"], .lib-tabs button[aria-pressed="true"] { border-color: var(--text); color: var(--bg); background: var(--text); }
.bfilter sup { font: 500 10px/1 var(--f-mono); margin-left: 4px; opacity: .7; }
.bcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bcard { text-align: left; display: grid; gap: 10px; padding: 10px 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, transform .3s var(--ease), box-shadow .3s; min-width: 0; scroll-margin-top: 110px; }
.bcard:hover { transform: translateY(-2px); box-shadow: var(--sh-1); }
.bcard[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), var(--sh-1); }
.bcard .breed-slab { aspect-ratio: 4 / 3; border-radius: 10px; }
.bcard b { font: 400 19px/1.15 var(--f-display); padding: 0 4px; }
.bcard small { display: flex; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--mute); padding: 0 4px; }
.bcard[hidden] { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 99px; background: var(--surface-2); color: var(--mute); white-space: nowrap; }
.pill--main { background: var(--acc-soft); color: var(--acc-text); }
.rub { font-family: var(--f-mono); letter-spacing: .05em; color: var(--acc-text); }
.rub i { font-style: normal; opacity: .28; }

/* комбинированные памятники */
.kombo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.kombo-stage { position: relative; height: min(70svh, 640px); min-height: 380px; border: 1px solid var(--line); background: var(--stage); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.kombo-stage canvas { width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.kombo-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 26px 0; }
.combo { text-align: left; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; transition-property: border-color, background-color, box-shadow; transition-duration: .15s; min-width: 0; }
.combo:hover { border-color: var(--line-strong); }
.combo[aria-pressed="true"] { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc); }
.combo b { font: 400 20px/1.15 var(--f-display); }
.combo small { font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.combo-sw { display: flex; }
.combo-sw i { width: 26px; height: 26px; border-radius: 50%; background-size: cover; box-shadow: 0 0 0 2px var(--surface), inset 0 0 0 1px rgba(0, 0, 0, .15); }
.combo-sw i + i { margin-left: -6px; }

/* фотокерамика */
.ceram { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ceram-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 18px; align-content: start; overflow: hidden; min-width: 0; box-shadow: var(--sh-1); }
.ceram-card h3 { font: 400 clamp(28px, 2.8vw, 38px)/1.08 var(--f-display); }
.ceram-card ul { display: grid; gap: 10px; }
.ceram-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--mute); }
.ceram-card li .i { width: 18px; height: 18px; color: var(--acc-text); margin-top: 3px; }
.ceram-art { height: 200px; margin: -8px -8px 6px; display: flex; align-items: center; justify-content: center; gap: 18px; border-radius: 16px; background: var(--stage); }
.ov { border-radius: 50%; background: linear-gradient(160deg, #f6f4ef, #cfcac0); box-shadow: 0 0 0 5px #c9a463, 0 18px 30px -12px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .08); position: relative; overflow: hidden; }
.ov::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 40%); }
.tiles { display: grid; grid-template-columns: repeat(4, 44px); grid-auto-rows: 44px; gap: 3px; transform: perspective(600px) rotateX(18deg) rotateZ(-8deg); }
.tiles span { border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); justify-self: start; }
.tag--ok { background: var(--ok-bg); color: var(--ok); }

/* условия — цифры */
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.term { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.term:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.term b { font: 400 clamp(40px, 4.6vw, 64px)/1 var(--f-display); color: var(--acc-text); font-variant-numeric: tabular-nums; }
.term span { color: var(--mute); max-width: 32ch; }

/* процесс */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding: 0 22px 0 0; display: grid; gap: 10px; align-content: start; }
.flow li::before { content: counter(f); width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 400 22px/1 var(--f-display); border: 1px solid var(--line-strong); background: var(--surface); color: var(--acc-text); position: relative; z-index: 1; margin-bottom: 8px; box-shadow: var(--sh-1); }
.flow li::after { content: ""; position: absolute; top: 27px; left: 54px; right: 0; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.flow li:last-child::after { display: none; }
.flow b { font-size: 17px; font-weight: 600; }
.flow span { color: var(--mute); font-size: 14.5px; }
.flow small { font: 500 12px/1.4 var(--f-mono); color: var(--acc-text); }

/* FAQ */
.faq { display: grid; border-top: 1px solid var(--line-strong); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font: 400 clamp(20px, 2vw, 25px)/1.25 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 300 20px/1 var(--f-body); color: var(--acc-text); transition: transform .3s var(--ease), background-color .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--acc-soft); }
.faq details p { padding: 0 0 26px; color: var(--mute); max-width: 72ch; }

/* CTA + форма */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.cta-list { display: grid; gap: 12px; margin-top: 26px; }
.cta-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; color: var(--mute); }
.cta-list .i { color: var(--acc-text); width: 20px; height: 20px; margin-top: 2px; }
.form { background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; border-radius: var(--r-lg); box-shadow: var(--sh-2); color: var(--text); }
.form h3 { font: 400 28px/1.15 var(--f-display); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--mute); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 400 16px/1.4 var(--f-body); transition: border-color .15s, background-color .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--acc); background: var(--surface); }
.field input[aria-invalid="true"] { border-color: var(--err); }
.consent { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--mute); align-items: start; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--acc); }
.form-msg { font-size: 14px; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.form-msg.ok { display: block; background: var(--ok-bg); color: var(--ok); }
.form-msg.err { display: block; background: var(--err-bg); color: var(--err); }
.hp { position: absolute; left: -9999px; }

/* 6. Подвал (всегда тёмная плита) */
.foot { background: #0a0b0c; color: var(--mute); padding: 80px 0 calc(env(safe-area-inset-bottom, 0px) + 36px); font-size: 14.5px; }
.foot .logo { color: var(--text); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot h4 { font: 500 12px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.foot ul { display: grid; gap: 10px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-word { font: 400 clamp(40px, 8.4vw, 108px)/.9 var(--f-display); letter-spacing: .04em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px #2c2f34; margin-top: 64px; white-space: nowrap; overflow: hidden; user-select: none; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #1d1f23; padding-top: 22px; margin-top: 8px; font-size: 13px; }

/* нижняя панель на телефоне */
.dock { display: none; }

/* 7. Появление */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv[data-d="1"] { transition-delay: .08s; } .js .rv[data-d="2"] { transition-delay: .16s; } .js .rv[data-d="3"] { transition-delay: .24s; }

/* 8. Модальное окно заявки */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 20px; background: var(--overlay); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal.is-open { display: flex; }
.modal .form { width: min(560px, 100%); max-height: calc(100svh - 40px); overflow: auto; position: relative; }
.modal-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--mute); }
.modal-x:hover { background: var(--acc-soft); color: var(--text); }

/* 9. Тексты страниц */
.prose { max-width: 760px; display: grid; gap: 18px; color: var(--mute); }
.prose h2 { font: 400 32px/1.15 var(--f-display); color: var(--text); margin-top: 22px; }
.prose h3 { font-size: 19px; font-weight: 600; color: var(--text); margin-top: 10px; }
.prose ul { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }
.prose b { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sticky { position: sticky; top: 110px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 15px 18px 15px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.table td:last-child { text-align: right; font-family: var(--f-mono); font-size: 14px; white-space: nowrap; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--acc-soft); }
.table .sw { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background-size: cover; vertical-align: -6px; margin-right: 10px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.tbl { overflow-x: auto; }
.timeline { display: grid; gap: 0; border-left: 1px solid var(--line-strong); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 36px 32px; display: grid; gap: 6px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--acc); }
.timeline li.now::before { background: var(--acc); box-shadow: 0 0 0 5px var(--acc-soft); }
.timeline time { font: 500 12px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.timeline b { font: 400 24px/1.2 var(--f-display); }
.timeline span { color: var(--mute); }
.placeholder { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 28px; display: grid; gap: 10px; place-content: center; text-align: center; min-height: 260px; color: var(--mute); background: repeating-linear-gradient(-45deg, transparent 0 14px, var(--acc-soft) 14px 15px); }
.placeholder b { font: 400 24px/1.2 var(--f-display); color: var(--text); }

/* 10. Конструктор (приложение) */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 440px; height: 100svh; padding-top: calc(env(safe-area-inset-top, 0px) + 77px); background: var(--bg); }
.app-view { position: relative; min-width: 0; background: var(--stage); }
.app-view .stage-c { position: absolute; inset: 0; }
.app-view canvas { width: 100% !important; height: 100% !important; cursor: grab; touch-action: none; }
.app-views { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 4px; z-index: 2; padding: 4px; border-radius: 99px; background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--sh-1); }
.app-views button { min-height: 34px; padding: 0 13px; border-radius: 99px; border: 0; background: none; font-size: 12.5px; cursor: pointer; color: var(--mute); }
.app-views button:hover { background: var(--acc-soft); color: var(--text); }
.app-badge { position: absolute; left: 16px; top: 16px; z-index: 2; font: 500 11px/1.5 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.app-badge b { color: var(--acc-text); font-weight: 500; }
.app-panel { display: flex; flex-direction: column; min-height: 0; background: var(--surface); border-left: 1px solid var(--line); }
.tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-bottom: 1px solid var(--line); flex: none; padding: 0 6px; }
.tabs button { min-height: 54px; border: 0; background: none; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--mute); border-bottom: 2px solid transparent; letter-spacing: .02em; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--acc); }
.tabs button:hover { color: var(--text); }
.pane { flex: 1; overflow-y: auto; padding: 24px; display: grid; gap: 26px; align-content: start; }
.pane[hidden] { display: none; }
.pgroup { display: grid; gap: 12px; }
.pgroup > .lbl, .lbl { font: 500 11.5px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; gap: 10px; }
.lbl b { color: var(--text); font-weight: 500; letter-spacing: .04em; text-transform: none; font-family: var(--f-body); font-size: 13px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; line-height: 1.25; color: var(--mute); transition-property: border-color, color, background-color, box-shadow; transition-duration: .15s; min-height: 48px; align-content: center; }
.opt svg { width: 38px; height: 46px; }
.opt input:hover + span { border-color: var(--line-strong); color: var(--text); }
.opt input:checked + span { border-color: var(--acc); color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--acc); }
.opt input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.opt .sw { width: 100%; aspect-ratio: 1.3; border-radius: 8px; background-size: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.rng { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; align-items: center; }
.rng input[type="range"] { width: 100%; accent-color: var(--acc); }
.rng output { font: 500 14px/1 var(--f-mono); text-align: right; font-variant-numeric: tabular-nums; }
.txt { width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 400 15px/1.4 var(--f-body); }
.txt:focus { outline: none; border-color: var(--acc); }
.sw-row { display: flex; align-items: center; gap: 12px; font-size: 14px; cursor: pointer; }
.sw-row input { width: 18px; height: 18px; accent-color: var(--acc); }
.sum { flex: none; border-top: 1px solid var(--line); padding: 18px 24px calc(env(safe-area-inset-bottom, 0px) + 18px); background: var(--surface-2); display: grid; gap: 12px; }
.sum-top { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.sum-top small { display: block; font: 500 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sum-top b { font: 400 38px/1 var(--f-display); color: var(--text); font-variant-numeric: tabular-nums; }
.sum-lock { text-align: right; font-size: 12.5px; color: var(--mute); }
.sum-lock b { display: block; font: 500 14px/1.3 var(--f-mono); color: var(--text); letter-spacing: .04em; filter: blur(4px); user-select: none; }
.sum-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.sum-btns .btn { min-height: 46px; font-size: 14px; padding: 0 12px; }
.lines { display: grid; gap: 0; font-size: 13.5px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--mute); }
.lines b { color: var(--text); font-weight: 500; font-family: var(--f-mono); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hint { font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.print-spec { display: none; }
.lib-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-tabs button, .chip-s { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
.lib { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lib-it { display: grid; gap: 6px; justify-items: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: 11.5px; color: var(--mute); line-height: 1.25; text-align: center; transition-property: border-color, color, transform; transition-duration: .15s; }
.lib-it:hover { border-color: var(--acc); color: var(--text); transform: translateY(-1px); }
.lib-it img { width: 64px; height: 64px; border-radius: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.item-box { border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent); border-radius: 14px; padding: 14px; background: var(--acc-soft); }
.item-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.item-acts .btn { min-height: 38px; padding: 0 12px; font-size: 12.5px; }

/* 11. Адаптив */
@media (max-width: 1240px) { .nav { display: none; } .burger { display: grid; } .top .btn { display: none; } .theme-t { margin-left: auto; } }
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stage { margin: 0 calc(-1 * max(20px, env(safe-area-inset-right, 0px))); height: 60svh; min-height: 380px; order: -1; }
  .stage-hint { display: none; }
  .stage-ui { right: 0; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 84px); }
  .hero-copy { padding-bottom: 0; }
  .breeds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 0; }
  .flow li::after { display: none; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phero-slab { width: 150px; top: auto; bottom: -40px; right: 20px; transform: rotate(8deg); opacity: .9; }
  .phero-slab::before { display: none; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .lab-side { position: static; }
  .lab-stage { height: 46svh; }
  .app { grid-template-columns: minmax(0, 1fr); height: auto; }
  .app-view { height: 56svh; min-height: 340px; }
  .app-panel { border-left: 0; position: relative; z-index: 2; }
  .pane { overflow: visible; }
  .sum { position: sticky; bottom: 0; }
}
@media (max-width: 860px) {
  .sec-head--split, .vow, .mill, .tool, .cta, .split, .ceram, .kombo { grid-template-columns: minmax(0, 1fr); }
  .sec-head--split .lead { justify-self: start; }
  .g3, .g2 { grid-template-columns: minmax(0, 1fr); }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .term, .term:not(:nth-child(3n+1)) { padding: 26px 0; border-left: 0; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec { padding-bottom: 18px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .device-in { grid-template-columns: minmax(0, 1fr); }
  .device-view { min-height: 260px; }
  .device-panel { border-left: 0; border-top: 1px solid var(--line); }
  .sticky { position: static; }
  .breeds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-card .facts { display: none; }
  .lab-card h3 { font-size: 26px; }
  .phero-slab { display: none; }
  .dock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 10px) max(12px, env(safe-area-inset-left, 0px)); background: var(--top-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .dock .btn { min-height: 46px; font-size: 14px; white-space: nowrap; padding: 0 10px; gap: 8px; }
  body.has-dock { padding-bottom: 72px; }
  body.has-dock .foot { padding-bottom: 110px; }
}
@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .breeds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow, .g4 { grid-template-columns: minmax(0, 1fr); }
  .hero-ctas .btn { width: 100%; }
  .opts, .opts--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabs button { font-size: 11.5px; }
  .pane { padding: 20px 16px; }
  .sum { padding-left: 16px; padding-right: 16px; }
  .sum-top b { font-size: 30px; }
  .sum-lock { display: none; }
  .sum { gap: 8px; padding-top: 12px; }
  .sum-btns .btn { min-height: 44px; font-size: 13.5px; }
  .app-badge { font-size: 10px; }
  .table td:last-child { white-space: normal; }
  .logo-word small { display: none; }
  .ribbon a { font-size: 17px; }
}

/* 12. Печать: спецификация из конструктора */
@media print {
  body { background: #fff; color: #000; }
  body.printing > *:not(.print-spec) { display: none !important; }
  body.printing .print-spec { display: block !important; font: 12pt/1.45 Arial, sans-serif; color: #000; }
  .print-spec img { width: 100%; max-height: 120mm; object-fit: contain; border: 1px solid #ccc; margin: 6mm 0; }
  .print-spec table { width: 100%; border-collapse: collapse; }
  .print-spec td { border-bottom: 1px solid #ddd; padding: 2mm 0; }
  .print-spec td:last-child { text-align: right; }
  .print-spec h1 { font: 20pt/1.2 Georgia, serif; margin: 0 0 2mm; }
}

/* меню помещается и на узких ноутбуках (1241–1360 px) */
@media (min-width: 1241px) and (max-width: 1360px) { .nav a { padding-left: 9px; padding-right: 9px; font-size: 14px; } .top-in { gap: 12px; } }

/* витрина работ на первом экране */
.hw { position: absolute; top: 2%; left: 0; right: max(20px, (100vw - var(--w)) / 2); z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; pointer-events: none; }
.hw > * { pointer-events: auto; }
.hw-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-1); transition: border-color .15s; }
.hw-arrow:hover { border-color: var(--acc); }
.hw-arrow svg { width: 18px; height: 18px; }
.hw-cap { display: grid; justify-items: center; gap: 2px; min-width: 230px; text-align: center; }
.hw-cap b { font: 400 22px/1.15 var(--f-display); color: var(--text); }
.hw-cap > span:not(.hw-dots) { font-size: 13px; color: var(--mute); }
.hw-dots { display: flex; gap: 6px; margin-top: 6px; }
.hw-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.hw-dots button[aria-current="true"] { width: 22px; border-radius: 4px; background: var(--acc); }
@media (max-width: 1100px) { .hw { right: 0; gap: 8px; } .hw-cap { min-width: 0; } .hw-cap b { font-size: 18px; } .hw-arrow { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .hw-arrow { transition: none; } }
