/* ================================
   ХЕДЕР
   ================================ */
.header {
    background-color: var(--background-header);
    box-shadow: var(--shadow-header);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: var(--header-height);
    justify-content: space-between;
    margin: 0;
    padding: 0 var(--container-padding);
    position: fixed;
    transition: background-color .3s ease;
    width: 100%;
    z-index: 1050;
    top: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(10px);
    overflow: visible;
}

.header__left,
.header__right {
    align-items: center;
    display: flex;
    height: 100%;
    overflow: visible;
}

.header__bar {
    margin: 0 12px 0 0;
    padding: 0;
}

.header .header__logo {
    align-items: center;
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: calc(100% - 20px);
    justify-content: center;
    margin: 0;
    padding: 0;
    width: auto;
}

.header .header__logo img {
    height: 35px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.header .header__button,
.header .header__search {
    margin: 0 12px 0 0;
    position: relative;
    z-index: 1100;
}

.header .header__menu {
    display: none;
}

.header .header__sign-in-btn {
    margin-right: 8px;
    position: relative;
    z-index: 1100;
}

.header .header__locales {
    margin-right: 8px;
    width: auto;
    position: relative;
    z-index: 1200;
    overflow: visible;
}

.header__desktop-controls {
    display: flex;
    align-items: center;
    overflow: visible;
}

/* ================================
   КНОПКИ И ЭЛЕМЕНТЫ УПРАВЛЕНИЯ
   ================================ */
.special-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--button-special-border);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font-size: 24px;
    justify-content: center;
    margin: 0;
    min-height: 40px;
    min-width: 40px;
    outline: none;
    padding: 0;
    position: relative;
    text-decoration: none;
    text-shadow: none;
    transition: all .3s ease;
}

.special-button:hover {
    background: var(--button-special-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--accent-purple);
}

.special-button--bar {
    font-size: 12px;
}

.link-btn {
    align-items: center;
    background: rgb(184, 15, 255);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    justify-content: center;
    letter-spacing: .01em;
    line-height: 1;
    margin: 0;
    min-height: 40px;
    min-width: 100px;
    outline: none;
    padding: 5px 15px;
    position: relative;
    text-decoration: none;
    text-shadow: none;
    text-transform: uppercase;
    transition: all .3s ease;
    vertical-align: middle;
}

.link-btn:hover {
    background: rgba(184, 15, 255, 0.8);
    color: var(--text-primary);
    text-decoration: none;
}

.link-btn--secondary {
    background: rgb(0, 0, 0);
    border: 1px solid rgb(184, 15, 255);
    color: var(--text-primary);
    transition: all .3s ease;
}

.link-btn--secondary:hover {
    background: rgba(184, 15, 255, 0.1);
    border-color: rgb(184, 15, 255);
    color: var(--text-primary);
}

.btn {
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* ================================
   ЛОГОТИП
   ================================ */
.logo {
    cursor: pointer;
    display: inline-block;
    vertical-align: top;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-accent);
}

/* ================================
   НАВИГАЦИЯ И МЕНЮ
   ================================ */
.top-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.top-menu__item {
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
    white-space: nowrap;
}

.top-menu__link {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -.02em;
    padding: 5px 0;
    position: relative;
    text-transform: uppercase;
    transition: color .3s ease;
    text-decoration: none;
}

.top-menu__link:hover {
    color: var(--text-accent);
}

.top-menu__link:after {
    background-color: var(--accent-purple);
    bottom: -2px;
    content: "";
    display: inline-block;
    height: 2px;
    left: 0;
    max-width: 0;
    position: absolute;
    transition: max-width .3s ease;
    width: 30px;
}

.top-menu__link:hover:after {
    max-width: 100%;
}

/* ================================
   ВЫПАДАЮЩЕЕ МЕНЮ
   ================================ */
.top-menu__item--has-dropdown {
    position: relative;
}

.top-menu__link--has-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-menu__dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.top-menu__item--has-dropdown:hover .top-menu__dropdown-arrow {
    transform: rotate(180deg);
}

.top-menu__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1300;
    list-style: none;
}

.top-menu__item--has-dropdown:hover .top-menu__dropdown,
.top-menu__dropdown--show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-menu__dropdown-item {
    margin: 0;
    padding: 0;
}

.top-menu__dropdown-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.top-menu__dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent-purple);
    color: var(--text-accent);
    padding-left: 24px;
}

/* ================================
   ЯЗЫКОВОЙ СЕЛЕКТОР
   ================================ */
.select-language-icons {
    color: var(--text-primary);
    display: block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    position: relative;
    text-align: left;
    width: 100%;
    overflow: visible;
    z-index: 1200;
}

.select-language-icons__button {
    align-items: center;
    border: 1px solid var(--button-special-border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    min-height: 40px;
    padding: 10px 8px;
    transition: all .3s ease;
}

.select-language-icons__button:hover {
    background: var(--background-secondary);
    border-color: var(--background-secondary);
    color: var(--text-primary);
}

.select-language-icons__button-language-icon {
    border-radius: 4px;
    margin-right: 4px;
    min-width: 24px;
    width: 24px;
}

.select-language-icons__arrow-icon-wrapper {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 10px;
    padding: 0;
    transform: rotate(0deg);
    transform-origin: center;
    transition: transform .3s, color .3s ease;
}

.select-language-icons__bottom-line {
    height: 0;
    position: relative;
    width: 100%;
}

.select-language-icons__dropdown {
    background: var(--background-main);
    border: 0 solid transparent;
    border-radius: 8px;
    box-shadow: var(--shadow-dropdown);
    color: var(--text-primary);
    display: none;
    font-size: 12px;
    font-weight: 500;
    left: 0;
    margin: 4px 0 0;
    padding: 4px;
    position: absolute;
    text-transform: none;
    top: 100%;
    width: 100%;
    z-index: 1300;
}

.select-language-icons__dropdown--open {
    display: block;
}

.select-language-icons__option {
    border-radius: 8px;
    justify-content: center;
}

.option-link {
    align-items: center;
    border-radius: 0;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    font-weight: 400;
    overflow: hidden;
    padding: 8px;
    white-space: normal;
    text-decoration: none;
}

.option-link__content {
    align-items: center;
    display: flex;
}

.select-language-icons__option-language-icon {
    border-radius: 4px;
    margin-right: 0;
    min-width: 24px;
    width: 24px;
}

.select-language-icons__indicator {
    background-color: var(--background-primary);
    border-radius: 50%;
    height: 6px;
    margin-left: 8px;
    width: 6px;
}

/* ================================
   ИКОНКИ
   ================================ */
.font-icons {
    display: inline-block;
    font-family: 'Arial', sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    text-rendering: auto;
}

.font-icons--bar:before {
    content: "☰";
}

.font-icons--search:before {
    content: "🔍";
}

.font-icons--select:before {
    content: "▼";
    font-size: 12px;
}

.font-icons--close:before {
    content: "✕";
}

/* ================================
   ССЫЛКИ
   ================================ */
.link {
    color: var(--text-primary);
    cursor: pointer;
    letter-spacing: -.24px;
    text-decoration: none;
    transition: color .3s ease;
}

.link:hover {
    color: var(--text-accent);
} 