/* Базовые стили для футера, общие для мобильной и десктопной версий */

/* Стили для десктопного футера */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 25px 0 0 !important;
  position: relative;
  width: 100%;
  z-index: 10;
}

/* Верхняя часть футера с основным контентом */
.footer-top {
  padding: 10px 0 15px !important;
}

/* Стили для заголовков секций футера */
.footer-heading {
  font-size: 16px !important;
  font-weight: 600;
  margin-bottom: 10px !important;
  position: relative;
  color: #ffffff;
}

.footer-heading:after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #4F8DF9;
  margin-top: 6px !important;
}

.footer-company p {
  color: #f0f0f0;
  margin-bottom: 10px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Стили для логотипа в футере */
.footer-logo {
  margin-top: 15px;
}

.footer-logo img {
  max-width: 140px;
  height: auto;
}

/* Общие стили для контактной информации */
.footer-contacts ul,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-list {
  padding: 0;
  list-style: none;
  margin: 0;
}

.footer-contact-list li {
  margin-bottom: 6px !important;
  display: flex;
  align-items: flex-start;
  color: #f0f0f0;
  font-size: 12px !important;
}

.footer-contact-list i {
  margin-right: 10px;
  color: #4F8DF9;
  width: 16px;
  text-align: center;
}

.footer-contact-list a {
  color: #f0f0f0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact-list a:hover {
  color: #4F8DF9;
}

/* Стили для ссылок в футере */
.footer-nav-list {
  padding: 0;
  list-style: none;
  margin: 0;
  column-count: 2;
  column-gap: 20px;
}

.footer-nav-list li {
  margin-bottom: 5px !important;
  break-inside: avoid;
}

.footer-nav-list a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 12px !important;
  transition: color 0.3s;
}

.footer-nav-list a:hover {
  color: #4F8DF9;
}

/* Нижняя часть футера с копирайтом и социальными ссылками */
.footer-bottom {
  background-color: #000000;
  padding: 10px 0 !important;
  margin-top: 15px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  font-size: 13px;
  color: #f0f0f0;
  margin: 0;
}

/* Стили для блока социальных ссылок */
.social-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px !important;
  height: 30px !important;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin-left: 5px !important;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.3s;
}

.social-link:hover {
  background-color: #4F8DF9;
  color: #ffffff;
  transform: translateY(-3px);
}

/* Общие стили для мобильного футера */
.mobile-footer {
  background-color: #000000;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.mobile-footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-footer .copyright {
  margin: 0;
  font-size: 12px;
}

.mobile-contact a {
  color: #ffffff;
  font-size: 16px;
  margin-left: 15px;
}

.mobile-contact a:hover {
  color: #4F8DF9;
}

/* Общие классы для видимости */
.desktop-only {
  display: none;
}

.mobile-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

@media (max-width: 767px) {
  .mobile-only {
    display: block;
  }
}

/* Общие стили для обоих футеров */
.footer, .mobile-footer {
  width: 100%;
  clear: both;
  position: relative;
  margin-top: auto;
  margin-bottom: 0;
  padding-bottom: 0;
  z-index: 1;
}

/* Скрывать/показывать элементы на десктопе/мобильных */
@media (min-width: 768px) {
  /* Скрываем мобильные элементы */
  .mobile-footer,
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 767px) {
  /* Скрываем десктопные элементы */
  .footer, 
  .desktop-only {
    display: none !important;
  }
}

/* Стили для увеличения ширины строк в футере */
.footer-top .row,
.footer-bottom .row {
  width: 103% !important;
  max-width: 103% !important;
  margin-left: -1.5% !important;
  margin-right: -1.5% !important; 
}

.col-md-4 {
  width: 33.33% !important;
  flex: 0 0 33.33% !important;
  max-width: 33.33% !important;
  position: relative !important;
}

.footer-bottom .col-md-6 {
  width: 50% !important;
  flex: 0 0 50% !important;
  max-width: 50% !important;
}

/* Дополнительное уменьшение промежутка между footer-top и footer-bottom */
.footer-bottom {
  margin-top: 0 !important; /* Убираем отступ сверху */
  padding-top: 5px !important; /* Минимальный отступ для разделительной линии */
  border-top-width: 1px !important;
}
