/* ==========================================================================
   ПС-2017 — стилі головної сторінки
   Референс-макет 1920×1080. Розміри шрифтів наведені в CSS-пікселях
   (значення з Canva × 1.333 — див. «Правки к ТЗ», правка 6).
   ========================================================================== */

:root {
  /* Один синій на весь сайт: заливки, лінії, підкреслення, акценти.
     Скасовує поділ на два відтінки з правки 3 — за рішенням замовника. */
  --blue: #0400CF;

  /* Єдиний боковий відступ для всіх секцій (правка 1): 262.9px */
  --side-padding: 13.7vw;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PT Sans Narrow", Arial, sans-serif;
}

/* ==========================================================================
   Кнопки — спільний компонент для всіх секцій
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 0.95vw, 18px) clamp(24px, 2.1vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  /* «Скло»: розмиває те, що під кнопкою, плюс світла кромка зверху —
     вона імітує заломлення на краю панелі */
  background-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22),
              0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35),
              0 10px 28px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Заливка */
/* Синя кнопка — теж скло, але з кольоровою заливкою */
.btn--primary,
.btn.primary {
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(4, 0, 207, 0.45);
}

.btn--primary:hover,
.btn--primary:focus-visible,
.btn.primary:hover,
.btn.primary:focus-visible {
  background-color: rgba(4, 0, 207, 0.72);
}

/* Контурна */
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--blue);
  background-color: rgba(4, 0, 207, 0.15);
}


/* ==========================================================================
   Шапка сайту
   Фіксована, поверх Hero: перший екран лишається на весь екран. Над фото
   прозора з легким затемненням, при прокручуванні стає чорною.
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

/* Щоб фіксована шапка не накривала заголовок секції при переході по якорю */
#about,
#catalog,
#capacity,
#contact {
  scroll-margin-top: clamp(72px, 8vh, 104px);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.1));
  /* Поки шапка прозора — вона скляна: розмиває фото під собою.
     Заодно розв'язує стару проблему читабельності навігації
     над світлими ділянками знімка. */
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background-color 0.3s ease, border-color 0.3s ease,
              backdrop-filter 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Стан після прокручування */
.header.is-scrolled {
  background-color: #000000;
  background-image: none;
  /* Нижче Hero під шапкою суцільний чорний: розмивати нічого,
     тож скло вимикаємо і не витрачаємо ресурс на ефект */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: #1a1a1a;
}

/* --- Службова смуга ------------------------------------------------------- */

.header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--side-padding);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__phone {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__phone:hover {
  color: #ffffff;
}

/* --- Основна смуга -------------------------------------------------------- */

.header__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 64px);
  padding: clamp(12px, 1.2vw, 20px) var(--side-padding);
}

.header__logo {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.header__logo span {
  color: var(--blue);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.9vw, 38px);
}

.header__link {
  position: relative;
  padding-bottom: 4px;
  font-size: clamp(12px, 0.78vw, 15px);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Підкреслення виїжджає при наведенні */
.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: var(--blue);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.header__link:hover,
.header__link:focus-visible,
.header__link.is-active {
  color: #ffffff;
}

.header__link:hover::after,
.header__link:focus-visible::after,
.header__link.is-active::after {
  transform: scaleX(1);
}

.header__link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

/* --- Бургер --------------------------------------------------------------- */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.header__burger span {
  display: block;
  height: 2px;
  width: 24px;
  margin-inline: auto;
  background-color: #ffffff;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Мобільне меню -------------------------------------------------------- */

.header__mobile {
  display: none;
  flex-direction: column;
  gap: 28px;
  padding: 32px 24px 48px;
  background-color: #000000;
  border-top: 1px solid #1a1a1a;
}

.header__mobile nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header__mobile-link {
  padding: 10px 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  font-size: 28px;
  line-height: 1.1;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
}

.header__mobile-phone {
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}

.header__mobile-locale {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1200px) {
  .header__utility,
  .header__main {
    padding-inline: 6vw;
  }
}

@media (max-width: 900px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__utility,
  .header__main {
    padding-inline: 24px;
  }

  .header.is-open .header__mobile {
    display: flex;
  }

  /* Меню розгорнуте — шапка завжди чорна, інакше текст ліг би на фото */
  .header.is-open {
    background-color: #000000;
    background-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .header__link::after,
  .header__burger span {
    transition: none;
  }
}

/* ==========================================================================
   Секція 1 — Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  background-color: #0a0a0a;
  background-image: url("images/hero-bg.jpg");
  background-image: image-set(url("images/hero-bg.webp") type("image/webp"),
                              url("images/hero-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 25%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.25) 100%);
}

/* Контент на всю ширину з боковим padding — так лівий край підзаголовка
   стає на одну вертикаль із заголовками секцій 2 і 3 (правка 1) */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* 30vh, а не 35vh із прози ТЗ: у самій таблиці координат верх kicker'а
     стоїть на Y=323.8 (29.98vh). Зі збільшеними кеглями блок став вищим,
     і 35vh виштовхували кнопку за нижній край екрана. */
  padding-top: 30vh;
  padding-inline: var(--side-padding);
}

/* Підзаголовок і кнопки — у тому ж стилі, що інтро секції «Виробничі
   потужності»: спокійний кегль 24px замість 41.3px і приглушений білий.
   Свідомо відходить від правки 6 — на прохання замовника. */

/* Kicker — надзаголовок, як мітка стрічки галузей і «Власне виробництво» */
.hero__kicker {
  margin: 0;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  /* Світліший за #666 сусідніх міток: ті лежать на чистому чорному, а ця —
     на фото, де #666 дає контраст 2.3:1 і текст майже зникає. Тут 6.3:1. */
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* Обгортка завширшки із заголовком: підзаголовок починається рівно
   під «П» у «ПРОМИСЛОВИЙ», а не з краю контейнера */
.hero__headline {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.hero__title {
  margin: clamp(24px, 3.84vw, 74px) 0 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  /* Кегль підібрано по ширині рядка, а не по числу з ТЗ (правка 7): Oswald
     помітно ширший за макетний Bebas — «ПРОМИСЛОВИЙ СОЮЗ 2017» при 173.3px
     займає ~1889px при доступних 1394px і рветься на два рядки.
     При 126px рядок ~1373px і лишається одним, як у макеті. */
  font-size: clamp(42px, 6.56vw, 126px);
  line-height: 1;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.hero__title span {
  color: var(--blue);
}

.hero__subtitle {
  /* width: 0 + min-width: 100% — підзаголовок заповнює ширину обгортки,
     але не розширює її собою, тож обгортка лишається завширшки з заголовком */
  width: 0;
  min-width: 100%;
  margin: clamp(14px, 1.98vw, 38px) 0 0;
  font-weight: 400;
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 1.2vw, 24px);
  margin-top: clamp(18px, 2.47vw, 47px);
}

@media (max-width: 768px) {
  .hero__content {
    padding-inline: 24px;
  }

  .hero__headline {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(36px, 11vw, 60px);
    white-space: normal;
  }

  .hero__break {
    display: none;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
}

/* ==========================================================================
   Секція 2 — «Хто ми?»
   ========================================================================== */

.about {
  position: relative;
  min-height: 100vh;
  /* Без overflow: hidden — на низькому екрані (напр. 1920×900) текст інакше
     обрізався б. Фон і оверлей і так не виходять за межі секції. */

  background-color: #000000;
  background-image: url("images/about-bg.jpg");
  background-image: image-set(url("images/about-bg.webp") type("image/webp"),
                              url("images/about-bg.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.about__content {
  position: relative;
  z-index: 2;
  /* 20vh замість макетних 22.6vh: звільняє місце під кнопку,
     інакше блок не вміщується у 100vh і обрізався б по overflow */
  padding-top: 20vh;
  padding-bottom: 8vh;
  padding-left: var(--side-padding);
  /* Ширша колонка й менший кегль, ніж у макеті (840px / 37.3px): при тих
     значеннях у рядок влазило лише ~59 символів — текст виглядав вузьким
     і крупним. Тепер ~98, як у зручнішому вигляді на вужчому вікні.
     content-box — щоб боковий відступ не з'їдав ширину самої колонки. */
  box-sizing: content-box;
  width: 56vw;
  max-width: 1080px;
}

.about__title {
  margin: 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 96px);
  line-height: 1;
  color: #ffffff;
  text-align: left;
}

.about__text {
  margin: clamp(14px, 1.8vw, 34px) 0 0;
  font-weight: 400;
  font-size: clamp(15px, 1.5vw, 29px);
  /* У макеті інтерліньяж 42px. Правка 6 масштабує лише кегль, а 42px —
     виміряна величина, тож коефіцієнт тут 42/37.3 ≈ 1.13, а не 1.5.
     Піднято до 1.2 заради читабельності — з 1.5 текст не вміщувався в екран. */
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.75);
  text-align: justify;
}

.about__text + .about__text {
  margin-top: 1.5em;
}

.about__cta {
  margin-top: clamp(20px, 2.4vw, 40px);
}

@media (max-width: 1200px) {
  .about__content {
    padding-left: 6vw;
    width: 64vw;
    max-width: none;
  }
}

@media (max-width: 768px) {
  .about__content {
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
  }

  .about__title {
    font-size: clamp(32px, 9vw, 48px);
  }

  .about__text {
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
  }

  .about__overlay {
    background-image: none;
    background-color: rgba(0, 0, 0, 0.7);
  }
}


/* ==========================================================================
   Смуга «Завод у цифрах» — між «Хто ми?» і «Що ми виробляємо?»
   Низька, на чорному: чотири цифри в ряд, пауза перед повноекранною
   секцією продукції. Іконки сині — той самий акцент, що номери 01–06.
   ========================================================================== */

.stats {
  background-color: #000000;
  color: #ffffff;
  padding: clamp(40px, 7vh, 80px) var(--side-padding);
  border-bottom: 1px solid #1a1a1a;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.stats__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: clamp(16px, 2.2vw, 42px);
  border-left: 1px solid #1a1a1a;
}

/* Перший пункт — рівно на лівій вертикалі сайту, без лінії перед ним */
.stats__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.stats__icon {
  width: clamp(30px, 2.3vw, 44px);
  height: auto;
  margin-bottom: clamp(14px, 1.4vw, 26px);
  color: var(--blue);
}

.stats__num {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  font-size: clamp(36px, 3.75vw, 72px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats__label {
  margin-top: 8px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1200px) {
  .stats {
    padding-inline: 6vw;
  }
}

@media (max-width: 768px) {
  .stats {
    padding: 48px 24px;
  }

  .stats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  /* Два стовпці: лінія лишається тільки між ними */
  .stats__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
}


/* ==========================================================================
   Секція 3 — «Що ми виробляємо?»
   Дві колонки: ліворуч заголовок і список категорій, праворуч фото, яке
   змінюється при наведенні. На фоні — креслення з паралаксом.
   ========================================================================== */

.make {
  --make-gap: clamp(32px, 5vw, 120px);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: #000000;
  padding: 11vh var(--side-padding) 6vh;
}

/* --- Шар із кресленнями --------------------------------------------------- */

.make__bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.make__bg img {
  position: absolute;
  /* screen робить чорне тло файлів прозорим — лишаються самі білі лінії
     і заодно ховаються артефакти JPEG навколо них */
  mix-blend-mode: screen;
  opacity: 0.18;
}

.make__bg img:nth-child(1)  { top:  2%; left:  3%; width:  9vw; transform: rotate(-8deg); }
.make__bg img:nth-child(2)  { top:  9%; left: 21%; width:  7vw; transform: rotate(12deg); }
.make__bg img:nth-child(3)  { top:  1%; left: 37%; width: 10vw; transform: rotate(5deg); }
.make__bg img:nth-child(4)  { top:  5%; left: 54%; width:  8vw; transform: rotate(-15deg); }
.make__bg img:nth-child(5)  { top:  0%; left: 71%; width:  9vw; transform: rotate(10deg); }
.make__bg img:nth-child(6)  { top:  4%; left: 88%; width:  7vw; transform: rotate(-6deg); }
.make__bg img:nth-child(7)  { top: 29%; left:  1%; width: 10vw; transform: rotate(14deg); }
.make__bg img:nth-child(8)  { top: 38%; left: 92%; width:  8vw; transform: rotate(-10deg); }
.make__bg img:nth-child(9)  { top: 54%; left: 11%; width:  7vw; transform: rotate(8deg); }
.make__bg img:nth-child(10) { top: 62%; left: 33%; width:  9vw; transform: rotate(-12deg); }
.make__bg img:nth-child(11) { top: 71%; left: 47%; width:  8vw; transform: rotate(6deg); }
.make__bg img:nth-child(12) { top: 57%; left: 77%; width: 10vw; transform: rotate(-8deg); }
.make__bg img:nth-child(13) { top: 84%; left:  7%; width:  8vw; transform: rotate(10deg); }
.make__bg img:nth-child(14) { top: 87%; left: 61%; width:  9vw; transform: rotate(-14deg); }

/* --- Сітка: список ліворуч, кадр праворуч --------------------------------- */

.make__inner {
  position: relative;
  z-index: 1;
  display: grid;
  /* Заголовок і список — у першій колонці, кадр — у другій, але в тому
     самому рядку, що й список. Верх фото сам стає врівень із першим
     пунктом, низ — з останнім: жодних підгінних відступів. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 30vw);
  column-gap: var(--make-gap);
}

.make__title {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 clamp(16px, 1.8vw, 34px);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  /* 72px, а не «виправлені» 96px із правки 6: у Oswald рядок при 96px
     займає 886px, а колонка — 684px, і заголовок рветься надвоє.
     При 72px він якраз в один рядок, як у макеті (правка 7). */
  font-size: clamp(28px, 3.75vw, 72px);
  line-height: 1;
  color: #ffffff;
}

/* --- Список категорій ----------------------------------------------------- */

.make__list {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.make__list li {
  position: relative;
  padding-bottom: clamp(5px, 0.47vw, 9px);
  margin-bottom: clamp(5px, 0.47vw, 9px);
}

/* Тонка постійна лінійка — вона робить із дев'яти назв покажчик,
   а не розсип посилань */
.make__list li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.13);
}

/* Синя лінія наведеного пункту. Виходить за праву межу колонки рівно на
   ширину проміжку — тобто впирається в лівий край кадру і зв'язує назву
   з фотографією. Наростає зліва направо, звідти ж приїздить і опис. */
.make__list li::after {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * var(--make-gap));
  bottom: 0;
  height: 2px;
  background-image: linear-gradient(90deg,
    var(--blue) 0%,
    var(--blue) 58%,
    rgba(4, 0, 207, 0.25) 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease-out);
}

.make__list li.is-active::after {
  transform: scaleX(1);
}

.make__item {
  display: inline-block;
  /* Менше за 46.7px із правки 6: при тому кеглі дев'ять пунктів впритул
     вміщувались лише на екрані рівно 1080px, а на ноутбуці вже вилазили. */
  font-size: clamp(16px, 1.75vw, 34px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.25s ease;
}

.make__item:hover,
.make__item:focus-visible,
.make__item.is-active {
  color: #ffffff;
}

.make__item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
}

/* --- Кадр ----------------------------------------------------------------- */

.make__media {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  margin: 0;
  overflow: hidden;
}

.make__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* Ч/б за замовчуванням, колір — коли читач у секції */
  filter: grayscale(100%);
  transform: scale(1);
  transition: opacity 0.4s ease, filter 0.5s ease, transform 0.6s var(--ease-out);
}

.make__photo.is-active {
  opacity: 1;
}

/* Колір вмикається і від наведення на сам кадр, і від наведення на список:
   .make__media стоїть у розмітці після .make__list, тому «~» працює */
.make__media:hover .make__photo.is-active,
.make__list:hover ~ .make__media .make__photo.is-active {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Категорія без фото: креслення того ж виробу на технічному аркуші.
   Файл — білі лінії на прозорому, аркуш із сіткою малює CSS, тож кадр
   лишається кадром і синій лінії є в що впертися. Низ поля більший —
   там лежить скляна смуга з описом. */
.make__photo--drawing {
  object-fit: contain;
  padding: 6% 10% 22%;
  filter: none;
  background-color: #07070b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Опис категорії. Без JS усі дев'ять просто стоять у списку під назвами;
   скрипт ховає їх там і показує активний тут, на кадрі. */
.make__note {
  display: block;
  max-width: 34em;
  margin-top: 6px;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.make.is-js .make__note {
  display: none;
}

/* Скляна смуга на кадрі: текст стоїть на зображенні, а не висить
   у порожнечі під ним. Приїздить зліва — услід за синьою лінією. */
.make__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(13px, 1.05vw, 20px) clamp(15px, 1.25vw, 24px);
  font-size: clamp(13px, 0.88vw, 17px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  background-color: rgba(6, 6, 10, 0.5);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.make__caption.is-visible {
  opacity: 1;
  transform: translateX(0);
  /* трохи пізніше за лінію: спершу вона доходить до кадру, потім текст */
  transition-delay: 0.12s;
}

/* Там, де скла немає, смуга просто щільніша */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .make__caption {
    background-color: rgba(6, 6, 10, 0.82);
  }
}

/* На тач-екранах наведення немає — показуємо кольорове одразу */
@media (hover: none) {
  .make__photo {
    filter: none;
  }
}

/* --- Послуги -------------------------------------------------------------- */

.make__services {
  position: relative;
  z-index: 1;
  margin-top: clamp(24px, 3vh, 44px);
  padding-top: clamp(18px, 2.2vh, 28px);
  border-top: 1px solid #1a1a1a;
}

.make__services-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

.make__services-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Проміжок між послугами — великий; між ромбом і його словами —
     маленький (нижче). Інакше п'ять пунктів не стають в один рядок. */
  gap: clamp(14px, 1.5vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.make__services-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  /* На вузину рядок і так впритул — 18px лишає запас, щоб п'ять послуг
     не переносилися через дрібну різницю у відмальовуванні шрифту */
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}

/* Ромб перед кожним пунктом — той самий мотив, що у стрічці галузей.
   Саме перед, а не між: інакше при переносі рядка після останнього
   пункту висів би самотній роздільник. */
.make__services-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background-color: var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1200px) {
  .make {
    padding-inline: 6vw;
  }

  .make__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 40vw);
  }
}

@media (max-width: 768px) {
  .make {
    min-height: 0;
    padding: 64px 24px;
  }

  .make__inner {
    grid-template-columns: 1fr;
  }

  .make__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .make__item {
    font-size: 18px;
  }

  .make__list li {
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  /* Кадру немає — лінії нема куди тягтися за межу колонки */
  .make__list li::after {
    right: 0;
  }

  /* На вузькому екрані ромби між послугами тільки заважають */
  .make__services-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .make__services-list li {
    gap: 10px;
  }

  /* Наведення на тач-екрані немає — кадр прибираємо,
     пункти працюють як посилання на розділи каталогу,
     а опис лишається під кожним із них */
  .make__media {
    display: none;
  }

  .make.is-js .make__note {
    display: block;
  }

  /* Паралакс на слабких пристроях помітно підгальмовує скрол */
  .make__bg {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .make__bg {
    transform: none !important;
  }
}

/* ==========================================================================
   Секція 4 — «Галузі застосування», рухома стрічка
   Навмисно низька (~250px проти 1080px у сусідів): дає паузу між двома
   повноекранними секціями. Переіснуючий блок — можна ставити і в каталог.
   ========================================================================== */

.ticker {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: #000000;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}

.ticker__label {
  padding: 0 var(--side-padding) 28px;
  font: 400 15px/1 "PT Sans Narrow", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

/* Стрічка йде від краю до краю, без бокових відступів —
   інакше губиться відчуття нескінченності */
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
  will-change: transform;
}

.ticker:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 0 40px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  font-size: clamp(24px, 2.6vw, 50px);
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
}

/* Синій ромб-роздільник */
.ticker__item::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--blue);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Розтушовка по краях: слова розчиняються, а не обрубуються */
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18vw;
  z-index: 2;
  pointer-events: none;
}

.ticker::before {
  left: 0;
  background: linear-gradient(90deg, #000000, transparent);
}

.ticker::after {
  right: 0;
  background: linear-gradient(270deg, #000000, transparent);
}

/* Трек їде рівно на -50% своєї ширини: у момент перезапуску друга копія
   стоїть точно там, де була перша, тому стик непомітний */
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 1200px) {
  .ticker {
    padding: 40px 0;
  }

  .ticker__item {
    font-size: 32px;
    padding: 0 28px;
  }

  .ticker__item::after {
    width: 8px;
    height: 8px;
  }

  .ticker::before,
  .ticker::after {
    width: 22vw;
  }
}

@media (max-width: 768px) {
  .ticker {
    padding: 32px 0;
  }

  .ticker__label {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ticker__item {
    font-size: 24px;
    padding: 0 20px;
    gap: 40px;
  }

  /* Швидкість не міняємо: трек рухається в пікселях,
     тож візуальна швидкість на мобільному та сама */
  .ticker::before,
  .ticker::after {
    width: 25vw;
  }
}

/* Рух вимикається повністю — стрічка стає звичайним списком */
@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    padding: 0 var(--side-padding);
  }

  /* Переносити треба саме групу: це вона містить пункти, а трек має
     лише одну дитину, тож wrap на треку сам по собі нічого не дає
     і хвіст списку просто обрізався б по overflow */
  .ticker__group {
    flex-wrap: wrap;
    flex-shrink: 1;
  }

  .ticker__group:last-child {
    display: none;
  }

  .ticker__item {
    padding: 0 40px 20px 0;
  }

  /* Нічого не рухається і не обрубується — розтушовка лише гасила б
     перше й останнє слово */
  .ticker::before,
  .ticker::after {
    display: none;
  }
}
/* ==========================================================================
   Секція 5 — «Виробничі потужності», акордеон
   Шість дільниць, ~4500 символів тексту. Згорнутий стан — шість рядків:
   номер, відділ, під ним дільниця. Розкривається по одному пункту.
   Без JS усі панелі просто відкриті — текст не губиться.
   ========================================================================== */

.capacity {
  background-color: #000000;
  color: #ffffff;
  padding: 12vh var(--side-padding);
}

.capacity__eyebrow {
  margin: 0 0 24px;
  font: 400 15px/1 "PT Sans Narrow", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

.capacity__title {
  margin: 0 0 clamp(20px, 2.2vw, 40px);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 96px);
  line-height: 1;
}

.capacity__intro {
  max-width: 900px;
  margin: 0 0 clamp(32px, 5vh, 72px);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

/* --- Рядок акордеона ------------------------------------------------------ */

.capacity__item {
  border-top: 1px solid #1a1a1a;
}

.capacity__list .capacity__item:last-child {
  border-bottom: 1px solid #1a1a1a;
}

.capacity__item.is-open {
  border-top-color: var(--blue);
}

.capacity__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: clamp(16px, 2vw, 40px);
  align-items: start;
  width: 100%;
  padding: clamp(18px, 2.4vh, 30px) 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.capacity__head:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.capacity__num {
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  font-size: clamp(14px, 1vw, 20px);
  line-height: 1.6;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.capacity__name {
  display: block;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(22px, 2.3vw, 44px);
  line-height: 1.05;
}

/* Назва дільниці — саме вона робить згорнутий рядок інформативним */
.capacity__unit {
  display: block;
  margin-top: 6px;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-size: clamp(14px, 1.05vw, 20px);
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.capacity__head:hover .capacity__unit,
.capacity__item.is-open .capacity__unit {
  color: rgba(255, 255, 255, 0.8);
}

/* Плюс, що перетворюється на мінус */
.capacity__toggle {
  position: relative;
  width: 22px;
  height: 22px;
  margin-top: clamp(4px, 0.6vw, 12px);
}

.capacity__toggle::before,
.capacity__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--blue);
  transform: translateY(-50%);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.capacity__toggle::after {
  transform: translateY(-50%) rotate(90deg);
}

.capacity__item.is-open .capacity__toggle::after {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

/* Без JS кнопка нічого не робить — не вдаємо, що вона клікабельна */
.capacity:not(.is-js) .capacity__toggle {
  display: none;
}

.capacity:not(.is-js) .capacity__head {
  cursor: default;
}

/* --- Панель з описом ------------------------------------------------------ */

.capacity__panel {
  display: grid;
  grid-template-rows: 1fr;
}

.capacity__panel > div {
  overflow: hidden;
}

/* Згортається лише коли скрипт відпрацював */
.capacity.is-js .capacity__panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease-out);
}

.capacity.is-js .capacity__item.is-open .capacity__panel {
  grid-template-rows: 1fr;
}

/* Дві колонки: так відкрита панель не витягується на пів екрана
   і наступний пункт лишається видимим */
.capacity__body {
  max-width: 1100px;
  padding: 0 0 clamp(24px, 3.5vh, 44px);
  columns: 2;
  column-gap: clamp(32px, 3.3vw, 64px);
}

.capacity__body p {
  margin: 0 0 1em;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  break-inside: avoid;
}

.capacity__body p:last-child {
  margin-bottom: 0;
}

.capacity__body strong {
  font-weight: 700;
  color: #ffffff;
}

/* Підсумковий рядок — шрифтом заголовків і синім */
.capacity__note {
  max-width: 1394px;
  margin: clamp(32px, 5vh, 72px) 0 0;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(20px, 2.2vw, 42px);
  line-height: 1.2;
  color: var(--blue);
}

.capacity__cta {
  margin-top: clamp(24px, 3vh, 44px);
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1200px) {
  .capacity {
    padding-inline: 6vw;
  }

  .capacity__body {
    columns: 1;
    max-width: 760px;
  }
}

@media (max-width: 768px) {
  .capacity {
    padding: 64px 24px;
  }

  .capacity__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .capacity__intro,
  .capacity__note {
    font-size: 16px;
  }

  .capacity__head {
    column-gap: 14px;
    padding: 18px 0;
  }

  .capacity__name {
    font-size: clamp(20px, 5.5vw, 28px);
  }

  .capacity__unit {
    font-size: 14px;
  }

  .capacity__toggle {
    width: 18px;
    height: 18px;
  }

  .capacity__body p {
    font-size: 16px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .capacity.is-js .capacity__panel,
  .capacity__toggle::before,
  .capacity__toggle::after {
    transition: none;
  }
}

/* ==========================================================================
   Внутрішні сторінки: політика конфіденційності та форма запиту
   Темні, як решта сайту. Поля форми навмисно світліші за фон —
   інакше на чорному не зрозуміло, куди писати.
   ========================================================================== */

.page {
  min-height: 100vh;
  background-color: #000000;
  color: #ffffff;
  /* Відступ зверху — під фіксовану шапку */
  padding: clamp(140px, 18vh, 200px) var(--side-padding) clamp(64px, 10vh, 120px);
}

.page__eyebrow {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

.page__title {
  margin: 0 0 12px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 72px);
  line-height: 1;
}

.page__updated {
  margin: 0 0 clamp(36px, 6vh, 64px);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Юридичний документ --------------------------------------------------- */

.doc {
  max-width: 900px;
}

.doc h2 {
  margin: clamp(32px, 5vh, 52px) 0 12px;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid #1a1a1a;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.2;
}

.doc p,
.doc li {
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.doc p {
  margin: 0 0 14px;
}

.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.doc li {
  margin-bottom: 8px;
}

.doc li::marker {
  color: var(--blue);
}

.doc a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.doc a:hover {
  border-bottom-color: #ffffff;
}

/* Місця, куди замовник має підставити свої дані */
.doc .fill {
  padding: 1px 6px;
  background-color: rgba(4, 0, 207, 0.25);
  border-bottom: 1px solid var(--blue);
}

.doc__contacts {
  margin-top: clamp(36px, 6vh, 64px);
  padding: 22px 24px;
  border-left: 2px solid var(--blue);
  background-color: rgba(255, 255, 255, 0.03);
}

.doc__contacts p {
  margin: 0 0 6px;
}

.doc__contacts p:last-child {
  margin: 0;
}

/* --- Форма запиту --------------------------------------------------------- */

.form {
  max-width: 720px;
}

.form__intro {
  margin: 0 0 clamp(32px, 5vh, 52px);
  max-width: 620px;
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.field {
  margin-bottom: 22px;
}

.field > label {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.field .opt {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.4);
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: "PT Sans Narrow", Arial, sans-serif;
  font-size: 17px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.form select {
  cursor: pointer;
}

.form select option {
  background-color: #0a0a0a;
  color: #ffffff;
}

.form ::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--blue);
}

.form :focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.form__row {
  display: flex;
  gap: 18px;
}

.form__row .field {
  flex: 1;
}

.file-zone {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.03);
}

.file-zone input[type="file"] {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.file-zone input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: none;
  font-family: inherit;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.file-zone input[type="file"]::file-selector-button:hover {
  border-color: var(--blue);
  color: #ffffff;
}

.file-zone .hint {
  margin: 10px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 28px 0 26px;
}

.consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
}

.consent label {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.consent a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

.form__note {
  margin: 28px 0 0;
  padding-top: 22px;
  border-top: 1px solid #1a1a1a;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
}

.form__note a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid var(--blue);
}

/* --- Стани валідації ------------------------------------------------------ */

.err {
  display: none;
  margin-top: 7px;
  font-size: 14px;
  color: #ff6b6b;
}

.field.invalid input,
.field.invalid select {
  border-color: #ff6b6b;
}

.field.invalid .err,
.consent.invalid .err {
  display: block;
}

.sent {
  display: none;
  padding: 22px 24px;
  border-left: 2px solid var(--blue);
  background-color: rgba(255, 255, 255, 0.03);
  font-size: clamp(16px, 1.25vw, 20px);
}

.sent p {
  margin: 0;
}

@media (max-width: 1200px) {
  .page {
    padding-inline: 6vw;
  }
}

@media (max-width: 768px) {
  .page {
    padding-inline: 24px;
  }

  .form__row {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================================================
   Секція 6 — «Що кажуть замовники?»
   Головне в картці — наборний текст: цитата, підприємство, перелік виробів.
   Скан листа — доказ поруч, а не носій змісту: у конкурента саме через це
   розділ не працює — самі мініатюри, на яких нічого не прочитати.
   ========================================================================== */

.reviews {
  background-color: #000000;
  color: #ffffff;
  padding: 12vh var(--side-padding);
}

.reviews__eyebrow {
  margin: 0 0 24px;
  font: 400 15px/1 "PT Sans Narrow", Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

.reviews__title {
  margin: 0 0 clamp(20px, 2.2vw, 40px);
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(32px, 5vw, 96px);
  line-height: 1;
}

.reviews__intro {
  max-width: 900px;
  margin: 0 0 clamp(32px, 5vh, 72px);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.75);
}

/* auto-fit: три листи стануть у ряд, шість — у два ряди,
   без жодної правки коду, коли надійдуть нові */
.reviews__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 1.6vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* --- Картка --------------------------------------------------------------- */

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2vw, 40px) clamp(20px, 1.8vw, 36px) clamp(20px, 1.6vw, 30px);
  background-color: rgba(255, 255, 255, 0.025);
  border: 1px solid #1a1a1a;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Синя риска вгорі наростає зліва — той самий рух, що в списку продукції */
.review::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background-color: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease-out);
}

.review:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: #262626;
}

.review:hover::before,
.review:focus-within::before {
  transform: scaleX(1);
}

/* Ромб замість лапок — мотив стрічки галузей і послуг */
.review__quote {
  position: relative;
  margin: 0 0 clamp(18px, 1.5vw, 28px);
  padding-top: 26px;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1.3;
  color: #ffffff;
}

.review__quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  background-color: var(--blue);
  transform: rotate(45deg);
}

.review__company {
  margin: 0 0 6px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(14px, 0.95vw, 18px);
  line-height: 1.25;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.review__place {
  margin: 0 0 clamp(16px, 1.4vw, 26px);
  font-size: clamp(13px, 0.85vw, 16px);
  line-height: 1.4;
  color: #777777;
}

/* Перелік виробів — заради нього розділ і потрібен інженерові:
   це водночас і відгук, і референс-лист */
.review__items {
  margin: 0 0 clamp(20px, 1.8vw, 32px);
  padding: 0 0 0 clamp(14px, 1vw, 18px);
  list-style: none;
  border-left: 1px solid var(--blue);
}

.review__items li {
  font-size: clamp(13px, 0.88vw, 17px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.review__items li + li {
  margin-top: 6px;
}

/* --- Посилання на скан ---------------------------------------------------- */

.review__doc {
  display: flex;
  align-items: center;
  gap: 14px;
  /* притискає блок до низу картки — низи вирівнюються попри різну
     довжину цитат */
  margin-top: auto;
  padding-top: clamp(16px, 1.4vw, 24px);
  border-top: 1px solid #1a1a1a;
  text-decoration: none;
}

.review__doc img {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  /* Білий аркуш на чорному тлі світить надто різко — приглушуємо,
     повну яскравість повертаємо при наведенні */
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.review__doc-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.review__doc-label {
  font-size: clamp(13px, 0.88vw, 16px);
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
}

.review__doc-no {
  font-size: clamp(11px, 0.72vw, 14px);
  letter-spacing: 0.04em;
  color: #666666;
}

.review__doc:hover img,
.review__doc:focus-visible img {
  opacity: 1;
  transform: translateY(-2px);
}

.review__doc:hover .review__doc-label,
.review__doc:focus-visible .review__doc-label {
  color: #ffffff;
}

.review__doc:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

/* --- Перегляд скана на весь екран ----------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vh, 56px);
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* display: flex вище перебиває типове [hidden] { display: none } */
.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(8px, 1.6vh, 20px);
  padding-inline: 16px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.lightbox__close {
  position: absolute;
  top: clamp(10px, 2vh, 24px);
  right: clamp(10px, 2vw, 28px);
  width: 44px;
  height: 44px;
  font: 400 30px/1 "PT Sans Narrow", Arial, sans-serif;
  color: rgba(255, 255, 255, 0.7);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lightbox__close:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1200px) {
  .reviews {
    padding-inline: 6vw;
  }
}

@media (max-width: 768px) {
  .reviews {
    padding: 64px 24px;
  }

  .reviews__title {
    font-size: clamp(28px, 8vw, 44px);
  }

  .reviews__intro {
    font-size: 16px;
  }

  /* На вузькому екрані дві колонки перетворюють картку на колодязь */
  .reviews__list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review::before {
    transition: none;
  }
}

/* ==========================================================================
   Футер
   Зверху — заклик із кнопкою, далі три колонки, знизу правовий рядок.
   ========================================================================== */

.footer {
  background-color: #000000;
  color: #ffffff;
  padding: 0 var(--side-padding) clamp(24px, 4vh, 40px);
  border-top: 1px solid #1a1a1a;
}

/* --- Заклик --------------------------------------------------------------- */

.footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(40px, 7vh, 80px) 0;
  border-bottom: 1px solid #1a1a1a;
}

.footer__cta-title {
  margin: 0 0 12px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 46px);
  line-height: 1.1;
}

.footer__cta-text {
  margin: 0;
  max-width: 620px;
  font-size: clamp(15px, 1.05vw, 20px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.footer__cta .btn {
  flex-shrink: 0;
}

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

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
  padding: clamp(40px, 6vh, 72px) 0;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 18px;
  font-family: "Oswald", Arial, sans-serif;
  font-weight: 476;
  font-variation-settings: "wght" 476;
  font-size: clamp(18px, 1.35vw, 26px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.footer__logo span {
  color: var(--blue);
}

.footer__about {
  margin: 0;
  max-width: 440px;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}

.footer__heading {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666666;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin-bottom: 12px;
  font-size: clamp(14px, 0.95vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.footer__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover,
.footer__list a:focus-visible {
  color: #ffffff;
}

/* --- Правовий рядок ------------------------------------------------------- */

.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: clamp(20px, 3vh, 28px);
  border-top: 1px solid #1a1a1a;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__legal a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer__legal a:hover,
.footer__legal a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--blue);
}

/* --- Адаптив -------------------------------------------------------------- */

@media (max-width: 1200px) {
  .footer {
    padding-inline: 6vw;
  }
}

@media (max-width: 900px) {
  .footer__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .footer {
    padding-inline: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__cta .btn {
    width: 100%;
    max-width: 320px;
  }

  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Якщо браузер не вміє backdrop-filter — робимо заливку щільнішою,
   інакше кнопка над фото була б ледь помітною */
@supports not (backdrop-filter: blur(1px)) {
  .btn {
    background-color: rgba(20, 20, 30, 0.75);
  }

  .header {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.45));
  }
}
