/* Desktop/Mobile visibility */
@media screen and (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  
  .s-contacts-block {
    width: 100%;
    padding: 0;
  }
  .txt.s-contacts-item{
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Swiper customization */
.s-contacts-mobile-slider {
  width: 100%;
  position: relative;
}

.s-contacts-mobile-slider .swiper-container {
  width: 100%;
  overflow: visible;  /* Changed from hidden to visible */
  position: relative;
}

.s-contacts-mobile-slider .swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  box-sizing: content-box;
}

.s-contacts-mobile-slider .swiper-slide {
  width: 100% !important; /* Force full width */
  height: auto;
  flex-shrink: 0;
  position: relative;
}

/* Image slides */
.s-contacts-image-slide {
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.s-contacts-image-slide picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.s-contacts-image-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text slides */
.s-contacts-mobile-slider .s-contacts-item {
  padding: 30px 20px;
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.s-contacts-mobile-slider .s-contacts-subtitle {
  margin-bottom: 20px;
  font-size: 24px;
}

.s-contacts-mobile-slider .s-contacts-descr {
  font-size: 16px;
  line-height: 1.6;
}

.s-contacts-mobile-slider .s-contacts-hr {
  margin-top: 20px;
}

/* Navigation buttons */
.s-contacts-mobile-slider .swiper-button-next,
.s-contacts-mobile-slider .swiper-button-prev {
  color: #000;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.s-contacts-mobile-slider .swiper-button-next:after,
.s-contacts-mobile-slider .swiper-button-prev:after {
  font-size: 20px;
}

.s-contacts-mobile-slider .swiper-button-next:hover,
.s-contacts-mobile-slider .swiper-button-prev:hover {
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Pagination */
.s-contacts-mobile-slider .swiper-pagination {
  position: absolute;  /* Changed from relative to absolute */
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  bottom: 20px;
  z-index: 10;  /* Added z-index */
  padding: 10px 0;  /* Added padding for larger touch area */
}

.s-contacts-mobile-slider .swiper-pagination-bullet {
  width: 8px;  /* Increased from 8px */
  height: 8px;  /* Increased from 8px */
  background-color: #000;  /* Changed from white to black for better visibility */
  opacity: 0.3;
  border-radius: 100%;
  margin: 0 !important;
  cursor: pointer;
  transition: opacity 0.3s, background .3s ease;
  position: relative;  /* Added for touch area expansion */
}

.s-contacts-mobile-slider .swiper-pagination-bullet::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
}

.s-contacts-mobile-slider .swiper-pagination-bullet:hover{
  background-color: #fff;  /* Changed from white to black */
}

.s-contacts-mobile-slider .swiper-pagination-bullet-active {
  background-color: #fff;  /* Changed from white to black */
  opacity: 1;
}

/* Mobile Text Sections */
.s-contacts-mobile-text {
  padding: 0;
  margin-bottom: 30px;
}

.s-contacts-mobile-text .s-contacts-item {
  margin-bottom: 30px;
}

.s-contacts-mobile-text .s-contacts-item:last-child {
  margin-bottom: 0;
}

.s-contacts-mobile-text .s-contacts-descr {
  font-size: 16px;
  line-height: 1.6;
}

.s-contacts-mobile-text .s-contacts-hr {
  margin-top: 20px;
}

/* Container adjustments */
@media screen and (max-width: 767px) {
  .s-contacts .container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
  }
  
  .s-contacts-img img {
    width: 100%;
    height: auto;
  }

  /* Fix for slide width calculation */
  .s-contacts-mobile-slider .swiper-slide {
    max-width: 100vw;
    box-sizing: border-box;
  }
} 