/* =========================================================
   Jet — головна. Дизайн-система (мінімальна)
   Текст: 3 стилі (IBM Plex — лише заголовки, решта Inter) · Кольори: 4 · Відступи: 12/24/48/96/160
   Радіуси: 8 + pill · Кнопки: 48 / таб 36 / кругла 40
   ========================================================= */

:root {
  /* кольори */
  --ink: #000;
  --ink-2: rgba(0, 0, 0, .5);
  --ink-3: rgba(0, 0, 0, .3);   /* другорядні посилання */
  --paper: #fff;
  --paper-2: rgba(255, 255, 255, .5);
  --card: #f5f5f5;          /* фон карток */
  --ph: #d9d9d9;            /* плейсхолдер медіа */
  --ph-dark: #9b9b9b;       /* плейсхолдер темних фонів (hero, футер) */
  --line: rgba(0, 0, 0, .1);
  --btn: rgba(0, 0, 0, .3);
  --btn-inv: rgba(255, 255, 255, .3);
  --chip-active: rgba(0, 0, 0, .08);

  /* шрифти */
  --font-text: "IBM Plex Sans", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;

  /* моб значення (за замовчуванням) */
  --fs-h: 28px;      /* Заголовок */
  --fs-t: 14px;      /* Текст */
  --fs-ui: 14px;     /* Інтерфейс */
  --m: 16px;         /* поле контейнера */
  --gap: 12px;       /* проміжок між картками */
  --sp-sub: 12px;    /* заголовок → підзаголовок; картка → підпис */
  --sp-btn: 24px;    /* текст → кнопка; таби → картки; контент → контроли */
  --sp-title: 24px;  /* заголовок → контент */
  --sp-banner: 48px; /* внутрішній відступ банерів і футера */
  --sp-section: 96px;/* між секціями */
  --pad: 16px;       /* внутрішній відступ карток */
  --r: 8px;
  --logo: 36px;
  --logo-footer: 36px;
}

@media (min-width: 768px) {
  :root {
    --fs-h: 40px;
    --fs-t: 18px;
    --fs-ui: 16px;
    --m: 32px;
    --sp-title: 48px;
    --sp-banner: 96px;
    --sp-section: 160px;
    --pad: 24px;
    --logo-footer: 54px;
  }
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container { width: min(1152px, 100% - 2 * var(--m)); margin-inline: auto; }

/* ---------- текстові стилі ---------- */
.h  { font: 400 var(--fs-h)/1.1 var(--font-text); letter-spacing: -.02em; }
.t  { font: 400 var(--fs-t)/1.5 var(--font-ui); }
.ui { font: 400 var(--fs-ui)/1.2 var(--font-ui); }
.muted { color: var(--ink-2); }
.inv { color: var(--paper); }
.inv-muted { color: var(--paper-2); }

/* ---------- секції ---------- */
.section { padding-top: var(--sp-section); }
.head { text-align: center; max-width: calc((100% - 5 * var(--gap)) / 6 * 4 + 3 * var(--gap)); margin-inline: auto; }
.head .t { margin-top: var(--sp-sub); }
.head + * { margin-top: var(--sp-title); }

/* ---------- плейсхолдер ---------- */
.ph { background: var(--ph); border-radius: var(--r); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--btn); color: var(--paper);
  font: 400 var(--fs-ui)/1 var(--font-ui);
  transition: background .2s;
}
.btn:hover { background: rgba(0, 0, 0, .45); }
.btn--inv { background: var(--btn-inv); }
.btn--inv:hover { background: rgba(255, 255, 255, .45); }

.chip {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px;
  border-radius: 999px; white-space: nowrap; color: var(--ink-2);
  font: 400 var(--fs-ui)/1 var(--font-ui); transition: background .2s, color .2s;
}
.chip:hover { color: var(--ink); }
.chip.is-active { background: var(--chip-active); color: var(--ink); }
.chip--inv { background: rgba(255, 255, 255, .12); color: var(--paper); }
.chip--inv:hover { background: rgba(255, 255, 255, .2); color: var(--paper); }

.circle {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--btn); color: var(--paper);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s, opacity .2s;
}
.circle:hover { background: rgba(0, 0, 0, .45); }
.circle:disabled { opacity: .4; cursor: default; }
.circle svg { width: 16px; height: 16px; }

.read { display: inline-flex; align-items: center; gap: 8px; }
.read svg { width: 10px; height: 10px; }

/* ---------- хедер ---------- */
.header { position: absolute; inset: 0 0 auto; z-index: 10; padding-top: var(--sp-btn); color: var(--paper); }
.header .container { display: flex; align-items: center; justify-content: space-between; }
.logo img { height: var(--logo); width: auto; }
.nav { display: flex; gap: 48px; }
.nav a { opacity: 1; transition: opacity .2s; }
.nav a:hover { opacity: .6; }
.header .lang { display: inline; }
@media (min-width: 768px) {
  .header { padding-top: var(--sp-title); }
  .header .container { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gap); }
  .header .logo { grid-column: 1 / 3; }
  .header .nav { grid-column: 3 / 7; }
  .header .lang--mob { display: none; }
}
@media (max-width: 767px) {
  .header .nav { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; color: var(--paper); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; }
.hero-slide { background: var(--ph-dark) center / cover no-repeat; }
.hero-slide:nth-child(1) { background-image: url(/media/hero-1.jpg); }
.hero-slide:nth-child(2) { background-image: url(/media/hero-2.jpg); }
.hero-slide:nth-child(3) { background-image: url(/media/hero-3.jpg); }
.hero-title { text-align: center; max-width: calc((100% - 5 * var(--gap)) / 6 * 3 + 2 * var(--gap)); margin-inline: auto; }
.hero-arrows { position: absolute; inset: 0; display: flex; align-items: center; pointer-events: none; }
.hero-arrows .container { display: flex; justify-content: space-between; }
.hero-arrows .circle { pointer-events: auto; }
.hero-bottom { position: absolute; inset: auto 0 var(--sp-title); }
.hero-nav { display: none; }

.hero-cards { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gap); align-items: end; }
.hero-cards__col { grid-column: 5; display: flex; flex-direction: column; gap: var(--gap); }
.hero-cards__col .btn { width: 100%; }
.hero-card { display: block; background: rgba(255, 255, 255, .5); border-radius: var(--r); }
.hero-card--s { aspect-ratio: 182 / 102; }
.hero-card--l { grid-column: 6; aspect-ratio: 182 / 163; }

@media (max-width: 767px) {
  .hero-title { max-width: none; }
  .hero-arrows { inset: auto 0 var(--sp-btn); }
  .hero-arrows .container { justify-content: center; gap: 96px; }
  .hero-bottom { bottom: calc(var(--sp-btn) * 2 + 40px); }
  .hero-cards { display: none; }
  .hero-nav { display: flex; justify-content: center; gap: 48px; }
}

/* ---------- інтро ---------- */
.intro { text-align: center; }
.intro .h { max-width: calc((100% - 5 * var(--gap)) / 6 * 4 + 3 * var(--gap)); margin-inline: auto; }
.intro-btns { margin-top: var(--sp-btn); display: flex; justify-content: center; gap: var(--gap); }
@media (max-width: 767px) { .intro-btns .btn { flex: 1; } }

/* ---------- послуги (акордеон / карусель) ---------- */
.svc { position: relative; }
.svc-media { overflow: hidden; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-head { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--gap); text-align: left; }
.svc-ico { position: relative; width: 24px; height: 24px; flex: none; color: var(--ink-2); }
.svc-ico::before, .svc-ico::after { content: ""; position: absolute; left: 3px; right: 3px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .25s; }
.svc-ico::after { transform: rotate(90deg); }
.is-open .svc-ico::after { transform: rotate(0deg); }

@media (min-width: 768px) {
  .svc { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
  .svc-list { grid-column: 2; display: flex; flex-direction: column; aspect-ratio: 1; }
  .svc--rev .svc-list { grid-column: 1; }
  .svc-media { position: absolute; top: 0; left: 0; width: calc(50% - var(--gap) / 2); height: 100%; opacity: 0; transition: opacity .4s; pointer-events: none; }
  .svc--rev .svc-media { left: auto; right: 0; }
  .svc-item.is-open .svc-media { opacity: 1; }
  .svc-item + .svc-item { border-top: 1px solid var(--line); }
  .svc-head { padding: var(--pad); }
  .svc-head:hover .svc-ico { color: var(--ink); }
  .svc-body { display: none; padding: 0 var(--pad) var(--pad); }
  .svc-body .t { max-width: 80%; }
  .svc-item.is-open { flex: 1; display: flex; flex-direction: column; }
  .svc-item.is-open .svc-body { display: block; margin-top: auto; }
}
@media (max-width: 767px) {
  .svc-list { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--m)); padding-right: var(--m); scrollbar-width: none; }
  .svc-list::-webkit-scrollbar { display: none; }
  .svc-item { flex: 0 0 min(316px, 85%); scroll-snap-align: start; }
  .svc-media { aspect-ratio: 1; }
  .svc-head { margin-top: var(--sp-sub); pointer-events: none; }
  .svc-ico { display: none; }
  .svc-body { margin-top: var(--sp-sub); }
}

/* ---------- цифри ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.stat { aspect-ratio: 376 / 346; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--pad); }
.stat .t { margin-top: var(--sp-sub); max-width: 14em; }
@media (max-width: 767px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- продукти ---------- */
.tabs { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.rail { margin-top: var(--sp-btn); margin-right: calc((100vw - 100%) / -2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: var(--gap); padding-right: var(--m); width: max-content; }
.product { flex: none; width: calc((min(1152px, 100vw - 2 * var(--m)) - 2 * var(--gap)) / 3); aspect-ratio: 376 / 538; scroll-snap-align: start; display: flex; flex-direction: column; padding: var(--pad); border-radius: var(--r); animation: fade .35s; }
.product--ph { background: var(--ph); justify-content: flex-end; }
.product--card { position: relative; overflow: hidden; background: var(--card); }
.product--card > * { position: relative; z-index: 1; transition: opacity .3s, color .3s; }
.specs { display: flex; flex-direction: column; }
.spec { display: flex; align-items: center; gap: 8px; padding: var(--sp-sub) 0; }
.spec + .spec { border-top: 1px solid var(--line); }
.spec:first-child { padding-top: 0; }
.spec svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.spec .muted { flex: 1; }
.spec-v { white-space: nowrap; }
.product-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: var(--sp-btn) 0; }
.product-img img { max-width: 85%; max-height: 85%; object-fit: contain; }
.product-name { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); }
.product-name svg { width: 24px; height: 24px; flex: none; transition: transform .2s; }
/* Картка: за замовчуванням реальне фото й біла назва.
   Мишка: ховер показує характеристики й рендер, клік по всій картці веде на продукт.
   Тачскрін: кнопка «і» перемикає на характеристики, на продукт — лише назва зі стрілкою */
.product--card > .product-live { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.product--card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.6)); transition: opacity .4s; }
.product--card .specs, .product--card .product-img { opacity: 0; }
.product--card .product-name { color: var(--paper); }
.product-info { display: none; }
@media (hover: hover) {
  .product--card > .product-name { position: static; }
  .product--card > .product-name::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
  .product--card:hover > .product-live, .product--card:hover::after { opacity: 0; }
  .product--card:hover .specs, .product--card:hover .product-img { opacity: 1; }
  .product--card:hover .product-name { color: var(--ink); }
  .product--card:hover .product-name svg { transform: translateX(4px); }
}
@media (hover: none) {
  .product--card > .product-info { display: inline-flex; position: absolute; top: var(--pad); right: var(--pad); z-index: 2; }
  .product--card .specs { margin-top: calc(40px + var(--sp-sub)); }
  .product-info .ico-close, .product--card.is-info .product-info .ico-info { display: none; }
  .product--card.is-info .product-info .ico-close { display: block; }
  .product--card.is-info > .product-live, .product--card.is-info::after { opacity: 0; }
  .product--card.is-info .specs, .product--card.is-info .product-img { opacity: 1; }
  .product--card.is-info .product-name { color: var(--ink); }
}
.rail-ctrl { margin-top: var(--sp-btn); display: flex; justify-content: flex-end; gap: var(--gap); }
.rail-ctrl[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 767px) {
  .tabs { justify-content: flex-start; margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); }
  .product { width: calc((100vw - 2 * var(--m)) * .85); }
  .rail-ctrl { display: none; }
}

/* ---------- Resilient Defence (відеослайдер) ---------- */
.vs { max-width: calc((100% - 5 * var(--gap)) / 6 * 5 + 4 * var(--gap)); margin-inline: auto; position: relative; }
.vs-viewport { overflow: hidden; border-radius: var(--r); }
.vs-track { display: flex; transition: transform .5s ease; }
.vs-slide { flex: 0 0 100%; aspect-ratio: 958 / 538; border-radius: 0; position: relative; display: flex; align-items: center; justify-content: center; }
.vs-slide { background: var(--ph) url(/media/rd-1.jpg) center / cover no-repeat; }
.vs-play { width: 48px; height: 48px; }
.vs-play svg { width: 16px; height: 16px; }
.vs-ctrl { margin-top: var(--sp-btn); display: flex; justify-content: center; gap: var(--gap); }
.vs-dots { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--btn); display: flex; align-items: center; gap: 6px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-2); transition: background .2s; }
.vs-dot.is-active { background: var(--paper); }
.ico-play { display: none; }
.is-paused .ico-play { display: block; }
.is-paused .ico-pause { display: none; }
@media (max-width: 767px) {
  .vs { max-width: none; margin-inline: calc(-1 * var(--m)); }
  .vs-viewport { border-radius: 0; }
  .vs-slide { aspect-ratio: 375 / 500; }
  .vs-ctrl { position: absolute; inset: auto 0 var(--sp-btn); margin: 0; }
}

/* ---------- новини ---------- */
.news { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
.news-main { grid-column: 1 / 5; grid-row: 1 / 4; aspect-ratio: 764 / 656; position: relative; overflow: hidden; border-radius: var(--r); color: var(--paper); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--pad); }
.news-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85)); }
.news-main > *:not(img) { position: relative; z-index: 1; }
.news-main .t { margin-top: var(--sp-sub); }
/* текст займає 6 з 12 колонок (= 3 колонки базової сітки 6×182) */
@media (min-width: 768px) {
  .news-main .h, .news-main .t { max-width: calc((min(1152px, 100vw - 2 * var(--m)) - 5 * var(--gap)) / 6 * 3 + 2 * var(--gap) - var(--pad)); }
}
.news-main .read, .news-card .read { margin-top: var(--sp-btn); }
.news-card { grid-column: 5 / 7; background: var(--card); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; min-height: 211px; transition: background .2s; }
.news-card:hover { background: #ececec; }
.news-card .read { align-self: flex-start; }
/* деск: права колонка рівно у висоту фото */
@media (min-width: 768px) {
  .news { aspect-ratio: 1152 / 656; grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .news-main { aspect-ratio: auto; height: 100%; }
  .news-card { min-height: 0; overflow: hidden; gap: var(--sp-sub); }
  .news-card .t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .news-card .read { margin-top: 0; }
}
@media (max-width: 767px) {
  .news { grid-template-columns: 1fr; }
  .news-main, .news-card { grid-column: auto; grid-row: auto; }
  .news-main { aspect-ratio: 343 / 461; }
}

/* ---------- ветерани ---------- */
.vets { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 1152 / 710; color: var(--paper); text-align: center; padding: var(--sp-banner) var(--pad) 0; }
.vets img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.vets > *:not(img) { position: relative; }
.vets .t { margin: var(--sp-sub) auto 0; max-width: calc((100% - 5 * var(--gap)) / 6 * 3 + 2 * var(--gap)); }
.vets .chip { margin-top: var(--sp-btn); }
@media (max-width: 767px) {
  .vets { aspect-ratio: auto; min-height: 710px; margin-inline: calc(-1 * var(--m)); border-radius: 0; }
  .vets .t { max-width: none; }
}

/* ---------- партнери ---------- */
.partners-title { text-align: center; }
.partners { margin-top: var(--sp-title); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); row-gap: var(--sp-btn); }
.partner-logo { aspect-ratio: 376 / 211; background: var(--card); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.partner-logo img { max-height: 56%; width: auto; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-3); transition: color .2s; }
.more:hover { color: var(--ink); }
.more svg { width: 14px; height: 14px; }
.badges { position: relative; }
.badges img { position: absolute; inset: 0; margin: auto; max-height: 47.6%; max-width: 34%; object-fit: contain; opacity: 0; transition: opacity .25s; }
.badges img.is-active { opacity: 1; }
.partner .t { margin-top: var(--sp-sub); max-width: 16em; }
.partner .t a { color: var(--ink); }
.partner .t a:hover { text-decoration: underline; }
.partner .more { margin-top: 0; }
@media (max-width: 767px) { .partners { grid-template-columns: 1fr; } }

/* ---------- сторінка «Підрозділи» ---------- */
.header--light { color: var(--ink); }
.header--light .logo img { filter: invert(1); }
.page-top { padding-top: calc(var(--sp-title) + var(--logo) + var(--sp-section)); }
.units { display: grid; grid-template-columns: repeat(6, 1fr); column-gap: var(--gap); row-gap: var(--sp-btn); }
.unit-badge { aspect-ratio: 1; background: var(--card); border-radius: var(--r); display: flex; align-items: center; justify-content: center; }
.unit-badge img { max-width: 50%; max-height: 60%; object-fit: contain; }
.unit .t { margin-top: var(--sp-sub); }
@media (max-width: 1023px) { .units { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .units { grid-template-columns: repeat(2, 1fr); } }

/* ---------- футер ---------- */
.footer { margin-top: var(--sp-section); background: linear-gradient(180deg, #8f8f8f, #a9a9a9); color: var(--paper); padding: var(--sp-banner) 0; }
.footer-lead { max-width: calc((100% - 5 * var(--gap)) / 6 * 5 + 4 * var(--gap)); }
.footer .btn { margin-top: var(--sp-btn); }
.footer-cols { margin-top: var(--sp-banner); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-title) var(--gap); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-sub); color: var(--paper-2); }
.footer-col a:hover { color: var(--paper); }
.footer-col .logo { margin-top: auto; padding-top: var(--sp-btn); }
.footer-col .logo img { height: var(--logo-footer); }
@media (max-width: 767px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-lead { max-width: none; }
  .footer-col--brand .logo { order: -1; margin: 0 0 var(--sp-btn); padding: 0; }
}

/* ---------- службове ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
