/* LevPashnin.com – «инженерный чертёж + мастерская». Правила вида: design/COMMIT-SHEET.md, design/DESIGN.md */

/* ---------- Шрифты (локально, без внешних запросов) ---------- */
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-cyrillic-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-hebrew-hebrew-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Sans"; src: url(/assets/fonts/ibm-plex-sans-hebrew-hebrew-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199, U+2212; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199, U+2212; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- Токены: две темы ---------- */
:root {
  color-scheme: light;
  /* auteur-allow: CREAM_BG -- тёплая бумага прямо заказана владельцем («тёплая бумага и чернила»), это чертёжный лист */
  --paper: #efebe3;
  --surface: #f6f3ec;
  --surface-2: #e6e1d6;
  --ink: #191917;
  --ink-2: #4a4843;
  --ink-3: #6b6860;
  --rule: rgb(25 25 23 / 0.16);
  --rule-strong: rgb(25 25 23 / 0.5);
  --grid: rgb(25 25 23 / 0.05);
  --grid-major: rgb(25 25 23 / 0.085);
  --accent: #ff5a1f;
  --accent-ink: #b0380b;
  --accent-soft: rgb(255 90 31 / 0.12);
  --band: #1b1b1a;
  --band-ink: #efebe3;
  --band-ink-2: #b9b4aa;
  --on-accent: #1b0d05;
  --sans: "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "Plex Mono", "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1320px;
  --gut: clamp(16px, 4vw, 48px);
  --head-h: 68px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fs: 1;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #18191b;
  --surface: #1f2023;
  --surface-2: #2a2b2f;
  --ink: #ece9e2;
  --ink-2: #b3afa7;
  --ink-3: #8d8a83;
  --rule: rgb(236 233 226 / 0.15);
  --rule-strong: rgb(236 233 226 / 0.5);
  --grid: rgb(236 233 226 / 0.04);
  --grid-major: rgb(236 233 226 / 0.07);
  --accent: #ff6a2b;
  --accent-ink: #ff8a52;
  --accent-soft: rgb(255 106 43 / 0.14);
  --band: #26272b;
  --band-ink: #ece9e2;
  --band-ink-2: #b3afa7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #18191b; --surface: #1f2023; --surface-2: #2a2b2f;
    --ink: #ece9e2; --ink-2: #b3afa7; --ink-3: #8d8a83;
    --rule: rgb(236 233 226 / 0.15); --rule-strong: rgb(236 233 226 / 0.5);
    --grid: rgb(236 233 226 / 0.04); --grid-major: rgb(236 233 226 / 0.07);
    --accent: #ff6a2b; --accent-ink: #ff8a52; --accent-soft: rgb(255 106 43 / 0.14);
    --band: #26272b; --band-ink: #ece9e2; --band-ink-2: #b3afa7;
  }
}
/* Режим высокой контрастности (кнопка «Доступность») */
:root[data-contrast="high"] { --ink-2: var(--ink); --ink-3: var(--ink); --rule: var(--rule-strong); --accent-ink: var(--ink); }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: calc(100% * var(--fs));
  -webkit-text-size-adjust: 100%;
  scrollbar-width: none;
  /* правило владельца: текст не выделяется, картинки не перетаскиваются */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  background: var(--paper);
}
html::-webkit-scrollbar { display: none; }
input, textarea, select, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, canvas, video, picture, a { -webkit-user-drag: none; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:lang(he) body, body:lang(he) { line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; hyphens: auto; }
:lang(he) h1, :lang(he) h2, :lang(he) h3 { letter-spacing: -0.01em; line-height: 1.1; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 200; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: var(--r); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }
.mono { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
:lang(he) .mono { font-family: var(--sans); letter-spacing: 0.02em; font-size: 0.875rem; }
.muted { color: var(--ink-2); }
[id] { scroll-margin-top: calc(var(--head-h) + 16px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Шапка ---------- */
.head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--rule); }
.head .wrap { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.mark { display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; gap: 2px; text-decoration: none; line-height: 1; flex: none; }
.mark-name { font-weight: 700; font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.035em; display: inline-flex; align-items: center; gap: 8px; }
.mark-name::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 5px var(--accent); flex: none; }
.mark-sub { font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); padding-inline-start: 18px; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; text-decoration: none; padding: 8px 10px; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); border-radius: var(--r); transition: color 140ms var(--ease), background-color 140ms var(--ease); white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 10px; bottom: 2px; height: 2px; background: var(--accent); }
.nav .nav-cta { margin-inline-start: 8px; color: var(--paper); background: var(--ink); padding-inline: 14px; }
.nav .nav-cta:hover { color: var(--paper); background: var(--accent-ink); }
.nav .nav-cta[aria-current="page"] { color: var(--paper); }
.nav .nav-cta[aria-current="page"]::after { display: none; }
.burger { display: none; margin-inline-start: auto; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform 200ms var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; inset-inline-start: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.head.open .burger span { background: transparent; }
.head.open .burger span::before { transform: translateY(6px) rotate(45deg); }
.head.open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.progress { position: absolute; inset-inline: 0; top: 100%; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); box-shadow: 0 0 10px rgb(255 90 31 / 0.55); transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .progress span { transform-origin: right; }
@supports (animation-timeline: scroll()) {
  .progress span { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 1179px) {
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav { position: absolute; top: 100%; inset-inline: 0; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 20px; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .head.open .nav { display: flex; }
  .nav a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"]::after { inset-inline: auto; inset-inline-start: -12px; top: 18px; bottom: auto; width: 4px; height: 20px; }
  .nav .nav-cta { margin: 16px 0 0; text-align: center; border-radius: var(--r); border: 0; }
}

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r); border: 1.5px solid var(--ink); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--ink); color: var(--paper); }
.btn-main:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--surface-2); }
.btn .arr { font-family: var(--mono); transition: transform 160ms var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .arr { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 2px; transition: color 140ms var(--ease); }
.link:hover { color: var(--accent-ink); }
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; }
.back:hover { color: var(--ink); }
[dir="rtl"] .back .arr { transform: scaleX(-1); }

/* ---------- Появление при прокрутке (без JS всё видно) ---------- */
html.js .rv { opacity: 0; transform: translateY(12px); transition: opacity 520ms var(--ease), transform 520ms var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
html.js .rv.in { opacity: 1; transform: none; }

/* ---------- Заставка главной ---------- */
.hero { position: relative; padding-block: clamp(36px, 6vh, 72px) clamp(40px, 7vh, 88px); border-bottom: 1px solid var(--rule); min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.hero-stamp { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-bottom: 26px; }
.hero-stamp::before { content: ""; width: 28px; height: 1.5px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 5.4rem); letter-spacing: -0.04em; line-height: 0.98; }
:lang(he) .hero h1 { letter-spacing: -0.015em; line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: 1.1875rem; color: var(--ink-2); }
.hero-cta, .band-cta { margin-top: 34px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; }
@media (max-width: 1279px) { .band-cta { grid-auto-flow: row; } }
@media (max-width: 559px) { .hero-cta, .band-cta { display: grid; grid-auto-flow: row; width: 100%; } }
.hero-fig { position: relative; margin: 0; color: var(--ink); }
.hero-fig svg { width: 100%; height: auto; overflow: visible; display: block; }
.fig-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: var(--ink-3); }
@media (max-width: 1100px) {
  .hero { min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Чертёж: прорисовка линий */
.fig .ln { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.fig .thin { stroke-width: 1; opacity: 0.55; }
.fig .dim { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.fig .fill-paper { fill: var(--paper); }
.fig text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; fill: currentColor; text-transform: uppercase; }
.fig .t-muted { fill: var(--ink-2); }
.fig .t-acc { fill: var(--accent-ink); }
.fig .sig { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(255 90 31 / 0.6)); }
.fig .sig-base { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; }
.fig .led { fill: var(--paper); stroke: currentColor; stroke-width: 1.2; }
.fig .ok { opacity: 0; }
.fig .xhair { stroke: var(--accent); stroke-width: 0.8; opacity: 0; transition: opacity 200ms var(--ease); }
.fig.track .xhair { opacity: 0.7; }
html.js .fig .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .fig.go .draw { animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
html.js .fig .fade { opacity: 0; }
html.js .fig.go .fade { animation: fadein 600ms var(--ease) forwards; animation-delay: calc(900ms + var(--d, 0) * 90ms); }
@keyframes fadein { to { opacity: 1; } }
.fig.live .sig { stroke-dasharray: 0.07 0.93; animation: run 2.4s linear infinite; }
.fig.live .sig-base { opacity: 0.35; transition: opacity 600ms var(--ease); }
.fig.live .led { fill: var(--accent); stroke: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
.fig.live .ok { opacity: 1; transition: opacity 500ms var(--ease) 1.1s; }
.fig .cursor-blink { animation: blink 1s steps(2, jump-none) infinite; }
@keyframes run { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: 0.25; } }
.fig .par { transition: transform 600ms var(--ease); }

/* ---------- Секции ---------- */
.sec { padding-block: clamp(64px, 10vw, 128px); border-bottom: 1px solid var(--rule); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 48px; align-items: flex-end; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head > h2, .sec-head > h1 { flex: 1 1 420px; }
.sec-head > p, .sec-head > .sec-side { flex: 0 1 34em; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.sec-head p { color: var(--ink-2); max-width: 36em; }
.sec-head .sec-side { display: grid; gap: 18px; justify-items: start; }
@media (max-width: 859px) { .sec-head > p, .sec-head > .sec-side { flex-basis: 100%; } }

/* ---------- Четыре входа ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule-strong); }
.door { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 18px; min-height: 380px; padding: 26px 26px 28px; text-decoration: none; color: var(--ink); background: var(--surface); border-inline-end: 1px solid var(--rule-strong); transition: background-color 180ms var(--ease), color 180ms var(--ease); overflow: hidden; }
.door:nth-child(3) { border-inline-end: 0; }
.door-top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); }
.door-n { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); }
.door-n::before { content: "["; color: var(--accent-ink); } .door-n::after { content: "]"; color: var(--accent-ink); }
.door-art { align-self: center; justify-self: center; width: min(100%, 260px); color: var(--ink); }
.door-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.door h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
.door p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; max-width: 26em; }
.door-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 0.9375rem; }
.door-go .arr { transition: transform 160ms var(--ease); }
.door:hover, .door:focus-visible { background: var(--paper); }
.door:hover .door-go .arr { transform: translateX(4px); }
[dir="rtl"] .door:hover .door-go .arr { transform: scaleX(-1) translateX(4px); }
.door::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--accent); opacity: 0; transition: opacity 160ms var(--ease); pointer-events: none; }
.door:hover::after, .door:focus-visible::after { opacity: 1; }
.door:focus-visible { outline: none; }
/* Вход 04 – приоритет: во всю ширину, другая раскладка */
.door-wide { display: grid; border: 1px solid var(--rule-strong); border-top: 0; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-rows: auto auto; align-items: center; gap: 18px 32px; min-height: 0; padding-block: 34px; border-inline-end: 0; border-top: 1px solid var(--rule-strong); background: var(--band); color: var(--band-ink); }
.door-wide .door-top { justify-content: flex-start; gap: 18px; color: var(--band-ink-2); }
.door-wide .door-art { grid-column: 2; grid-row: 1 / span 2; }
.door-wide .door-n { color: var(--band-ink); }
.door-wide .door-n::before, .door-wide .door-n::after { color: var(--accent); }
.door-wide h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.door-wide p { color: var(--band-ink-2); }
.door-wide .door-art { color: var(--band-ink); width: min(100%, 320px); }
.door-wide:hover, .door-wide:focus-visible { background: var(--band); }
.prio { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.prio::before { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
@media (max-width: 1023px) {
  .door { padding: 22px 20px 24px; min-height: 360px; }
  .door-wide { min-height: 0; }
}
@media (max-width: 679px) {
  .doors { grid-template-columns: 1fr; grid-auto-rows: 1fr; }
  .door { border-inline-end: 0; border-top: 1px solid var(--rule-strong); min-height: 0; grid-template-columns: 1fr 112px; grid-template-rows: auto auto; gap: 14px 16px; padding: 22px 18px 24px; }
  .door:first-child { border-top: 0; }
  .door .door-top { grid-column: 1 / -1; }
  .door .door-art { grid-column: 2; grid-row: 2; align-self: start; width: 112px; }
  .door-wide { grid-template-columns: 1fr 112px; }
  .door-wide .door-top { flex-direction: row; grid-column: 1 / -1; justify-content: space-between; }
  .door-wide .door-art { grid-column: 2; grid-row: 2; width: 112px; }
  .door h3 { font-size: 1.5rem; }
}

/* Маленькие анимации входов: «включаются» при наведении */
.mini .ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 200ms var(--ease); }
.mini .acc { stroke: var(--accent); }
.mini .accf { fill: var(--accent); }
.mini .dim { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.45; }
.mini text { font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; fill: currentColor; opacity: 0.7; }
.mini .grow { transform-box: fill-box; transform-origin: left center; transform: scaleX(0.35); transition: transform 500ms var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.mini .slide { transition: transform 600ms var(--ease); }
.mini .dot { opacity: 0.25; transition: opacity 200ms var(--ease); }
.mini .plug { transition: transform 500ms var(--ease); }
.mini .spark { opacity: 0; transition: opacity 200ms var(--ease) 380ms; }
.mini .pulse { stroke-dasharray: 0.1 0.9; stroke-dashoffset: 1; opacity: 0; }
.door:hover .mini .grow, .door:focus-visible .mini .grow, .mini.on .grow { transform: scaleX(1); }
.door:hover .mini .slide, .door:focus-visible .mini .slide { transform: translateY(-14px); }
.door:hover .mini .dot, .door:focus-visible .mini .dot { opacity: 1; }
.door:hover .mini .plug, .door:focus-visible .mini .plug { transform: translateX(14px); }
[dir="rtl"] .door:hover .mini .plug { transform: translateX(14px); }
.door:hover .mini .spark, .door:focus-visible .mini .spark { opacity: 1; }
.door:hover .mini .pulse, .door:focus-visible .mini .pulse { opacity: 1; animation: run 1.4s linear infinite; }
.door:hover .mini .hl, .door:focus-visible .mini .hl { stroke: var(--accent); }

/* ---------- Карточки работ ---------- */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1199px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 679px) { .works { grid-template-columns: 1fr; } }
.work { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; transition: border-color 160ms var(--ease), transform 200ms var(--ease); }
.work:hover { border-color: var(--rule-strong); }
.work-cover { position: relative; aspect-ratio: 16 / 10; border-bottom: 1px solid var(--rule); background: var(--paper); color: var(--ink); overflow: hidden; }
.work-cover svg, .work-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.work-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; flex: 1; }
.work-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-3); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; color: var(--ink); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.tag.t-client::before { background: var(--accent); }
.tag.t-own::before { background: var(--ink); }
.tag.t-demo::before { background: transparent; border: 1.5px solid var(--accent); width: 7px; height: 7px; }
.work h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.12; }
.work p { color: var(--ink-2); font-size: 0.96875rem; line-height: 1.5; }
.work-stack { color: var(--ink-3); font-size: 0.75rem; }
.work-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.work-foot a { font-weight: 600; font-size: 0.9375rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.work-foot a:hover { color: var(--accent-ink); }
.work-foot .status { color: var(--accent-ink); }
.work-more { justify-content: center; align-items: flex-start; gap: 14px; padding: 26px; background: transparent; border: 1.5px dashed var(--rule-strong); }
.work-more h3 { font-size: 1.5rem; }
.work-more p { color: var(--ink-2); }
.work:target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* ---------- Специализация (полоса во всю ширину, ломает сетку) ---------- */
.band { position: relative; background: var(--band); color: var(--band-ink); padding-block: clamp(72px, 11vw, 140px); overflow: hidden; }
.band .wrap { position: relative; }
.band::before { content: attr(data-num); position: absolute; inset-inline-end: -0.06em; top: -0.38em; font: 700 clamp(10rem, 26vw, 24rem)/1 var(--sans); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgb(255 106 43 / 0.55); pointer-events: none; }
.band .mono { color: var(--band-ink-2); }
.band h2 { margin-top: 18px; font-size: clamp(2.4rem, 6vw, 5.6rem); max-width: 11em; letter-spacing: -0.04em; }
:lang(he) .band h2 { letter-spacing: -0.015em; }
.band h2 em { font-style: normal; color: var(--accent); }
.band-grid { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px 64px; }
.band-lead { font-size: 1.25rem; color: var(--band-ink); max-width: 32em; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgb(236 233 226 / 0.2); }
.band-list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgb(236 233 226 / 0.2); color: var(--band-ink); }
.band-list li span:first-child { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); padding-top: 3px; }
.band-note { margin-top: 28px; padding: 18px 20px; border: 1px solid rgb(255 106 43 / 0.6); color: var(--band-ink); display: grid; gap: 6px; max-width: 34em; }
.band-note b { color: var(--accent); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; }
.band .btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.band .btn-main:hover { background: var(--band-ink); border-color: var(--band-ink); color: var(--band); }
.band .btn-line { color: var(--band-ink); border-color: var(--band-ink-2); }
.band .btn-line:hover { background: rgb(236 233 226 / 0.08); }

.dimline { position: absolute; inset-inline: var(--gut); bottom: 28px; height: 14px; border-inline: 1px solid rgb(236 233 226 / 0.35); }
.dimline::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 1px; background: rgb(236 233 226 / 0.35); }
.dimline span { position: absolute; inset-inline-start: 50%; top: 50%; transform: translate(-50%, -50%); padding: 0 10px; background: var(--band); color: var(--band-ink-2); font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; white-space: nowrap; }
[dir="rtl"] .dimline span { transform: translate(50%, -50%); }
@media (max-width: 859px) { .band-grid { grid-template-columns: 1fr; } }

/* ---------- Как работаем ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 23px; height: 1px; background: var(--rule-strong); }
.step { position: relative; padding-inline-end: 28px; }
.step-n { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); font-family: var(--mono); font-weight: 500; font-size: 0.875rem; }
.step:first-child .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.step h3 { margin-top: 22px; font-size: 1.5rem; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 22em; }
@media (max-width: 859px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { inset-inline-start: 23px; inset-inline-end: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 46px 1fr; gap: 0 18px; padding: 0; }
  .step h3 { margin-top: 8px; font-size: 1.3rem; }
  .step p { grid-column: 2; }
}

/* ---------- Каталог ---------- */
.cat-mini { columns: 4 240px; column-gap: 32px; list-style: none; margin: 0; padding: 0; }
.cat-mini li { break-inside: avoid; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--rule); font-weight: 500; }
.cat-mini li span { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-ink); padding-top: 2px; }
.cat-foot { margin-top: 32px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-inline-start: 1px solid var(--rule-strong); }
@media (max-width: 1199px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 859px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 519px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 18px 20px 20px; border-inline-end: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); background: var(--surface); transition: background-color 160ms var(--ease); }
.svc:hover { background: var(--paper); }
.svc-n { font-family: var(--mono); font-size: 0.875rem; font-weight: 500; color: var(--accent-ink); }
.svc h3 { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.15; }
.svc p { color: var(--ink-2); font-size: 0.9375rem; }
.svc-doors { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; color: var(--ink-3); font-size: 0.6875rem; }
.svc-empty { padding: 40px 0; color: var(--ink-2); }

/* ---------- Фильтры ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-inline-end: 1px solid var(--rule); background: transparent; color: var(--ink-2); font: 500 0.9375rem/1 var(--sans); cursor: pointer; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.seg button:last-child { border-inline-end: 0; }
.seg button:hover { color: var(--ink); background: var(--surface-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chips { display: inline-grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; }
.chip { justify-content: center; }
.chips .lbl { color: var(--ink-3); margin-inline-end: 4px; }
.chip { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 18px; background: transparent; color: var(--ink-2); font: 500 0.875rem/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color 140ms var(--ease), color 140ms var(--ease); }
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; height: 46px; padding: 0 14px 0 40px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 1rem var(--sans); }
[dir="rtl"] .search input { padding: 0 40px 0 14px; }
.search svg { position: absolute; inset-inline-start: 13px; top: 14px; width: 18px; height: 18px; color: var(--ink-3); }
.count { color: var(--ink-3); }
@media (max-width: 679px) { .seg { width: 100%; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .seg button { padding: 0 8px; border-bottom: 1px solid var(--rule); } .seg button:last-child { grid-column: 1 / -1; border-bottom: 0; } .chips { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); } .chips .lbl { grid-column: 1 / -1; } .search { max-width: none; } }

/* ---------- Страницы входов ---------- */
.page-top { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 7vw, 88px); border-bottom: 1px solid var(--rule); }
.entry-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); margin-top: 28px; align-items: stretch; }
.stamp { align-content: stretch; grid-template-rows: 1fr auto auto; }
.stamp { border: 1.5px solid var(--ink); background: var(--surface); display: grid; grid-template-columns: 1fr 1fr; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
:lang(he) .stamp { font-family: var(--sans); font-size: 0.8125rem; }
.stamp > div { padding: 10px 14px; border-bottom: 1px solid var(--rule-strong); border-inline-end: 1px solid var(--rule-strong); display: grid; gap: 4px; }
.stamp > div:nth-child(2n) { border-inline-end: 0; }
.stamp > div:nth-last-child(-n+2) { border-bottom: 0; }
.stamp small { color: var(--ink-3); font-size: 0.625rem; letter-spacing: 0.12em; }
.stamp b { font-weight: 500; }
.stamp .big { grid-column: 1 / -1; border-inline-end: 0; padding: 18px 14px; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: end; gap: 6px 16px; }
.stamp .big small { grid-column: 1 / -1; }
.stamp .big b { margin-top: 10px; font: 700 clamp(4rem, 9vw, 7.5rem)/1 var(--sans); letter-spacing: -0.05em; color: var(--accent-ink); }
.stamp .big .mini { width: 140px; color: var(--ink); justify-self: end; }
.entry-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -0.04em; }
:lang(he) .entry-hero h1 { letter-spacing: -0.015em; }
.entry-hero .lead { margin-top: 22px; font-size: 1.25rem; color: var(--ink-2); max-width: 32em; }
.entry-hero .hero-cta { margin-top: 30px; }
@media (max-width: 859px) { .entry-hero { grid-template-columns: 1fr; } .stamp { order: 2; } .stamp .big .mini { width: 110px; } }
.two { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(32px, 5vw, 80px); }
.two h2 { font-size: clamp(1.75rem, 3vw, 2.6rem); }
.two .side-note { margin-top: 14px; color: var(--ink-2); max-width: 22em; }
@media (max-width: 859px) { .two { grid-template-columns: 1fr; } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ticks li { position: relative; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem; }
[dir="rtl"] .ticks li { padding: 16px 32px 16px 0; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 25px; width: 14px; height: 1.5px; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; inset-inline-start: 14px; top: 21px; width: 1.5px; height: 9px; background: var(--accent); }
@media (min-width: 680px) { .ticks li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 679px) { .ticks { grid-template-columns: 1fr; } }
.prose { max-width: 40em; display: grid; gap: 16px; font-size: 1.125rem; }
.prose p { color: var(--ink); }
.limits { border: 1.5px solid var(--ink); background: var(--surface); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.limits ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 10px; color: var(--ink); }
.limits li::marker { color: var(--accent-ink); }
.case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--surface); }
.case > div { padding: 22px 24px 26px; border-inline-end: 1px solid var(--rule-strong); display: grid; gap: 10px; align-content: start; }
.case > div:last-child { border-inline-end: 0; }
.case .mono { color: var(--accent-ink); }
.case-foot { margin-top: 16px; color: var(--ink-2); font-size: 0.9375rem; max-width: 46em; }
@media (max-width: 859px) { .case { grid-template-columns: 1fr; } .case > div { border-inline-end: 0; border-bottom: 1px solid var(--rule-strong); } .case > div:last-child { border-bottom: 0; } }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 44px); border: 1.5px solid var(--ink); background: var(--surface); }
.cta-band h2 { font-size: clamp(1.75rem, 3.4vw, 2.8rem); max-width: 16em; }
.cta-band p { margin-top: 10px; color: var(--ink-2); max-width: 34em; }
.cta-band .hero-cta { margin: 0; }
.empty-note { padding: 24px; border: 1.5px dashed var(--rule-strong); color: var(--ink-2); }

/* ---------- Заявка ---------- */
.form { display: grid; gap: 28px; max-width: 860px; }
.fld { display: grid; gap: 10px; }
.fld > label, .fld > legend { font-weight: 600; font-size: 1rem; padding: 0; }
.fld .hint { color: var(--ink-3); font-size: 0.875rem; font-weight: 400; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 859px) { .types { grid-template-columns: 1fr 1fr; } }
.type { position: relative; display: grid; gap: 6px; padding: 16px; border: 1.5px solid var(--rule-strong); border-radius: var(--r); background: var(--surface); cursor: pointer; min-height: 100px; align-content: start; transition: border-color 140ms var(--ease), background-color 140ms var(--ease); }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type .mono { color: var(--ink-3); }
.type b { font-size: 1.0625rem; line-height: 1.2; }
.type:hover { border-color: var(--ink); }
.type:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type:has(input:checked) .mono { color: var(--accent-ink); }
.type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.inp, textarea.inp, select.inp { width: 100%; min-height: 52px; padding: 13px 14px; border: 1.5px solid var(--rule-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.4 var(--sans); }
textarea.inp { min-height: 170px; resize: vertical; }
.inp::placeholder { color: var(--ink-3); opacity: 1; }
.inp:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.inp { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] select.inp { background-position: 22px 23px, 16px 23px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 679px) { .row2 { grid-template-columns: 1fr; } }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot p { color: var(--ink-2); font-size: 0.9375rem; max-width: 30em; }
.err { color: var(--accent-ink); font-size: 0.875rem; min-height: 1.2em; }
.sent { display: grid; gap: 14px; padding: 24px; border: 1.5px solid var(--accent); background: var(--surface); max-width: 860px; }
.sent[hidden] { display: none; }
.sent textarea { min-height: 200px; font-family: var(--mono); font-size: 0.875rem; text-transform: none; letter-spacing: 0; }
.contact-side { display: grid; gap: 18px; align-content: start; }
.contact-side .mail { font-size: 1.375rem; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--accent); justify-self: start; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.foot { padding-block: 56px 32px; border-top: 1px solid var(--rule); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)) minmax(0, 3fr); gap: 32px; }
.foot h4 { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: var(--ink-3); margin-bottom: 12px; }
:lang(he) .foot h4 { font-family: var(--sans); font-size: 0.8125rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.mark-logo { position: relative; display: block; width: 204px; aspect-ratio: 1100 / 236; color: var(--ink); background: url(/assets/img/lp-gold.png) center / contain no-repeat; }
.mark-logo::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(/assets/img/lp-text.png) center / contain no-repeat; mask: url(/assets/img/lp-text.png) center / contain no-repeat; }
@media (max-width: 760px) { .mark-logo { width: 206px; } } /* высота знака = высоте кнопки меню (44px) */
.foot-name { margin: 0; font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink); }
.foot-sub { margin: 8px 0 0; font-family: var(--mono); font-size: 0.6875rem; line-height: 1.4; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
:lang(he) .foot-sub { font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.02em; }
.foot-claim { margin-top: 14px; color: var(--ink-2); max-width: 26em; }
.foot-mail { font-weight: 600; color: var(--ink) !important; border-bottom: 1.5px solid var(--accent); }
.foot-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--ink-3); font-size: 0.875rem; }
.lp-sign { position: relative; display: block; width: 160px; aspect-ratio: 1100 / 236; margin-inline-start: auto; color: var(--ink); background: url(/assets/img/lp-gold.png) center / contain no-repeat; flex: none; }
.lp-sign::after { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url(/assets/img/lp-text.png) center / contain no-repeat; mask: url(/assets/img/lp-text.png) center / contain no-repeat; }
.lp-sites { --lp-bg: var(--surface); --lp-ink: var(--ink); --lp-muted: var(--ink-2); --lp-line: var(--rule-strong); --lp-accent: var(--accent-ink); --lp-hover: var(--accent-soft); --lp-radius: 6px; font-family: var(--sans); }
@media (max-width: 859px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .lp-sign { width: 150px; margin-inline-start: 0; } }

/* ---------- Круглые кнопки справа ---------- */
.floaters { position: fixed; inset-inline-end: max(12px, calc((100vw - 1320px) / 2 - 76px)); top: 50%; transform: translateY(-50%); z-index: 60; display: grid; gap: 10px; }
.fb { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; font: 600 0.8125rem/1 var(--mono); letter-spacing: 0.04em; transition: background-color 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease); }
.fb:hover, .fb[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.fb svg { width: 20px; height: 20px; }
.fb .tip { position: absolute; inset-inline-end: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: var(--r); background: var(--ink); color: var(--paper); font: 500 0.8125rem/1.2 var(--sans); letter-spacing: 0; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 140ms var(--ease); }
.fb:hover .tip, .fb:focus-visible .tip { opacity: 1; }
.fb[aria-expanded="true"] .tip { opacity: 0; }
.fb-toggle { display: none; }
.pop { position: absolute; inset-inline-end: calc(100% + 12px); top: 0; min-width: 220px; padding: 10px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.35); display: grid; gap: 4px; }
.pop[hidden] { display: none; }
.pop button { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: 500 0.9375rem/1 var(--sans); cursor: pointer; text-align: start; }
.pop button:hover { background: var(--surface-2); }
.pop button[aria-pressed="true"], .pop button[aria-checked="true"] { background: var(--accent-soft); }
.pop button small { font-family: var(--mono); color: var(--ink-3); font-size: 0.75rem; }
.pop h5 { margin: 4px 12px 6px; font-size: 0.75rem; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.pop .sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 4px 6px; }
.pop .sizes button { justify-content: center; padding: 0; border: 1px solid var(--rule); }
.pop-link { padding: 8px 12px; font-size: 0.875rem; color: var(--ink-2); }
@media (min-width: 761px) { :root { --gut: clamp(76px, 6vw, 96px); } }
@media (max-width: 760px) {
  .floaters { top: auto; bottom: 16px; transform: none; inset-inline-end: 14px; }
  .fb-toggle { display: grid; }
  .floaters:not(.open) .fb:not(.fb-toggle) { display: none; }
  .floaters { grid-auto-flow: row; }
  .fb-toggle { order: 9; }
  .pop { top: auto; bottom: 0; }
  .fb .tip { display: none; }
}

/* ---------- Доступность и меньше движения ---------- */
:root[data-links="on"] a { text-decoration: underline !important; text-underline-offset: 3px; }
:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; }
:root[data-motion="off"] .fig .draw { stroke-dashoffset: 0; }
:root[data-motion="off"] .fig .fade, :root[data-motion="off"] .fig .ok { opacity: 1; }
:root[data-motion="off"] .fig .sig { stroke-dasharray: none; }
:root[data-motion="off"] .rv { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  /* другая режиссура: чертёж уже начерчен, сигнал горит ровно, без бега и миганий */
  html.js .fig .draw { stroke-dashoffset: 0; animation: none !important; }
  html.js .fig .fade { opacity: 1; animation: none !important; }
  .fig.live .sig { stroke-dasharray: none; animation: none; opacity: 0.9; }
  .fig.live .led, .fig .cursor-blink { animation: none; }
  .fig .par { transition: none; }
  html.js .rv { opacity: 1; transform: none; transition: opacity 300ms linear; }
  .door:hover .mini .pulse { animation: none; stroke-dasharray: none; }
  .mini .grow, .mini .slide, .mini .plug { transition-duration: 1ms; }
}

/* 404 */
.nf { min-height: 60vh; display: grid; align-content: center; gap: 18px; padding-block: 80px; }
.nf h1 { font-size: clamp(3rem, 8vw, 6rem); }

/* ---------- Обложки работ (covers.js) ---------- */
.cv .cv-grid { fill: none; stroke: var(--grid-major); stroke-width: 1; }
.cv .cv-ln { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cv .cv-thin { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.cv .cv-dim { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.45; }
.cv .cv-acc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv .cv-dash { stroke-dasharray: 5 4; }
.cv .cv-glow { fill: var(--accent); opacity: 0.16; stroke: none; }
.cv .cv-dot { fill: var(--accent); }
.cv .cv-ring { fill: var(--paper); stroke: currentColor; stroke-width: 1.4; }
.cv text { fill: currentColor; font-family: var(--mono); }
.cv .cv-t { font-size: 10px; letter-spacing: 0.1em; opacity: 0.75; }
.cv .cv-ta { fill: var(--accent-ink); opacity: 1; }
.cv .cv-big { font: 600 92px var(--sans); fill: none; stroke: currentColor; stroke-width: 1.5; }
.cv .cv-mid { font: 600 26px var(--sans); letter-spacing: -0.01em; }
.work:hover .cv .cv-ln { stroke: var(--ink); }

/* Пояснение меток на /work/ */
.legend { margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 32px; color: var(--ink-2); }
.legend > div { display: flex; align-items: center; gap: 10px; }
.legend dt, .legend dd { margin: 0; }
.legend dd { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 0.9375rem; font-weight: 400; }

/* ---------- /system/: сайт, который ведёт бизнес ---------- */
.sys-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 80px); margin-top: 28px; align-items: stretch; }
.sys-hero h1 { font-size: clamp(2.5rem, 5vw, 4.8rem); letter-spacing: -0.04em; }
:lang(he) .sys-hero h1 { letter-spacing: -0.015em; }
.sys-hero h1 em { font-style: normal; color: var(--accent-ink); }
.sys-hero .lead { margin-top: 22px; font-size: 1.25rem; color: var(--ink-2); max-width: 32em; }
.sys-scheme { margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; color: var(--ink); }
.scheme { width: 100%; height: auto; display: block; overflow: visible; }
.scheme-v { display: none; max-width: 340px; }
@media (max-width: 1023px) { .sys-hero { grid-template-columns: 1fr; } }
@media (max-width: 599px) { .scheme-h { display: none; } .scheme-v { display: block; } }
.scheme text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: currentColor; }
.scheme .sc-n { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--accent-ink); }
.scheme .sc-small { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--ink-2); letter-spacing: 0.04em; }
.scheme .sc-own { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--ink); letter-spacing: 0.04em; }
.sc-box rect { fill: var(--surface); stroke: currentColor; stroke-width: 1.5; }
.sc-acc rect { stroke: var(--accent); stroke-width: 2; }
.sc-ln { fill: none; stroke: currentColor; stroke-width: 1.4; }
.sc-dim { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.5; }
.sc-sig { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.12 0.88; animation: run 3s linear infinite; }

.demo { border: 1.5px solid var(--ink); background: var(--surface); border-radius: var(--r); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 14px; border-bottom: 1.5px solid var(--ink); }
.demo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tool { min-height: 40px; min-width: 126px; justify-content: center; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--paper); color: var(--ink); font: 500 0.9375rem/1 var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color 140ms var(--ease); }
.tool:hover:not(:disabled) { background: var(--surface-2); }
.tool:disabled { opacity: 0.45; cursor: default; }
.ver-n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: var(--paper); display: inline-grid; place-items: center; font-size: 0.75rem; }
.ver-wrap { position: relative; }
.ver-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; min-width: 230px; max-height: 260px; overflow: auto; padding: 6px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 0 20px 50px -20px rgb(0 0 0 / 0.35); display: grid; gap: 2px; }
.ver-pop[hidden] { display: none; }
.ver-pop button { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 3px; background: transparent; color: var(--ink); font: 500 0.9rem/1 var(--sans); cursor: pointer; align-items: center; }
.ver-pop button:hover { background: var(--surface-2); }
.ver-pop button[aria-pressed="true"] { background: var(--accent-soft); }
.ver-pop small { font-family: var(--mono); color: var(--ink-3); }
.seg-sm button { min-height: 40px; padding: 0 12px; }
@media (max-width: 679px) { .demo-tools { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } .demo-tools .seg { grid-column: 1 / -1; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); } .seg.seg-sm button:last-child { grid-column: auto; } .tool { min-width: 0; width: 100%; padding: 0 6px; gap: 6px; } .ver-wrap { display: grid; } }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; min-height: 40px; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-ui { width: 44px; height: 26px; border-radius: 13px; background: var(--surface-2); border: 1.5px solid var(--ink); position: relative; transition: background-color 160ms var(--ease); }
.switch-ui::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink); transition: transform 160ms var(--ease); }
.switch input:checked + .switch-ui { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); background: var(--on-accent); }
[dir="rtl"] .switch input:checked + .switch-ui::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--accent); outline-offset: 3px; }
.demo-stage { padding: clamp(14px, 3vw, 32px); background-image: linear-gradient(var(--grid-major) 1px, transparent 1px), linear-gradient(90deg, var(--grid-major) 1px, transparent 1px); background-size: 24px 24px; }
.demo-cap { padding: 12px 14px; border-top: 1px solid var(--rule); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.sec > .wrap > .demo-cap { border: 0; padding: 18px 0 0; }

/* Мини-сайт выдуманной фирмы – свои «чужие» цвета, чтобы читался как сайт клиента */
.mini-site { --m-bg: #fbfaf7; --m-ink: #22302a; --m-ink2: #55625b; --m-acc: #2f6b4f; --m-line: #dfe3dc; max-width: 1040px; margin: 0 auto; background: var(--m-bg); color: var(--m-ink); border: 1px solid var(--rule-strong); border-radius: 8px; overflow: hidden; font-family: var(--sans); transition: max-width 320ms var(--ease); box-shadow: 0 18px 40px -26px rgb(0 0 0 / 0.4); }
:root[data-theme="dark"] .mini-site { --m-bg: #f3f1ec; }
.mini-site[data-view="phone"] { max-width: 360px; }
.ms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--m-line); }
.ms-logo { font-weight: 700; letter-spacing: -0.02em; font-size: 1.1rem; color: var(--m-acc); }
.ms-nav { display: flex; gap: 14px; font-size: 0.875rem; color: var(--m-ink2); }
.ms-nav i { display: none; }
.mini-site[data-view="phone"] .ms-nav { display: none; }
.ms-body { display: grid; }
.ms-block { position: relative; padding: 22px 20px; border-bottom: 1px solid var(--m-line); background: var(--m-bg); }
.ms-block:last-child { border-bottom: 0; }
.ms-tag { display: none; position: absolute; top: 6px; inset-inline-end: 8px; font-size: 0.625rem; color: #8a5a00; }
.ms-handle { position: absolute; top: 10px; inset-inline-start: 6px; width: 32px; height: 40px; display: grid; place-items: center; border: 1px dashed var(--accent); border-radius: 4px; background: #fff; color: var(--accent); cursor: grab; touch-action: none; }
.ms-handle[hidden] { display: none; }
.ms-handle svg { width: 10px; height: 16px; fill: currentColor; }
.ms-handle:active { cursor: grabbing; }
.mini-site.editing .ms-block { padding-inline-start: 50px; outline: 1px dashed rgb(255 90 31 / 0.45); outline-offset: -4px; }
.mini-site.editing .ms-tag { display: block; color: #a33a0a; }
.ms-block.dragging { z-index: 3; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 0.35); outline: 2px solid var(--accent) !important; }
.mini-site [contenteditable="true"] { outline: 1.5px dashed rgb(255 90 31 / 0.7); outline-offset: 3px; border-radius: 2px; cursor: text; -webkit-user-select: text; user-select: text; }
.mini-site [contenteditable="true"]:focus { outline: 2px solid var(--accent); background: rgb(255 90 31 / 0.08); }
.ms-hero h3 { font-size: clamp(1.4rem, 3vw, 2.2rem); letter-spacing: -0.025em; color: var(--m-ink); max-width: 18em; }
.ms-hero p { margin-top: 8px; color: var(--m-ink2); }
.ms-btn, .ms-order { display: inline-flex; align-items: center; min-height: 40px; margin-top: 14px; padding: 0 16px; border-radius: 20px; background: var(--m-acc); color: #fff; font: 600 0.875rem/1 var(--sans); border: 0; }
.ms-order { cursor: pointer; margin-top: 10px; }
.ms-ghost { background: transparent; color: var(--m-acc); border: 1.5px solid var(--m-acc); }
.ms-prod h4, .ms-row h4 { font-size: 1.05rem; color: var(--m-ink); }
.ms-row p { margin-top: 6px; color: var(--m-ink2); }
.ms-items { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mini-site[data-view="phone"] .ms-items { grid-template-columns: 1fr; }
.ms-item { display: grid; gap: 4px; align-content: start; padding: 10px; border: 1px solid var(--m-line); border-radius: 6px; background: #fff; }
.ms-item b { font-size: 0.95rem; color: var(--m-ink); }
.ms-price { font-weight: 700; color: var(--m-acc); }
.ms-pic { aspect-ratio: 4 / 3; border-radius: 4px; background: #e9e4da; position: relative; overflow: hidden; }
.ms-pic::before { content: ""; position: absolute; inset-inline: 18%; top: 38%; height: 9%; background: #a8835a; border-radius: 2px; }
.ms-pic::after { content: ""; position: absolute; inset-inline: 24%; top: 47%; bottom: 18%; border-inline: 6px solid #8d6a45; }
.ms-pic1::before { inset-inline: 12%; top: 50%; } .ms-pic1::after { inset-inline: 18%; top: 59%; }
.ms-pic2::before { inset-inline: 34%; top: 48%; } .ms-pic2::after { inset-inline: 36%; top: 56%; } .ms-pic2 { background: #e4e0d6; }
@media (max-width: 679px) { .ms-items { grid-template-columns: 1fr; } .ms-nav { display: none; } }

/* Цепочка заказа */
.chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1.5px solid var(--ink); background: var(--surface); }
.ch { position: relative; display: grid; align-content: start; gap: 8px; padding: 18px 16px 22px; border-inline-end: 1px solid var(--rule-strong); min-height: 190px; transition: background-color 300ms var(--ease); }
.ch:not(.on) b { color: var(--ink-2); }
.ch:last-child { border-inline-end: 0; }
.ch b { font-size: 1.0625rem; line-height: 1.2; }
.ch > span:last-child { color: var(--ink-2); font-size: 0.9375rem; }
.ch-n { color: var(--ink-3); }
.ch::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
[dir="rtl"] .ch::after { transform-origin: right; }
.ch.on { opacity: 1; background: var(--paper); }
.ch.on::after { transform: scaleX(1); }
.ch.on .ch-n { color: var(--accent-ink); }
.ch-date { font-weight: 600; color: var(--ink); }
@media (max-width: 1199px) { .chain { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ch:nth-child(3) { border-inline-end: 0; } .ch:nth-child(-n+3) { border-bottom: 1px solid var(--rule-strong); } }
@media (max-width: 599px) { .chain { grid-template-columns: 1fr; } .ch { border-inline-end: 0; border-bottom: 1px solid var(--rule-strong); min-height: 0; } .ch:last-child { border-bottom: 0; } }

/* Модули */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1023px) { .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .mods { grid-template-columns: 1fr; } }
.mod { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--surface); }
.mod .tag { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
:lang(he) .mod .tag { font-family: var(--sans); }
.mod h3 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.15; }
.mod p { color: var(--ink-2); font-size: 0.96875rem; }
.mod-build { background: transparent; border-style: dashed; }

/* Блок «сайт, который ведёт бизнес» на главной и на /web/ */
.sys-teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 5vw, 72px); align-items: stretch; padding: clamp(24px, 4vw, 48px); border: 1.5px solid var(--ink); background: var(--surface); }
.sys-teaser h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.sys-teaser h2 em { font-style: normal; color: var(--accent-ink); }
.sys-teaser p { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
.sys-teaser ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; align-content: center; }
.sys-teaser li:first-child { border-top: 1px solid var(--rule); }
.sys-teaser li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.sys-teaser li span:first-child { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent-ink); padding-top: 3px; }
.sys-teaser .hero-cta { margin-top: 24px; }
@media (max-width: 859px) { .sys-teaser { grid-template-columns: 1fr; } }
.cv .cv-dotsq { fill: currentColor; }

.band-cta .btn { white-space: normal; text-align: center; line-height: 1.2; padding-block: 10px; }
.scheme-v .sc-own { font-size: 10px; letter-spacing: 0; }
