/* =========================================================
   Design tokens
   ========================================================= */
/* Фірмові кольори Volt Energy:
   помаранчевий #F47629, темно-синій #242835 / #303442, сірий #7B7B7B */
:root {
  /* --- Поверхні: тепла нейтральна шкала, а не чистий сірий --- */
  --bg: #ffffff;
  --bg-secondary: #f6f6f8;
  --bg-tertiary: #ededf1;

  /* --- Текст. Контраст перевірено за WCAG AA (≥4.5:1) --- */
  --text: #1a1d26;            /* 15.8:1 на білому */
  --text-secondary: #6b6b70;  /* 5.4:1 на білому, 4.9:1 на --bg-secondary */
  --text-tertiary: #91919a;   /* тільки для великих написів і декору */

  /* --- Акцент Volt Energy ---
     --accent      — заливки, обведення, великі цифри
     --accent-text — той самий колір, затемнений до AA для дрібного тексту */
  --accent: #F47629;
  --accent-text: #B4500A;     /* 5.2:1 на білому, 4.7:1 на --bg-secondary */

  /* Заливка головної кнопки.
     Фірмовий #F47629 з білим текстом дає лише 2.8:1 — нижче за норму AA.
     Щоб увімкнути доступний варіант, замініть на #BC560C (4.7:1). */
  --accent-fill: #F47629;
  --accent-hover: #DC6113;
  --accent-soft: rgba(244, 118, 41, 0.08);
  --accent-line: rgba(244, 118, 41, 0.22);
  --accent-shadow: rgba(244, 118, 41, 0.28);

  --brand-dark: #1a1d26;
  --brand-dark-2: #242835;

  --border: rgba(26, 29, 38, 0.08);
  --border-strong: rgba(26, 29, 38, 0.14);
  --hairline: rgba(26, 29, 38, 0.06);
  --nav-bg: rgba(255, 255, 255, 0.72);

  --green: #34a853;
  --green-bg: #e6f4ea;
  --green-text: #16702f;      /* 4.9:1 на --green-bg */

  /* --- Радіуси --- */
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 9px;

  /* --- Глибина: багатошарові тіні замість однієї розмитої плями.
         Саме це відрізняє дорогий інтерфейс від дешевого. --- */
  --shadow-1:
    0 1px 2px rgba(26, 29, 38, 0.04),
    0 1px 1px rgba(26, 29, 38, 0.02);
  --shadow-2:
    0 1px 2px rgba(26, 29, 38, 0.04),
    0 4px 10px rgba(26, 29, 38, 0.04),
    0 12px 28px rgba(26, 29, 38, 0.05);
  --shadow-3:
    0 1px 2px rgba(26, 29, 38, 0.05),
    0 8px 20px rgba(26, 29, 38, 0.06),
    0 28px 56px rgba(26, 29, 38, 0.09);
  --shadow-4:
    0 2px 6px rgba(26, 29, 38, 0.06),
    0 16px 36px rgba(26, 29, 38, 0.09),
    0 44px 90px rgba(26, 29, 38, 0.12);

  /* Сумісність зі старими іменами */
  --shadow-card: var(--shadow-2);
  --shadow-card-hover: var(--shadow-3);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter",
          "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Атрибут hidden має вимикати елемент навіть тоді, коли клас
   задає display: grid/flex — інакше він просто ігнорується */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1.0625rem;          /* 17px — базовий кегль SF */
  line-height: 1.55;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;   /* цифри не «стрибають» при зміні значень */
  overflow-x: hidden;
}

img { max-width: 100%; }

/* Виділення тексту у фірмовому кольорі — дрібниця, яку помічають */
::selection { background: rgba(244, 118, 41, 0.22); color: var(--text); }

/* Єдине кільце фокуса для клавіатурної навігації */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Стриманий скролбар замість системного */
@supports (scrollbar-width: thin) {
  html { scrollbar-width: thin; scrollbar-color: rgba(26, 29, 38, 0.22) transparent; }
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(26, 29, 38, 0.18);
  border-radius: 99px;
  border: 3px solid #fff;
}
::-webkit-scrollbar-thumb:hover { background: rgba(26, 29, 38, 0.3); }

/* =========================================================
   Typography
   ========================================================= */
/* Модульна шкала. Чим більший кегль — тим щільніший трекінг
   і тим менший інтерліньяж: так набирає Apple, і саме це читається як «дорого». */
h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.95rem, 4.6vw, 3.05rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.026em;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.021em;
  margin-bottom: 14px;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.017em;
  margin-bottom: 10px;
}

p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 68ch;              /* довжина рядка в межах комфортних 65–75 знаків */
  margin-bottom: 20px;
}

strong { font-weight: 600; color: var(--text); }

/* Надзаголовок із коротким акцентним штрихом */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.text-center .eyebrow::before { display: none; }

.lead {
  font-size: clamp(1.06rem, 1.7vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 64ch;
  letter-spacing: -0.014em;
}

.text-center { text-align: center; }
.text-center p, .text-center .lead { margin-left: auto; margin-right: auto; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 max(24px, 5%);
}
.container--narrow { max-width: 900px; }

.section { padding: clamp(80px, 9vw, 132px) 0; position: relative; }
.section--tight { padding: clamp(56px, 6vw, 84px) 0; }

/* М'який стик секцій: тонка лінія + ледь помітний градієнт замість різкої межі */
.section--secondary {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.section--secondary::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  pointer-events: none;
}
.section--secondary > * { position: relative; }

.section-head { max-width: 780px; margin: 0 auto clamp(44px, 5vw, 68px); }

.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 60px;
  background-color: transparent;
  z-index: 9999;
  border-bottom: 1px solid transparent;
  display: flex;
  align-items: center;
  transition: background-color 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}

/* Прозора над першим екраном, скляна — після прокрутки */
.nav.is-scrolled {
  background-color: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: var(--border);
}

.nav__inner {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 26px; width: auto; display: block; }

.nav__links { display: flex; gap: 4px; }

/* Пункт меню з підкресленням, що виростає від центру */
.nav__link {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-size: 0.855rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  white-space: nowrap;
  padding: 10px 13px;
  border-radius: 8px;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.nav__link:hover { color: var(--accent-text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background-color: var(--text);
  color: #fff;
  border-radius: 980px;
  padding: 0 20px;
  font-size: 0.855rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: -0.012em;
  white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.nav__cta:hover {
  background-color: var(--accent);
  box-shadow: 0 4px 14px var(--accent-shadow);
}
.nav__cta:active { background-color: var(--accent-hover); }

.nav__burger {
  display: none;
  width: 34px; height: 34px;
  border: 0; background: none; cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute; left: 7px; right: 7px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span:nth-child(1) { top: 12px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background-color: var(--bg-secondary);
  padding-top: 140px;
}

.hero__subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  max-width: 850px;
  margin: 0 auto 35px;
}

.hero__product {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-top: 50px;
}

.hero__product img {
  width: 100%;
  max-width: 1300px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.15));
  opacity: 0;
  transform: translateY(120px);
  animation: riseUp 1s var(--ease) forwards 0.2s;
}

/* Фото у сцені (а не вирізаний продукт на прозорому фоні) */
.hero__product--photo { padding: 0 5%; }
.hero__product--photo img {
  max-width: 1120px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  filter: none;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.12);
}

@keyframes riseUp { to { transform: translateY(0); opacity: 1; } }

/* Compact hero for inner pages */
.subhero {
  background: var(--bg-secondary);
  padding: 130px 0 70px;
  border-bottom: 1px solid var(--border);
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;                /* комфортна ціль для пальця */
  padding: 14px 30px;
  border-radius: 980px;
  font-size: 1.0125rem;
  font-weight: 550;
  font-family: inherit;
  letter-spacing: -0.014em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.28s var(--ease-out),
              box-shadow 0.28s var(--ease-out),
              transform 0.28s var(--ease-out),
              color 0.28s var(--ease-out);
}

.btn--primary {
  background-color: var(--accent-fill);
  color: #fff;
  box-shadow: 0 1px 2px rgba(26, 29, 38, 0.1),
              0 6px 18px var(--accent-shadow);
}
.btn--primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 2px 4px rgba(26, 29, 38, 0.12),
              0 12px 30px var(--accent-shadow);
  transform: translateY(-1px);
}
.btn--primary:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(26, 29, 38, 0.12); }

.btn--secondary {
  background-color: transparent;
  color: var(--accent-text);
  padding-left: 12px;
  padding-right: 12px;
}
.btn--secondary:hover { color: var(--accent-hover); }

.btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}
.btn--ghost:hover {
  border-color: var(--text);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; padding: 18px 42px; font-size: 1.075rem; }

.btn-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hairline);   /* волосяна межа тримає форму краще за тінь */
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-2);
  transition: transform 0.42s var(--ease),
              box-shadow 0.42s var(--ease),
              border-color 0.42s var(--ease);
}

.card--flat {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow-1);
}
.section--secondary .card--flat { background: #fff; }

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
  border-color: var(--border);
}
.card--flat:hover { box-shadow: var(--shadow-2); }

.card__title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.019em;
  margin-bottom: 10px;
}
.card__desc {
  font-size: 0.985rem;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
  max-width: none;
}

.card--icon { display: flex; gap: 20px; align-items: flex-start; }
.card__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* =========================================================
   Feature rows
   ========================================================= */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}
.feature-row:nth-of-type(even) { flex-direction: row-reverse; }
.feature-row__content { flex: 1; }
.feature-row__media { flex: 1.1; border-radius: var(--radius-lg); overflow: hidden; }
.feature-row__media img { width: 100%; height: auto; display: block; }

/* =========================================================
   Stats
   ========================================================= */
/* Волосяні роздільники між показниками — читається як приладова панель */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  text-align: center;
  margin-top: clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Значення притиснуті донизу, підпис має фіксовану висоту —
   так базові лінії збігаються навіть коли текст різної довжини */
.stats > * {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 3vw, 38px) 14px;
  border-left: 1px solid var(--hairline);
}
.stats > *:first-child { border-left: 0; }
.stats--4 { grid-template-columns: repeat(4, 1fr); }

.stat__val {
  margin-top: auto;
  font-size: clamp(1.7rem, 3.1vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.06;
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  text-wrap: balance;
}
.stat__label {
  font-size: 0.695rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;   /* два рядки — щоб підписи стояли на одній лінії */
}

/* =========================================================
   Catalogue — "Вибір рішення"
   ========================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 45px;
}

.filter {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  letter-spacing: -0.012em;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 980px;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: all 0.28s var(--ease-out);
}
.filter:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.filter.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.catalogue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.model-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.45s var(--ease),
              box-shadow 0.45s var(--ease),
              border-color 0.45s var(--ease);
}
.model-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-3);
  border-color: var(--accent-line);
}
.model-card[hidden] { display: none; }

.model-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.model-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s var(--ease);
}
.model-card:hover .model-card__media img { transform: scale(1.035); }

/* Скляна плашка з тонкою внутрішньою межею — тримає контраст на будь-якому фото */
.model-card__tag {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
              0 2px 8px rgba(26, 29, 38, 0.12);
  color: var(--text);
  font-size: 0.685rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 980px;
}

.model-card__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-card__name {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.026em;
  margin-bottom: 5px;
}

.model-card__spec {
  font-size: 0.95rem;
  color: var(--accent-text);
  font-weight: 600;
  letter-spacing: -0.012em;
  margin-bottom: 14px;
}

.model-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 18px;
  max-width: none;
  flex: 1;
}

.model-card__bullets {
  list-style: none;
  margin: 0 0 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.model-card__bullets li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.5;
}
.model-card__bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.model-card__more {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--accent-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.model-card__more span { transition: transform 0.3s var(--ease); }
.model-card:hover .model-card__more span { transform: translateX(4px); }

.catalogue-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}

/* =========================================================
   Model detail page
   ========================================================= */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

.model-hero { display: flex; gap: 60px; align-items: center; }
.model-hero__media {
  flex: 1.1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-4);
}
.model-hero__media img { width: 100%; display: block; }
.model-hero__content { flex: 1; }

.model-hero__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 30px;
}
.pill {
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 9px 17px;
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  background: #fff;
  box-shadow: var(--shadow-1);
}
.pill--accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-text);
  font-weight: 600;
  box-shadow: none;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 17px 6px;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.975rem;
  line-height: 1.5;
  vertical-align: top;
}
.spec-table tr:hover th, .spec-table tr:hover td { background: rgba(26, 29, 38, 0.018); }
.spec-table th {
  font-weight: 500;
  color: var(--text-secondary);
  width: 45%;
}
.spec-table td { font-weight: 500; }

.doc-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  background: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.doc-link:hover { background: var(--bg-secondary); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.doc-link__meta { color: var(--text-secondary); margin-left: 4px; }
.doc-link svg:last-child { margin-left: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  color: var(--green-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  border-radius: 980px;
}
.badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.25);
}

.check-list { list-style: none; }
.check-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-2);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.gallery img:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-3);
}

/* =========================================================
   Interactive map
   ========================================================= */
.map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map__bg {
  width: 110%; height: 110%;
  object-fit: contain;
  filter: invert(0.6) opacity(0.15) grayscale(100%);
  pointer-events: none;
}

.map__dot {
  position: absolute;
  width: 14px; height: 14px;
  background-color: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 0; padding: 0;
  box-shadow: 0 0 0 4px rgba(242, 133, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}
/* Невидима зона натискання 44×44 навколо крапки */
.map__dot::before {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
}
.map__dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse 2s infinite var(--ease);
  opacity: 0.6;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}
.map__dot:hover, .map__dot.is-active {
  background-color: #fff;
  box-shadow: 0 0 0 5px var(--accent);
  z-index: 3;
}

.map__tooltip {
  position: absolute;
  bottom: 24px; left: 24px;
  width: calc(100% - 48px);
  max-width: 320px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  pointer-events: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s var(--ease);
  z-index: 10;
}
.map__tooltip.is-visible { opacity: 1; transform: translateY(0); }
.map__tooltip h4 { font-size: 1.05rem; margin-bottom: 4px; }
.map__tooltip p { font-size: 0.85rem; margin: 0; line-height: 1.4; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { max-width: 860px; margin: 0 auto; }

.faq__item { border-bottom: 1px solid var(--border); }
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__q {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 25px 6px;
  font-size: 1.06rem;
  font-weight: 550;
  letter-spacing: -0.016em;
  cursor: pointer;
  user-select: none;
  transition: color 0.25s ease;
}
.faq__q:hover { color: var(--accent-text); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.faq__item[open] .faq__q { color: var(--accent-text); }
.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding: 0 4px 24px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}
.faq__a p { font-size: inherit; max-width: none; margin: 0; }
.faq__a p + p, .faq__a ul { margin-top: 12px; }
.faq__a ul { padding-left: 20px; line-height: 1.9; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 44px 50px;
}
.footer__brand { display: flex; gap: 26px; align-items: center; }
.footer__brand img {
  height: 32px;
  filter: grayscale(100%) opacity(0.6);
}
.footer__about {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}
.footer__col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__col ul {
  list-style: none;
  line-height: 1.65;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer__col li + li { margin-top: 8px; }
.footer__col a {
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-block;
  padding: 5px 0;
  transition: color 0.25s ease;
}
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.footer__bottom a { color: var(--text-secondary); text-decoration: none; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

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

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .catalogue { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 24px 10px; }
}

@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .feature-row, .model-hero { flex-direction: column !important; gap: 30px; }
  .grid--2, .grid--3, .gallery { grid-template-columns: 1fr; }
  .card { padding: 30px; }
}

@media (max-width: 768px) {
  .nav__burger { display: block; }
  .nav__cta { display: none; }

  .nav__links {
    position: fixed;
    top: 54px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 5% 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    max-height: calc(100vh - 54px);
    overflow-y: auto;
  }
  .nav.is-open .nav__links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__link {
    font-size: 1rem;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav__link--cta {
    color: var(--accent);
    font-weight: 600;
    border-bottom: 0;
  }

  .hero { padding-top: 110px; min-height: auto; padding-bottom: 40px; }
  .hero__product { margin-top: 34px; }
  .subhero { padding: 100px 0 50px; }

  .catalogue { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__top { flex-direction: column; gap: 30px; }
}

/* =========================================================
   Картки офісів у блоці контактів
   ========================================================= */
.office { padding: clamp(28px, 3vw, 38px); }
.office .eyebrow { margin-bottom: 12px; }

.office__city {
  font-size: 1.6rem;
  letter-spacing: -0.026em;
  margin-bottom: 12px;
}

.office__address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.office__note { color: var(--text-tertiary); font-size: 0.88rem; }

.office__rows { margin-top: 24px; border-top: 1px solid var(--hairline); }

.office__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.94rem;
}
.office__row:last-child { border-bottom: 0; }
.office__row dt { color: var(--text-secondary); }
.office__row dd { font-weight: 500; line-height: 1.55; }
.office__row a {
  color: var(--text);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}
.office__row a:hover { color: var(--accent-text); }

@media (max-width: 560px) {
  .office__row { grid-template-columns: 1fr; gap: 4px; }
  .office__row dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
}

/* =========================================================
   Форма заявки (діалог)
   ========================================================= */
.order {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  /* Глобальний скидач ставить margin:0 усім елементам і ламає
     центрування нативного <dialog> — повертаємо auto явно */
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: var(--shadow-4);
  overflow: visible;
  color: var(--text);
}
.order::backdrop {
  background: rgba(16, 18, 24, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.order__inner {
  padding: clamp(28px, 4vw, 44px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: inherit;
}

.order__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.order__close:hover { background: var(--bg-secondary); color: var(--text); }

.order__head { text-align: center; margin-bottom: 26px; }

.order__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--accent);
  background: var(--accent-soft);
}
.order__mark--done { color: var(--green); background: var(--green-bg); }

.order__title {
  font-size: clamp(1.25rem, 2.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.022em;
  margin-bottom: 10px;
}

.order__sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 42ch;
}

.order__fields { display: grid; gap: 10px; }

.order__field { display: block; }

/* Підпис лишається для скрінрідерів, візуально працює placeholder */
.order__sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.order__control {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.012em;
  color: var(--text);
  background: var(--bg-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  appearance: none;
}
.order__control::placeholder { color: var(--text-tertiary); }
.order__control:hover { background: var(--bg-tertiary); }
.order__control:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea.order__control { min-height: 92px; resize: vertical; line-height: 1.5; }

/* Стрілка селекта малюється фоном, щоб не залежати від системного вигляду */
.order__control--select {
  cursor: pointer;
  padding-right: 46px;
  background-image:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b6b70' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.order__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 20px 0 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.order__consent input { position: absolute; opacity: 0; pointer-events: none; }
.order__check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: #fff;
  position: relative;
  transition: all 0.2s var(--ease-out);
}
.order__check::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.2s var(--ease-out);
}
.order__consent input:checked + .order__check {
  background: var(--accent);
  border-color: var(--accent);
}
.order__consent input:checked + .order__check::after { transform: rotate(45deg) scale(1); }
.order__consent input:focus-visible + .order__check {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.order__error {
  font-size: 0.875rem;
  color: #c0392b;
  background: #fdecea;
  border-radius: var(--radius-xs);
  padding: 11px 14px;
  margin: 14px 0 0;
  max-width: none;
}
.order__error a { color: inherit; font-weight: 600; }

.order__submit { margin-top: 18px; }

.order__done { text-align: center; padding: 10px 0; }
.order__done .btn { margin-top: 22px; }

@media (max-width: 560px) {
  .order { width: calc(100vw - 20px); border-radius: var(--radius-lg); }
  .order__mark { width: 54px; height: 54px; }
}

/* Пастка для спам-ботів — не показуємо й ховаємо від скрінрідерів */
.order__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
