/* Custom menu styles for dropdown arrows */

/* Скрываем стандартные стрелки темплейта, если они есть */
.dropdown > a::after,
.dropdown-nested > a::after {
    display: none !important;
}

/* Главные пункты меню (верхний уровень) */
.main-menu__list > .dropdown > a {
    position: relative;
    padding-right: 25px; /* Регулируемый отступ справа для стрелки */
}

.main-menu__list > .dropdown > a .menu-arrow {
    position: absolute;
    right: 8px; /* Регулируемое положение стрелки от правого края */
    top: 50%;
    transform: translateY(-50%);
    margin-left: 0;
    padding-left: 0;
}

/* Вложенные подменю (второй и третий уровень) */
.dropdown-nested > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.dropdown-nested > a .menu-arrow {
    margin-left: auto;
    padding-left: 15px;
    pointer-events: none; /* Стрелка не должна блокировать hover/click на ссылке */
}

/* ВАЖНО: убедимся что hover работает на весь элемент li */
.dropdown-nested {
    position: relative;
}

/* Третий уровень используем стандартные стили темы (style.css).
   Здесь НИЧЕГО не переопределяем, кроме стрелок. */

/* Common styles for all arrows */
.menu-arrow {
    font-size: 14px; /* Уменьшенный размер стрелки */
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dropdown > a:hover .menu-arrow,
.dropdown-nested > a:hover .menu-arrow {
    opacity: 1;
}


/* ===== Мессенджеры в хедере ===== */
.header-style2__social-links .messengers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-style2__social-links .messengers-list li {
    margin: 0;
}

.messenger-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.messenger-btn--wa {
    background-color: #25D366;
}

.messenger-btn--tg {
    background-color: #0088cc;
}

.messenger-btn--vb {
    background-color: #7360F2;
}

.messenger-btn--mx {
    background-color: #4C6FFF;
}

.messenger-btn--mx img {
    display: block;
}

.messenger-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    opacity: 0.95;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


/* ===== Логотип + текст в шапке ===== */
.site-logo-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Sticky header: не даем style.css ломать flex-выравнивание логотипа */
.stricky-header__two .main-header-two__logo.site-logo-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stricky-header__two .main-header-two__logo .site-logo-with-text__text {
    justify-content: center;
}

.site-logo-with-text__logo img {
    display: block;
    height: 48px;
    width: auto;
}

.site-logo-with-text__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.site-logo-with-text__line1 {
    font-weight: 700;
    font-size: 20px;
    color: var(--cleanin-white);
}

.site-logo-with-text__line2 {
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}


/* ===== Тень для выпадающего меню ===== */
.main-menu .main-menu__list>li>ul,
.main-menu .main-menu__list>li>ul>li>ul,
.stricky-header .main-menu__list>li>ul,
.stricky-header .main-menu__list>li>ul>li>ul {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
}


/* ===== Блок мессенджеров и соцсетей (download-app-one) ===== */
.channels-block {
    margin-top: 30px;
}

.channels-block__label {
    font-size: 16px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--cleanin-black);
    margin-bottom: 10px;
}

.channels-block__label--mt {
    margin-top: 28px;
}

.channels-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.channels-row li {
    margin: 0;
}

.channel-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f7fb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.channel-btn img {
    display: block;
    width: 44px;
    height: 44px;
}

.channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    opacity: 0.95;
}

@media (max-width: 767px) {
    .channels-block {
        margin-top: 24px;
        padding: 16px 14px;
        border-radius: 14px;
        background-color: #f5f7fb;
    }

    .channels-block__label {
        text-align: center;
        margin-bottom: 12px;
    }

    .channels-row {
        gap: 10px;
        justify-content: center;
    }

    .channel-btn {
        width: 50px;
        height: 50px;
    }

    .channel-btn img {
        width: 35px;
        height: 35px;
    }
}
