    @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:wght@400;500;600;700&display=swap');

    [class*=__container] {
      max-width: 1920px;
      margin: 0px auto;
      padding: 0px 55px;
    }

    body {
      margin: 0;
      font-family: Montserrat, sans-serif;
      font-weight: 400;
      font-size: 16px;
      background-color: #e9e5e5;
      color: var(--main-color);
    }

.main__header {
  padding: 10px 0;
  box-shadow: inset 0px -1px 0px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.header__container {
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu__list {
  display: flex;
  align-items: center;
  column-gap: 40px;
  flex-wrap: wrap;
  grid-row-gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu__item {
  display: flex;
  align-items: center;
}

.menu__link {
  text-decoration: none;
  color: var(--main-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.menu__link:hover {
  color: var(--accent-color);
}

/* Адаптив для планшетов (max-width: 768px) */
@media (max-width: 768px) {
  .main__header {
    padding: 8px 0;
  }

  .header__container {
    justify-content: center; /* Центрируем, если оборачивается */
    gap: 15px; /* Добавляем gap для равномерности */
  }

  .menu__list {
    column-gap: 20px; /* Уменьшаем расстояние между элементами */
    grid-row-gap: 10px;
  }

  .menu__link {
    font-size: 14px; /* Немного уменьшаем шрифт для компактности */
  }
}

/* Адаптив для мобильных устройств (max-width: 480px) */
@media (max-width: 480px) {
  .main__header {
    padding: 5px 0;
  }

  .header__container {
    flex-direction: column; /* Вертикальная компоновка для мобильных */
    align-items: center;
    gap: 10px;
  }

  .menu__body {
    flex-direction: column; /* Меню вертикально */
    gap: 10px;
    width: 100%;
  }

  .menu__list {
    column-gap: 15px; /* Маленький gap */
    grid-row-gap: 5px;
    justify-content: center; /* Центрируем элементы меню */
  }

  .menu__link {
    font-size: 13px; /* Уменьшаем шрифт для мобильных */
  }

  .menu__item.site-logo .menu__link {
    font-size: 18px; /* Сохраняем логотип крупным */
  }

  .menu__item.site-logo {
    order: -1; /* Логотип наверху */
  }
}

.section {
  padding: 10px;
}

.section-title {
  font-weight: bold;
  margin-bottom: 5px;
  color: #555;
}

.item {
  padding: 6px 10px;
  cursor: pointer;
}

.item:hover {
  background-color: #f0f0f0;
}

.hidden {
  display: none;
}

/* Адаптация */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }

  #search-button {
    width: 70px;
    font-size: 14px;
  }

  #search-input {
    font-size: 14px;
    padding: 10px;
  }

  .section-title {
    font-size: 14px;
  }

  .item {
    font-size: 14px;
  }
}

    .site-logo h1 {
      margin: 0;
      font-size: 35px;
      font-weight: 700;
    }

    .site-logo a {
      color: var(--main-color);
      text-decoration: none;
    }

   .catalog-button {
      cursor: pointer;
      background: transparent;
      border: 2px solid #a8d5a3;
      color: #3a6b35;
      font-size: 18px;
      font-weight: 600;
      padding: 10px 22px;
      border-radius: 6px;
      transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
      user-select: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
    .catalog-button:hover,
    .catalog-button:focus {
      background-color: #d9f0d9;
      outline: none;
      box-shadow: 0 0 8px #a8d5a3aa;
      color: #2f5529;
    }

    /* Исправленное позиционирование: сверху блока меню */
    .catalog-popup {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      width: 100%;
      background: #fff;
      border-radius: 8px;
      box-shadow:
        0 4px 12px rgb(0 0 0 / 0.1),
        0 1px 4px rgb(0 0 0 / 0.06);
      border: 1px solid #d0d6d1;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      transform: translateY(-10px);
      transition: opacity 0.25s ease, transform 0.25s ease;
      z-index: 1000;
      user-select: none;
    }
    .catalog-popup.open {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .catalog-list {
      list-style: none;
      margin: 0;
      padding: 12px 0;
    }
    .catalog-list > li {
      padding: 10px 20px;
      cursor: pointer;
      font-weight: 600;
      font-size: 16px;
      color: #2a2a2a;
      border-left: 4px solid transparent;
      transition: background-color 0.2s, border-color 0.2s;
      position: relative;
      user-select: none;
    }
    .catalog-list > li:hover,
    .catalog-list > li:focus {
      background-color: #e6f2e6;
      border-left-color: #a8d5a3;
      outline: none;
    }
    .catalog-list > li.has-submenu::after {
      content: "▶";
      font-size: 12px;
      position: absolute;
      right: 18px;
      top: 50%;
      transform: translateY(-50%);
      color: #6a6a6a;
      transition: transform 0.3s ease;
      user-select: none;
    }
    .catalog-list > li.has-submenu.open::after {
      transform: translateY(-50%) rotate(90deg);
      color: #3a6b35;
    }
    .submenu {
      list-style: none;
      margin: 0;
      padding: 6px 0 6px 24px;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease;
      opacity: 0;
      user-select: none;
    }
    .submenu.open {
      max-height: 500px;
      opacity: 1;
    }
    .submenu li {
      padding: 6px 10px;
      font-weight: 500;
      font-size: 14px;
      color: #3a3a3a;
      cursor: pointer;
      border-radius: 4px;
      transition: background-color 0.2s;
      user-select: none;
    }
    .submenu li:hover,
    .submenu li:focus {
      background-color: #d9f0d9;
      outline: none;
    }

    .contacts span {
      font-weight: 600;
    }

    .catalog {
      position: relative;
    }

    .catalog button {
      background-color: var(--accent);
      color: #fff;
      border: none;
      padding: 8px 12px;
      cursor: pointer;
      border-radius: 4px;
    }

    .catalog-menu {
      display: none;
      position: absolute;
      top: 40px;
      left: 0;
      background: #fff;
      border: 1px solid #ccc;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      z-index: 10;
      padding: 10px;
      border-radius: 4px;
    }

    .catalog-menu.active {
      display: block;
    }

    .catalog-menu a {
      display: block;
      padding: 6px 10px;
      text-decoration: none;
      color: var(--main-color);
    }

    .catalog-menu a:hover {
      background: var(--gray-bg);
    }

    .search {
      flex-grow: 1;
      margin: 10px;
    }

    .search input {
      flex: 1;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 4px 0 0 4px;
    }

    .search button {
      padding: 8px 12px;
      border: none;
      background-color: #ccc;
      border-radius: 0 4px 4px 0;
      cursor: pointer;
    }

    .icons {
      display: flex;
      gap: 10px;
    }

    .icon {
      position: relative;
      font-size: 20px;
      cursor: pointer;
    }

    .icon span.count {
      position: absolute;
      top: -6px;
      right: -6px;
      background: red;
      color: #fff;
      border-radius: 50%;
      padding: 2px 6px;
      font-size: 10px;
    }

    .carousel {
      display: flex;
      overflow: hidden;
      position: relative;
      height: 400px;
    }

    .carousel .slide img {
      height: 100%;
      object-fit: cover;
    }

    .carousel .promo-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: rgba(255, 255, 255, 0.7);
      padding: 20px;
      border-radius: 8px;
      text-align: center;
    }

    .carousel-controls {
      position: absolute;
      top: 50%;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      z-index: 5;
    }

    .carousel-controls button {
      background: rgba(0,0,0,0.5);
      border: none;
      color: white;
      font-size: 24px;
      padding: 10px;
      cursor: pointer;
    }

.slider-container {
  max-width: 1920px;
  margin: 40px auto;
  display: flex;
  flex-direction: row; /* По умолчанию горизонтально */
  justify-content: center; /* Центрирование блоков */
  gap: 16px;
  padding: 16px; /* Убрал bottom-padding, так как нет скролла */
  border-bottom: 1px solid #ccc;
  flex-wrap: nowrap; /* Не переносить в ряд */
  /* Убраны: overflow-x, scroll-snap-type, scroll-behavior */
}

.slider-item {
  flex: 0 0 160px; /* Фиксированная ширина 160px, не растягивается */
  background: #e9e5e5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  text-align: center;
  padding: 16px 8px;
  text-decoration: none;
  color: #000;
  user-select: none;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрирование содержимого */
  height: auto; /* Автоматическая высота */
}

.slider-item:hover {
  background-color: #cadbb7;
}

.slider-item img {
  height: 80px; /* По умолчанию */
  width: auto; /* Сохраняем пропорции */
  margin-bottom: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.slider-item span {
  display: block;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

/* Планшет (469px–768px): горизонтально, без изменений (всё влезает) */
@media (max-width: 768px) and (min-width: 469px) {
  .slider-container {
    padding: 16px;
    gap: 12px; /* Немного уменьшили гэп для планшета */
  }
  
  .slider-item {
    flex: 0 0 140px; /* Немного уменьшили ширину для планшета */
    padding: 14px 8px;
  }
  
  .slider-item img {
    height: 70px; /* Уменьшили изображение */
  }
  
  .slider-item span {
    font-size: 13px;
  }
}

/* Мобильный (≤468px): вертикально столбиком, уменьшенные блоки */
@media (max-width: 468px) {
  .slider-container {
    flex-direction: column; /* Столбиком */
    align-items: center; /* Центрирование по горизонтали */
    padding: 12px; /* Уменьшили padding */
    gap: 12px; /* Гэп между блоками */
    border-bottom: none; /* Убрали границу, если не нужно на мобильном */
  }
  
  .slider-item {
    flex: 0 0 auto; /* Авто-ширина */
    width: 100%; /* Полная ширина контейнера */
    max-width: 280px; /* Ограничение, чтобы не растягивалось слишком */
    padding: 12px 8px; /* Уменьшили padding */
    height: auto;
  }
  
  .slider-item img {
    height: 60px; /* Уменьшили высоту изображения */
    margin-bottom: 6px;
  }
  
  .slider-item span {
    font-size: 12px; /* Уменьшили шрифт */
  }
}

/* Дополнительно: для очень широких десктопов (опционально, если нужно растянуть) */
@media (min-width: 769px) {
  .slider-container {
    padding: 16px 32px; /* Больше отступов по бокам на десктопе */
    gap: 20px; /* Больше гэпа */
  }
  
  .slider-item {
    flex: 0 0 180px; /* Немного шире на десктопе */
    padding: 18px 10px;
  }
  
  .slider-item img {
    height: 90px;
  }
  
  .slider-item span {
    font-size: 15px;
  }
}


  .goods {
    max-width: 1920px;
      margin: 40px auto;
      padding: 0px 15px;
  }

  .tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    user-select: none;
  }
  .tab {
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
  }
  .tab.active {
    border-color: #628b35;
    color: #628b35;
  }

  /* Контейнер слайдера */
  .slider-containers {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    gap: 16px;
    padding: 16px 8px;
    border-bottom: 1px solid #ccc;
    scroll-behavior: smooth;
  }
  .slider-containers::-webkit-scrollbar {
    height: 8px;
  }
  .slider-containers::-webkit-scrollbar-thumb {
    background: #aaa;
    border-radius: 4px;
  }
  .slider-containers::-webkit-scrollbar-track {
    background: #eee;
  }

  /* Стили блока товара */
  .slider-items {
    flex: 0 0 auto;
    width: 220px;
    background: #e9e5e5;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 12px;
    padding: 12px;
    scroll-snap-align: start;
    text-decoration: none;
    color: #000;
    user-select: none;
    font-size: 14px;
  }
  .slider-items img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 8px;
  }

  .price {
    font-weight: 700;
    font-size: 16px;
    color: #628b35;
  }
  .old-price {
    text-decoration: line-through;
    color: #888;
    margin-left: 8px;
    font-weight: 400;
    font-size: 14px;
  }
  .discount {
    background-color: #007b8f;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
  }
  .points {
    font-size: 12px;
    color: #d20074;
    margin-top: 4px;
  }
  .installments {
    font-size: 12px;
    color: #222;
    margin-top: 2px;
  }
  .product-name {
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 4px;
  }
  .rating {
    font-size: 12px;
    color: #f5a623;
  }
  .reviews {
    font-size: 12px;
    color: #666;
    margin-left: 6px;
    text-decoration: underline;
    cursor: pointer;
  }

  /* Скрываем все слайдеры кроме активного */
  .slider-wrapper {
    display: none;
  }
  .slider-wrapper.active {
    display: block;
  }

    @media (max-width: 768px) {
      .main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }

      .search {
        width: 100%;
      }

      .icons {
        justify-content: space-between;
        width: 100%;
      }

      .carousel {
        height: 250px;
      }
    }

    @media (max-width: 480px) {
      .category {
        width: 80px;
      }

      .carousel {
        height: 180px;
      }
    }

    .container {
      display: grid;
      gap: 20px;
      padding: 20px;
    }

    .block {
      background-color: #f7f7f7;
      padding: 20px;
      border-radius: 10px;
      text-align: center;
      transition: transform 0.2s ease;
      cursor: pointer;
    }

    .block img {
      width: 100%;
      height: auto;
      max-height: 180px;
      object-fit: contain;
      margin-bottom: 10px;
    }

     .block .title {
      font-size: 18px;
      font-weight: bold;
      color: black;
      margin: 10px 0 4px;
    }

    .block .subtitle {
      font-size: 14px;
      color: gray;
      margin-bottom: 12px;
    }
    
    .block button {
      padding: 10px 20px;
      background-color: black;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .block button:hover {
      transform: scale(1.05);
    }

    .block:hover {
      transform: scale(1.02);
    }

    /* Desktop layout */
    @media (min-width: 1025px) {
      .container {
        grid-template-areas:
          "a b c";
        grid-template-columns: repeat(3, 1fr);
      }
      .a { grid-area: a; }
      .b { grid-area: b; }
      .c { grid-area: c; }
    }

    /* Tablet & Mobile layout */
    @media (max-width: 1024px) {
      .container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
      }
    }

  .slider-bestseller {
    max-width: 1920px;
    margin: 40px auto;
    padding: 0px 55px;
  }

  .slider-bestseller .active {
    display: block;
  }

  .eco-block {
    background-color: #0b4c52; /* темно-бирюзовый цвет, похожий на фон */
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
  }
  .eco-block .logo {
    margin: 0 auto 20px;
    width: 60px;
    height: 60px;
    fill: #fff;
  }
  .eco-block h2 {
    font-weight: 700;
    font-size: 1.8rem;
    margin: 0 0 15px;
  }
  .eco-block p {
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  /* Адаптив */
  @media (max-width: 768px) {
    .eco-block {
      padding: 30px 15px;
    }
    .eco-block h2 {
      font-size: 1.5rem;
    }
    .eco-block p {
      font-size: 0.95rem;
      max-width: 90%;
    }
    .eco-block .logo {
      width: 50px;
      height: 50px;
      margin-bottom: 15px;
    }
  }
  @media (max-width: 480px) {
    .eco-block {
      padding: 25px 10px;
    }
    .eco-block h2 {
      font-size: 1.3rem;
    }
    .eco-block p {
      font-size: 0.9rem;
      max-width: 95%;
    }
    .eco-block .logo {
      width: 40px;
      height: 40px;
      margin-bottom: 10px;
    }
  }


/* Основные стили для блока */
.custom-section {
  padding: 30px 0;
  background-color: #cadbb7;
  font-family: 'Arial', sans-serif;
  color: #222;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column; /* По умолчанию вертикально */
  align-items: center;
  justify-content: flex-start;
}

/* НОВОЕ: стиль для обёртки заголовка и описания */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 25px; /* Для вертикального режима */
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #222;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  width: 100%;
  max-width: 100%;
}

.section-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: #222;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 25px;
  word-wrap: break-word;
  hyphens: auto;
  width: 100%;
}

.subsection-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #222;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  width: 100%;
}

/* Преимущества */
.advantages {
  margin-bottom: 25px;
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantages-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  width: 100%;
  justify-content: center;
  max-width: 300px;
}

.advantages-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  hyphens: auto;
  width: 100%;
  max-width: 220px;
}

.icon {
  font-size: 1.1rem;
  color: #0b4c52;
  margin-right: 8px;
  margin-top: 1px;
  flex-shrink: 0;
  min-width: 20px;
}

/* FAQ */
.faq {
  margin-bottom: 40px;
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 100%;
  width: 100%;
  align-items: center;
}

.faq-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 700px;
}

.faq-item summary {
  padding: 15px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  list-style: none;
  word-wrap: break-word;
  hyphens: auto;
  text-align: left;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary {
  background: #f8f8f8;
}

.faq-item p {
  padding: 0 15px 15px;
  color: #777;
  line-height: 1.5;
  margin: 0;
  word-wrap: break-word;
  hyphens: auto;
  text-align: left;
}

/* Десктоп (≥769px) - горизонтальное расположение трёх блоков с преимуществами шире и столбиком */
@media (min-width: 769px) {
  .container {
    flex-direction: row; /* Горизонтально рядом */
    justify-content: space-around; /* Равномерное распределение с отступами */
    align-items: flex-start; /* Выравнивание сверху */
    gap: 20px; /* Отступ между блоками */
  }
  
  .intro {
    flex: 1; /* ~25% ширины */
    margin-bottom: 0;
    max-width: none;
  }
  
  .advantages {
    flex: 2; /* ИЗМЕНЕНО: шире ~50% ширины */
    margin-bottom: 0;
    max-width: none;
  }
  
  .faq {
    flex: 1; /* ~25% ширины */
    margin-bottom: 0;
    max-width: none;
  }
  
  /* ИЗМЕНЕНО: преимущества столбиком (вертикально) */
  .advantages-list {
    display: flex; /* Вместо grid */
    flex-direction: column; /* Столбиком */
    gap: 15px; /* Отступ между элементами */
    align-items: center; /* Центрирование */
    width: 100%;
  }
  
  .advantages-list li {
    width: 100%; /* Полная ширина блока */
    max-width: 500px; /* Ограничение для читаемости */
    text-align: center; /* Центрирование текста */
  }
}

/* Адаптация для планшета (≤768px) - оставлено вертикально */
@media (max-width: 768px) {
  .custom-section {
    padding: 20px 0;
  }
  
  .container {
    padding: 0 15px;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .section-desc {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 20px;
    padding: 0 5px;
    max-width: 100%;
  }
  
  .subsection-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }
  
  .advantages {
    margin-bottom: 20px;
    max-width: 100%;
    width: 100%;
  }
  
  .advantages-list {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
    max-width: 100%;
  }
  
  .advantages-list li {
    padding: 10px;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    width: 100%;
  }
  
  .icon {
    margin-right: 6px;
    font-size: 1rem;
  }
  
  .faq {
    margin-bottom: 25px;
    max-width: 100%;
    width: 100%;
  }
  
  .faq-list {
    gap: 8px;
    max-width: 100%;
  }
  
  .faq-item {
    max-width: 100%;
  }
  
  .faq-item summary {
    padding: 12px;
    font-size: 0.95rem;
  }
  
  .faq-item p {
    padding: 0 12px 12px;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Адаптация для мобильного (≤375px) - оставлено вертикально */
@media (max-width: 375px) {
  .custom-section {
    padding: 15px 0;
  }
  
  .container {
    padding: 0 10px;
    align-items: center;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .section-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 15px;
    padding: 0;
    max-width: 100%;
  }
  
  .subsection-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }
  
  .advantages {
    margin-bottom: 15px;
    max-width: 100%;
  }
  
  .advantages-list {
    gap: 8px;
    grid-template-columns: 1fr;
  }
  
  .advantages-list li {
    padding: 8px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    width: 100%;
  }
  
  .icon {
    margin-right: 4px;
    margin-bottom: 0;
    font-size: 0.95rem;
  }
  
  .faq {
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  .faq-list {
    gap: 6px;
  }
  
  .faq-item summary {
    padding: 10px;
    font-size: 0.9rem;
  }
  
  .faq-item p {
    padding: 0 10px 10px;
    font-size: 0.85rem;
    line-height: 1.3;
  }
  
  .section-desc,
  .faq-item p,
  .advantages-list li {
    word-wrap: break-word;
    hyphens: auto;
  }
}


/* Общие стили для раздела */
.special-works {
    padding: 60px 20px; /* Отступы сверху/снизу и по бокам */
    max-width: 1200px; /* Максимальная ширина для десктопа */
    margin: 0 auto; /* Центрирование всего раздела */
    text-align: center; /* Центрирование текста */
    font-family: Arial, sans-serif; /* Базовый шрифт */
}

.special-works h2 {
    font-size: 2rem; /* Крупный заголовок */
    color: #222; /* Тёмный цвет */
    margin-bottom: 40px; /* Отступ снизу */
    font-weight: bold;
    justify-content: center;
}

/* Контейнер для изображений */
.images-container {
    display: flex; /* Flexbox для ряда */
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Вертикальное выравнивание */
    gap: 20px; /* Расстояние между фото */
    flex-wrap: wrap; /* Если не поместятся — перенос */
}

/* Стили для изображений */
.special-image {
    max-width: 45%; /* На десктопе ~45% ширины контейнера */
    height: auto; /* Сохраняет пропорции */
    border-radius: 8px; /* Лёгкие скруглённые углы */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Лёгкая тень для объёма */
    transition: transform 0.3s ease; /* Плавный hover-эффект */
}

.special-image:hover {
    transform: scale(1.02); /* Лёгкое увеличение при наведении */
}

/* Адаптив для планшетов (max-width: 768px) */
@media (max-width: 768px) {
    .special-works {
        padding: 40px 15px; /* Уменьшенные отступы */
    }

    .special-works h2 {
        font-size: 2rem; /* Меньший заголовок */
        margin-bottom: 30px;
    }

    .images-container {
        gap: 15px; /* Меньший gap */
    }

    .special-image {
        max-width: 40%; /* Уменьшение до 40% для планшета */
    }
}

/* Адаптив для мобильных (max-width: 480px) */
@media (max-width: 480px) {
    .special-works {
        padding: 30px 10px; /* Ещё меньше отступов */
    }

    .special-works h2 {
        font-size: 1.5rem; /* Компактный заголовок */
        margin-bottom: 20px;
    }

    .images-container {
        gap: 10px; /* Минимальный gap */
        /* Если хотите stack vertically на мобильном (одно под другим для лучшей читаемости):
        flex-direction: column;
        align-items: center; */
    }

    .special-image {
        max-width: 80%; /* Уменьшение до 80% ширины экрана, но в ряд (или 90% если stack) */
        /* Если stack: max-width: 90%; */
    }
}


footer {
  width: 100%;
  background: #fff;
  padding: 40px 20px 20px;
  box-sizing: border-box;
  border-top: 1px solid #ddd;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.footer-left {
  flex: 1 1 250px;
  min-width: 250px;
  max-width: 300px;
}

.footer-left .logo {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 10px;
}

.footer-left .phone-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.footer-left .phone-number {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 15px;
}

.footer-left .chat-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1.5px solid #0b4c52;
  border-radius: 5px;
  color: #0b4c52;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  margin-bottom: 15px;
}

.footer-left .chat-btn:hover {
  background-color: #0b4c52;
  color: #fff;
}

.footer-left .social-icons {
  display: flex;
  gap: 15px;
}

.footer-left .social-icons a {
  display: inline-block;
}

.footer-left .social-icons a.vk {
  display: inline-block;
  max-width: initial;
}

.vk-svg {
  height: 43px;
  width: 43px;
}

.tg-svg {
  height: 48px;
  width: 48px;
}

.footer-left .social-icons a.telegram {
  display: inline-block;
  max-width: initial;
}

.footer-left .social-icons a:hover {
  opacity: 0.8;
}

.footer-nav {
  flex: 3 1 600px;
  display: flex;
  justify-content: space-between;
  min-width: 300px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 140px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 16px;
  color: #222;
  cursor: pointer;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: #777;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #0b4c52;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #ddd;
  padding: 15px 20px 10px;
  font-size: 12px;
  color: #999;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-bottom .policy-links {
  flex: 1 1 300px;
  text-align: right;
}

.footer-bottom .policy-links a {
  color: #555;
  text-decoration: underline;
  margin-left: 15px;
  font-size: 12px;
}

.footer-bottom .policy-links a:first-child {
  margin-left: 0;
}

/* Адаптив для планшетов (max-width: 768px) */
@media (max-width: 768px) {
  footer {
    padding: 30px 15px 15px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-left {
    flex: none;
    text-align: center;
    min-width: auto;
    max-width: 100%;
  }

  .footer-left .logo {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .footer-left .phone-number {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .footer-left .phone-label {
    font-size: 11px;
  }

  .footer-left .social-icons {
    justify-content: center;
    gap: 10px;
  }

  .tg-svg,
  .vk-svg {
    height: 40px;
    width: 40px;
  }

  .footer-nav {
    flex: none;
    justify-content: center;
    gap: 20px;
    min-width: auto;
  }

  .footer-column {
    min-width: 120px;
    text-align: center;
  }

  .footer-column h4 {
    font-size: 14px;
  }

  .footer-column ul li a {
    font-size: 13px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    text-align: center;
  }

  .footer-bottom .policy-links {
    text-align: center;
    order: 2; /* Помещаем ссылки после копирайта */
  }

  .footer-bottom .policy-links a {
    margin: 0 10px;
    font-size: 11px;
    display: inline-block;
  }
}

/* Адаптив для мобильных устройств (max-width: 480px) */
@media (max-width: 480px) {
  footer {
    padding: 20px 10px 10px;
  }

  .footer-top {
    gap: 15px;
    margin-bottom: 15px;
  }

  .footer-left {
    margin-bottom: 15px;
  }

  .footer-left .logo {
    font-size: 20px;
  }

  .footer-left .phone-number {
    font-size: 18px;
  }

  .footer-left .phone-label {
    font-size: 10px;
  }

  .footer-left .social-icons {
    gap: 8px;
  }

  .tg-svg,
  .vk-svg {
    height: 35px;
    width: 35px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .footer-column {
    min-width: auto;
    width: 100%;
    max-width: 200px;
  }

  .footer-column h4 {
    font-size: 13px;
  }

  .footer-column ul li {
    margin-bottom: 6px;
  }

  .footer-column ul li a {
    font-size: 12px;
  }

  .footer-bottom {
    gap: 8px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .footer-bottom .copyright {
    order: 1;
  }

  .footer-bottom .policy-links {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .footer-bottom .policy-links a {
    margin: 0;
    font-size: 10px;
    width: 100%;
    text-align: center;
  }
}

/* Стили для модального окна */
.modal {
  display: none; /* Скрыто по умолчанию */
  position: fixed; /* Фиксированное позиционирование */
  z-index: 1000; /* Над остальным контентом */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный overlay */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto; /* Центрирование по вертикали и горизонтали */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* Ширина на больших экранах */
  max-width: 500px; /* Максимальная ширина */
  border-radius: 8px;
  position: relative;
}

/* Кнопка закрытия */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .modal-content {
    width: 90%;
    margin: 20% auto;
  }
}