/* ===== Tokens ===== */
:root {
  --floor: #ECEEEA;
  --floor-2: #E1E4DF;
  --panel: #FFFFFF;
  --ink: #1B2330;
  --steel: #5D6B7A;
  --line: #C9CEC8;
  --tape: #F5C400;
  --brand-hi: #E9A800; --brand-lo: #B06A00; /* знак на светлом фоне: темнее, как в светлой теме ТСД */
  --tape-ink: #1B2330;
  --beam: #3A4757;
  --road: #D5D9D3;
  --ink-bg: #1B2330;
  --ink-fg: #E8EBEE;
  --ink-muted: #A3AFBB;
  --ink-line: #354152;

  --f-display: 'Unbounded', 'Arial Black', sans-serif;
  --f-text: 'Golos Text', 'Segoe UI', Arial, sans-serif;
  --wrap: 1200px;
  --body-size: 17px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --floor: #151A21; --floor-2: #1A2029; --panel: #1F2630; --ink: #E8EBEE; --steel: #94A1AE; --brand-hi: #FFD84A; --brand-lo: #EEA21A;
    --line: #333D4A; --beam: #0E1217; --road: #262E39; --ink-bg: #0F1318; --ink-line: #2A3340;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --floor: #151A21; --floor-2: #1A2029; --panel: #1F2630; --ink: #E8EBEE; --steel: #94A1AE; --brand-hi: #FFD84A; --brand-lo: #EEA21A;
  --line: #333D4A; --beam: #0E1217; --road: #262E39; --ink-bg: #0F1318; --ink-line: #2A3340;
  color-scheme: dark;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--floor); color: var(--ink);
  font: 400 var(--body-size)/1.6 var(--f-text); overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--tape); color: var(--tape-ink); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--f-text); text-decoration: none; border-radius: 4px; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn--tape { background: var(--tape); color: var(--tape-ink); }
.btn--tape:hover { background: #FFD21F; }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--floor-2); }
.btn--on-ink { border-color: var(--ink-fg); color: var(--ink-fg); }
.btn--on-ink:hover { background: var(--ink-line); }

/* ===== Header ===== */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--floor) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 20px/1 var(--f-display); text-decoration: none; letter-spacing: -0.02em; }
/* Знак Intekey как в ТСД: SVG-маска, цвет — градиент --brand-hi → --brand-lo (своя пара для светлой и тёмной темы). */
.logo__mark {
  flex: none; height: 22px; aspect-ratio: 818 / 368;
  background: linear-gradient(to bottom, var(--brand-hi), var(--brand-lo));
  -webkit-mask: url(../img/intekey-mark.svg) center / contain no-repeat; mask: url(../img/intekey-mark.svg) center / contain no-repeat;
}
.nav { display: flex; gap: clamp(12px, 2vw, 28px); flex: none; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a.is-active { border-color: var(--tape); }
section[id] { scroll-margin-top: 72px; }

/* ===== Hero ===== */
/* Швы бетонного пола: еле заметная сетка плит */
.hero {
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px);
  background-image:
    linear-gradient(var(--floor) 0 0),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--line) 55%, transparent) 1px, transparent 1px);
  background-size: 100% 0, 120px 120px, 120px 120px;
  background-position: 0 0, -1px -1px, -1px -1px;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
/* Размер заголовка — от ширины его колонки: самое длинное слово «проводки» всегда помещается целиком */
.hero__text { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: clamp(30px, 11.2cqi, 76px); overflow-wrap: normal; hyphens: none; font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); max-width: 34em; color: var(--steel); }
.hero__actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.plan { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: clamp(10px, 2vw, 20px); }
.plan svg { display: block; width: 100%; height: auto; }
.plan__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: 14px; color: var(--steel); }
.plan__replay { white-space: nowrap; font: 500 14px var(--f-text); color: var(--ink); background: none; border: 0; border-bottom: 1px dashed var(--steel); padding: 4px 0; cursor: pointer; }

/* SVG plan */
.p-road { fill: var(--road); }
.p-road-dash { stroke: var(--panel); stroke-width: 2; stroke-dasharray: 14 12; }
.p-booth { fill: var(--steel); }
.p-barrier { stroke: var(--tape); stroke-width: 5; stroke-linecap: round; }
.p-building { fill: var(--floor); stroke: var(--steel); stroke-width: 3; }
.p-door { fill: var(--steel); transition: fill .3s; }
.p-door.is-active { fill: var(--tape); }
.p-gate { font: 600 13px var(--f-display); fill: var(--steel); }
.p-fence { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 2 5; }
.p-bays line { stroke: var(--tape); stroke-width: 2; opacity: .8; }
.p-clock { font: 700 34px var(--f-display); fill: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.p-zone { fill: none; stroke: var(--tape); stroke-width: 3; stroke-dasharray: 10 7; }
.p-label { font: 500 16px var(--f-text); fill: var(--steel); }
.p-callout { font: 600 19px var(--f-text); fill: var(--ink); }
.p-pulse { fill: none; stroke: var(--tape); stroke-width: 3; }
.p-row { font: 600 22px var(--f-display); fill: var(--steel); }
.p-cell { fill: var(--panel); stroke: var(--steel); stroke-width: 1.5; }
.p-cell--busy { fill: color-mix(in srgb, var(--steel) 32%, var(--panel)); }
.p-cell--target { stroke: var(--ink); stroke-width: 2; transition: fill .3s; }
.p-cell--target.is-filled { fill: var(--tape); }
.p-celladdr { font: 700 15px var(--f-display); fill: var(--ink); }
.p-pallet { fill: var(--ink); stroke: var(--tape); stroke-width: 1.5; }
.p-link { stroke: var(--steel); stroke-width: 2; stroke-dasharray: 5 5; }
.p-dot { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.p-erp { fill: var(--panel); stroke: var(--ink); stroke-width: 2; }
.p-erp-big { font: 700 28px var(--f-display); fill: var(--ink); }
.p-trailer { fill: var(--steel); }
.p-cab { fill: var(--ink); }
.p-truck--parked { opacity: .5; }
.p-fork__body { fill: var(--tape); stroke: var(--ink); stroke-width: 1.5; }
.p-fork__seat { fill: var(--ink); }
.p-fork__tines { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; fill: none; }

/* Журнал событий под планом: фиксированная высота, чтобы страница не прыгала */
.plan__log { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); min-height: calc(4 * 26px + 10px); display: grid; align-content: start; gap: 2px; font-size: 14px; }
.plan__log li { display: grid; grid-template-columns: 3.2em 6.4em minmax(0, 1fr); gap: 10px; align-items: baseline; line-height: 24px; color: var(--steel); }
.plan__log li:last-child { color: var(--ink); }
.plan__log time { font-variant-numeric: tabular-nums; }
.plan__log b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.plan__log span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan__log li.is-new { animation: log-in .35s ease-out; }
@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 480px) { .plan__log li { grid-template-columns: 3em minmax(0, 1fr); } .plan__log b { display: none; } }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--ink { background: var(--ink-bg); color: var(--ink-fg); }
.section--floor { background: var(--floor-2); }
.section__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; }
.section__head p { color: var(--steel); max-width: 40em; }
.section--ink .section__head p { color: var(--ink-muted); }
@media (max-width: 900px) { .section__head { grid-template-columns: 1fr; } }

/* ===== Rack of products ===== */
.rack {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto);
  gap: 12px; padding: 12px; background: var(--beam); border-radius: 6px;
}
.tile {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 0; border-radius: 3px;
  padding: 20px 22px 20px; cursor: pointer; transition: transform .15s ease;
}
.tile:hover { transform: translateY(-3px); }
.tile:hover .tile__more { border-color: var(--tape); }
.tile--wms2 { grid-column: span 2; grid-row: span 2; padding: clamp(24px, 3vw, 36px); }
.tile--muted { background: var(--floor-2); }
.tile__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile__head .tile__cell { flex: none; }

/* мини-визуалы */
.tile__visual { display: block; margin: 6px 0 4px; }
.tile__visual svg { display: block; width: 100%; height: auto; max-height: 120px; }
.tile--wms2 .tile__visual svg { max-height: 190px; }
.v-cell { fill: var(--floor); stroke: var(--steel); stroke-width: 1.2; }
.tile--muted .v-cell { fill: none; }
.v-hot { fill: var(--tape); stroke: var(--ink); }
.v-route { fill: none; stroke: var(--tape); stroke-width: 5; stroke-linejoin: round; stroke-linecap: round; }
.v-tag { font: 700 9.5px var(--f-display); fill: var(--tape-ink); }
.v-device { fill: var(--ink); }
.v-screen { fill: var(--panel); }
.v-big { font: 700 17px var(--f-display); fill: var(--ink); }
.v-mid { font: 700 13px var(--f-display); fill: var(--ink); }
.v-hotbar { fill: var(--tape); }
.v-scan { stroke: var(--tape); stroke-width: 3; stroke-dasharray: 6 5; }
.v-dotq { fill: #3BB273; }
.v-lbl { font: 600 11px var(--f-text); fill: var(--steel); }
.v-lane { stroke: var(--line); stroke-width: 1; }
.v-slot { fill: var(--floor-2); stroke: var(--steel); stroke-width: 1.2; }
.v-slot.v-hot { fill: var(--tape); stroke: var(--ink); }
.v-now { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 3; }
.v-box { fill: var(--floor); stroke: var(--ink); stroke-width: 2; }
.v-flow { fill: none; stroke: var(--tape); stroke-width: 4; stroke-linecap: round; }
.v-flow--back { stroke: var(--steel); }
.v-arrow { fill: none; stroke: var(--tape); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.v-arrow--back { stroke: var(--steel); }
.v-hotbox { fill: var(--tape); }
.v-tagdark { font: 700 12px var(--f-display); fill: var(--tape-ink); }

.tile__hl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.tile__hl span { font-size: 14px; font-weight: 500; padding: 10px 12px; background: var(--floor); border-radius: 4px; border-left: 3px solid var(--tape); }
@media (max-width: 600px) { .tile__hl { grid-template-columns: 1fr; } }

/* что в архиве */
.tile__archive { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--line); }
.arch__top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.arch__label { font-weight: 600; }
.arch__sum { color: var(--steel); }
.arch__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 700 11px/1 var(--f-display); padding: 5px 7px 4px; border-radius: 3px; background: var(--floor-2); color: var(--ink); letter-spacing: .02em; }
.chip--md { background: #DDE7F5; color: #1E3A66; }
.chip--docx { background: #E1E9FB; color: #1D4ED8; }
.chip--pdf { background: #FBE3E1; color: #A12A1E; }
.chip--html { background: #FDF0CF; color: #7A5300; }
.chip--png { background: #DFF2E7; color: #1D6B42; }
.arch__list { display: grid; gap: 4px; font-size: 14px; color: var(--steel); }
.arch__list span::before { content: ''; display: inline-block; width: 6px; height: 6px; background: var(--tape); margin: 0 8px 2px 0; vertical-align: middle; }
.arch__list .arch__more::before { background: var(--line); }
.tile__cell {
  display: inline-block; font: 700 15px/1 var(--f-display); letter-spacing: .02em; background: var(--tape); color: var(--tape-ink);
  padding: 7px 10px 6px; border-radius: 2px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12);
}
.tile--muted .tile__cell { background: var(--line); }
.tile__status { font-size: 14px; color: var(--steel); }
.tile__name { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--f-display); letter-spacing: -0.02em; }
.tile--wms2 .tile__name { font-size: clamp(40px, 5.4vw, 72px); letter-spacing: -0.04em; }
.tile__lead { font-size: 15px; line-height: 1.5; max-width: 36em; }
.tile--wms2 .tile__lead { font-size: clamp(17px, 1.5vw, 20px); }
.tile__stack { font-size: 13px; color: var(--steel); }
.tile__more { align-self: flex-start; margin-top: auto; font-weight: 600; font-size: 15px; border-bottom: 2px solid var(--line); padding-bottom: 2px; transition: border-color .15s; }
.tile__archive + .tile__more { margin-top: 8px; }
.tile__archive { margin-top: auto; }
/* Десктоп: вся сетка продуктов помещается в один экран ноутбука (~900 px по высоте) */
@media (min-width: 1001px) {
  #products { padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(48px, 6vw, 80px); }
  #products .section__head { margin-bottom: 20px; }
  #products .section__head h2 { font-size: clamp(30px, 3.2vw, 44px); }
  .rack { grid-auto-rows: auto; gap: 10px; padding: 10px; }
  .tile { padding: 14px 18px 16px; gap: 6px; }
  .tile--wms2 { padding: 22px 28px 22px; gap: 10px; }
  .tile__status { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .tile__head { flex-wrap: nowrap; }
  .tile__visual { margin: 2px 0; }
  .tile__visual svg { max-height: 56px; }
  .tile--wms2 .tile__visual svg { max-height: 120px; }
  .tile__name { font-size: 24px; }
  .tile--wms2 .tile__name { font-size: clamp(40px, 4.2vw, 58px); }
  .tile__lead { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tile--wms2 .tile__lead { font-size: 17px; -webkit-line-clamp: 3; }
  .tile__hl { margin-top: 4px; gap: 6px; }
  .tile__hl span { padding: 7px 10px; font-size: 13.5px; }
  .tile__archive { padding-top: 8px; gap: 6px; }
  .tile--wms2 .arch__list { display: none; }
  .tile__more { font-size: 14px; }
}
@media (max-width: 1000px) { .rack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile--wms2 { grid-row: span 1; } }
@media (max-width: 600px) { .rack { grid-template-columns: 1fr; } .tile--wms2 { grid-column: span 1; } .rack { grid-auto-rows: auto; } .tile { min-height: 220px; } }
@media (prefers-reduced-motion: reduce) { .tile, .tile:hover { transform: none; transition: none; } }

/* ===== Compare ===== */
.compare { border-top: 2px solid var(--tape); }
.compare__row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); }
.compare__row > span:first-child { font-weight: 600; }
.compare__row > span:nth-child(2) { color: var(--ink-muted); }
.compare__row--head { font-size: 14px; color: var(--ink-muted); padding: 14px 0; }
.compare__row--head > span:first-child { font-weight: 400; }
.compare__row--head > span:last-child { color: var(--tape); font-weight: 600; }
@media (max-width: 700px) {
  .compare__row { grid-template-columns: 1fr 1fr; }
  .compare__row > span:first-child { grid-column: 1 / -1; }
  .compare__row--head > span:first-child { display: none; }
}
.why__sub { font-size: clamp(22px, 2.6vw, 30px); margin: clamp(48px, 6vw, 72px) 0 24px; }
.theses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 40px; }
.theses li { padding: 18px 0 18px 22px; border-left: 4px solid var(--tape); margin-bottom: 18px; color: var(--ink-muted); }
.theses strong { display: block; color: var(--ink-fg); font-weight: 600; margin-bottom: 4px; }
.why__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ===== DevOps ===== */
.devops { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .devops { grid-template-columns: 1fr; } }
.pipeline { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.pipeline::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 4px; background: repeating-linear-gradient(180deg, var(--tape) 0 14px, transparent 14px 22px); }
.pipeline li { counter-increment: step; position: relative; padding: 0 0 26px 62px; }
.pipeline li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: var(--panel); border: 2px solid var(--ink); font: 700 16px var(--f-display);
}
.pipeline li:last-child::before { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
.pipeline b { display: block; font-weight: 600; font-size: 18px; }
.pipeline span { color: var(--steel); font-size: 15px; }
.principles h3 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 20px; }
.principles dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 32px; }
.principles dt { font-weight: 600; padding-top: 16px; border-top: 1px solid var(--line); }
.principles dd { margin: 6px 0 22px; color: var(--steel); font-size: 15px; }
.principles dl > dt:nth-of-type(odd), .principles dl > dd:nth-of-type(odd) { grid-column: 1; }
.principles dl > dt:nth-of-type(even), .principles dl > dd:nth-of-type(even) { grid-column: 2; }
@media (max-width: 640px) { .principles dl > * { grid-column: 1 !important; } }
.principles dl { grid-auto-flow: dense; }
.devops__facts { margin-top: clamp(40px, 6vw, 64px); display: flex; flex-wrap: wrap; gap: 12px; }
.devops__facts span { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.devops__facts span:first-child { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); font-weight: 600; }

/* ===== Team ===== */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .team { grid-template-columns: 1fr; } }
.person { background: var(--panel); border-radius: 6px; padding: 28px; border-top: 6px solid var(--tape); }
.person__photo { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin-bottom: 22px; background: var(--floor-2); box-shadow: 0 0 0 4px var(--panel), 0 0 0 7px var(--tape); }
.person__mono { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ink); color: var(--floor); font: 700 22px var(--f-display); margin-bottom: 22px; }
.person h3 { font-size: 22px; }
.person__role { font-weight: 600; margin: 6px 0 12px; }
.person p:not(.person__role) { color: var(--steel); font-size: 15px; }

/* ===== Footer ===== */
.foot { padding: 36px 0; border-top: 1px solid var(--line); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; color: var(--steel); font-size: 15px; }

/* ===== Drawer ===== */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(640px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--panel); color: var(--ink); box-shadow: -20px 0 60px rgba(10, 14, 20, .25);
}
.drawer::backdrop { background: rgba(15, 19, 24, .55); }
.drawer[open] { animation: slide .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer__inner { position: relative; height: 100%; overflow-y: auto; padding: clamp(24px, 4vw, 44px); padding-top: 28px; }
.drawer__close { position: sticky; top: 0; float: right; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; }
.drawer__close:hover { background: var(--floor-2); }
.d-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.d-status { color: var(--steel); font-size: 15px; }
.d-title { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 18px; }
.d-about { font-size: 17px; }
.d-sub { font-size: 17px; margin: 32px 0 12px; }
.d-features { margin: 0; padding: 0; list-style: none; }
.d-features li { position: relative; padding: 6px 0 6px 22px; border-bottom: 1px solid var(--line); font-size: 15px; }
.d-features li::before { content: ''; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; background: var(--tape); border-radius: 1px; }
.d-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.d-stack li { border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: 14px; }
.d-hint { color: var(--steel); font-size: 14px; margin-bottom: 12px; }
.d-docs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.doc { display: grid; grid-template-columns: 1fr 52px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.doc:hover { border-color: var(--ink); }
.doc__read { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 14px; text-decoration: none; padding: 12px 14px; }
.doc__read:hover .doc__title { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.doc__dl { display: grid; place-items: center; border-left: 1px solid var(--line); color: var(--steel); }
.doc__dl:hover { background: var(--tape); color: var(--tape-ink); }
.doc__ext { font: 700 11px/1 var(--f-display); border-radius: 3px; padding: 6px 0; text-align: center; }
.doc__title { font-size: 15px; font-weight: 500; }
.doc__size { font-size: 13px; color: var(--steel); white-space: nowrap; }
.d-empty { color: var(--steel); }
@media (max-width: 600px) {
  .drawer { width: 100vw; }
  .doc__read { grid-template-columns: 46px 1fr; }
  .doc__size { grid-column: 2; }
}

/* ===== Большие мониторы: сетка расширяется, а не плавает узкой колонкой по центру ===== */
@media (min-width: 1600px) { :root { --wrap: 1440px; } }
@media (min-width: 2200px) { :root { --wrap: 1760px; --body-size: 18px; } }
@media (min-width: 2200px) and (min-height: 1100px) {
  .tile__visual svg { max-height: 80px; }
  .tile--wms2 .tile__visual svg { max-height: 170px; }
}

/* ===== Шапка: телефон и кнопка заявки ===== */
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.top__cta { display: flex; align-items: center; gap: 16px; flex: none; }
.top__phone { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.top__phone:hover { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 2px; }
@media (max-width: 1400px) { .top__phone { display: none; } }
/* в длинном меню главной телефону места нет до широких экранов */
@media (max-width: 1599px) { .top__row:has(.nav a:nth-child(7)) .top__phone { display: none; } }
@media (max-width: 1200px) { .nav a[href="#devops"], .nav a[href="#team"] { display: none; } }
/* Мобильное меню: до 900 px пункты уходят под кнопку-бургер (nav.js). */
.nav__phone, .nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    padding: 8px 16px 20px; background: var(--floor); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgb(0 0 0 / .25); max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .top.is-open .nav { display: flex; }
  .top.is-open .nav a { display: block; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:hover, .nav a.is-active { border-color: var(--line); box-shadow: inset 4px 0 0 var(--tape); padding-left: 12px; }
  .nav__phone { font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 0 !important; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 48px; margin-right: -6px;
    background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: 4px;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: currentColor; transition: transform .2s, background-color .2s;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--tape); outline-offset: 2px; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) { .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: none; } }
@media (max-width: 480px) { .logo { gap: 8px; } .logo__mark { height: 17px; } }
@media (max-width: 400px) { .logo { font-size: 18px; } }
@media (max-width: 480px) { .top__row { gap: 8px; } .top__cta { gap: 4px; } .top__cta .btn--sm { padding: 0 12px; font-size: 14px; } }
@media (max-width: 360px) { .logo { font-size: 18px; gap: 8px; } .top__cta .btn--sm { padding: 0 10px; font-size: 13px; } }
@media (max-width: 359px) { .top__cta .btn--sm { display: none; } }
@media (max-width: 380px) { .top__cta .btn--sm { padding: 0 12px; font-size: 14px; } }

/* ===== Hero: короткие факты ===== */
.trust { list-style: none; margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 20px; }
.trust li { display: grid; gap: 2px; min-width: 0; }
.trust b { font: 700 clamp(17px, 4.4cqi, 26px)/1.1 var(--f-display); letter-spacing: -0.02em; white-space: nowrap; }
.trust span { font-size: 13px; line-height: 1.35; color: var(--steel); }
@container (max-width: 400px) { .trust { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 40px; } }

/* ===== Сервис: поддержка ===== */
.support { margin-top: clamp(40px, 5vw, 64px);
}
.support--top { margin-top: 0; }
.support { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
.support h3, .launch__sub { font-size: clamp(22px, 2.4vw, 28px); }
.support__text p { margin-top: 14px; color: var(--steel); }
.lines { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.lines li { background: var(--panel); border-radius: 6px; padding: 18px 20px; border-top: 4px solid var(--tape); display: grid; gap: 6px; align-content: start; }
.lines b { font: 700 16px var(--f-display); }
.lines span { font-size: 15px; color: var(--steel); }
@media (max-width: 900px) { .support { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .lines { grid-template-columns: 1fr; } }

.launch__sub { margin: clamp(48px, 6vw, 72px) 0 20px; }
.sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0 32px; }
.sectors li { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sectors b { font-weight: 600; }
.sectors span { font-size: 15px; color: var(--steel); }

.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.partners__list li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 15px; }
.partners__list li:first-child { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); font-weight: 600; }
.partners__note { margin-top: 16px; color: var(--steel); font-size: 15px; }

/* ===== Команда: почта ===== */
.person__mail { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 500; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ===== Контакты и заявка ===== */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.03em; }
.contact__lead { margin-top: 20px; color: var(--ink-muted); max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); }
.contact__list { margin: 36px 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 28px; }
.contact__list dt { color: var(--ink-muted); font-size: 15px; padding-top: 2px; }
.contact__list dd { margin: 0; }
.contact__list a { color: var(--ink-fg); font-weight: 600; text-decoration-color: var(--tape); text-underline-offset: 3px; }
@media (max-width: 480px) { .contact__list { grid-template-columns: 1fr; gap: 4px; } .contact__list dd { margin-bottom: 12px; } }

.lead { background: var(--panel); color: var(--ink); border-radius: 8px; padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; border-top: 6px solid var(--tape); }
.lead h3 { font-size: 22px; margin-bottom: 4px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .lead__row { grid-template-columns: 1fr; } }
.lead__field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.lead__field span { color: var(--steel); }
.lead input, .lead select, .lead textarea {
  width: 100%; font: 400 16px/1.4 var(--f-text); color: var(--ink); background: var(--floor);
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px; min-height: 46px;
}
.lead textarea { resize: vertical; min-height: 84px; }
.lead input:focus, .lead select:focus, .lead textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tape) 55%, transparent); }
.lead [aria-invalid="true"] { border-color: #C0392B; }
.lead__err { color: #C0392B; font-size: 14px; font-weight: 500; }
.lead__send { justify-self: start; }
.lead__note { font-size: 13px; color: var(--steel); }

/* ===== Панель продукта: призыв ===== */
.d-cta { margin-top: 28px; padding: 20px; background: var(--floor); border-radius: 6px; border-left: 4px solid var(--tape); display: grid; gap: 12px; }
.d-cta p { font-size: 15px; }
.d-cta .btn { justify-self: start; }
.d-cta__link { font-weight: 600; font-size: 15px; text-decoration-color: var(--tape); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.foot__row p a { text-decoration-color: var(--line); }

/* ===== Заявка: согласие, ловушка для ботов, результат отправки ===== */
.lead__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--steel); cursor: pointer; }
.lead__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.lead__consent input[aria-invalid="true"] { outline: 2px solid #C0392B; outline-offset: 2px; }
.lead__consent a { color: inherit; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead { position: relative; }
.lead__result:empty { display: none; }
.lead__result { font-size: 15px; line-height: 1.5; padding: 14px 16px; border-radius: 4px; background: var(--floor-2); }
.lead__result:focus { outline: none; }
.lead__result--ok { border-left: 4px solid #2E8B57; }
.lead__result--fail { border-left: 4px solid #C0392B; }
.lead__result p { margin: 0 0 12px; }
.lead__fallback { display: flex; flex-wrap: wrap; gap: 10px; }
.lead.is-sent > :not(.lead__result):not(h3) { display: none; }
