/* ==========================================================================
   ProectTorg — стилі сайту
   Шрифти: IBM Plex Sans (variable: ширина 85–100 %, вага 400–700) + IBM Plex Mono 500
   ========================================================================== */

@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var-cyrillic.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex Sans";
  src: url("../fonts/plex-sans-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 85% 100%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500-cyrillic.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Plex Mono";
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токени ---------- */
:root {
  --c-ink: #121417;
  --c-graphite: #16181c;
  --c-graphite-2: #1d2025;
  --c-footer: #0e0f12;
  --c-muted: #586069;
  --c-line: #e2e5e9;
  --c-line-strong: #cfd4da;
  --c-bg: #ffffff;
  --c-bg-soft: #f4f5f7;
  --c-on-dark: #f3f4f6;
  --c-on-dark-muted: #a3abb5;
  --c-on-dark-line: rgba(255, 255, 255, 0.09);
  --c-accent: #f3e063;
  --c-accent-hover: #ead44a;
  --c-danger: #b42318;

  --font-sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 23, 0.05), 0 4px 14px rgba(18, 20, 23, 0.06);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 3px; border-radius: 4px; }
.theme-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.action-bar :focus-visible { outline-color: var(--c-accent); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--c-accent); color: var(--c-ink);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.nowrap { white-space: nowrap; }

/* Іконки (SVG-спрайт на кожній сторінці) */
.i {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Розкладка ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--c-bg-soft); }
.theme-dark { background: var(--c-graphite); color: var(--c-on-dark); }

/* Інженерна сітка для темних блоків */
.grid-bg { position: relative; isolation: isolate; overflow: hidden; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 70% 35%, #000 25%, transparent 78%);
}
.grid-bg::after {
  content: ""; position: absolute; z-index: -1;
  width: 760px; height: 760px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(243, 224, 99, 0.13), transparent 62%);
  pointer-events: none;
}

/* ---------- Типографіка ---------- */
.h1, .h2 { font-stretch: 85%; font-weight: 700; text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 1.45rem + 4.3vw, 4.75rem); line-height: 1.02; letter-spacing: -0.012em; }
.h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.06; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem); line-height: 1.25; font-weight: 600; }
.hl { color: var(--c-accent); }
.eyebrow + .h1 { margin-top: 20px; }
.eyebrow + .h2 { margin-top: 14px; }

.mark {
  background: linear-gradient(transparent 60%, var(--c-accent) 60%, var(--c-accent) 92%, transparent 92%);
  padding-inline: 2px;
}

.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.6; color: var(--c-muted); max-width: 62ch; }
.theme-dark .lead { color: var(--c-on-dark-muted); }
.muted { color: var(--c-muted); }
.theme-dark .muted { color: var(--c-on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-weight: 500;
  font-size: 0.8125rem; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--c-ink); }
.theme-dark .eyebrow { color: var(--c-on-dark-muted); }
.theme-dark .eyebrow::before { background: var(--c-accent); }

.prose > * + * { margin-top: 1em; }
.prose p { color: var(--c-muted); }
.prose strong { color: var(--c-ink); font-weight: 600; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px;
  border: 2px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-accent-hover); }
.btn--dark { background: var(--c-ink); color: #fff; }
.btn--dark:hover { background: #2a2e35; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.28); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn--outline:hover { background: var(--c-ink); color: #fff; }
.btn--sm { min-height: 44px; padding: 9px 16px; font-size: 0.9375rem; border-radius: 9px; }
.btn--block { width: 100%; }
.btn .i { width: 18px; height: 18px; }
.btn--phone { font-variant-numeric: tabular-nums; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--c-accent); padding-bottom: 2px;
}
.link-arrow .i { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.link-arrow:hover .i { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 20, 23, 0.94);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  color: #fff;
  border-bottom: 1px solid var(--c-on-dark-line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; flex: none; border-radius: 4px; }
.logo img { height: 40px; width: auto; filter: invert(1); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav a {
  position: relative; display: block;
  padding: 10px 14px; border-radius: 8px;
  color: rgba(255, 255, 255, 0.76); text-decoration: none;
  font-weight: 500; font-size: 0.9375rem;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.main-nav a[aria-current="page"] { color: #fff; }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; border-radius: 2px; background: var(--c-accent);
}

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.25; text-decoration: none; }
.header-phone__num { font-family: var(--font-mono); font-size: 0.9375rem; color: #fff; white-space: nowrap; }
.header-phone__hours { font-size: 0.75rem; color: var(--c-on-dark-muted); }
.header-phone:hover .header-phone__num { color: var(--c-accent); }

.icon-btn {
  display: none; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  background: transparent; color: #fff;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); }
.icon-btn .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1280px) {
  .header-phone { display: none; }
}
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .icon-btn { display: grid; }
  .header-actions { margin-left: auto; gap: 10px; }
}
@media (max-width: 639px) {
  .header-actions .btn { display: none; }
  .logo img { height: 34px; }
}

/* Мобільне меню */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  overflow-y: auto;
  padding: 12px var(--gutter) 40px;
  background: var(--c-graphite); color: #fff;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-on-dark-line);
  font-size: 1.5rem; font-weight: 700; font-stretch: 85%;
  text-decoration: none;
}
.mobile-menu__nav a[aria-current="page"] { color: var(--c-accent); }
.mobile-menu__nav .i { color: var(--c-on-dark-muted); }
.mobile-menu__cta { margin-top: 28px; display: grid; gap: 12px; }
.mobile-menu__meta { margin-top: 28px; display: grid; gap: 6px; color: var(--c-on-dark-muted); font-size: 0.9375rem; }
.mobile-menu__meta a { color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 120px); }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 980px) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero__lead { margin-top: 24px; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.facts {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; overflow: hidden;
  border: 1px solid var(--c-on-dark-line); border-radius: 14px;
  background: var(--c-on-dark-line);
}
.facts li { padding: 16px 18px; background: var(--c-graphite); }
.facts__value { display: block; font-family: var(--font-mono); font-size: 1rem; color: #fff; }
.facts__label { display: block; margin-top: 2px; font-size: 0.875rem; line-height: 1.4; color: var(--c-on-dark-muted); }
.facts--3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.hero__media { position: relative; }
.hero__photo {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-on-dark-line);
  box-shadow: var(--shadow-lg);
}
.hero__photo img { width: 100%; aspect-ratio: 998 / 575; object-fit: cover; }
.photo-tag {
  position: absolute; left: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 8px;
  background: rgba(18, 20, 23, 0.8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 0.8125rem; color: #fff;
}
.photo-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c-accent); }

.range {
  position: relative;
  margin: -40px 20px 0;
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--c-on-dark-line);
  background: rgba(29, 32, 37, 0.96);
  box-shadow: var(--shadow-lg);
}
.range__title { padding: 12px 0 4px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-on-dark-muted); }
.range li + li { border-top: 1px solid var(--c-on-dark-line); }
.range a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 16px;
  padding: 14px 0; text-decoration: none;
}
.range__name { grid-column: 1; font-weight: 600; color: #fff; }
.range__items { grid-column: 1; font-size: 0.875rem; color: var(--c-on-dark-muted); }
.range .i { grid-column: 2; grid-row: 1 / span 2; color: var(--c-accent); transition: transform 0.2s var(--ease); }
.range a:hover .i { transform: translateX(4px); }
.range a:hover .range__name { color: var(--c-accent); }

@media (max-width: 520px) {
  .range { margin: -24px 10px 0; padding-inline: 16px; }
}

/* ---------- Заголовок секції ---------- */
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .h2 { margin-top: 4px; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); align-items: end; column-gap: 64px; }
  .section-head--split > :last-child { justify-self: end; max-width: 46ch; }
}

/* ---------- Кроки ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.step {
  position: relative;
  padding: 28px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #fff;
}
.step__top { display: flex; align-items: center; justify-content: space-between; }
.step__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--c-accent); }
.step__icon .i { width: 24px; height: 24px; }
.step__num { font-family: var(--font-mono); font-size: 0.875rem; color: var(--c-muted); }
.step .h3 { margin-top: 24px; }
.step p { margin-top: 8px; color: var(--c-muted); }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50%; right: -21px;
    width: 10px; height: 10px;
    border-top: 2px solid var(--c-line-strong); border-right: 2px solid var(--c-line-strong);
    transform: translateY(-50%) rotate(45deg);
  }
}

/* ---------- Картки продукції ---------- */
.products { display: grid; gap: 24px; }
@media (min-width: 720px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.product {
  display: flex; flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s;
}
.product:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-sm); }
.product__media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #e9ecef; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .product__media img { transform: scale(1.035); }
.product__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.product__body > p { color: var(--c-muted); }
.product__foot { margin-top: auto; padding-top: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--c-line); background: var(--c-bg-soft);
  font-size: 0.875rem; line-height: 1.4;
}

/* Перехід на оборонну продукцію */
.crosslink {
  margin-top: 24px;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--c-graphite); color: #fff;
}
.crosslink__img { width: 120px; height: auto; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.crosslink .h3 { margin-top: 10px; }
.crosslink p { margin-top: 8px; color: var(--c-on-dark-muted); max-width: 60ch; }
@media (min-width: 860px) {
  .crosslink { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; }
}

/* ---------- Про компанію ---------- */
.about { display: grid; gap: 40px; }
@media (min-width: 980px) { .about { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 72px; align-items: start; } }
.about .prose { margin-top: 24px; }
.about__link { margin-top: 28px; }
.features { display: grid; gap: 16px; }
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { padding: 24px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.feature__icon { width: 44px; height: 44px; margin-bottom: 18px; border-radius: 11px; display: grid; place-items: center; background: var(--c-accent); }
.feature h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }
.feature p { margin-top: 6px; font-size: 0.9375rem; color: var(--c-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 40px; }
@media (min-width: 980px) { .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; } }
.faq__aside p { margin-top: 20px; color: var(--c-muted); }
.faq__aside .btn { margin-top: 28px; }
.faq__list { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--c-line); border-radius: 14px; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--c-line-strong); box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 22px;
  list-style: none; cursor: pointer;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #000; }
.faq__sign {
  position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--c-bg-soft); transition: background-color 0.2s, transform 0.3s var(--ease);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; border-radius: 1px; background: var(--c-ink);
  transform: translate(-50%, -50%);
}
.faq__sign::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__sign { background: var(--c-accent); transform: rotate(45deg); }
.faq__answer { padding: 0 22px 22px; color: var(--c-muted); max-width: 70ch; }
.faq__answer a { color: var(--c-ink); }

/* ---------- Запит / форма ---------- */
.request { display: grid; gap: 48px; }
@media (min-width: 980px) { .request { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; } }
.request .lead { margin-top: 20px; }

.contact-list { margin-top: 36px; display: grid; gap: 12px; }
.checklist { margin-top: 32px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--c-on-dark); }
.checklist .i { margin-top: 3px; color: var(--c-accent); }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--c-on-dark-line); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.contact-item__icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(243, 224, 99, 0.12); color: var(--c-accent);
}
.contact-item__body { min-width: 0; flex: 1; }
.contact-item__label { display: block; font-size: 0.8125rem; color: var(--c-on-dark-muted); }
.contact-item__value { font-weight: 600; color: #fff; text-decoration: none; overflow-wrap: anywhere; }
a.contact-item__value:hover { color: var(--c-accent); }

.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 10px;
  border: 1px solid currentColor; border-radius: 8px;
  background: transparent; font-size: 0.8125rem; font-weight: 500;
  opacity: 0.85;
}
.copy-btn:hover { opacity: 1; }
.copy-btn .i { width: 15px; height: 15px; }
.theme-dark .copy-btn { color: var(--c-on-dark-muted); }
.copy-btn.is-copied { opacity: 1; color: #1e7f4f; border-color: currentColor; }
.theme-dark .copy-btn.is-copied { color: var(--c-accent); }
@media (max-width: 479px) {
  .contact-item .copy-btn { padding: 8px; }
  .contact-item .copy-btn__text {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

.form-card {
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: #fff; color: var(--c-ink);
  box-shadow: var(--shadow-lg);
}
.form-card__title { font-size: 1.375rem; font-weight: 700; font-stretch: 85%; line-height: 1.2; }
.form-card__sub { margin-top: 6px; color: var(--c-muted); font-size: 0.9375rem; }
.form { margin-top: 24px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 0.9375rem; }
.field .opt { font-weight: 400; color: var(--c-muted); }
.input {
  width: 100%; min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--c-line-strong); border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: #8b939c; }
.input:hover { border-color: #aab2bb; }
.input:focus { outline: none; border-color: var(--c-ink); box-shadow: 0 0 0 4px rgba(243, 224, 99, 0.7); }
.input[aria-invalid="true"] { border-color: var(--c-danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.15); }
textarea.input { min-height: 128px; resize: vertical; line-height: 1.5; }
select.input {
  -webkit-appearance: none; appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121417' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field__error { margin-top: 6px; font-size: 0.8125rem; color: var(--c-danger); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[type="submit"] { margin-top: 24px; }
.form-note { margin-top: 12px; font-size: 0.8125rem; line-height: 1.5; color: var(--c-muted); }
.form-status {
  margin-top: 18px; padding: 16px 18px;
  border: 1px solid #cfe5c3; border-radius: 12px;
  background: #eef7ea; font-size: 0.9375rem; line-height: 1.55;
}
.form-status.is-error { border-color: #f1c9c4; background: #fdf1ef; }
.form-status p + p { margin-top: 8px; }
.form-status .copy-btn { margin-top: 12px; color: var(--c-ink); }

/* ---------- Оборонна продукція ---------- */
.studio {
  --studio-pad: clamp(20px, 4vw, 40px);
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 42%, #ffffff 0%, #eef0f2 52%, #d9dde2 100%);
  overflow: hidden;
}
.studio img {
  position: absolute; inset: var(--studio-pad);
  width: calc(100% - 2 * var(--studio-pad)); height: calc(100% - 2 * var(--studio-pad));
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(18, 20, 23, 0.22));
}
.theme-dark .studio { border-color: var(--c-on-dark-line); box-shadow: var(--shadow-lg); }

.dproducts { display: grid; gap: clamp(48px, 7vw, 96px); }
.dproduct { display: grid; gap: 32px; align-items: center; }
@media (min-width: 980px) {
  .dproduct { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .dproduct--flip .studio { order: 2; }
}
.dproduct .h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.dproduct__text > p { margin-top: 16px; color: var(--c-muted); }
.dproduct .btn { margin-top: 28px; }

.specs { margin-top: 24px; border-top: 1px solid var(--c-line); }
.specs > div {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--c-line);
}
.specs dt { color: var(--c-muted); font-size: 0.9375rem; }
.specs dd { font-family: var(--font-mono); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 480px) { .specs > div { grid-template-columns: 1fr; gap: 2px; } }

.banner {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--c-accent); color: var(--c-ink);
}
.banner::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 38%;
  background: repeating-linear-gradient(-45deg, rgba(18, 20, 23, 0.07) 0 14px, transparent 14px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.dproducts + .banner { margin-top: clamp(64px, 8vw, 112px); }
.banner .eyebrow { color: var(--c-ink); }
.banner p { margin-top: 12px; max-width: 62ch; }
@media (min-width: 900px) { .banner { grid-template-columns: minmax(0, 1fr) auto; gap: 48px; } }

.clients { display: grid; gap: 16px; }
@media (min-width: 760px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Сторінка контактів ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 96px); }
.page-hero .lead { margin-top: 20px; }

.contact-cards { display: grid; gap: 16px; }
@media (min-width: 860px) { .contact-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.contact-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: #fff;
}
.contact-card__icon { width: 48px; height: 48px; margin-bottom: 14px; border-radius: 12px; display: grid; place-items: center; background: var(--c-accent); }
.contact-card__label { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-muted); }
.contact-card__value { font-size: 1.25rem; font-weight: 600; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; }
a.contact-card__value:hover { text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.contact-card__note { color: var(--c-muted); font-size: 0.9375rem; }
.contact-card__actions { margin-top: auto; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.location { display: grid; gap: 32px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 980px) { .location { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: stretch; } }
.map {
  min-height: 360px; overflow: hidden;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  background: var(--c-bg-soft);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 360px; border: 0; }
.location__info { display: flex; flex-direction: column; justify-content: center; }
.location__info .prose { margin-top: 20px; }
.location__links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Підвал ---------- */
.site-footer { padding-top: clamp(56px, 6vw, 80px); background: var(--c-footer); color: var(--c-on-dark-muted); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.1fr); gap: 48px; } }
.footer-brand img { height: 42px; width: auto; filter: invert(1); }
.footer-brand p { margin-top: 18px; max-width: 34ch; }
.footer-title { margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contacts { display: grid; gap: 10px; }
.footer-contacts a { color: #fff; text-decoration: none; }
.footer-contacts a:hover { color: var(--c-accent); }
.footer-bottom {
  margin-top: 56px; padding-block: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--c-on-dark-line);
  font-size: 0.875rem;
}

/* ---------- Мобільна панель дій ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(18, 20, 23, 0.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--c-on-dark-line);
}
.action-bar .btn { min-height: 48px; padding-inline: 12px; }
@media (min-width: 768px) { .action-bar { display: none; } }
@media (max-width: 767px) { .site-footer { padding-bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; align-content: center; }
.notfound__code { font-family: var(--font-mono); font-size: 0.875rem; color: var(--c-accent); }
.notfound .lead { margin-top: 20px; }
.notfound .hero__actions { margin-top: 32px; }

/* ---------- Анімації появи ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media (max-width: 380px) {
  .btn { white-space: normal; }
}

/* ---------- Друк ---------- */
@media print {
  .site-header, .mobile-menu, .action-bar, .form-card, .map { display: none !important; }
  .theme-dark, .site-footer { background: #fff !important; color: #000 !important; }
  body { padding: 0 !important; }
}
