/* Ukrainian Military — base styles: fonts, colours, header, menu, footer */

@font-face { font-family: "Impact UM"; src: url("../fonts/impact.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-ukraine-light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-ukraine-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "e-Ukraine"; src: url("../fonts/e-ukraine-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0f100d;
  --card: #161714;
  --card-2: #1d1e1a;
  --line: rgba(255, 255, 255, .09);
  --text: #f2f2ef;
  --soft: #cfd1ca;
  --muted: #a2a49d;
  --lime: #d3f48c;
  --lime-soft: rgba(211, 244, 140, .12);
  --head: "Impact UM", Impact, "Arial Narrow", sans-serif;
  --body: "e-Ukraine", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hd: 84px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 24px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--body); }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--lime); color: #000; }
.skip:focus { top: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.kicker { margin: 0 0 8px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lime); }
.h1 { margin-bottom: .25em; font: 400 clamp(44px, 6vw, 80px)/.95 var(--head); text-transform: uppercase; color: #fff; }
.h2 { font: 400 clamp(32px, 3.6vw, 48px)/1 var(--head); text-transform: uppercase; color: #fff; }
.muted { color: var(--muted); }
.price { font: 400 44px/1 var(--head); margin: 18px 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lime); color: #000; font: 400 18px/1 var(--head); letter-spacing: .04em; text-transform: uppercase;
  transition: transform .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }

/* ----------------------------------------------------------- header -- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(15, 16, 13, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.is-scrolled { border-bottom-color: var(--line); }
.hd__in { display: flex; align-items: center; gap: clamp(14px, 3vw, 40px); height: var(--hd); max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.hd__logo { display: flex; align-items: center; gap: 10px; color: var(--lime); flex: none; }
.hd__logo img { width: 35px; height: auto; }
.hd__word { width: 108px; height: 32px; }
.hd__gallery { display: flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.hd__gallery svg { color: var(--lime); }
.hd__gallery:hover span { color: var(--lime); }
.hd__right { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); margin-left: auto; }
.hd__3d { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--lime); border-radius: 999px; color: var(--lime); font: 400 15px/1 var(--head); letter-spacing: .05em; text-transform: uppercase; transition: background .2s, color .2s; }
.hd__3d svg { width: 20px; height: 20px; }
.hd__3d:hover { background: var(--lime); color: #000; }
.hd__langs { display: flex; gap: 10px; font: 400 26px/1 var(--head); }
.hd__langs a { color: #6d6f68; transition: color .2s; }
.hd__langs a:hover { color: var(--soft); }
.hd__langs a[aria-current] { color: var(--lime); }
.hd__burger { position: relative; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.hd__burger i { position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.hd__burger i:nth-of-type(1) { top: 8px; }
.hd__burger i:nth-of-type(2) { top: 15px; }
.hd__burger i:nth-of-type(3) { top: 22px; }
.hd__burger[aria-expanded="true"] i:nth-of-type(1) { top: 15px; transform: rotate(45deg); }
.hd__burger[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
.hd__burger[aria-expanded="true"] i:nth-of-type(3) { top: 15px; transform: rotate(-45deg); }
.hd__cart { position: relative; display: block; }
.hd__cart svg { width: 29px; height: 29px; }
.hd__cart:hover { color: var(--lime); }
.hd__count { position: absolute; right: -8px; top: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--lime); color: #000; font: 700 11px/19px var(--body); text-align: center; }

.hd__menu {
  position: absolute; right: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); top: calc(var(--hd) - 6px);
  display: flex; flex-direction: column; min-width: 260px; padding: 10px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.hd__menu[hidden] { display: none; }
.hd__menu a { padding: 11px 14px; border-radius: 10px; font: 400 20px/1.15 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.hd__menu a:hover { background: var(--lime-soft); color: var(--lime); }
.hd__menu-3d { display: none; }

@media (max-width: 860px) {
  :root { --hd: 64px; }
  .hd__logo img { width: 26px; }
  .hd__word { width: 84px; height: 25px; }
  .hd__gallery span, .hd__3d span { display: none; }
  .hd__gallery { display: none; }
  .hd__3d { padding: 7px; border-radius: 50%; }
  .hd__langs { font-size: 20px; gap: 8px; }
  .hd__menu { left: 0; right: 0; top: var(--hd); min-width: 0; border-radius: 0 0 20px 20px; border-width: 1px 0; padding: 12px var(--gutter) 20px; }
  .hd__menu a { font-size: 26px; padding: 12px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hd__menu a:hover { background: none; }
  .hd__menu-3d { display: block; color: var(--lime); }
}
@media (max-width: 400px) {
  .hd__in { gap: 10px; }
  .hd__right { gap: 12px; }
  .hd__word { width: 72px; height: 21px; }
  .hd__langs { gap: 6px; font-size: 18px; }
}
@media (max-width: 340px) { .hd__word { display: none; } }

/* ----------------------------------------------------------- footer -- */
.ft { margin-top: clamp(64px, 9vw, 120px); background: var(--lime); color: #000; }
.ft__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 32px; }
.ft__phone { display: block; font: 400 clamp(26px, 3vw, 40px)/1.1 var(--head); }
.ft__mail { display: inline-block; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; }
.ft__social { display: flex; gap: 8px; margin-top: 18px; }
.ft__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .25); transition: background .2s, color .2s; }
.ft__social a:hover { background: #000; color: var(--lime); }
.ft__addr { margin: 16px 0 0; font-size: 13px; max-width: 340px; }
.ft__links { display: flex; flex-direction: column; align-items: flex-end; font: 400 20px/1.2 var(--head); text-transform: uppercase; gap: 6px; }
.ft__links a:hover { text-decoration: underline; }
.ft__small { margin-top: 10px; font: 400 13px/1.4 var(--body); text-transform: none; }
.ft__base { padding-top: 16px; padding-bottom: 24px; border-top: 1px solid rgba(0, 0, 0, .15); font-size: 12px; }
@media (max-width: 700px) {
  .ft__links { align-items: flex-start; }
}

/* ------------------------------------------------ stage-1 placeholders -- */
.stub { padding-top: clamp(48px, 8vw, 110px); }
.stub .muted { max-width: 560px; margin-top: 18px; }
.stub__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stub--product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.stub--product img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius); background: #fff; }
@media (max-width: 760px) { .stub--product { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- consent -- */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: #141414; color: #d1d1d1; border: 1px solid #3a3a3a; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 14px; line-height: 1.45; }
.consent p { margin: 0 0 12px; }
.consent a { color: var(--lime); text-decoration: underline; }
.consent__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.consent button { cursor: pointer; border-radius: 8px; padding: 9px 16px; border: 1px solid var(--lime); background: var(--lime); color: #111; }
.consent button[data-v="denied"] { background: transparent; color: #d1d1d1; border-color: #555; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
