@view-transition { navigation: auto; }   /* перехід між сторінками без білого спалаху */

:root {
  --bg: #000;
  --surface: rgba(14, 16, 22, 0.62);
  --surface-solid: #0c0e13;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f2;
  --muted: #9aa0ab;
  --yellow: #ffd500;
  --yellow-glow: rgba(255, 213, 0, 0.28);
  --blue: #1f5fae;
  --amber: #c8783a;
  --gold-line: linear-gradient(90deg, #8a6d45, #e6c48e, #8a6d45);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;   /* clip не ламає position: sticky в Safari на iPhone */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
::selection { background: var(--yellow); color: #000; }

.container { width: min(1240px, 100% - 32px); margin-inline: auto; }

/* ---------- Зерно поверх сторінки ---------- */
.bg { position: fixed; inset: 0; z-index: 60; overflow: hidden; pointer-events: none; will-change: transform; }   /* окремий шар: прокрутка не перемальовує сторінку */
.bg__grain {
  position: absolute; inset: 0; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}

/* ---------- Загальні елементи ---------- */
.eyebrow {
  margin: 0 0 14px; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-line); }
.line { display: block; width: min(440px, 80%); height: 2px; background: var(--gold-line); margin: 28px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  background: var(--yellow); color: #000; border: 1px solid var(--yellow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s, color 0.35s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px var(--yellow-glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--small { padding: 10px 20px; font-size: 0.85rem; }

/* Базова картка з жовтою обводкою при наведенні */
.card {
  position: relative;
  background: rgba(14, 16, 22, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), background 0.4s;
}
.card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--yellow); opacity: 0;
  box-shadow: 0 0 0 1px var(--yellow), inset 0 0 24px rgba(255, 213, 0, 0.08);
  transition: opacity 0.4s var(--ease);
}
.card:is(:hover, .is-focus), .card:focus-visible {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: 0 20px 50px -10px var(--yellow-glow), 0 0 0 1px rgba(255, 213, 0, 0.15);
  background: rgba(18, 20, 26, 0.78);
}
.card:is(:hover, .is-focus)::after, .card:focus-visible::after { opacity: 1; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(3, 4, 6, 0.92); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 50px; height: auto; transition: transform 0.5s var(--ease); }
.header .brand__logo { width: 46px; }
.brand:hover .brand__logo { transform: rotate(-8deg) scale(1.08); }
.brand__name { font-size: 0.72rem; letter-spacing: 0.16em; line-height: 1.3; font-weight: 500; }
.header .brand__name { font-size: 0.7rem; letter-spacing: 0.22em; font-weight: 400; color: #cfd2d8; white-space: nowrap; }
.header .brand__name b { font-weight: 700; color: #fff; }
.header__call { display: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { white-space: nowrap; }
/* вузький ПК / планшет у ландшафті: пунктів більше — стискаємо відступи, «Зв'язатися» дублює «Контакти» */
@media (min-width: 881px) and (max-width: 1100px) {
  .header__cta { display: none; }
  .header__inner { gap: 24px; }
  .nav__links { gap: 22px; }
}
.nav__extra { display: none; }
.nav a { position: relative; font-size: 0.9rem; color: #d7d7d7; padding: 6px 0; transition: color 0.3s; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease);
}
.nav a:hover { color: var(--yellow); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; }

/* ---------- Hero ---------- */
.hero { overflow-x: clip; position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 110px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__title { font-weight: 200; font-size: clamp(2.6rem, 5.4vw, 5rem); letter-spacing: -0.01em; text-transform: uppercase; }
.hero__title > span { display: block; }
.hero__title-accent { font-weight: 600; font-size: 0.42em; letter-spacing: 0.08em; color: var(--yellow); margin-top: 14px; }
.hero__lead { max-width: 520px; color: #c9ccd2; font-size: 1.05rem; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 36px; }
.hero__stats b { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.5rem; color: #fff; }
.hero__stats span { font-size: 0.8rem; color: var(--muted); }
.hero__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero__ring {
  position: absolute; inset: 6%; border-radius: 50%;
  border: 1px dashed rgba(255, 213, 0, 0.25);
  animation: spin 60s linear infinite;
}
.hero__ring::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: radial-gradient(circle, rgba(31, 95, 174, 0.25), transparent 65%);
}
.hero__drone {
  position: relative; width: 92%;
  animation: hover-fly 6s ease-in-out infinite;
  transition: transform 0.2s linear;
}
/* тінь під дроном — окремим шаром, щоб не перемальовувати фільтр щокадру разом із canvas */
.hero__drone::before {
  content: ""; position: absolute; inset: 18% 14% 4%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), transparent);
  transform: translateY(40px);
}
.hero__frame { width: 100%; }
.hero__props { position: absolute; pointer-events: none; }
@keyframes hover-fly { 50% { translate: 0 -18px; rotate: 2deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
/* бескінечні анімації на паузі, коли блок поза екраном */
.is-offscreen .hero__ring, .is-offscreen .hero__drone, .is-offscreen .scroll-hint span, .is-offscreen .map__kyiv i { animation-play-state: paused; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 1px solid rgba(255,255,255,0.3); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--yellow); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Секції ---------- */
.section { padding: 110px 0; }
.section__head { margin-bottom: 52px; max-width: 720px; }
.section__title { font-weight: 300; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; letter-spacing: 0.01em; }
.section__sub { color: var(--muted); margin: 16px 0 0; }

/* ---------- Фільтри ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  font: inherit; font-size: 0.88rem; cursor: pointer; color: #d0d0d0;
  padding: 10px 20px; border-radius: 999px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--line); transition: all 0.35s var(--ease);
}
.filter:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.filter.is-active { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }

/* ---------- Картки товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
.product.is-hidden { display: none; }
.product__media {
  isolation: isolate; clip-path: inset(0);
  position: relative; aspect-ratio: 4 / 3.2; overflow: hidden;
  background: radial-gradient(ellipse at 50% 60%, rgba(31, 95, 174, 0.35), transparent 70%);
}
.product__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform 0.8s var(--ease), filter 0.5s; }
.product__media--photo img { object-fit: cover; padding: 0; filter: saturate(0.85) brightness(0.85); }
/* затемнення — маска самого фото, а не окремий шар: при анімації край не може «вилізти» */
.product__media--photo { background: none; }
.product__media--photo img {
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 7%, rgba(0,0,0,0.4) 26%, #000 62%);
  mask-image: linear-gradient(to top, transparent 0%, transparent 7%, rgba(0,0,0,0.4) 26%, #000 62%);
}
.product:is(:hover, .is-focus) .product__media img { transform: scale(1.08) rotate(-2deg); }
.product:is(:hover, .is-focus) .product__media--photo img { transform: scale(1.06); filter: saturate(1) brightness(1); }
.product__tag {
  position: absolute; z-index: 2; top: 16px; left: 16px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.6); border: 1px solid var(--line);
}
.product__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product__body { container-type: inline-size; width: 100%; }
/* шрифт назви підлаштовується під ширину картки (однаковий у всіх); довга назва — частина в дужках цілком у другий рядок */
.product__name { font-weight: 300; font-size: 1.9rem; font-size: min(1.9rem, 7.8cqi); letter-spacing: 0.02em; }
.nowrap { white-space: nowrap; }
.product__type { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; margin-top: -6px; }
.product__type::before { content: ""; width: 26px; height: 2px; background: var(--gold-line); transition: width 0.5s var(--ease), background 0.4s; }
.product:is(:hover, .is-focus) .product__type::before { width: 46px; background: var(--yellow); }
.product__desc { color: #c3c6cc; font-size: 0.9rem; margin: 0; }
.product__specs { list-style: none; padding: 14px 0 0; margin: auto 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; border-top: 1px solid var(--line); }
.product__specs li { display: flex; flex-direction: column; }
.product__specs b { font-family: var(--mono); font-weight: 500; font-size: 0.95rem; color: #fff; transition: color 0.4s; }
.product__specs span { font-size: 0.7rem; color: var(--muted); line-height: 1.3; }
.product:is(:hover, .is-focus) .product__specs b { color: var(--yellow); }
/* склад комплексу (БпАК) — замість опису й ключових цифр */
.product__kit { list-style: none; padding: 0; margin: auto 0 0; border-top: 1px solid var(--line); }
.product__kit li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.product__kit b { font-family: var(--mono); font-weight: 500; color: #fff; white-space: nowrap; transition: color 0.4s; }
.product:is(:hover, .is-focus) .product__kit b { color: var(--yellow); }
.product__more { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text); transition: color 0.3s, gap 0.4s var(--ease); }
.product__more svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.product:is(:hover, .is-focus) .product__more { color: var(--yellow); gap: 14px; }
.product__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* Ціна на картці — жовта «таблетка» як у кнопки, крупніша за характеристики */
.price {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; white-space: nowrap; line-height: 1;
  font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; color: #000;
  background: var(--yellow); border: 1px solid var(--yellow);
  transition: box-shadow 0.32s var(--ease);
}
.price small { font-size: 0.62em; font-weight: 600; letter-spacing: 0.04em; }
.product:is(:hover, .is-focus) .price { box-shadow: 0 8px 26px var(--yellow-glow); }
/* вузькі картки (3 колонки на ноутбуці, телефон) — ціна трохи менша, щоб стояла поруч із «Характеристики» */
@media (min-width: 1081px) and (max-width: 1240px), (max-width: 400px) { .product .price { font-size: 1.1rem; padding: 9px 13px; } .product__more { gap: 6px; } }
.note { margin-top: 26px; font-size: 0.78rem; color: #6c717a; }
.catalog__more { display: flex; justify-content: center; margin-top: 32px; }
.catalog__more[hidden] { display: none; }
@media (max-width: 767px) { .catalog__more .btn { width: 100%; } }
.catalog__toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform 0.45s var(--ease); }
.catalog__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Каталог згорнуто: видно перший ряд, верх наступного — розмитий і розчиняється донизу.
   Відступи 14px — місце для підйому й тіні карток при наведенні, поки блок обрізаний. */
@property --fade { syntax: "<length>"; inherits: false; initial-value: 0px; }
.catalog__wrap { --fade: 0px; position: relative; padding: 14px 14px 0; margin: -14px -14px 0; transition: height 0.6s var(--ease), --fade 0.6s var(--ease); }
.catalog__wrap:is(.is-collapsed, .is-animating) {
  overflow: hidden; overflow: clip;   /* clip — блок не прокручується зсередини (пошук, фокус) */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
}
.catalog__wrap.is-collapsed { --fade: 210px; }
.catalog__wrap .product:nth-child(n+4) {
  transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), background 0.4s, filter 0.6s var(--ease);
}
.catalog__wrap.is-collapsed .product:nth-child(n+4) { filter: blur(5px); pointer-events: none; }
@media (max-width: 767px) { .catalog__wrap.is-collapsed { --fade: 170px; } }

/* ---------- Переваги ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 32px 26px; }
.feature__num { font-family: var(--mono); font-size: 0.85rem; color: var(--yellow); display: block; margin-bottom: 40px; }
.feature h3 { font-weight: 600; font-size: 1.08rem; margin-bottom: 12px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Опції ---------- */

/* ---------- Кроки ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { padding: 30px 26px; }
.step > span {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,213,0,0.5); color: var(--yellow); font-family: var(--mono); margin-bottom: 26px;
  transition: background 0.4s, color 0.4s;
}
.step:is(:hover, .is-focus) > span { background: var(--yellow); color: #000; }
.step h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Контакти ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px; align-items: center; }
.contact:hover { transform: translateY(-4px); }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  transition: border-color 0.35s, transform 0.4s var(--ease), background 0.35s;
}
.contact__item:is(:hover, .is-focus) { border-color: var(--yellow); transform: translateX(6px); background: rgba(255,213,0,0.05); }
.contact__item svg { width: 22px; height: 22px; flex: none; stroke: var(--yellow); fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.contact__item span { min-width: 0; display: flex; flex-direction: column; font-family: var(--mono); font-size: 1.02rem; overflow-wrap: anywhere; }
.contact__item small { font-family: var(--font); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 10; isolation: isolate;
  padding: 84px 0 calc(32px + env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse 45% 70% at 12% 0%, rgba(31, 95, 174, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 50% at 92% 100%, rgba(200, 120, 58, 0.14), transparent 70%),
    #040507;
  border-radius: 36px 36px 0 0;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 213, 0, 0.55), transparent);
}
.footer__grid { display: grid; grid-template-columns: 1fr auto auto; gap: 48px 72px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
/* ПК: лого і опис — в один рядок; колонки «Навігація» і «Контакти» притиснуті праворуч */
.footer__about { display: flex; align-items: center; gap: 32px; }
.footer__about .brand { flex: none; }
@media (min-width: 1081px) {
  /* опис — по центру вільного місця між лого та колонками; усе вирівняно по одній осі */
  .footer__about { align-self: center; }   /* колонки «Навігація» й «Контакти» лишаються вирівняними по верху */
  .footer .footer__about p { margin-inline: auto; text-align: center; transform: translateX(20px); }   /* компенсація різниці відступів: 72px між колонками − 32px між лого й текстом */
}
.footer__logo { width: 200px; transition: transform 0.5s var(--ease); }
.footer__logo:hover { transform: rotate(-4deg) scale(1.04); }
.footer__about p { margin: 0; max-width: 370px; color: #a9adb6; font-size: 1.05rem; line-height: 1.6; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h4 { margin: 0 0 8px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow); }
.footer__col a { width: fit-content; max-width: 100%; overflow-wrap: anywhere; color: #cfd2d8; font-size: 0.92rem; transition: color 0.3s, transform 0.35s var(--ease); }
.footer__col a:hover { color: var(--yellow); transform: translateX(4px); }
.footer__bottom { display: flex; align-items: center; gap: 16px; padding-top: 28px; }
.footer__bottom p { margin: 0; font-size: 0.9rem; }
.footer__bottom small { margin-left: auto; color: var(--muted); }
.footer__trident { width: 22px; height: auto; opacity: 0.9; }

/* ---------- Модальне вікно ---------- */
.modal {
  width: min(1180px, 100% - 32px); max-height: 90vh; padding: 0; border-radius: 22px; overflow: hidden;
  background: var(--surface-solid); color: var(--text); border: 1px solid rgba(255,213,0,0.35);
  box-shadow: 0 30px 120px rgba(0,0,0,0.9), 0 0 60px rgba(255,213,0,0.08);
}
.modal::backdrop { background: rgba(0,0,0,0.75); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in 0.5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  background: rgba(0,0,0,0.7); color: #fff; border: 1px solid rgba(255,255,255,0.25); font-size: 1.6rem; line-height: 1;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.modal__close:hover { border-color: var(--yellow); color: var(--yellow); transform: rotate(90deg); }
.modal__body { display: grid; grid-template-columns: 1fr 1.05fr; grid-template-rows: minmax(0, 1fr); height: min(90vh - 2px, 820px); }
.modal__body > * { min-height: 0; }
/* ліворуч — фото повністю, без скролу; фон — розмита копія того ж фото */
.modal__media {
  position: relative; overflow: hidden; height: 100%;
  background: radial-gradient(ellipse at 50% 55%, rgba(31,95,174,0.45), transparent 70%), #05060a;
}
.modal__media::before {
  content: ""; position: absolute; inset: -40px; background: var(--img) center / cover;
  filter: blur(28px) brightness(0.45) saturate(1.1); opacity: 0;
}
.modal__media--photo::before { opacity: 1; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 30px; }
/* фото у вікні — на всю ширину по центру, краї зверху й знизу плавно розчиняються в розмитому фоні */
.modal__media--photo img {
  padding: 0; inset: 50% 0 auto; height: auto; transform: translateY(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}
/* праворуч — інформація скролиться окремо */
.modal__info { padding: 44px 40px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255,213,0,0.4) transparent; }
.modal__info h3 { font-weight: 300; font-size: 2.6rem; }
.modal__info .product__type { margin: 8px 0 18px; }
.modal__info > p { color: #c3c6cc; margin: 0 0 26px; font-size: 0.95rem; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: background 0.3s, padding 0.3s; }
.specs div:hover { background: rgba(255,213,0,0.04); padding-left: 8px; }
.specs dt { color: var(--muted); font-size: 0.82rem; }
.specs dd { margin: 0; font-size: 0.88rem; }
/* wrap-reverse: якщо ціна не вміщується поруч із кнопкою, вона сама переходить над кнопку */
.modal__buy { display: flex; flex-wrap: wrap-reverse; align-items: stretch; gap: 12px; margin-top: 30px; }
/* у вікні поруч жовта кнопка — ціна напівпрозора, щоб її не плутали з другою кнопкою */
.modal__cta { text-align: center; }
.modal__price { align-items: center; padding: 13px 24px; font-size: 1.45rem; color: var(--yellow); background: rgba(255, 213, 0, 0.12); border-color: rgba(255, 213, 0, 0.5); }

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.card.reveal { transition: opacity 0.9s var(--ease), transform 0.5s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease), background 0.4s; }
.card.reveal:not(.is-visible) { transition-duration: 0.9s; }
.card.reveal.is-visible:is(:hover, .is-focus) { transform: translateY(-8px); }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .header__cta { display: none; }
  .header { padding-top: env(safe-area-inset-top); background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0)); }
  .header.is-scrolled { background: rgba(3, 4, 6, 0.96); }
  html.menu-open .header { background: transparent; border-color: transparent; }
  .header__inner { height: 64px; gap: 10px; }
  .header .brand { gap: 10px; }
  .header .brand__logo { width: 38px; }
  .header .brand__name { font-size: 0.62rem; letter-spacing: 0.18em; }
  .header__call {
    display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
    background: var(--yellow); color: #000; transition: transform 0.3s var(--ease);
  }
  .header__call svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .header__call:active { transform: scale(0.92); }
  .burger {
    position: relative; display: block; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .burger span {
    position: absolute; right: 10px; height: 2px; border-radius: 2px; background: #fff;
    transition: transform 0.35s var(--ease), width 0.35s var(--ease), top 0.35s var(--ease);
  }
  .burger span:first-child { top: 17px; width: 22px; }
  .burger span:last-child { top: 25px; width: 14px; background: var(--yellow); }
  .burger[aria-expanded="true"] span { top: 21px; width: 22px; }
  .burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); background: #fff; }
  .footer { border-radius: 26px 26px 0 0; padding-top: 64px; }

  /* ---- Повноекранне меню, що виїжджає справа ---- */
  .nav {
    position: fixed; inset: 0; z-index: -1; margin: 0;
    height: 100vh; height: 100dvh; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    padding: calc(104px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
    visibility: hidden; pointer-events: none;
    transition: visibility 0s linear 0.95s;
  }
  /* два шари «шторки»: жовта хвиля, за нею — темна панель */
  .nav::before, .nav::after {
    content: ""; position: fixed; inset: 0; z-index: -1;
    transform: translateX(101%);
    transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  }
  .nav::before { background: var(--yellow); transition-delay: 0.14s; }
  .nav::after {
    background:
      radial-gradient(ellipse 70% 40% at 100% 0%, rgba(200, 120, 58, 0.2), transparent 70%),
      radial-gradient(ellipse 80% 50% at 0% 100%, rgba(31, 95, 174, 0.3), transparent 70%),
      #040507;
    transition-delay: 0s;
  }
  .nav.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
  .nav.is-open::before { transform: none; transition-delay: 0s; }
  .nav.is-open::after { transform: none; transition-delay: 0.12s; }

  .nav__links { flex-direction: column; gap: 0; counter-reset: n; }
  .nav__links a {
    counter-increment: n;
    display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
    font-size: clamp(1.9rem, 8.5vw, 2.6rem); font-weight: 300; text-transform: uppercase; letter-spacing: 0.01em; color: #fff;
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateX(70px);
    transition: opacity 0.25s, transform 0.3s var(--ease), color 0.3s;
  }
  .nav__links a::before { content: "0" counter(n); font-family: var(--mono); font-size: 0.78rem; font-weight: 400; color: var(--yellow); }
  .nav__links a::after { display: none; }
  .nav__links a:active { color: var(--yellow); }
  .nav__extra {
    display: grid; gap: 10px;
    opacity: 0; transform: translateX(70px);
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .nav__extra a { font-family: var(--mono); font-size: 1rem; color: #d7d9de; padding: 0; }
  .nav__extra a::after { display: none; }
  .nav__extra p { margin: 14px 0 0; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); }
  .nav.is-open .nav__links a, .nav.is-open .nav__extra {
    opacity: 1; transform: none;
    transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), color 0.3s;
    transition-delay: calc(0.42s + var(--i) * 0.06s);
  }
  html.menu-open { overflow: hidden; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; padding: 32px 22px; }
  .modal__body { display: block; height: auto; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
  .modal__media { height: 320px; }
  .modal__info { padding: 28px 22px calc(28px + env(safe-area-inset-bottom)); overflow: visible; }
}
@media (max-width: 620px) {
  .grid, .features, .steps { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero__stats { gap: 22px; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer__about { grid-column: 1 / -1; display: block; }
  .footer__about .brand { justify-content: center; margin-bottom: 26px; }
  .footer__logo { width: 190px; margin-inline: auto; }
  .footer__about p { max-width: 420px; color: #b9bdc5; font-size: 1rem; line-height: 1.65; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer__bottom small { margin-left: 0; }
  .footer__col a[href^="mailto:"] { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .loader__glow, .loader__progress, .loader__logo, .loader__disc { opacity: 1; }
  .loader__word { transform: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Плавний скрол (Lenis)
   ========================================================= */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

main { position: relative; }
.hero, .section { position: relative; }

/* Фон кожної секції — як окремий слайд каталогу: розмиті сині та бурштинові плями */
.hero {
  background:
    url("img/glow.webp") no-repeat 115% 18% / min(1100px, 85%) auto,
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(31, 95, 174, 0.38), transparent 70%),
    #000;
}
#catalog {
  background:
    radial-gradient(ellipse 40% 35% at 88% 12%, rgba(200, 120, 58, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 45% at 75% 30%, rgba(31, 95, 174, 0.32), transparent 70%),
    radial-gradient(ellipse 45% 40% at 10% 85%, rgba(31, 95, 174, 0.25), transparent 70%),
    #000;
}
#about {
  background:
    url("img/glow.webp") no-repeat -30% 110% / min(1000px, 80%) auto,
    radial-gradient(ellipse 35% 35% at 90% 20%, rgba(31, 95, 174, 0.3), transparent 70%),
    #000;
}
#order {
  background:
    url("img/glow.webp") no-repeat 120% -20% / min(1000px, 80%) auto,
    radial-gradient(ellipse 45% 40% at 10% 90%, rgba(31, 95, 174, 0.28), transparent 70%),
    #000;
}
#contacts {
  background:
    radial-gradient(ellipse 35% 35% at 80% 75%, rgba(200, 120, 58, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 50% at 65% 60%, rgba(31, 95, 174, 0.35), transparent 70%),
    #000;
}

/* «Контакти» і «Про нас» — одна зв'язка: без великого проміжку між ними */
#contacts { padding-bottom: 32px; }
#about { padding-top: 32px; }

/* М'які переходи між секціями — без різких меж фону */
.hero::after, .section::before, .section::after {
  content: ""; position: absolute; left: 0; right: 0; height: 200px; pointer-events: none; z-index: 0;
}
.section::before { top: 0; background: linear-gradient(#000, transparent); }
.hero::after, .section::after { bottom: 0; background: linear-gradient(transparent, #000); }
.hero > .container, .section > .container { position: relative; z-index: 1; }
.scroll-hint { z-index: 1; }

/* =========================================================
   Кастомний курсор (лише ПК з мишею)
   ========================================================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor.modal-open, html.has-cursor.modal-open * { cursor: auto !important; }
.cursor { position: fixed; left: 0; top: 0; z-index: 400; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--yellow); box-shadow: 0 0 10px rgba(255, 213, 0, 0.8); transition: opacity 0.15s; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  transition: opacity 0.15s;
}
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }
.magnetic { transition: transform 0.45s var(--ease); }

/* =========================================================
   Стилізований скролбар
   ========================================================= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #030406; }
::-webkit-scrollbar-thumb { background: linear-gradient(#2b2e36, #1b1d23); border: 2px solid #030406; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: rgba(255, 213, 0, 0.55) #030406; }
}

/* =========================================================
   Анімація заголовків: літери (перший екран) і слова (секції)
   ========================================================= */
.split-word { display: inline-block; white-space: nowrap; }
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.split-in {
  display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.15s cubic-bezier(0.19, 1, 0.22, 1);
  transition-delay: calc(var(--base, 0ms) + var(--i) * var(--step, 60ms));
}
.is-split-in .split-in { transform: none; }
.hero__title { --step: 26ms; }

/* =========================================================
   Доступно на (платформи)
   ========================================================= */
.platforms { padding: 32px 0; }
#catalog { padding-bottom: 48px; }   /* «Доступно на» йде одразу під каталогом */
.platforms__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.platforms__title { margin: 0; font-size: 1.15rem; font-weight: 500; color: #e9eaec; }
.platforms__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px 88px; }
.platforms__list img { display: block; width: auto; height: 52px; opacity: 0.88; transition: opacity 0.32s cubic-bezier(.22, 1, .36, 1), transform 0.45s cubic-bezier(.22, 1, .36, 1); }
.platforms__list li:last-child img { height: 76px; }
.platforms__list img:hover { opacity: 1; transform: translateY(-2px); }
@media (max-width: 767px) {
  .platforms { padding: 28px 0; }
  .platforms__inner { gap: 16px; }
  .platforms__list { flex-direction: column; gap: 20px; }
  .platforms__list img { height: 48px; }
  .platforms__list li:last-child img { height: 70px; }
}

/* =========================================================
   Інженерія: розібраний VECTOR 7 (exploded view)
   ========================================================= */
.explode {
  position: relative; height: 340vh;
  background:
    radial-gradient(ellipse 40% 45% at 50% 55%, rgba(31, 95, 174, 0.26), transparent 70%),
    radial-gradient(ellipse 25% 30% at 85% 20%, rgba(200, 120, 58, 0.14), transparent 70%),
    #000;
}
.explode__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; overflow: hidden; }
.explode__inner { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 96px 0 40px; }
.explode__head { text-align: center; }
.explode__head .eyebrow { justify-content: center; }
.explode__head .section__sub { margin-top: 10px; }
.explode__stage { position: relative; flex: 1; min-height: 0; }
.explode__drone {
  position: absolute; left: 50%; top: 50%;
  width: min(40vw, 54vh); aspect-ratio: 1500 / 1445;
  transform: translate(-50%, -50%) scale(var(--s, 1));
  will-change: transform;
}
.ex-part {
  position: absolute; left: calc(var(--x) / 1500 * 100%); top: calc(var(--y) / 1445 * 100%);
  width: calc(var(--w) / 1500 * 100%); height: auto; max-width: none;
  will-change: transform;
}
.ex-prop { opacity: 0.95; }
.ex-shadow {
  position: absolute; left: 40%; top: 18%; width: 20%; height: 58%; border-radius: 40%;
  background: rgba(0, 0, 0, 0.85); filter: blur(22px); opacity: 0;
  will-change: transform, opacity;
}
.explode__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.ex-line { fill: none; stroke: rgba(255, 213, 0, 0.75); stroke-width: 1; transition: opacity 0.4s; }
.ex-dot { fill: var(--yellow); filter: drop-shadow(0 0 6px rgba(255, 213, 0, 0.9)); transition: opacity 0.4s; }
.ex-ring { fill: none; stroke: var(--yellow); stroke-width: 1; opacity: 0.6; transition: opacity 0.4s; }
.ex-num { font-family: var(--mono); font-size: 11px; font-weight: 600; fill: #000; text-anchor: middle; dominant-baseline: central; transition: opacity 0.4s; }

.ex-callout {
  position: absolute; top: var(--top); width: min(250px, 22vw); z-index: 3;
  display: flex; flex-direction: column; gap: 4px; padding: 10px 0;
  opacity: 0; transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}
.ex-callout[data-side="left"] { left: 0; text-align: right; transform: translateX(-24px); }
.ex-callout[data-side="right"] { right: 0; text-align: left; transform: translateX(24px); }
.ex-callout.is-on { opacity: 1; transform: none; }
.ex-callout__num { font-family: var(--mono); font-size: 0.75rem; color: var(--yellow); }
.ex-callout b { font-size: 1.15rem; font-weight: 500; letter-spacing: 0.02em; }
.ex-callout span:last-child { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
.ex-caption, .ex-legend { display: none; }
/* виноска без опису — лише назва, без порожнього рядка */
.ex-callout > span:last-child:empty, .ex-caption__text span:empty { display: none; }

.explode__progress { width: min(240px, 50%); height: 2px; margin: 8px auto 0; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.explode__progress i { display: block; height: 100%; background: var(--gold-line); transform-origin: left; transform: scaleX(var(--p, 0)); }

@media (max-width: 1023px) {
  .explode { height: 320vh; }
  .explode__inner { padding: calc(72px + env(safe-area-inset-top)) 0 18px; gap: 10px; }
  .explode__head .section__sub { display: none; }
  .explode__drone { width: min(80vw, 38svh); }
  .ex-callout { display: none; }
  .ex-line { display: none; }
  /* номери на дроні можна натиснути */
  .ex-dot, .ex-num { pointer-events: auto; cursor: pointer; }

  /* легенда: номер + назва кожної деталі */
  .ex-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
  .ex-chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px;
    font: inherit; font-size: 0.74rem; color: #cfd2d8; cursor: pointer;
    background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); border-radius: 999px;
    opacity: 0.4; transition: opacity 0.4s, background 0.3s, color 0.3s, border-color 0.3s;
  }
  .ex-chip i {
    display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
    font-style: normal; font-family: var(--mono); font-size: 0.66rem; font-weight: 600;
    background: rgba(255, 213, 0, 0.18); color: var(--yellow);
  }
  .ex-chip.is-avail { opacity: 1; }
  .ex-chip.is-current { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }
  .ex-chip.is-current i { background: #000; color: var(--yellow); }

  /* картка з описом поточної деталі */
  .ex-caption {
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px;
    border: 1px solid var(--line); border-radius: 16px; background: rgba(14, 16, 22, 0.85);
  }
  .ex-caption .ex-callout__num { flex: none; }
  .ex-caption__text { display: flex; flex-direction: column; gap: 2px; }
  .ex-caption b { font-weight: 500; }
  .ex-caption__text span { color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
  .ex-caption.is-hint { justify-content: center; color: var(--muted); font-size: 0.85rem; }
  .ex-caption.is-swap { animation: ex-swap 0.45s var(--ease); }
  @keyframes ex-swap { from { opacity: 0; transform: translateY(8px); } }
}
@media (max-width: 1023px) and (max-height: 700px) {
  .explode__drone { width: min(72vw, 34svh); }
  .ex-chip { padding: 4px 8px 4px 4px; font-size: 0.7rem; }
}
@media (min-width: 1024px) {
  .ex-num { display: none; }
}

/* =========================================================
   Доставка: карта України
   ========================================================= */
#delivery {
  background:
    radial-gradient(ellipse 45% 50% at 70% 50%, rgba(31, 95, 174, 0.28), transparent 70%),
    radial-gradient(ellipse 25% 30% at 90% 15%, rgba(200, 120, 58, 0.16), transparent 70%),
    #000;
}
.delivery { display: grid; grid-template-columns: minmax(300px, 0.8fr) 1.6fr; gap: 48px; align-items: center; }
.delivery .section__sub { margin-bottom: 28px; }

.route { padding: 22px 24px; margin-bottom: 22px; }
.route:hover { transform: none; }
.route__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.route__path { display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; font-size: 1.5rem; font-weight: 300; }
.route__path b { font-weight: 400; }
.route__path svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#routeTo { color: var(--yellow); transition: opacity 0.3s; }
.route__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.route__meta b { font-family: var(--mono); font-weight: 500; color: #fff; }
.route__status { display: inline-flex; align-items: center; gap: 8px; }
.route__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.route__status.is-flying::before { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.route__status.is-done { color: #9be39b; }
.route__status.is-done::before { background: #5fd35f; box-shadow: 0 0 10px rgba(95, 211, 95, 0.6); }
@keyframes m-blink { 50% { opacity: 0.3; } }
.route__bar { display: block; height: 2px; margin-top: 16px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; }
.route__bar i { display: block; height: 100%; background: var(--yellow); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 10px var(--yellow); will-change: transform; }

.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip {
  font: inherit; font-size: 0.82rem; color: #d0d0d0; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.city-chip:hover { border-color: var(--yellow); color: var(--yellow); transform: translateY(-2px); }
.city-chip.is-active { background: var(--yellow); border-color: var(--yellow); color: #000; font-weight: 600; }

.map { position: relative; }
.map::before {
  content: ""; position: absolute; inset: 0 2%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(31, 95, 174, 0.3), rgba(31, 95, 174, 0.12) 55%, transparent);
}
.map__svg { display: block; width: 100%; height: auto; overflow: visible; cursor: crosshair; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.map__hint { margin-top: 10px; text-align: center; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); }

/* шари карти */
.m-dots { opacity: 0; transition: opacity 1.4s ease 0.6s; }
.m-oblasts { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 0.7; opacity: 0; transition: opacity 1.2s ease 1s; }
.m-outline {
  fill: rgba(255, 255, 255, 0.015); stroke: rgba(255, 255, 255, 0.75); stroke-width: 1.6; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(120, 170, 255, 0.35));
  transition: stroke-dashoffset 2.6s cubic-bezier(0.65, 0, 0.35, 1);
}
.map.is-drawn .m-dots, .map.is-drawn .m-oblasts { opacity: 1; }
.m-city { cursor: pointer; opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; transition: opacity 0.4s, transform 0.5s var(--ease); }
.map.is-drawn .m-city { opacity: 1; transform: none; }
.m-city circle { fill: rgba(255, 255, 255, 0.55); transition: fill 0.3s, r 0.3s; }
.m-city:hover circle, .m-city.is-target circle { fill: var(--yellow); }
.m-city-hit { fill: transparent !important; }
.m-label {
  font-family: var(--font); font-size: 13px; font-weight: 600; fill: #fff; paint-order: stroke; stroke: #000; stroke-width: 4px; stroke-linejoin: round;
  pointer-events: none;
}
.m-label--km { font-family: var(--mono); font-weight: 400; font-size: 11px; fill: var(--yellow); }
.m-tag { opacity: 0; transition: opacity 0.35s; }
.m-tag.is-on { opacity: 1; }

.m-kyiv-core { fill: var(--yellow); }
.map__fx { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; pointer-events: none; will-change: transform; }
.map__kyiv { position: absolute; width: 0; height: 0; pointer-events: none; }
.map__kyiv i {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--yellow); animation: m-pulse 2.4s ease-out infinite;
}
.map__kyiv i + i { animation-delay: 1.2s; }
@keyframes m-pulse { from { transform: scale(0.4); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }

.m-route { fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; transition: opacity 1.2s ease; }
.m-route-glow { fill: none; stroke: rgba(255, 213, 0, 0.22); stroke-width: 8; stroke-linecap: round; transition: opacity 1.2s ease; }
.m-route-ghost { fill: none; stroke: rgba(255, 213, 0, 0.25); stroke-width: 1; stroke-dasharray: 3 6; transition: opacity 1.2s ease; }
.m-drone { transition: opacity 0.5s; }
.m-drop-ring { fill: none; stroke: var(--yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: m-drop 1.2s ease-out forwards; }
@keyframes m-drop { from { transform: scale(0.2); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.m-point { fill: var(--yellow); }

@media (max-width: 1080px) {
  /* на планшеті й телефоні: заголовок → карта → маршрут → міста */
  .delivery { grid-template-columns: 1fr; gap: 0; }
  .delivery__text { display: contents; }
  .delivery .eyebrow, .delivery .section__title, .delivery .section__sub { order: 1; }
  .delivery .section__title { margin-bottom: 0; }
  .map { order: 2; margin: 8px 0 28px; }
  .route { order: 3; }
  .cities { order: 4; }
  .delivery .note { order: 5; }
}
@media (max-width: 620px) {
  .map { margin-inline: -8px; }
  .route__path { font-size: 1.25rem; flex-wrap: wrap; }
  .m-label { font-size: 26px; stroke-width: 6px; }
  .m-label--km { font-size: 21px; }
}

/* =========================================================
   Екран завантаження
   ========================================================= */
html.is-loading { overflow: hidden; }
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: #000;
  animation: loader-failsafe 0.6s ease 9s forwards;   /* якщо скрипт не завантажився */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__glow {
  position: absolute; inset: -10%; opacity: 0;
  background:
    url("img/glow.webp") no-repeat 72% 28% / min(1100px, 120%) auto,
    radial-gradient(ellipse 40% 35% at 28% 75%, rgba(31, 95, 174, 0.35), transparent 70%);
  animation: l-fade 1.6s ease 0.1s forwards, l-drift 9s ease-in-out infinite alternate;
}
@keyframes l-drift { to { transform: translate(-3%, 2%) scale(1.06); } }
.loader__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 4vh, 40px); }

/* дрон вилітає знизу */
.loader__flight { animation: l-fly-in 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both; }
@keyframes l-fly-in {
  from { transform: translateY(65vh) scale(0.5) rotate(10deg); opacity: 0; filter: blur(8px); }
  55% { opacity: 1; filter: blur(0); }
  to { transform: none; opacity: 1; filter: none; }
}
.loader__drone { position: relative; width: min(380px, 66vw); animation: l-bob 2.6s ease-in-out 1.5s infinite; }
@keyframes l-bob { 50% { transform: translateY(-10px) rotate(1.2deg); } }
.loader__frame { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.8)); }
.loader__prop { position: absolute; left: var(--x); top: var(--y); width: 52.27%; aspect-ratio: 1; pointer-events: none; }
.loader__prop img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* розкрутка: чіткі лопаті тьмяніють, натомість з'являється диск обертання */
.loader__blade { animation: l-spin 0.3s linear infinite var(--dir), l-blade 1.2s ease 0.45s forwards; }
.loader__disc { opacity: 0; animation: l-spin 1.4s linear infinite var(--dir), l-disc 1.1s ease 0.55s forwards; }
@keyframes l-spin { to { transform: rotate(360deg); } }
@keyframes l-blade { to { opacity: 0.16; } }
@keyframes l-disc { to { opacity: 0.95; } }

/* лого та назва */
.loader__brand { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.loader__logo { width: 76px; height: auto; opacity: 0; animation: l-logo 1s var(--ease) 0.95s forwards; }
@keyframes l-logo {
  from { opacity: 0; transform: translateY(12px) scale(0.8); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}
.loader__name { display: flex; gap: 0.7em; overflow: hidden; padding: 2px 0 2px 0.42em; font-size: 0.95rem; letter-spacing: 0.42em; }
.loader__word { display: inline-block; transform: translateY(115%); color: #cfd2d8; animation: l-word 0.9s var(--ease) 1.1s forwards; }
.loader__word--bold { font-weight: 700; color: #fff; animation-delay: 1.02s; }
@keyframes l-word { to { transform: none; } }
.loader__progress { display: flex; align-items: center; gap: 12px; opacity: 0; animation: l-fade 0.6s ease 1.25s forwards; }
.loader__bar { position: relative; width: 200px; height: 1px; overflow: hidden; background: rgba(255, 255, 255, 0.12); }
.loader__bar i { position: absolute; inset: 0; background: var(--gold-line); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader__pct { min-width: 4ch; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
@keyframes l-fade { to { opacity: 1; } }

/* вихід: дрон відлітає вгору, екран їде слідом зі світним жовтим краєм */
.loader.is-leaving { animation: l-out 1.05s cubic-bezier(0.76, 0, 0.24, 1) 0.5s forwards; }
@keyframes l-out { to { transform: translateY(-100%); } }
.loader.is-leaving .loader__flight { animation: l-fly-out 1.1s cubic-bezier(0.55, 0, 0.35, 1) forwards; }
@keyframes l-fly-out {
  from { transform: none; }
  22% { transform: translateY(16px) scale(1.03); }
  to { transform: translateY(-90vh) scale(0.45) rotate(-8deg); opacity: 0; filter: blur(4px); }
}
.loader.is-leaving .loader__brand { animation: l-brand-out 0.6s var(--ease) 0.1s forwards; }
@keyframes l-brand-out { to { opacity: 0; transform: translateY(24px); filter: blur(6px); } }
.loader__edge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0;
  background: var(--yellow);
  box-shadow: 0 0 24px 4px rgba(255, 213, 0, 0.55), 0 0 90px 14px rgba(255, 213, 0, 0.18);
}
.loader.is-leaving .loader__edge { animation: l-fade 0.3s ease 0.45s forwards; }

/* сайт «збирається» після завантажувача */
.header { transition: background 0.4s, border-color 0.4s, transform 1s var(--ease) 0.9s, opacity 1s ease 0.9s; }
html.is-loading .header { transform: translateY(-100%); opacity: 0; }
.hero__visual { transition: opacity 1.4s ease 0.8s, transform 1.6s var(--ease) 0.8s; }
html.is-loading .hero__visual { opacity: 0; transform: scale(0.86) translateY(40px); }

/* =========================================================
   Мобільні пристрої
   ========================================================= */
@media (hover: none) {
  /* сенсорні екрани: без «залиплого» hover, підсвітка — через .is-focus */
  .card:hover:not(.is-focus) { transform: none; box-shadow: none; border-color: var(--line); }
  .card:hover:not(.is-focus)::after { opacity: 0; }
  .card:active { transform: scale(0.98); }
  .btn:active { transform: scale(0.97); }
}

@media (max-width: 880px) {
  .hero { padding: 84px 0 56px; background-size: 160% auto, auto, auto; background-position: 30% 6%, 0 0, 0 0; }
  .hero__visual { max-width: min(280px, 34svh); }
  .hero__inner { gap: 8px; }
  .hero__lead { font-size: 1rem; }
  .hero__actions .btn { flex: 1 1 220px; }
  .scroll-hint { display: none; }

  /* легший рендер: без backdrop-filter та зайвих анімацій */
  .card, .product__tag, .header.is-scrolled, .nav { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card { background: rgba(14, 16, 22, 0.88); }
  .header.is-scrolled { background: rgba(0, 0, 0, 0.92); }
  .bg__grain { animation: none; }
  .hero__ring { animation-duration: 120s; }

  /* фільтри — горизонтальна стрічка */
  .filter { min-height: 44px; }

  .section__head { margin-bottom: 36px; }
  .contact__item { min-height: 56px; }

  /* модальне вікно — нижня шторка на весь екран */
  .modal { width: 100%; max-width: 100%; max-height: 92svh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  .modal[open] { display: flex; flex-direction: column; }
  .modal[open] { animation: sheet-in 0.45s var(--ease); }
  .modal__media { height: 280px; }
  .modal__info h3 { font-size: 2rem; }
  .modal__buy { flex-direction: column-reverse; flex-wrap: nowrap; align-items: stretch; }
  .modal__price { align-self: flex-start; }
  .modal__cta { width: 100%; }
  .modal__close { top: 12px; right: 12px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }

@media (max-width: 620px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .filter { padding: 10px 12px; text-align: center; }
  .hero__title { font-size: clamp(2rem, 9.2vw, 3rem); }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 36px; }
  .hero__stats b { font-size: 1.05rem; }
  .hero__stats span { font-size: 0.7rem; display: block; line-height: 1.3; }
  .product__name { font-size: 1.6rem; font-size: min(1.6rem, 7.8cqi); }
  .product__media { aspect-ratio: 4 / 3; }
  .feature, .step { padding: 24px 22px; }
  .feature__num { margin-bottom: 20px; }
  .step > span { margin-bottom: 18px; }
  .contact__item span { font-size: 0.95rem; }
  .contact__item[href^="mailto:"] span { font-size: 0.85rem; }
}

/* safe area для iPhone з «чубчиком» */
@supports (padding: env(safe-area-inset-left)) {
  .container { width: min(1240px, 100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)); }
}

