/* IZZZIO Harness — лендинг. Фирменный стиль izzzio.com:
   чернила #121419 + сигнальный красный #FC131B, изометрическая линейная графика,
   шрифты Unbounded (заголовки) · Onest (текст) · JetBrains Mono (метки). */

:root {
  --paper: #f4f5f7;
  --surface: #ffffff;
  --ink: #121419;
  --graphite: #5a606b;
  --mute: #8a909b;
  --rule: #dde0e5;
  --red: #fc131b;
  --red-ink: #d70d14;
  --red-tint: #fff0f0;
  --night: #0e1014;
  --night-2: #171a20;
  --night-rule: #2a2e36;
  --night-text: #c9ccd3;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 24px;
  --section-y: clamp(72px, 10vw, 140px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Типографика */
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.035em; max-width: 20ch; }
.h3 { font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.15; letter-spacing: -0.02em; }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--graphite); max-width: 58ch; }
.label { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); }
.cube { font-family: var(--f-mono); font-size: 0.42em; font-weight: 600; color: var(--red); vertical-align: super; letter-spacing: 0; margin-left: 0.08em; }
.red { color: var(--red); }
.muted { color: var(--graphite); }

/* Кнопки */
.btn {
  --h: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--line { border-color: #4a4f59; color: #fff; background: transparent; }
.btn--line:hover { border-color: #fff; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; text-decoration: none; }
.logo__mark { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo__mark sup { font-family: var(--f-mono); color: var(--red); font-size: 10px; font-weight: 600; margin-left: 1px; }
.logo__product { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--red); border: 1.5px solid var(--red); border-radius: 999px; padding: 2px 9px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--graphite); transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__cta { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pron { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; font-size: 13.5px; color: var(--graphite); margin-bottom: 28px; }
.pron code { white-space: nowrap; flex: none; font-family: var(--f-mono); font-size: 12px; color: var(--red); background: var(--red-tint); padding: 3px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 4.9vw, 66px); }
.hero .lede { margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__art svg { width: 100%; height: auto; }

/* Факты */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 26px 22px; border-left: 1px solid var(--rule); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; line-height: 1.1; }
.facts span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--graphite); }

/* Секции */
.section { padding: var(--section-y) 0; }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head .label { margin-bottom: 18px; display: block; }
.section--night { background: var(--night); color: #fff; }
.section--night .lede, .section--night .muted { color: var(--night-text); }
.section--night .label { color: #8b919c; }

/* Окно продукта */
.window { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 30px 80px -40px rgba(18,20,25,.35); overflow: hidden; }
.window__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--rule); background: #fafafb; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e4e6ea; }
.window__bar span { margin-left: 10px; font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }
.app { display: grid; grid-template-columns: 230px 1fr; min-height: 470px; }
.app__side { background: #f6f6f8; border-right: 1px solid var(--rule); padding: 16px 12px; font-size: 13.5px; }
.app__side .grp { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin: 16px 8px 6px; }
.app__side .it { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: #30343b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__side .it.on { background: #e9eaee; }
.app__side .it.sub { padding-left: 28px; }
.app__side svg { width: 15px; height: 15px; flex: none; stroke: #6b707a; }
.app__side .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: #fff; }
.app__main { padding: 26px clamp(18px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; }
.msg-user { align-self: flex-end; background: #f0f1f4; border-radius: 16px; padding: 10px 14px; font-size: 14.5px; max-width: 80%; }
.steps { font-size: 12.5px; color: var(--mute); font-family: var(--f-mono); }
.msg-bot { font-size: 14.5px; line-height: 1.55; }
.chart-card { border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px 10px; }
.chart-card .t { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.composer { margin-top: auto; border: 1px solid var(--rule); border-radius: 16px; padding: 12px 14px; font-size: 14px; color: var(--mute); display: flex; justify-content: space-between; align-items: center; }
.composer b { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-size: 14px; }

/* Сетка модулей */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { grid-column: span 4; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgba(18,20,25,.3); }
.card--wide { grid-column: span 8; }
.card p { color: var(--graphite); font-size: 15.5px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); display: grid; place-items: center; }
.card .ico svg { width: 22px; height: 22px; stroke: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags li { font-family: var(--f-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; background: #f1f2f5; color: #474c56; }
.card--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--accent p { color: var(--night-text); }
.card--accent .tags li { background: #23262d; color: #c9ccd3; }
.card--accent .ico { background: #2a1416; }

/* Сотрудники */
.emp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.profile { background: var(--night-2); border: 1px solid var(--night-rule); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.profile__top { display: flex; gap: 16px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #5e5ce6; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 22px; }
.profile h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.profile .role { color: #9aa0aa; font-size: 14.5px; }
.profile pre { margin: 20px 0 0; white-space: pre-wrap; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7; color: #d4d7dd; background: #0f1115; border: 1px solid var(--night-rule); border-radius: 14px; padding: 16px 18px; }
.profile .mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile .mods li { font-family: var(--f-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid #3a3f49; color: #c9ccd3; }
.profile .mods li.off { opacity: .45; text-decoration: line-through; }
.levels { display: grid; gap: 12px; margin-top: 30px; }
.levels li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--night-rule); }
.levels b { font-family: var(--f-mono); color: var(--red); font-size: 14px; }
.levels strong { display: block; font-weight: 600; }
.levels span { color: var(--night-text); font-size: 15px; }

/* Список возможностей */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.feats li { padding: 28px 28px 30px 0; border-bottom: 1px solid var(--rule); }
.feats li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--rule); }
.feats h3 { margin-bottom: 10px; }
.feats p { color: var(--graphite); font-size: 15.5px; }
.feats .num { font-family: var(--f-mono); font-size: 12px; color: var(--red); display: block; margin-bottom: 14px; }

/* Стандарты */
.std { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.std ul { display: grid; gap: 4px; }
.std li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 150px 1fr; gap: 16px; }
.std li b { font-family: var(--f-mono); font-size: 13px; color: var(--red); padding-top: 2px; }
.std li span { color: var(--graphite); font-size: 15.5px; }
.code { background: var(--night); color: #d4d7dd; border-radius: var(--radius-lg); padding: 22px 24px; font-family: var(--f-mono); font-size: 13px; line-height: 1.75; overflow-x: auto; white-space: pre; }
.code .c { color: #6c727e; }
.code .k { color: #ff7a7f; }
.code .s { color: #a5e3b6; }

/* Шаги */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps-row li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.steps-row li::before { counter-increment: s; content: "0" counter(s); font-family: var(--f-mono); font-size: 13px; color: var(--red); display: block; margin-bottom: 30px; }
.steps-row h3 { margin-bottom: 10px; }
.steps-row p { color: var(--graphite); font-size: 15px; }

/* Форма */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: #b9bdc5; font-weight: 500; }
.field input, .field textarea { width: 100%; background: var(--night-2); border: 1.5px solid var(--night-rule); border-radius: 12px; padding: 13px 15px; color: #fff; font-size: 16px; transition: border-color .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6c727e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { cursor: pointer; }
.checks input { position: absolute; opacity: 0; pointer-events: none; }
.checks span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--night-rule); border-radius: 999px; font-size: 14px; color: #c9ccd3; transition: all .2s; }
.checks input:checked + span { border-color: var(--red); color: #fff; background: #2a1416; }
.checks input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form__note { font-size: 12.5px; color: #8b919c; }
.form__status { font-size: 15px; min-height: 1.5em; }
.form__status.ok { color: #6be29b; }
.form__status.err { color: #ff8a8e; }
.contact__points { display: grid; gap: 14px; margin-top: 28px; }
.contact__points li { display: flex; gap: 12px; color: var(--night-text); }
.contact__points li::before { content: "³"; font-family: var(--f-mono); color: var(--red); font-weight: 600; }

/* Подвал */
.footer { background: var(--night); color: #8b919c; border-top: 1px solid var(--night-rule); padding: 36px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer a { color: #c9ccd3; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer nav { display: flex; gap: 22px; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw path, .draw line, .draw polyline, .draw rect { animation: none !important; }
}

/* Анимация линейной графики */
.draw path, .draw line, .draw polyline, .draw rect, .draw polygon { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2.4s ease forwards; }
.draw .late { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Адаптив */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header__cta .btn--ghost { display: none; }
  .card, .card--wide { grid-column: span 6; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .feats li, .feats li:not(:nth-child(3n+1)) { padding: 24px 24px 26px 0; border-left: 0; }
  .feats li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--rule); }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid, .section__head, .emp, .std, .contact { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 520px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .app { grid-template-columns: 1fr; }
  .app__side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 40px); }
  .pron { font-size: 12.5px; }
  .card, .card--wide { grid-column: span 12; }
  .feats, .steps-row { grid-template-columns: 1fr; }
  .feats li, .feats li:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .std li { grid-template-columns: 1fr; gap: 4px; }
  .header__cta { display: none; }
  .burger { display: block; }
  .site-header.open .nav { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 16px; }
  .site-header.open .nav a { padding: 12px 0; font-size: 17px; }
  .facts li { padding: 20px 14px 20px 0; }
}
