/* ЗОРКО — публичный сайт. Вёрстка по макету Figma, страница «07 Сайт». */
@import url(/zk-tokens.css);
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--zk-bg-canvas); color: var(--zk-text-primary); font: 16px/1.5 var(--zk-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; padding: 0; }
img { display: block; max-width: 100%; height: auto; }
svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--zk-text-accent); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--zk-border-accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--zk-text-secondary); }
.small { font-size: 12px; line-height: 1.4; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--zk-border-strong); border-radius: 6px; background: var(--zk-bg-raised); color: var(--zk-text-primary); font: 500 14px/1.2 var(--zk-font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--zk-border-accent); }
.btn.pri { background: var(--zk-bg-accent); border-color: var(--zk-bg-accent); color: var(--zk-text-on-accent); }
.btn.pri:hover { filter: brightness(.94); }
.btn.lg { padding: 13px 20px; }
.btn.sm { padding: 8px 14px; font-size: 12px; }
.btn.sm svg { width: 16px; height: 16px; }
.btn.link { background: none; border-color: transparent; color: var(--zk-text-accent); }
.btn.link:hover { border-color: transparent; text-decoration: underline; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--zk-bg-canvas); border-bottom: 1px solid var(--zk-border-default); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; flex: none; }
.brand img { height: 26px; width: auto; }
.top-nav, .top-login, .top-join { display: none; }
.top-nav a { color: var(--zk-text-secondary); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-nav a:hover { color: var(--zk-text-primary); }
.menu { margin-left: auto; }
.menu summary { list-style: none; width: 36px; height: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer; border-radius: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--zk-text-primary); }
.menu-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--zk-bg-surface); border-bottom: 1px solid var(--zk-border-default); box-shadow: var(--zk-shadow-overlay); padding: 8px 20px 16px; display: grid; }
.menu-nav a { padding: 12px 0; color: var(--zk-text-primary); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--zk-border-default); }
.menu-nav a:last-child { border-bottom: 0; color: var(--zk-text-accent); }

/* Первый экран */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: -80px; top: -40px; width: 760px; height: 760px; max-width: 100%; background-image: radial-gradient(circle, var(--zk-border-strong) 1.2px, transparent 1.4px); background-size: 28px 28px; opacity: .55; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.hero-text { display: grid; gap: 20px; justify-items: start; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--zk-bg-accent-subtle); color: var(--zk-text-accent); font-size: 12px; font-weight: 500; line-height: 1.2; }
.eyebrow i, .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--zk-status-online); }
h1 { font: 700 clamp(38px, 10.4vw, 72px)/1.08 var(--zk-font-head); letter-spacing: -.01em; overflow-wrap: break-word; }
.lead { font-size: 16px; color: var(--zk-text-secondary); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.cta .btn { flex: 1 1 100%; }
.hero-note { font-size: 12px; line-height: 1.4; color: var(--zk-text-secondary); }

.hero-visual { position: relative; }
.hero-visual .radar, .hero-visual .tile, .hero-visual .alert { display: none; }
.dev-card, .tile, .alert { background: var(--zk-bg-surface); border: 1px solid var(--zk-border-default); }
.dev-card { display: grid; gap: 14px; padding: 20px; border-radius: 12px; max-width: 420px; }
.dev-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dev-head svg { width: 20px; height: 20px; color: var(--zk-text-secondary); }
.dev-head b { flex: 1; min-width: 0; font: 400 14px/1.45 var(--zk-font-mono); }
.badge { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--zk-bg-accent-subtle); color: var(--zk-text-accent); font-size: 12px; font-weight: 500; line-height: 1.2; }
.caption { font-size: 12px; line-height: 1.4; color: var(--zk-text-secondary); }
.caption.accent { color: var(--zk-text-accent); }
.metrics { display: flex; gap: 24px; }
.metrics dt { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--zk-text-secondary); margin-bottom: 2px; }
.metrics dd { font: 400 14px/1.45 var(--zk-font-mono); }
.dev-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-actions .btn { cursor: default; }
.tile { display: grid; gap: 8px; padding: 20px; border-radius: 12px; }
.tile .label { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--zk-text-secondary); }
.tile .data { font: 500 24px/1.2 var(--zk-font-mono); }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 28px; }
.spark i { width: 8px; border-radius: 2px; background: var(--zk-bg-accent); }
.spark i:nth-child(1) { height: 10px; opacity: .52; } .spark i:nth-child(2) { height: 14px; opacity: .58; } .spark i:nth-child(3) { height: 12px; opacity: .55; }
.spark i:nth-child(4) { height: 18px; opacity: .65; } .spark i:nth-child(5) { height: 16px; opacity: .62; } .spark i:nth-child(6) { height: 22px; opacity: .72; }
.spark i:nth-child(7) { height: 20px; opacity: .68; } .spark i:nth-child(8) { height: 24px; opacity: .75; } .spark i:nth-child(9) { height: 21px; opacity: .7; }
.spark i:nth-child(10) { height: 26px; opacity: .78; } .spark i:nth-child(11) { height: 25px; opacity: .77; } .spark i:nth-child(12) { height: 28px; opacity: .82; }
.alert { display: flex; gap: 12px; padding: 16px; border-radius: 10px; border-left: 3px solid var(--zk-status-warning); }
.alert svg { width: 20px; height: 20px; color: var(--zk-status-warning); }
.alert b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; margin-bottom: 4px; }
.alert p { font-size: 14px; line-height: 1.45; color: var(--zk-text-secondary); }

/* Разделы */
.sec { padding: 48px 0; }
.sec.alt { background: var(--zk-bg-surface); }
.sec-title { font: 700 clamp(28px, 7vw, 40px)/1.15 var(--zk-font-head); max-width: 900px; }
.sec-sub { font-size: 16px; color: var(--zk-text-secondary); margin-top: 16px; max-width: 760px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--zk-bg-accent-subtle); color: var(--zk-text-accent); }

.grid { display: grid; gap: 16px; margin-top: 32px; }
.card, .feat, .sec-grid article { display: grid; align-content: start; gap: 14px; padding: 24px; border: 1px solid var(--zk-border-default); border-radius: 16px; background: var(--zk-bg-surface); }
.sec.alt .feat, .sec.alt .g-item { background: var(--zk-bg-canvas); }
.card h3, .feat h3, .sec-grid h3 { font-size: 20px; font-weight: 600; line-height: 1.3; }
.card p, .feat p, .sec-grid p { font-size: 14px; line-height: 1.45; color: var(--zk-text-secondary); }
.feat > div { display: grid; gap: 14px; }

/* Как это работает */
.how-row { display: grid; gap: 32px; margin-top: 32px; }
.steps { list-style: none; display: grid; gap: 28px; }
.step { display: flex; gap: 20px; }
.num { font: 500 24px/1.2 var(--zk-font-mono); color: var(--zk-text-accent); }
.step h3 { font-size: 20px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.step p { color: var(--zk-text-secondary); }
.term { background: var(--zk-bg-terminal); border: 1px solid var(--zk-border-default); border-radius: 12px; overflow: hidden; min-width: 0; align-self: center; }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--zk-bg-raised); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--zk-status-critical); }
.term-bar i:nth-child(2) { background: var(--zk-status-warning); }
.term-bar i:nth-child(3) { background: var(--zk-status-online); }
.term-bar span { margin-left: 8px; font: 400 12px/1.4 var(--zk-font-mono); color: var(--zk-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-body { margin: 0; padding: 20px; font: 400 13px/1.75 var(--zk-font-mono); color: #8fa396; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-body b { font-weight: 400; color: #e8f0ea; }
.term-body em { font-style: normal; color: #38e07b; }
.how-note { margin-top: 28px; font-size: 14px; max-width: 900px; }

/* Сценарии */
.case { display: grid; gap: 24px; margin-top: 40px; }
.case-text { display: grid; gap: 14px; align-content: center; justify-items: start; min-width: 0; }
.case h3 { font: 700 24px/1.2 var(--zk-font-head); }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--zk-bg-accent-subtle); color: var(--zk-text-accent); font-size: 12px; font-weight: 500; line-height: 1.2; }
.tag.bad { background: var(--zk-bg-critical-subtle); color: var(--zk-text-critical); }
.flow { padding-left: 20px; display: grid; gap: 10px; color: var(--zk-text-secondary); font-size: 15px; }
.flow b { color: var(--zk-text-primary); font: 500 14px var(--zk-font-mono); }
.shot { border: 1px solid var(--zk-border-default); border-radius: 12px; overflow: hidden; background: var(--zk-bg-surface); min-width: 0; align-self: center; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--zk-bg-raised); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--zk-border-strong); }
.shot-bar span { margin-left: 8px; font: 400 12px/1.4 var(--zk-font-mono); color: var(--zk-text-secondary); }

/* Галерея */
.gallery { display: grid; gap: 16px; margin-top: 32px; }
.g-item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--zk-border-default); border-radius: 16px; background: var(--zk-bg-surface); }
.g-item a { display: block; background: var(--zk-bg-raised); border-bottom: 1px solid var(--zk-border-default); }
.g-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.g-item figcaption { padding: 14px 16px 16px; font-size: 14px; color: var(--zk-text-secondary); }
.g-item figcaption b { display: block; margin-bottom: 2px; color: var(--zk-text-primary); font-size: 15px; font-weight: 600; }
.g-item.phone a { display: flex; justify-content: center; padding: 18px 0 0; background: var(--zk-bg-accent-subtle); }
.g-item.phone img { width: 58%; max-width: 240px; aspect-ratio: 780 / 1300; border-radius: 22px 22px 0 0; border: 6px solid var(--zk-border-strong); border-bottom: 0; }

/* Призыв и документация */
.cta-card { position: relative; overflow: hidden; display: grid; gap: 20px; justify-items: center; text-align: center; padding: 48px 20px; border: 1px solid var(--zk-border-default); border-radius: 24px; background: var(--zk-bg-surface); }
.cta-card > :not(.radar) { position: relative; }
.cta-card .radar { position: absolute; width: 420px; left: 50%; top: -60px; margin-left: -210px; opacity: .5; pointer-events: none; }
.cta-card h2 { font: 700 clamp(32px, 8vw, 56px)/1.1 var(--zk-font-head); letter-spacing: -.01em; }
.cta-card p { max-width: 620px; font-size: 16px; color: var(--zk-text-secondary); }
.cta-card .cta { justify-content: center; }
.docs { display: grid; gap: 16px; margin-top: 16px; }
.doc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--zk-border-default); border-radius: 16px; background: var(--zk-bg-surface); color: var(--zk-text-primary); text-decoration: none; }
.doc:hover { border-color: var(--zk-border-accent); }
.doc b { display: block; font-weight: 600; }
.doc small { display: block; color: var(--zk-text-secondary); font-size: 14px; }

/* Заявка */
.join { display: grid; gap: 28px; }
.join h2 { font: 700 clamp(28px, 7vw, 40px)/1.15 var(--zk-font-head); margin-bottom: 16px; }
.join-text p { color: var(--zk-text-secondary); margin-bottom: 12px; }
.join-form { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--zk-border-default); border-radius: 16px; background: var(--zk-bg-canvas); min-width: 0; }
.join-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.join-form input[type=email], .join-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--zk-border-strong); border-radius: 6px; background: var(--zk-bg-surface); color: inherit; font: 400 15px/1.45 var(--zk-font); }
.join-form textarea { resize: vertical; }
.join-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.join-form .check input { margin: 4px 0 0; accent-color: var(--zk-status-online); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.join-status { font-size: 14px; min-height: 1.45em; color: var(--zk-text-secondary); }
.join-status.ok { color: var(--zk-text-accent); }
.join-status.err { color: var(--zk-text-critical); }

/* Подвал */
.foot { border-top: 1px solid var(--zk-border-default); padding: 32px 0; }
.foot-in { display: grid; gap: 28px; }
.foot-site { margin-top: 16px; font: 400 14px/1.45 var(--zk-font-mono); color: var(--zk-text-accent); }
.foot-copy { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--zk-text-secondary); }
.foot-col { display: grid; gap: 12px; align-content: start; }
.foot-col b { font-size: 14px; font-weight: 500; }
.foot-col a { font-size: 14px; color: var(--zk-text-secondary); text-decoration: none; }
.foot-col a:hover { color: var(--zk-text-primary); }

@media (min-width: 640px) {
  .wrap { padding: 0 32px; }
  .cta .btn { flex: 0 0 auto; }
  .grid.four, .grid.three, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-wide, .g-item.wide, .g-item.phone, .g-item.full-m { grid-column: 1 / -1; }
  .g-item.wide img { aspect-ratio: 16 / 8; }
  .g-item.phone img { width: 46%; max-width: 230px; aspect-ratio: 780 / 1000; }
  .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-in { grid-template-columns: 1fr auto auto; gap: 64px; }
  .sec { padding: 72px 0; }
  .lead { font-size: 18px; }
}
@media (min-width: 1000px) {
  .wrap { padding: 0 48px; }
  .sec { padding: 96px 0; }
  .grid { gap: 24px; margin-top: 40px; }
  .card, .feat, .sec-grid article { padding: 28px; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feat-wide { flex-direction: row; display: flex; gap: 20px; }
  .feat-wide p { max-width: 62em; }
  .how-row { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; margin-top: 40px; }
  .case { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; margin-top: 64px; }
  .case.rev .case-text { order: 2; }
  .case.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .g-item.wide { grid-column: span 2; grid-row: span 2; }
  .g-item.wide a { flex: 1; position: relative; min-height: 320px; }
  .g-item.wide img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .g-item.wide-2 { grid-column: span 2; }
  .g-item.full-m { grid-column: span 2; }
  .g-item.phone { grid-column: auto; grid-row: span 2; }
  .g-item.phone a { flex: 1; align-items: flex-end; }
  .g-item.phone img { width: 80%; max-width: 300px; aspect-ratio: 780 / 1688; }
  .cta-card { padding: 80px 64px; }
  .cta-card .radar { width: 620px; left: auto; right: -200px; margin: 0; top: -150px; opacity: 1; }
  .join { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .top-in { min-height: 82px; gap: 32px; }
  .brand img { height: 32px; }
  .foot-brand .brand img { height: 29px; }
}
@media (min-width: 1200px) {
  .wrap { padding: 0 80px; }
  .foot-in { grid-template-columns: 1fr 200px 200px; }
}
@media (min-width: 1100px) {
  /* Ноутбуки: настольная шапка поплотнее и компактный радар рядом с текстом. */
  .top-nav { display: flex; gap: 16px; flex: 1; }
  .top-nav a { font-size: 13px; }
  .top-login, .top-join { display: inline-flex; padding: 10px 12px; font-size: 13px; }
  .top-in { gap: 14px; }
  .top .brand img { height: 26px; }
  .menu { display: none; }
  .hero-in { grid-template-columns: minmax(0, 1fr) 440px; gap: 32px; align-items: center; min-height: 640px; padding-top: 48px; padding-bottom: 48px; }
  .hero-text { gap: 24px; }
  h1 { font-size: clamp(56px, 5.3vw, 72px); }
  .hero-visual { height: 495px; }
  .hero-visual .radar { display: block; position: absolute; left: 40px; top: 30px; width: 400px; }
  .dev-card, .hero-visual .tile, .hero-visual .alert { position: absolute; box-shadow: var(--zk-shadow-overlay); max-width: none; }
  .dev-card { left: 0; top: 30px; width: 340px; }
  .hero-visual .tile { display: grid; left: 210px; top: 254px; width: 230px; }
  .hero-visual .alert { display: flex; left: 50px; top: 398px; width: 380px; }
}
@media (min-width: 1320px) {
  .top-nav { gap: 28px; }
  .top-nav a { font-size: 14px; }
  .top-login, .top-join { padding: 12px 16px; font-size: 14px; }
  .top-in { gap: 24px; }
  .top .brand img { height: 32px; }
}
@media (min-width: 1400px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 600px; gap: 40px; min-height: 736px; }
  h1 { font-size: min(72px, calc((100vw - 800px) * .112)); }
  .hero-visual { height: 560px; }
  .hero-visual .radar { left: 60px; top: 10px; width: 540px; }
  .dev-card { top: 70px; width: 360px; }
  .hero-visual .tile { left: 320px; top: 300px; width: 264px; }
  .hero-visual .alert { left: 140px; top: 450px; width: 400px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
