/* ============================================================
   Каталог FPV-дронів
   Mobile-first. Темний мінімалізм, тонкий гротеск, жовтий акцент.
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --bg-raised: #121212;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eeebe4;
  --text-soft: #c9c6bf;
  --muted: #8d8a84;
  --faint: #5f5d59;
  --accent: #f5c542;
  --accent-hover: #ffd45e;
  --accent-ink: #15130a;
  --accent-line: rgba(245, 197, 66, 0.5);
  --accent-wash: rgba(245, 197, 66, 0.05);
  --danger: #ff6b6b;

  --radius: 16px;
  --radius-sm: 10px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Unbounded", "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.is-locked { overflow: hidden; }
/* Плавну прокрутку веде js/smooth-scroll.js — вбудована CSS-анімація вимикається, щоб не конфліктувати */
html.has-smooth-scroll { scroll-behavior: auto; }
[tabindex="-1"]:focus { outline: none; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
/* Заголовки, цифри й ціни — Unbounded; решта тексту — Onest */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }

.btn--ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { background: #252525; border-color: var(--line-strong); }

.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; font-size: 16px; }
.btn--block { width: 100%; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 13, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

/* Логотип: знак images/logo.svg + напис INTERFORT / UKRAINE */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.logo__mark {
  flex: none;
  width: 32px;
  height: 27px;
  background: url("../images/logo.svg") center / contain no-repeat;
}
.logo__text {
  display: grid;
  gap: 3px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
}
.logo__bold { font-weight: 600; letter-spacing: 0.2em; }

.nav { display: none; }
.nav a {
  padding-block: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
/* На вузьких екранах кнопка заявки є на першому екрані й у sticky-кнопці знизу */
@media (max-width: 479px) {
  .header__cta { display: none; }
}

/* Перемикач мови UA / EN */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.lang-switch:empty { display: none; }
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch__item:hover { color: var(--text); }
.lang-switch__item[aria-current="true"] { background: var(--text); color: var(--bg); }

@media (min-width: 560px) {
  .nav { display: flex; gap: 24px; margin-left: 24px; }
  .nav a:not(:first-child) { display: none; }
}
@media (min-width: 860px) {
  .nav { gap: 32px; margin-left: clamp(40px, 8vw, 120px); }
  .nav a:not(:first-child) { display: inline; }
}
@media (min-width: 1100px) {
  /* Меню починається з тієї ж колонки, що й другий рядок заголовка (як у референсі) */
  .header__inner { display: grid; grid-template-columns: 14% minmax(0, 1fr) auto; gap: 0; }
  .nav { margin-left: 0; }
  .header__cta { margin-left: 0; }
}

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

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(28px, 5vw, 48px) clamp(48px, 7vw, 64px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(60% 50% at 50% 55%, rgba(245, 197, 66, 0.06), transparent 70%);
}

.hero__inner {
  --indent: 14%; /* колонка, з якої на десктопі починаються характеристики внизу першого екрану */
  --tfs: clamp(36px, 10vw, 52px); /* розмір H1; на десктопі hero.js зменшує його, якщо рядок не влазить */
  position: relative;
  display: grid;
  gap: 28px;
}

.hero__title {
  position: relative;
  z-index: 3;
  font-family: var(--font);
  font-size: var(--tfs);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero__line { display: block; }
.hero__line--indent { color: var(--accent); }

.hero__body {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 22px;
}

.hero__subtitle {
  max-width: 34rem;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--text-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__actions .btn { flex: 1 1 210px; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 15px; height: 15px; color: var(--accent); flex: none; }

/* Фото дрона: на мобільному окремий блок під кнопками, на десктопі фон праворуч */
.hero__bg {
  position: relative;
  z-index: 1;
  margin-inline: calc(var(--gutter) * -1);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  pointer-events: none;
  /* Чорний фон фото темніший за сторінку: lighten прибирає видимі межі блоку */
  mix-blend-mode: lighten;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% 50%;
  animation: drone-in 1.2s var(--ease) both;
}
/* Краї фото розчиняються у фоні сторінки */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--bg), transparent 30%, transparent 58%, var(--bg)),
    linear-gradient(to right, var(--bg), transparent 18%, transparent 82%, var(--bg));
}

@keyframes drone-in { from { opacity: 0; transform: scale(1.04); } }

.hero__stats {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 20px;
}
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 5.4vw, 44px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--muted);
}

.hero__meta { display: none; }

@media (min-width: 1100px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - var(--header-h));
    padding-block: clamp(24px, 5vh, 72px) 32px;
  }

  /* Текст ліворуч, фото дрона фоном праворуч, цифри під кнопками, характеристики внизу */
  .hero__inner {
    --tfs: clamp(48px, min(5.2vw, 9.5vh), 80px);
    flex: 1;
    position: static;
    grid-template-columns: minmax(0, 56%) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 0;
  }

  .hero__title { grid-column: 1; grid-row: 1; }
  .hero__line { width: max-content; white-space: nowrap; }

  .hero__body {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    max-width: 30rem;
    margin-top: 28px;
    gap: 24px;
  }
  .hero__subtitle { font-size: 19px; line-height: 1.45; }
  .hero__actions .btn { flex: 0 0 auto; min-height: 48px; padding: 0 22px; }
  .trust { font-size: 13px; }

  .hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: min(66%, 1280px);
    margin: 0;
    aspect-ratio: auto;
  }
  .hero__bg img { object-position: 100% 50%; }
  .hero__bg::after {
    background:
      linear-gradient(to right, var(--bg), rgba(13, 13, 13, 0.6) 22%, transparent 48%),
      linear-gradient(to bottom, var(--bg), transparent 14%, transparent 78%, var(--bg));
  }

  .hero__stats {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    max-width: 34rem;
    gap: 24px;
    margin-top: 48px;
  }
  .stat__value { font-size: clamp(26px, 2.4vw, 34px); }

  .hero__meta {
    position: relative;
    z-index: 3;
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: var(--indent) 19% minmax(0, 1fr) auto;
    align-items: start;
    margin-top: 40px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
  }
  .hero__cert { font-size: 12px; white-space: nowrap; }
  .hero__scroll { justify-self: end; }
}


.hero__scroll a { color: var(--text-soft); transition: color 0.2s ease; }
.hero__scroll a:hover { color: var(--accent); }

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

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
}

.section__head {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 48rem;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section__title {
  font-size: clamp(26px, 4.2vw, 52px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Чому обирають нас ---------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  color: var(--accent);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.feature__text {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 600px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { flex-direction: column; gap: 32px; padding: 24px; }
}
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Каталог ---------- */

.filters {
  display: flex;
  gap: 8px;
  margin: 0 calc(var(--gutter) * -1) 24px;
  padding: 2px var(--gutter) 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .filters {
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.26); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip__count { font-size: 12px; opacity: 0.55; }
.chip.is-empty:not([aria-pressed="true"]) { opacity: 0.45; }

/* Фільтр за ціною: мобільний — підпис і «Скинути» зверху, поля, повзунок; десктоп — один рядок */
.price-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label reset"
    "inputs inputs"
    "range range";
  align-items: center;
  gap: 14px 16px;
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.price-filter__label {
  grid-area: label;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.price-filter__reset {
  grid-area: reset;
  padding: 6px 0;
  background: none;
  border: 0;
  font-size: 13px;
  color: var(--accent);
  transition: color 0.2s ease;
}
.price-filter__reset:hover { color: var(--accent-hover); }
.price-filter__inputs {
  grid-area: inputs;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.price-filter__dash { color: var(--faint); }

/* Поле «від / до»: підпис і число в одному рядку, рамка — на всьому полі (підпис будь-якої довжини не налазить на число) */
.price-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-left: 14px;
  background: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: text;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.price-field:hover { border-color: rgba(255, 255, 255, 0.22); }
.price-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.price-field span { flex: none; font-size: 13px; color: var(--faint); }
.price-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px 0 0;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.price-field input::-webkit-outer-spin-button,
.price-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Подвійний повзунок: два input[type=range] один над одним, клікабельні лише «кружечки» */
.range { grid-area: range; position: relative; height: 28px; }
.range__track {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  margin-top: -2px;
  border-radius: 999px;
  background: var(--line-strong);
}
.range__fill { position: absolute; top: 0; bottom: 0; border-radius: inherit; background: var(--accent); }
.range input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.range input[type="range"] + input[type="range"] { z-index: 2; }
.range input[type="range"].is-top { z-index: 3; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.range input[type="range"]::-moz-range-track { background: transparent; }
.range input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  background: var(--text);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: grab;
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
}
.range input[type="range"]::-moz-range-thumb {
  box-sizing: border-box;
  width: 22px;
  height: 22px;
  background: var(--text);
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: grab;
  pointer-events: auto;
}
.range input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.range input[type="range"]:focus { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.35); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.35); }

@media (min-width: 900px) {
  .price-filter {
    grid-template-columns: auto minmax(0, 17rem) minmax(0, 1fr) auto;
    grid-template-areas: "label inputs range reset";
    gap: 24px;
    padding: 12px 20px;
  }
  .price-filter__reset { min-width: 4.5rem; text-align: right; }
}

/* Рядок над карточками: кількість знайдених моделей і сортування */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin-bottom: 16px;
}
.catalog-toolbar__count { font-size: 14px; color: var(--muted); }
.sort { display: inline-flex; align-items: center; gap: 10px; }
.sort__label { font-size: 13px; white-space: nowrap; color: var(--muted); }
.sort__select {
  min-height: 40px;
  padding: 0 40px 0 16px;
  background: #0f0f0f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d8a84' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sort__select:hover { border-color: rgba(255, 255, 255, 0.26); }
.sort__select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.sort__select option { background: #151515; color: var(--text); }

.catalog-empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.catalog {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 680px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
@media (hover: hover) {
  .card:hover { border-color: var(--accent-line); background-color: #1a1915; }
  .card:hover .card__media img { transform: scale(1.03); }
}

/* «Сцена» для фото з прозорим фоном: м'яка світла пляма по центру, щоб чорний карбон не зливався з фоном */
.card__media,
.gallery__main,
.gallery__thumb {
  background:
    radial-gradient(65% 65% at 50% 50%, #34322d 0%, #1f1e1b 55%, #151515 100%);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.card__media img {
  width: 100%;
  height: 100%;
  padding: 16px 24px;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 18px 20px 20px;
}
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
}
/* Без цін (showPrices: false) кнопка займає всю ширину */
.card__foot > .btn:only-child { flex: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.tag--accent { color: var(--accent); border-color: var(--accent-line); }

.specs { display: grid; border-top: 1px solid var(--line); }
.specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.specs dt { color: var(--muted); }
.specs dd { text-align: right; }
.specs--lg > div { padding: 12px 0; font-size: 15px; }

.price { display: grid; gap: 2px; }
.price__value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price__note { font-size: 12px; color: var(--muted); }
/* «від» перед ціною — дрібніше й приглушено, щоб читалася сума */
.price__from { margin-right: 0.3em; font-family: var(--font); font-size: 0.7em; color: var(--muted); letter-spacing: 0; }
.price--lg .price__value { font-size: clamp(24px, 3vw, 30px); font-weight: 400; }
.price--lg .price__note { font-size: 13px; }

/* Плейсхолдер фото */
.ph {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 12px;
  background:
    radial-gradient(70% 70% at 50% 45%, rgba(245, 197, 66, 0.05), transparent 70%),
    #131313;
  font-size: 13px;
  text-align: center;
  color: var(--faint);
}
.ph svg { width: 44px; height: 44px; }

/* ---------- Про нас ---------- */

/* Текст на всю ширину контейнера */
.about { display: grid; gap: clamp(20px, 3vw, 32px); }
.about__main { display: grid; gap: clamp(36px, 5vw, 64px); }
.about__text {
  font-size: clamp(24px, 3.4vw, 46px);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
/* Сертифікати й кодифікація під текстом «Про нас» */
.about__facts {
  display: grid;
  gap: 20px;
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.about__facts li { display: grid; align-content: start; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.about__facts strong { font-size: 16px; font-weight: 500; color: var(--text); }
@media (min-width: 760px) {
  .about__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
}


/* ---------- Заявка ---------- */

.order { display: grid; gap: 32px; }
.order__intro { display: grid; align-content: start; gap: 18px; }
.order__intro .section__lead { max-width: 30rem; }

.order__contacts {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.order__contacts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.order__contacts span { color: var(--muted); }
.order__contacts a { transition: color 0.2s ease; }
.order__contacts li > :last-child { text-align: right; }
.order__contacts a:hover { color: var(--accent); }

.order__card {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: linear-gradient(180deg, var(--accent-wash), transparent 40%), var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: 20px;
}

@media (min-width: 960px) {
  .order { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .order__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-group {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.field__label {
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.field__label--sub { font-size: 13px; font-weight: 400; color: var(--muted); }
.field__req { color: var(--accent); }
.field__opt { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--faint); }
.field__hint { font-size: 13px; color: var(--muted); }
.field__error { font-size: 13px; color: var(--danger); }
.field__error:empty { display: none; }

.form__row { display: grid; gap: 12px; }
@media (min-width: 520px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  background-color: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 16px; /* 16px — щоб iOS не збільшував сторінку при фокусі */
  line-height: 1.4;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18); }
.input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  box-shadow: 0 0 0 1000px #0f0f0f inset;
}

.input--select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238d8a84' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.input--select option { background: #151515; color: var(--text); }
.input--area { min-height: 104px; resize: vertical; }

/* Моделі й кількість у формі заявки: мобільний — модель на всю ширину, під нею кількість і «×»; ширше — один рядок */
.order-items { display: grid; gap: 10px; }
.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "model model"
    "qty remove";
  align-items: center;
  gap: 8px 10px;
}
.order-item__model,
.order-item__model-trigger { grid-area: model; min-width: 0; }
@media (min-width: 520px) {
  .order-item {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "model qty remove";
  }
}

.qty {
  grid-area: qty;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 52px;
  background: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qty:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.qty__btn {
  width: 42px;
  height: 100%;
  background: none;
  border: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.2s ease;
}
.qty__btn:hover:not(:disabled) { color: var(--accent); }
.qty__btn:disabled { opacity: 0.35; cursor: default; }
.qty__input {
  width: 48px;
  height: 100%;
  padding: 0;
  background: none;
  border: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.order-item__remove {
  grid-area: remove;
  justify-self: end;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.order-item__remove:hover { color: var(--danger); border-color: rgba(255, 107, 107, 0.5); }

.order-items__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}
.order-items__add {
  padding: 6px 0;
  background: none;
  border: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s ease;
}
.order-items__add:hover { color: var(--accent-hover); }
.order-items__total { font-size: 14px; color: var(--muted); }
.order-items__total strong { margin-left: 4px; font-family: var(--font-display); font-weight: 400; color: var(--text); white-space: nowrap; }

/* ---------- Випадний список у стилі сайту (js/picker.js) ---------- */

.picker__native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.picker__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.picker__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}
.picker__trigger.sort__select { width: auto; padding-right: 14px; background-image: none; }
.picker__label { display: flex; align-items: baseline; gap: 12px; flex: 1; min-width: 0; }
.picker__value {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.picker__trigger.sort__select .picker__value { white-space: nowrap; }
.picker__value.is-placeholder { color: var(--muted); }
.picker__trigger .picker__price { flex: none; font-size: 14px; color: var(--muted); }
.picker__chevron {
  flex: none;
  width: 12px;
  height: 8px;
  color: var(--muted);
  transition: transform 0.25s var(--ease), color 0.2s ease;
}
.picker__trigger:hover .picker__chevron,
.picker__trigger.is-open .picker__chevron { color: var(--accent); }
.picker__trigger.is-open .picker__chevron { transform: rotate(180deg); }
.picker__trigger.input.is-open,
.picker__trigger.sort__select.is-open { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }
.picker__trigger:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.16); }

.picker { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.picker__panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #151515;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}
.picker__list {
  flex: 1;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  outline: none;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.picker__group {
  padding: 14px 12px 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.picker__group:first-child { padding-top: 8px; }
.picker__option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-soft);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.picker__option.is-active { background: #222; color: var(--text); }
.picker__option[aria-selected="true"] { color: var(--text); }
.picker__option.is-empty { color: var(--muted); }
.picker__option.is-empty + .picker__group { margin-top: 4px; border-top: 1px solid var(--line); }
.picker__option[aria-disabled="true"] { cursor: default; opacity: 0.4; }
.picker__option[aria-disabled="true"].is-active { background: none; }
.picker__check { width: 16px; height: 16px; color: var(--accent); opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s var(--ease); }
.picker__option[aria-selected="true"] .picker__check { opacity: 1; transform: none; }
.picker__text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.picker__note { font-size: 12px; color: var(--muted); }
.picker__option .picker__price {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}
.picker__option[aria-selected="true"] .picker__price { color: var(--accent); }

/* Ширший екран: список під полем (або над ним, якщо внизу мало місця) */
.picker--popover .picker__panel { border-radius: 12px; transform-origin: top center; animation: picker-drop 0.18s var(--ease) both; }
.picker--popover.is-up .picker__panel { transform-origin: bottom center; }
.picker--popover.is-closing .picker__panel { animation: picker-drop-out 0.12s ease both; }
@keyframes picker-drop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
@keyframes picker-drop-out { to { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.picker--popover.is-up .picker__panel { animation-name: picker-rise; }
@keyframes picker-rise { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* Телефон: аркуш знизу екрана */
.picker--sheet { pointer-events: auto; }
.picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: picker-fade 0.25s ease both;
}
.picker--sheet .picker__panel {
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(78dvh, 640px);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-raised);
  border-width: 1px 0 0;
  border-radius: 20px 20px 0 0;
  animation: picker-sheet 0.34s var(--ease) both;
}
.picker--sheet .picker__panel::before {
  content: "";
  align-self: center;
  flex: none;
  width: 36px;
  height: 4px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.picker--sheet .picker__list { padding: 4px 10px 12px; }
.picker--sheet .picker__option { min-height: 52px; font-size: 16px; }
.picker--sheet.is-closing .picker__backdrop { animation: picker-fade-out 0.2s ease both; }
.picker--sheet.is-closing .picker__panel { animation: picker-sheet-out 0.22s ease-in both; }
@keyframes picker-fade { from { opacity: 0; } }
@keyframes picker-fade-out { to { opacity: 0; } }
@keyframes picker-sheet { from { transform: translateY(100%); } }
@keyframes picker-sheet-out { to { transform: translateY(100%); } }
.picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 22px;
  border-bottom: 1px solid var(--line);
}
.picker__title { font-size: 15px; font-weight: 500; color: var(--text); }
.picker__close {
  flex: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
}

.input.is-highlighted { animation: field-pulse 1.6s var(--ease); }
@keyframes field-pulse {
  30% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.35); }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status { font-size: 14px; color: var(--danger); }
.form__status:empty { display: none; }
/* Згода на обробку персональних даних */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: #0f0f0f;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.check__box::after {
  content: "";
  width: 10px;
  height: 5px;
  border-bottom: 2px solid var(--accent-ink);
  border-left: 2px solid var(--accent-ink);
  opacity: 0;
  transform: translate(0, -1px) rotate(-45deg);
}
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] + .check__box { border-color: var(--danger); }
.check a { color: var(--text); border-bottom: 1px solid var(--line-strong); transition: color 0.2s ease; }
.check a:hover { color: var(--accent); }

.form-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-block: 24px;
  outline: none;
}
.form-success__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
}
.form-success__title { font-size: clamp(26px, 3vw, 34px); }
.form-success__text { color: var(--muted); }
.form-success__text a { color: var(--text); border-bottom: 1px solid var(--line-strong); }

/* ---------- Підвал ---------- */

.footer {
  padding-block: clamp(48px, 7vw, 80px) 28px;
}
/* Лого на всю ширину, далі колонки по дві; на десктопі все в один ряд (колонка месенджерів з'являється, коли є посилання) */
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
.footer__grid > .footer__brand { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1.3fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 40px; }
  .footer__grid > .footer__brand { grid-column: auto; }
}
.footer__count { margin-left: 6px; font-size: 12px; color: var(--faint); }
.footer__doc { display: grid; gap: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.footer__doc strong { font-size: 14px; font-weight: 500; color: var(--text); }

.footer__brand { display: grid; align-content: start; justify-items: start; gap: 16px; }
.footer__brand p { max-width: 26rem; font-size: 14px; color: var(--muted); }
.footer__title {
  font-family: var(--font);
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--faint);
}
.footer__list { display: grid; gap: 10px; font-size: 15px; }
.footer__list a { transition: color 0.2s ease; }
.footer__list a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--faint);
}

.footer__address { max-width: 18rem; font-size: 14px; line-height: 1.5; color: var(--muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a { transition: color 0.2s ease; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Юридичні сторінки ---------- */

.legal { padding-block: clamp(40px, 7vw, 88px); }
.legal__inner { max-width: 760px; }
.legal .legal__back {
  display: inline-flex;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s ease;
}
.legal .legal__back:hover { color: var(--accent); }
.legal h1 { margin-bottom: 14px; font-size: clamp(26px, 4vw, 42px); letter-spacing: -0.03em; }
.legal__meta { margin-bottom: 36px; font-size: 14px; color: var(--muted); }
.legal h2 { margin: 40px 0 14px; font-size: clamp(17px, 2vw, 21px); font-weight: 400; }
.legal p,
.legal li { font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal a { color: var(--accent); }
.legal__card {
  margin-top: 16px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer--compact { padding-block: 0 28px; }
.footer--compact .footer__bottom { margin-top: 0; }

/* ---------- Sticky-кнопка на мобільному ---------- */

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(13, 13, 13, 0.96) 65%, rgba(13, 13, 13, 0));
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.sticky-cta.is-visible { transform: none; }

@media (max-width: 899px) {
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  .sticky-cta { display: none; }
}

/* ---------- Розгорнута картка моделі ---------- */

.modal {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  color: var(--text);
}
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__panel {
  --pad: clamp(16px, 3vw, 28px);
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-raised);
}
.modal[open] .modal__panel { animation: modal-in 0.32s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }

@media (min-width: 760px) {
  .modal[open] { align-items: center; padding: 24px; }
  .modal__panel {
    max-width: 960px;
    height: auto;
    max-height: calc(100dvh - 48px);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
  }
  .modal[open] .modal__panel { animation-name: modal-in-desktop; }
  @keyframes modal-in-desktop { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad);
  border-bottom: 1px solid var(--line);
}
.modal__heading { display: grid; gap: 10px; min-width: 0; }
.modal__title { font-size: clamp(20px, 2.6vw, 28px); }
.modal__close { flex: none; }
.modal__close svg { width: 14px; height: 14px; }

.modal__scroll {
  flex: 1;
  padding: var(--pad);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal__top { display: grid; gap: 20px; }
@media (min-width: 760px) {
  .modal__top { grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
}

.gallery__main {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.gallery__main img { width: 100%; height: 100%; padding: 20px 28px; object-fit: contain; }
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.gallery__thumb {
  width: 84px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.gallery__thumb:hover { opacity: 0.85; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--accent-line); }
.gallery__thumb img { width: 100%; height: 100%; padding: 5px; object-fit: contain; }
.card__media img.is-photo,
.gallery__main img.is-photo,
.gallery__thumb img.is-photo { padding: 0; object-fit: cover; }
.gallery__thumb .ph { padding: 0; }
.gallery__thumb .ph span { display: none; }
.gallery__thumb .ph svg { width: 22px; height: 22px; }

.modal__summary { display: grid; align-content: start; gap: 18px; }
.modal__desc { font-size: 16px; line-height: 1.55; color: var(--text-soft); }
.modal__note {
  padding: 10px 14px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--accent);
}

.modal__subtitle {
  font-family: var(--font);
  margin: clamp(28px, 4vw, 40px) 0 4px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-table { display: grid; }
.spec-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
}
.spec-table dt { color: var(--muted); }
.spec-table dd { overflow-wrap: anywhere; }

.modal__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
}
.modal__foot .btn { flex: 1; }
.modal__foot-note { display: none; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
  .modal__foot-note { display: block; }
  .modal__foot .btn { flex: 0 0 auto; margin-left: auto; }
}

/* ---------- Зменшення анімацій ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
