/* ===============================
   Clean styles.css (optimized)
   - додано --accent-color
   - прибрані дублікати .separator
   - збережено обидва підходи до заливки сепаратора (path + .sep-fill)
   - не змінюю твою розмітку/класи
   =============================== */

/* ===== Variables & Reset ===== */
:root {
  --space-unit: 8px;
  --font-body: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Брендовий синій */
  --primary-color: #6699ff;
  --primary-hover: #5577dd;

  /* Акцент із логотипу */
  --accent-color: #FFD316;

  --text-color: #333;
  --bg-light: #f9f9f9;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-body);
  color: var(--text-color);
  line-height: 1.6;
}

/* Глобальний контейнер */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--space-unit) * 4) 0;
}

/* Альтернативний фон для секцій (якщо використовуєш .alt-bg у HTML) */
.alt-bg { background-color: var(--bg-light); }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: calc(var(--space-unit) * 2);
}
h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* ===== Header / Navigation ===== */
header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
  /* тонка акцентна смужка під шапкою */
  border-bottom: 3px solid var(--accent-color);
}
header nav.container {
  position: relative;                /* для абсолютного меню на мобільних */
  display: flex;
  align-items: center;               /* вирівнювання логотипа/меню по центру */
  justify-content: space-between;
  padding: 8px 0;                    /* трохи повітря під більше лого */
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img {
  height: clamp(48px, 6vw, 80px);
  width: auto;
  display: block;
}

/* Основне меню (десктоп) */
.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 4);
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;               /* для акцентної лінії під меню */
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
}
.nav-list a:hover { color: var(--primary-color); }

/* Акцентна лінія при hover/active */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Кнопка-гамбургер */
.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-color);
  cursor: pointer;
}

/* ===== Hero / Banner (image + overlay) ===== */
.banner {
  height: 85vh;
  background-color: var(--primary-color); /* фолбек */

  /* верхній шар — напівпрозорий фірмовий градієнт; нижній — фото */
  background-image:
    linear-gradient(
      337deg,
      rgba(102,153,255,.75) 10%,   /* #6699ff з прозорістю */
      rgba(40,101,216,.70) 50%,
      rgba(10,51,116,.80) 90%
    ),
    url("https://www.compositaero.com.ua/img/composite-material.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.banner h1 {
  color: #fff;
  max-width: 800px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,.4);
}

/* ===== Products ===== */
.products-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;       /* mobile-first */
}
.product-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
  text-align: center;
  padding: 1rem;
  transition: transform .3s, box-shadow .3s;
}
.product-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,.08), 0 16px 32px rgba(0,0,0,.12);
}
.product-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.product-item h3 { margin: 1rem 0 .5rem; }
.product-item p { font-size: .95rem; margin-bottom: 1rem; }
.product-item .price {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* Кнопки як лінки */
.btn {
  display: inline-block;
  text-decoration: none;
  background-color: var(--primary-color);
  color: #fff;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
  border-radius: 4px;
  font-weight: 500;
  transition: background-color .3s, transform .2s, box-shadow .2s;
}
.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  /* легкий акцентний глоу */
  box-shadow: 0 0 0 3px rgba(255, 211, 22, 0.28);
}
.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 211, 22, 0.35);
}

/* ===== About (для about.html) ===== */
.about-section .about-content { display: flex; align-items: center; gap: 2rem; }
.about-section img {
  flex: 1; width: 100%; max-width: 300px; border-radius: 8px; object-fit: cover;
}
.about-text { flex: 2; }

/* ===== Contacts ===== */
.contacts-section { background-color: var(--bg-light); }
.contact-items {
  display: flex; align-items: center; justify-content: center;
  gap: calc(var(--space-unit) * 6);
  flex-wrap: wrap;
}
.contact-item {
  display: flex; align-items: center; gap: calc(var(--space-unit) * 1);
  font-size: 1.1rem; color: var(--text-color);
}
.contact-item i { font-size: 1.5rem; color: var(--accent-color); }
.contact-item a { text-decoration: none; color: inherit; transition: color .3s; }
.contact-item a:hover { color: var(--primary-hover); }

/* ===== Footer ===== */
footer {
  background: var(--bg-light);
  text-align: center;
  padding: 1rem 0;
  font-size: .9rem;
}

/* ===== SVG Separators (єдиний набір) ===== */
.separator { width: 100%; overflow: hidden; line-height: 0; }
.separator svg { display: block; width: 100%; height: 80px; }

/* Підхід 1: якщо використовуєш <path> у .separator-wave без класу .sep-fill */
.separator-wave path { fill: var(--bg-light) !important; }

/* Підхід 2: універсальний через клас .sep-fill */
.sep-fill { fill: var(--bg-light); }                         /* дефолт */
.separator.to-white  .sep-fill { fill: #fff; }
.separator.to-primary .sep-fill { fill: var(--primary-color); }
.separator-accent .sep-fill { fill: var(--accent-color) !important; }

/* Інвертувати напрям (верх/низ) */
.separator.flip svg { transform: scaleY(-1); }

/* ===== Responsive ===== */
@media (min-width: 768px) and (max-width: 991px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-section .about-content { flex-direction: row; }
}
@media (min-width: 992px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
  .about-section .about-content { flex-direction: column; text-align: center; }

  /* Гамбургер на мобільних */
  .nav-toggle { display: block; align-self: center; }

  /* Ховаємо меню за замовчуванням */
  nav .nav-list { display: none !important; }

  /* Показуємо при кліку (клас .active додає JS) */
  nav .nav-list.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background-color: var(--bg-light);
    padding: calc(var(--space-unit) * 2) 0;
    gap: calc(var(--space-unit) * 2);
  }
  nav .nav-list li { width: 100%; text-align: center; }
}

/* Активний пункт меню (на about.html) */
.nav-list a[aria-current="page"] { color: var(--primary-color); }
.catalog-filter {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem;
}
.filter-btn {
  appearance: none; border: 1px solid rgba(0,0,0,0.08);
  background: #fff; color: var(--text-color);
  padding: 0.5rem 0.9rem; border-radius: 999px; font: inherit; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn.is-active {
  background: rgba(102,153,255,.10); border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(102,153,255,.10); color: var(--primary-color);
}
.product-item.is-hidden { display: none; }
/* 1) Більший відступ для підзаголовків підрозділів */
.catalog-subtitle {
  margin: 2rem 0 1rem; /* верх/низ можна підкрутити під макет */
}

/* 2) Клас, яким ховаємо підзаголовок і його грід, якщо в ньому немає видимих карток */
.section-hidden {
  display: none !important;
}

/* 3) Мобільні фільтри: ліве вирівнювання + однорядковий текст з обрізанням "…" */
@media (max-width: 767px) {
  .catalog-filter {
    display: flex;
    flex-direction: column; /* робимо фільтри повною шириною в стовпчик */
    gap: 8px;
  }
  .filter-btn {
    text-align: left;
    width: 100%;                 /* обмежує ширину, щоб працювало обрізання */
    white-space: nowrap;         /* лише один рядок */
    overflow: hidden;            /* ховаємо, що не влазить */
    text-overflow: ellipsis;     /* додає "…" на кінці */
  }
}
/* ===== CONTACTS: two-column layout + callback form ===== */
.contacts-wrap {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: 1fr;             /* mobile-first */
  align-items: start;
}

@media (min-width: 768px) {
  .contacts-wrap {
    grid-template-columns: 1fr 1fr;       /* 2 колонки на планшет/десктоп */
  }
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
}

.contact-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 211, 22, 0.18);   /* мʼякий акцент з лого */
  color: var(--accent-color);
  font-size: 1.1rem;
}

.contact-link {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  transition: color .2s ease;
}
.contact-link:hover { color: var(--primary-color); }

.contact-note {
  margin-top: 8px;
  color: #555;
  font-size: .95rem;
}

/* Карточка форми */
.callback-card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 10px rgba(0,0,0,.04),
    0 12px 24px rgba(0,0,0,.06);
  padding: clamp(16px, 3vw, 28px);
}

.callback-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

.callback-form {
  display: grid;
  gap: 10px;
}

.callback-form label {
  font-size: .95rem;
  color: #555;
}

.callback-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.14);
  border-radius: 10px;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.callback-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(102,153,255,.15);
}

/* Кнопка форми — використовує ваш .btn */
.callback-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
}

/* Пояснення під формою */
.form-hint {
  margin: 6px 0 0;
  font-size: .85rem;
  color: #666;
}
