/* Стили шапки (header) — вынесены из include/header.php 26.11.2026.
   Блок 2.6, шаг 1: оформление больше не зависит от JS (раньше <style>
   вставлялся в <head> через document.head.appendChild из PHP-include).
   Блок согласий подключается отдельно: assets/css/consent.css (раньше импорт отсюда). */

.langcont {
  background-color: #f9f9f9;
  height: 42px;
  border-bottom: 1px solid #e5e5e5;
}

.lgcont {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 1px;
  align-items: center;
  background: #e5e5e5;
  position: relative;
}

.lgbox {
  padding: 10px 15px 0 10px;
  height: 41px;
  position: relative;
}

.lgcontacts {
  flex: 2;
  background-color: #f9f9f9;
  text-align: left;
  padding-top: 8px;
    
}
.lgcontacts a {
    color: #rgb(119, 118, 118);
    text-decoration: none;
    font-weight: 500;
}

.contact-info-top {
  padding-left: 40px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.contact-info-top a {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
  font-weight: 500;  
  text-decoration: none;
  color: rgb(119, 118, 118);
}
.contact-info-top a:hover {
  color: #667eea;
}

.lglarge {
  flex: 3;
  background-color: #f9f9f9;
  text-align: right;
}

.lgsmall {
  flex: 0.7;
  background-color: #f9f9f9;
}
.lgsmall i:hover {
color:#667eea
} 

.fa {
  color: rgb(119, 118, 118);
  padding: 0 0 0 6px;
  text-decoration: none;
}

.language-selector {
  position: relative;
  display: inline-block;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0px;
  background: #f9f9f9;
  color:#666;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-current:hover {
  color:#667eea
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
   font-weight: 400;
  align-items: center;
  text-align: center;
  z-index: 1001;
  }

.lang-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown li {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
  justify-content: center; 
}

.lang-dropdown li:hover {
  background: #f1f1f1;
  color:rgb(110, 158, 255);
  font-weight: 700;
}

.lang-dropdown li i {
  width: 20px;
  color: #495057;
}

/* Стрелка вверх */
.lang-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(0,0,0,0.05);
}
    /* пишите стили как обычно */
header {
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.02),
    0 1px 2px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(0px);
}
/* Навигация */
.navbar {
  background: #f9f9f9;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Логотип */
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  text-decoration: none;
  padding: 1rem 0;
  display: inline-block;
}

/* Бургер-меню (скрыт на десктопе, виден на мобильных) */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 30px;
  height: 22px;
  position: relative;
  z-index: 1001;
}

.burger span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger span:nth-child(1) {
  top: 0;
}
.burger span:nth-child(2) {
  top: 9px;
}
.burger span:nth-child(3) {
  top: 18px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Десктопное меню (горизонтальное) */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: static;
}

.nav-link {
  color: #04395e;
  text-decoration: none;
  padding: 1.2rem 0;
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: #667eea;
}

/* Индикатор для пунктов с подменю */
.has-dropdown > .nav-link::after {
  font-size: 0.7rem;
  margin-left: 5px;
  opacity: 0.6;
}

/* ВЫПАДАЮЩЕЕ МЕНЮ - на всю ширину, центрировано */
.dropdown-menu {
  position: fixed; /* вместо absolute */
  left: 0;
  right: 0;
  top: auto; /* будет вычисляться через JS или задать конкретно */
  margin-top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.ыs ease;
  z-index: 999;
  border-top: 3px solid #667eea;
  border-radius:  0 0 5px 5px;
}

/* Контейнер содержимого выпадашки - центрирован и 1280px */
.dropdown-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  gap: 40px;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Стили для колонок */
.dropdown-column {
  flex: 1;
}

.dropdown-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea;
  display: inline-block;
}

.dropdown-list {
  list-style: none;
}

.dropdown-list li {
  margin-bottom: 10px;
}

.dropdown-list a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  display: block;
  padding: 5px 0;
}

.dropdown-list a:hover {
  color: #667eea;
  transform: translateX(5px);
}

/* 2-й и 3-й уровни */
.submenu {
  list-style: none;
  margin-top: 10px;
  margin-left: 15px;
}

.submenu li {
  margin-bottom: 8px;
}

.submenu a {
  font-size: 0.9rem;
  color: #888;
}

.submenu a:hover {
  color: #667eea;
}

.has-submenu > a {
  font-weight: 500;
  color: #555;
}

/* Карточки/баннеры */
.dropdown-featured {
  background-image: url('/images/bg.png') no-repeat center / cover;
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  padding: 20px;
  border-radius: 12px;
}

.featured-title {
  font-weight: 700;
  margin-bottom: 10px;
  color: #667eea;
}

.featured-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* Карточки/баннеры Лизинг (Светлый вариант) */
.dropdown-featured-leasing {
  /* Плотный белый градиент накладывается поверх картинки, мягко её высветляя */
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.83) 100%),
    url('/images/bg-leasing.png') no-repeat center / cover;
  
  padding: 24px;
  border-radius: 12px;
  
  /* Размеры и позиционирование */
  max-width: 300px;
  box-sizing: border-box;
  
  /* Элегантная тонкая рамка и тень для интеграции в белое меню */
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  
  /* Плавный переход для ховер-эффекта */
  transition: all 0.3s ease;
}

/* Эффект при наведении мыши на карточку */
.dropdown-featured-leasing:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px); /* Карточка изящно приподнимается */
}

.featured-title-leasing {
  font-weight: 700;
  margin-bottom: 12px;
  color: #004B87; /* Фирменный глубокий синий цвет Interpack */
  letter-spacing: 0.5px;
  font-size: 1rem;
}

/* Иконка внутри заголовка */
.featured-title-leasing i {
  color: #004B87 !important; /* В тон заголовка для строгого бизнес-стиля */
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.dropdown-featured-leasing:hover .featured-title-leasing i {
  transform: scale(1.1); /* Иконка слегка увеличивается при наведении */
}

.featured-text-leasing {
  font-size: 0.9rem;
  color: #4a5568; /* Благородный темно-серый цвет — идеальная читаемость на светлом */
  line-height: 1.6;
}

/* Ссылка «Узнать больше →» */
.featured-text-leasing a {
  color: #004B87 !important; /* Ссылка синяя, как основные элементы сайта */
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  transition: color 0.2s ease;
}

.featured-text-leasing a:hover {
  text-decoration: underline;
  color: #002f56 !important; /* Ссылка слегка темнеет при наведении */
}

/* ========== МОБИЛЬНАЯ ВЕРСИЯ (max-width: 768px) ========== */
@media (max-width: 1180px) {
  /* Скрываем десктопное меню */
  .langcont, .jq-dropdown-menu {
   display: none;
  }
  /* Показываем бургер */
  .burger {
    display: block;
  }

  /* Меню скрыто по умолчанию, выезжает слева */
  .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 30px;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav-menu.active {
    left: 0;
  }

  /* Оверлей */
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
    position: static;
  }

  .nav-link {
    padding: 1rem 0;
    display: block;
    width: 100%;
  }

  /* Выпадашка в мобильной версии */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    border-top: none;
    border-left: 3px solid #667eea;
    margin-left: 10px;
    margin-top: 5px;
    background: #f9f9f9;
  }

  .nav-item.active .dropdown-menu {
    display: block;
  }

  .dropdown-container {
    flex-direction: column;
    padding: 20px;
    gap: 25px;
  }

  .has-dropdown > .nav-link::after {
    content: " ▶";
    float: right;
    font-size: 0.8rem;
  }

  .has-dropdown.active > .nav-link::after {
    content: " ▼";
  }

  .dropdown-column {
    width: 100%;
  }

  .submenu {
    margin-left: 15px;
  }
}
        
/* ===== Базовая адаптивность медиа (25.11.2026) =====
   без этого контентные картинки с атрибутом width и широкие таблицы
   растягивали страницу на телефоне (горизонтальный скролл) */
img, video, canvas, iframe, embed, object { max-width: 100%; }
img { height: auto; }
table { max-width: 100%; }
pre, code { white-space: pre-wrap; word-break: break-word; }
