/* Переключатель языков */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.lang-switcher .lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 5px 9px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #28a745;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s;
    user-select: none;
}
.lang-switcher .lang-current:hover {
    background: rgba(255,255,255,0.2);
}
.lang-switcher .lang-current .flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}
.lang-switcher .lang-current .arrow {
    font-size: 8px;
    opacity: 0.7;
    transition: transform 0.2s;
}
.lang-switcher.open .lang-current .arrow {
    transform: rotate(180deg);
}

/* Выпадающее меню */
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
    min-width: 130px;
    overflow: hidden;
    z-index: 99999;
    border: 1px solid #eee;
}
.lang-switcher.open .lang-dropdown {
    display: block;
}
.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    text-decoration: none;
    color: #222;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s;
    border-bottom: 1px solid #f0f0f0;
}
.lang-dropdown a:last-child { border-bottom: none; }
.lang-dropdown a:hover { background: #fff5f0; color: #e8441a; }
.lang-dropdown a.active { background: #fff2ed; color: #e8441a; }
.lang-dropdown a .flag {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
    flex-shrink: 0;
}

/* Светлый хедер (about, contact и др.) */
.header-2 .header-right .lang-switcher .lang-current {
    color: #222;
    border-color: rgba(0,0,0,0.2);
    background: rgba(0,0,0,0.05);
}

/* Хедер — убираем лишний gap */
.header-3 .header-main .header-right { gap: 16px !important; }
@media (max-width: 1399px) {
    .header-3 .header-main .header-right { gap: 10px !important; }
}

/* Мобильный переключатель в боковом меню */
.mobile-lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-lang-switcher a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}
.mobile-lang-switcher a.active,
.mobile-lang-switcher a:hover {
    background: #e8441a;
    border-color: #e8441a;
}
.mobile-lang-switcher a .flag {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

/* Скрываем десктопный на мобильном и наоборот */
@media (max-width: 1199px) {
    .header-main .lang-switcher { display: none !important; }
}
@media (min-width: 1200px) {
    .mobile-lang-switcher { display: none !important; }
}

/* Мобильная адаптивность */
@media (max-width: 767px) {
    body { overflow-x: hidden !important; }
    .hero-section .hero-content h1 { font-size: 28px !important; }
    .section-padding { padding-top: 60px !important; padding-bottom: 60px !important; }
    .contact-info-area { flex-direction: column !important; gap: 20px !important; }
}
@media (max-width: 575px) {
    .hero-section .hero-content h1 { font-size: 24px !important; }
    .section-title h2 { font-size: 26px !important; }
}