:root {
  --brand-main: #067597;
  --brand-light: #e6f4f8;
  --text-dark: #1a2733;
  --text-gray: #64748b;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --radius-pill: 50px;
  --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.bi-facebook{
  color: #0029ff;
}
.bi-youtube{
  color: #ff0000;
}
.bi-telegram{
  color: #00a9ff
}
.bi-instagram{
color: #df008f;
}
.bi-linkedin{
color: #008bdf
}
/* =========================================================
   LIVE SEARCH DROPDOWN (improved)
   ========================================================= */
.search-live-box {
  position: absolute;
  top: calc(100% + 6px);

  right: 0 !important;
  width: 400px !important;
  max-width: 400px !important;
  background: #ffffff;
  border-radius: 12px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 4px 8px rgba(0, 0, 0, 0.06);
  z-index: 3001;
  overflow-y: auto;
  max-height: 340px;
  display: none;
  padding: 6px 0;
  animation: fadeInSearch 0.25s ease;
}

/* smooth scrollbar */
.search-live-box::-webkit-scrollbar {
  width: 6px;
}

.search-live-box::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.18);
  border-radius: 6px;
}

/* animation */
@keyframes fadeInSearch {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer.footer {
  margin-top: auto !important;
}

.search-live-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  text-decoration: none;
  color: #1f2933;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-live-item:hover {
  background: #f3faff;
  transform: translateX(3px);
}

.search-live-item:last-child {
  border-bottom: none;
}


.search-live-img {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;

  border-radius: 8px;
  object-fit: contain;
  /* 🔥 ВАЖНО */
  object-position: center;

  background: #f1f5f9;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.search-live-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.search-live-type {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #0d6efd;
}

.search-live-title {
  font-size: 13.8px;
  line-height: 1.3;
  color: #1f2933;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-live-empty {
  padding: 14px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  background: #fafafa;
  border-radius: 0 0 12px 12px;
}

.search-live-snippet {
  font-size: 12.3px;
  color: #4b5563;
  margin-top: 3px;
  line-height: 1.35;
  white-space: normal;
}

.search-live-snippet mark {
  background: #fff3cd;
  color: #b45309;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

.search-input-wrap {
  position: relative;
  overflow: visible !important;
}

/* =========================================================
   NAVBAR AUTH BUTTONS (Кнопки в шапке)
   ========================================================= */
.btn-auth-primary {
  background: var(--brand-main);
  color: white !important;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-auth-outline {
  border: 1px solid var(--brand-main);
  background: transparent;
  color: var(--brand-main) !important;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-auth-primary:hover,
.btn-auth-outline:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 117, 151, 0.25);
  /* Для outline меняем фон при наведении */
  background: var(--brand-main);
  color: white !important;
}

/* =========================================================
   LOGIN MODAL STYLES (Само окно)
   ========================================================= */

/* 1. Контейнер окна */
.custom-modal {
  border: none;
  border-radius: 24px;
  /* Современное скругление */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  padding: 20px;
  background: #ffffff;
}

/* 2. Заголовок */
.modal-title {
  font-size: 1.25rem;
  color: var(--text-dark);
}

/* 3. Кнопка закрытия (Крестик) */
.btn-close-custom {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-close-custom:hover {
  background: #fee2e2;
  color: #ef4444;
  transform: rotate(90deg);
}

/* 4. Поля ввода с иконками */
.input-wrapper {
  position: relative;
}

/* Иконка внутри поля */
.icon-field {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

/* Инпут */
.form-control-custom {
  width: 100%;
  padding: 14px 16px 14px 50px;
  /* Отступ слева под иконку */
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  border-radius: 14px;
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  background: #ffffff;
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px var(--brand-light);
  /* Мягкое свечение */
  outline: none;
}

/* Лейблы над полями */
.form-label-small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  display: block;
}

/* 5. Кнопка "Войти" */
.btn-login-submit {
  background: var(--brand-main);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 50px;
  /* Pill shape */
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 10px;
}

.btn-login-submit:hover {
  background: #055a74;
  /* Darker brand color */
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(6, 117, 151, 0.4);
  color: white;
}

/* 6. Алерт ошибки */
.alert-custom-danger {
  background-color: #fef2f2;
  color: #991b1b;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   NAVBAR MODERN STYLE
   ========================================================= */
.modern-nav {
  background: var(--nav-bg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: all 0.3s ease;
}

.logo-img {
  height: 38px;
  width: auto;
}

.modern-nav .nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 15px !important;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.modern-nav .nav-link i {
  font-size: 1.1rem;
  color: var(--brand-main);
}

.modern-nav .nav-link:hover {
  color: var(--brand-main) !important;
}

/* Search Box */
.search-input-wrap {
  position: relative;
}

.search-input-custom {
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  padding: 8px 40px 8px 16px;
  font-size: 0.85rem;
  width: 200px;
  transition: all 0.3s ease;
  background: white;
}

.search-input-custom:focus {
  width: 260px;
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px var(--brand-light);
  outline: none;
}

.search-inline-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--brand-main);
  padding: 0;
}

/* Buttons */
.btn-lang {
    border: 1px solid #067597;
    background: #00000000;
    color: #067597;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.btn-lang.dropdown-toggle::after {
  display: none !important;
}
.btn-lang:hover {
  border-color: #067597;
  background: #067597;
  color: #ffffff;
}

.btn-auth-primary {
  background: var(--brand-main);
  color: white !important;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

.btn-auth-outline {
  border: 1px solid var(--brand-main);
  background: transparent;
  color: var(--brand-main) !important;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-auth-primary:hover,
.btn-auth-outline:hover,
.btn-lang:hover{
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 117, 151, 0.2);
}

/* =========================================================
   FOOTER MODERN STYLE (2025 Refined)
   ========================================================= */

/* --- Основной контейнер --- */
.footer-modern {
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 60px;
  position: relative;
  overflow: hidden; /* Чтобы декоративные элементы не вылезали */
}

/* --- Брендинг и Логотип --- */
.footer-brand-wrap {
  position: relative;
}

.footer-logo {
  width: auto;      /* Автоматическая ширина */
  height: 45px;     /* Фиксируем высоту для аккуратности */
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-brand-wrap:hover .footer-logo {
  filter: grayscale(0%); /* Цвет при наведении */
  opacity: 1;
  transform: scale(1.02);
}

.footer-desc {
  color: #64748b; /* Более мягкий серый (Slate-500) */
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 90%;
}

/* --- Заголовки --- */
.footer-title {
  font-weight: 700;
  color: #1e293b; /* Slate-800 */
  margin-bottom: 25px;
  font-size: 1.15rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.02em;
}

/* Декоративная линия под заголовком */
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 30px;
  height: 2px;
  background-color: var(--brand-main, #0d6efd); /* Используем вашу переменную или синий */
  border-radius: 2px;
}

/* --- Ссылки (Навигация) --- */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  text-decoration: none;
  color: #64748b;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  position: relative;
}

/* Анимация ссылки со стрелочкой */
.footer-links a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  color: var(--brand-main, #0d6efd);
  transition: all 0.3s ease;
  font-size: 1.1em;
  line-height: 1;
}

.footer-links a:hover {
  color: var(--brand-main, #0d6efd);
  transform: translateX(15px); /* Сдвигаем текст вправо */
}

.footer-links a:hover::before {
  opacity: 1;
  left: -20px; /* Стрелочка появляется слева */
}

/* --- Контакты --- */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contact-item i {
  color: var(--brand-main, #0d6efd);
  font-size: 1.2rem;
  background: rgba(13, 110, 253, 0.1); /* Легкая подложка под иконку */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0; /* Чтобы иконка не сжималась */
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item a:hover {
  color: var(--brand-main, #0d6efd);
}

/* --- Социальные иконки --- */
.social-grid {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px; /* Мягкий квадрат */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Пружинистый эффект */
}

.social-link:hover {
  background: var(--brand-main, #0d6efd);
  border-color: var(--brand-main, #0d6efd);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px -5px rgba(13, 110, 253, 0.4); /* Красивая цветная тень */
}

/* --- Нижняя полоса (Copyright) --- */
.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

@media (min-width: 1400px) {}

@media (min-width: 1200px) and (max-width: 1399.98px) {}

@media (min-width: 992px) and (max-width: 1199.98px) {}

/* =====================================================
   MOBILE / TABLET (<= 991px)
   ===================================================== */
@media (max-width: 991.98px) {

  .modern-nav .container-fluid {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* раскрытое меню */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  /* меню слева */
  .navbar-nav {
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* нижний блок по центру */
  .navbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .search-form {
    width: 100%;
    order: -1;
  }

  .search-input-custom {
    width: 100%;
    height: 46px;
  }
}

@media (max-width: 767.98px) {

  .modern-nav .container-fluid {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* раскрытое меню */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  }

  /* меню слева */
  .navbar-nav {
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    padding: 12px 0;
    width: 100%;
    justify-content: flex-start;
  }

  /* нижний блок по центру */
  .navbar-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .search-form {
    width: 100%;
    order: -1;
  }

  .search-input-custom {
    width: 100%;
    height: 46px;
  }
}