/**
 * Фикс отображения кнопки языков на мобильных устройствах и планшетах
 * Фикс отображения юридического адреса в футере
 * © 2025 Igor Silin. Все права защищены.
 */

/* Фикс для юридического адреса в футере */
.footer-links li {
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.footer-links li i {
  flex-shrink: 0 !important;
  margin-top: 0 !important;
  line-height: inherit !important;
  padding-top: 0 !important;
}

@media (max-width: 768px) {
  .footer-links li {
    font-size: 13px;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .footer-links li {
    font-size: 12px;
    line-height: 1.7;
    flex-direction: row;
    align-items: flex-start;
  }
  
  .footer-links li i {
    margin-top: 0;
  }
}

/* Всегда показываем кнопку языков */
.language-switcher {
  display: flex !important;
}

/* Мобильные устройства (до 480px) */
@media (max-width: 480px) {
  .language-switcher {
    display: flex !important;
    margin-right: 12px;
  }
}

/* Планшеты (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .language-switcher {
    display: flex !important;
  }
}

/* Планшеты и небольшие ноутбуки (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .language-switcher {
    display: flex !important;
  }
}

/* Десктопы */
@media (min-width: 1025px) {
  .language-switcher {
    display: flex !important;
  }
}

/* Стили для переключателя языков в боковом меню */
.sidebar-language {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(191, 161, 74, 0.2);
}

.sidebar-language-title {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.sidebar-language-title:hover {
  background: rgba(191, 161, 74, 0.1);
  color: #d4b55a;
}

.sidebar-language-title i {
  font-size: 20px;
  color: #bfa14a;
  transition: transform 0.3s ease;
}

.sidebar-language.active .sidebar-language-title i {
  transform: rotate(180deg);
}

.sidebar-language-options {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sidebar-language.active .sidebar-language-options {
  display: flex;
  max-height: 300px;
}

.sidebar-lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.sidebar-lang-option .lang-flag {
  font-size: 20px;
  line-height: 1;
}

.sidebar-lang-option .lang-name {
  flex: 1;
}

.sidebar-lang-option:hover {
  background: rgba(191, 161, 74, 0.2);
  color: #d4b55a;
  transform: translateX(4px);
}

.sidebar-lang-option.active {
  background: rgba(191, 161, 74, 0.15);
  color: #bfa14a;
}
