/* Основные стили футера */
.footer {
  width: 100%;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  font-family: 'Mulish', sans-serif;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Стили для Slick Slider */
.slick-slider {
  position: relative;
  display: block;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-y;
}

.slick-list {
  position: relative;
  display: block;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.slick-slide {
  float: left;
  height: 100%;
  min-height: 1px;
  display: none;
}

.slick-slide img {
  display: block;
  width: 100%;
}

.slick-initialized .slick-slide {
  display: block;
}



.slide {
  padding: 0 15px;
  text-align: center;
  height: auto;
}

.slide img {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: 60px;
  margin: 0 auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

/* Блок социальных сетей */
.social-networks {
  background: #f8f8f8;
  padding: 25px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.social-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  width: 80px;
  transition: all 0.3s ease;
}

.social-link:hover {
  transform: translateY(-5px);
  color: #0077bb;
}

.social-icon {
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.social-link:hover .social-icon {
  background: #0077bb;
}

.social-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.social-link span {
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.3;
}

.news-slider-container {
  width: 100%;
  padding: 30px 0;
  background: #f5f5f5;
  position: relative;
}

.news-slider {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.news-slide {
  margin: 0 10px;
  width: auto;
  height: 180px;
  /* Фиксированная высота */
  background-color: white;
  box-sizing: border-box;
  padding: 20px;
  border-radius: 8px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.news-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.news-slide-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.news-slide img {
  max-height: 100px;
  max-width: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

.news-slide-title {
  color: #333;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
  margin-top: 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}



.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.slider-prev,
.slider-next {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: white;
  margin: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.slider-prev i,
.slider-next i {
  color: #0060a0;
}

.slider-prev:hover,
.slider-next:hover {
  background: #ebebeb;
  transform: scale(1.1);
}

.no-news {
  text-align: center;
  padding: 30px;
  font-size: 1.1rem;
  color: #666;
  background: #fff;
  border-radius: 8px;
  margin: 0 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Нижняя часть футера */
.footer_end {

  text-align: center;
  padding: 0 0 20px;
}

.footer_end_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer_content {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Кнопка "наверх" */
.btn-up {
  position: fixed;
  background-color: #0077bb;
  right: 30px;
  bottom: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  opacity: 0.9;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.btn-up:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.btn-up::before {
  content: "";
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z'/%3E%3C/svg%3E") no-repeat center;
}

.btn-up_hide {
  display: none;
}

/* Адаптация для планшетов */
@media (max-width: 992px) {
  .footer_container {
    max-width: 95%;
  }

  .news-slide {
    height: 160px;
    padding: 15px;
  }

  .news-slide img {
    max-height: 70px;
    max-width: 130px;
  }

  .news-slide-title {
    font-size: 0.85rem;
  }

  .slider-prev,
  .slider-next {
    margin: 10px;
  }



  .social-container {
    gap: 20px;
  }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
  .news-slide {
    height: 140px;
    padding: 12px;
  }

  .news-slide img {
    max-height: 80px;
    max-width: 130px;
    margin-bottom: 10px;
  }

  .news-slide-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .slider-prev,
  .slider-next {
    margin: 10px;
  }

  .slide {
    padding: 0 10px;
  }

  .slide img {
    max-height: 60px;
  }

  .social-networks {
    padding: 20px 0;
  }

  .social-container {
    gap: 15px;
    max-width: 100%;
    padding: 0 15px;
  }

  .social-link {
    width: 70px;
  }

  .social-icon {
    width: 44px;
    height: 44px;
  }

  .social-icon img {
    width: 24px;
    height: 24px;
  }

  .slider-prev,
  .slider-next {
    width: 36px;
    height: 36px;
  }

  .footer_content {
    font-size: 0.85rem;
  }

  .btn-up {
    width: 44px;
    height: 44px;
    right: 20px;
    bottom: 20px;
  }
}

/* Адаптация для маленьких мобильных */
@media (max-width: 480px) {
  .footer_container {
    padding: 0 15px;
  }

  .slider-prev,
  .slider-next {
    margin: 10px;
  }

  .news-slide {
    height: 120px;
    padding: 10px;
    margin: 0 5px;
  }

  .news-slide img {
    max-height: 70px;
    max-width: 110px;
    margin-bottom: 8px;
  }

  .news-slide-title {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .social-container {
    gap: 10px;
    justify-content: space-around;
  }

  .social-link {
    width: 60px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon img {
    width: 22px;
    height: 22px;
  }

  .social-link span {
    font-size: 0.7rem;
  }

  .slide img {
    max-height: 50px;
  }

  .footer_content {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .btn-up {
    width: 40px;
    height: 40px;
  }

  .btn-up::before {
    width: 18px;
    height: 18px;
  }
}

/* Горизонтальная прокрутка для соцсетей на очень узких экранах */
@media (max-width: 360px) {
  .social-container {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .social-container::-webkit-scrollbar {
    display: none;
  }

  .social-link {
    flex: 0 0 auto;
  }
}