/* ЦЕХ.CNC — сайт. Цвета и шрифты — из дизайн-системы продукта (docs/08, tokens-v2; киоск — tokens v1).
   Правило сайта: цех — тёмный (терминал, пульт), офис — светлый. Фрагменты экранов живут в своей теме. */

@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-500-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-cyrillic-600-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


:root {
  --navy-950: #060f1c;
  --navy-900: #0b1729;
  --navy-800: #13243b;
  --navy-700: #203651;
  --navy-600: #2c4767;
  --accent-50: #eff9fa;
  --accent-100: #d7eef2;
  --accent-200: #a9dbe3;
  --accent-300: #6fc0cd;
  --accent-500: #087f96;
  --accent-600: #006980;
  --accent-700: #005166;
  --canvas: #f2f5f9;
  --page-alt: #f5f7fa;
  --surface: #ffffff;
  --surface-sunken: #eef2f7;
  --line-soft: #e9eef4;
  --line: #dde4ec;
  --line-strong: #cdd7e2;
  --text-strong: #101a2b;
  --text: #3a4759;
  --text-muted: #5f6b7c;
  --text-faint: #97a3b4;
  --st-neutral: #55637a;
  --st-plan: #4b5b8f;
  --st-progress: #1d5fd8;
  --st-hold: #a4620a;
  --st-done: #12734a;
  --st-danger: #b3261e;
  --k-bg: #021026;
  --k-surface: #16233b;
  --k-card: #1f2f47;
  --k-border: #33476a;
  --k-text: #ffffff;
  --k-text-sec: #8aa0bd;
  --k-accent: #005870;
  --k-success: #15803d;
  --k-warn: #b45309;
  --k-danger: #b91c1c;
  --k-ring: #4aa6c2;
  --k-warn-text: #fbbf24;
  --signal-red: #ef4444;
  --signal-amber: #f5a623;
  --signal-green: #22c55e;

  --font-ui: 'IBM Plex Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  --wrap: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 68px;
  --shadow-card: 0 1px 2px rgba(16, 26, 43, .05), 0 8px 24px -12px rgba(16, 26, 43, .14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 17px/1.6 var(--font-ui); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-600); text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4, h5 { color: var(--text-strong); margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-600); outline-offset: 2px; border-radius: 4px; }
.site-footer :focus-visible { outline-color: var(--accent-300); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.skip-link { position: absolute; left: 16px; top: -48px; z-index: 100; background: var(--surface); color: var(--text-strong); padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); font: 600 16px/1.2 var(--font-ui); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--accent-600); color: #fff; }
.btn--primary:hover { background: var(--accent-700); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--text-strong); background: var(--surface); }
.btn--outline:hover { border-color: var(--accent-600); color: var(--accent-700); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(150%) blur(10px); -webkit-backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header__row { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; }
.brand__word { font: 600 20px/1 var(--font-ui); letter-spacing: .01em; color: var(--text-strong); }
.brand__word span { font-weight: 400; color: var(--accent-600); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 15.5px; font-weight: 500; }
.site-nav a:hover { color: var(--accent-700); }
.site-nav a.btn, .site-nav a.btn:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); cursor: pointer; }
@media (max-width: 1000px) {
  .site-nav, .site-header__row > .btn { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header.is-open .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; box-shadow: 0 16px 24px -16px rgba(16, 26, 43, .2); }
  .site-header.is-open .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; }
  .site-header.is-open .site-nav a.btn { margin-top: 16px; border-bottom: 0; padding: 0 18px; }
}
@media (min-width: 1001px) { .site-nav .btn { display: none; } }

/* секции */
.section { padding: 104px 0; }
.section--alt { background: var(--page-alt); }
.section__head { max-width: 760px; }
.section__head--center { margin: 0 auto; text-align: center; }
.section__head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.section__head p { margin-top: 16px; font-size: 18.5px; color: var(--text); }
@media (max-width: 720px) { .section { padding: 72px 0; } }

/* значок в плашке */
.ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); flex-shrink: 0; }
.ico svg { width: 24px; height: 24px; }

/* возможности */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card h3 { margin-top: 18px; font-size: 18px; line-height: 1.3; }
.card p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--text); }
.also { margin-top: 32px; padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px dashed var(--line-strong); font-size: 16px; }
.also b { color: var(--text-strong); }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; gap: 14px; } .card { padding: 20px; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; } .card .ico { grid-row: span 2; } .card h3 { margin-top: 2px; } .card p { margin-top: 0; } }

/* экран + текст */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature--flip .feature__text { order: 2; }
.feature--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature__text h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.015em; }
.feature__text > p { margin-top: 14px; font-size: 17.5px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-50); }
.checks li::after { content: ''; position: absolute; left: 5px; top: calc(.3em + 5px); width: 8px; height: 4px; border-left: 2px solid var(--accent-600); border-bottom: 2px solid var(--accent-600); transform: rotate(-45deg); }
.feature__shot { min-width: 0; }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 1000px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 32px; }
  .feature--flip .feature__text { order: 0; }
  .feature + .feature { margin-top: 80px; }
  .feature__text { max-width: 680px; }
  .feature__shot { max-width: 820px; }
}

/* как это работает */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 56px; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 24px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent-200) 0 8px, transparent 8px 14px); }
.step { position: relative; text-align: center; counter-increment: step; }
.step .ico { margin: 0 auto; background: var(--accent-600); color: #fff; box-shadow: 0 0 0 6px var(--surface); }
.step__n { display: block; margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--accent-700); }
.step__n::before { content: 'Шаг ' counter(step); }
.step h3 { margin-top: 4px; font-size: 18px; }
.step p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.section--alt .step .ico { box-shadow: 0 0 0 6px var(--page-alt); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .steps::before { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent-200) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 48px 1fr; gap: 0 20px; text-align: left; padding-bottom: 28px; }
  .step .ico { grid-row: span 3; margin: 0; }
  .step__n { margin-top: 0; }
}

/* для каких производств */
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.segment { display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.segment .ico { grid-row: span 2; }
.segment h3 { font-size: 18px; line-height: 1.3; margin-top: 2px; }
.segment p { font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1000px) { .segments { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .segments { grid-template-columns: 1fr; gap: 14px; } .segment { padding: 20px; } }

/* размещение */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 56px auto 0; max-width: 1000px; }
.plan { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.plan--accent { border: 2px solid var(--accent-600); }
.plan__head { display: flex; align-items: center; gap: 16px; }
.plan h3 { font-size: 24px; }
.plan__sub { margin-top: 14px; color: var(--text-muted); }
.plan .checks { margin-top: 20px; margin-bottom: 28px; flex: 1; }
.both { max-width: 1000px; margin: 28px auto 0; text-align: center; font-size: 16px; color: var(--text); }
.both b { color: var(--text-strong); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .plan { padding: 24px; } }

/* почему */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-top: 56px; }
.why__item { display: grid; grid-template-columns: 48px 1fr; gap: 6px 20px; }
.why__item .ico { grid-row: span 2; }
.why__item h3 { font-size: 20px; margin-top: 2px; }
.why__item p { font-size: 16.5px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: 28px; } }

/* как начать */
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; counter-reset: st; list-style: none; }
.start li { counter-increment: st; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.start li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-600); color: #fff; font-weight: 600; font-size: 18px; }
.start h3 { margin-top: 18px; font-size: 19px; }
.start p { margin-top: 8px; font-size: 15.5px; }
.start-cta { margin-top: 36px; text-align: center; }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; gap: 14px; } .start li { padding: 22px; } }

/* вопросы */
.faq { margin: 48px auto 0; max-width: 880px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-size: 18.5px; font-weight: 600; color: var(--text-strong); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 30px; width: 10px; height: 10px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 34px; }
.faq details p { padding: 0 48px 24px 0; max-width: 72ch; }

/* лист ожидания */
.waitlist { padding: 104px 0; background: var(--accent-600); background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-600) 60%, #0a7f95 100%); color: #e6f3f6; }
.waitlist__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.waitlist h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.waitlist__copy p { margin-top: 16px; font-size: 18.5px; }
.waitlist__copy p.small { font-size: 15px; color: #c5e4ea; }
.form { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--text-strong); font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent-600); outline-offset: 0; border-color: var(--accent-600); }
.field input[aria-invalid="true"] { border-color: var(--st-danger); }
.field__error { font-size: 13.5px; color: var(--st-danger); }
.field__error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14.5px; line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent-600); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form__hint { font-size: 14px; color: var(--text-muted); }
.form__status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: 15px; }
.form__status:empty { display: none; }
.form__status.is-ok { background: #eef7f2; color: var(--st-done); border: 1px solid #cfe7da; }
.form__status.is-error { background: #fdf3f2; color: var(--st-danger); border: 1px solid #f1c9c4; }
/* Кнопка «Наверх»: шестигранник, как знак логотипа; появляется после первого экрана */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 52px; height: 56px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; }
.to-top__hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 16px rgba(6, 15, 28, .35)); }
.to-top__hex path { fill: var(--accent-600); stroke: var(--accent-600); stroke-width: 7; stroke-linejoin: round; transition: fill .15s, stroke .15s; }
.to-top > svg:not(.to-top__hex) { position: relative; width: 22px; height: 22px; transition: transform .2s; }
.to-top:hover .to-top__hex path, .to-top:focus-visible .to-top__hex path { fill: var(--accent-500); stroke: var(--accent-500); }
.to-top:hover > svg:not(.to-top__hex) { transform: translateY(-3px); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 2px solid var(--accent-300); outline-offset: 4px; border-radius: 14px; }
@media (max-width: 600px) { .to-top { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 50px; } .to-top > svg:not(.to-top__hex) { width: 20px; height: 20px; } }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top > svg:not(.to-top__hex) { transition: none; } }

/* Связь письмом (временно вместо формы, R226(т)) */
.contact [hidden] { display: none; }
.contact { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.contact__label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.contact__mail { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.contact__addr { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.01em; color: var(--text-strong); text-decoration: none; overflow-wrap: anywhere; }
.contact__addr:hover { color: var(--accent-600); }
.contact__copy { font: inherit; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.contact__copy:hover { border-color: var(--accent-600); color: var(--accent-600); }
.contact__copy.is-done { background: var(--accent-50); border-color: var(--accent-300); color: var(--accent-700); }
.contact__write { margin-top: 24px; gap: 10px; }
.contact__write svg { width: 20px; height: 20px; }
.contact__hint { margin-top: 24px; color: var(--text-muted); font-size: 15.5px; }
.contact__list { margin-top: 8px; padding-left: 1.2em; color: var(--text); font-size: 15.5px; }
.contact__list li { margin-top: 4px; }
@media (max-width: 960px) { .waitlist__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 600px) { .form, .contact { padding: 22px; } .form__grid { grid-template-columns: 1fr; } .waitlist { padding: 72px 0; } }

/* подвал */
.site-footer { background: var(--navy-950); color: #8aa0bd; padding: 48px 0 36px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(2, minmax(0, 3fr)); gap: 32px; }
.site-footer .brand__word { color: #fff; }
.site-footer .brand__word span { color: #a9bbd0; }
.footer__about { margin-top: 14px; color: #a9bbd0; max-width: 28em; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #c3d0df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--navy-800); font-size: 13.5px; color: #6f839c; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 28px; } }

/* страница политики */
.doc { padding: 64px 0 104px; background: var(--surface); }
.doc__body { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.doc .doc__date { margin-top: 12px; color: var(--text-muted); font-size: 15px; }
.doc h2 { font-size: 22px; margin-top: 44px; line-height: 1.3; }
.doc p, .doc li { margin-top: 12px; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { padding-left: .2em; }
.doc .doc__n { font-weight: 600; color: var(--text-strong); font-variant-numeric: tabular-nums; }
.doc__note { margin-top: 44px; padding: 20px 24px; border-left: 3px solid var(--accent-600); border-radius: 0 12px 12px 0; background: var(--surface-sunken); }
.doc__note p:first-child { margin-top: 0; }
.doc .doc__note-title { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--text-strong); }
.placeholder { background: #fff3cd; color: #6b4d00; padding: 0 4px; border-radius: 3px; }

.segment, .why__item { grid-template-rows: auto 1fr; align-items: start; }
.plan .checks { align-content: start; }
@media (max-width: 560px) { .card { grid-template-rows: auto 1fr; align-items: start; } }
@media (max-width: 960px) { .step { grid-template-rows: auto auto 1fr; align-items: start; } }
@media (max-width: 1000px) { .site-header__row > .btn.btn--outline { display: inline-flex; } }

/* ===== тёмно-светлый стиль (заход 3): цех — тёмный, офис и выбор — светлый ===== */
.site-header { background: rgba(6, 15, 28, .94); border-bottom-color: rgba(44, 71, 103, .6); }
.site-header .brand__word { color: #fff; }
.site-header .brand__word span { color: #a9bbd0; font-weight: 400; }
.site-nav a { color: #c3d0df; }
.site-nav a:hover { color: #fff; }
.menu-toggle { background: transparent; border-color: var(--navy-600); color: #fff; }
.site-header :focus-visible, .section--dark :focus-visible, .hero :focus-visible, .waitlist__copy :focus-visible { outline-color: var(--accent-300); }
.btn--ghost { border-color: var(--navy-600); color: #dfe8f2; background: transparent; }
.btn--ghost:hover { border-color: var(--accent-300); color: #fff; }
@media (max-width: 1000px) {
  .site-header.is-open .site-nav { background: var(--navy-950); border-bottom-color: var(--navy-700); }
  .site-header.is-open .site-nav a { border-bottom-color: var(--navy-800); }
  .site-header__row > .btn.btn--ghost { display: inline-flex; }
}


.section--alt { background: var(--canvas); }
.section--dark { background: var(--navy-900); color: #c3d0df; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__head p { color: #c3d0df; }
.section--dark .ico { background: rgba(111, 192, 205, .12); color: var(--accent-300); }
.section--dark .step .ico { background: var(--accent-600); color: #fff; box-shadow: 0 0 0 6px var(--navy-900); }
.section--dark .steps::before { background: repeating-linear-gradient(90deg, var(--navy-600) 0 8px, transparent 8px 14px); }
.section--dark .step__n { color: var(--accent-300); }
.section--dark .step p, .section--dark .why__item p { color: #b6c4d4; }
@media (max-width: 960px) { .section--dark .steps::before { background: repeating-linear-gradient(180deg, var(--navy-600) 0 8px, transparent 8px 14px); } }

.waitlist { background: var(--navy-950); color: #c3d0df; }
.waitlist__copy p.small { color: #8aa0bd; }
.site-footer { border-top: 1px solid var(--navy-800); }


/* ===== реакция на наведение (заход 8): черта активной вкладки, подсветка значка, свечение под курсором ===== */
.card, .segment, .plan, .start li { position: relative; overflow: hidden; isolation: isolate; }
.card::before, .segment::before, .plan::before, .start li::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent-600);
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 1;
}
.card::after, .segment::after, .plan::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(0, 105, 128, .09), transparent 65%);
}
.ico, .shop__ico { transition: background-color .25s, color .25s, transform .25s, box-shadow .25s; }
.feature__shot > .window, .feature__shot > .kiosk { transition: transform .35s ease, box-shadow .35s ease; }
.btn:active { transform: translateY(1px); }
.faq summary { transition: color .2s; }
.site-nav a:not(.btn) { position: relative; }
.site-nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent-300); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.shop__node { cursor: default; }

@media (hover: hover) {
  .card, .segment, .plan, .start li { transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
  .card:hover, .segment:hover, .plan:hover, .start li:hover {
    transform: translateY(-4px); border-color: var(--accent-200);
    box-shadow: 0 2px 4px rgba(16, 26, 43, .04), 0 18px 36px -18px rgba(0, 81, 102, .35);
  }
  .card:hover::before, .segment:hover::before, .plan:hover::before, .start li:hover::after { transform: scaleX(1); }
  .card:hover::after, .segment:hover::after, .plan:hover::after { opacity: 1; }
  .card:hover .ico, .segment:hover .ico, .plan:hover .ico { background: var(--accent-600); color: #fff; transform: scale(1.06); }
  .start li:hover::before { box-shadow: 0 0 0 6px var(--accent-50); }
  .start li::before { transition: box-shadow .3s; }

  .feature:hover .feature__shot > .window, .feature:hover .feature__shot > .kiosk { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 26, 43, .05), 0 28px 50px -24px rgba(0, 81, 102, .45); }
  .feature:hover .feature__shot > .kiosk { box-shadow: 0 0 0 1px #2c3a50, 0 34px 60px -22px rgba(0, 0, 0, .65); }
  .checks li { transition: color .2s; }
  .checks li:hover { color: var(--text-strong); }

  .section--dark .step:hover .ico { transform: scale(1.1); box-shadow: 0 0 0 6px var(--navy-900), 0 0 0 9px rgba(111, 192, 205, .35), 0 0 26px rgba(111, 192, 205, .35); }
  .step h3 { transition: color .2s; }
  .section--dark .step:hover h3 { color: var(--accent-300); }
  .why__item:hover .ico { background: var(--accent-600); color: #fff; box-shadow: 0 0 22px rgba(111, 192, 205, .35); }
  .why__item h3 { transition: color .2s; }
  .why__item:hover h3 { color: var(--accent-300); }

  .site-nav a:not(.btn):hover::after { transform: scaleX(1); }
  .faq summary:hover { color: var(--accent-600); }
  .faq summary:hover::after { border-color: var(--accent-600); }
  .shop__node:hover { border-color: var(--accent-300); }
  .shop__node:hover .shop__ico { background: var(--accent-600); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .segment:hover, .plan:hover, .start li:hover,
  .feature:hover .feature__shot > .window, .feature:hover .feature__shot > .kiosk { transform: none; }
  .card::before, .segment::before, .plan::before, .start li::after { transition: none; }
}

/* ===== просмотр программы (заход 9) — по экрану продукта: рисунок слева ≈ ⅔, справа инструменты и текст ===== */
.ncb { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: 500 12.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap; }
.ncb:hover { border-color: var(--accent-600); color: var(--accent-700); }
.ncb.is-on { background: var(--accent-50); border-color: var(--accent-500); color: var(--accent-700); }
.ncb--play { min-width: 64px; background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.ncb--play:hover { background: var(--accent-700); color: #fff; }
.ncw .ncv { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--canvas); }
.ncv__left, .ncv__right { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ncv__toolbar, .ncv__transport { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ncv__speed { display: inline-flex; gap: 4px; margin-left: auto; }
.ncv__transport input[type=range] { flex: 1 1 80px; min-width: 60px; accent-color: var(--accent-600); }
.ncv__stage { position: relative; height: 300px; border-radius: 6px; overflow: hidden; background: #14181d; }
.ncv__svg { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: manipulation; }
.ncv__nojs { position: absolute; inset: 0; display: grid; place-items: center; color: #c3d0df; font-size: 13px; }
.ncv.is-ready .ncv__nojs { display: none; }
.ncv__coords { font-size: 12.5px; color: var(--text-strong); white-space: pre; }
.ncv__caption { font-size: 12.5px; color: var(--text-muted); min-height: 1.2em; }
.ncv__tools { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; max-height: 150px; overflow: auto; }
.nct { display: grid; grid-template-columns: 10px auto 1fr; gap: 2px 8px; align-items: center; width: 100%; padding: 6px 8px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; font: 400 12px/1.3 var(--font-ui); color: var(--text); cursor: pointer; }
.nct:last-child { border-bottom: 0; }
.nct:hover { background: var(--accent-50); }
.nct.is-on { background: var(--accent-100); }
.nct__sw { width: 10px; height: 10px; border-radius: 2px; grid-row: span 2; }
.nct b { font: 600 12px/1.2 var(--font-mono); color: var(--text-strong); }
.nct__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nct__z { grid-column: 2 / 4; display: flex; gap: 6px; align-items: center; color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; }
.nct__d { padding: 0 5px; border-radius: 4px; background: var(--surface-sunken); color: var(--text-strong); font-size: 11px; }
.nct--all { grid-template-columns: 1fr; font-weight: 600; color: var(--text-strong); }
.ncv__text { list-style: none; margin: 0; padding: 4px 0; flex: 1 1 auto; height: 250px; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 12px; line-height: 1.55; counter-reset: ln; }
.ncv__text li { display: flex; gap: 8px; padding: 0 8px 0 0; cursor: pointer; white-space: pre; color: var(--text-strong); border-left: 3px solid transparent; }
.ncv__text li::before { counter-increment: ln; content: counter(ln); flex: 0 0 26px; text-align: right; color: var(--text-faint); }
.ncv__text li:hover { background: var(--accent-50); }
.ncv__text li.is-cur { background: var(--accent-100); border-left-color: var(--accent-500); }
.ncv__text li.is-cmt { color: var(--text-muted); }
@container (max-width: 640px) {
  .ncw .ncv { grid-template-columns: 1fr; }
  .ncv__stage { height: 260px; }
  .ncv__text { height: 180px; }
  .ncv__speed { margin-left: 0; }
}

/* ===== 3D-модель (заход 9) — по окну продукта: светлая сталь, тёмные рёбра, виды и «Вписать» ===== */
.m3d__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.m3d__sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.m3d__stage { position: relative; height: 340px; background: linear-gradient(180deg, #f7f9fb 0%, #e9eef4 100%); cursor: grab; touch-action: none; }
.m3d__stage:active { cursor: grabbing; }
.m3d__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.m3d__state { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--text-muted); font-size: 14px; }
.m3d.is-ready .m3d__state { display: none; }
.m3d__foot { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding: 10px 12px; background: var(--surface); border-top: 1px solid var(--line); font-size: 12.5px; }
.m3d__size { font-weight: 600; color: var(--text-strong); }
.m3d__note { color: var(--text-muted); }
@container (max-width: 520px) { .m3d__stage { height: 280px; } }

/* ===== форма: размещение, парк станков, стойки (заход 9) ===== */
.fset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fset legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 500; color: var(--text-strong); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg__opt { position: relative; }
.seg__opt input, .chips-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 10px; text-align: center; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 15px; color: var(--text-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.seg__opt span:hover, .chips-pick span:hover { border-color: var(--accent-500); }
.seg__opt input:checked + span { border-color: var(--accent-600); background: var(--accent-50); color: var(--accent-700); font-weight: 600; box-shadow: inset 0 0 0 1px var(--accent-600); }
.seg__opt input:focus-visible + span, .chips-pick input:focus-visible + span { outline: 3px solid var(--accent-600); outline-offset: 2px; }
.park { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.park__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.park__name { font-size: 15px; color: var(--text-strong); }
.park__name small { display: block; font-size: 12.5px; color: var(--text-muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; flex-shrink: 0; }
.stepper__btn { width: 40px; height: 40px; border: 0; background: var(--surface-sunken); color: var(--text-strong); font: 600 20px/1 var(--font-ui); cursor: pointer; }
.stepper__btn:hover { background: var(--accent-100); color: var(--accent-700); }
.stepper input { width: 56px; height: 40px; border: 0; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); text-align: center; font: 600 16px/1 var(--font-mono); color: var(--text-strong); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 2px solid var(--accent-600); outline-offset: -2px; }
.park__total { padding: 10px 12px; background: var(--page-alt); font-size: 15px; color: var(--text); text-align: right; }
.park__total b { font-family: var(--font-mono); color: var(--text-strong); }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { position: relative; }
.chips-pick span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14.5px; color: var(--text-strong); cursor: pointer; transition: border-color .15s, background-color .15s; }
.chips-pick input:checked + span { border-color: var(--accent-600); background: var(--accent-600); color: #fff; }
@media (max-width: 480px) { .seg { grid-template-columns: 1fr; } .park__name { font-size: 14px; } }

/* ---------- фрагменты экранов продукта ---------- */
/* ---------- окна фрагментов ---------- */
.window {
  border-radius: 10px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(16, 26, 43, .06), 0 12px 32px -12px rgba(16, 26, 43, .18);
  font: 400 14px/1.45 var(--font-ui); color: var(--text);
  container-type: inline-size;
}
.window__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 44px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-muted); }
.window__bar b { color: var(--text-strong); font-weight: 500; }
.window__bar .sep { color: var(--text-faint); }
.window__body { background: var(--canvas); padding: 16px; }
.w-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.w-title h4 { font-size: 18px; line-height: 1.25; }
.w-title .sub { width: 100%; font-size: 13px; color: var(--text-muted); }
.w-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.w-card + .w-card { margin-top: 12px; }
.w-card__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; color: var(--text-strong); font-size: 14px; }
.w-card__head .grow { flex: 1; }
.w-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-strong); font: 500 13px/1 var(--font-ui); white-space: nowrap; }
.w-btn--primary { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 11px; font: 500 12px/1 var(--font-ui); white-space: nowrap; }
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--done { color: var(--st-done); background: #e6f3ec; }
.tag--hold { color: var(--st-hold); background: #fbf0e0; }
.tag--danger { color: var(--st-danger); background: #fbe9e7; }
.tag--progress { color: var(--st-progress); background: #e8effc; }
.tag--neutral { color: var(--st-neutral); background: var(--surface-sunken); }
.w-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.w-table th { text-align: left; font-weight: 500; font-size: 12.5px; color: #55637a; background: var(--surface-sunken); padding: 8px 10px; white-space: nowrap; }
.w-table td { padding: 9px 10px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--text-strong); white-space: nowrap; }
.w-table td.wrap { white-space: normal; }
.w-table td .muted, .w-muted { color: var(--text-muted); font-size: 12.5px; }
.w-table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-scroll { overflow-x: auto; }
@container (max-width: 520px) {
  .w-table td { white-space: normal; }
  .w-table td:first-child { white-space: nowrap; }
  .w-table td, .w-table th { padding-left: 7px; padding-right: 7px; }
  .tag { padding: 0 7px; font-size: 11.5px; }
  .w-card__head .w-btn { display: none; }
  .window__body { padding: 12px; }
}

/* технолог: операционный лист */
.oplist { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px; }
.ops { display: grid; gap: 8px; align-content: start; }
.op { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; }
.op b { color: var(--text-strong); font-weight: 600; font-size: 13.5px; }
.op .mono { font-size: 12.5px; color: var(--text-muted); }
.op__wc { display: block; color: var(--text-muted); margin-top: 2px; }
.op--active { border-color: var(--accent-600); box-shadow: inset 3px 0 0 var(--accent-600); background: var(--accent-50); }
.op__state { display: block; margin-top: 6px; }
@container (max-width: 760px) {
  .oplist { grid-template-columns: 1fr; }
  .ops { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@container (max-width: 460px) { .col-hide-sm { display: none; } }
/* мастер: сменное задание */
.ss-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 12px 14px; font-size: 13px; }
.ss-head span { display: block; color: var(--text-muted); font-size: 12.5px; }
.ss-head b { color: var(--text-strong); font-weight: 500; }
.ss-warn { display: block; color: var(--st-hold); font-size: 12.5px; margin-top: 2px; }
@container (max-width: 520px) { .ss-head { grid-template-columns: 1fr 1fr; } }

/* склад: резка прутка */
.cut { padding: 16px 14px 14px; }
.cut__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--text-muted); }
.cut__meta b { color: var(--text-strong); font-weight: 500; }
.bar { margin-top: 18px; display: flex; height: 44px; border-radius: 4px; overflow: hidden; border: 1px solid #8796a8; background: #8796a8; gap: 1px; }
.bar__piece { flex: 120 1 0; background: linear-gradient(#c9d3de, #aebbc9); }
.bar__rest { flex: 170 1 0; background: repeating-linear-gradient(135deg, #f4d9a8 0 6px, #e9c07a 6px 12px); }
.bar__scale { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/1 var(--font-mono); color: var(--text-muted); }
.cut__legend { margin-top: 16px; display: grid; gap: 8px; font-size: 13.5px; }
.cut__legend div { display: flex; gap: 10px; align-items: flex-start; }
.swatch { flex-shrink: 0; width: 14px; height: 14px; margin-top: 3px; border-radius: 2px; border: 1px solid #8796a8; }
.swatch--piece { background: #bcc7d4; }
.swatch--rest { background: repeating-linear-gradient(135deg, #f4d9a8 0 3px, #e9c07a 3px 6px); }

/* ОТК: ввод замера, шкала допуска, несоответствие */
.qc-input { display: flex; gap: 8px; align-items: center; }
.qc-input input {
  width: 100%; max-width: 120px; height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 6px;
  font: 500 15px/1 var(--font-mono); color: var(--text-strong); background: #fff;
}
.qc-input input:focus { outline: 2px solid var(--accent-600); outline-offset: 0; border-color: var(--accent-600); }
.qc-result { font-weight: 600; font-size: 14px; }
.qc-result.is-pass { color: var(--st-done); }
.qc-result.is-fail { color: var(--st-danger); }
.qc-scale { position: relative; height: 8px; margin-top: 10px; background: var(--surface-sunken); border-radius: 4px; }
.qc-scale__ok { position: absolute; top: 0; bottom: 0; left: 22.2%; width: 55.6%; background: #b9dfc9; border-radius: 4px; }
.qc-scale__mark { position: absolute; top: -4px; width: 3px; height: 16px; margin-left: -1px; border-radius: 2px; background: var(--text-strong); transition: left .2s; }
@media (prefers-reduced-motion: reduce) { .qc-scale__mark { transition: none; } }
.qc-scale__ticks { display: flex; justify-content: space-between; margin-top: 4px; font: 400 11.5px/1 var(--font-mono); color: var(--text-muted); }
.nc { margin: 0 14px 14px; padding: 12px 14px; border-radius: var(--radius); background: #fdf3f2; border: 1px solid #f1c9c4; }
.nc[hidden] { display: none; }
.nc__title { font-weight: 600; color: var(--st-danger); font-size: 14px; }
.nc p { font-size: 13px; margin-top: 4px; color: var(--text); }
.nc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qc-ok { margin: 0 14px 14px; padding: 10px 14px; border-radius: var(--radius); background: #eef7f2; border: 1px solid #cfe7da; font-size: 13px; color: var(--st-done); }
.qc-ok[hidden] { display: none; }
/* ОТК: замеры детали и чертёж с выносками (разметка чертежа, ПР-17) */
.qcm-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qcm-s { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.qcm-s::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--text-faint); }
.qcm-s b { font: 500 13px/1 var(--font-mono); color: var(--text-strong); }
.qcm-s--ok::before { background: var(--st-done); }
.qcm-s--breach::before { background: var(--st-danger); }
.qcm-s.is-on { border-color: var(--accent-600); background: var(--accent-50); box-shadow: inset 0 0 0 1px var(--accent-600); }
.qcm-split { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-rows: auto auto 1fr; grid-template-areas: 'table dv' 'measure dv' 'msg dv'; }
.qcm-tablewrap { grid-area: table; overflow-x: auto; }
.qcm-measure { grid-area: measure; padding: 14px; --mk: var(--st-neutral); }
.qcm-measure.is-pass { --mk: var(--st-done); }
.qcm-measure.is-fail { --mk: var(--st-danger); }
.qcm-msg { grid-area: msg; }
.qcm-dv { grid-area: dv; display: flex; flex-direction: column; min-width: 0; border-left: 1px solid var(--line); }
.qcm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qcm-table th { padding: 9px 10px; text-align: left; font-weight: 500; font-size: 12.5px; color: var(--text-muted); background: var(--page-alt); border-bottom: 1px solid var(--line); white-space: nowrap; }
.qcm-table td { height: 42px; padding: 0 10px; border-bottom: 1px solid var(--line-soft); color: var(--text); white-space: nowrap; }
.qcm-table .qcm-num { text-align: right; }
.qcm-table td.qcm-num { font: 400 13px/1 var(--font-mono); color: var(--text-strong); }
.qcm-table .qcm-n { width: 36px; font: 400 13px/1 var(--font-mono); color: var(--text-muted); }
.qcm-table tbody tr { cursor: pointer; }
.qcm-table tbody tr:hover { background: var(--page-alt); }
.qcm-table tbody tr.is-on { background: var(--accent-50); box-shadow: inset 3px 0 0 var(--accent-600); }
.qcm-pick { padding: 0; border: 0; background: none; font: 500 13.5px/1.2 var(--font-ui); color: var(--text-strong); text-align: left; cursor: pointer; }
.qcm-pick:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; border-radius: 3px; }
.qcm-res { font-weight: 500; }
tr.is-pass .qcm-res { color: var(--st-done); }
tr.is-fail .qcm-res { color: var(--st-danger); }
.qcm-measure__title { font-weight: 600; font-size: 14px; color: var(--text-strong); }
.qcm-measure__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; }
.qcm-measure__head b { font: 600 15px/1.3 var(--font-ui); color: var(--text-strong); }
.qcm-measure__tol { margin-left: auto; font: 400 13px/1.3 var(--font-mono); color: var(--text-muted); }
.qcm-badge { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mk); color: #fff; font: 600 12px/1 var(--font-mono); }
.qcm-measure__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr) minmax(0, 1.2fr); gap: 14px; margin-top: 12px; align-items: start; }
.qcm-measure .lbl { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 4px; }
.qcm-inst { display: block; font-size: 13.5px; line-height: 1.35; color: var(--text-strong); }
.qcm-ver { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-muted); }
.qcm-dv__bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); background: var(--page-alt); }
.qcm-dv__sheet { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.qcm-dv__grow { flex: 1; }
.qcm-dv__bar .ncb { min-width: 32px; }
.qcm-dv__stage { position: relative; flex: 1; min-height: 340px; overflow: hidden; background: var(--surface-sunken); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.qcm-dv__stage.is-drag { cursor: grabbing; }
.qcm-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.qcm-sheet { fill: #fff; stroke: var(--line-strong); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.dw-o, .dw-t, .dw-c, .dw-k { fill: none; stroke: #1b2433; vector-effect: non-scaling-stroke; }
.dw-o { stroke-width: 1.5px; }
.dw-t { stroke-width: .75px; }
.dw-c { stroke-width: .75px; stroke-dasharray: 10 3 2 3; }
.dw-k { stroke-width: 2.6px; }
.dw-a { fill: #1b2433; }
.dw-x { font: italic 400 7px/1 var(--font-ui); fill: #1b2433; }
.dw-x--l { font-size: 9px; }
.dw-x--s { font-size: 5px; }
.dw-x--xs { font-size: 3px; }
.qcm-fr { fill: transparent; stroke: var(--mk); stroke-width: 2px; vector-effect: non-scaling-stroke; cursor: pointer; --mk: var(--st-neutral); }
.qcm-fr.is-pass, .qcm-mk.is-pass { --mk: var(--st-done); }
.qcm-fr.is-fail, .qcm-mk.is-fail { --mk: var(--st-danger); }
.qcm-fr.is-on { stroke-width: 3px; fill: rgba(169, 219, 227, .4); }
.qcm-dv__marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.qcm-mk { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 2px solid var(--mk); border-radius: 50%; background: #fff; color: var(--text-strong); font: 600 12px/1 var(--font-mono); cursor: pointer; pointer-events: auto; --mk: var(--st-neutral); }
.qcm-mk::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
.qcm-mk.is-on { background: var(--mk); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.qcm-mk:focus-visible { outline: 2px solid var(--accent-600); outline-offset: 3px; }
.qcm-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 12px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--text-muted); }
.qcm-lg { display: inline-flex; align-items: center; gap: 6px; }
.qcm-lg::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--st-neutral); border-radius: 50%; background: #fff; }
.qcm-lg--pass::before { border-color: var(--st-done); }
.qcm-lg--fail::before { border-color: var(--st-danger); }
@container (min-width: 861px) and (max-width: 1080px) { .qcm-wide { display: none; } }
@container (max-width: 860px) {
  .qcm-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: 'dv' 'measure' 'msg' 'table'; }
  .qcm-dv { border-left: 0; border-bottom: 1px solid var(--line); }
  .qcm-dv__stage { flex: none; min-height: 0; aspect-ratio: 4 / 3; max-height: 72vh; }
  .qcm-tablewrap { border-top: 1px solid var(--line); }
}
@container (max-width: 700px) { .qcm-wide { display: none; } }
@container (max-width: 420px) { .qcm-mid { display: none; } }
@container (max-width: 560px) {
  .qcm-table th, .qcm-table td { padding-left: 8px; padding-right: 8px; }
  .qcm-measure__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
  .qcm-measure__grid > :last-child { grid-column: 1 / -1; }
  .qcm-measure__tol { margin-left: 0; width: 100%; }
}

/* история партии */
.hist { list-style: none; padding: 6px 14px 10px; }
.hist li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; }
.hist li:first-child { border-top: 0; }
.hist time { font: 400 12.5px/1.5 var(--font-mono); color: var(--text-muted); }
.hist b { color: var(--text-strong); font-weight: 600; }
.hist span { display: block; color: var(--text-muted); font-size: 12.5px; }
@container (max-width: 420px) { .hist li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- киоск (тёмный экран панели) ---------- */
.kiosk {
  container-type: inline-size;
  border-radius: 14px; padding: 10px; background: #1b2433;
  box-shadow: 0 0 0 1px #2c3a50, 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.kiosk__screen {
  background: var(--k-bg); color: var(--k-text); border-radius: 6px; overflow: hidden;
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.25cqw, 16px); /* 1em = 16 «пикселей панели» на ширине 1280 */
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column;
}
.k-head { display: flex; align-items: center; gap: 1em; height: 4.5em; padding: 0 1em; background: var(--k-surface); border-bottom: 1px solid var(--k-border); flex-shrink: 0; }
.k-back { display: inline-flex; align-items: center; height: 3.5em; padding: 0 1em; border: 1px solid var(--k-border); border-radius: .5em; font-size: .95em; white-space: nowrap; }
.k-title { font-weight: 600; font-size: 1.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-head .grow { flex: 1; }
.k-lamp { width: 1em; height: 2.4em; display: flex; flex-direction: column; align-items: center; }
.k-lamp i { width: .9em; height: 1.5em; border-radius: .3em; background: var(--signal-green); box-shadow: 0 0 .8em rgba(34, 197, 94, .8); }
.k-lamp s { width: .2em; flex: 1; background: #8796a8; }
.k-lock { width: 3.5em; height: 3.5em; border: 1px solid var(--k-border); border-radius: .5em; display: grid; place-items: center; flex-shrink: 0; }
.k-status { margin: 0 12.5%; padding: .5em 1em; background: var(--k-success); font-weight: 600; font-size: .95em; border-radius: 0 0 .5em .5em; }
.k-main { flex: 1; display: grid; grid-template-columns: minmax(0, 37fr) minmax(0, 17fr); gap: 1.25em; padding: 1em 12.5% 0; align-content: start; }
.k-card { background: var(--k-card); border: 1px solid var(--k-border); border-radius: .5em; }
.k-card > div { padding: .9em 1em; border-top: 1px solid var(--k-border); }
.k-card > div:first-child { border-top: 0; }
.k-lbl { display: block; font-size: .72em; letter-spacing: .06em; color: var(--k-text-sec); font-weight: 500; margin-bottom: .35em; }
.k-val { font-size: 1em; }
.k-val b { font-weight: 600; font-size: 1.05em; }
.k-pair { display: flex; gap: 2em; }
.k-docs { display: grid; gap: .55em; align-content: start; }
.k-doc { display: flex; align-items: center; height: 4.75em; padding: 0 1.1em; border: 1px solid var(--k-border); border-radius: .5em; font-weight: 500; font-size: 1.05em; }
.k-foot { display: flex; align-items: center; gap: .75em; height: 6.25em; padding: 0 1em; background: var(--k-surface); border-top: 1px solid var(--k-border); flex-shrink: 0; }
.k-link { display: inline-flex; align-items: center; gap: .5em; height: 1.7em; padding: 0 .75em; border: 1px solid var(--k-border); border-radius: .85em; font-size: .8em; color: var(--k-text-sec); white-space: nowrap; }
.k-link::before { content: ''; width: .55em; height: .55em; border-radius: 50%; background: var(--k-success); }
.k-actions { flex: 1; display: flex; justify-content: center; gap: .75em; }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 4.75em; padding: 0 1.6em;
  border-radius: .5em; border: 1px solid var(--k-border); background: transparent; color: #fff;
  font: 600 1.05em/1 var(--font-ui); white-space: nowrap;
}
button.k-btn { cursor: pointer; }
.k-btn--accent { background: var(--k-accent); border-color: var(--k-accent); }
button.k-btn--accent:hover { background: #00485c; }
.k-btn--success { background: var(--k-success); border-color: var(--k-success); }
.k-btn--danger { background: var(--k-danger); border-color: var(--k-danger); }
.k-qty-done { color: #22c55e; }
@container (max-width: 640px) {
  .kiosk__screen { aspect-ratio: auto; font-size: 11px; }
  .k-main { grid-template-columns: 1fr; padding: 1em 1em 1.25em; }
  .k-docs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-doc { height: 3.6em; font-size: .95em; padding: 0 .7em; line-height: 1.15; }
  .k-status { margin: 0 1em; }
  .k-foot { height: auto; flex-wrap: wrap; padding: .9em 1em; }
  .k-actions { flex-wrap: wrap; justify-content: flex-start; }
  .k-btn { height: 3.8em; padding: 0 1.1em; }
  .k-link { order: 2; }
  .k-hide-sm { display: none; }
}

/* магазин станка */
.k-mag { flex: 1; padding: 1em; display: flex; flex-direction: column; gap: .8em; }
.k-mag__top { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.k-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75em; }
.k-slot { border: 1px solid var(--k-border); border-radius: .5em; padding: .55em .65em; min-height: 6.4em; font-size: .92em; line-height: 1.25; }
.k-slot b { display: block; font: 600 1.3em/1.2 var(--font-mono); color: #8aa0bd; }
.k-slot.is-busy { background: var(--k-card); }
.k-slot.is-busy b { color: #fff; }
.k-slot small { display: block; color: var(--k-text-sec); font-size: .9em; margin-top: .2em; }
.k-slot .warn { color: var(--k-warn-text); }
.k-slot--empty span { color: var(--k-text-sec); }
.k-check { margin: 0 1em 1em; border: 1px solid var(--k-border); border-radius: .5em; background: var(--k-card); padding: .8em 1em; display: grid; gap: .45em; }
.k-check b { font-weight: 600; }
.k-check .ok { color: #22c55e; }
.k-check .need { color: var(--k-warn-text); }
@container (max-width: 420px) { .k-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container (max-width: 640px) {
  .k-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-slot { min-height: 5.6em; }
  .k-slot.k-hide-sm { display: none; }
}

/* ---------- пульт ---------- */
.board { margin-top: 56px; border-radius: 12px; background: var(--canvas); padding: 16px; container-type: inline-size; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); }
.board__head { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; }
.board__head h4 { font-size: 18px; }
.board__clock { font: 600 30px/1 var(--font-mono); color: var(--text-strong); grid-row: span 2; align-self: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; color: #fff; font: 600 12.5px/1 var(--font-ui); }
.chip--work { background: #15803d; } .chip--setup { background: #1d4ed8; } .chip--pause { background: #b45309; }
.chip--issue { background: #b91c1c; } .chip--idle { background: #475569; } .chip--nodata { background: #334155; }
.alarms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alarm { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 6px; color: #fff; font-size: 13px; font-weight: 500; }
.alarm--red { background: #b91c1c; } .alarm--amber { background: #a4620a; }
.alarm .mono { opacity: .9; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tile { border-radius: var(--radius); padding: 12px 14px 14px; color: #fff; min-height: 168px; font-size: 13px; line-height: 1.45; }
.tile__top { display: flex; justify-content: space-between; gap: 10px; font: 600 13px/1.2 var(--font-mono); opacity: .95; }
.tile h5 { margin: 6px 0 2px; font-size: 16px; line-height: 1.25; color: #fff; font-weight: 600; }
.tile__state { font-weight: 600; margin-bottom: 4px; }
.tile p { opacity: .92; }
.tile--work { background: #15803d; } .tile--setup { background: #1d4ed8; } .tile--pause { background: #b45309; }
.tile--issue { background: #b91c1c; } .tile--idle { background: #475569; }
.tile--nodata { background: repeating-linear-gradient(135deg, #334155 0 14px, #3b4a5f 14px 28px); }
@container (max-width: 760px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 460px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
  .board__clock { font-size: 22px; }
}
.rdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.rdot--done { background: var(--st-done); }
.rdot--danger { background: var(--st-danger); }
.rline { display: block; padding-left: 16px; }
.ss-warn.rline { color: var(--st-danger); }

/* мастер: доска сменных заданий (по экрану выпуска 2026.11.10 — «Доска»: плитки станков, «Ждут станка», вид «Люди») */
.tag--plan { color: var(--st-plan); background: #eceef6; }
.sb .grow { flex: 1; }
.sb [hidden] { display: none !important; }
.sb-tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: -4px 0 12px; font-size: 14px; color: var(--text-muted); }
.sb-tabs b { color: var(--text-strong); font-weight: 600; padding-bottom: 9px; border-bottom: 2px solid var(--accent-600); margin-bottom: -1px; }
.sb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; font-size: 13px; }
.sb-ctl { display: inline-flex; align-items: center; gap: 12px; height: 32px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text-strong); font-weight: 500; white-space: nowrap; }
.sb-ctl i { font-style: normal; color: var(--accent-600); font-size: 16px; line-height: 1; }
.sb-phase, .sb-upd { color: var(--text-muted); white-space: nowrap; }
.sb-switch { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--surface-sunken); }
.sb-switch button { appearance: none; border: 0; background: transparent; height: 26px; padding: 0 12px; border-radius: 6px; font: 500 13px/1 var(--font-ui); color: var(--text-muted); cursor: pointer; }
.sb-switch button.is-on { background: var(--surface); color: var(--text-strong); box-shadow: 0 1px 2px rgba(16, 26, 43, .12); }
.sb .w-btn { cursor: pointer; font: 500 13px/1 var(--font-ui); }
.sb .w-btn[disabled] { opacity: .5; cursor: default; }
.sb-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.sb-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sb-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sb-tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sb-tile__head b { color: var(--text-strong); font-weight: 600; font-size: 14px; line-height: 1.3; }
.sb-code { font-size: 12.5px; color: var(--text-muted); margin-top: -4px; }
.sb-who { background: var(--surface-sunken); border-radius: 6px; padding: 7px 9px; font-size: 12.5px; line-height: 1.4; color: var(--text); }
.sb-who b { color: var(--text-strong); font-weight: 600; }
.sb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--st-neutral); margin-right: 5px; }
.sb-dot--ok { background: var(--st-done); } .sb-dot--bad { background: var(--st-danger); }
.sb-reason { font-size: 12.5px; line-height: 1.4; margin-top: -3px; } .sb-reason--hold { color: var(--st-hold); } .sb-reason--danger { color: var(--st-danger); }
.sb-tile--hold { border-top: 3px solid var(--st-hold); padding-top: 10px; } .sb-tile--danger { border-top: 3px solid var(--st-danger); padding-top: 10px; }
.sb-none { font-size: 12.5px; color: var(--text-muted); }
.sb-ops { display: grid; gap: 6px; }
.sb-op { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3px 7px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; font-size: 12.5px; }
.sb-op .sb-n { color: var(--text-muted); font-family: var(--font-mono); }
.sb-name { color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-op .tag { grid-column: 2; justify-self: start; }
.sb-q { grid-column: 3; grid-row: 1 / span 2; color: var(--text-strong); font-size: 12.5px; white-space: nowrap; }
.sb-sub { grid-column: 1 / -1; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.sb-ready { color: var(--st-hold); white-space: nowrap; } .sb-ready::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 5px; }
.sb-op--new { border-color: var(--accent-300); background: var(--accent-50); }
.sb-foot { margin-top: auto; padding-top: 2px; font-size: 12px; color: var(--text-muted); }
.sb-wait { background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; min-width: 0; }
.sb-wait__head { font-weight: 600; color: var(--text-strong); font-size: 14px; }
.sb-hint { margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--text-muted); }
.sb-wait__wc { margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.sb-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 9px; font-size: 12.5px; }
.sb-card .sb-sub { display: block; margin-top: 2px; }
.sb-lock { margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.sb-card__act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.sb-link { color: var(--accent-600); font-weight: 500; font-size: 12.5px; white-space: nowrap; }
.sb-pcount { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.sb-pcount b { color: var(--text-strong); font-size: 15px; } .sb-warn b { color: var(--st-danger); }
.sb-leg { display: inline-flex; align-items: center; gap: 6px; } .sb-leg i { width: 9px; height: 9px; border-radius: 50%; }
.sb-seg--setup { background: var(--st-progress); } .sb-seg--run { background: var(--st-done); } .sb-seg--pause { background: #d9911b; } .sb-seg--issue { background: var(--st-danger); }
.sb-prow--pause { box-shadow: inset 3px 0 0 #d9911b; background: #fdf8ee; } .sb-prow--issue { box-shadow: inset 3px 0 0 var(--st-danger); background: #fdf3f2; }
.sb-why { font-style: normal; font-family: var(--font-ui); } .sb-prow--pause .sb-why { color: var(--st-hold); font-weight: 500; } .sb-prow--issue .sb-why { color: var(--st-danger); font-weight: 500; }
.sb-more { color: var(--accent-600) !important; font-weight: 500; }
.sb-wgroup + .sb-wgroup { margin-top: 2px; } .sb-wgroup .sb-card + .sb-card { margin-top: 6px; }
.sb-ptable { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sb-prow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 6fr); gap: 14px; padding: 12px 14px; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 1.45; color: var(--text-strong); align-items: start; }
.sb-prow--head { border-top: 0; font-size: 12.5px; color: var(--text-muted); align-items: center; }
.sb-prow b { font-weight: 600; } .sb-prow small { display: block; margin-top: 3px; font-size: 12px; color: var(--text-muted); }
.sb-ticks { position: relative; height: 16px; font-size: 11.5px; } .sb-ticks i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.sb-track { position: relative; height: 16px; margin-top: 3px; border-radius: 4px; background: var(--surface-sunken); }
.sb-track i { position: absolute; top: 0; bottom: 0; } .sb-track u { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text-strong); }
.sb-yellow { display: block; padding: 8px 10px; border-radius: 6px; background: #fbf0e0; color: #6b4307; font-size: 12.5px; }
@container (max-width: 940px) { .sb-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } .sb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 640px) {
  .sb-grid { grid-template-columns: 1fr; }
  .sb-prow { grid-template-columns: 1fr; gap: 8px; } .sb-prow--head span:nth-child(-n+2) { display: none; }
  .sb-upd, .sb-phase { display: none; }
}
@container (max-width: 460px) {
  .sb-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
  .sb-tile { flex: 0 0 84%; scroll-snap-align: start; }
}

/* блок «экран + текст» во всю ширину: текст сверху в две колонки, экран под ним (доска мастера — самый широкий экран системы) */
.feature--wide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
@media (min-width: 1001px) {
  .feature--wide .feature__text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; }
  .feature--wide .feature__text > h3, .feature--wide .feature__text > p { grid-column: 1; }
  .feature--wide .feature__text > .checks { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
}
@media (max-width: 1000px) { .feature--wide .feature__shot { max-width: none; } }

/* ===== версия 2: первый экран и «Одна смена в цеху» =====
   Раздел высокий (высоту ставит assets/smena.js по длине смены), внутри — кадр, прилипший к экрану.
   Рисунок цеха и окна системы — в закрытом узле #smena-view (стили: _src/smena/view.css). */
.smena { position: relative; height: 100vh; height: 100svh; background: #040a13; color: #eaf1fa; }
.smena__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(68% 74% at 50% 46%, #0e1d33 0%, #081322 55%, #040a13 100%); }
.smena__view { position: absolute; inset: 0; }
.smena__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 30% 50%; transform-origin: 66% 55%; }
.smena__veil { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(4, 10, 19, .72) 0%, rgba(4, 10, 19, .5) 32%, rgba(4, 10, 19, .12) 50%, rgba(4, 10, 19, 0) 64%),
  linear-gradient(180deg, rgba(4, 10, 19, .55) 0%, rgba(4, 10, 19, 0) 20%, rgba(4, 10, 19, 0) 80%, rgba(4, 10, 19, .55) 100%); }
.smena__hero { position: absolute; inset: 0; display: flex; align-items: center; padding-top: var(--header-h); pointer-events: none; will-change: opacity, transform; }
.smena__hero .wrap > * { pointer-events: auto; }
.smena__hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.028em; font-weight: 600; text-wrap: initial; }
.smena__lead { margin-top: clamp(18px, 2.4vh, 30px); max-width: 33em; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: #b9c8dc; }
.smena__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(24px, 3.6vh, 40px); }
.smena__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: 10px; border: 1.5px solid rgba(207, 224, 245, .34); color: #fff; font: 600 17px/1.2 var(--font-ui); text-decoration: none; transition: border-color .15s, background-color .15s; }
.smena__btn:hover { border-color: #2ec4d6; color: #fff; }
.smena__btn--main { background: #2ec4d6; border-color: #2ec4d6; color: #04121d; }
.smena__btn--main:hover { background: #5fd8e6; border-color: #5fd8e6; color: #04121d; }
.smena__status { margin-top: 22px; display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; color: #8aa0bd; }
.smena__status::before { content: ''; position: relative; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal-amber); flex-shrink: 0; }
/* точка у строки «Система в разработке» медленно пульсирует: раз в 3 с от неё расходится кольцо, сама точка чуть гаснет;
   у посетителя с отключённой в системе анимацией точка неподвижна */
@media (prefers-reduced-motion: no-preference) {
  .smena__status::before { animation: smena-dot 3s ease-in-out infinite; }
  @keyframes smena-dot {
    0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, .6); opacity: 1; }
    55% { box-shadow: 0 0 0 9px rgba(245, 166, 35, 0); opacity: .5; }
    100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); opacity: 1; }
  }
}
.smena__cue { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font: 500 14px/1 var(--font-mono); letter-spacing: .04em; color: #8aa0bd; pointer-events: none; }
.smena__cue::after { content: ''; display: block; width: 1px; height: 26px; margin: 12px auto 0; background: linear-gradient(180deg, #2ec4d6, rgba(46, 196, 214, 0)); }
@media (prefers-reduced-motion: no-preference) {
  .smena__cue::after { animation: smena-cue 1.8s ease-in-out infinite; }
  @keyframes smena-cue { 0% { transform: scaleY(0); transform-origin: 50% 0; } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
}
.smena :focus-visible { outline-color: #9fe9f2; }

/* полоса остановок смены */
.smena__rail { position: absolute; right: max(16px, 2.4vw); bottom: 10px; display: flex; align-items: center; gap: 2px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.smena__rail.is-shown { opacity: 1; visibility: visible; }
.smena__rail button { appearance: none; border: 0; background: transparent; padding: 8px 10px; border-radius: 8px; font: 500 13px/1 var(--font-ui); color: #6f86a6; cursor: pointer; white-space: nowrap; }
.smena__rail button:hover { color: #fff; background: rgba(46, 196, 214, .14); }
.smena__rail button.is-past { color: #b9c8dc; }
.smena__rail button.is-on { color: #04121d; background: #2ec4d6; }
.smena__skip { margin-left: 14px; padding: 8px 4px; font: 500 13px/1 var(--font-ui); color: #8aa0bd; text-underline-offset: 4px; white-space: nowrap; }
.smena__skip:hover { color: #fff; }
.smena__story { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1180px) {
  .smena__rail button { width: 22px; height: 22px; padding: 0; font-size: 0; position: relative; }
  .smena__rail button::before { content: ''; position: absolute; left: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
  .smena__rail button.is-on { background: transparent; color: #2ec4d6; }
}

/* шапка: над первым экраном — прозрачная, пока идёт смена — убрана (классы ставит assets/smena.js) */
.smena-on .site-header { position: fixed; left: 0; right: 0; top: 0; transition: transform .35s ease, background-color .25s ease, border-color .25s ease; }
.smena-top .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.smena-run .site-header { transform: translateY(-101%); }
.smena-run .site-header:focus-within { transform: none; }
@media (prefers-reduced-motion: reduce) { .smena-on .site-header { transition: none; } }
.smena-run .to-top { opacity: 0; pointer-events: none; }

/* большие экраны: колонка страницы шире (до версии 2 — 1200 px на любом экране).
   Правило: 76 % ширины окна, но не уже 1200 и не шире 1640. До 1580 px ширины окна ничего не меняется. */
@media (min-width: 1580px) { :root { --wrap: clamp(1200px, 76vw, 1640px); } }

/* телефон и вертикальный экран (тот же порог, что в smena.js: экран выше, чем шире, или узкий почти квадратный): фото — на главный станок, затемнение сверху вниз */
@media (max-aspect-ratio: 1/1), (max-width: 819px) and (max-aspect-ratio: 5/4) {
  .smena__photo { object-position: 63% 50%; }
  .smena__veil { background: linear-gradient(180deg, rgba(4, 10, 19, .82) 0%, rgba(4, 10, 19, .62) 38%, rgba(4, 10, 19, .5) 62%, rgba(4, 10, 19, .86) 100%); }
  .smena__hero h1 { font-size: clamp(34px, 10.4vw, 64px); }
  .smena__btn { flex: 1 1 100%; }
  .smena__cue { font-size: 12.5px; bottom: 18px; }
  .smena__rail { left: 0; right: 0; bottom: max(8px, env(safe-area-inset-bottom, 0px)); justify-content: center; }
}

/* нижние блоки — в один голос со сценой: заголовки крупнее и плотнее, как на первом экране; кнопка в тёмной шапке — яркая, как в сцене */
.section__head h2, .waitlist h2 { font-size: clamp(30px, 3.3vw, 54px); line-height: 1.08; letter-spacing: -.026em; }
.section__head { max-width: 860px; }
.section__head p { font-size: clamp(18px, 1.15vw, 21px); }
.site-header .btn--primary { background: #2ec4d6; color: #04121d; }
.site-header .btn--primary:hover, .site-nav a.btn:hover { background: #5fd8e6; color: #04121d; }
.site-nav a.btn { color: #04121d; }

/* низкий широкий экран (телефон боком, 667×375 и подобные): первый экран должен уместиться по высоте */
@media (max-height: 540px) and (min-aspect-ratio: 5/4) {
  .smena__hero h1 { font-size: clamp(24px, 11.5vh, 46px); line-height: 1.04; }
  .smena__lead { margin-top: 10px; font-size: 14.5px; line-height: 1.4; max-width: 34em; }
  .smena__actions { margin-top: 14px; gap: 10px; flex-wrap: nowrap; }
  .smena__btn { min-height: 42px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
  .smena__status { margin-top: 10px; font-size: 13px; }
  .smena__cue { display: none; }
  .smena__veil { background: linear-gradient(90deg, rgba(4, 10, 19, .86) 0%, rgba(4, 10, 19, .7) 45%, rgba(4, 10, 19, .2) 75%, rgba(4, 10, 19, 0) 100%); }
}
@media (max-height: 380px) and (min-aspect-ratio: 5/4) { .smena__lead { display: none; } }

/* меню на узком экране: раскрытое меню — всегда на сплошной тёмной шапке (над фото она прозрачная), и целиком помещается по высоте */
.smena-top .site-header.is-open { background: var(--navy-950); border-bottom-color: var(--navy-700); }
@media (max-width: 1000px) {
  .site-header.is-open .site-nav { max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 1000px) and (max-height: 540px) {
  .site-header.is-open .site-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .site-header.is-open .site-nav a { padding: 11px 0; font-size: 16px; }
  .site-header.is-open .site-nav a.btn { grid-column: 1 / -1; margin: 12px 0 14px; }
}
