/* ===== STICKY МЕНЮ ДЛЯ ТЕХНИЧЕСКИХ СТРАНИЦ (sticky_menu2_tech) ===== */

/* Родительская обёртка */
.page-sticky-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    min-height: 81px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* Левая часть (артикул) – резервирует место, невидима до прилипания (только десктоп) */
.sticky-menu-tech__left {
    flex-shrink: 0;
    width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}
.page-sticky-nav-wrapper.sticky-active .sticky-menu-tech__left {
    visibility: visible;
    opacity: 1;
}
.sticky-menu-tech-left__label {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    margin-bottom: 2px;
}
.sticky-menu-tech-left__article {
    font-size: 20px;
    font-weight: 600;
    color: #16425B;
    line-height: 1.2;
}

/* Контейнер меню и кнопки */
.sticky-menu-tech {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Правая кнопка */
.sticky-menu-tech__right {
    flex-shrink: 0;
}
.sticky-menu-tech__right .btn {
    background-color: #16425B;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}
.sticky-menu-tech__right .btn:hover {
    background-color: #0e2e40;
}

/* ===== ДЕСКТОП (≥769px) ===== */
@media (min-width: 769px) {
    .sticky-menu-tech__mobile-trigger,
    .sticky-menu-tech__mobile-dropdown {
        display: none !important;
    }
    .sticky-menu-tech__desktop {
        display: block;
    }
    .sticky-menu-tech__list {
        display: flex;
        flex-direction: row;
        gap: 30px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .sticky-menu-tech__link {
        font-family: inherit;
        font-weight: 500;
        font-size: 1em;
        color: #000;
        text-decoration: none;
        text-transform: uppercase;
        white-space: nowrap;
        transition: opacity 0.2s;
        padding: 10px 0;
        display: inline-block;
    }
    .sticky-menu-tech__link:hover {
        opacity: 0.7;
    }
    .sticky-menu-tech__link.active {
        font-weight: 600;
        color: #16425B;
    }
}

/* ===== МОБИЛЬНЫЕ (≤768px) – как на Cibes ===== */
@media (max-width: 768px) {
    /* Скрываем левый блок и десктопное меню */
    .sticky-menu-tech__left,
    .sticky-menu-tech__desktop {
        display: none !important;
    }

    /* Контейнер меню и кнопки – выравниваем по правому краю */
    .sticky-menu-tech {
        margin-left: auto;
        gap: 10px;
    }

    /* Кнопка-триггер с тенью и скруглением */
    .sticky-menu-tech__mobile-trigger {
        display: block;
    }
    .dropdown-button {
        display: flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: none;
        font-size: 14px;
        font-weight: 500;
        color: #333;
        cursor: pointer;
        padding: 8px 16px;
        border-radius: 5px;          /* rounded-full */
        box-shadow: 0 1px 4px 0 rgba(0,0,0,0.2);  /* shadow-pill */
        transition: box-shadow 0.2s, background 0.2s;
    }
    .dropdown-button:hover {
        background: #f5f5f5;
        box-shadow: 0 1px 4px 0 rgba(0,0,0,0.4); /* hover:shadow-pill-hover */
    }
.dropdown-arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    transform: rotate(180deg) !important;   /* закрыто: стрелка вниз */
}
.sticky-menu-tech__mobile-trigger.active .dropdown-arrow {
    transform: rotate(0deg) !important;     /* открыто: стрелка вверх */
}

    /* Выпадающее меню с тенью */
    .sticky-menu-tech__mobile-dropdown {
        display: none;
        position: absolute;
        top: 70%;
        right: 0;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);  /* shadow-anchor */
        min-width: 200px;
        z-index: 100;
        margin-top: 8px;
    }
    .sticky-menu-tech__mobile-dropdown.active {
        display: block;
    }
    .dropdown-list {
        flex-direction: column;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .dropdown-list li {
        border-bottom: 1px solid #f0f0f0;
    }
    .dropdown-list li:last-child {
        border-bottom: none;
    }
    .dropdown-list a {
        display: block;
        padding: 12px 16px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        font-weight: 500;
        transition: background 0.2s;
    }
    .dropdown-list a:hover {
        background: #f9f9f9;
    }
    .dropdown-list a.active {
        color: #16425B;
        font-weight: 600;
    }

    /* Правая кнопка на мобильных – остаётся справа */
    .sticky-menu-tech__right {
        margin-left: 0;
    }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ПРАВКИ ===== */
/* Убираем отступы у хлебных крошек */
.breadcrumbs,
#navigation,
.page-top-wrapper,
.page-top-info {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.techspec-custom-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.page-sticky-nav-wrapper {
    margin-bottom: 20px !important;
}
.sticky-menu-tech__item::before,
.sticky-menu-tech__item::after {
    content: none !important;
    display: none !important;
}
.page-sticky-nav-wrapper,
.sticky-menu-tech {
    z-index: 10 !important;
}
body.techspec-page #headerfixed {
    display: none !important;
}
body.techspec-page .header__main-part {
    position: static !important;
}
/* ===== ФИКСЫ ДЛЯ МОБИЛЬНОГО МЕНЮ ===== */
@media (max-width: 768px) {
    .dropdown-list,
    .dropdown-list ul,
    .dropdown-list li {
        list-style: none !important;
        margin: 0;
        padding: 0;
    }
    .dropdown-list li::before,
    .dropdown-list li::after {
        content: none !important;
        display: none !important;
    }
    .dropdown-list a {
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
}
.sticky-menu-tech__mobile-dropdown {
    left: 40px;
    right: auto;
}
/* ===== ЗАПРЕЩАЕМ ПЕРЕНОС БЛОКОВ В STICKY МЕНЮ (без ломки выпадайки) ===== */
.page-sticky-nav-wrapper {
    flex-wrap: nowrap !important;
    /* НЕ ставим overflow-x: auto – это ломает absolute меню */
}

.sticky-menu-tech {
    flex-wrap: nowrap !important;
}

.sticky-menu-tech__left,
.sticky-menu-tech__desktop,
.sticky-menu-tech__mobile-trigger,
.sticky-menu-tech__right {
    flex-shrink: 0;
}

.dropdown-button,
.btn,
.sticky-menu-tech__link {
    white-space: nowrap;
}

/* Если экран слишком узкий – элементы не переносятся, 
   а появляется горизонтальная прокрутка у body или html */
@media (max-width: 600px) {
    body {
        overflow-x: auto;
    }
}