/* TAIVIS. Дизайн-система: тёмные экраны «как ЦУП», светлые рабочие секции, линии вместо теней. */

@font-face {
  font-family: 'Golos Text';
  src: url('/assets/fonts/GolosText-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0F1A26;
  --ink-2: #1B2C3D;
  --sky: #24435F;
  --paper: #F2F5F7;
  --white: #ffffff;
  --line: #D3DCE4;
  --line-dark: #2A3E52;
  --muted: #5A6F82;
  --muted-dark: #A9B6C2;
  --signal: #FFB000;
  --signal-hover: #FFC23D;
  --data: #8FB0C9;          /* холодный служебный: рубрики на тёмном */
  --ok: #067647;
  --err: #b42318;
  --font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --radius: 8px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 28px; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; color: var(--ink); }
h1 { font-weight: 800; }
p { margin: 0 0 16px; }
.mono { font-weight: 600; letter-spacing: .06em; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.container { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 928px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--signal); color: var(--ink); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); background: transparent; }
.btn-ghost:hover { border-color: var(--white); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Иконки */
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.i-accent { stroke: var(--signal); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.logo-word { font-weight: 700; font-size: 20px; letter-spacing: .16em; }
.logo-inverse { color: var(--white); }
.logo-inverse .logo-mark { color: var(--signal); }
.logo { gap: 12px; }
.logo-mark { flex: none; }
.main-nav { flex: 1; }
.nav-list { display: flex; justify-content: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; line-height: 24px; text-decoration: none; cursor: pointer; }
.nav-link:hover { background: var(--paper); }
.nav-item.is-active > .nav-link { text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-sub-toggle .icon { transition: transform .15s; }
.has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-sub { display: none; position: absolute; top: calc(100% + 10px); left: -8px; min-width: 320px; margin: 0; padding: 8px; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.has-sub:hover .nav-sub,
.has-sub:focus-within .nav-sub,
.has-sub.open .nav-sub { display: block; }
.has-sub.open .nav-sub-toggle .icon { transform: rotate(180deg); }
.nav-sub a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; }
.nav-sub a:hover, .nav-sub a[aria-current] { background: var(--paper); }
.nav-sub span { display: block; font-size: 15px; font-weight: 600; line-height: 22px; }
.nav-sub small { display: block; font-size: 13px; line-height: 20px; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); cursor: pointer; }
.nav-mobile-extra { display: none; }

/* Первый экран главной */
.hero { position: relative; overflow: hidden; padding: 80px 0 88px; color: var(--white); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23FFFFFF' stroke-opacity='0.05'/%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; color: var(--white); font-size: clamp(34px, 3.9vw, 52px); line-height: 1.08; letter-spacing: -.01em; }
.hero-lead { max-width: 580px; margin: 0; font-size: 19px; line-height: 30px; color: #c4d0dc; }
.hero-video { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--ink-2); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }

.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; line-height: 20px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.eyebrow-data { color: var(--data); }

/* Полоса тезисов */
.thesis-strip { background: var(--paper); border-bottom: 1px solid var(--line); }
.theses { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.theses li { display: flex; flex-direction: column; gap: 4px; padding: 26px 24px; border-left: 1px solid var(--line); }
.theses li:first-child { padding-left: 0; border-left: 0; }
.theses b { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.theses span { font-size: 15px; line-height: 22px; color: var(--muted); }

/* Секции */
.section { padding: 96px 0; }
.section-tight { padding: 56px 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: #e8eef4; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .section-lead { color: var(--muted-dark); }
.section-dark .eyebrow { color: var(--data); }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3.1vw, 38px); line-height: 1.15; letter-spacing: -.01em; }
.section-lead { margin: 16px 0 0; font-size: 18px; line-height: 28px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.two-col-wide { grid-template-columns: 1.3fr 1fr; }
.two-col .section-head { margin-bottom: 28px; }
.after-grid { margin: 32px 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--signal); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 15px; font-weight: 600; }

/* Карточки направлений */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.service-card:hover { background: #E7EDF3; }
.service-card h3 { margin: 8px 0 0; font-size: 22px; line-height: 30px; }
.service-card p { margin: 0; color: var(--muted); }
.service-card .check-list { margin-bottom: 12px; }
.tile-icon { display: flex; align-self: flex-start; color: var(--ink-2); }
.tile-icon .icon { width: 30px; height: 30px; }

.check-list { display: grid; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 24px; }
.check-list .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--ink-2); }

/* Шаги */
.steps { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; }
.step-num { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.step h3 { margin: 0 0 6px; font-size: 18px; line-height: 26px; }
.step p { margin: 0; font-size: 16px; line-height: 25px; color: var(--muted); }
.section-dark .step p { color: var(--muted-dark); }
.steps-flow { grid-template-columns: repeat(6, 1fr); gap: 0; }
.steps-flow .step { padding: 28px 20px 0 0; border-top: 2px dashed rgba(255, 176, 0, .55); }
.steps-flow .step::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.steps-compact { gap: 0; }
.steps-compact .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps-compact .step-num { grid-row: span 2; margin: 3px 0 0; }
.steps-compact h3 { margin: 0; font-size: 17px; }
.steps-compact p { margin-top: 4px; }
.steps-grid { grid-template-columns: repeat(4, 1fr); gap: 32px 24px; }
.steps-grid .step { padding-top: 18px; border-top: 1px solid var(--line); }

/* Оборудование */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.product-card { overflow: hidden; border-radius: 12px; background: var(--paper); transition: background-color .15s; }
.product-card:hover { background: #E7EDF3; }
.product-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.product-art { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--white); }
.product-art .art { width: 86%; height: auto; }
.product-art.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.product-body h3 { margin: 0; font-size: 21px; line-height: 28px; }
.product-summary { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.tag { margin: 0; font-size: 12px; font-weight: 700; line-height: 18px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.key-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; padding: 0; list-style: none; }
.key-specs li { padding: 5px 11px; border-radius: 6px; background: rgba(15, 26, 38, .06); font-size: 13px; line-height: 20px; color: var(--ink-2); }
.key-specs-lg li { padding: 7px 13px; font-size: 14px; }

/* Отрасли */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry-tile { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: 12px; background: var(--white); color: var(--ink); text-decoration: none; transition: box-shadow .15s; }
.industry-tile:hover { box-shadow: 0 8px 24px rgba(15, 26, 38, .09); }
.industry-tile h3 { margin: 6px 0 0; font-size: 18px; line-height: 26px; }
.industry-tile ul { margin: 0 0 8px; padding-left: 18px; font-size: 15px; line-height: 23px; color: var(--muted); }
.industry-tile .more { font-size: 15px; }
.industry-list { display: grid; gap: 16px; }
.industry-row { display: grid; grid-template-columns: 300px 1fr; gap: 32px; padding: 36px; border-radius: 12px; background: var(--paper); scroll-margin-top: calc(var(--header-h) + 24px); }
.industry-row-head { display: flex; flex-direction: column; gap: 14px; }
.industry-row-head h2 { margin: 0; font-size: 24px; line-height: 32px; }
.industry-row-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.industry-row-body p { margin: 0 0 8px; color: var(--muted); }
.subhead { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
* + .subhead { margin-top: 20px; }

/* Форматы, почему мы, возможности */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.format-card { padding: 32px; border-radius: 12px; background: var(--paper); }
.format-card .eyebrow { color: var(--ink-2); }
.format-card h3 { margin: 0 0 12px; font-size: 22px; line-height: 30px; }
.why-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 40px; }
.why-item .icon, .feature .icon { width: 30px; height: 30px; }
.why-item h3, .feature h3 { margin: 14px 0 6px; font-size: 19px; line-height: 27px; }
.why-item p, .feature p { margin: 0; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cat-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; transition: background-color .15s; }
.cat-card:hover { background: #E7EDF3; }
.cat-card .icon { width: 32px; height: 32px; }
.cat-card h3 { margin: 6px 0 0; font-size: 20px; }
.cat-card p { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted); }
.cat-card .mono { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--muted); }
.option { padding: 20px 0; border-top: 1px solid var(--line); }
.option h3 { margin: 0 0 6px; font-size: 19px; }
.option p { margin: 0; color: var(--muted); }
.note { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding: 16px 18px; border-radius: var(--radius); background: var(--paper); font-size: 15px; line-height: 23px; }
.note .icon { margin-top: 2px; color: var(--ink-2); }

/* Карточки на светло-серых секциях: меняем заливку местами, чтобы не сливались с фоном */
.section-paper .service-card,
.section-paper .product-card,
.section-paper .format-card,
.section-paper .cat-card,
.section-paper .industry-row,
.page-hero .product-hero-art { background: var(--white); }
.section-paper .service-card:hover,
.section-paper .product-card:hover,
.section-paper .cat-card:hover { background: #E7EDF3; }
.section-paper .product-art { background: var(--paper); }
.section .industry-tile { background: var(--paper); }
.section-paper .industry-tile { background: var(--white); }
.section-paper .key-specs li { background: rgba(15, 26, 38, .05); }

/* Вопросы и ответы */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 600; line-height: 26px; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { margin-top: 1px; color: var(--ink-2); transition: transform .2s; }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-answer p { max-width: 760px; margin: 0 0 22px; color: var(--muted); }

/* Заявка */
.section-cta { background: var(--sky); color: var(--white); scroll-margin-top: var(--header-h); }
.cta-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.cta-text h2 { margin: 0; color: var(--white); font-size: clamp(28px, 3.1vw, 38px); line-height: 1.15; }
.cta-text .section-lead { color: #c4d0dc; }
.cta-text .eyebrow { color: var(--data); }
.cta-contacts { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.cta-contacts li { display: flex; align-items: center; gap: 12px; }
.cta-contacts a { color: var(--white); font-weight: 600; text-decoration: none; }
.cta-contacts .icon { color: var(--data); }
.cta-form { padding: 32px; border-radius: 10px; background: var(--white); color: var(--ink); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { margin-top: 18px; }
.field-label { font-size: 14px; font-weight: 600; line-height: 20px; }
.field-label i { font-style: normal; color: #B4471F; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 24px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--data); outline-offset: 0; border-color: var(--data); }
.field.has-error input { border-color: var(--err); }
.field-error { font-size: 13px; line-height: 18px; color: var(--err); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.chips legend { margin-bottom: 8px; padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip span { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; line-height: 20px; cursor: pointer; user-select: none; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--data); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--muted); }
.consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); }
.consent.has-error span { color: var(--err); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-status { margin: 0; font-size: 15px; line-height: 22px; }
.form-status.is-error { color: var(--err); }
.form-status.is-ok { color: var(--ok); }
.lead-form.is-sending button[type='submit'] { opacity: .6; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Подвал */
.site-footer { padding: 64px 0 32px; background: var(--ink); color: var(--muted-dark); font-size: 15px; line-height: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr 1fr 1.4fr; gap: 40px; }
.footer-descriptor { margin: 14px 0 6px; font-weight: 600; color: var(--white); }
.footer-note { margin: 0; }
.footer-title { margin: 0 0 12px; font-weight: 600; color: var(--white); }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-req p { margin: 0 0 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom p { margin: 0; }

/* Внутренние страницы */
.page-hero { padding: 40px 0 64px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 920px; margin: 10px 0 16px; font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.page-lead { max-width: 780px; margin: 0; font-size: 19px; line-height: 30px; color: var(--muted); }
.page-hero-center { padding: 96px 0; text-align: center; }
.page-hero-center .page-lead { margin: 0 auto; }
.page-hero-center .actions { justify-content: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: #a7b3c0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.chip-link { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; }
.chip-link:hover { border-color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cat-group { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.cat-group:last-child { margin-bottom: 0; }
.cat-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 24px; font-size: 26px; }
.cat-title .mono { font-size: 15px; font-weight: 600; color: var(--muted); }

.product-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.product-hero-art { display: flex; align-items: center; justify-content: center; padding: 24px; border-radius: 12px; background: var(--paper); }
.product-hero-art .art { width: 100%; max-width: 480px; height: auto; }
.product-hero-art.has-photo { padding: 0; overflow: hidden; }
.product-hero-art.has-photo img { display: block; width: 100%; height: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.spec-table th, .spec-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); }
.spec-table td { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.req-table td { font-family: var(--font); font-size: 15px; overflow-wrap: anywhere; }
.source { margin: 16px 0 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.source a { color: var(--muted); }

/* Схема ЦУП */
.arch { display: grid; grid-template-columns: 1fr 104px 1.1fr 104px 1fr; align-items: center; }
.arch-col { display: grid; gap: 12px; }
.arch-perimeter { padding: 20px; border: 1.5px dashed var(--data); border-radius: 10px; background: var(--white); }
.arch-label { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.arch-box { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 15px; font-weight: 600; line-height: 22px; }
.arch-core { border-color: var(--ink); background: var(--ink); color: var(--white); }
.arch-link { position: relative; height: 0; border-top: 2px dashed var(--signal); }
.arch-link span { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Контакты, лицензии, текст */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card > .icon { width: 28px; height: 28px; color: var(--ink-2); }
.contact-label { margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card > a { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-card .link-arrow { align-self: flex-start; margin-top: 6px; font-size: 15px; }
.license-list { display: grid; gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.license-list li { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.license-list .icon { width: 28px; height: 28px; color: var(--ink-2); }
.license-list strong { display: block; font-size: 16px; line-height: 24px; }
.license-list span { display: block; margin-top: 4px; font-size: 14px; line-height: 21px; color: var(--muted); }
.prose h2 { margin: 36px 0 10px; font-size: 22px; line-height: 30px; }
.prose h2:first-child { margin-top: 0; }

/* Конфигуратор */
.configurator { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: stretch; }
.config-questions { display: grid; gap: 20px; }
.config-q { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.config-q legend { padding: 0 6px; font-size: 16px; font-weight: 700; }
.config-q legend .mono { margin-right: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.config-result { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 10px; background: var(--ink); color: var(--white); }
.config-result .eyebrow { color: var(--data); }
.config-title { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; }
.config-text { margin: 0; color: #c4d0dc; }
.config-result .btn { align-self: flex-start; margin-top: 8px; }
.config-note { margin: auto 0 0; padding-top: 12px; font-size: 13px; line-height: 20px; color: #8fa3b8; }

/* Cookie */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 960px; margin: 0 auto; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 20px; }
.cookie-actions { display: flex; gap: 8px; }

/* Колонки сеток не должны раздуваться длинными строками */
.hero-grid > *, .two-col > *, .product-hero-grid > *, .cta-grid > *, .configurator > *, .industry-row > *, .industry-row-body > *, .footer-grid > *, .arch > * { min-width: 0; }
.site-footer a, .footer-req p { overflow-wrap: anywhere; }

/* Адаптив */
@media (max-width: 1140px) {
  .burger { display: inline-flex; }
  .main-nav { display: none; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49; overflow-y: auto; padding: 16px 24px 32px; background: var(--white); }
  .nav-open .main-nav { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 0; font-size: 18px; }
  .nav-link:hover { background: none; }
  .nav-item.is-active > .nav-link { text-underline-offset: 6px; }
  .has-sub::after { display: none; }
  .nav-sub { display: block; position: static; min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
  .nav-sub-toggle .icon { display: none; }
  .nav-sub a { padding: 8px 0; }
  .nav-mobile-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 24px; }
  .nav-phone { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; }
  .header-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 680px; }
  .steps-flow { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-grid, .configurator { grid-template-columns: 1fr; gap: 40px; }
  .theses { grid-template-columns: repeat(2, 1fr); }
  .theses li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .theses li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .industry-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 800px) {
  .two-col, .two-col-wide, .product-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-cards, .formats, .contact-grid, .product-grid-3 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .industry-row-body { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .arch-link { width: 0; height: 44px; margin: 10px auto; border-top: 0; border-left: 2px dashed var(--signal); }
  .arch-link span { top: 50%; left: 14px; transform: translateY(-50%); }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; line-height: 26px; }
  .container { padding: 0 16px; }
  .main-nav { padding: 8px 16px 32px; }
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .hero { padding: 56px 0 64px; }
  .hero-lead, .page-lead { font-size: 17px; line-height: 27px; }
  .header-phone, .header-actions .btn { display: none; }
  .logo-word { font-size: 17px; }
  .product-grid, .industry-grid, .cat-grid, .why-grid, .feature-grid, .footer-grid, .steps-grid { grid-template-columns: 1fr; }
  .steps-flow { grid-template-columns: 1fr; row-gap: 0; }
  .steps-flow .step { padding: 0 0 28px 28px; border-top: 0; border-left: 2px dashed rgba(255, 91, 31, .6); }
  .steps-flow .step::before { top: 0; left: -7px; }
  .theses li { padding: 18px 14px; }
  .theses b { font-size: 24px; }
  .cta-form, .config-result, .service-card, .format-card { padding: 22px; }
  .industry-row { padding: 22px; }
  .spec-table th { width: 44%; }
  .btn { white-space: normal; text-align: center; }
  .actions .btn { flex: 1 1 100%; }
  .page-hero { padding: 28px 0 48px; }
  .page-hero-center { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
