/* ========================================
   STYLE.CSS — ОЧИЩЕННАЯ ВЕРСИЯ
   Структура:
     1. БАЗОВЫЕ СТИЛИ (variables, body, container)
     2. ШАПКА И МОБИЛЬНОЕ МЕНЮ
     3. HERO (новая 3-колоночная структура + слайдер)
     4. КНОПКИ И ФОРМЫ
     5. СЕКЦИИ ГЛАВНОЙ (услуги, статистика, why-us, бренды, портфолио, процесс, отзывы, CTA, цены)
     6. КАТАЛОГ
     7. КАРТОЧКА ТОВАРА (мобильная структура)
     8. СРАВНЕНИЕ
     9. ШТОРКИ (cart/favorites/compare)
    10. СТРАНИЦЫ УСЛУГ (вертикальные)
    11. ПОДВАЛ
    12. ПЛАВАЮЩИЕ КНОПКИ
    13. МОДАЛЬНЫЕ ОКНА
    14. ПОИСК (кнопка очистки + sort-bar)
    15. АНИМАЦИИ
    16. ФИКСЫ (логотип, защита от синего квадрата)
    17. АДАПТИВ (сгруппировано по брейкпоинтам)
======================================== */

/* ========================================
   1. БАЗОВЫЕ СТИЛИ
======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0066cc;
  --primary-dark: #004999;
  --secondary: #00b4d8;
  --accent: #ff6b35;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gradient: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: white;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-top: 110px; /* Отступ под фиксированную шапку (≈120-130px) */
}

.container {
  max-width: 1920px !important;
  width: 100% !important;
  padding: 0 40px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

html {
  scroll-padding-top: 110px; /* Синхронизировано с padding-top body */
}

/* ========================================
   2. ШАПКА И МОБИЛЬНОЕ МЕНЮ
======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Контейнер: 2 ряда, 3 колонки */
.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1px 15px;
  padding: 15px 0;
}

/* === 1 РЯД: Логотип | Меню | Поиск === */
.logo {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  align-items: flex-end;        /* ← прижать к низу ячейки (ближе к телефону) */
  justify-content: center;
  padding-bottom: 1px;          /* небольшой отступ от нижней границы */
}

.logo-img {
  height: 73px;
  width: auto;
  display: block;
}

.nav-menu {
  grid-row: 1;
  grid-column: 2;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.nav-menu a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: color .2s ease, background-color .2s ease,
              box-shadow .2s ease, transform .2s ease !important;
  white-space: nowrap;
}

.search-box {
  grid-row: 1;
  grid-column: 3;
  display: flex;
  flex: 1;
  max-width: 800px;
  min-width: 250px;
}

.search-box form {
  display: flex;
  width: 100%;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  position: relative; /* Для позиционирования крестика очистки */
}

.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.3s;
}

.search-box button:hover {
  background: var(--primary-dark);
}

/* === 2 РЯД: Телефон | (пусто) | Иконки === */
.header-phone {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-phone a {
  font-size: 12px;
  font-weight: 550;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
}

.header-actions {
  grid-row: 2;
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  flex-shrink: 0;
}

/* === ИКОНКИ В ШАПКЕ === */
.header-icon-btn {
  width: 36px;
  height: 36px;
  background: #f0f2f5;
  border: none;
  border-radius: 8px;
  color: #666;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.header-icon-btn:hover {
  background: #e0e0e0;
  color: #333;
  transform: translateY(-2px);
}

.header-icon-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.header-icon-btn.active:hover {
  background: var(--primary-dark);
}

.icon-counter {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.header-icon-btn.active .icon-counter {
  background: white;
  color: var(--primary);
}

/* Скрываем мобильные элементы на десктопе */
.search-toggle,
.hamburger {
  display: none;
}

/* === МОБИЛЬНОЕ МЕНЮ (ШТОРКА СПРАВА) === */
.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -300px !important;
  width: 280px !important;
  max-width: 80vw !important;
  height: 100vh !important;
  background: white !important;
  z-index: 2000 !important;
  transition: right 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
}

.mobile-menu.active {
  right: 0 !important;
}

.mobile-menu-header {
  padding: 15px !important;
  border-bottom: 1px solid #eee !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mobile-menu-nav {
  flex: 1 !important;
  padding: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  overflow-y: auto !important;
}

.mobile-menu-nav a {
  position: relative !important;
  padding: 12px 15px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.2s !important;
}

.mobile-menu-nav a i {
  margin-right: 10px !important;
  width: 20px !important;
  text-align: center !important;
  color: var(--primary) !important;
}

.mobile-counter {
  position: absolute !important;
  right: 15px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: var(--primary) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 10px !important;
  min-width: 20px !important;
  text-align: center !important;
}

.mobile-menu-nav a:hover {
  background: var(--primary) !important;
  color: white !important;
}

.mobile-menu-footer {
  padding: 15px !important;
  border-top: 1px solid #eee !important;
  background: #f8f9fa !important;
}

.mobile-phone {
  display: block !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  text-decoration: none !important;
  margin-bottom: 5px !important;
}

.mobile-hours {
  font-size: 13px !important;
  color: #666 !important;
}

/* Затемнение фона под мобильным меню */
.mobile-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  z-index: 1999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s !important;
}

.mobile-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}
/* ==========================================
   БЛАГОРОДНЫЙ ХОВЕР ПУНКТОВ МЕНЮ ВЕРХНЕГО УРОВНЯ
   (вместо сплошной синей заливки)
   ========================================== */
.nav-menu a:hover {
  background: #f5f9ff !important;              /* нежная светло-голубая подложка вместо синей заливки */
  color: #0066cc !important;                   /* синим становится только текст */
  box-shadow: 0 4px 14px rgba(0, 40, 90, .10); /* лёгкая тень, как у карточек */
  transform: translateY(-1px);                 /* едва заметное приподнимание */
}

/* === ВЫПАДАЮЩЕЕ МЕНЮ «КАТАЛОГ» (десктоп) === */
@media (min-width: 993px) {
    .nav-item-dropdown {
    position: relative;
    display: flex;          /* обёртка ведёт себя как остальные пункты меню */
    align-items: center;    /* содержимое центрируем по вертикали */
    align-self: stretch;    /* растягиваем на всю высоту строки меню — не выбивается */
  }
  .nav-dropdown-toggle {
    display: flex;          /* текст + стрелочка в одну линию, без скачка базовой линии */
    align-items: center;
  }
  .nav-dropdown-menu {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 250px; background: #fff; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 8px;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 1000;
  }
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown-menu a {
    padding: 10px 14px !important; border-radius: 8px;
    color: #333 !important; text-decoration: none;
    font-size: 14px !important; font-weight: 500 !important;
    text-transform: none !important; letter-spacing: 0 !important;
    white-space: nowrap;
    background: transparent !important;   /* убираем любую заливку в покое */
    transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
  }
  .nav-item-dropdown .nav-dropdown-menu a:hover {
    background: #ffffff !important;       /* никакого синего прямоугольника */
    color: #0066cc !important;            /* только текст подсвечивается */
    box-shadow: 0 6px 16px rgba(0, 40, 90, .12);  /* мягкая тень, как у карточек */
    transform: translateY(-2px);          /* лёгкое приподнимание */
  }
  .dropdown-caret { font-size: 10px; margin-left: 5px; opacity: .7; }
}

/* === ВТОРОЙ ЯРУС МЕНЮ (выезжает вправо у «Стандартный монтаж») === */
.nav-sub { position: relative; }
.nav-sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px !important; border-radius: 8px; cursor: default;
  color: #333 !important; font-size: 14px !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap;
}
.nav-sub-toggle .dropdown-caret { font-size: 9px; opacity: .6; }
.nav-sub:hover > .nav-sub-toggle { background: #eef5ff; color: #0066cc !important; }
.nav-sub-menu {
  position: absolute; top: -8px; left: 100%;
  min-width: 150px; background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 8px;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(8px); transition: opacity .18s ease, transform .18s ease;
  z-index: 1001;
}
/* прозрачный «мостик», чтобы меню не захлопывалось при переезде мыши */
.nav-sub-menu::before { content: ''; position: absolute; left: -8px; top: 0; bottom: 0; width: 8px; }
.nav-sub:hover .nav-sub-menu,
.nav-sub:focus-within .nav-sub-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0);
}
.nav-sub-menu a {
  padding: 10px 14px !important; border-radius: 8px;
  color: #333 !important; text-decoration: none;
  font-size: 14px !important; font-weight: 500 !important;
  text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap;
  background: transparent !important;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
.nav-item-dropdown .nav-sub-menu a:hover {
  background: #ffffff !important;
  color: #0066cc !important;
  box-shadow: 0 4px 14px rgba(0, 40, 90, .12);
  transform: translateY(-1px);
}

/* === ПУНКТ «ВСЕ УСЛУГИ»: выделен цветом и отделён линией === */
.nav-dropdown-menu a.nav-dropdown-all {
  color: #0066cc !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #edf1f7;
  margin-bottom: 4px;
  padding-bottom: 10px !important;
  border-radius: 8px 8px 0 0;
}

/* Избранное и Сравнение: иконка и подпись слева, счётчик справа */
.mobile-menu-nav a.mobile-menu-favorites,
.mobile-menu-nav a.mobile-menu-compare {
  justify-content: flex-start !important;
  gap: 12px;
}
.mobile-menu-nav a.mobile-menu-favorites .mobile-counter,
.mobile-menu-nav a.mobile-menu-compare .mobile-counter {
  margin-left: auto;
}

/* ==========================================
   МОБИЛЬНОЕ МЕНЮ: БОКОВЫЕ ЭКРАНЫ (без серых плашек)
   ========================================== */
.mobile-menu-nav { position: relative; overflow: hidden; flex: 1 1 auto; min-height: 0; }

.mobile-panel {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  padding: 6px 0 24px;
  background: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .28s ease, visibility .28s;
}
.mobile-panel.active { transform: translateX(0); visibility: visible; }

.mobile-menu-nav .mobile-item,
.mobile-menu-nav a.mobile-item,
.mobile-menu-nav button.mobile-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; box-sizing: border-box;
  padding: 15px 20px !important;
  margin: 0 !important;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid #f1f3f6 !important;
  border-radius: 0 !important;
  color: #333; font-family: inherit; font-size: 15px; font-weight: 500;
  text-decoration: none; text-align: left; cursor: pointer;
  box-shadow: none !important;
}
.mobile-menu-nav .mobile-item i { color: #a6b0bd; font-size: 12px; flex-shrink: 0; }
.mobile-menu-nav .mobile-item-accent { color: #0066cc; font-weight: 600; }
.mobile-menu-nav .mobile-item .mobile-counter { margin-left: auto; }

.mobile-panel-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px 6px; background: none; border: none; cursor: pointer;
  color: #0066cc; font-family: inherit; font-size: 14px; font-weight: 600;
}
.mobile-panel-title {
  padding: 20px 20px 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .6px;
  text-transform: uppercase; color: #93a0af;
}

/* ==========================================
   БЛОГ: выпадающее меню в шапке (десктоп)
   ========================================== */

/* Пункт-раздел блога — это ссылка (в «Услугах» он span) */
a.nav-sub-toggle {
  cursor: pointer;
  text-decoration: none;
}

/* Подсветка пункта-раздела при наведении — как у «Стандартный монтаж» */
.nav-blog .nav-sub:hover > a.nav-sub-toggle,
.nav-blog a.nav-sub-toggle:hover {
  background: #eef5ff !important;
  color: #0066cc !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Одинаковая ширина у трёх списков статей */
.nav-blog .nav-sub-menu {
  min-width: 290px;
}

/* На низких экранах список статей прокручивается внутри, а не уезжает за край */
.nav-blog .nav-sub-menu {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
}
/* 5) МНОГО СТАТЕЙ (13 и больше): список автоматически разворачивается
      в ДВЕ КОЛОНКИ и открывается ВЛЕВО, чтобы влезать в экран */
.nav-blog .nav-sub-menu:has(a:nth-child(13)) {
  left: auto;
  right: 100%;               /* открываем влево от меню */
  min-width: 580px;
  max-width: 620px;
  display: block;
  column-count: 2;           /* две колонки статей */
  column-gap: 12px;
  transform: translateX(-8px);
}
/* прозрачный «мостик» переезжает на правую сторону списка */
.nav-blog .nav-sub-menu:has(a:nth-child(13))::before {
  left: auto;
  right: -8px;
}
/* длинные названия переносятся на вторую строку внутри своей колонки */
.nav-blog .nav-sub-menu:has(a:nth-child(13)) a {
  display: block;
  margin-bottom: 2px;
  white-space: normal;
  break-inside: avoid;
}
.nav-blog .nav-sub:hover .nav-sub-menu:has(a:nth-child(13)),
.nav-blog .nav-sub:focus-within .nav-sub-menu:has(a:nth-child(13)) {
  transform: translateX(0);
}

/* ========================================
   3. HERO — НОВАЯ СТРУКТУРА (3 КОЛОНКИ)
======================================== */

.hero-new {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, #003264 0%, #001e3c 100%);
  padding-top: 100px;
  padding-bottom: 60px;
  color: white;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images/banner1.png') center/cover;
  opacity: 0.15;
  z-index: 0;
}

.hero-new .container {
  position: relative;
  z-index: 1;
}

/* Верхняя строка */
.hero-top {
  text-align: center;
  margin-bottom: 40px;
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  white-space: normal !important;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 30px;
  white-space: normal !important;
}

/* Сетка из 3 колонок */
.hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr 400px;
  gap: 30px;
  align-items: stretch;
}

/* Колонка 1: Преимущества */
.hero-features-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-features-list {
  list-style: none;
  margin-bottom: 30px;
}

.hero-features-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-features-list li i {
  color: #4ade80;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Колонка 2: Карусель */
.hero-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  min-height: 400px;
  background: #002a52;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: none;
  max-width: 100%;
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
}

/* Колонка 3: Форма */
.hero-form-col {
  display: flex;
  align-items: center;
}

.hero-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  color: #333;
}

.hero-form h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.hero-form > p {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Защита от горизонтального скролла для hero */
.hero-new,
.hero-grid,
.hero-features-col,
.hero-carousel,
.hero-form-col,
.hero-form {
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

/* ========================================
   4. КНОПКИ И ФОРМЫ
======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-green {
  background: #10b981 !important;
  color: white !important;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3) !important;
}

.btn-green:hover {
  background: #059669 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4) !important;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 16px;
}

/* === ФОРМЫ === */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-btn {
  width: 100%;
  background: var(--gradient);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.form-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4);
}

.form-note {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 15px;
}

/* ========================================
   5. СЕКЦИИ ГЛАВНОЙ СТРАНИЦЫ
======================================== */

/* === ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ === */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  display: inline-block;
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-desc {
  font-size: 16px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* === УСЛУГИ === */
.services {
  padding: 80px 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
}

.service-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  display: none;   /* 🔥 полоска выключена; градиент в кнопках/акцентах остался */
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  background: white;
}

/*.service-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-icon i {
  font-size: 24px;
  color: white;*/  /* стили иконок, не нужны/*
}

/* === КАРТИНКА-УСЛУГА: широкая плашка-баннер сверху карточки === */
/* === КАРТИНКА-УСЛУГА: чистый белый фон + идеальная посадка === */
.service-media {
  width: 100%;
  height: 160px;                 /* ← высота плашки: подними/опусти под свои фото */
  background: #ffffff;           /* чисто белый, без голубого оттенка */
  border: none;                  /* убираем рамку */
  border-radius: 14px;           /* скругление оставили — карточка мягче выглядит */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: none;              /* убираем тень/грань */
}

.service-media img {
  max-width: 96%;                /* чуть шире, чем было (90% → 96%) — меньше пустот */
  max-height: 96%;
  width: auto;
  height: auto;
  object-fit: contain;           /* вписывается целиком, не обрезается */
  display: block;
  filter: none;                  /* убираем drop-shadow, если он был */
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

/* Живой отклик при наведении остался — картинка чуть «дышит» */
.service-card:hover .service-media img {
  transform: scale(1.07);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
  line-height: 1.5;
}

.service-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-price span {
  font-size: 14px;
  color: #999;
  font-weight: 400;
}

.service-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.service-link-btn:hover {
  color: var(--primary-dark);
  transform: translateX(5px);
}

/* === СТАТИСТИКА === */
.stats {
  background: var(--dark);
  padding: 50px 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.stat-text {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.4;
}

/* === ПОЧЕМУ МЫ === */
.why-us {
  padding: 100px 0;
  background: white;
}

.why-us .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.why-us .section-subtitle {
  display: inline-block;
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Колонки 45/55 */
.why-grid {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 60px;
  align-items: start;
}

.why-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.why-badge {
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: white;
  padding: 18px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
  align-self: flex-start;
  max-width: 400px;
}

.why-badge .number {
  font-size: 28px;
  font-weight: 800;
}

.why-badge .text {
  line-height: 1.3;
}

.why-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0;
}

.why-content > p {
  color: #666;
  font-size: 18px;
  margin-bottom: 10px;
}

.why-features {
  display: grid;
  gap: 25px;
}

.why-feature {
  display: flex;
  gap: 20px;
}

.why-feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 102, 204, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-icon i {
  font-size: 24px;
  color: var(--primary);
}

.why-feature h4 {
  font-size: 18px;
  margin-bottom: 5px;
  color: var(--dark);
}

.why-feature p {
  color: #666;
  font-size: 14px;
}

.why-image {
  display: flex;
  align-items: center;
}

.why-photo-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.why-process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.why-photo-wrapper:hover .why-process-img {
  transform: scale(1.05);
}

/* === БРЕНДЫ === */
.brands {
  padding: 80px 0;
  background: #f8f9fa;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.05);
}

/* === ПОРТФОЛИО ПРЕВЬЮ === */
.portfolio-preview {
  padding: 80px 0;
  background: white;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.portfolio-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  aspect-ratio: auto !important;
  position: relative;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 50, 100, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-btn {
  background: white;
  color: var(--primary);
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.portfolio-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.portfolio-info p {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

.portfolio-meta {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: #888;
}

.portfolio-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.portfolio-cta {
  text-align: center;
}
/* === ОБЁРТКА КАРУСЕЛИ ПОРТФОЛИО (на десктопе прозрачна, сетке не мешает) === */
.portfolio-carousel {
  position: relative;
}

/* Стрелки по умолчанию скрыты — покажем только в ленте */
.portfolio-nav { display: none; }

/* === ПЛАНШЕТ (<=992px) — ЛЕНТА ПО 2 КАРТОЧКИ === */
@media (max-width: 992px) {

  .portfolio-carousel .portfolio-grid {
    display: flex !important;
    grid-template-columns: none !important;   /* сбрасываем grid */
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 16px !important;                     /* перебью твои 30px — в ленте плотнее красивее */
    padding: 10px 4px 26px;                   /* запас сверху/снизу, чтобы тень карточки не обрезалась */
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .portfolio-carousel .portfolio-grid::-webkit-scrollbar { display: none; }

  /* ДВЕ карточки в ряд */
  .portfolio-carousel .portfolio-grid > .portfolio-item {
    flex: 0 0 calc((100% - 16px) / 2) !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: start;
    margin: 0 !important;
  }

  /* В ленте убираем подпрыгивание и длинную тень при hover — чтобы не дёргалось */
  .portfolio-carousel .portfolio-item:hover {
    transform: none !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  }

  /* Стрелки по краям */
  .portfolio-carousel .portfolio-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0066cc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 4px 14px rgba(0, 40, 90, .14);
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .portfolio-carousel .portfolio-nav:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
  }
  .portfolio-carousel .portfolio-nav.prev { left: 2px; }
  .portfolio-carousel .portfolio-nav.next { right: 2px; }
}

/* === ТЕЛЕФОН (<=768px) — ПО 1 КАРТОЧКЕ === */
@media (max-width: 768px) {
  .portfolio-carousel .portfolio-grid > .portfolio-item {
    flex: 0 0 88% !important;   /* одна карточка + краешек следующей как намёк «листай» */
  }
}

/* === ПРОЦЕСС РАБОТЫ === */
/*.process {
  padding: 100px 0;
  background: var(--light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '';
  position: absolute;
  top: 50px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 100px;
  height: 100px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: white;
  margin: 0 auto 25px;
  position: relative;
}

.process-step h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--dark);
}

.process-step p {
  color: #666;
  font-size: 14px;
}*/

/* === БЛОК ОТЗЫВОВ НА ГЛАВНОЙ === */
.reviews-preview-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.reviews-carousel {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.reviews-carousel .review-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  width: calc(25% - 15px);
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
}

.reviews-carousel .review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviews-carousel .review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc 0%, #00b4d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.reviews-carousel .review-author {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
}
.reviews-carousel .review-location {
  font-size: 12px;
  color: #888;
}
.reviews-carousel .review-stars {
  color: #ffc107;
  font-size: 16px;
  letter-spacing: 2px;
}
.reviews-carousel .review-date {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}
.reviews-carousel .review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

/* === КАРУСЕЛЬ ТОЛЬКО ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
  .reviews-carousel {
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 16px 20px;
    margin: 0 -16px;
    justify-content: flex-start;
  }
  
  .reviews-carousel .review-card {
    width: 85%;
    max-width: 320px;
    min-width: 260px;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
}

/* === CTA === */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: rgba(255, 255, 255, 0.05);
  transform: rotate(-15deg);
}

.cta-content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 15px;
}

.cta p {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cta .btn-primary {
  background: white;
  color: var(--primary);
}

.cta .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

/* === ЦЕНЫ (PRICING) === */
.pricing {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: white;
}

.pricing .section-subtitle {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.pricing .section-title {
  color: white;
}

.pricing .section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.price-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}

.price-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.price-card.popular {
  background: var(--gradient);
  border: none;
  transform: scale(1.05);
}

.price-card.popular:hover {
  transform: scale(1.08) translateY(-5px);
}

.popular-badge {
  background: var(--accent);
  color: white;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 15px;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.price-card .power {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 20px;
}

.price-card.popular .power {
  color: rgba(255, 255, 255, 0.9);
}

/* ⚠️ ФИКС: .price-amount для pricing — крупная цифра (42px) */
.pricing .price-amount {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
}

.price-amount span {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.7;
}

.price-features {
  list-style: none;
  margin-bottom: 25px;
  text-align: left;
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.price-features li i {
  color: #4ade80;
}

.price-btn {
  width: 100%;
  padding: 15px;
  border: 2px solid white;
  background: transparent;
  color: white;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.price-btn:hover {
  background: white;
  color: var(--primary);
}

.price-card.popular .price-btn {
  background: white;
  color: var(--primary);
  border-color: white;
}

.price-card.popular .price-btn:hover {
  background: var(--dark);
  color: white;
  border-color: var(--dark);
}

/* === ПОРТФОЛИО (полная страница) === */
.portfolio {
  padding: 120px 0 100px;
  background: var(--light);
}

.portfolio .section-header {
  margin-bottom: 60px;
}

.portfolio .section-title {
  font-size: 42px;
}

.portfolio .section-desc {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.portfolio-gallery .portfolio-item {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
  background: #fff;
}

.portfolio-gallery .portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-gallery .portfolio-item:hover img {
  transform: scale(1.8);
}

.portfolio-gallery .portfolio-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-gallery .portfolio-item:hover::before {
  opacity: 1;
}

/* ========================================
   6. КАТАЛОГ
======================================== */

/* === ЧИПСЫ АКТИВНЫХ ФИЛЬТРОВ И КНОПКА «ПОКАЗАТЬ N» (страницы каталога) === */
.active-filters-bar { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 10px; }
.active-filters-bar.has-chips { display: flex; }
.af-chip { display: inline-flex; align-items: center; gap: 7px; background: #0066cc; color: #fff;
           border-radius: 6px; padding: 7px 8px 7px 11px; font-size: 13px; line-height: 1; }
.af-chip b { font-weight: 600; }
.af-chip-x { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
             border: none; border-radius: 50%; background: rgba(255,255,255,.28); color: #fff;
             font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
.af-chip-x:hover { background: rgba(255,255,255,.5); }
.af-chip-reset { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #0066cc;
                 border: 1px solid #0066cc; border-radius: 6px; padding: 6px 11px; font-size: 13px;
                 line-height: 1; cursor: pointer; }
.af-chip-reset:hover { background: #eef5ff; }

/* Кнопка «Показать N товаров» — липкий низ мобильной шторки фильтров */
.mobile-apply-bar { display: none; position: sticky; bottom: 0; left: 0; right: 0;
                    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
                    background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.14); z-index: 5; }
.mobile-apply-btn { width: 100%; padding: 14px 16px; border: none; border-radius: 10px;
                    background: #0066cc; color: #fff; font-size: 15px; font-weight: 600;
                    font-family: inherit; cursor: pointer; }
.mobile-apply-btn:active { background: #0052a3; }
@media (max-width: 992px) {
  .mobile-apply-bar { display: block; }
}

body.catalog-page .main {
  margin-top: 0 !important;
  padding: 40px 0 80px !important;
}

body.catalog-page .section-title {
  font-size: 34px !important;
}

/* === Сетка с сайдбаром === */
.catalog-with-sidebar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 30px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

/* === Сайдбар услуг === */
.services-sidebar {
  flex: 0 0 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  align-self: flex-start !important;
  background: #f8f9fa !important;
  border-radius: 16px !important;
  padding: 20px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* ⚠️ ФИКС: заголовок сайдбара услуг в каталоге — 22px */
body.catalog-page .sidebar-title {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #222 !important;
  margin-bottom: 15px !important;
  padding-bottom: 10px !important;
  border-bottom: 2px solid var(--primary) !important;
}

.services-menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 22px !important;
  width: 100% !important;
}

.service-link {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #444 !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  cursor: pointer !important;
}

.service-link i {
  width: 20px !important;
  text-align: center !important;
  color: var(--primary) !important;
  font-size: 15px !important;
}

.service-link:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Выпадающий список услуг */
.service-dropdown {
  border-radius: 10px !important;
  overflow: hidden !important;
}

.service-dropdown summary {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #444 !important;
  background: transparent !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.service-dropdown summary::-webkit-details-marker {
  display: none !important;
}

.service-dropdown summary:hover {
  background: white !important;
  color: var(--primary) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.dropdown-arrow {
  margin-left: auto !important;
  font-size: 10px !important;
  color: #999 !important;
  transition: transform 0.3s ease !important;
}

.service-dropdown[open] summary {
  background: white !important;
  color: var(--primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.service-dropdown[open] .dropdown-arrow {
  transform: rotate(180deg) !important;
}

.dropdown-content {
  display: flex !important;
  flex-direction: column !important;
  background: white !important;
  padding: 6px !important;
  border-radius: 0 0 10px 10px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  animation: slideDown 0.3s ease !important;
}

.service-sublink {
  display: flex !important;
  align-items: center !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  color: #555 !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: all 0.2s ease !important;
}

.service-sublink:hover {
  background: #f0f7ff !important;
  color: var(--primary) !important;
  transform: translateX(4px) !important;
}

.service-divider {
  height: 1px !important;
  background: #e0e0e0 !important;
  margin: 10px 0 !important;
}

.sidebar-contacts {
  margin-top: 20px !important;
  padding-top: 15px !important;
  border-top: 1px solid #e0e0e0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.contact-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 15px !important;
  color: #666 !important;
}

.contact-item i {
  color: var(--primary) !important;
  width: 16px !important;
  text-align: center !important;
}

.contact-item a {
  color: #666 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}

.contact-item a:hover {
  color: var(--primary) !important;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Блок брендов в сайдбаре === */
.sidebar-block {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
}

.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 17px;
}

/* ⚠️ ФИКС: .sidebar-item — для сайдбара брендов (компактные ссылки) */
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.sidebar-item i {
  width: 20px;
  text-align: center;
  color: var(--primary);
}

.sidebar-item:hover {
  background: white;
  color: var(--primary);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Скрытые бренды */
.sidebar-more-brands.hidden {
  display: none;
}

.sidebar-more-brands {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}

.sidebar-show-all {
  margin-top: 8px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sidebar-show-all:hover {
  background: white;
  color: var(--primary);
  border-color: var(--primary);
}

.sidebar-show-all.active .fa-chevron-down {
  transform: rotate(180deg);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Секция с баннером и фильтрами === */
body.catalog-page .banner-filters-section {
  margin-bottom: 0 !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}

body.catalog-page .banner-filters-grid {
  display: grid !important;
  grid-template-columns: 1fr 380px !important;
  gap: 30px !important;
  align-items: start !important;
}

body.catalog-page .left-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 0 !important;
}

body.catalog-page .banner-placeholder {
  height: 120px !important;
  background: #f0f5ff !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #999 !important;
  font-style: italic !important;
}

/* Поиск в каталоге */
@media (min-width: 993px) {
  body.catalog-page .search-box {
    display: flex !important;
    gap: 10px !important;
    height: 50px !important;
  }
}

body.catalog-page .search-box input {
  flex: 1 !important;
  padding: 12px 15px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 16px !important;
}

body.catalog-page .search-box button {
  background: var(--primary) !important;
  color: white !important;
  border: none !important;
  width: 50px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-size: 16px !important;
}

/* === Колонка фильтров === */
body.catalog-page .filters-column {
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  background: #f8f9fa !important;
  padding: 16px !important;
  border-radius: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  /*font-size: 16px !important;*/
  flex-shrink: 0 !important;
}

body.catalog-page .filter-group label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  margin-bottom: 6px !important;
}

body.catalog-page .filters-column .filter-group > label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #1a1a2e !important;
  margin-bottom: 10px !important;
}

body.catalog-page .checkbox-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

/* Компактное окошко с бегунком для длинных списков (бренд, цвет) */
.checkbox-group.scrollable {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #c5c5c5 #f0f0f0;
}
.checkbox-group.scrollable::-webkit-scrollbar {
  width: 6px;
}
.checkbox-group.scrollable::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 3px;
}
.checkbox-group.scrollable::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 3px;
}
.checkbox-group.scrollable::-webkit-scrollbar-thumb:hover {
  background: #0066cc;
}

body.catalog-page .checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  color: #555 !important;
  font-weight: 500 !important;
  margin-bottom: 0 !important;
}

body.catalog-page .filter-group input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: var(--primary) !important;
  cursor: pointer !important;
}

body.catalog-page .range-inputs {
  display: flex !important;
  gap: 6px !important;
}

body.catalog-page .filter-group input[type="number"],
body.catalog-page .filter-group select {
  width: 100% !important;
  padding: 7px 8px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background: white !important;
  height: 34px !important;
}

/* === Кнопки фильтров === */
body.catalog-page .apply-filters-btn {
  width: 100% !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: none !important;
  background: var(--gradient) !important;
  color: white !important;
  margin-top: 4px !important;
}

body.catalog-page .apply-filters-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2) !important;
}
/* Счётчик найденных товаров */
.results-count {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  margin-bottom: 16px;
  padding-left: 4px; /* Чуть сдвинем, чтобы выровнять с карточками */
} 

/* === Кнопка сброса: Добавляем недостающие стили === */
body.catalog-page .reset-filters-btn {
  width: 100% !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 19px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border: none !important;
  margin-top: 4px !important;
  background: #e9ecef !important;
  color: #495057 !important;
}

body.catalog-page .reset-filters-btn:hover {
  background: #dee2e6 !important;
  transform: translateY(-2px) !important;
}

/* === КАРТОЧКА ТОВАРА В КАТАЛОГЕ === */
body.catalog-page .products-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

body.catalog-page .product-card {
  display: flex !important;
  gap: 20px !important;
  background: white !important;
  border: none !important;
  border-bottom: 1px solid #e0e0e0 !important;
  border-radius: 0 !important;
  padding: 20px 0 !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
  color: inherit !important;
  position: relative !important;
  min-height: 360px !important;
  max-width: 1300px !important;
  width: 100% !important;
  margin: 0 auto !important;
  overflow: visible !important;
}

body.catalog-page .product-card:first-child {
  border-top: 1px solid #e0e0e0 !important;
}

body.catalog-page .product-card:last-child {
  border-bottom: 1px solid #e0e0e0 !important;
}

body.catalog-page .product-card:hover {
  background: #fafafa !important;
  border-top: 2px solid var(--primary) !important;
  border-bottom: 2px solid var(--primary) !important;
  transform: none !important;
  box-shadow: none !important;
}

body.catalog-page .product-image {
  width: 300px !important;
  height: 300px !important;
  background: white !important;
  border-radius: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #999 !important;
  font-size: 32px !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

body.catalog-page .product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  display: block !important;
}

body.catalog-page .product-info {
  flex: 1 !important;
  min-width: 0 !important;
  padding-right: 140px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

body.catalog-page .product-brand {
  color: var(--primary) !important;
  font-weight: 700 !important;
  font-size: 20px !important;
  margin-bottom: 0 !important;
}

body.catalog-page .product-name {
  font-weight: 600 !important;
  font-size: 18px !important;
  margin-bottom: 0 !important;
  color: var(--dark) !important;
  line-height: 1.4 !important;
}

body.catalog-page .product-specs {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 0 !important;
  margin-top: 8px !important;
}

body.catalog-page .spec-item {
  font-size: 15px !important;
  color: #555 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  align-items: baseline !important;
}

body.catalog-page .spec-label {
  font-weight: 600 !important;
  color: #333 !important;
  margin-right: 6px !important;
  font-size: 15px !important;
  min-width: 110px !important;
  display: inline-block !important;
}

/* === КНОПКИ ДЕЙСТВИЙ В КАТАЛОГЕ === */
body.catalog-page .product-actions {
  position: absolute !important;
  top: 20px !important;
  right: 0 !important;
  display: flex !important;
  gap: 10px !important;
  z-index: 2 !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
}

body.catalog-page .action-btn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  color: #888 !important;
  font-size: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

body.catalog-page .action-btn:hover {
  background: #e8e8e8 !important;
  color: #333 !important;
  transform: scale(1.1) !important;
}

body.catalog-page .action-btn.active {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3) !important;
}

/* === ЦЕНА В КАТАЛОГЕ === */
body.catalog-page .product-price {
  position: absolute !important;
  bottom: 12px !important;
  right: 12px !important;
  font-weight: 600 !important;
  font-size: 22px !important;
  color: var(--primary) !important;
}

/* === ПАГИНАЦИЯ === */
body.catalog-page .pagination {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 30px !important;
  padding: 20px 0 !important;
}

body.catalog-page .pagination-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  background: white !important;
  color: var(--dark) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  text-decoration: none !important;
}

body.catalog-page .pagination-btn:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

body.catalog-page .pagination-btn.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
}

body.catalog-page .pagination-btn.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

body.catalog-page .pagination-info {
  color: #666 !important;
  font-size: 14px !important;
  margin: 0 15px !important;
}

body.catalog-page .no-results {
  text-align: center !important;
  padding: 40px !important;
  color: #999 !important;
  font-style: italic !important;
}

/* ========================================
   7. КАРТОЧКА ТОВАРА (мобильная структура)
======================================== */

/* На карточке товара product.html используются инлайн-стили.
   Здесь только мобильные адаптации через @media в секции 17. */

body.product-page .back-btn-top {
  /* Кнопка "назад" на карточке товара — позиционируется абсолютно */
  position: fixed;
}

/* ========================================
   8. СРАВНЕНИЕ
======================================== */

.clear-all-btn,
.compare-action-btn {
  width: 100% !important;
  padding: 12px !important;
  margin-top: 10px !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: all 0.3s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

.clear-all-btn {
  background: #f8f9fa !important;
  color: #dc3545 !important;
  border: 1px solid #dc3545 !important;
}

.clear-all-btn:hover {
  background: #dc3545 !important;
  color: white !important;
}

.compare-action-btn {
  background: var(--primary) !important;
  color: white !important;
}

.compare-action-btn:hover {
  background: var(--primary-dark) !important;
}

.compare-action-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}

body.compare-page .main {
  margin-top: 120px !important;
  padding: 60px 0 80px !important;
}

.compare-table-container {
  overflow-x: auto !important;
  background: white !important;
  border-radius: 16px !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08) !important;
}

.compare-table {
  width: 100% !important;
  border-collapse: collapse !important;
  min-width: 800px !important;
}

.compare-table th,
.compare-table td {
  padding: 15px !important;
  text-align: left !important;
  border-bottom: 1px solid #e9ecef !important;
  vertical-align: top !important;
}

/* Первый столбец — фиксированный */
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky !important;
  left: 0 !important;
  background: white !important;
  z-index: 10 !important;
  min-width: 130px !important;
  max-width: 130px !important;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15) !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 12px 10px !important;
}

.compare-table thead th:first-child {
  background: #f8f9fa !important;
  z-index: 11 !important;
}

.compare-table tbody tr:first-child td:first-child {
  background: white !important;
  z-index: 10 !important;
}

.compare-table th {
  background: #f8f9fa !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  min-width: 150px !important;
}

.compare-table td {
  color: #555 !important;
}

.compare-table tr:hover td {
  background: #f8f9fa !important;
}

.compare-empty {
  text-align: center !important;
  padding: 60px 20px !important;
  color: #666 !important;
}

.compare-back-btn {
  display: inline-block !important;
  margin-top: 20px !important;
  color: var(--primary) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.compare-back-btn:hover {
  text-decoration: underline !important;
}

/* ========================================
   9. ШТОРКИ (cart / favorites / compare)
======================================== */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar,
.favorites-sidebar,
.compare-sidebar {
  position: fixed !important;
  top: 0 !important;
  right: -450px !important;
  width: 450px !important;
  max-width: 90vw !important;
  height: 100vh !important;
  background: white !important;
  z-index: 9999 !important;
  transition: right 0.3s ease !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

.cart-sidebar.active,
.favorites-sidebar.active,
.compare-sidebar.active {
  right: 0 !important;
}

.sidebar-header {
  padding: 20px 25px !important;
  border-bottom: 1px solid #eee !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--light) !important;
}

.sidebar-header h3 {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.sidebar-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #e0e0e0 !important;
  color: var(--dark) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
}

.sidebar-close:hover {
  background: var(--accent) !important;
  color: white !important;
}

.sidebar-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 20px 25px !important;
}

.sidebar-empty {
  text-align: center !important;
  color: #999 !important;
  padding: 40px 20px !important;
  font-style: italic !important;
}

/* === ЭЛЕМЕНТЫ В ШТОРКАХ === */
.cart-item,
.favorite-item,
.compare-sidebar .compare-item {
  display: flex !important;
  gap: 12px !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid #eee !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.cart-item:hover,
.favorite-item:hover,
.compare-sidebar .compare-item:hover {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  margin-left: -8px !important;
  margin-right: -8px !important;
}

.cart-item-image,
.favorite-item-image,
.compare-sidebar .compare-item-image {
  width: 70px !important;
  height: 70px !important;
  background: #f8f9fa !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.cart-item-image img,
.favorite-item-image img,
.compare-sidebar .compare-item-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.cart-item-info,
.favorite-item-info,
.compare-sidebar .compare-item-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.cart-item-brand,
.favorite-item-brand,
.compare-sidebar .compare-item-brand {
  font-size: 13px !important;
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.cart-item-name,
.favorite-item-name,
.compare-sidebar .compare-item-name {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  margin: 4px 0 !important;
  line-height: 1.3 !important;
}

.cart-item-price,
.favorite-item-price {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
}

.cart-item-remove,
.favorite-item-remove,
.compare-sidebar .compare-item-remove {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #f0f0f0 !important;
  color: #666 !important;
  cursor: pointer !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s !important;
}

.cart-item-remove:hover,
.favorite-item-remove:hover,
.compare-sidebar .compare-item-remove:hover {
  background: var(--accent) !important;
  color: white !important;
}

.sidebar-footer {
  padding: 20px 25px !important;
  border-top: 1px solid #eee !important;
  background: var(--light) !important;
}

.checkout-form .form-group {
  margin-bottom: 12px !important;
}

.checkout-form .form-group label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  margin-bottom: 5px !important;
  display: block !important;
}

.checkout-form .form-group input {
  width: 100% !important;
  padding: 10px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: inherit !important;
}

.checkout-form .form-group input:focus {
  outline: none !important;
  border-color: var(--primary) !important;
}

.checkout-form .checkbox-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 !important;
}

.checkout-form .checkbox-group input {
  width: auto !important;
  transform: scale(1.1) !important;
}

.checkout-form .checkbox-group label {
  font-size: 13px !important;
  font-weight: 500 !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: #333 !important;
}

.checkout-form .submit-btn {
  width: 100% !important;
  background: var(--gradient) !important;
  color: white !important;
  border: none !important;
  padding: 14px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s !important;
  margin-top: 10px !important;
}

.checkout-form .submit-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 30px rgba(0, 102, 204, 0.4) !important;
}

.cart-total {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 15px 0 !important;
  border-top: 2px solid #eee !important;
  margin-top: 10px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

.cart-total span {
  color: var(--primary) !important;
}

.compare-sidebar .clear-compare-btn {
  width: 100% !important;
  padding: 12px !important;
  background: #dc3545 !important;
  color: white !important;
  border: none !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  transition: background 0.3s !important;
}

.compare-sidebar .clear-compare-btn:hover {
  background: #c82333 !important;
}

/* ⚠️ ФИКС: .sidebar-item ВНУТРИ ШТОРОК — другой стиль (с крестиком) */
.cart-sidebar .sidebar-item,
.favorites-sidebar .sidebar-item,
.compare-sidebar .sidebar-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.sidebar-item-link {
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
  margin-right: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.sidebar-item-name {
  font-weight: 500;
}

/* ⚠️ ФИКС: .sidebar-item-remove ВНУТРИ ШТОРОК — отдельный стиль */
.cart-sidebar .sidebar-item-remove,
.favorites-sidebar .sidebar-item-remove,
.compare-sidebar .sidebar-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  font-size: 16px;
  padding: 5px;
  flex-shrink: 0;
}

/* ========================================
   10. СТРАНИЦЫ УСЛУГ (вертикальные)
======================================== */

.service-card-vertical {
  background: white;
  border-radius: 20px;
  padding: 30px 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.service-card-vertical .service-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 30px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
}

.service-card-vertical .service-section h3 i {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.service-text,
.service-card-vertical .service-desc {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 15px;
}

.service-text p {
  margin-bottom: 15px;
}

.service-text p:last-child {
  margin-bottom: 0;
}

/* Вертикальные списки преимуществ */
.features-list-vertical {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.features-list-vertical li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.features-list-vertical li:last-child {
  border-bottom: none;
}

.features-list-vertical li i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.features-list-vertical li .icon-green { color: #4ade80; }
.features-list-vertical li .icon-primary { color: var(--primary); }

.features-list-vertical li div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.features-list-vertical li strong {
  color: var(--dark);
  font-weight: 600;
  font-size: 15px;
}

.features-list-vertical li span {
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Этапы: две колонки */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.stage-block {
  background: transparent !important;
  border: none !important;
  padding: 15px 0 !important;
  border-radius: 12px;
}

.stage-block h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}

.stage-block h4 i { color: var(--primary); }

.stage-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px;
  font-style: italic;
}

.stage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.stage-list li i {
  color: var(--primary);
  font-size: 12px;
  margin-top: 4px;
  flex-shrink: 0;
}

/* Примечание */
.service-note {
  background: transparent !important;
  border: none !important;
  padding: 15px 0 !important;
  border-radius: 12px;
  margin: 25px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.service-note i {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.service-note div {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}

/* Цены на страницах услуг */
.price-block {
  background: transparent !important;
  border: none !important;
  padding: 15px 0 !important;
  border-radius: 12px;
  margin: 20px 0;
}

.price-block h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}

.price-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 15px;
  line-height: 1.5;
}

.prices-table-compact {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-row-compact {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
}

.price-row-compact:last-child {
  border-bottom: none;
}

.price-label {
  font-size: 14px;
  color: #444;
  font-weight: 500;
  line-height: 1.5;
}

/* ⚠️ ФИКС: .price-amount для service-card-vertical — компактная цена (17px) */
.service-card-vertical .price-amount,
.price-block .price-amount {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  text-align: left;
}

/* Кнопки CTA на страницах услуг */
.service-cta-vertical {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Отступ между подзаголовком услуги и контентом ниже */
.service-subtitle {
  margin-bottom: 24px;
}

/* Защита от перекрытия шапкой */
.service-header {
  padding-top: 110px;
}

/* Хлебные крошки на страницах услуг */
.services-breadcrumbs {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
  line-height: 1.5;
}
.services-breadcrumbs a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s;
}
.services-breadcrumbs a:hover {
  text-decoration: underline;
}
.services-breadcrumbs .separator {
  margin: 0 8px;
  color: #ccc;
}
.services-breadcrumbs .current {
  color: #444;
  font-weight: 500;
}

/* Ссылка "назад" в стиле хлебных крошек */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #888;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.back-link:hover {
  color: #0066cc;
}
.back-link i {
  font-size: 12px;
}
/* ========================================
   11. ПОДВАЛ
======================================== */

.footer {
  background: var(--dark);
  color: white;
  padding: 80px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer-about .logo {
  margin-bottom: 20px;
  color: white;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer h4 {
  font-size: 18px;
  margin-bottom: 25px;
  position: relative;
}

.footer h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
  color: var(--secondary);
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ========================================
   12. ПЛАВАЮЩИЕ КНОПКИ (WhatsApp / Phone)
======================================== */

.floating-buttons {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-decoration: none;
}

.float-btn:hover {
  transform: scale(1.1);
}

.float-btn.whatsapp {
  background: #25d366;
}

.float-btn.phone {
  background: var(--accent);
}

/* ========================================
   13. МОДАЛЬНЫЕ ОКНА
======================================== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 50px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(-20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: var(--accent);
  color: white;
}

.modal h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--dark);
}

.modal p {
  color: #666;
  margin-bottom: 30px;
}

/* Фото-модальное окно (на карточке товара) */
.photo-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #ffffff !important;
  z-index: 3000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.3s ease !important;
}

.photo-modal.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.photo-modal img {
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block !important;
  transition: width 0.2s ease, height 0.2s ease !important;
}

.photo-modal-close,
.photo-modal-nav {
  position: absolute !important;
  width: 44px !important;
  height: 44px !important;
  background: rgba(0, 0, 0, 0.06) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #333 !important;
  font-size: 20px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.photo-modal-close:hover,
.photo-modal-nav:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  transform: scale(1.1) !important;
}

.photo-modal-close {
  top: 20px !important;
  right: 20px !important;
}

.photo-modal-prev {
  left: 20px !important;
}

.photo-modal-next {
  right: 20px !important;
}

/* Image modal для портфолио */
.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.image-modal-content img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.image-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.image-modal-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
}

.image-modal-nav-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-nav-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ========================================
   14. ПОИСК (кнопка очистки + sort-bar)
======================================== */

/* Кнопка очистки поиска */
.search-clear-icon:hover {
  color: #e74c3c !important;
}

#searchBox {
  position: relative;
}

#searchBox.has-clear-btn #searchInput,
#searchBox.has-clear-btn input[type="text"] {
  padding-left: 30px !important;
}

/* === СТРОКА СОРТИРОВКИ КАТАЛОГА (десктоп) === */
.sort-bar {
  display: flex !important;
  align-items: center !important;
  gap: 25px !important;
  padding: 10px 15px !important;
  background: #f8f9fa !important;
  border-radius: 10px !important;
  margin-bottom: 25px !important;
  margin-top: 10px !important;
  flex-wrap: nowrap !important;
}

.banner-filters-section > .products-grid {
  margin-top: 15px !important;
}

.sort-label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #555 !important;
  white-space: nowrap !important;
  margin-right: 15px !important;
}

.sort-label i {
  color: var(--primary);
  margin-right: 4px;
}

.sort-select-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  margin-right: 10px !important;
}

.sort-select-wrap label {
  font-size: 15px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  display: inline;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: white;
  color: #333;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.1);
}

/* === МОБИЛЬНЫЙ DROPDOWN СОРТИРОВКИ === */
.sort-dropdown {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  padding: 20px 20px 30px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}

.sort-dropdown.active {
  transform: translateY(0);
  pointer-events: auto;
}

.sort-dropdown-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sort-dropdown-title span i {
  color: var(--primary);
  margin-right: 8px;
}

.sort-dropdown-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #333;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sort-dropdown-close:hover {
  background: #e0e0e0;
}

.sort-dropdown .sort-select-wrap {
  margin-bottom: 12px;
}

.sort-dropdown .sort-select-wrap label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
  display: block;
}

.sort-dropdown .sort-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

.sort-dropdown-apply {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.sort-dropdown-apply:hover {
  background: var(--primary-dark);
}

.sort-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
}

.sort-overlay.active {
  display: block;
}

/* Скрытие ненужных вариантов сортировки */
@media (max-width: 992px) {
  .sort-bar { display: none !important; }
}

@media (min-width: 993px) {
  .sort-dropdown,
  .sort-overlay { display: none !important; }
}

/* ========================================
   15. АНИМАЦИИ
======================================== */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   16. ФИКСЫ (логотип, защита от синего квадрата)
======================================== */

/* УБИРАЕМ РАМКУ С ЛОГОТИПА ВО ВСЕХ СОСТОЯНИЯХ */
a.logo,
a.logo img,
.logo-img,
.header-logo,
.header-logo img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

a.logo:focus,
.header-logo:focus {
  outline: none !important;
}

/* ========================================
   17. АДАПТИВ (сгруппировано по брейкпоинтам)
======================================== */

/* === СКРЫТИЕ МОБИЛЬНЫХ ЭЛЕМЕНТОВ НА ДЕСКТОПЕ === */
@media (min-width: 993px) {
  .mobile-actions-bar,
  .mobile-overlay {
    display: none !important;
  }

  /* Скрываем мобильные крестики */
  .mobile-sidebar-close,
  .filters-close,
  .services-close {
    display: none !important;
  }
}

/* === ПЛАНШЕТЫ / НОУТБУКИ 993px – 1350px === */
@media (min-width: 993px) and (max-width: 1350px) {
  /* Скрываем длинное меню */
  .nav-menu,
  .header-menu,
  .desktop-menu {
    display: none !important;
  }

  /* Показываем бургер */
  .hamburger,
  .burger-btn,
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Уменьшаем отступы в шапке */
  .header-container,
  .header {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  /* Сжимаем поиск */
  .search-box,
  .header-search {
    max-width: 180px !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
  .search-box input {
    font-size: 13px !important;
  }

  /* Делаем шапку флекс-контейнером */
  .header-container,
  .header .container {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    flex-wrap: nowrap !important;
  }

  /* Лого + телефон слева */
  .logo,
  .header-logo,
  .header-phone {
    position: relative !important;
    z-index: 2 !important;
  }

  /* Иконки справа */
  .header-actions,
  .header-icons,
  .burger-btn {
    position: relative !important;
    z-index: 2 !important;
    margin-left: auto !important;
    gap: 5px !important;
  }

  /* Сжимаем иконки */
  .header-actions i,
  .header-icons i,
  .action-btn {
    font-size: 16px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* === КАТАЛОГ: ПРОМЕЖУТОЧНЫЙ ЭКРАН 993px – 1200px === */
@media (min-width: 993px) and (max-width: 1200px) {
  /* Скрываем колонку услуг */
  body.catalog-page .services-sidebar { display: none !important; }

  /* Сжимаем фильтры */
  body.catalog-page .filters-column {
    width: 240px !important;
    min-width: 240px !important;
    padding: 12px !important;
    font-size: 14px !important;
  }

  /* Карточка: 2 строки */
  body.catalog-page .product-card {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    padding: 10px !important;
    gap: 10px 12px !important;
    min-height: auto !important;
  }

  /* СТРОКА 1: Иконки + Цена */
  body.catalog-page .product-card > div:last-of-type {
    order: 1 !important;
    flex-basis: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
  }

  body.catalog-page .product-actions {
    position: static !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: flex-start !important;
  }

  body.catalog-page .action-btn {
    width: 30px !important;
    height: 30px !important;
    background: #f0f2f5 !important;
    border-radius: 6px !important;
  }

  body.catalog-page .product-price {
    position: static !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-align: right !important;
    margin: 0 !important;
  }

  /* СТРОКА 2: Фото */
  body.catalog-page .product-image {
    order: 2 !important;
    width: 240px !important;
    height: 240px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
  }

  /* СТРОКА 2: Характеристики */
  body.catalog-page .product-info {
    order: 3 !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  body.catalog-page .product-specs {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px 0 !important;
  }

  body.catalog-page .spec-item {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  body.catalog-page .spec-label {
    flex: 0 0 80px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
  }

  /* Скрываем мобильные кнопки */
  .mobile-actions-bar,
  .mobile-overlay { display: none !important; }
}

/* === МОБИЛЬНАЯ ШАПКА (≤ 992px) === */
@media (max-width: 992px) {
  /* Сетка: 5 колонок в один ряд */
  .header-container {
    display: grid !important;
    grid-template-columns: auto auto auto auto auto !important;
    grid-template-rows: 1fr !important;
    align-items: center !important;
    gap: 6px 6px !important;
    padding: 10px 0 !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Логотип */
  .logo {
    grid-column: 1;
    justify-self: center;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-img {
    height: 35px !important;
    width: auto !important;
    max-width: 100% !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* Телефон */
  .header-phone {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .header-phone a {
    font-size: clamp(10px, 3vw, 13px) !important;
    font-weight: 500 !important;
    color: var(--dark) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: unset !important;
    max-width: none !important;
    letter-spacing: -0.3px !important;
    font-family: 'Inter', Arial, Helvetica, sans-serif !important;
  }

  /* Скрываем меню и поиск строкой */
  .nav-menu,
  .search-box {
    display: none !important;
  }

  /* Иконки */
  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    grid-column: 3 / -1 !important;
    grid-row: 1 !important;
    justify-content: flex-end !important;
  }

  /* Порядок иконок в мобильной шапке */
  .search-toggle { order: 1 !important; }
  #headerCartBtn { order: 2 !important; }
  .hamburger { order: 3 !important; }

  /* Скрываем лишние иконки */
  #headerCompareBtn,
  #headerFavoritesBtn {
    display: none !important;
  }

  /* Показываем нужные */
  .search-toggle,
  #headerCartBtn,
  .hamburger {
    display: flex !important;
  }

  /* Раскрываемый поиск */
  .search-box.mobile-active {
    display: flex !important;
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: white !important;
    padding: 10px 15px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15) !important;
    z-index: 100 !important;
    animation: slideDown 0.2s ease !important;
  }

  .search-box.mobile-active input {
    flex: 1 !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  .search-box.mobile-active #headerSearchForm,
  .search-box.mobile-active form {
    max-width: 85% !important;
  }

  /* Разрешаем колонкам сжиматься */
  .header-container > * {
    min-width: 0 !important;
  }

  /* Иконки: фиксируем размер */
  .header-icon-btn {
    flex-shrink: 0 !important;
    min-width: 36px !important;
  }

  /* Уменьшаем отступ под шапку на мобильных */
  body,
  body.catalog-page {
    padding-top: 72px !important;
  }

  /* === КАТАЛОГ НА МОБИЛЬНЫХ === */
  body.catalog-page .main {
    margin-top: 80px !important;
    padding: 15px 0 80px !important;
  }

  body.catalog-page .section-title {
    font-size: 24px !important;
  }

  /* Сетка: одна колонка */
  .catalog-with-sidebar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 15px !important;
  }

  body.catalog-page .banner-filters-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  /* Баннер и поиск */
  body.catalog-page .banner-placeholder {
    height: 80px !important;
    font-size: 14px !important;
  }

  body.catalog-page .search-box {
    height: 44px !important;
  }

  body.catalog-page .search-box input {
    font-size: 15px !important;
    padding: 10px 12px !important;
  }

  body.catalog-page .search-box button {
    width: 44px !important;
    font-size: 16px !important;
  }

  /* Мобильная панель кнопок */
  .mobile-actions-bar {
    display: flex !important;
    position: sticky !important;
    top: 55px !important;
    z-index: 900 !important;
    gap: 10px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    padding: 10px 0 !important;
    background: #f8f9fa !important;
    margin-bottom: 10px !important;
  }

  .mobile-action-btn {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 12px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
  }

  .mobile-action-btn i {
    color: var(--primary) !important;
    font-size: 14px !important;
  }

  .mobile-action-btn:active {
    background: #f0f0f0 !important;
    transform: scale(0.98) !important;
  }

  /* Шторки-сайдбары на мобильных */
  .services-sidebar,
  body.catalog-page .filters-column {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: auto !important;
    height: 80vh !important;
    max-height: 600px !important;
    border-radius: 20px 20px 0 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease !important;
    z-index: 2000 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 30px !important;
  }

  .services-sidebar.mobile-active,
  body.catalog-page .filters-column.mobile-active {
    transform: translateY(0) !important;
  }

  /* Кнопка закрытия шторки */
  .mobile-sidebar-close {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    align-self: flex-end !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    border: none !important;
    color: #333 !important;
    font-size: 18px !important;
    cursor: pointer !important;
    margin: 10px 10px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
  }

  .mobile-sidebar-close:hover {
    background: #e0e0e0 !important;
  }

  /* Затемнение фона */
  .mobile-overlay {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  .mobile-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Карточки: квадратные */
  body.catalog-page .products-grid {
    gap: 12px !important;
  }

  body.catalog-page .product-card {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 12px !important;
    border-radius: 16px !important;
    min-height: auto !important;
    overflow: visible !important;
    background: white !important;
    border: 1px solid #eee !important;
    aspect-ratio: auto !important;
    height: auto !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
  }

  /* Переворачиваем цену и иконки в ряд */
  .product-card > div[style*="flex-direction:column"] {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: 12px !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.catalog-page .product-image {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 0 !important;
    padding: 15px !important;
    box-shadow: none !important;
  }

  body.catalog-page .product-info {
    flex: 1 !important;
    padding: 12px 15px 50px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.catalog-page .product-brand {
    font-size: 14px !important;
    margin-bottom: 4px !important;
  }

  body.catalog-page .product-name {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  body.catalog-page .product-specs {
    grid-template-columns: 1fr !important;
    gap: 4px 0 !important;
  }

  body.catalog-page .spec-item {
    font-size: 13px !important;
  }

  body.catalog-page .spec-label {
    font-size: 13px !important;
  }

  /* Цена */
  body.catalog-page .product-price {
    position: static !important;
    text-align: left !important;
    min-width: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--primary) !important;
    white-space: nowrap !important;
  }

  /* Иконки */
  body.catalog-page .product-actions {
    position: static !important;
    margin-bottom: 0 !important;
    display: flex !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
  }

  /* Кнопки: компактные */
  .action-btn {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    border: none !important;
    color: #555 !important;
    cursor: pointer !important;
    padding: 0 !important;
  }

  /* Пагинация */
  body.catalog-page .pagination {
    gap: 6px !important;
    margin-top: 20px !important;
  }

  body.catalog-page .pagination-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 13px !important;
  }

  /* === ГЛАВНАЯ НА МОБИЛЬНЫХ === */
  .hero-content,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero новая структура */

  .hero-form {
    order: 2;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* КАРТОЧКА ТОВАРА: переключение на flex-column */
  body.product-page .product-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  body.product-page .gallery { order: 1 !important; }
  body.product-page .description { order: 2 !important; }
  body.product-page .specs-section { order: 3 !important; }
  body.product-page .right-column { order: 4 !important; }

  /* Why-us */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .why-content { order: 1; }
  .why-image { order: 2; }

  .why-badge {
    max-width: 100%;
  }

  .why-photo-wrapper {
    aspect-ratio: 4 / 3;
  }

  /* Hero grid на 991px */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  .hero-features-col,
  .hero-carousel,
  .hero-form-col {
    grid-column: span 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* === УЗКИЕ ЭКРАНЫ (≤ 768px) === */
@media (max-width: 768px) {
  /* Каталог */
  body.catalog-page .section-title {
    font-size: 28px !important;
  }

  body.catalog-page .product-specs {
    grid-template-columns: 1fr !important;
  }

  body.catalog-page .product-actions {
    top: 4px !important;
    right: 4px !important;
  }

  body.catalog-page .action-btn {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
  }

  /* Шторки */
  .cart-sidebar,
  .favorites-sidebar,
  .compare-sidebar {
    width: 100% !important;
    right: -100% !important;
  }

  /* Главная */
  .nav {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .stats-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid #eee;
  }

  .process-step::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .why-image {
    align-items: stretch;
  }

  /* Портфолио */
  .portfolio-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  /* Цены */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Сравнение */
  .compare-table th,
  .compare-table td {
    padding: 10px 8px !important;
    font-size: 14px !important;
  }

  /* Фото-модальное */
  .photo-modal-close,
  .photo-modal-nav {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
  }

  .photo-modal-prev { left: 10px !important; }
  .photo-modal-next { right: 10px !important; }

  /* Товар: кнопка "назад" */
  body.product-page .back-btn-top {
    top: 80px !important;
    left: 15px !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
  }

  /* Hero новая структура */
  .hero-new {
    padding-top: 40px;
    min-height: auto;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 20px;
    white-space: normal !important;
  }

  /* Сетка: 1 колонка */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: 100vw !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  .hero-features-col {
    grid-column: span 1;
    flex-direction: column;
  }

  /* Форма */
  .hero-form h3 {
    font-size: 18px !important;
  }

  .hero-form input,
  .hero-form select,
  .hero-form button {
    font-size: 14px !important;
    padding: 10px !important;
  }

  .hero-form-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    order: 3;
  }

  /* Карусель */
  .hero-carousel {
    min-height: 200px;
    order: 2;
  }

  /* Кнопки на мобильных */
  .hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Бренды */
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .brand-logo {
    padding: 15px;
  }

  .brand-logo img {
    max-width: 80px;
    max-height: 40px;
  }

  /* Портфолио превью */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Статистика */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Страницы услуг */
  .service-card-vertical {
    padding: 25px 20px;
  }

  .service-card-vertical .service-section h3 {
    font-size: 20px;
  }

  .stages-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stage-block {
    padding: 18px;
  }

  .stage-block h4 {
    font-size: 16px;
  }

  /* Цены на услугах */
  .price-row-compact {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-label {
    font-size: 14px;
  }

  .service-card-vertical .price-amount,
  .price-block .price-amount {
    font-size: 18px;
    text-align: left;
  }

  .service-header {
    padding-top: 85px;
  }

  /* Плавающие кнопки */
  .floating-buttons .btn-whatsapp,
  .floating-buttons .btn-phone,
  .floating-buttons .float-btn {
    max-width: 50px !important;
    max-height: 50px !important;
  }

  /* Запрет горизонтального скролла на главной */
  .home-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .home-page .hero-new,
  .home-page .container,
  .home-page .hero-grid,
  .home-page .hero-form,
  .home-page .hero-carousel,
  .home-page .floating-buttons {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .floating-buttons {
    right: 10px !important;
    left: auto !important;
  }

  .hero-form {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* === ОЧЕНЬ УЗКИЕ ЭКРАНЫ (≤ 600px) === */
@media (max-width: 600px) {
  .why-us {
    padding: 60px 0;
  }

  .why-us .section-header {
    margin-bottom: 40px;
  }

  .why-content {
    gap: 20px;
  }

  .why-badge {
    padding: 14px 15px;
    font-size: 14px;
    flex-direction: column;
    gap: 4px;
  }

  .why-badge .number {
    font-size: 22px;
  }

  .why-badge .text {
    font-size: 12px;
    text-align: center;
  }

  .why-content h2 {
    font-size: 22px;
  }

  .why-content > p {
    font-size: 16px;
  }

  .why-feature-icon {
    width: 50px;
    height: 50px;
  }

  .why-feature-icon i {
    font-size: 20px;
  }

  .why-feature h4 {
    font-size: 16px;
  }

  .why-feature p {
    font-size: 13px;
  }
}

/* === УЗКИЕ ЭКРАНЫ (≤ 480px) === */
@media (max-width: 480px) {
  /* Портфолио */
  .portfolio-gallery {
    grid-template-columns: 1fr;
  }

  /* Плавающие кнопки */
  .floating-buttons {
    bottom: 15px;
    right: 15px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  /* Бренды */
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 28px;
  }

  /* Hero новая структура */
  .hero-title {
    font-size: 28px;
  }

  /* Страницы услуг */
  .service-card-vertical {
    padding: 20px 15px;
  }

  .service-card-vertical .service-section h3 {
    font-size: 19px;
  }

  .features-list-vertical li strong {
    font-size: 14px;
  }

  .features-list-vertical li span {
    font-size: 13px;
  }

  .stage-block h4 {
    font-size: 15px;
  }

  .stage-list li {
    font-size: 13px;
  }

  .price-block {
    padding: 15px;
  }

  .price-block h4 {
    font-size: 16px;
  }

  .service-card-vertical .price-amount,
  .price-block .price-amount {
    font-size: 17px;
  }

  .btn-full {
    font-size: 15px;
    padding: 12px 16px;
  }

  /* Каталог: уменьшаем отступы только для контента, НЕ для шапки */
  body.catalog-page .main .container {
    padding: 0 15px !important;
  }

  .mobile-action-btn {
    padding: 8px 6px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }

  .mobile-action-btn i {
    font-size: 12px !important;
  }
}

/* === ОЧЕНЬ УЗКИЕ (≤ 400px) === */
@media (max-width: 400px) {
  .hero-new {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .hero-title {
    font-size: 24px !important;
  }
}

/* === МИНИМАЛЬНАЯ ШИРИНА (≤ 380px) === */
@media (max-width: 380px) {
  .logo-img {
    height: 30px !important;
  }

  .header-icon-btn {
    min-width: 32px !important;
    width: 32px !important;
    height: 32px !important;
  }
}

/* === САМЫЕ УЗКИЕ (≤ 325px) === */
@media (max-width: 325px) {
  .mobile-action-btn:first-child {
    display: none !important;
  }
}
/* === ОБЁРТКА КАРУСЕЛИ УСЛУГ (на десктопе прозрачна и не мешает сетке) === */
.services-carousel {
  position: relative;
}

/* Стрелки по умолчанию скрыты — покажем только на мобильном */
.services-nav { display: none; }

/* === МОБИЛЬНАЯ/ПЛАНШЕТНАЯ ЛЕНТА УСЛУГ (<=992px) — ПО 2 КАРТОЧКИ === */
@media (max-width: 992px) {

  .services-carousel .services-grid {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    gap: 14px !important;
    padding: 6px 4px 18px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-carousel .services-grid::-webkit-scrollbar { display: none; }

  /* ДВЕ карточки в ряд: (вся ширина минус один промежуток 14px) / 2 */
  .services-carousel .services-grid > .service-card {
    flex: 0 0 calc((100% - 14px) / 2) !important;
    width: auto !important;
    max-width: none !important;
    scroll-snap-align: start;       /* листание выравнивает по левому краю — ровнее при 2+ карточках */
    margin: 0 !important;
  }

  /* Стрелки по краям */
  .services-carousel .services-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0066cc;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 14px rgba(0, 40, 90, .12);
    transition: background .2s ease, color .2s ease, transform .2s ease;
  }
  .services-carousel .services-nav:hover {
    background: #0066cc;
    color: #fff;
    transform: translateY(-50%) scale(1.08);
  }
  .services-carousel .services-nav.prev { left: 2px; }
  .services-carousel .services-nav.next { right: 2px; }
}

/* === ТЕЛЕФОН (<=768px) — ПО 1 КАРТОЧКЕ === */
@media (max-width: 768px) {
  .services-carousel .services-grid > .service-card {
    flex: 0 0 88% !important;       /* одна карточка + тонкий краешек следующей как намёк «листай» */
  }
}
/* ========================================
   КОНЕЦ ФАЙЛА
======================================== */