/* АГРЕССИВНОЕ УДАЛЕНИЕ ВСЕХ ВЫДЕЛЕНИЙ */
.bifa-header-wrapper .bifa-logo,
.bifa-header-wrapper .bifa-logo:link,
.bifa-header-wrapper .bifa-logo:visited,
.bifa-header-wrapper .bifa-logo:hover,
.bifa-header-wrapper .bifa-logo:active,
.bifa-header-wrapper .bifa-logo:focus,
.bifa-header-wrapper .bifa-logo:focus-within,
.bifa-header-wrapper .bifa-logo:focus-visible,
.bifa-header-wrapper .bifa-logo[tabindex]:focus,
.bifa-header .bifa-logo,
a.bifa-logo,
a.bifa-logo:link,
a.bifa-logo:visited,
a.bifa-logo:hover,
a.bifa-logo:active,
a.bifa-logo:focus {
    outline: none !important;
    outline-width: 0 !important;
    outline-style: none !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline-style: none !important;
}

/* Специальное правило для ссылки логотипа */
a.bifa-logo {
    outline: none !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

a.bifa-logo:link,
a.bifa-logo:visited,
a.bifa-logo:hover,
a.bifa-logo:active,
a.bifa-logo:focus {
    outline: none !important;
    text-decoration: none !important;
    border: none !important;
}/* Флажки внутри выпадающего меню */
.bifa-lang-dropdown .bifa-lang-flag {
    border: 1px solid rgba(255, 255, 255, 0.3); /* Белая рамка для лучшей видимости на темном фоне */
}/* Форсируем белый цвет для текста в выпадающем меню */
.bifa-lang-dropdown,
.bifa-lang-dropdown *,
.bifa-lang-dropdown a,
.bifa-lang-dropdown a span {
    color: #FFFFFF !important;
}

/* Исключение для активного элемента */
.bifa-lang-dropdown a.active,
.bifa-lang-dropdown a.active * {
    color: var(--bifa-deep-navy) !important;
}/* Форсируем белый цвет для всех возможных элементов в переключателе */
.bifa-lang-current,
.bifa-lang-current span,
.bifa-lang-current div,
.bifa-lang-current p,
.bifa-lang-current a,
.bifa-lang-current * {
    color: #FFFFFF !important;
    opacity: 1 !important;
}.bifa-mobile-lang-current:hover::after {
    color: var(--bifa-deep-navy); /* Темный плюсик при наведении */
}/* Убираем outline по атрибутам */
[class*="bifa-logo"],
[class*="bifa-logo"]:focus,
[class*="bifa-logo"]:active {
    outline: 0 !important;
    outline: none !important;
}

/* Максимальная специфичность для удаления outline */
.bifa-header-wrapper .bifa-header .bifa-header-inner .bifa-logo:not(#\#):not(.\.) {
    outline: 0 none !important;
    outline-offset: 0 !important;
}

/* Глобальный сброс для iOS/Safari */
* {
    -webkit-tap-highlight-color: transparent;
}

/* BIFA+ Header - Official Brand Standards Compliant CSS */
/* Version: 2.0 - Updated according to Brand Usage Guide */
/* Author: As per Salem Humaid Saif Al Mazini standards */

/* ========================================
   IMPORT OFFICIAL FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

/* ========================================
   ROOT VARIABLES - OFFICIAL BRAND COLORS
   ======================================== */
:root {
    /* Official BIFA+ Color Palette */
    --bifa-deep-navy: #0A1F44;
    --bifa-heritage-gold: #D4AF37;
    --bifa-civic-green: #1D6143;
    --bifa-bright-white: #FFFFFF;
    --bifa-soft-black: #1A1A1A;
    
    /* Official Typography */
    --bifa-font-primary: 'Montserrat', 'Poppins', sans-serif;
    --bifa-font-secondary: 'Poppins', 'Montserrat', sans-serif;
    --bifa-font-arabic: 'Cairo', 'Tajawal', 'GE SS Text', sans-serif;
    
    /* Component Sizing */
    --mobile-menu-width: 320px;
    --header-height: 100px;
    --header-height-mobile: 70px;
    --top-bar-height: 52px;
}

/* ========================================
   GLOBAL TYPOGRAPHY RULES
   ======================================== */
/* Headings - Bold weight as per guide */
h1, h2, h3, h4, h5, h6,
.bifa-heading,
.bifa-logo-text.main {
    font-family: var(--bifa-font-primary);
    font-weight: 700; /* Bold for titles */
    line-height: 1.2;
    color: var(--bifa-deep-navy);
}

/* Body text - Regular weight */
body, p, li, span, small,
.bifa-body-text,
input, textarea, select {
    font-family: var(--bifa-font-secondary);
    font-weight: 400; /* Regular for body text */
    line-height: 1.6;
    color: var(--bifa-soft-black);
}

/* Buttons and navigation - Medium weight */
button, a, .bifa-nav-link,
.bifa-main-nav a {
    font-family: var(--bifa-font-primary);
    font-weight: 500; /* Medium for navigation */
}

/* Arabic content support */
[lang="ar"],
.rtl {
    font-family: var(--bifa-font-arabic);
    direction: rtl;
}

/* ========================================
   BASE STYLES
   ======================================== */
.bifa-header-wrapper {
    position: relative;
    z-index: 9999;
    font-family: var(--bifa-font-primary);
    animation: headerFadeIn 0.8s ease;
    background: var(--bifa-bright-white);
}

.bifa-header-wrapper * {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TOP BAR SECTION
   ======================================== */
.bifa-top-bar {
    background: var(--bifa-soft-black); /* Изменен цвет для контраста */
    color: var(--bifa-bright-white);
    font-size: 13px;
    height: var(--top-bar-height);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    display: block;
    z-index: 1000;
    font-family: var(--bifa-font-secondary);
    border-bottom: 1px solid var(--bifa-heritage-gold); /* Золотая линия разделения */
}

.bifa-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Switcher - Official styling */
.bifa-top-lang-switcher {
    position: relative;
    z-index: 1100;
}

/* Языковое меню в топ баре - усиленные стили для текста */
.bifa-top-lang-switcher * {
    color: #FFFFFF !important;
}

.bifa-lang-current,
.bifa-lang-current * {
    color: #FFFFFF !important;
}

.bifa-lang-current {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF !important; /* Чистый белый цвет с !important */
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--bifa-heritage-gold);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Добавлена тень для лучшей читаемости */
}

/* Дополнительно для текста внутри */
.bifa-lang-current span {
    color: #FFFFFF !important;
}

.bifa-lang-current:hover,
.bifa-lang-current:focus {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy); /* Темный цвет при наведении для контраста */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    outline: none;
    text-shadow: none; /* Убираем тень при наведении */
}

.bifa-lang-current::after {
    content: '▼';
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
    color: #FFFFFF !important; /* Белая стрелка с !important */
    opacity: 1;
}

.bifa-lang-current:hover::after,
.bifa-lang-current:focus::after {
    color: var(--bifa-deep-navy) !important; /* Темная стрелка при наведении */
}

.bifa-top-lang-switcher:hover .bifa-lang-current::after,
.bifa-lang-dropdown.active ~ .bifa-lang-current::after {
    transform: rotate(180deg);
}

/* Language Dropdown */
.bifa-lang-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(-10px) !important;
    background: var(--bifa-deep-navy) !important; /* Темно-синий фон вместо белого */
    min-width: 220px !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
    padding: 12px !important;
    border-radius: 16px !important;
    z-index: 10100 !important;
    box-shadow: 0 15px 40px rgba(10, 31, 68, 0.3), 0 5px 15px rgba(10, 31, 68, 0.15) !important;
    pointer-events: none;
    border: 1px solid var(--bifa-heritage-gold) !important;
}

.bifa-lang-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}

.bifa-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: var(--bifa-deep-navy); /* Темный фон для стрелки */
    border: 1px solid var(--bifa-heritage-gold);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

.bifa-lang-dropdown ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bifa-lang-dropdown li {
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
}

.bifa-lang-dropdown li:last-child {
    margin-bottom: 0 !important;
}

.bifa-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #FFFFFF !important; /* Белый текст на темном фоне */
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    font-family: var(--bifa-font-secondary);
    letter-spacing: 0.2px;
    background: transparent;
}

.bifa-lang-dropdown a:hover {
    background: rgba(255, 255, 255, 0.1) !important; /* Полупрозрачный белый фон при наведении */
    color: #FFFFFF !important;
    transform: translateX(2px);
}

.bifa-lang-dropdown a.active {
    background: var(--bifa-heritage-gold) !important; /* Золотой фон для активного языка */
    color: var(--bifa-deep-navy) !important; /* Темный текст на золотом фоне */
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.bifa-lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Золотая рамка для флагов */
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Top bar right section */
.bifa-top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Social icons - Official styling */
.bifa-social-icons {
    display: flex;
    gap: 8px;
}

.bifa-social-icons a {
    color: var(--bifa-bright-white);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.bifa-social-icons a:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    border-color: var(--bifa-heritage-gold);
}

.bifa-social-icons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Top action buttons */
.bifa-top-actions {
    display: flex;
    gap: 10px;
}

.bifa-subscribe-btn {
    background: var(--bifa-civic-green);
    color: var(--bifa-bright-white);
    border: 1px solid var(--bifa-civic-green);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    font-family: var(--bifa-font-primary);
}

.bifa-subscribe-btn:hover {
    background: var(--bifa-bright-white);
    color: var(--bifa-civic-green);
    border-color: var(--bifa-bright-white);
}

.bifa-donate-btn {
    background: var(--bifa-heritage-gold);
    border-color: var(--bifa-heritage-gold);
    color: var(--bifa-soft-black);
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    font-family: var(--bifa-font-primary);
}

.bifa-donate-btn:hover {
    background: var(--bifa-bright-white);
    color: var(--bifa-heritage-gold);
    border-color: var(--bifa-bright-white);
}

/* ========================================
   MAIN HEADER SECTION
   ======================================== */
.bifa-header {
    background: var(--bifa-deep-navy);
    color: var(--bifa-bright-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 999;
}

/* Heritage Gold accent line */
.bifa-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--bifa-heritage-gold);
    box-shadow: 
        0 0 10px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2);
    z-index: 1;
}

.bifa-header-full-width {
    display: flex;
    align-items: center;
    height: var(--header-height);
    position: relative;
}

.bifa-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.bifa-header-container {
    flex: 1;
    padding-left: 20px;
    padding-right: 20px;
}

.bifa-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo Section - Official standards */
.bifa-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    color: var(--bifa-bright-white);
    padding: 0 20px;
    height: 100%;
    position: relative;
    z-index: 10;
    outline: none !important; /* Убираем синее выделение */
}

/* Убираем выделение при фокусе и клике */
.bifa-logo:focus,
.bifa-logo:active,
.bifa-logo:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Состояние при клике */
.bifa-logo:active {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Убираем выделение для всех элементов внутри логотипа */
.bifa-logo *,
.bifa-logo img,
.bifa-logo span,
.bifa-logo div {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    -moz-outline-style: none !important;
}

/* Убираем выделение текста при клике */
.bifa-logo {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Logo glow effect */
.bifa-logo::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, 
        rgba(212, 175, 55, 0.15) 0%, 
        rgba(212, 175, 55, 0.05) 60%, 
        transparent 100%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoGlow 4s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.bifa-logo img {
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    position: relative;
    z-index: 2;
    outline: none !important; /* Убираем выделение */
    -webkit-user-select: none; /* Запрещаем выделение */
    user-select: none;
    pointer-events: auto; /* Сохраняем возможность клика */
    -webkit-user-drag: none; /* Запрещаем перетаскивание */
    user-drag: none;
}

.bifa-logo:hover img {
    transform: scale(1.05);
}

/* Специальное правило для ссылки логотипа */
a.bifa-logo {
    outline: none !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

a.bifa-logo:link,
a.bifa-logo:visited,
a.bifa-logo:hover,
a.bifa-logo:active,
a.bifa-logo:focus {
    outline: none !important;
    text-decoration: none !important;
    border: none !important;
}

/* Убираем выделение для ВСЕХ дочерних элементов */
.bifa-header-wrapper .bifa-logo *,
.bifa-header-wrapper .bifa-logo img,
.bifa-header-wrapper .bifa-logo span,
.bifa-header-wrapper .bifa-logo div,
.bifa-header-wrapper .bifa-logo::before,
.bifa-header-wrapper .bifa-logo::after,
a.bifa-logo *,
a.bifa-logo img,
a.bifa-logo span,
a.bifa-logo div {
    outline: none !important;
    outline-width: 0 !important;
    box-shadow: none !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Убираем выделение текста при выборе */
.bifa-logo::selection,
.bifa-logo *::selection {
    background: transparent;
}

.bifa-logo::-moz-selection,
.bifa-logo *::-moz-selection {
    background: transparent;
}

.bifa-logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 300px;
    flex-shrink: 0;
}

.bifa-logo-text.main {
    font-family: var(--bifa-font-primary);
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 3px;
    color: var(--bifa-bright-white);
}

.bifa-logo-subtitle-wrapper {
    position: relative;
    height: 16px;
    overflow: hidden;
    width: 100%;
}

.bifa-logo-subtitle,
.bifa-logo-text.slogan {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1.2;
    color: var(--bifa-heritage-gold);
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    font-family: var(--bifa-font-secondary);
}

.bifa-logo-subtitle {
    opacity: 1;
    transform: translateY(0);
}

.bifa-logo-subtitle.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.bifa-logo-text.slogan {
    opacity: 0;
    transform: translateY(-20px);
}

.bifa-logo-text.slogan.active {
    opacity: 1;
    transform: translateY(0);
}

/* Logo hover effect */
.bifa-logo:hover .bifa-logo-text.main {
    color: var(--bifa-heritage-gold) !important;
}

/* Main Navigation - Official styling */
.bifa-main-nav {
    white-space: nowrap;
}

.bifa-main-nav > ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
    flex-wrap: nowrap;
}

.bifa-main-nav li {
    position: relative;
}

/* Invisible bridge for hover */
.bifa-main-nav li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 20px;
    background: transparent;
    display: none;
}

.bifa-main-nav li:hover::after {
    display: block;
}

.bifa-main-nav a {
    color: var(--bifa-bright-white);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.5px;
    padding: 8px 0;
    display: block;
    font-family: var(--bifa-font-primary);
}

.bifa-main-nav a:hover {
    color: var(--bifa-heritage-gold);
}

.bifa-main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--bifa-heritage-gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

/* Dropdown menus */
.bifa-main-nav .bifa-dropdown,
.bifa-main-nav .sub-menu,
.bifa-main-nav ul ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: var(--bifa-bright-white) !important;
    min-width: 250px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) !important;
    transition: all 0.3s ease !important;
    padding: 8px 0 !important;
    margin-top: 0 !important;
    z-index: 1000 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(10, 31, 68, 0.2) !important;
    display: none !important;
    flex-direction: column !important;
    border: 1px solid var(--bifa-heritage-gold) !important;
}

.bifa-main-nav li:hover > .bifa-dropdown,
.bifa-main-nav li:hover > .sub-menu,
.bifa-main-nav li:hover > ul,
.bifa-main-nav .bifa-dropdown.show,
.bifa-main-nav .sub-menu.show,
.bifa-main-nav ul ul.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

.bifa-main-nav .bifa-dropdown li,
.bifa-main-nav .sub-menu li,
.bifa-main-nav ul ul li {
    margin: 0 !important;
    list-style: none !important;
    display: block !important;
}

.bifa-main-nav .bifa-dropdown a,
.bifa-main-nav .sub-menu a,
.bifa-main-nav ul ul a {
    display: block !important;
    padding: 12px 20px !important;
    color: var(--bifa-deep-navy) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    text-transform: none !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
}

.bifa-main-nav .bifa-dropdown a:hover,
.bifa-main-nav .sub-menu a:hover,
.bifa-main-nav ul ul a:hover {
    background: var(--bifa-heritage-gold) !important;
    color: var(--bifa-bright-white) !important;
    padding-left: 25px !important;
}

/* Dropdown icon */
.bifa-dropdown-icon {
    margin-left: 6px;
    transition: transform 0.3s ease;
    vertical-align: middle;
    width: 12px;
    height: 8px;
    fill: currentColor;
}

.bifa-main-nav li:hover > a > .bifa-dropdown-icon {
    transform: rotate(180deg);
}

/* Third level menu */
.bifa-main-nav .bifa-dropdown .bifa-dropdown,
.bifa-main-nav .bifa-dropdown ul,
.bifa-main-nav .sub-menu ul {
    position: absolute !important;
    top: 0 !important;
    left: 100% !important;
    margin-left: 10px !important;
    margin-top: 0 !important;
}

/* Header Actions */
.bifa-header-actions {
    display: flex;
    gap: 12px;
    margin-left: 40px;
}

.bifa-action-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--bifa-heritage-gold);
    color: var(--bifa-bright-white);
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bifa-action-btn:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Mobile menu toggle */
.bifa-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10001;
}

.bifa-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
}

.bifa-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
}

.bifa-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.bifa-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.bifa-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.bifa-mobile-nav {
    position: fixed;
    top: 0;
    left: -320px;
    width: var(--mobile-menu-width);
    height: 100vh;
    height: 100dvh;
    background: var(--bifa-deep-navy);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 5px 0 30px rgba(0,0,0,0.3);
}

.bifa-mobile-nav.active {
    left: 0 !important;
}

/* RTL support for Arabic */
.rtl .bifa-mobile-nav,
html[lang="ar"] .bifa-mobile-nav,
html[dir="rtl"] .bifa-mobile-nav {
    left: auto !important;
    right: -320px !important;
    direction: rtl !important;
}

.rtl .bifa-mobile-nav.active,
html[lang="ar"] .bifa-mobile-nav.active,
html[dir="rtl"] .bifa-mobile-nav.active {
    right: 0 !important;
}

.bifa-mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--bifa-heritage-gold);
    color: var(--bifa-bright-white);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.bifa-mobile-close:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    transform: rotate(90deg);
}

.bifa-mobile-nav-inner {
    padding: 60px 20px 80px;
    min-height: 100vh;
}

/* Mobile language selector */
.bifa-mobile-lang-selector {
    margin: 20px 0;
}

.bifa-mobile-lang-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    border: 1px solid var(--bifa-heritage-gold);
    color: #FFFFFF; /* Чистый белый цвет */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Добавлена тень для лучшей читаемости */
}

.bifa-mobile-lang-current .bifa-lang-flag {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.bifa-mobile-lang-current::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 20px;
    transition: transform 0.3s ease;
    color: #FFFFFF; /* Белый плюсик */
    opacity: 0.9;
}

.bifa-mobile-lang-current.active::after {
    transform: rotate(45deg);
    color: var(--bifa-deep-navy); /* Темный цвет при активном состоянии */
}

.bifa-mobile-lang-current:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    text-shadow: none; /* Убираем тень при наведении */
}

.bifa-mobile-lang-current:hover::after {
    color: var(--bifa-deep-navy); /* Темный плюсик при наведении */
}

.bifa-mobile-lang-title {
    display: none;
}

.bifa-mobile-lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}

.bifa-mobile-lang-list li {
    margin-bottom: 0;
}

.bifa-mobile-lang-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: #FFFFFF; /* Чистый белый цвет */
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3); /* Добавлена тень для лучшей читаемости */
}

.bifa-mobile-lang-list li:last-child a {
    border-bottom: none;
}

.bifa-mobile-lang-list a:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    padding-left: 24px;
    text-shadow: none; /* Убираем тень при наведении */
}

.bifa-mobile-lang-list .bifa-lang-flag {
    width: 24px;
    height: 17px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Mobile search */
.bifa-mobile-search {
    margin-bottom: 30px;
}

.bifa-mobile-search form {
    display: flex;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
    border-radius: 50px;
    border: 1px solid var(--bifa-heritage-gold);
    backdrop-filter: blur(10px);
}

.bifa-mobile-search input {
    flex: 1;
    background: none;
    border: none;
    color: var(--bifa-bright-white);
    padding: 14px 20px;
    font-size: 14px;
    font-family: var(--bifa-font-secondary);
}

.bifa-mobile-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.bifa-mobile-search button {
    background: none;
    border: none;
    color: var(--bifa-bright-white);
    padding: 0 20px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.bifa-mobile-search button:hover {
    color: var(--bifa-heritage-gold);
}

/* Mobile menu items */
.bifa-mobile-main-menu,
.bifa-mobile-top-menu {
    margin-bottom: 30px;
}

.bifa-mobile-main-menu ul,
.bifa-mobile-top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bifa-mobile-main-menu a,
.bifa-mobile-top-menu a {
    display: block;
    color: var(--bifa-bright-white);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-transform: uppercase;
    font-size: 14px;
    font-family: var(--bifa-font-primary);
    font-weight: 500;
}

.bifa-mobile-main-menu a:hover,
.bifa-mobile-top-menu a:hover {
    color: var(--bifa-heritage-gold);
}

/* Mobile submenu */
.bifa-mobile-nav ul ul,
.bifa-mobile-nav .sub-menu,
.bifa-mobile-nav .children,
.bifa-mobile-nav .bifa-dropdown {
    display: none;
    background: rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    position: static !important;
    width: 100% !important;
    transform: none !important;
}

.bifa-mobile-nav .has-dropdown > a,
.bifa-mobile-nav .menu-item-has-children > a {
    position: relative;
    padding-right: 40px;
}

.bifa-mobile-nav .has-dropdown > a::after,
.bifa-mobile-nav .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: var(--bifa-heritage-gold);
}

.bifa-mobile-nav .active > a::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--bifa-heritage-gold);
}

.bifa-mobile-nav ul ul a,
.bifa-mobile-nav .sub-menu a,
.bifa-mobile-nav .children a {
    font-size: 13px;
    padding: 10px 0 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-transform: none;
}

/* Mobile actions */
.bifa-mobile-actions {
    margin-bottom: 20px;
}

.bifa-mobile-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bifa-bright-white);
    text-decoration: none;
    background: var(--bifa-heritage-gold);
    padding: 14px 28px;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 50px;
    border: 1px solid var(--bifa-heritage-gold);
    backdrop-filter: blur(10px);
    letter-spacing: 0.5px;
    font-family: var(--bifa-font-primary);
}

.bifa-mobile-login-btn:hover {
    background: var(--bifa-bright-white);
    color: var(--bifa-heritage-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Mobile social */
.bifa-mobile-social {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.bifa-mobile-social .bifa-social-icons {
    justify-content: center;
    gap: 12px;
}

/* Mobile overlay */
.bifa-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.9);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.bifa-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Scroll indicator */
.bifa-mobile-scroll-indicator {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--bifa-heritage-gold);
    border: 1px solid var(--bifa-heritage-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 10001;
}

.bifa-mobile-scroll-indicator.show {
    opacity: 1;
    visibility: visible;
}

.bifa-mobile-scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--bifa-deep-navy);
    animation: bounce 2s infinite;
}

/* ========================================
   MODALS
   ======================================== */
.bifa-subscribe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.bifa-subscribe-modal.active {
    display: flex;
}

.bifa-subscribe-content {
    background: var(--bifa-bright-white);
    padding: 60px 50px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    border: 2px solid var(--bifa-heritage-gold);
}

.bifa-subscribe-content::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--bifa-heritage-gold) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotateGradient 30s linear infinite;
}

.bifa-subscribe-content h3 {
    font-family: var(--bifa-font-primary);
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--bifa-deep-navy);
    text-align: center;
    font-weight: 700;
    letter-spacing: -1px;
}

.bifa-subscribe-content p {
    text-align: center;
    color: var(--bifa-soft-black);
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 1.6;
    font-family: var(--bifa-font-secondary);
}

.bifa-subscribe-form {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.bifa-subscribe-form input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--bifa-heritage-gold);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bifa-bright-white);
    font-family: var(--bifa-font-secondary);
}

.bifa-subscribe-form input:focus {
    outline: none;
    border-color: var(--bifa-deep-navy);
    box-shadow: 0 0 0 4px rgba(10, 31, 68, 0.1);
}

.bifa-subscribe-form button {
    background: var(--bifa-deep-navy);
    color: var(--bifa-bright-white);
    border: none;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(10, 31, 68, 0.3);
    white-space: nowrap;
    font-family: var(--bifa-font-primary);
}

.bifa-subscribe-form button:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-deep-navy);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.bifa-subscribe-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--bifa-soft-black);
    font-size: 28px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.bifa-subscribe-close:hover {
    background: var(--bifa-heritage-gold);
    color: var(--bifa-bright-white);
    transform: rotate(90deg);
}

.success-message {
    text-align: center;
    color: var(--bifa-civic-green);
    font-size: 20px;
    font-weight: 600;
    padding: 40px;
    animation: fadeIn 0.5s ease;
    font-family: var(--bifa-font-primary);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(5px);
    }
    60% {
        transform: translateY(3px);
    }
}

@keyframes logoGlow {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* ========================================
   STICKY HEADER
   ======================================== */
.bifa-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.bifa-header.hidden {
    transform: translateY(-100%);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ========================================
   MEDIA QUERIES
   ======================================== */
/* Специальные стили для ноутбуков */
@media (min-width: 1025px) and (max-width: 1440px) {
    /* Уменьшаем размер текста в навигации */
    .bifa-main-nav a {
        font-size: 13px;
        letter-spacing: 0.3px;
    }
    
    /* Уменьшаем отступы между пунктами меню */
    .bifa-main-nav > ul {
        gap: 18px;
    }
    
    /* Уменьшаем размер логотипа и текста */
    .bifa-logo img {
        width: 70px;
        height: 70px;
    }
    
    .bifa-logo-text.main {
        font-size: 36px;
    }
    
    /* Уменьшаем минимальную ширину текстового блока */
    .bifa-logo-text-wrapper {
        min-width: 250px;
    }
    
    /* Уменьшаем контейнер для экономии места */
    .bifa-container {
        max-width: 1400px;
    }
    
    /* Уменьшаем отступы */
    .bifa-header-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Уменьшаем расстояние между навигацией и кнопками */
    .bifa-header-actions {
        margin-left: 20px;
    }
}

/* Для маленьких ноутбуков (1025-1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    /* Еще больше уменьшаем элементы */
    .bifa-main-nav a {
        font-size: 12px;
    }
    
    .bifa-main-nav > ul {
        gap: 15px;
    }
    
    .bifa-logo img {
        width: 65px;
        height: 65px;
    }
    
    .bifa-logo-text.main {
        font-size: 32px;
    }
    
    .bifa-logo-text-wrapper {
        min-width: 220px;
    }
    
    .bifa-header-full-width {
        height: 90px;
    }
}

@media (max-width: 1024px) {
    .bifa-top-bar {
        display: none;
    }
    
    .bifa-header-full-width {
        height: 80px;
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: visible;
    }
    
    .bifa-header-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .bifa-header-inner {
        padding: 0 15px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        width: 100%;
        min-height: 80px;
    }
    
    /* Бургер меню - правильное отображение */
    .bifa-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Logo - centered */
    .bifa-logo {
        position: relative;
        margin: 0 auto;
        padding: 0 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;
        z-index: 10;
        gap: 8px;
    }
    
    /* На планшетах SVG все еще 80px, но может сдвигаться из-за padding */
    .bifa-logo::after {
        left: 40px; /* Остается центрированным под SVG */
    }
    
    .bifa-logo-subtitle-wrapper {
        display: none !important;
    }
    
    /* Header actions - справа */
    .bifa-header-actions {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 10px;
        z-index: 10002;
    }
    
    /* Убираем кнопки на планшетах - они есть в бургер меню */
    .bifa-search-btn,
    .bifa-user-btn {
        display: none !important;
    }
    
    .bifa-main-nav {
        display: none;
    }
}

@media (max-width: 767px) {
    .bifa-search-btn,
    .bifa-user-btn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    :root {
        --mobile-menu-width: 280px;
    }
    
    .bifa-header-full-width {
        height: 70px;
    }
    
    .bifa-header-inner {
        min-height: 70px;
        padding: 0 10px;
    }
    
    .bifa-logo {
        padding: 0;
        gap: 8px;
    }
    
    .bifa-logo img {
        width: 48px;
        height: 48px;
    }
    
    /* Обновляем позицию свечения для меньшего SVG */
    .bifa-logo::after {
        left: 24px; /* Центрировано под SVG 48px / 2 */
        width: 70px;
        height: 70px;
    }
    
    .bifa-logo-text.main {
        font-size: 32px !important;
    }
    
    .bifa-mobile-nav {
        width: 280px;
        left: -280px;
    }
    
    .bifa-mobile-nav.active {
        left: 0 !important;
    }
    
    .bifa-menu-toggle {
        left: 10px;
        width: 40px;
        height: 40px;
        padding: 8px;
    }
    
    .bifa-subscribe-content {
        padding: 40px 30px;
    }
    
    .bifa-subscribe-content h3 {
        font-size: 32px;
    }
    
    .bifa-subscribe-form {
        flex-direction: column;
    }
    
    .bifa-subscribe-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .bifa-header-inner {
        padding: 0 8px;
    }
    
    .bifa-logo {
        padding: 0;
        gap: 6px;
    }
    
    .bifa-logo img {
        width: 40px;
        height: 40px;
    }
    
    /* Обновляем позицию свечения для самого маленького SVG */
    .bifa-logo::after {
        left: 20px; /* Центрировано под SVG 40px / 2 */
        width: 60px;
        height: 60px;
    }
    
    .bifa-logo-text-wrapper {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: auto;
    }
    
    /* Make BIFA+ text even smaller on very small screens */
    .bifa-logo-text.main {
        font-size: 26px !important;
    }
    
    /* Keep hiding subtitle and slogan */
    .bifa-logo-subtitle,
    .bifa-logo-text.slogan,
    .bifa-logo-subtitle-wrapper {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Header actions */
    .bifa-header-actions {
        right: 8px;
    }
    
    /* Бургер меню */
    .bifa-menu-toggle {
        width: 36px;
        height: 36px;
    }
    
    .bifa-mobile-nav {
        width: 260px !important;
        left: -260px !important;
    }
    
    .bifa-mobile-nav.active {
        left: 0 !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
/* Убираем синее выделение при фокусе для всех элементов */
.bifa-header-wrapper a:focus,
.bifa-header-wrapper button:focus,
.bifa-header-wrapper a:active,
.bifa-header-wrapper button:active,
.bifa-header-wrapper a:focus-visible,
.bifa-header-wrapper button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Проверка поддержки и принудительный сброс */
@supports (outline: none) {
    .bifa-logo,
    .bifa-logo:focus,
    .bifa-logo:active,
    .bifa-logo:focus-visible,
    a.bifa-logo,
    a.bifa-logo:focus {
        outline: none !important;
    }
}

/* Сброс всех возможных outline свойств */
.bifa-logo,
.bifa-logo:focus {
    outline: initial !important;
    outline: 0 !important;
    outline: none !important;
    outline: transparent !important;
    outline-width: 0px !important;
    outline-style: none !important;
    outline-color: transparent !important;
    outline-offset: 0px !important;
}

/* Используем :where() для переопределения любых других правил */
:where(.bifa-logo),
:where(a).bifa-logo {
    outline: revert !important;
    outline: unset !important;
    outline: none !important;
}

/* Сброс браузерных стилей фокуса */
.bifa-logo {
    --webkit-focus-ring-color: transparent !important;
    --focus-ring-color: transparent !important;
    outline-color: transparent !important;
    outline-style: none !important;
    outline-width: 0px !important;
    outline-offset: 0px !important;
}

/* WebKit focus ring */
.bifa-logo::-webkit-focus-ring,
.bifa-logo *::-webkit-focus-ring {
    outline: none !important;
    outline-width: 0 !important;
}

/* Если логотип - это button или input */
button.bifa-logo,
input.bifa-logo,
.bifa-logo button,
.bifa-logo input {
    background: none !important;
    border: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Safari/WebKit специфичные правила */
.bifa-logo {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-highlight: none !important;
    touch-action: manipulation !important;
}

/* Все возможные состояния логотипа */
.bifa-logo,
.bifa-logo:link,
.bifa-logo:visited,
.bifa-logo:hover,
.bifa-logo:active,
.bifa-logo:focus,
.bifa-logo:focus-within,
.bifa-logo:focus-visible,
.bifa-logo:target,
.bifa-logo:enabled,
.bifa-logo:checked,
.bifa-logo:default {
    outline: 0 none transparent !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* 
   ВАЖНО: Если синее выделение все еще появляется, добавьте этот JavaScript:
   document.querySelector('.bifa-logo').addEventListener('mousedown', function(e) {
       e.preventDefault();
   });
*/

/* Глобально убираем синее выделение для всех интерактивных элементов */
.bifa-header-wrapper *:focus,
.bifa-header-wrapper *:active,
.bifa-header-wrapper *:focus-visible {
    outline: none !important;
}

/* Дополнительно для конкретных элементов */
.bifa-logo,
.bifa-logo *,
.bifa-lang-current,
.bifa-action-btn,
.bifa-menu-toggle,
.bifa-main-nav a {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
}

/* Print styles */
@media print {
    .bifa-header-wrapper {
        display: none;
    }
}

/* Ensure visibility */
.bifa-mobile-nav {
    visibility: visible !important;
    opacity: 1 !important;
}

/* Firefox специфичный сброс */
.bifa-logo::-moz-focus-inner,
.bifa-logo *::-moz-focus-inner {
    border: 0 !important;
    outline: 0 !important;
}

/* Убираем outline для всех ссылок в хедере */
.bifa-header-wrapper a {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bifa-header-wrapper a::-moz-focus-inner {
    border: 0 !important;
}

/* Scrollbar styling - Official colors */
.bifa-mobile-nav::-webkit-scrollbar {
    width: 4px;
}

.bifa-mobile-nav::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.bifa-mobile-nav::-webkit-scrollbar-thumb {
    background: var(--bifa-heritage-gold);
    border-radius: 2px;
}

.bifa-mobile-nav::-webkit-scrollbar-thumb:hover {
    background: var(--bifa-bright-white);
}

.bifa-mobile-nav {
    scrollbar-width: thin;
    scrollbar-color: var(--bifa-heritage-gold) rgba(255,255,255,0.1);
}

/* Убираем outline для всех интерактивных элементов */
.bifa-header-wrapper input:focus,
.bifa-header-wrapper button:focus,
.bifa-header-wrapper select:focus,
.bifa-header-wrapper textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем outline только для мыши, сохраняем для клавиатуры (доступность) */
.bifa-header-wrapper a:focus:not(:focus-visible),
.bifa-header-wrapper button:focus:not(:focus-visible) {
    outline: none !important;
}

/* Полностью убираем для логотипа */
.bifa-logo,
.bifa-logo:focus-visible {
    outline: none !important;
}

/* ========================================
   END OF BIFA+ OFFICIAL CSS
   ======================================== */
   /* 1. Убираем псевдо-элемент */
.bifa-header::after{display:none!important;}

/* 2. Ставим полосу как border */
.bifa-header{
    border-bottom:3px solid var(--bifa-heritage-gold);
    box-shadow:0 0 10px rgba(212,175,55,.4),0 0 20px rgba(212,175,55,.2);
}
/* ========================================
   КЛИКАБЕЛЬНЫЙ КРЕСТИК В МОБИЛЬНОМ МЕНЮ (ИСПРАВЛЕННАЯ ВЕРСИЯ)
   ======================================== */

/* Позиционирование родительских элементов */
.bifa-mobile-nav .has-dropdown,
.bifa-mobile-nav .menu-item-has-children {
    position: relative;
}

/* Невидимая кнопка поверх крестика */
.bifa-dropdown-toggle {
    position: absolute;
    right: 0;
    top: 0;
    width: 50px;
    height: 44px;
    background: transparent !important; /* Форсируем прозрачность */
    border: none;
    cursor: pointer;
    z-index: 2;
    padding: 0;
    outline: none;
}

/* УБИРАЕМ желтый квадрат при наведении */
.bifa-dropdown-toggle:hover {
    background: transparent !important; /* Убрали желтый фон */
}

/* УБИРАЕМ подсветку при клике */
.bifa-dropdown-toggle:active,
.bifa-dropdown-toggle:focus {
    background: transparent !important;
    outline: none !important;
}

/* Делаем сам крестик некликабельным (клики обрабатывает кнопка) */
.bifa-mobile-nav .has-dropdown > a::after,
.bifa-mobile-nav .menu-item-has-children > a::after {
    pointer-events: none;
    z-index: 1;
}

/* Увеличиваем размер и улучшаем видимость крестика */
.bifa-mobile-nav .has-dropdown > a::after,
.bifa-mobile-nav .menu-item-has-children > a::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: normal;
    transition: all 0.3s ease;
    color: var(--bifa-heritage-gold);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимация крестика при активном состоянии */
.bifa-mobile-nav .active > a::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--bifa-heritage-gold);
}

/* УБИРАЕМ визуальное разделение */
.bifa-dropdown-toggle::before {
    display: none !important; /* Убираем вертикальную линию */
}

/* УБИРАЕМ подсветку на мобильных */
@media (hover: none) {
    .bifa-dropdown-toggle:active {
        background: transparent !important;
    }
}

/* Дополнительный отступ для текста */
.bifa-mobile-nav .has-dropdown > a,
.bifa-mobile-nav .menu-item-has-children > a {
    padding-right: 55px !important;
}

/* Анимация крестика при клике */
.bifa-dropdown-toggle:active ~ a::after {
    transform: translateY(-50%) scale(0.9);
}

.bifa-mobile-nav .active .bifa-dropdown-toggle:active ~ a::after {
    transform: translateY(-50%) rotate(45deg) scale(0.9);
}

/* Hover эффект только для текста ссылки */
.bifa-mobile-nav a:hover {
    padding-left: 5px;
}

/* Курсор для ссылок */
.bifa-mobile-nav .has-dropdown > a,
.bifa-mobile-nav .menu-item-has-children > a {
    cursor: pointer;
}

/* Стрелка при наведении на текст */
.bifa-mobile-nav .has-dropdown > a:hover::before,
.bifa-mobile-nav .menu-item-has-children > a:hover::before {
    content: '→';
    position: absolute;
    left: -15px;
    color: var(--bifa-heritage-gold);
    opacity: 0;
    animation: slideInLeft 0.3s forwards;
}

@keyframes slideInLeft {
    to {
        left: -10px;
        opacity: 1;
    }
}

/* Для маленьких экранов */
@media (max-width: 480px) {
    .bifa-dropdown-toggle {
        width: 44px;
        background: transparent !important;
    }
    
    .bifa-mobile-nav .has-dropdown > a,
    .bifa-mobile-nav .menu-item-has-children > a {
        padding-right: 50px !important;
    }
}

/* Убедимся что ссылка остается кликабельной */
.bifa-mobile-nav .has-dropdown.active > a,
.bifa-mobile-nav .menu-item-has-children.active > a {
    pointer-events: auto;
}

/* Hover эффект для текста */
.bifa-mobile-nav .has-dropdown > a:hover,
.bifa-mobile-nav .menu-item-has-children > a:hover {
    color: var(--bifa-heritage-gold);
    transition: all 0.2s ease;
}

/* Визуальный эффект ТОЛЬКО для крестика при наведении */
.bifa-dropdown-toggle:hover ~ a::after {
    transform: translateY(-50%) scale(1.1); /* Увеличиваем крестик */
    color: var(--bifa-bright-white); /* Меняем цвет крестика */
}

/* Альтернативный вариант - пульсация крестика при наведении */
@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.15); }
    100% { transform: translateY(-50%) scale(1); }
}

.bifa-dropdown-toggle:hover ~ a::after {
    animation: pulse 0.6s ease-in-out;
}

/* ========================================
   КОНЕЦ СТИЛЕЙ КЛИКАБЕЛЬНОГО КРЕСТИКА
   ======================================== */
   /* ========================================
   ОПТИМИЗАЦИЯ СКОРОСТИ НА МОБИЛЬНЫХ
   ======================================== */

/* Убираем задержку 300ms на всех кликабельных элементах */
.bifa-mobile-nav a,
.bifa-mobile-nav button,
.bifa-dropdown-toggle,
.bifa-mobile-nav * {
    touch-action: manipulation; /* Убирает задержку double-tap zoom */
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Убираем задержку для всех ссылок в мобильном меню */
.touch-device .bifa-mobile-nav a {
    touch-action: manipulation !important;
}

/* Ускоряем анимации для мобильных */
.bifa-mobile-nav ul,
.bifa-mobile-nav .sub-menu,
.bifa-mobile-nav .children,
.bifa-mobile-nav .bifa-dropdown {
    transition-duration: 0.2s !important; /* Было 0.3s */
}

/* Оптимизация производительности анимаций */
.bifa-mobile-nav,
.bifa-mobile-overlay {
    will-change: transform, opacity;
}

/* Используем аппаратное ускорение для плавности */
.bifa-mobile-nav {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Убираем лишние эффекты для скорости */
.bifa-mobile-nav a {
    transition: color 0.15s ease, padding 0.15s ease; /* Ускорили */
}

/* Мгновенный отклик для кнопки крестика */
.bifa-dropdown-toggle {
    transition: none !important;
}

/* Быстрая анимация крестика */
.bifa-mobile-nav .has-dropdown > a::after,
.bifa-mobile-nav .menu-item-has-children > a::after {
    transition: transform 0.2s ease, color 0.15s ease; /* Ускорили */
}

/* ========================================
   КОНЕЦ ОПТИМИЗАЦИИ
   ======================================== */
   