/* ============================================================
   HEADER
   ============================================================ */
.bdg-header {
  background: #fff;
  font-family: 'Exo 2', sans-serif;
}

.bdg-header__top {
  border-bottom: 1px solid #eee; /* Тонкая линия снизу */
}

.bdg-header__top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

/* ---------- Логотип ---------- */
.bdg-header__logo img {
  height: 40px; /* Подстрой под макет */
  width: auto;
  display: block;
}
/* По умолчанию (десктоп) — показываем полный, скрываем короткий */
.bdg-header__logo .logo-full {
  display: block;
  height: 40px;
  width: auto;
}
.bdg-header__logo .logo-short {
  display: none;
}

/* ---------- Контакты (десктоп) ---------- */
.bdg-header__contacts {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  color: var(--ade-text-dark);
}

.bdg-header__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bdg-header__contact-item img {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.bdg-header__contact-item a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

/* ---------- Действия (кнопка + иконки) ---------- */
.bdg-header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bdg-header__btn {
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #7E8292;
  border-radius: 8px;
  color: var(--ade-text-dark);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- Иконки соцсетей ---------- */
.bdg-header__socials {
  display: flex;
  gap: 8px;
}

/* По умолчанию (десктоп) скрываем планшетные и мобильные иконки */
.bdg-header__socials--tablet,
.bdg-header__socials--mobile {
  display: none;
}

/* Показываем десктопные иконки */
.bdg-header__socials--desktop {
  display: flex;
}

.bdg-header__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  transition: border-color 0.2s;
}

.bdg-header__socials a:hover {
  border-color: #7E8292;
}

.bdg-header__socials img {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}

/* Бургер (скрыт на десктопе) */
.bdg-header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.bdg-header__burger img {
  width: 32px;
  height: 32px;
}

/* ---------- Навигация (десктоп) ---------- */
.bdg-header__nav {
  background: #333741;
}

.bdg-header__nav-inner {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.bdg-nav {
  display: flex;
  gap: 48px;
}

.bdg-nav a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.bdg-nav a:hover {
  color: #c70000;
}

/* ============================================================
   АДАПТИВ ШАПКИ
   ============================================================ */

/* Планшет (768–1024) */
@media (max-width: 1024px) {
  .bdg-header__contacts {
    display: none; /* Прячем контакты */
  }
  
  .bdg-header__socials--desktop {
    display: none; /* Прячем соцсети десктопа */
  }
  
  .bdg-header__socials--tablet {
    display: flex; /* Показываем почту, WA, TG */
  }

  .bdg-header__socials--mobile {
    display: none;
  }

  .bdg-header__burger {
    display: block; /* Показываем бургер */
  }

  .bdg-header__nav {
    display: none; /* Прячем навигацию (она будет в бургере) */
  }
}

/* Мобильный (≤ 768) */
@media (max-width: 768px) {
  .bdg-header__socials--tablet {
    display: none; /* Прячем планшетные иконки */
  }

  .bdg-header__socials--mobile {
    display: flex; /* Показываем телефон и почту */
  }

  .bdg-header__btn {
    display: none; /* Прячем кнопку "Расчитать стоимость" */
  }

  .bdg-header__logo img {
    height: 32px;
  }
  .bdg-header__logo .logo-full {
    display: none;
  }
  .bdg-header__logo .logo-short {
    display: block;
    height: 32px; /* Подстрой под макет */
    width: auto;
  }
}
/* ============================================================
   БУРГЕР-МЕНЮ (НОВЫЕ КЛАССЫ)
   ============================================================ */

/* Кнопка бургера — скрыта на десктопе */
.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-burger img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Выпадающее меню — скрыто по умолчанию */
.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  z-index: 9999;
}

/* Показываем меню при классе is-open */
.nav-menu.is-open {
  display: block;
}

/* Список ссылок */
.nav-menu__list {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.nav-menu__list a {
  padding: 12px 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ade-text-dark);
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.nav-menu__list a:hover {
  background: #f9f9f9;
}

/* Позиционирование меню относительно шапки */
.bdg-header {
  position: relative;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

/* Планшет и мобильный (≤ 1024) — показываем бургер */
@media (max-width: 1024px) {
  .nav-burger {
    display: block;
  }
  .bdg-header__nav {
    display: none;
  }
}

/* Десктоп (≥ 1025) — скрываем меню и бургер */
@media (min-width: 1025px) {
  .nav-burger {
    display: none;
  }
  .nav-menu {
    display: none !important;
  }
}
/* ============================================================
   FOOTER (ФИНАЛЬНЫЙ)
   ============================================================ */
.bdg-footer {
  background-color: #333741;
  color: #fff;
  font-family: 'Exo 2', sans-serif;
  padding: 64px 0 32px;
}

/* Верхняя часть: Flex-контейнер для левой и правой колонки */
.bdg-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 80px; /* Отступ между колонками */
  margin-bottom: 48px;
}

/* --- ЛЕВАЯ КОЛОНКА --- */
.bdg-footer__brand {
  display: flex;
  flex-direction: column;
}
.bdg-footer__logo {
  display: block;
  margin-bottom: 24px;
}
.bdg-footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}
.bdg-footer__desc {
  font-size: 14px;
  line-height: 1.5;
  color: #7E8292;
  margin: 0 0 32px 0;
}

/* Блок соцсетей и адреса */
.bdg-footer__brand-bottom {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: auto; /* Прижимаем к низу */
}

.bdg-footer__socials {
  display: flex;
  gap: 12px;
}
.bdg-footer__socials a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid #5A5E6A; border-radius: 8px;
  transition: border-color 0.2s;
}
.bdg-footer__socials a:hover { border-color: #fff; }

.bdg-footer__address {
  display: flex; align-items: center; gap: 12px;
  font-size: 18px; color: #fff; line-height: 1.3;
}

/* --- ПРАВАЯ КОЛОНКА --- */
.bdg-footer__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px; /* Отступ между контактами и кнопками */
}

/* Контакты (телефон и почта) */
.bdg-footer__contacts {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 20px;
}

.bdg-footer__link {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 18px; color: #fff; text-decoration: none; line-height: 1.3;
}
.bdg-footer__link:hover { color: #C70000; }
.bdg-footer__icon { flex-shrink: 0; margin-top: 2px; }

/* Кнопки */
.bdg-footer__actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
}
.bdg-footer__btn {
  font-size: 18px; padding: 14px 24px; border-radius: 12px;
  font-weight: 600; text-align: center; width: 320px;
}

/* --- НИЖНЯЯ ЛИНИЯ --- */
.bdg-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid #5A5E6A; padding-top: 24px;
}
.bdg-footer__legal { display: flex; gap: 32px; }
.bdg-footer__legal a {
  font-size: 14px; color: #7E8292; text-decoration: underline; text-underline-offset: 2px;
}
.bdg-footer__legal a:hover { color: #fff; }
.bdg-footer__copyright { font-size: 14px; color: #7E8292; }

/* ============================================================
   ПЛАНШЕТ И МОБИЛЬНЫЙ (до 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .bdg-footer__top {
    flex-direction: column;
    gap: 40px;
  }
  .bdg-footer__brand { flex: auto; }
  
  /* На планшете контакты тоже в ряд */
  .bdg-footer__contacts {
    flex-direction: row;
    justify-content: flex-start;
    gap: 48px;
    flex-wrap: wrap;
  }
}


/* ============================================================
   СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН
   ============================================================ */
body.modal-open {
  overflow: hidden; /* Блокируем скролл страницы, когда открыта модалка */
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1900000010;
  
  /* По умолчанию скрыто */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  
  /* Центрирование */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Когда JS добавляет класс is-open — показываем */
.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* Само окно */
.modal {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh; /* Максимальная высота — 90% от высоты экрана */
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

/* Шапка модалки */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0; /* Запрещаем шапке сжиматься */
}

.modal-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  margin: 0;
  text-transform: uppercase;
  line-height: 1.2;
  width: 100%;
  text-align: center;
}

/* Кнопка закрытия */
.modal-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #333;
}

/* Тело модалки (куда грузится форма) */
.modal-body {
  padding: 10px 32px;
  overflow-y: auto; /* Включаем вертикальный скролл */
  -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
}
/* Красивый тонкий скроллбар (опционально, для Webkit-браузеров) */
.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}
/* ============================================================
   СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ МОДАЛКИ ПОЛИТИКИ
   ============================================================ */

/* 1. Ограничиваем общую высоту модалки */
#modal-personal-data .modal {
  height: 85vh; /* 85% от высоты экрана */
  max-height: 850px;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* 2. Шапка модалки (заголовок) — не сжимается */
#modal-personal-data .modal-header {
  flex-shrink: 0;
  padding: 24px 32px;
  border-bottom: 1px solid #eee;
}

/* 3. Тело модалки — занимает всё оставшееся место и скроллится */
#modal-personal-data .modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 32px 48px; /* Большие отступы по бокам, как в документах */
  margin: 0;
}

/* 4. Принудительно убираем лишние белые фоны, если они наследуются от форм Битрикса */
#modal-personal-data .modal-body .b24-form,
#modal-personal-data .modal-body form {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* 5. Красиво оформляем заголовки и текст внутри политики */
#modal-personal-data .modal-body h2,
#modal-personal-data .modal-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #22262B;
}

#modal-personal-data .modal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 16px;
}

#modal-personal-data .modal-body ul,
#modal-personal-data .modal-body ol {
  margin-bottom: 16px;
  padding-left: 20px;
}

#modal-personal-data .modal-body li {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 8px;
}
@media (max-width: 480px) {
  /* Мобильная перестройка */
  .bdg-footer__brand-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  
  .bdg-footer__contacts {
    flex-direction: column;
    gap: 16px;
  }
  
  .bdg-footer__actions {
    flex-direction: column;
    width: 100%;
  }
  .bdg-footer__btn { width: auto; max-width: 90%;}
  
  .bdg-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .bdg-footer__legal {
    flex-direction: column;
    gap: 12px;
  }
  .modal-overlay {
    width: auto;
  }
}

       .cc-window{
        z-index: 2147483649 !important;
       } 
       .cc-window.cc-floating{
        max-width: 600px !important;
        border: #ccc 2px solid;
        border-radius: 16px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        text-align: center;
        animation: fadeIn 0.6s ease-out;
       }