/* Мрія 4.5.0 — токени й стилі. Значення описані в DESIGN.md. */

:root {
  --bg: #0a0c0d;
  --surface: #111416;
  --surface-2: #181c1f;
  --line: #272d31;
  --line-soft: #1b2023;
  --text: #eceee9;
  --muted: #9ba3a7;
  --accent: #ffd400;
  --accent-ink: #0a0c0d;
  --target: #ff6a3d;
  --sky: #0b1319;
  --ground: #12130d;

  --f-display: 'Sofia Sans Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 72px; --s-9: 112px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
.defs { position: absolute; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: var(--s-2) var(--s-4); font-weight: 700;
}
.skip:focus { top: var(--s-4); }

/* ---------- Типографіка ---------- */

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.005em; }
h1 { font-size: clamp(46px, 7.4vw, 104px); line-height: 0.92; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 0.98; text-wrap: balance; }
h3 { font-size: 24px; line-height: 1.1; font-weight: 600; letter-spacing: 0.02em; }

.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 19px); max-width: 62ch; }

.kicker, .tag, .foot, .hint, .stats dt, .version__role span, .kit__n, figcaption, .contacts dt {
  font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.kicker { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.kicker span { color: var(--accent-ink); background: var(--accent); padding: 2px 6px; }
.tag { color: var(--accent); margin-bottom: var(--s-3); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 52px; padding: 0 var(--s-5);
  font: 700 16px/1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #ffe14d; }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 var(--s-4); font-size: 14px; }

.link { color: var(--accent); text-underline-offset: 4px; }

/* ---------- Шапка ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 12, 13, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: 0.06em; }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav ul { display: flex; gap: var(--s-5); }
.nav ul a { font-size: 15px; text-decoration: none; color: var(--muted); padding: var(--s-2) 0; }
.nav ul a:hover { color: var(--text); }
.lang { font: 500 13px/1 var(--f-mono); text-decoration: none; color: var(--muted); padding: var(--s-3) var(--s-2); letter-spacing: 0.06em; }
.lang b { color: var(--accent); font-weight: 500; }
.lang:hover { color: var(--text); }
.menu-btn { display: none; }

@media (max-width: 1020px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: var(--s-3);
    min-height: 44px; padding: 0 var(--s-3);
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); font: 500 13px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  }
  .menu-btn__icon, .menu-btn__icon::before {
    display: block; width: 18px; height: 2px; background: var(--accent); content: '';
  }
  .menu-btn__icon { position: relative; top: -3px; }
  .menu-btn__icon::before { position: absolute; top: 6px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s-4);
    padding: var(--s-4) var(--gutter) var(--s-5);
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: var(--s-3) 0; font-size: 18px; color: var(--text); border-bottom: 1px solid var(--line-soft); }
  .lang { padding-inline: 0; }
}

/* ---------- Перший екран ---------- */

.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(32px, 6vw, 72px);
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px) 0 0 / 64px 100%,
    linear-gradient(180deg, var(--sky) 0%, var(--bg) 78%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-7); align-items: center; }
.hero__copy .lead { margin-top: var(--s-5); color: #c4cacb; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero__figure { min-width: 0; }
.hero-svg { width: 100%; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(32px, 5vw, 64px);
  border-top: 1px solid var(--line); background: rgba(10, 12, 13, 0.6);
}
.stats > div { display: flex; flex-direction: column; padding: var(--s-5) var(--s-5) var(--s-6) 0; }
.stats > div + div { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.stats dd { font: 500 15px/1 var(--f-mono); color: var(--muted); }
.stats dd b { font: 800 clamp(40px, 5vw, 64px)/1 var(--f-display); color: var(--text); margin-right: 2px; }
.stats dt { margin-top: var(--s-3); max-width: 24ch; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__figure { max-width: 460px; margin-inline: auto; width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div { padding: var(--s-4) var(--s-4) var(--s-5) 0; }
  .stats > div + div { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(even) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
  .stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .actions .btn { width: 100%; }
}

/* ---------- Креслення ---------- */

.d-body { fill: var(--surface-2); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.d-line { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: 0.55; vector-effect: non-scaling-stroke; }
.drone { color: var(--text); }
.drone--hero { color: #d9dcd6; }
.t-body { fill: #1d1512; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.t-line { fill: none; stroke: currentColor; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.target { color: var(--target); }
.reticle { fill: none; stroke: var(--accent); stroke-width: 1.4; color: var(--accent); }
.reticle circle, .reticle path { vector-effect: non-scaling-stroke; }

.bp-frame path, .bp-dim path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.bp-axis path, .bp-axis circle { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 6; }
.bp-text text { font: 500 11px var(--f-mono); letter-spacing: 0.1em; fill: var(--muted); }

.pins circle { fill: var(--accent); }
.pins text { font: 500 15px var(--f-mono); fill: var(--accent-ink); text-anchor: middle; }

.m-sky { fill: var(--sky); }
.m-ground { fill: var(--ground); }
.m-grid path { fill: none; stroke: var(--line-soft); stroke-width: 1; }
.m-horizon { stroke: #4a4f3c; stroke-width: 2; fill: none; }
.m-gcs path { fill: none; stroke: var(--text); stroke-width: 2; }
.m-gcs .m-wave { stroke: var(--accent); }
.m-gcs text, .m-ruler text, .m-label, .m-target { font: 500 15px var(--f-mono); letter-spacing: 0.08em; fill: var(--muted); }
.m-label { fill: var(--accent); }
.m-target { fill: var(--target); font-size: 13px; }
.m-ruler path { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.m-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 8 8; animation: fly 1.6s linear infinite; }
.sine-square { fill: rgba(255, 212, 0, 0.08); stroke: var(--accent); stroke-width: 2; }
@keyframes fly { to { stroke-dashoffset: -32; } }

/* ---------- Секції ---------- */

.sec { padding-block: clamp(64px, 9vw, var(--s-9)); border-top: 1px solid var(--line-soft); }
.sec--sky { background: linear-gradient(180deg, var(--bg), var(--sky)); }
.sec--ground { background: var(--ground); }
.sec--panel { background: var(--surface); }
.sec-head { margin-bottom: var(--s-7); }
.sec-head .lead { margin-top: var(--s-4); }

/* Схема застосування */
.mission { border: 1px solid var(--line); background: var(--sky); }
.mission__scroll { overflow-x: auto; }
.mission-svg { width: 100%; min-width: 680px; }
.mission figcaption { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.mission__hint { display: none; color: var(--accent); }
@media (max-width: 720px) { .mission__hint { display: inline; } .mission figcaption { flex-direction: column; gap: var(--s-1); } }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.role { padding: var(--s-5) var(--s-5) 0 0; }
.role + .role { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.role p:last-child { color: var(--muted); margin-top: var(--s-3); }
@media (max-width: 820px) {
  .roles { grid-template-columns: 1fr; }
  .role, .role + .role { padding: var(--s-5) 0; border-left: 0; }
  .role + .role { border-top: 1px solid var(--line); }
}

/* Цінність */
.value { background: var(--accent); color: var(--accent-ink); padding-block: clamp(56px, 7vw, 96px); }
.value__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); }
.value .lead { color: #2b2a1c; margin-top: var(--s-4); font-weight: 500; }
.value__list li { padding-block: var(--s-4); border-top: 2px solid var(--accent-ink); display: grid; grid-template-columns: 130px 1fr; gap: var(--s-4); align-items: baseline; }
.value__list li:last-child { border-bottom: 2px solid var(--accent-ink); }
.value__list p { font-weight: 500; }
@media (max-width: 820px) {
  .value__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .value__list li { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* Дві колонки зі схемою */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split__figure { border: 1px solid var(--line); background: var(--surface); padding: var(--s-4); min-width: 0; }
.split__figure svg { width: 100%; }
.split .sec-head { margin-bottom: var(--s-6); }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

.points { counter-reset: p; border-top: 1px solid var(--line); }
.points li { counter-increment: p; position: relative; padding: var(--s-4) 0 var(--s-4) 52px; border-bottom: 1px solid var(--line); }
.points li::before {
  content: counter(p); position: absolute; left: 0; top: 18px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  font: 500 15px/30px var(--f-mono); text-align: center;
}
.points p { color: var(--muted); margin-top: var(--s-1); }
.foot { margin-top: var(--s-4); text-transform: none; letter-spacing: 0.02em; }

/* Версії */
.versions { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--bg); }
.version { position: relative; padding: var(--s-5); }
.version + .version { border-left: 1px solid var(--line); }
.version__code { font: 800 64px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--accent); margin-bottom: var(--s-5); }
.version__role { margin-top: var(--s-3); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); color: var(--text); min-height: 5.4em; }
.version__role span { display: block; margin-bottom: var(--s-1); }
.version ul { margin-top: var(--s-4); }
.version li { position: relative; padding: 6px 0 6px 18px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.version li::before { content: ''; position: absolute; left: 0; top: 15px; width: 8px; height: 2px; background: var(--accent); }
@media (max-width: 1020px) {
  .versions { grid-template-columns: repeat(2, 1fr); }
  .version:nth-child(odd) { border-left: 0; }
  .version:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .versions { grid-template-columns: 1fr; }
  .version + .version { border-left: 0; border-top: 1px solid var(--line); }
  .version__role { min-height: 0; }
  .version__code { font-size: 48px; margin-bottom: var(--s-3); }
}

/* Постачання */
.delivery { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-7); align-items: start; }
.kit { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.kit li { padding: var(--s-5) var(--s-5) var(--s-5) 0; border-bottom: 1px solid var(--line); }
.kit li:nth-child(even) { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.kit__n { display: block; color: var(--accent); margin-bottom: var(--s-3); }
.kit p { color: var(--muted); margin-top: var(--s-2); }
.school { border: 1px solid var(--accent); padding: var(--s-6); background: var(--surface); }
.school p:not(.tag) { color: var(--muted); margin: var(--s-3) 0 var(--s-5); }
@media (max-width: 900px) { .delivery { grid-template-columns: 1fr; gap: var(--s-6); } }
@media (max-width: 560px) {
  .kit { grid-template-columns: 1fr; }
  .kit li, .kit li:nth-child(even) { padding: var(--s-4) 0; border-left: 0; }
  .school { padding: var(--s-5); }
}

/* Відео */
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.videos a { display: block; text-decoration: none; }
.videos__thumb { position: relative; display: block; border: 1px solid var(--line); overflow: hidden; }
.videos__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: grayscale(0.4) contrast(1.05); transition: filter .2s; }
.videos a:hover img { filter: none; }
.videos__play {
  position: absolute; left: var(--s-3); bottom: var(--s-3); width: 40px; height: 40px; background: var(--accent);
}
.videos__play::after {
  content: ''; position: absolute; left: 15px; top: 12px; width: 12px; height: 16px;
  background: var(--accent-ink); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.videos__title { display: block; margin-top: var(--s-3); font-weight: 700; line-height: 1.35; }
.videos__cta { display: block; margin-top: var(--s-2); font: 500 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.more { margin-top: var(--s-7); }
@media (max-width: 1020px) { .videos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .videos { grid-template-columns: 1fr; } }

/* Контакти */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contacts > div { display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); padding-block: var(--s-4); border-top: 1px solid var(--line); align-items: baseline; }
.contacts > div:last-child { border-bottom: 1px solid var(--line); }
.contacts dd a { text-decoration: none; font-weight: 700; }
.contacts dd a:hover { color: var(--accent); }
.social { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.social a { font-weight: 500 !important; text-decoration: underline !important; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); background: var(--surface); }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: var(--s-2); }
.field label i { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 14px var(--s-4);
  font: 400 17px/1.4 var(--f-body); color: var(--text);
  background: var(--bg); border: 1px solid #454d52; border-radius: var(--radius);
}
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid='true'] { border-color: var(--target); }
.error { color: #ff8f6b; font-size: 14px; margin-top: var(--s-2); }
.hint { margin-top: var(--s-3); text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .contacts > div { grid-template-columns: 1fr; gap: var(--s-1); }
}

/* Підвал */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--s-6); font-size: 14px; color: var(--muted); }
.site-footer__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-6); }
.site-footer .brand { font-size: 18px; color: var(--text); }
.site-footer a { text-underline-offset: 4px; }
.site-footer a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-path { animation: none; }
  * { transition: none !important; }
}

/* ---------- Три завдання (додано) ---------- */

.t-fine { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0.6; vector-effect: non-scaling-stroke; }
.m-course { fill: none; stroke: var(--target); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: 0.7; }
.m-loiter { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.m-note { font: 500 13px var(--f-mono); letter-spacing: 0.08em; fill: var(--muted); }
.recon-cone { fill: rgba(255, 212, 0, 0.07); stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 5 6; }
.recon-frame { fill: none; stroke: var(--accent); stroke-width: 2; }
.recon-svg .m-label, .recon-svg .m-note { font-size: 14px; }

.trio { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.trio a {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-3);
  border: 1px solid var(--line); text-decoration: none;
  font: 500 13px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.trio a span { color: var(--accent); }
.trio a:hover { border-color: var(--accent); color: var(--accent); }
.hero__copy .trio + .lead { margin-top: var(--s-5); }

.stats--sec { margin-top: 0; border: 1px solid var(--line); border-top: 0; background: var(--bg); }
.stats--sec > div { padding-left: var(--s-5); }
.stats--sec dd b { font-size: clamp(34px, 4vw, 52px); }
.stats dd b { text-transform: uppercase; }
@media (max-width: 900px) {
  .stats--sec > div, .stats--sec > div + div, .stats--sec > div:nth-child(even) { padding-left: var(--s-4); }
}

.split--sub { margin-top: var(--s-7); }
.sub-h { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: var(--s-5); }

.patrol {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-6); align-items: center;
  margin-top: var(--s-7); padding: var(--s-5); border: 1px solid var(--line); background: rgba(10, 12, 13, 0.5);
}
.patrol ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.patrol li { position: relative; padding-left: 18px; color: var(--text); }
.patrol li::before { content: ''; position: absolute; left: 0; top: 13px; width: 8px; height: 2px; background: var(--accent); }
@media (max-width: 820px) {
  .patrol { grid-template-columns: 1fr; gap: var(--s-4); }
  .patrol ul { grid-template-columns: 1fr; gap: var(--s-2); }
}

@media (min-width: 901px) { .split--flip .split__figure { order: -1; } }

.photo { filter: saturate(0.9) contrast(1.05); }

/* ---------- Правки після огляду (додано) ---------- */

.m-link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 2 6; opacity: 0.85; }
.pins--lg circle { r: 24px; }
.pins--lg text { font-size: 24px; transform: translateY(3px); }

/* Клітинки-слова в рядку характеристик */
.stats .is-word dd b { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; letter-spacing: 0.01em; }
.stats--sec dt { max-width: 34ch; text-transform: none; letter-spacing: 0.02em; font-size: 13px; }
.stats--grid > div:nth-child(n + 5) { border-top: 1px solid var(--line); }
.stats--grid > div:nth-child(5) { border-left: 0; }
@media (max-width: 900px) {
  .stats--grid > div:nth-child(5) { border-left: 0; }
}
@media (max-width: 520px) {
  .stats--grid { grid-template-columns: 1fr; }
  .stats--grid > div, .stats--grid > div:nth-child(even) { border-left: 0; padding-left: var(--s-4); }
  .stats--grid > div + div { border-top: 1px solid var(--line); }
}
.stats--pair { grid-template-columns: repeat(2, 1fr); margin-top: 0; background: none; }

/* Розвідка: карта маршруту */
.split--top { align-items: start; }
.map { border: 1px solid var(--line); background: var(--surface); }
.map img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 62%; }
.map figcaption { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); color: var(--accent); }
.route { margin-top: var(--s-5); color: var(--muted); max-width: 62ch; }

/* Школа пілотів */
.photo { border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.photo img { width: 100%; height: auto; filter: grayscale(0.35) contrast(1.04); }

/* Відео на сайті */
.videos figure { margin: 0; }
.videos video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); object-fit: cover; }
.videos figcaption { margin-top: var(--s-3); font: 700 16px/1.35 var(--f-body); letter-spacing: 0; text-transform: none; color: var(--text); }

.stats dd i { font-style: normal; margin-right: 2px; }

.nav ul a, .lang { white-space: nowrap; }

/* Інтерцептор: виноски; тьмяніший ретранслятор; три цифри школи */
.m-callout path { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.m-callout circle { fill: var(--accent); }
.mission-svg image.dim { opacity: 0.72; }
.stats--trio { grid-template-columns: repeat(3, 1fr); margin-top: 0; background: none; }
.stats--trio > div { padding-right: var(--s-3); }
@media (max-width: 900px) {
  .stats--trio > div:nth-child(3) { border-left: 1px solid var(--line); padding-left: var(--s-4); border-top: 0; }
  .stats--trio > div:nth-child(2) { padding-left: var(--s-4); border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stats--trio { grid-template-columns: 1fr; }
  .stats--trio > div, .stats--trio > div:nth-child(2), .stats--trio > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stats--trio > div:first-child { border-top: 0; }
}

/* Інтерцептор: на телефоні — фото на всю ширину замість широкої схеми */
.mission--plane .plane-wide svg { width: 100%; display: block; }
.plane-narrow { display: none; }
@media (max-width: 600px) {
  .mission--plane .plane-wide { display: none; }
  .plane-narrow { display: block; padding: var(--s-4); }
  .plane-narrow img { width: 100%; height: auto; }
  .plane-narrow ol { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
  .plane-narrow li { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.08em; color: var(--accent); padding-left: 16px; position: relative; }
  .plane-narrow li::before { content: ''; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
}

/* ---------- Правки 15.11: майданчики, НАТО, РЕБ, Google Play, «Про компанію» ---------- */
.bar__left { display: flex; align-items: center; gap: var(--s-5); min-width: 0; }
.markets { display: flex; align-items: center; gap: var(--s-3); }
.market { display: block; line-height: 0; }
.market img { height: 30px; width: auto; }
a.market:hover img { opacity: 0.85; }
@media (max-width: 520px) {
  .brand span { display: none; }
  .bar__left { gap: var(--s-3); }
  .market img { height: 26px; }
}

/* П'ять клітинок на першому екрані */
.hero .stats { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .hero .stats { grid-template-columns: repeat(2, 1fr); }
  .hero .stats > div:nth-child(5) { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
.hero--about .stats { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .hero--about .stats { grid-template-columns: repeat(2, 1fr); } }

/* Схема «Земля» */
.m-ew { fill: rgba(255, 106, 61, 0.06); }
.m-ew-edge { stroke: var(--target); stroke-width: 1; stroke-dasharray: 3 5; opacity: 0.6; }
.m-alt { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 5; }
.m-alt-tick { stroke: var(--muted); stroke-width: 1; }
.m-crew .m-note { font-size: 12px; }
.mission figcaption.only-hint { display: none; }
@media (max-width: 720px) { .mission figcaption.only-hint { display: flex; } }

/* Google Play */
.play-badge {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 52px; padding: 0 var(--s-5) 0 var(--s-4);
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid #5f6368; border-radius: 8px;
}
.play-badge:hover { border-color: var(--accent); }
.play-badge span { display: flex; flex-direction: column; font: 700 20px/1 var(--f-body); letter-spacing: 0.01em; }
.play-badge small { font: 500 10px/1.2 var(--f-body); letter-spacing: 0.06em; margin-bottom: 3px; }

/* «Про компанію» */
.hero--about { padding-bottom: 0; }
.hero--about h1 { margin-bottom: var(--s-5); }
.hero--about .lead { color: #c4cacb; }
.h2-sm { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: var(--s-5); }
.trust { border-top: 1px solid var(--line); }
.trust li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.trust h3 { color: var(--accent); }
.trust p { color: var(--muted); margin-top: var(--s-1); }
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.press__card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.press__shot { display: block; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.press__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
a.press__card:hover .press__shot img { transform: scale(1.03); }
a.press__card:hover .press__title { color: var(--accent); }
.press__outlet { margin-top: var(--s-4); font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.press__title { margin-top: var(--s-2); font-weight: 700; line-height: 1.35; }
.press__cta { margin-top: auto; padding-top: var(--s-3); font: 500 12px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 900px) { .press { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .press { grid-template-columns: 1fr; } .press__shot { aspect-ratio: 4 / 3; } }
.next { border-top: 1px solid var(--line); }
.next li { position: relative; padding: var(--s-4) 0 var(--s-4) 18px; border-bottom: 1px solid var(--line); }
.next li::before { content: ''; position: absolute; left: 0; top: 29px; width: 8px; height: 2px; background: var(--accent); }
.about-cta { align-self: end; }
.nav a[aria-current="page"] { color: var(--accent); }

.brand { white-space: nowrap; }

.bar__left .brand, .markets { flex-shrink: 0; }
.nav ul { gap: var(--s-4); }

.bar__left { margin-right: var(--s-4); }

/* Повне меню на десктопі: на середніх ширинах ущільнюємо шапку, а не ховаємо пункти */
@media (min-width: 1021px) and (max-width: 1520px) {
  .bar { gap: var(--s-3); }
  .bar__left { gap: var(--s-3); margin-right: 0; }
  .brand { font-size: 19px; gap: var(--s-2); }
  .brand img { height: 30px; width: auto; }
  .market img { height: 22px; }
  .nav { gap: var(--s-3); }
  .nav ul { gap: 12px; }
  .nav ul a { font-size: 14px; }
  .lang { padding-inline: 0; }
  .btn--sm { padding: 0 var(--s-3); font-size: 13px; }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  .nav ul { gap: 10px; }
  .nav ul a { font-size: 13px; }
  .bar, .bar__left, .nav { gap: 10px; }
}

/* ---------- Правки 15.11 (друга хвиля) ---------- */
/* Middle Strike: пункти у дві колонки під клітинками */
.points-cols { margin-top: var(--s-7); }
.points-cols .points { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-7); border-top: 0; }
.points-cols .points li:nth-child(-n + 2) { border-top: 1px solid var(--line); }
@media (max-width: 820px) {
  .points-cols .points { grid-template-columns: 1fr; }
  .points-cols .points li:nth-child(2) { border-top: 0; }
}

/* Інтерцептор: пункти ліворуч, літак праворуч */
.split--icpt { align-items: center; margin-bottom: var(--s-7); }
.icpt-figure { border: 1px solid var(--line); background: var(--sky); padding: var(--s-5); min-width: 0; }
.icpt-figure img { width: 100%; height: auto; display: block; }
.icpt-figure figcaption { margin-top: var(--s-3); }
@media (max-width: 900px) { .split--icpt .icpt-figure { order: -1; } }
.stats--top { border-top: 1px solid var(--line); }

/* «Про компанію» на головній */
#about .sec-head .lead + .lead { margin-top: var(--s-3); }
.stats--about { margin-top: 0; background: none; }
.press-h { margin: var(--s-8) 0 var(--s-5); }

/* Знімки статей повністю, з полями, без обрізання */
.press__shot { background: #fff; padding: var(--s-3); }
.press__shot img { object-fit: contain; object-position: center top; }

/* ---------- Єдина стилістика зображень: рамка-приціл як на першому екрані ---------- */
.icpt-figure { border: 0; background: none; padding: 0; }
.sight { position: relative; border: 0 !important; background: none !important; padding: 18px; }
.sight::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  --c: var(--accent); --l: 40px; --w: 2px;
  background:
    linear-gradient(var(--c), var(--c)) left top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right top / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / var(--w) var(--l) no-repeat;
}
.map.sight figcaption { border-top: 0; padding: var(--s-3) 0 0; }

/* Застосунок поруч зі значком Google Play */
.app-row { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-7); flex-wrap: wrap; }
.app-row p { color: var(--muted); max-width: 22ch; line-height: 1.4; }

/* Преса */
.press-lead { margin: calc(var(--s-5) * -1 + 8px) 0 var(--s-6); }
a.press__card:hover .press__shot img { transform: none; }
a.press__card:hover .press__shot { outline: 2px solid var(--accent); outline-offset: 0; }

/* Літак із бланка в шапці й підвалі */
.brand img { height: 36px; width: auto; }
.site-footer .brand img { height: 32px; }

/* Більший відступ між логотипом і значками майданчиків */
.bar__left { gap: 40px; }
@media (min-width: 1021px) and (max-width: 1520px) { .bar__left { gap: 28px; } }
@media (max-width: 520px) { .bar__left { gap: 20px; } }
@media (min-width: 1021px) and (max-width: 1180px) {
  .bar__left { gap: 22px; }
  .nav ul { gap: 7px; }
  .bar, .nav { gap: 8px; }
  .brand { font-size: 18px; }
  .btn--sm { padding: 0 10px; }
  .market img { height: 20px; }
}

/* Перехід з меню: розділ починається одразу під шапкою, без порожнього проміжку */
html { scroll-padding-top: 66px; }
section.sec[id] { scroll-margin-top: calc(28px - clamp(64px, 9vw, 112px)); }

/* ---------- Клітинки ТТХ: слова такого ж розміру, як цифри; підписи на одному рівні ---------- */
.stats > div { container-type: inline-size; }
.stats dd { white-space: nowrap; display: flex; align-items: baseline; min-height: 1em; }
.stats .is-word dd b {
  font-size: min(clamp(40px, 5vw, 64px), 15.5cqi);
  line-height: 1; letter-spacing: 0;
}
.stats--sec .is-word dd b { font-size: min(clamp(34px, 4vw, 52px), 15.5cqi); }
/* висота рядка з великим значенням однакова в усіх клітинках — підписи стають в один рядок */
.stats dd { height: clamp(40px, 5vw, 64px); }
.stats--sec dd { height: clamp(34px, 4vw, 52px); }
.stats dt { margin-top: var(--s-3); }

/* ---------- Політика конфіденційності: темний фон, читабельна колонка ---------- */
.legal { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 112px); }
.legal__wrap { max-width: 760px; }
.legal__back { margin-bottom: var(--s-6); }
.legal__back a { color: var(--muted); text-decoration: none; font: 500 13px var(--f-mono); letter-spacing: 0.06em; }
.legal__back a:hover { color: var(--accent); }
.legal__h1 { font-size: clamp(38px, 5.5vw, 64px); line-height: 1; }
.legal__date { margin-top: var(--s-4); color: var(--muted); font: 500 13px var(--f-mono); letter-spacing: 0.06em; padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.legal__sec { padding-block: var(--s-6); border-bottom: 1px solid var(--line-soft); }
.legal__sec h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; margin-bottom: var(--s-4); }
.legal__sec p { color: #c9cfd0; font-size: 17px; line-height: 1.7; max-width: 68ch; }
.legal__sec p + p { margin-top: var(--s-3); }
.site-footer a[aria-current="page"] { color: var(--accent); }
.stats dd { column-gap: 0.4em; }
.stats dd i { margin-right: 0; }
/* Middle Strike: клітинки зі словами ширші, щоб слова були такого ж розміру, як цифри */
@media (min-width: 901px) {
  #strike .stats--grid { grid-template-columns: 0.75fr 0.75fr 1.35fr 1.15fr; }
}
@media (min-width: 901px) {
  #strike .stats--sec .is-word dd b { font-size: clamp(34px, 4vw, 52px); }
  #strike .stats--grid { grid-template-columns: 0.7fr 0.7fr 1.45fr 1.15fr; }
}

/* Радіохвилі сигналу на схемі Middle Strike */
.m-wave-g path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.m-wave-g { opacity: 0.25; animation: wave-pulse 1.4s ease-in-out infinite; }
@keyframes wave-pulse { 0%, 100% { opacity: 0.18; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m-wave-g { animation: none; opacity: 0.7; } }

/* Сигнал без анімації; штрихування зон; підписи з «ореолом» для читабельності */
.m-wave-g { animation: none !important; opacity: 1 !important; }
.m-wave-g path { stroke-width: 1.8; }
.m-arrow { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.h-ew { stroke: var(--target); stroke-width: 1.4; opacity: 0.32; }
.h-tz { stroke: var(--accent); stroke-width: 1.2; opacity: 0.26; }
.m-zone-edge { fill: none; stroke-width: 1; stroke-dasharray: 4 5; }
.m-zone-edge--ew { stroke: var(--target); opacity: 0.6; }
.m-zone-edge--tz { stroke: var(--accent); opacity: 0.6; }
.m-zone-label { font: 500 13px var(--f-mono); letter-spacing: 0.08em; }
.m-zone-label--ew { fill: #ff9a78; }
.m-zone-label--tz { fill: var(--accent); }
.m-halo { paint-order: stroke; stroke: var(--sky); stroke-width: 5px; stroke-linejoin: round; }

/* Висота ретранслятора і підпис зони РЕБ — тим самим жовтим, що й решта підписів */
.m-alt { stroke: var(--accent); stroke-dasharray: 2 5; stroke-width: 1.4; }
.m-zone-label--ew { fill: var(--accent); }

/* ---------- Телефон: окрема схема Middle Strike з розривом шкали ---------- */
.ms-phone { display: none; }
.ms-break { fill: var(--bg); }
.ms-break-edge { fill: none; stroke: var(--muted); stroke-width: 1.5; opacity: 0.7; }
.ms-phone .m-label, .ms-phone .m-zone-label { font-size: 22px; }
.ms-phone .m-note { font-size: 19px; }
.ms-phone .m-ruler text { font-size: 26px; }
.ms-phone .m-halo { stroke-width: 7px; }
@media (max-width: 720px) {
  .mission--fit .ms-wide { display: none; }
  .mission--fit .ms-phone { display: block; min-width: 0; }
  .mission--fit .mission__hint, .mission--fit figcaption.only-hint { display: none; }
}

/* ---------- Телефон: NATO по центру нижнього рядка ---------- */
@media (max-width: 900px) {
  .hero .stats > div:nth-child(5) { align-items: center; text-align: center; padding-right: 0; }
  .hero .stats > div:nth-child(5) dt { max-width: none; }
}

/* ---------- Телефон: статті компактними картками, без білого фону ---------- */
@media (max-width: 560px) {
  .press { gap: var(--s-4); }
  .press__card { display: grid; grid-template-columns: 54% 1fr; column-gap: var(--s-3); align-content: start; height: auto; }
  .press__title { font-size: 13px; line-height: 1.3; }
  .press__outlet, .press__cta { font-size: 10.5px; letter-spacing: 0.06em; }
  .press__shot { grid-row: 1 / span 4; aspect-ratio: 4 / 5; background: none; }
  .press__outlet { margin-top: 0; }
  .press__cta { margin-top: 0; padding-top: var(--s-2); }
}

/* ---------- WhatsApp у контактах ---------- */
.contacts dd a.wa { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--line); border-radius: 999px; transition: border-color .2s, color .2s; }
.contacts dd a.wa svg { width: 22px; height: 22px; flex: none; fill: #25d366; }
.contacts dd a.wa:hover { border-color: #25d366; color: var(--text); }

/* ---------- Телефон: кругла кнопка WhatsApp у кутку ---------- */
.wa-fab { display: none; }
@media (max-width: 720px) {
  .wa-fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
  .wa-fab svg { width: 30px; height: 30px; fill: #fff; }
  .wa-fab:active { transform: scale(.94); }
}

/* Форма: приховане поле-пастка для ботів і повідомлення про надсилання */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin-top: var(--s-3); font-size: 15px; color: var(--muted); }
.form__status.is-ok { color: var(--accent); font-weight: 700; }

/* Мапа розвідника: показуємо знімок повністю, без обрізання країв */
#recon .map img { aspect-ratio: auto; object-fit: contain; }
