/* ИСПРАВЛЕННЫЕ СТИЛИ для упрощенной логики */
.product-image {
  position: relative;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 24px 0 0 24px;
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.product-image img {
  max-width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.product-image:hover img {
  transform: scale(1.05);
}

/* Иконка увеличения */
.product-image::after {
  content: '🔍';
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.product-image:hover::after {
  opacity: 1;
  transform: scalepertise: 1.1);
}

/* МОДАЛЬНОЕ ОКНО */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-image-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: slideIn 0.4s ease;
}

.modal-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
  position: absolute;
  top: -45px;
  right: -15px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: scale(0.8) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

/* Мобильная адаптация для модального окна */
@media (max-width: 768px) {
  .modal-image-container {
    max-width: 95%;
    max-height: 85%;
  }

  .modal-close {
    top: -40px;
    right: -10px;
    font-size: 28px;
    width: 40px;
    height: 40px;
  }
}

/* Картинки для вариантов - скрыты по умолчанию */
.variant-image {
  max-width: 100%;
  height: auto;
  transition: opacity 0.3s ease;
  display: none;
  cursor: zoom-in;
}

.variant-image.active {
  display: block;
}

/* Переключатели вариантов в карточках (только для десктопа) */
.product-variants {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 380px;
  display: block;
}

.variant-tabs {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 0;
  padding: 0 1rem;
}

.variant-tab {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  border: 2px solid rgba(255, 193, 7, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #FF9800;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.variant-tab:hover {
  background: rgba(255, 193, 7, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.variant-tab.active {
  background: linear-gradient(135deg, #FFC107, #FF9800);
  color: white;
  border-color: #FF9800;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  font-weight: 700;
}

/* СТИЛИ ДЛЯ ПОПАПА */
/* Базовые стили попапа */
.popup-simple-content {
  display: block;
}

.popup-simple-content.hidden {
  display: none !important;
}

.popup-variants {
  display: block;
}

.popup-variants.hidden {
  display: none !important;
}

/* Табы вариантов В ПОПАПЕ */
.popup-variant-tabs {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
  justify-content: center;
  padding: 0;
  border-bottom: none; /* Убираем нижнюю границу */
}

.popup-variant-tab {
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  border: 2px solid rgba(255, 193, 7, 0.3);
  background: rgba(255, 255, 255, 0.95);
  color: #FF9800;
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
  min-width: 100px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-variant-tab.active {
  background: linear-gradient(135deg, #FFC107, #FF9800);
  color: white;
  border-color: #FF9800;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
  font-weight: 700;
}

.popup-variant-tab:hover {
  background: rgba(255, 193, 7, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.diameter-tooltip {
  position: absolute; /* Абсолютное позиционирование */
  top: 10px; /* От верха карточки */
  right: 10px; /* От правого края карточки */
  z-index: 10;
}

.diameter-tooltip .tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 12px;
  cursor: help;
}

.diameter-tooltip .tooltip-content {
  visibility: hidden;
  width: 280px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 10px;
  position: absolute;
  z-index: 1001;
  top: 25px; /* Ниже иконки */
  right: 0; /* Выравниваем по правому краю с иконкой */
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  line-height: 1.4;
}

.diameter-tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  bottom: -5px; /* Стрелка внизу подсказки */
  right: 20px; /* Стрелка справа */
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  transform: rotate(180deg); /* Поворачиваем стрелку вниз */
}

.diameter-tooltip:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Альтернативные позиции для tooltip */
.diameter-tooltip.left .tooltip-content {
  right: auto;
  left: -10px;
}

.diameter-tooltip.left .tooltip-content::after {
  right: auto;
  left: 20px;
}

.diameter-tooltip.bottom .tooltip-content {
  top: auto;
  bottom: -10px;
}

.diameter-tooltip.bottom .tooltip-content::after {
  bottom: auto;
  top: -5px;
  transform: rotate(0deg);
}

/* TOOLTIP для попапа - специальные стили */
@media (max-width: 768px) {
  .diameter-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
  }

  .diameter-tooltip .tooltip-content {
    visibility: hidden;
    width: 200px; /* Уменьшаем ширину для мобильных */
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1001;
    top: 25px;
    right: -180px; /* Сдвигаем влево, чтобы не выходила за край */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px; /* Уменьшаем размер шрифта */
    line-height: 1.3;
  }

  .diameter-tooltip .tooltip-content::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 185px; /* Позиционируем стрелку над иконкой */
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    transform: rotate(0deg);
  }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
  .diameter-tooltip .tooltip-content {
    width: 180px;
    right: -160px;
    font-size: 11px;
    padding: 6px;
  }

  .diameter-tooltip .tooltip-content::after {
    right: 165px;
  }
}

/* Альтернативный вариант - показывать tooltip слева на мобильных */
@media (max-width: 768px) {
  .diameter-tooltip.mobile-left .tooltip-content {
    right: auto;
    left: -180px;
  }

  .diameter-tooltip.mobile-left .tooltip-content::after {
    right: auto;
    left: 185px;
  }
}

/* TOOLTIP для попапа - специальные стили */
.popup-spec-item {
  position: relative; /* ВАЖНО: добавляем для popup тоже */
}

.popup-spec-item .diameter-tooltip {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.popup-spec-item .diameter-tooltip .tooltip-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 18px;
  font-size: 12px;
  cursor: help;
  vertical-align: middle;
}

.popup-spec-item .diameter-tooltip .tooltip-content {
  visibility: hidden;
  width: 260px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 12px;
  position: absolute;
  z-index: 1002;
  top: -10px;
  right: -10px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.popup-spec-item .diameter-tooltip .tooltip-content::after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 20px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  transform: rotate(180deg);
}

.popup-spec-item .diameter-tooltip:hover .tooltip-content,
.popup-spec-item .diameter-tooltip:active .tooltip-content {
  visibility: visible;
  opacity: 1;
}

.popup-image img {
  max-width: 200px;
  max-height: 140px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.popup-image img:hover {
  transform: scale(1.05);
}

/* Иконка увеличения для попапа */
.popup-image {
  position: relative;
}

.popup-image::after {
  content: '🔍';
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.popup-image:hover::after {
  opacity: 1;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Динамический диаметр */
.dynamic-diameter {
  font-weight: bold;
  color: #4caf50;
  transition: all 0.3s ease;
  position: relative;
}

.dynamic-diameter.updating {
  animation: diameterUpdate 0.5s ease;
}

@keyframes diameterUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); color: #2e7d32; }
  100% { transform: scale(1); }
}

/* МОБИЛЬНАЯ ВЕРСИЯ - Сетка с кнопкой "Подробнее" */
@media (max-width: 767px) {
  .catalog-container {
    display: grid;
    gap: 0.8rem; /* Уменьшенный отступ между карточками */
  }

  .catalog-slider {
    display: contents;
  }

  .product-card {
    background: white;
    border-radius: 12px; /* Скругленные углы для строгости */
    border: 1px solid rgba(76, 175, 80, 0.1); /* Тонкая граница */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); /* Мягкая тень */
    transition: all 0.3s ease;
    text-align: center;
    min-height: 280px; /* Увеличенная высота для большей картинки */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem; /* Уменьшенный внутренний отступ */
  }

  .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .product-image {
    height: 160px; /* Увеличенная высота для изображения */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.8rem;
    background: transparent;
    border-radius: 10px;
  }

  .product-card img {
    max-height: 140px; /* Увеличенный размер изображения */
    max-width: 160px; /* Чуть больше ширина */
    object-fit: contain;
    transition: transform 0.3s ease;
  }

  .product-card:hover img {
    transform: scale(1.03); /* Меньший зум для элегантности */
  }

  .product-card h3 {
    font-size: 0.95rem; /* Меньший шрифт для заголовка */
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 0.4rem;
    line-height: 1.3;
    text-transform: uppercase; /* Строгий стиль */
    letter-spacing: 0.3px;
  }

  .volume-display {
    font-size: 0.9rem; /* Уменьшенный шрифт */
    font-weight: 700;
    color: #4caf50;
    margin-bottom: 0.6rem;
  }

  .btn-details {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem; /* Меньший размер кнопки */
    border-radius: 20px; /* Меньше скругление */
    font-size: 0.85rem; /* Меньший шрифт */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
    margin: 0 auto;
    display: block;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2); /* Меньшая тень */
    text-decoration: none; /* Убираем подчеркивание для ссылки */
  }

  .btn-details:hover {
    transform: translateY(-1px); /* Меньший подъем */
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.25);
    background: linear-gradient(135deg, #2e7d32, #4caf50); /* Темнее при ховере */
  }

  /* Скрываем ненужные элементы на мобильных */
  .product-specs,
  .features-grid,
  .bottom-action {
    display: none;
  }

  .btn-details {
    display: block;
  }
}

/* СЕТКИ ДЛЯ РАЗНЫХ РАЗМЕРОВ */
@media (min-width: 481px) and (max-width: 767px) {
  .catalog-container {
    grid-template-columns: repeat(2, 1fr); /* Двухколоночная сетка для мобильных */
    gap: 0.8rem;
  }

  .product-image {
    height: 140px;
  }

  .product-card img {
    max-height: 120px;
    max-width: 140px;
  }

  .product-card h3 {
    font-size: 0.9rem;
  }

  .volume-display {
    font-size: 0.85rem;
  }

  .btn-details {
    padding: 0.7rem 1.3rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .catalog-container {
    grid-template-columns: 2fr; /* Одноколоночная сетка для очень маленьких экранов */
    gap: 0.7rem;
  }

  .product-card {
    padding: 0.8rem;
    min-height: 260px;
  }

  .product-image {
    height: 150px;
  }

  .product-card img {
    max-height: 130px;
    max-width: 150px;
  }

  .product-card h3 {
    font-size: 0.85rem;
  }

  .volume-display {
    font-size: 0.8rem;
  }

  .btn-details {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
  }
}

/* Адаптация для планшетов */
@media (min-width: 768px) and (max-width: 1023px) {
  .catalog-container {
    grid-template-columns: repeat(2, 1fr); /* Двухколоночная сетка для планшетов */
    gap: 1.2rem; /* Чуть больше отступ */
  }

  .product-card {
    padding: 1.2rem;
  }

  .product-image {
    height: 180px; /* Еще больше для планшетов */
  }

  .product-card img {
    max-height: 160px;
    max-width: 180px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .volume-display {
    font-size: 0.95rem;
  }

  .btn-details {
    padding: 0.9rem 1.8rem;
    font-size: 0.9rem;
  }
}

/* МОБИЛЬНАЯ АДАПТАЦИЯ */
@media (max-width: 1023px) {
  /* Скрываем блок вариантов в карточках товаров */
  .product-variants {
    display: none !important;
  }

  /* Адаптируем изображение продукта */
  .product-image {
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    padding-bottom: 1.5rem;
  }

  /* Для товаров с вариантами показываем только стандартную картинку */
  .product-card[data-volume="40000"] .variant-image:not([data-variant="standard"]),
  .product-card[data-volume="50000"] .variant-image:not([data-variant="standard"]),
  .product-card[data-volume="60000"] .variant-image:not([data-variant="standard"]) {
    display: none !important;
  }

  .product-card[data-volume="40000"] .variant-image[data-variant="standard"],
  .product-card[data-volume="50000"] .variant-image[data-variant="standard"],
  .product-card[data-volume="60000"] .variant-image[data-variant="standard"] {
    display: block !important;
  }

  /* Стили для попапа на мобильных */
  .popup-variant-tabs {
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 10;
    padding: 10px 0;
  }

  /* КРИТИЧЕСКИ ВАЖНО: убеждаемся, что неактивный контент скрыт */
  .popup-variant-content:not(.active) {
    display: none !important;
  }
}

/* Адаптация для маленьких экранов */
@media (max-width: 480px) {
  .variant-tab {
    padding: 0.5rem 0.8rem;
    font-size: 0.7rem;
    min-width: 70px;
  }

  .popup-variant-tab {
    padding: 0.7rem 1rem;
    font-size: 0.75rem;
    min-width: 85px;
  }
}

/* Адаптация для десктопа */
@media (min-width: 1024px) {
  .product-variants {
    margin: 1.5rem 0 0;
    max-width: 320px;
  }

  .variant-tabs {
    gap: 0.6rem;
    padding: 0;
  }

  .variant-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.75rem;
    min-width: 100px;
  }
}

/* Основные анимации */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
}

.slide-in-bottom {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-in-bottom.visible {
  opacity: 1;
  transform: translateY(0);
}

.rotate-in {
  opacity: 0;
  transform: rotate(-5deg) scale(0.95);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.rotate-in.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Задержки для поэтапной анимации */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }

/* Скорости анимации */
.anim-fast { transition-duration: 0.3s !important; }
.anim-slow { transition-duration: 0.7s !important; }
.anim-very-slow { transition-duration: 0.9s !important; }

/* СУЩЕСТВУЮЩИЕ СТИЛИ */
#catalog {
  background: transparent;
  padding: 2.5rem 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.catalog-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ДЕСКТОП - Слайдер */
@media (min-width: 1024px) {
  .catalog-container {
    position: relative;
    overflow: hidden;
  }

  .catalog-slider {
    display: flex;
    transition: transform 0.8s ease;
    gap: 1.5rem;
  }

  /* Скрываем кнопку подробнее на десктопе */
  .btn-details {
    display: none !important;
  }

  /* Скрываем volume-display на десктопе */
  .volume-display {
    display: none !important;
  }

  .product-card {
    min-width: 1350px;
    height: 520px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    border: 1px solid rgba(76, 175, 80, 0.15);
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.08);
    transition: all 0.4s ease;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    flex-shrink: 0;
  }

  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(46, 125, 50, 0.12);
  }

  .product-image {
    flex: 0 0 35%;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
  }

  .product-card img {
    width: 100%;
    max-width: 320px;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s ease;
  }

  .product-card:hover img {
    transform: scale(1.05);
  }

  .product-info {
    flex: 1;
    padding: 2.5rem;
    background: transparent;
    border-radius: 0 24px 24px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
  }

  .product-card h3 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1b5e20;
    margin-bottom: 0.8rem;
    line-height: 1.2;
  }

  .product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 1.5rem 0;
  }

  /* УЛУЧШЕННЫЕ ХАРАКТЕРИСТИКИ */
  .product-specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 0.5rem;
  }

  .spec-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
    position: relative; /* ВАЖНО: добавляем это для позиционирования tooltip */
  }

  .spec-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.15);
  }

  .spec-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
  }

  .spec-item span {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.2;
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
  }

  .feature-section h4 {
    color: #2e7d32;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(76, 175, 80, 0.2);
  }

  .feature-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .feature-section li {
    color: #455a64;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
  }

  .feature-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #4caf50;
    font-weight: bold;
    font-size: 1rem;
  }

  .bottom-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(76, 175, 80, 0.15);
    margin-top: auto;
  }

  .price-info {
    background: #f0fdf4;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    font-size: 1rem;
    border: 1px solid #bbf7d0;
    font-weight: 700;
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.25);
    white-space: nowrap;
    flex: 1;
    text-align: center;
  }

  .cta-button-catalog {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .cta-button-catalog:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #2e7d32, #4caf50);
  }

  /* Навигация слайдера */
  .catalog-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    font-size: 24px;
    color: #4caf50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .catalog-container {
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .catalog-nav:hover {
    background: #4caf50;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
  }

  .catalog-nav.prev {
    left: 15px;
  }

  .catalog-nav.next {
    right: 15px;
  }

  .catalog-progress {
    display: flex;
    justify相當: center;
    gap: 0.7rem;
    margin-top: 3rem;
  }

  .progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .progress-dot.active {
    background: #4caf50;
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
  }
}

/* ПОПАП ДЛЯ МОБИЛЬНЫХ */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px 20px 0 0;
  padding: 2rem;
  max-height: 80vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.popup-overlay.active .popup {
  transform: translateY(0);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(76, 175, 80, 0.1);
}

.popup-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1b5e20;
  flex: 1;
}

.btn-close {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: scale(1.1);
}

.popup-image {
  text-align: center;
  margin-bottom: 2rem;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image img {
  max-width: 200px;
  max-height: 140px;
  object-fit: contain;
}

.popup-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.popup-spec-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-spec-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #4caf50;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.popup-spec-item span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1b5e20;
}

.popup-features {
  margin-bottom: 2rem;
}

.popup-features h4 {
  color: #2e7d32;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.popup-features li {
  color: #455a64;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.4;
}

.popup-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.popup-price {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(139, 195, 74, 0.08));
  padding: 1.2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.2);
  font-size: 1rem;
}

.popup-actions {
  display: flex;
  gap: 1.2rem;
  margin-top: 2rem;
}

.btn-back {
  flex: 1;
  background: rgba(76, 175, 80, 0.1);
  color: #4caf50;
  border: 2px solid rgba(76, 175, 80, 0.3);
  padding: 1.2rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-order {
  flex: 2;
  background: linear-gradient(135deg, #4caf50, #66bb6a);
  color: white;
  border: none;
  padding: 1.2rem;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-back:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateY(-2px);
}

.btn-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.popup-spec-item #popupPrice {
  font-weight: 800;
  color: #2d4f8b;
  font-size: 1.35rem;
  padding: 0.5rem 0;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(45, 79, 139, 0.15);
}

.popup-specs {
  margin: 1.5rem 0;
  background: #fafafa;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid #f0f0f0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
}

.popup-price {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 1.5rem 0 0.5rem 0;
  padding: 1rem;
  background: rgba(249, 250, 251, 0.9);
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  line-height: 1.5;
}

/* Убираем анимацию shimmer и градиенты для лучшей читаемости */
.popup-price::before {
  display: none;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .popup-spec-item #popupPrice {
    font-size: 1.2rem;
    padding: 0.4rem 0;
  }

  .popup-specs {
    margin: 1.25rem 0;
    padding: 1.5rem;
    border-radius: 0.9rem;
  }

  .popup-price {
    font-size: 0.85rem;
    margin: 1.25rem 0 0.5rem 0;
    padding: 0.9rem;
  }
}

@media (max-width: 480px) {
  .popup-spec-item #popupPrice {
    font-size: 1.1rem;
    padding: 0.35rem 0;
  }

  .popup-specs {
    padding: 1.25rem;
    margin: 1rem 0;
    border-radius: 0.8rem;
  }

  .popup-price {
    font-size: 0.8rem;
    margin: 1rem 0 0.5rem 0;
    padding: 0.8rem;
  }
}

/* Улучшаем читаемость на маленьких экранах */
.popup-specs,
.popup-price {
  word-wrap: break-word;
  hyphens: auto;
}

/* Плавные переходы при наведении */
.popup-specs {
  transition: all 0.25s ease;
}

.popup-specs:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06), 0 2px 5px rgba(0, 0, 0, 0.03);
  transform: translateY(-1px);
}

/* Скрываем элементы управления слайдером на мобильных */
@media (max-width: 1023px) {
  .catalog-nav,
  .catalog-progress {
    display: none;
  }
}

/* Убедитесь что стрелки видны на десктопе */
@media (min-width: 1024px) {
  .catalog-nav {
    display: flex !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    font-size: 24px;
    color: #4caf50;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  }

  .catalog-nav.prev {
    left: 15px;
  }

  .catalog-nav.next {
    right: 15px;
  }
}