@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --es-navy: #183b6d;
  --es-navy-deep: #122a4f;
  --es-navy-soft: #2a4f7c;
  --es-copper: #b87333;
  --es-copper-hover: #9a5f28;
  --es-copper-soft: #c9893a;
  --es-bg: #f3f5f8;
  --es-bg-accent: #e8eef5;
  --es-surface: #ffffff;
  --es-text: #1a2332;
  --es-muted: #5c6b7a;
  --es-line: #d8e0ea;
  --es-radius: 10px;
  --es-radius-lg: 14px;
  --es-shadow: 0 8px 24px rgba(18, 42, 79, 0.08);
  --es-shadow-sm: 0 2px 10px rgba(18, 42, 79, 0.06);
  --es-font-ui: "Manrope", "Segoe UI", sans-serif;
  --es-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --es-header-h: 72px;
}

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

    body {
      font-family: var(--es-font-ui);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      color: var(--es-text);
      background-color: var(--es-bg);
      background-image:
        radial-gradient(900px 420px at 8% -10%, rgba(184, 115, 51, 0.08), transparent 55%),
        radial-gradient(800px 380px at 100% 0%, rgba(24, 59, 109, 0.07), transparent 50%),
        linear-gradient(180deg, #f7f9fc 0%, var(--es-bg) 40%, #eef2f7 100%);
      background-attachment: fixed;
      line-height: 1.6;
    }

    header {
      background: linear-gradient(180deg, var(--es-navy-deep) 0%, var(--es-navy) 100%);
      color: #fff;
      padding: 10px 20px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      position: sticky;
      top: 0;
      z-index: 950;
      box-shadow: 0 4px 18px rgba(18, 42, 79, 0.25);
    }

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 20px;
  width: 100%;
  flex-wrap: wrap;
}

    .logo-title {
      display: flex;
      align-items: center;
      text-decoration: none;
      color: white;
      gap: 10px; /* Расстояние между логотипом и текстом */
    }
 /* Убираем синие/фиолетовые цвета и подчёркивание у ссылок */
.logo-link:link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
  text-decoration: none;
  color: white;
}

    .logo {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center;
      flex-shrink: 0;
      display: block;
      box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
    }
    .search-container {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 800px;
  margin: 0 auto;
}
.search-container input {
  flex: 1;
  padding: 8px;
  height: 40px;
  font-size: 16px;
}

.search-container button {
  padding: 8px 16px;
  font-size: 16px;
  height: 40px;
  background-color: var(--es-copper);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

    .header-block {
      padding: 5px 100px;
    }

    .main-container {
      display: flex;
      flex: 1;
      width: 100%;
      padding: 20px;
    }

    .main-content {
      flex: 2;
      background-color: #ecf0f1;
      padding: 10px;
      margin-right: 10px;
    }

    .sidebar {
  width: 350px;
  background-color: #183B6D;
  color: white;
  padding: 20px;
  text-decoration: none;
  color: #f4f4f4;
}


    footer {
      background-color: #183B6D;
      color: white;
      padding: 10px 20px;
    }

    .footer-container {
      display: flex;
      justify-content: 10px;
      width: 100%;
    }

    .footer-block {
      text-align: left;
      padding: 5px 10px;
    }

    @media (max-width: 768px) {
      .header-container,
      .footer-container,
      .main-container {
        flex-direction: column;
        align-items: center;
      }
@media (max-width: 768px) {
    body {
        padding-top: 180px; /* Для .menu-toggle, .search-container, .actions */
        overflow-x: hidden;
    }
}
      .main-content,
      .sidebar {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
      }
      

      .header-container {
        gap: 10px;
      }
    }

/* Фон меню — только шапка/моб. сайдбар. Глобальный nav {} давал серый прямоугольник в подвале */
.mobile-sidebar nav,
.mobile-sidebar + nav {
    background-color: #34495e;
  }
  nav { font-size: 14px; }
  .menu {
    display: flex;
    justify-content: center;
    list-style: none;
  }
  
  .menu li {
    position: relative;
    padding: 10px 15px;
    cursor: pointer;
    color: white;
  }
  
  .menu li:hover {
    background-color: #2c3e50;
  }
  
  .submenu {
    display: none;
    position: static;
    top: 100%;
    left: 0;
    background-color: #3c5b76;
    list-style: none;
    min-width: 160px;
    z-index: 1000;
  }
  
  .submenu li {
    padding: 10px 15px;
    color: white;
    white-space: nowrap;
  }
  
  .submenu li:hover {
    background-color: #2c3e50;
  }
  
  
  /* Для адаптива */
  @media (max-width: 768px) {
    .menu {
      flex-direction: column;
      align-items: center;
    }
  
    .submenu {
      position: static;
      width: 100%;
    }
  
    .submenu li {
      text-align: center;
      padding: 6px 10px;
    }
  }
  /* Стрелка ▼ у пунктов с подменю */
  .menu li:has(.submenu)::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 10px;
    color: #fff;
  }
  
  /* Чтобы стрелка не сдвигалась */
  .menu li {
    position: relative;
    padding-right: 25px;
  }
  
  /* Адаптив: не отображать стрелку если нужно */
  @media (max-width: 768px) {
  }
    .menu li:has(.submenu)::after {
      content: "";
    }
  
  /* Стрелочка */
.has-submenu::after {
    content: " ▼";
    font-size: 12px;
    margin-left: 5px;
    color: #fff;
  }
  
  /* Подменю — скрыто по умолчанию */
  .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3c5b76;
    list-style: none;
    min-width: 160px;
    z-index: 1000;
  }
  
  /* На ПК — показываем при наведении */
  @media (hover: hover) {
    .has-submenu:hover .submenu {
      display: block;
    }
  }
  
  /* Активное подменю при тапе */
.has-submenu.submenu-active .submenu {
  display: block;
}
  .site-title {
    margin-left: 5px;
    font-size: 35px;
    font-weight: bold;
    color: white;
  }
  .menu a {
    color: white;
    text-decoration: none;
  }
  .menu a, .submenu a {
  color: white;
  text-decoration: none;
  pointer-events: auto;
}

  /* При наведении (по желанию можешь изменить цвет) */
  .menu a:hover {
    color: #ccc; /* или white, если без изменения */
  }
  .submenu a {
    color: white;
    text-decoration: none;
  }
  .header-location {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: white;
  }
 
  .header-call {
  display: flex;
  align-items: center;
}

.actions {
    margin-top: 35px; /* Отступ сверху, чтобы быть ниже .search-container */
}
.call-button {
  background-color: #10ac54;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 10px;
  transition: background-color 0.3s ease;
}

.call-button:hover {
  background-color: #10ac40;
}
@media (max-width: 768px) {
  .call-button {
    padding: 8px 14px;
    font-size: 13px;
  }
}
.whatsapp-button {
  display: flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
  background-color: #1ebe5d;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  margin-right: auto;
  margin-left: 10px;
  z-index: 1000; /* Выше других элементов */
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav .menu {
    display: none;
    flex-direction: column;
    background-color: #183B6D;
    padding: 10px;
    font-size: 10px;
  }

  nav .menu.menu-open {
    display: flex;
  }
}
@media (max-width: 768px) {
  nav .menu {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 10px;
  }
@media (max-width: 768px) {
  .menu a, .submenu a {
    color: white;
    text-decoration: none;
    pointer-events: auto; /* Явно разрешаем клики */
    display: none; /* Удобнее для мобильных */
    padding: 10px; /* Увеличиваем область клика */
  }
}
  nav .menu li {
    width: 100%;
  }

  .menu-toggle {
    display: block;
    text-align: center;
    margin: 10px auto;
    padding: 6px 10px;
  }

nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px; /* Размер текста для всех ссылок в nav */
}
}
 body { font-family: Arial; padding: 20px; background: #f5f5f5; }
   .catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Уменьшаем минимальную ширину */
  gap: 20px;
  padding: 20px;
}
    .product {
      background: #fff; border: 1px solid #ddd; border-radius: 10px;
      width: 300px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .product img { width: 100%; border-radius: 8px; }
    .product h3 { margin: 10px 0 5px; }
    .product p { font-size: 14px; color: #555; }
    .product button {
      margin-top: 10px; padding: 10px 15px; background: #183B6D;
      color: white; border: none; border-radius: 5px; cursor: pointer;
    }

    /* Модалка */
    .modal {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%;
      background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center;
    }
    .modal-content {
      background: white; padding: 20px; border-radius: 10px; width: 300px; position: relative;
    }
    .modal-content h3 { margin-top: 0; }
    .modal-content input, .modal-content textarea {
      width: 100%; padding: 8px; margin: 8px 0; border: 1px solid #ccc; border-radius: 5px;
    }
    .modal-content button {
      padding: 10px; background: #183B6D; color: white; border: none; border-radius: 5px;
    }
    .close {
      position: absolute; top: 10px; right: 10px; cursor: pointer; font-weight: bold;
    }

    /* Сообщение "Спасибо" */
    .thank-you {
      display: none; text-align: center; padding: 15px; background: #d4edda; color: #155724;
      border: 1px solid #c3e6cb; margin-top: 15px; border-radius: 5px;
    }

    /*-- Главная страница --*/
body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      line-height: 1.6;
      background-color: #f4f4f4;
      color: #333;
    }
   
    .btn {
      background-color: var(--es-navy);
      color: white;
      padding: 12px 25px;
      border: none;
      cursor: pointer;
      font-size: 16px;
      border-radius: 5px;
      text-decoration: none;
    }
    .section {
      padding: 50px 20px;
      max-width: 1100px;
      margin: auto;
    }
    .section h2 {
      text-align: center;
      margin-bottom: 30px;
      font-size: 18px; /* Уменьшенный размер заголовка */
    }
    .services {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }
    /* Контейнер сетки */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

/* Ссылка оборачивающая карточку */
.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Анимация при наведении */
.service-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.services-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: white;
  border-radius: 8px;
}

.service-item {
  color: #183B6D;
  font-size: 20px;
  padding: 10px;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.service-item:hover {
  background-color: #f0f4ff;
}

    .about, .reviews, .contact {
      background: white;
      border-radius: 8px;
      padding: 30px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .review {
      margin-bottom: 20px;
      border-left: 4px solid var(--es-navy);
      padding-left: 15px;
    }
    form {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }
    input, select, textarea {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 4px;
      font-size: 16px;
      width: 100%;
    }
    iframe {
      width: 100%;
      height: 300px;
      border: none;
      margin-top: 30px;
      border-radius: 8px;
    }
    .section {
  padding: 60px 20px;    /* внутренняя высота секции */
  margin-bottom: 20px;   /* расстояние после секции */
}

    /*конец главной стр*/
    /* Для sidebar */
.sidebar a {
    color: white; /* Белый цвет для ссылок */
    text-decoration: none; /* Убирает подчёркивание, если нужно */
}

/* Для footer */
.footer-container a {
    color: white; /* Белый цвет для ссылок */
    text-decoration: none; /* Убирает подчёркивание, если нужно */
}

/* Для посещенных, активных и при наведении ссылок */
.sidebar a:hover, .sidebar a:visited, .sidebar a:active,
.footer-container a:hover, .footer-container a:visited, .footer-container a:active {
    color: rgb(255, 255, 255); /* Убедимся, что цвет остаётся белым */
}


.sidebar {
  position: sticky;
  top: 10px; /* отступ сверху */
  align-self: flex-start; /* важно при flex-контейнерах */
}
.sidebar {
 
  top: 20px;
  right: 10px; /* или left: 0, если он слева */
  height: calc(100vh - 40px); /* учитывать отступы */
  overflow-y: auto; /* прокрутка если контент длинный */
}
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

  .modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
  }

  .modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
  }

  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .close:hover,
  .close:focus {
    color: rgb(0, 0, 0);
    text-decoration: none;
    cursor: pointer;
  }
.catalog .product img {
  width: 100%;
  height: 160px; /* Уменьш... высоту картинки */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px; /* Уменьш... отступ */
}

.catalog .product {
  width: 100%;
  max-width: 180px; /* Уменьш... ширину карточки */
  min-height: 240px; /* Уменьш... высоту карточки */
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 5px; /* Уменьш... отступы */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog .product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .catalog {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Уменьшаем ещё больше */
  }

  .catalog111 .product {
    flex: 0 0 120px; /* Меньше ширина для мобильных */
    min-height: 200px;
    padding: 8px;
  }
}
#imageModal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.92);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
  box-sizing: border-box;
}

#imageModal .close {
  position: absolute;
  top: 16px;
  right: 20px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1003;
  line-height: 1;
}

/* Фиксированная область: размер не прыгает при смене фото */
.image-modal-viewport {
  position: relative;
  width: min(92vw, 960px);
  height: min(72vh, 680px);
  max-height: calc(100vh - 100px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  overflow: hidden;
}

#imageModal .modal-image,
#imageModal #modalImage {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}

.image-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1002;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.image-modal-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.image-modal-arrow--prev {
  left: 10px;
}

.image-modal-arrow--next {
  right: 10px;
}

@media (max-width: 600px) {
  .image-modal-viewport {
    width: 94vw;
    height: min(58vh, 520px);
  }

  .image-modal-arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .image-modal-arrow--prev {
    left: 4px;
  }

  .image-modal-arrow--next {
    right: 4px;
  }
}
/* Горизонтальный скролл для карточки товаров */
.product-images-scroll {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 5px;
}

.product-images-scroll img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 6px;
  cursor: pointer;
}
.product img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd; /* Для видимости, если картинка не грузится */
}
/* Адаптация ширины и шрифта на мобильных */
@media (max-width: 768px) {
  .site-title {
    font-size: 14px; /* уменьшенный размер */
    text-align: center;
  }

  .subtitle {
    font-size: 10px;
    text-align: center;
  }

  .sidebar {
    width: 100%; /* адаптивная ширина */
    padding: 10px;
  }

  .main-content {
    padding: 10px;
  }

  .header-location h3 {
    font-size: 12px;
    word-break: break-word;
  }

  .product {
    width: 100%;
  }
  .catalog .product {
        width: 120px; /* Ещё меньше для мобильных (было 250px) */
        min-height: 200px; /* Уменьшаем высоту */
        padding: 4px; /* Меньше отступы */
    }

    .catalog111 .product img {
        height: 140px; /* Уменьшаем картинку */
    }

    .catalog111 .product h3 {
        font-size: 12px; /* Меньше шрифт */
    }

    .catalog111 .product .price {
        font-size: 16px; /* Меньше шрифт */
          word-wrap: break-word;
          overflow-wrap: break-word;
    }

}

/* Глобальное исправление обтекания */
* {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Убрать горизонтальный скролл */
body {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  nav .menu {
    width: 100%;
    box-sizing: border-box;
  }

  nav .menu li {
    width: 100%;
    text-align: center;
    padding: 8px;
    overflow-wrap: break-word;  /* позволяет переносить длинные слова */
    word-wrap: break-word;
    white-space: normal;         /* чтобы текст не был в одну строку */
  }

  nav .menu li a {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 8px;
  }

  .submenu {
    width: 100%;
    padding: 0;
  }
.submenu li,
.submenu a {
  padding: 6px 10px;  /* было 10px 15px или 10px — уменьшено */
  font-size: 14px;    /* можно тоже чуть уменьшить */
}

  .submenu li {
    width: 100%;
    padding: 6px;
    font-size: 10px;
    text-align: center;
    word-break: break-word;
  }
}
.thank-you {
    display: none;
    color: green;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}
.card button {
  position: relative;
  z-index: 10;
}
.catalog .product h3 {
  font-size: 12px;
  margin: 5px 0 5px;
  color: #183B6D;
}

.catalog .product .price {
  font-size: 12px;
  font-weight: bold;
  color: #10ac54;
  margin: 8px 0;
}
.catalog .product button {
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 12px;
  background-color: #183B6D;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.catalog .product button:hover {
  background-color: #0f2e55;
}
.catalog .product {
  width: 100%;
}
#scrollToTop {
  position: fixed;
  bottom: 15px;
  right: 15px;
  z-index: 999;
  background-color: #183B6D;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: none; /* скрыта по умолчанию */
  transition: opacity 0.3s ease;
}

#scrollToTop:hover {
  background-color: #0f2e55;
}

/* Стили для бокового меню */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* скрыто */
  width: 250px;
  height: 100vh; /* Высота на весь экран */
  box-shadow: 2px 0 5px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto; /* Включаем вертикальную прокрутку */
  transition: left 0.3s ease;
  z-index: 1000;
}


.mobile-sidebar nav a {
  margin: 15px 0;
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.mobile-sidebar.open {
  left: 0; /* Показывается */
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  margin: 10px;
  z-index: 1100;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  float: right;
}
/* Показываем мобильное меню только на экранах до 768px */
@media (min-width: 769px) {
  .mobile-sidebar {
    display: none;
  }

  .menu-toggle {
    display: none;
  }
}
.mobile-sidebar {
  background-color: #2c3e50; /* Синий фон */
  color: white !important;
}

.mobile-sidebar nav,
.mobile-sidebar nav ul,
.mobile-sidebar nav li,
.mobile-sidebar nav a {
  background-color: transparent !important; /* убираем белый фон */
  color: white !important;
}


/* Чтобы ссылки не были подчёркнутыми */
.mobile-sidebar nav a {
  text-decoration: none;
}

/* При наведении или активном состоянии — если нужно, можно менять цвет */
.mobile-sidebar nav a:hover,
.mobile-sidebar nav a:focus,
.mobile-sidebar nav a:active {
  color: #ccc !important; /* чуть светлее при наведении */
}
.mobile-sidebar nav li.has-submenu {
  color: white;
  cursor: pointer;
}
@media (max-width: 768px) {
  .logo {
    display: none;
  }
  .logo-title {
    padding: 0;
    margin: 0;
    /* если у него есть фиксированная высота, убрать её */
    height: auto;
  }
}
.mobile-sidebar .submenu {
    display: none;
    position: static;
    width: 100%;
    background-color: #2c3e50;
    padding-left: 10px;
}

.mobile-sidebar .submenu.submenu-active {
    display: block !important; /* !important для приоритета */
}

@media (max-width: 768px) {
    .has-submenu:hover .submenu {
        display: none; /* Отключаем открытие при наведении */
    }
}

.mobile-sidebar {
  display: none; /* по умолчанию скрыто */
  color: white;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  z-index: 999;
}

.mobile-sidebar.open {
  display: block;
}
.menu-toggle {
    position: fixed; /* Фиксируем кнопку */
    top: 1px; /* Отступ сверху */
    left: 5px; /* Отступ слева */
    background: #183B6D; /* Цвет фона, чтобы кнопка выделялась */
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    z-index: 1000; /* Выше других элементов */
    padding: 8px 12px; /* Для удобства нажатия */
    border-radius: 5px; /* Скругление углов */
    
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none; /* Скрываем на десктопе, если не нужно */
    }
}
.search-container {
    position: fixed; /* Фиксируем поиск */
    top: 10px; /* Отступ сверху, чтобы не перекрывать кнопку меню */
    left: 60px;
    right: 10px; /* Растягиваем по ширине с отступами */
    max-width: calc(100% - 70px); /* Адаптивная ширина */
    background: #fff; /* Фон для видимости */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Тень для красоты */
    z-index: 1000; /* Чуть ниже кнопки меню */
    display: flex;
    align-items: center;
    padding: 5px;
    border-radius: 5px;
}

.search-container input {
    flex: 1;
    padding: 8px;
    height: 33px;
    font-size: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.search-container button {
    padding: 8px 16px;
    font-size: 10px;
    height: 33px;
    background-color: var(--es-copper);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

@media (min-width: 769px) {
    .search-container {
        position: static; /* Убираем фиксацию на десктопе */
        box-shadow: none; /* Убираем тень */
        background: none; /* Убираем фон */
    }
}
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 50px; /* Отступы для кнопок */
    box-sizing: border-box;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #183B6D;
    color: white;
    border: none;
    padding: 4px 6px; /* Уменьш... размер кнопки */
    font-size: 18px; /* Уменьш... размер стрелки */
    cursor: pointer;
    border-radius: 50%;
    z-index: 900;
    transition: background-color 0.3s ease;
}

.slider-btn:hover {
    background-color: #0f2e55;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Существующие стили .catalog111 остаются, добавляем только уточнения */
.catalog111 {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    white-space: break-word;
    scroll-behavior: smooth; /* Плавная прокрутка */
}

.catalog111 .product {
    flex: 0 0 auto;
    width: 180px; /* Уменьш... ширину карточки */
    min-height: 240px; /* Уменьш... высоту карточки*/
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 10px; /* Уменьш... отступы */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

.catalog111 .product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.catalog111 .product img {
    width: 100%;
    height: 160px; /* Уменьш... высоту картинки*/
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px; /* Уменьш... отступ */
}

.catalog111 .product h3 {
    font-size: 12px;
    margin: 10px 0 5px;
    color: #183B6D;
    word-wrap: break-word; /* Перенос слов */
    overflow-wrap: break-word; /* Современный аналог */
    white-space: normal; /* Разрешаем перенос на несколько строк */
    max-width: 100%; /* Ограничиваем ширину */
}

.catalog111 .product .price {
    font-size: 10px;
    font-weight: bold;
    color: #10ac54;
    margin: 8px 0;
     word-wrap: break-word;
}

.catalog111 .product button {
    padding: 8px 10px;
    margin-top: 8px;
    font-size: 12px;
    background-color: #183B6D;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
   }

.catalog111 .product button:hover {
    background-color: #0f2e55;
}

.catalog111::-webkit-scrollbar {
    display: none;
}

.catalog111 {
    -ms-overflow-style: none;
    scrollbar-width: none;
    
}

@media (max-width: 768px) {
    .catalog111 .product {
        
        width: 180px; /* Ещё меньше для мобильных (было 250px) */
        min-height: 320px; /* Уменьшаем высоту */
        padding: 8px; /* Меньше отступы */
    }

    .catalog111 .product img {
        height: 140px; /* Уменьшаем картинку */
    }

    .catalog111 .product h3 {
        font-size: 14px; /* Меньше шрифт */
    }

    .catalog111 .product .price {
        font-size: 16px; /* Меньше шрифт */
        word-wrap: break-word;
    }
}
@media (max-width: 768px) {
       .slider-controls {
        display: none; /* Скрываем кнопки на мобильных */
    }

    .slider-container {
        padding: 10px; /* Убираем лишний отступ сверху */
    }

    .catalog111 {
        overflow-x: auto; /* Сохраняем сенсорную прокрутку */
    }
}
/* Стили для контейнера результатов поиска */
#product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

#product-container .product {
    width: 180px; /* Фиксированная ширина карточки */
    min-height: 240px; /* Фиксированная минимальная высота карточки */
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#product-container .product img {
    width: 100%;
    height: 180px; /* Высота изображения */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
}

#product-container .product h3 {
    font-size: 12px;
    margin: 8px 0;
    color: #183B6D;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
}

#product-container .product .price {
    font-size: 14px;
    font-weight: bold;
    color: #10ac54;
    margin: 8px 0;
}

#product-container .product button {
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 12px;
    background-color: #183B6D;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#product-container .product button:hover {
    background-color: #0f2e55;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    #product-container {
        padding: 10px;
        gap: 15px;
    }

    #product-container .product {
        width: 160px; /* Меньшая ширина для мобильных */
        min-height: 240px; /* Меньшая высота */
        padding: 10px;
    }

    #product-container .product img {
        height: 140px; /* Меньшая высота изображения */
    }

    #product-container .product h3 {
        font-size: 12px;
    }

    #product-container .product .price {
        font-size: 12px;
    }

    #product-container .product button {
        padding: 8px 12px;
        font-size: 11px;
    }
}
#cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border-radius: 5px;
}

.cookie-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cookie-content p {
  margin: 0 0 10px;
  font-size: 14px;
}

.cookie-content a {
  color: var(--es-navy);
  text-decoration: underline;
}

.cookie-content button {
  padding: 8px 16px;
  margin: 0 5px;
  border: none;
  background: var(--es-navy);
  color: #fff;
  border-radius: 3px;
  cursor: pointer;
}

.cookie-content button:hover {
  background: var(--es-navy-deep);
}

/* Ссылка-название товара в каталоге */
a.product-card-title {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  font-weight: bold;
  display: inline-block;
  line-height: 1.3;
}
a.product-card-title:hover {
  color: var(--es-copper);
  text-decoration: underline;
}

/* Страница товара product.html */
body.product-detail-page .main-content {
  flex: 1;
  padding-top: 8px;
}
.product-detail-back {
  margin-bottom: 16px;
  font-size: 14px;
}
.product-detail-back a {
  color: #183b6d;
  text-decoration: none;
}
.product-detail-back a:hover {
  text-decoration: underline;
}
.product-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.product-gallery-main-frame {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  background: #eceef2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-gallery-main-frame #mainProductImg {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  border-radius: 0;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  max-width: 560px;
}

.product-gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #f5f5f5;
  overflow: hidden;
  line-height: 0;
  flex: 0 0 auto;
}

.product-gallery-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: var(--es-copper);
}
.product-detail-h1 {
  font-size: 1.5rem;
  margin: 0 0 12px;
  line-height: 1.3;
}
.product-detail-price {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.btn-order-detail {
  padding: 14px 32px;
  font-size: 1rem;
  background: var(--es-copper);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
}
.btn-order-detail:hover {
  background: var(--es-copper-hover);
}
.product-detail-specs {
  margin-top: 28px;
}
.product-detail-specs h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.product-specs-body {
  font-size: 15px;
  line-height: 1.55;
  color: #333;
}
.product-specs-body p {
  margin: 0 0 8px;
}
.product-not-found {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  font-size: 1.1rem;
}
.product-detail-footer {
  margin-top: auto;
}
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* Отправка формы: ожидание ответа сервера */
button.form-submit-loading,
input.form-submit-loading[type='submit'] {
  cursor: progress;
  opacity: 0.92;
  pointer-events: none;
}

.form-send-feedback {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #183b6d;
  text-align: center;
}

.modal-content > .form-send-feedback {
  margin: -4px 0 12px;
  padding: 8px 10px;
  background: #e8f1fb;
  border-radius: 6px;
  border: 1px solid #c5d8ef;
}

/* ——— Современный подвал ——— */
.site-footer {
  margin-top: auto;
  background: linear-gradient(165deg, #122a4d 0%, #183b6d 45%, #1a4278 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
}

.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: minmax(200px, 1.2fr) repeat(2, minmax(140px, 1fr));
  gap: 32px 40px;
  align-items: start;
}

/* Колонка «Разделы» — div.site-footer__col--links (не <nav>, см. глобальный nav выше) */
.site-footer__col--links {
  background: transparent;
}

.site-footer .site-footer__col {
  background: transparent;
}

.site-footer__brand {
  padding-right: 12px;
}

.site-footer__logo-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.site-footer__logo-img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
}

.site-footer__tagline {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 320px;
}

.site-footer__heading {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

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

.site-footer__list li {
  margin-bottom: 10px;
}

.site-footer__list a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.site-footer__list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__list--contacts a {
  font-variant-numeric: tabular-nums;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px 20px;
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

.site-footer__copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer__copy a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.site-footer__copy a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding: 32px 20px 28px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 18px 24px;
  }
}

/* Страница «Все каталоги»: секции с карточками */
.all-catalogs-root {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 12px 40px;
}

/* Единый каталог catalog.html */
.catalog-page .main-content {
  flex: 1;
  padding-top: 8px;
}
.catalog-page-head {
  max-width: 1100px;
  margin: 0 auto 1rem;
}
.catalog-page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-family: var(--es-font-display, Fraunces, Georgia, serif);
  color: var(--es-navy, #0b1f3a);
}
.catalog-page-lead {
  margin: 0 0 1rem;
  color: var(--es-muted, #5c6b7a);
}
.catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto 2rem;
}
.catalog-category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.catalog-category-card:hover {
  border-color: var(--es-copper, #b87333);
  transform: translateY(-2px);
}
.catalog-category-card__title {
  font-weight: 600;
  color: var(--es-navy, #0b1f3a);
  line-height: 1.3;
}
.catalog-category-card__count {
  font-size: 0.85rem;
  color: var(--es-muted, #5c6b7a);
}
.catalog-products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 2rem;
  width: 100%;
  overflow: visible;
  max-height: none;
}
.catalog-search-results:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-content: flex-start;
  margin: 8px auto 1.25rem;
  padding: 8px 12px 12px;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  scroll-margin-top: 120px;
  overflow: visible;
  max-height: none;
}
.catalog-search-count {
  flex: 1 0 100%;
  margin: 0 0 4px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--es-muted, #5c6b7a);
}
#product-container .product,
.catalog-products-grid .product {
  flex: 0 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  #product-container .product,
  .catalog-products-grid .product {
    width: min(100%, 180px) !important;
  }
}
.sidebar #sidebarCatalogList li.is-active > a {
  color: var(--es-copper, #b87333);
  font-weight: 600;
}

.catalog-overview-section {
  margin-bottom: 36px;
}

.catalog-overview-heading {
  margin: 24px 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
}

.catalog-overview-heading a {
  color: #183b6d;
  text-decoration: none;
}

.catalog-overview-heading a:hover {
  text-decoration: underline;
}

.catalog-overview-empty {
  margin: 0 0 8px;
  font-size: 15px;
  color: #555;
}

.catalog-overview-empty a {
  color: #183b6d;
}

/* ========== Modern warm redesign layer (cascade overrides) ========== */

.logo-title {
  color: #fff;
  display: flex;
  align-items: center;
  flex-direction: row;
  flex-shrink: 0;
}
.logo-link,
.logo-link:link,
.logo-link:visited,
.logo-link:hover,
.logo-link:active {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff !important;
  white-space: nowrap;
}
.logo {
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}
.site-title {
  font-family: var(--es-font-display);
  color: #fff !important;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 8px;
  gap: 16px;
  flex-wrap: nowrap;
  align-items: center;
}
.header-block { padding: 0; }
.actions {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.actions p {
  margin: 0;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-container {
  background: transparent !important;
}
.search-container input {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-family: var(--es-font-ui);
  font-size: 15px;
  height: 42px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--es-text);
}
.search-container button {
  background-color: var(--es-copper);
  border-radius: 8px;
  height: 42px;
  font-family: var(--es-font-ui);
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.search-container button:hover {
  background-color: var(--es-copper-hover);
}

.call-button {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.call-button:hover {
  background-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.actions a.call-button[href*="wa.me"] {
  background-color: var(--es-copper);
  border-color: transparent;
}
.actions a.call-button[href*="wa.me"]:hover {
  background-color: var(--es-copper-hover);
}

/* Top nav bar — один ряд; overflow visible — иначе submenu под hero */
body > nav {
  position: relative;
  z-index: 920;
  background: var(--es-navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow: visible;
}
body > nav .menu {
  max-width: none;
  width: max-content;
  min-width: 100%;
  margin: 0 auto;
  flex-wrap: nowrap !important;
  justify-content: center;
  white-space: nowrap;
  overflow: visible;
}
body > nav .menu > li {
  color: rgba(255, 255, 255, 0.92);
  padding: 11px 10px;
  font-size: 12.5px;
  font-weight: 500;
  transition: background-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
body > nav .menu > li:hover,
body > nav .menu > li.submenu-active {
  z-index: 930;
}
body > nav .menu li:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
body > nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 940;
  background-color: var(--es-navy);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  min-width: 220px;
  white-space: normal;
}
body > nav .submenu li {
  white-space: normal;
  font-size: 13px;
}
body > nav .submenu li:hover {
  background-color: var(--es-navy-soft);
}
.has-submenu::after {
  color: rgba(255, 255, 255, 0.65);
}
@media (min-width: 1100px) {
  body > nav .menu > li {
    padding: 12px 12px;
    font-size: 13px;
  }
}

.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  gap: 24px;
}
.main-content {
  background: transparent;
  padding: 0;
  margin-right: 0;
}
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--es-surface);
  color: var(--es-text);
  padding: 22px 16px 20px;
  border-radius: var(--es-radius-lg);
  border: 1px solid var(--es-line);
  box-shadow: var(--es-shadow-sm);
  height: auto;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  position: sticky;
  top: 88px;
  align-self: flex-start;
  scrollbar-width: thin;
  scrollbar-color: rgba(24, 59, 109, 0.25) transparent;
}
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(24, 59, 109, 0.22);
  border-radius: 99px;
}
.sidebar h2 {
  font-family: var(--es-font-display);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--es-navy-deep);
  margin: 18px 8px 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--es-copper);
}
.sidebar h2:first-child {
  margin-top: 0;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
}
.sidebar li {
  margin: 0;
}
.sidebar a,
.sidebar a:link,
.sidebar a:visited,
.sidebar a:active {
  display: block;
  color: var(--es-text) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}
.sidebar a:hover,
.sidebar a:focus {
  background: var(--es-bg-accent) !important;
  color: var(--es-copper) !important;
  padding-left: 16px;
}

.section h2,
.catalog-overview-heading,
.product-detail-h1 {
  font-family: var(--es-font-display);
  color: var(--es-navy-deep);
  letter-spacing: -0.02em;
  font-weight: 650;
}
.section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto 12px;
}
.about, .reviews, .contact, .services-list {
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  box-shadow: var(--es-shadow-sm);
  border-radius: var(--es-radius-lg);
}
.service-item {
  color: var(--es-navy);
  font-size: 17px;
  font-weight: 500;
  border-bottom-color: var(--es-line);
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.service-item:hover {
  background-color: var(--es-bg-accent);
  color: var(--es-copper);
  padding-left: 16px;
}
.review {
  border-left-color: var(--es-copper);
}

/* Products */
.product,
.catalog .product,
.catalog111 .product,
#product-container .product {
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.catalog .product:hover,
.catalog111 .product:hover,
#product-container .product:hover {
  transform: translateY(-4px);
  box-shadow: var(--es-shadow);
  border-color: rgba(184, 115, 51, 0.35);
}
.catalog .product h3,
.catalog111 .product h3,
#product-container .product h3 {
  color: var(--es-navy-deep);
  font-family: var(--es-font-ui);
  font-weight: 600;
}
.catalog .product .price,
.catalog111 .product .price,
#product-container .product .price,
.product p strong {
  color: var(--es-copper);
}
.catalog .product button,
.catalog111 .product button,
#product-container .product button,
.product button,
.btn,
.btn-order-detail,
.modal-content button {
  background-color: var(--es-navy);
  border-radius: 8px;
  font-family: var(--es-font-ui);
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.catalog .product button:hover,
.catalog111 .product button:hover,
#product-container .product button:hover,
.product button:hover,
.btn:hover,
.btn-order-detail:hover {
  background-color: var(--es-copper);
}
a.product-card-title:hover {
  color: var(--es-copper);
  text-decoration: none;
}
.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: var(--es-copper);
}
.btn-order-detail {
  background: var(--es-copper);
}
.btn-order-detail:hover {
  background: var(--es-copper-hover);
}

.slider-btn {
  background-color: var(--es-navy);
}
.slider-btn:hover {
  background-color: var(--es-copper);
}
.slider-container {
  max-width: 1200px;
  margin: 8px auto 24px;
  padding: 0 48px;
}

.modal-content {
  border: 1px solid var(--es-line);
  box-shadow: var(--es-shadow);
  border-radius: var(--es-radius-lg);
  font-family: var(--es-font-ui);
}
.modal-content h3 {
  font-family: var(--es-font-display);
  color: var(--es-navy-deep);
}
.modal-content input,
.modal-content textarea,
input, select, textarea {
  border-color: var(--es-line);
  border-radius: 8px;
  font-family: var(--es-font-ui);
}

#scrollToTop {
  background-color: var(--es-navy);
  box-shadow: var(--es-shadow-sm);
}
#scrollToTop:hover {
  background-color: var(--es-copper);
}

.menu-toggle {
  background: var(--es-navy);
  border-radius: 8px;
}
.mobile-sidebar {
  background-color: var(--es-navy-deep);
}
.mobile-sidebar nav a:hover {
  color: var(--es-copper-soft) !important;
}

#cookie-popup {
  border-color: var(--es-line);
  border-radius: var(--es-radius-lg);
  box-shadow: var(--es-shadow);
}
.cookie-content button {
  background: var(--es-navy);
  border-radius: 8px;
}
.cookie-content button:hover {
  background: var(--es-copper);
}
.cookie-content a {
  color: var(--es-copper);
}

.site-footer {
  background: linear-gradient(165deg, var(--es-navy-deep) 0%, var(--es-navy) 55%, #1a4278 100%);
}
.site-footer__heading {
  color: var(--es-copper-soft);
  font-family: var(--es-font-ui);
}
.site-footer__list a:hover {
  color: var(--es-copper-soft);
}

.catalog-overview-heading a {
  color: var(--es-navy-deep);
  font-family: var(--es-font-display);
}
.catalog-overview-heading a:hover {
  color: var(--es-copper);
}

/* ---- Home hero ---- */
.es-hero {
  position: relative;
  z-index: 1;
  min-height: 80vh;
  min-height: 80dvh;
  height: 80vh;
  height: 80dvh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.es-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.es-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 8s ease-out;
  pointer-events: none;
}
.es-hero__media img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
  animation: none;
}
.es-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 42, 79, 0.35);
  backdrop-filter: blur(4px);
}
.es-hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.es-hero__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}
.es-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(18, 42, 79, 0.88) 0%, rgba(18, 42, 79, 0.55) 42%, rgba(18, 42, 79, 0.25) 100%),
    linear-gradient(0deg, rgba(18, 42, 79, 0.55) 0%, transparent 45%);
}
.es-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(88px, 14vh, 120px) 24px clamp(32px, 6vh, 56px);
  animation: es-hero-rise 0.85s ease-out both;
}
.es-hero__brand {
  font-family: var(--es-font-display);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 14px;
  color: #fff;
}
.es-hero__title {
  font-family: var(--es-font-ui);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
  margin: 0 0 10px;
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.95);
}
.es-hero__lead {
  margin: 0 0 28px;
  max-width: 36ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}
.es-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.es-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 8px;
  font-family: var(--es-font-ui);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.es-hero__btn--primary {
  background: var(--es-copper);
  color: #fff;
}
.es-hero__btn--primary:hover {
  background: var(--es-copper-hover);
  color: #fff;
  transform: translateY(-1px);
}
.es-hero__btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.es-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.es-section-label {
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 24px;
  font-family: var(--es-font-display);
  font-size: 1.35rem;
  color: var(--es-navy-deep);
  font-weight: 650;
}

@keyframes es-hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes es-hero-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1.02); }
}

@media (max-width: 768px) {
  body {
    padding-top: 0 !important;
  }

  /* Мобильная шапка: бургер + лого + поиск в одном ряду */
  header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 12px !important;
  }

  header > .menu-toggle {
    position: static !important;
    top: auto !important;
    left: auto !important;
    margin: 0 !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0 !important;
    border-radius: 8px;
    font-size: 22px;
    flex-shrink: 0;
    order: 0;
  }

  header > .header-container {
    display: contents !important; /* дети участвуют в раскладке header */
  }

  header .logo-title {
    display: none !important;
  }

  header .site-title {
    display: none !important;
  }

  header .logo {
    display: none !important;
  }

  header .logo-link {
    display: none !important;
  }

  header .search-container {
    order: 1;
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }

  header .search-container input {
    min-width: 0;
    width: 100%;
    height: 40px !important;
    font-size: 14px !important;
  }

  header .search-container button {
    height: 40px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    flex-shrink: 0;
  }

  /* Ряд 1: menu | search | logo */
  header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  header .actions {
    order: 3;
    width: 100%;
    margin-top: 2px !important;
    display: flex !important;
    gap: 6px;
    justify-content: stretch;
  }

  header .actions .call-button {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 6px 8px !important;
    font-size: 11px !important;
    line-height: 1.2;
    border-radius: 6px;
  }

  header .actions p {
    display: none !important;
  }

  .es-hero {
    min-height: 76vh;
    min-height: 76dvh;
    height: 76vh;
    height: 76dvh;
    max-height: none;
  }
  .es-hero__inner {
    padding: 48px 18px 36px;
  }
}

body.home-modern > nav {
  order: 0;
}
/* Ensure body theme wins over legacy body rules */
body {
  font-family: var(--es-font-ui) !important;
  background-color: var(--es-bg) !important;
  background-image:
    radial-gradient(900px 420px at 8% -10%, rgba(184, 115, 51, 0.08), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, rgba(24, 59, 109, 0.07), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, var(--es-bg) 40%, #eef2f7 100%) !important;
  background-attachment: fixed !important;
  color: var(--es-text) !important;
  padding: 0 !important;
}
/* Sidebar — warm light panel (final override) */
aside.sidebar {
  width: 300px !important;
  background: #ffffff !important;
  color: var(--es-text) !important;
  border: 1px solid var(--es-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 28px rgba(18, 42, 79, 0.07) !important;
  padding: 20px 14px 16px !important;
  max-height: calc(100vh - 110px) !important;
  height: auto !important;
  right: auto !important;
  overflow-y: auto !important;
  position: sticky !important;
  top: 88px !important;
  align-self: flex-start !important;
}
aside.sidebar h2 {
  font-family: var(--es-font-display) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: var(--es-navy-deep) !important;
  margin: 16px 6px 8px !important;
  padding: 0 0 8px !important;
  border-bottom: 2px solid var(--es-copper) !important;
  background: transparent !important;
}
aside.sidebar h2:first-of-type {
  margin-top: 2px !important;
}
aside.sidebar ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 6px !important;
}
aside.sidebar li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
aside.sidebar a,
aside.sidebar a:link,
aside.sidebar a:visited,
aside.sidebar a:active {
  display: block !important;
  color: #243247 !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  padding: 8px 11px !important;
  margin: 1px 0 !important;
  border-radius: 8px !important;
  border-left: 3px solid transparent !important;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}
aside.sidebar a:hover,
aside.sidebar a:focus {
  background: #f3f6fa !important;
  color: var(--es-copper) !important;
  border-left-color: var(--es-copper) !important;
}
@media (max-width: 768px) {
  aside.sidebar {
    width: 100% !important;
    max-height: none !important;
    position: static !important;
    margin-top: 8px !important;
  }
}
/* ——— Плотные отступы между блоками ——— */
.section {
  padding: 16px 16px !important;
  margin: 0 auto 10px !important;
  max-width: 1100px;
}
.section h2 {
  margin: 0 0 12px !important;
  font-size: 1.25rem !important;
}
.about,
.reviews,
.contact,
.services-list {
  padding: 16px 18px !important;
  margin: 0 !important;
}
.section.about,
.section.reviews,
.section.contact {
  padding: 16px 18px !important;
}
.section .services-list {
  padding: 4px 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.services-list {
  gap: 0 !important;
}
.service-item {
  padding: 8px 10px !important;
  font-size: 16px !important;
}
.review {
  margin-bottom: 10px !important;
  padding-left: 12px !important;
}
.main-container {
  padding: 12px 14px 20px !important;
  gap: 14px !important;
}
.es-section-label {
  margin: 10px auto 4px !important;
  padding: 0 16px !important;
  font-size: 1.15rem !important;
}
.slider-container {
  padding: 0 36px !important;
  margin: 0 0 8px !important;
}
.catalog111 {
  gap: 12px !important;
  padding: 8px 4px !important;
}
.catalog,
#product-container,
.catalog-products-grid,
.catalog-search-results:not([hidden]) {
  gap: 12px !important;
}
.catalog-overview-section {
  margin-bottom: 16px !important;
}
.catalog-overview-heading {
  margin: 10px 0 8px !important;
  font-size: 1.15rem !important;
}
.catalog-category-grid {
  gap: 8px !important;
  margin-bottom: 1rem !important;
}
.catalog-page-head {
  margin-bottom: 0.5rem !important;
}
.catalog-page-lead {
  margin: 0 0 0.6rem !important;
}
.site-footer__inner {
  padding: 24px 18px 18px !important;
  gap: 20px 28px !important;
}
iframe {
  margin-top: 12px !important;
}
form {
  gap: 10px !important;
}
body.home-modern .main-container {
  padding-top: 8px !important;
}
body.product-detail-page .main-content,
body.catalog-page .main-content {
  padding-top: 4px !important;
}
.product-detail {
  gap: 20px !important;
}
.product-detail-back {
  margin-bottom: 8px !important;
}
@media (max-width: 768px) {
  .section {
    padding: 12px 12px !important;
    margin-bottom: 8px !important;
  }
  .slider-container {
    padding: 0 28px !important;
  }
  .main-content,
  .sidebar {
    margin-bottom: 10px !important;
  }
}

/* ——— Популярные товары: слайдер по центру со стрелками ——— */
.home-featured {
  max-width: 1200px;
  margin: 0 auto 16px;
  padding: 4px 8px 8px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.home-featured .es-section-label {
  text-align: center !important;
  margin: 8px auto 10px !important;
  max-width: none !important;
  padding: 0 !important;
}
.home-featured .home-featured-slider.slider-container {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto !important;
  padding: 0 44px !important;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}
.home-featured .catalog111 {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  gap: 14px !important;
  padding: 10px 4px 14px !important;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start !important;
}
.home-featured .catalog111 .product {
  flex: 0 0 180px !important;
  width: 180px !important;
  min-height: 240px;
  scroll-snap-align: start;
}
.home-featured .slider-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 40px;
  height: 40px;
  padding: 0 !important;
  border: none;
  border-radius: 50%;
  background-color: var(--es-navy, #183b6d) !important;
  color: #fff !important;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.home-featured .slider-btn:hover {
  background-color: var(--es-copper, #b87333) !important;
}
.home-featured .prev-btn { left: 2px; }
.home-featured .next-btn { right: 2px; }
@media (max-width: 768px) {
  .home-featured {
    padding: 4px 4px 8px;
    margin-bottom: 12px;
  }
  .home-featured .es-section-label {
    padding: 0 14px !important;
    font-size: 1.1rem !important;
  }
  .home-featured .home-featured-slider.slider-container {
    padding: 0 36px !important;
  }
  .home-featured .catalog111 {
    gap: 10px !important;
    padding: 8px 4px 14px !important;
  }
  .home-featured .catalog111 .product {
    flex: 0 0 min(58vw, 200px) !important;
    width: min(58vw, 200px) !important;
    min-height: 0;
    box-sizing: border-box;
  }
  .home-featured .catalog111 .product img {
    height: 140px;
  }
  .home-featured .catalog111 .product h3 {
    font-size: 13px;
  }
  .home-featured .slider-btn {
    display: flex !important;
    width: 34px;
    height: 34px;
    font-size: 15px;
  }
  .home-featured .prev-btn { left: 2px; }
  .home-featured .next-btn { right: 2px; }
}

/* ——— Страница «О нас» ——— */
.about-page .main-content { padding-top: 4px; }
.about-page-wrap {
  max-width: 820px;
  margin: 0 auto 1.5rem;
}
.about-page-title {
  margin: 0 0 0.75rem;
  font-family: var(--es-font-display, Fraunces, Georgia, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--es-navy-deep, #0b1f3a);
}
.about-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--es-text, #243247);
  margin-bottom: 1.25rem;
}
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.about-block {
  background: var(--es-surface, #fff);
  border: 1px solid var(--es-line, rgba(11,31,58,.1));
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: var(--es-shadow-sm, 0 2px 10px rgba(0,0,0,.04));
}
.about-block-title {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: var(--es-navy-deep, #0b1f3a);
}
.about-block-body {
  line-height: 1.65;
  color: var(--es-text, #243247);
}
.about-block-caption {
  margin: 0.5rem 0 0;
  color: var(--es-muted, #5c6b7a);
  font-size: 0.92rem;
}
.about-figure { margin: 0; }
.about-figure-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 8px;
  overflow: hidden;
}
.about-figure-btn:focus-visible {
  outline: 2px solid var(--es-accent, #1a6bb5);
  outline-offset: 3px;
}
.about-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 8px;
}
.about-figure figcaption {
  margin-top: 0.5rem;
  color: var(--es-muted, #5c6b7a);
  font-size: 0.92rem;
}
.about-video {
  width: 100%;
  max-height: 480px;
  border-radius: 8px;
  background: #000;
}
.about-video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}
.about-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.about-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--es-navy, #183b6d);
  text-decoration: none;
}
.about-doc-link:hover { color: var(--es-copper, #b87333); }
.about-doc-icon { font-size: 1.25rem; }

/* Layout: sidebar beside content */
.main-container {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}
.main-container > .main-content {
  flex: 1 1 auto;
  min-width: 0;
}

/* Home: content+form left | sidebar right (full height) */
body.home-modern .main-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "content sidebar"
    "form sidebar";
  align-items: start;
  column-gap: 24px;
}
body.home-modern .main-content {
  grid-area: content;
  min-width: 0;
  width: auto;
  max-width: none;
}
body.home-modern .main-content > .section {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
body.home-modern aside.sidebar {
  grid-area: sidebar;
  grid-row: 1 / -1;
  width: 300px !important;
  max-width: 300px;
  justify-self: stretch;
}
.home-lead-form {
  grid-area: form;
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  box-sizing: border-box;
  justify-self: stretch;
}
body.home-modern .home-lead-form.section {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Why Eurosantech — short advantages */
.home-why {
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  box-shadow: var(--es-shadow-sm);
  border-radius: var(--es-radius-lg);
  padding: 28px 24px 24px !important;
}
.home-why > h2 {
  font-family: var(--es-font-display);
  font-size: 1.45rem;
  font-weight: 650;
  color: var(--es-navy-deep);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.home-why__intro {
  margin: 0 0 20px;
  font-size: 0.98rem;
  color: var(--es-muted);
}
.home-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.home-why__item h3 {
  margin: 0 0 6px;
  font-family: var(--es-font-ui);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--es-navy);
  padding-left: 12px;
  border-left: 3px solid var(--es-copper);
}
.home-why__item p {
  margin: 0;
  padding-left: 15px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--es-muted);
}
@media (max-width: 640px) {
  .home-why__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .main-container {
    flex-wrap: wrap;
    flex-direction: column;
  }
  body.home-modern .main-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }
  body.home-modern #reviews {
    display: none !important;
  }
  /* Mobile home: sidebar, then lead form */
  body.home-modern .main-content {
    order: 3;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0;
    height: 0;
    overflow: visible;
    background: transparent;
  }
  body.home-modern aside.sidebar {
    order: 4;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    position: relative !important;
    top: auto !important;
  }
  body.home-modern .home-lead-form {
    order: 5;
    margin-top: 12px;
    max-width: none;
    justify-self: stretch;
  }
}

/* Similar products on product page */
.similar-products {
  margin: 28px 0 8px;
  width: 100%;
}
.similar-products .es-section-label {
  text-align: left;
  margin: 0 0 12px !important;
  padding: 0 !important;
}
.similar-products .catalog-products-grid {
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}
.similar-products-more {
  margin: 8px 0 0;
  text-align: center;
}
.similar-products-more[hidden],
.similar-products[hidden] {
  display: none !important;
}

/* Compact product cards (catalog / search / similar) */
.catalog-products-grid,
.catalog-search-results:not([hidden]),
#product-container {
  gap: 14px !important;
}
.catalog-products-grid .product,
.catalog-search-results .product,
#product-container .product,
.similar-products .product {
  width: 200px !important;
  max-width: 200px !important;
  min-height: 0 !important;
  padding: 10px !important;
  box-sizing: border-box;
}
.catalog-products-grid .product img,
.catalog-search-results .product img,
#product-container .product img,
.similar-products .product img {
  width: 100% !important;
  height: 140px !important;
  object-fit: contain !important;
  margin-bottom: 8px !important;
  background: #f3f5f8;
}
.catalog-products-grid .product h3,
.catalog-search-results .product h3,
#product-container .product h3,
.similar-products .product h3 {
  font-size: 12px !important;
  line-height: 1.35 !important;
  margin: 4px 0 !important;
}
.catalog-products-grid .product p,
.catalog-search-results .product p,
#product-container .product p,
.similar-products .product p {
  font-size: 12px !important;
  margin: 4px 0 0 !important;
}
.catalog-products-grid .product button,
.catalog-search-results .product button,
#product-container .product button,
.similar-products .product button {
  padding: 8px 10px !important;
  font-size: 12px !important;
  margin-top: 8px !important;
}
@media (max-width: 768px) {
  .catalog-products-grid .product,
  .catalog-search-results .product,
  #product-container .product,
  .similar-products .product {
    width: min(46vw, 160px) !important;
    max-width: 160px !important;
  }
  .catalog-products-grid .product img,
  .catalog-search-results .product img,
  #product-container .product img,
  .similar-products .product img {
    height: 120px !important;
  }
}
a.similar-products-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 180px;
}

/* ——— Modern mobile drawer ——— */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1090;
  background: rgba(12, 24, 44, 0.48);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
body.mobile-nav-open {
  overflow: hidden !important;
}
body.mobile-nav-open .mobile-nav-backdrop {
  display: block;
  opacity: 1;
}
@media (max-width: 768px) {
  .mobile-sidebar {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: min(86vw, 320px) !important;
    max-width: 320px !important;
    height: 100% !important;
    min-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #0f2344 0%, #163560 42%, #1a3f6e 100%) !important;
    color: #fff !important;
    box-shadow: 12px 0 40px rgba(8, 18, 36, 0.35) !important;
    z-index: 1100 !important;
    overflow: hidden !important;
    transform: translateX(-105%);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1) !important;
    border-radius: 0 18px 18px 0 !important;
  }
  .mobile-sidebar.open {
    display: flex !important;
    transform: translateX(0) !important;
  }
  .mobile-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 14px 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }
  .mobile-sidebar__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff !important;
    text-decoration: none !important;
    font-family: var(--es-font-display, Fraunces, Georgia, serif);
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.02em;
  }
  .mobile-sidebar__brand img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  .mobile-sidebar__close,
  .mobile-sidebar .close-btn {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    font-size: 22px !important;
    line-height: 1 !important;
    cursor: pointer;
    flex-shrink: 0;
  }
  .mobile-sidebar__close:hover,
  .mobile-sidebar .close-btn:hover {
    background: rgba(255, 255, 255, 0.18) !important;
  }
  .mobile-sidebar > nav {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px 16px;
    overscroll-behavior: contain;
  }
  .mobile-sidebar nav ul.menu,
  .mobile-sidebar__menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    background: transparent !important;
  }
  .mobile-sidebar nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    background: transparent !important;
  }
  .mobile-sidebar nav li.mobile-nav-label {
    margin: 14px 4px 6px !important;
    padding: 0 8px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.45) !important;
    pointer-events: none;
  }
  .mobile-sidebar nav a {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.92) !important;
    text-decoration: none !important;
    font-family: var(--es-font-ui, Manrope, sans-serif) !important;
    font-size: 0.95rem !important;
    font-weight: 550 !important;
    line-height: 1.3 !important;
    background: transparent !important;
    transition: background 0.18s ease, color 0.18s ease !important;
  }
  .mobile-sidebar nav a:hover,
  .mobile-sidebar nav a:focus,
  .mobile-sidebar nav a:active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
  }
  .mobile-sidebar nav li:nth-child(-n+3) a {
    font-weight: 650 !important;
  }
  .mobile-sidebar .submenu {
    margin: 2px 0 6px 8px !important;
    padding: 4px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.18) !important;
  }
  .mobile-sidebar .submenu a {
    padding: 10px 12px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
  }
  .mobile-sidebar__foot {
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
  }
  .mobile-sidebar__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px !important;
    border-radius: 11px !important;
    font-family: var(--es-font-ui, Manrope, sans-serif) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    color: #fff !important;
  }
  .mobile-sidebar__cta--call {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
  }
  .mobile-sidebar__cta--wa {
    background: #1f9d55 !important;
  }
  header > .menu-toggle {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: none !important;
  }
}

