

/* Start:/local/templates/madison/css/3d-dizayny.css?17736704095004*/
.salon-design-section {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 18px;
  margin-bottom: 25px;
}

.salon-design-section__header {
  margin-bottom: 13px;
}

.salon-design-section__link {
  color: #585858;
  font-size: 17px;
  text-decoration: none;
}

/* Галерея */
.salon-design-gallery__desktop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.salon-design-gallery__item {
  position: relative;
}
.salon-design-section__gallery {
  margin-bottom: 18px;
}
.salon-design-gallery__fancy {
  display: block;
  overflow: hidden;
}

.salon-design-gallery__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.salon-design-gallery__fancy:hover .salon-design-gallery__image {
  transform: scale(1.05);
}
/* Футер секции */
.salon-design-section__footer {
  text-align: center;
}

.salon-design-section__all-link {
  color: #585858;
  text-decoration: none;
  font-size: 17px;
  text-transform: uppercase;
}
/* //////////////////////////////////////////////////////////////////////////// */
/* Добавляем эти стили */
.salon-design-gallery {
  position: relative;
}
.salon-design-gallery__navigation {
  display: none;
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.salon-design-gallery__navigation .swiper-button-prev,
.salon-design-gallery__navigation .swiper-button-next {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fira Sans Medium";
  cursor: pointer;
}

.salon-design-gallery__navigation .swiper-button-prev {
  left: -20px;
}

.salon-design-gallery__navigation .swiper-button-next {
  right: -20px;
}
.salon-design-gallery__navigation .swiper-button-prev::after,
.salon-design-gallery__navigation .swiper-button-next::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--color-secondary);
  border-right: 3px solid var(--color-secondary);
}

.salon-design-gallery__navigation .swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-right: -2px;
}

.salon-design-gallery__navigation .swiper-button-next::after {
  transform: rotate(45deg);
  margin-left: -2px;
}
/* //////////////////////////////////////////////////////////////////////// */
@media (max-width: 1024px) {
  .salon-design-gallery__desktop {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .swiper-container {
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .salon-design-gallery__desktop.swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
  }

  .salon-design-gallery__item.swiper-slide {
    width: 100% !important;
    flex-shrink: 0;
    padding: 0 5px;
    box-sizing: border-box;
  }

  .salon-design-gallery__navigation {
    display: block !important;
  }

  /* Убираем transition для изображений */
  .swiper-wrapper .salon-design-gallery__image {
    transition: none !important;
  }

  /* Гарантируем правильное отображение */
  .swiper-slide {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .salon-design-gallery__image {
    height: 200px;
  }
}
/* ////////////////////////////////////////////////////////////////////////// */
/* Стили секции */
.salon-photo-section {
  margin-bottom: 40px;
}

.salon-photo-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.salon-photo-section__card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease;
  height: 216px;
}

.salon-photo-section__card:hover {
  transform: scale(1.1);
  z-index: 10;
}

.salon-photo-section__image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.salon-photo-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.salon-photo-section__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #00000057;
  padding: 20px;
  color: white;
}

.salon-photo-section__title {
  margin: 0;
  font-size: 16px;
  color: white;
  text-align: center;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .salon-photo-section__grid {
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .salon-photo-section__grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .salon-photo-section__overlay {
    padding: 15px;
  }
  
  .salon-photo-section__title {
    font-size: 16px;
  }
}

/* End */
/* /local/templates/madison/css/3d-dizayny.css?17736704095004 */
