/*Футер*/
/* Импорт шрифта */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

/* Сброс отступов и основная структура */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Comfortaa', cursive;
  background-color: #F9FAFB;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-weight: 600;
}

/* Обертка для контента */
.wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Основной контент */
.main-content {
  flex: 1 0 auto;
  padding: 30px 0;
  width: 100%;
}

/* Стили для футера - теперь всегда прижат к низу */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background-color: #0F2B6E;
  color: rgba(255, 255, 255, 0.9);
  margin-top: auto; /* Это ключевое свойство для прижатия */
}

/* Основная часть футера */
.footer-main {
  padding: 50px 0 30px;
  background: linear-gradient(135deg, #0F2B6E 0%, #1E3A8A 100%);
  border-top: 3px solid #F59E0B;
  position: relative;
}

.footer-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F59E0B, #FFD700, #F59E0B);
  background-size: 200% 100%;
  animation: gradientMove 3s ease infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Заголовки в футере */
.footer-main h5 {
  color: #F59E0B;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-main h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #F59E0B;
}

/* Стили для предупреждения */
.footer-warning {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #F59E0B;
}

.warning-icon {
  color: #F59E0B;
  font-size: 24px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.warning-text h5 {
  color: #F59E0B;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.warning-text h5::after {
  display: none;
}

.warning-text p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Быстрые ссылки */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #F59E0B;
  transform: translateX(5px);
}

/* Контакты */
.footer-contacts .contact-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
  background-color: #F59E0B;
  color: #1E3A8A;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
  border-color: #F59E0B;
}

.contact-link i {
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.contact-link:hover i {
  color: #1E3A8A;
}

/* Нижняя полоса футера */
.footer-bottom {
  background-color: #0A1F4F;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom .text-md-right {
  text-align: right;
}

.footer-bottom .credits {
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* Адаптивность */
/* Адаптивность - исправленная версия */
@media (max-width: 991.98px) {
  .footer-warning p {
    max-width: 100%;
  }
  
  /* Выравнивание всех колонок по левому краю на мобильных */
  .footer-links, 
  .footer-contacts {
    margin-top: 30px;
    text-align: left; /* Выравнивание по левому краю */
  }
  
  /* Заголовки тоже по левому краю */
  .footer-links h5,
  .footer-contacts h5 {
    text-align: left;
  }
  
  /* Списки ссылок по левому краю */
  .footer-links ul,
  .footer-contacts ul {
    padding-left: 0;
    text-align: left;
  }
  
  /* Элементы списка по левому краю */
  .footer-links li,
  .footer-contacts li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 30px 0 20px;
  }
  
  /* Для планшетов тоже левый край */
  .footer-links, 
  .footer-contacts {
    text-align: left;
  }
  
  /* Предупреждение по левому краю */
  .footer-warning {
    text-align: left;
  }
  
  .footer-warning p {
    margin: 0; /* Убираем центрирование */
  }
  
  .footer-bottom .text-md-right {
    text-align: center;
    margin-top: 10px;
  }
  
  .footer-bottom .row {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-main h5 {
    font-size: 16px;
    text-align: left; /* Заголовки по левому краю */
  }
  
  .footer-warning h5 {
    font-size: 18px;
  }
  
  .footer-warning p,
  .footer-links a,
  .footer-contacts a {
    font-size: 13px;
  }
  
  .footer-bottom p {
    font-size: 12px;
  }
  
  /* Убираем возможное центрирование Bootstrap */
  .col-lg-3, .col-lg-6 {
    text-align: left !important;
  }
}

/* Для самых маленьких экранов */
@media (max-width: 360px) {
  .footer-links h5,
  .footer-contacts h5,
  .footer-warning h5 {
    font-size: 15px;
  }
  
  .footer-warning p,
  .footer-links a,
  .footer-contacts a {
    font-size: 12px;
    word-break: break-word; /* Предотвращаем выход текста за границы */
  }
  
  /* Email может быть длинным, разрешаем перенос */
  .footer-contacts a[href^="mailto"] {
    word-break: break-all;
  }
}

/* Кнопка "Сообщить о проблеме" */
.footer-report {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-report-problem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  font-family: 'Comfortaa', cursive;
}

.btn-report-problem:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: #F59E0B;
  color: #F59E0B;
  transform: translateY(-2px);
}

.btn-report-problem i {
  font-size: 14px;
}