/* ===============================
   Header Main Styles (как на главной)
   =============================== */

:root {
    --primary-color: #7A42F4;
    --primary-light: #a777ff;
    --primary-dark: #6c37d9;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: linear-gradient(135deg, #23232b 0%, #191921 100%);
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s ease;
}

.scrolled .site-header {
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

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

.main-navigation ul li {
    margin: 0;
}

.main-navigation ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
}

.main-navigation ul li a.login-link {
    font-weight: 600;
}

.header-actions .get-a-quote-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: background 0.3s ease;
    box-shadow: 0 4px 20px rgba(122, 66, 244, 0.15);
}

.header-actions .get-a-quote-btn:hover {
    background: var(--primary-dark);
}

.header-right-panel {
    display: flex;
    align-items: baseline;
    gap: 2rem;
}

.homepage-header {
    background: transparent;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    width: 100%;
}

.menu-toggle {
    display: none;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    cursor: pointer;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

@media (max-width: 992px) {
    .homepage-header .main-nav {
        margin-left: 40px;
    }
    .homepage-header .menu-toggle {
        display: block;
    }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .homepage-header .get-a-quote-btn {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .homepage-header .get-a-quote-btn {
        margin-top: 20px;
    }
}

/* Основные стили хедера */
.site-header.homepage-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Логотип */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

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

/* Навигация */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-navigation a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

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

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Ссылка "Войти" */
.login-link {
    color: #ffffff !important;
    opacity: 0.8;
}

.login-link:hover {
    opacity: 1;
}

/* Кнопка "Начать бесплатно" */
.get-a-quote-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.get-a-quote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-icon {
    display: block;
    width: 25px;
    height: 3px;
    background: #ffffff;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    top: -8px;
}

.hamburger-icon::after {
    bottom: -8px;
}

/* Мобильные стили */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .header-right-panel {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .header-right-panel.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-navigation a {
        font-size: 18px;
        padding: 10px 0;
        display: block;
    }

    .header-actions {
        width: 100%;
        text-align: center;
    }

    .get-a-quote-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Планшетные стили */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-navigation ul {
        gap: 20px;
    }

    .main-navigation a {
        font-size: 15px;
    }

    .get-a-quote-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Отступ для контента под фиксированным хедером */
.site-content {
    padding-top: 80px;
}

/* --- ЯЗЫКОВОЙ ПЕРЕКЛЮЧАТЕЛЬ --- */
.language-switcher {
  position: relative;
  overflow: visible;
}
.language-switcher__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  bottom: auto;
  padding: 8px 0;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.language-switcher__dropdown li a {
  padding: 4px 0;
}
.language-switcher.open .language-switcher__dropdown {
  display: flex;
}
.language-switcher__dropdown li a img {
  width: 24px;
  height: 18px;
  display: block;
  margin: 0;
}
.language-switcher__dropdown li a:hover,
.language-switcher__dropdown li a.active {
  background-color: #334155;
}
.header__language-switcher {
  margin: 0 0 0 8px;
  padding: 0;
  display: flex;
  align-items: center;
}
.language-switcher__current {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: #1e293b;
  border-radius: 8px;
  border: 1px solid #334155;
  padding: 4px 8px;
  cursor: pointer;
}
.language-switcher__current img {
  width: 24px;
  height: 18px;
  display: block;
  margin: 0;
}
.language-switcher__current svg {
  margin-left: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
} 