.site-header.custom-header {
  width: 100%;
  background-color: #121415;
  border-bottom: 1px solid rgba(128, 128, 128, 0.0);
  padding:  12px;
}

/* Новый контейнер шириной 80% */
.header-inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding:  0;
}

/* Логотип */
.logo img {
  height: 32px;
  width: auto;
  display: block;
}

/* Меню — строка */
.main-navigation {
  display: flex;
  align-items: center;
  margin-right: 40px; /* отступ до кнопки */
}

.main-navigation ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li {
  display: inline-block;
}

.main-navigation a {
  color: #CACACA;
  font-family: 'Poppins', sans-serif;
  font-size: 18px !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.main-navigation a:hover {
  color: #ffffff;
}

/* Кнопка */
.header-cta .contact-btn {
  background-color: #F95D32;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 140px;
  text-decoration: none;
  display: inline-block !important;
  transition: transform 1s ease!important;  
}

.header-cta .contact-btn:hover {
 transform: translateY(4px)!important ;
}

body {
  background-color: #121415 !important;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img,
.logo .custom-logo {
  width: 180px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}


@media (max-width: 1170px) {
  .main-navigation,
  .header-cta {
    display: none;
  }

  .burger {
    display: flex !important;
    cursor: pointer;
  }

  .burger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
  }

  .header-inner {
    justify-content: space-between;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.burger {
  display: none;
}

@media (max-width: 1170px) {
  .burger {
    display: flex;
    align-items: center;
    cursor: pointer;
  }

  .burger img {
    width: 32px!important;
    height: auto;
  }
}
/* По умолчанию скрыто */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #121415;
  z-index: 999;
  overflow-y: auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Контейнер меню */
.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Кнопка закрытия */
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  align-self: flex-end;
  cursor: pointer;
}

/* Показываем меню при добавленном классе */
.mobile-menu-overlay.active {
  display: block;
}

/* Скрыть бургер на десктопе, показать на мобилке */
.burger {
  display: none;
}

@media (max-width: 1170px) {
  .burger {
    display: block;
    cursor: pointer;
  }

  .main-navigation,
  .header-cta {
    display: none;
  }
}


/* Модальное окно — фиксированное, на весь экран */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #121415;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
}

/* Внутренний блок — авто-центрирование */
.mobile-menu-inner {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Кнопка закрытия */
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none!important;
  border: none;
  padding: 20px;
}

.mobile-menu-close img {
  width: 24px;
  height: 24px;
}

/* Логотип */
.mobile-logo img {
  width: 180px !important;
  height: auto !important;
  object-fit: contain;
  display: block;
}

/* Меню */
.mobile-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-navigation a {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  text-decoration: none;
}

/* Кнопка CTA */
.mobile-menu-cta .contact-btn {
  background-color: #F95D32;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 140px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

/* Email */
.mobile-menu-footer p {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  color: #F95D32;
  margin: 20px;
}

/* Соцсети */
.social-icons {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.social-icons img {
  width: 32px;
  height: 32px;
}

/* Размер шрифта пунктов главного меню (десктоп) */
#site-header .main-navigation ul#menu-main-menu > li > a,
.main-navigation #menu-main-menu > li > a {
  font-size: 18px !important;
  line-height: 1.35 !important;
}


/* ==========================================================================
   Language Switcher — clean base (desktop + mobile)
   Проект: Renomowani.pl
   Правила: без рамок и теней, компактный триггер на десктопе (только флаг),
            выпадающий список, активный язык в списке скрыт,
            на мобильном — ряд круглых флагов в модальном окне
   ========================================================================== */

/* ===== Desktop (в хедере) ===== */
.site-header .lang-switch {
  position: relative;
  margin-left: 12px;
  line-height: 1;
  z-index: 1001; /* выше навигации */
}

/* Триггер: только круглый флаг, без рамок и тени */
.site-header .lang-switch .lang-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer;
}
.site-header .lang-switch .lang-current img {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.site-header .lang-switch .lang-current span,
.site-header .lang-switch .lang-current .chev {
  display: none !important;
}

/* Выпадающий список */
.site-header .lang-switch .lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: none !important;
  box-shadow: none !important;
  border-radius: 10px;
  display: none; /* управление через data-open */
}
.site-header .lang-switch[data-open="1"] .lang-dropdown {
  display: block;
}

/* Пункты списка (только другие языки) */
.site-header .lang-switch .lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
}
.site-header .lang-switch .lang-option:hover {
  background: #f6f6f6;
}
.site-header .lang-switch .lang-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.site-header .lang-switch .lang-option span {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

/* Скрыть десктопный переключатель на мобильных: свитчер есть в модальном окне */
@media (max-width: 1170px) {
  .site-header .lang-switch {
    display: none !important;
  }
}

/* ===== Mobile (в модальном окне) ===== */
.lang-switch-mobile {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  margin: 16px 0;
}
.lang-switch-mobile .lang-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  text-decoration: none;
}
.lang-switch-mobile .lang-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
/* Подсветка текущего — без рамок, только микро-обводка через псевдоэлемент */
.lang-switch-mobile .lang-pill.is-current {
  position: relative;
}
.lang-switch-mobile .lang-pill.is-current::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #F95D32;
}

/* ===== Усиление специфичности против Elementor при необходимости ===== */
.site-header .lang-switch .lang-current,
.site-header .lang-switch .lang-dropdown,
.site-header .lang-switch .lang-option { 
  /* если вдруг что-то перебивается — раскомментируй следующие строки: */
  /* border: none !important; */
  /* box-shadow: none !important; */
}

/* Принудительно скрыть меню-элемент Polylang в хедер-меню (если вдруг добавлен) */
.site-header .main-navigation .lang-item,
.site-header .main-navigation .menu-item-language,
.site-header .main-navigation .pll-parent-menu-item {
  display: none !important;
}

/* Скрываем десктопный переключатель на мобильных */
@media (max-width: 1024px) {
  .site-header .lang-switch {
    display: none !important;
  }
}
