/* ================================================
   Header 2026 v2 — новая шапка (тест)
   Префикс классов: .hn2
   Только для шаблона page-test-stage.php
   ================================================ */

:root {
    --hn2-blue: #0389CB;
    --hn2-black: #131313;
    --hn2-white: #ffffff;
    --hn2-top-h: 36px;
    --hn2-main-h: 68px;
    --hn2-total-h: 104px;
}

/* ===== HEADER ROOT ===== */
.hn2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: transform 0.35s ease;
    line-height: 1.3;
}

.hn2 .container {
    flex-direction: row;
}

.hn2.hn2--hidden {
    transform: translateY(-100%);
}

/* ===== CONTAINER ===== */
.hn2 .container {
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* ===== TOP BAR ===== */
.hn2__top {
    background-color: var(--hn2-blue);
    padding: 8px 0;
}

.hn2__top .container {
    height: 100%;
    justify-content: space-between;
}

/* Кнопка языка */
.hn2__lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--hn2-white);
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.hn2__lang-btn:hover { opacity: 0.85; }

.hn2__lang-arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: translateY(-25%) rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

/* Блок "Связаться с поддержкой" */
.hn2__support {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--hn2-white);
    font-size: 14px;
}

.hn2__support-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hn2__support-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
    width: 25px;
    height: 25px;
}

.hn2__support-icons a svg {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.hn2__support-icons a:hover { opacity: 1; }

/* ===== MAIN BAR ===== */
.hn2__main {
    background: var(--hn2-white);
    height: var(--hn2-main-h);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 5px 10px 0 rgba(0, 35, 11, 0.05);
}

.hn2.menu-is-open .hn2__main {
    box-shadow: none;
    border-bottom-color: transparent;
}

.hn2__main .container {
    height: 100%;
    gap: 20px;
    justify-content: space-between;
}

/* ===== LOGO ===== */
.hn2__logo {
    flex-shrink: 0;
}

.hn2__logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* ===== НАВИГАЦИЯ ===== */
.hn2__nav {
    flex: 1;
    min-width: 0;
}

.hn2__nav > ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1px;
    margin-bottom: -1px;
}

/* Ссылки верхнего уровня */
.hn2__nav > ul > li > a {
    display: block;
    text-decoration: none;
    color: var(--hn2-black);
    opacity: .8;
    font-size: 15px;
    font-weight: 300;
    padding: 8px 10px;
    border-radius: 6px;
    white-space: nowrap;
    transition: color 0.2s ease;
    letter-spacing: -.01em;
}

.hn2__nav > ul > li:not(.with-sublist) > a:hover {
    opacity: 1;
}

/* Пункты с подменю */
.hn2__nav > ul > li.with-sublist {
    position: relative;
    border: 1px solid #00000000;
    border-bottom: 0;
}

.hn2__nav > ul > li.with-sublist > a {
    padding-right: 24px;
    position: relative;
}

/* Стрелка-шеврон на пунктах верхнего уровня с подменю */
.hn2__nav > ul > li.with-sublist > a::after {
    content: '';
    position: absolute;
    right: 7px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.25s ease;
    opacity: 0.6;
    font-weight: 400;
    
}

.hn2__nav > ul > li.with-sublist:hover > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 0.8;
}

.hn2__nav > ul > li.with-sublist:hover > a {
    opacity: 1;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ ===== */
.hn2__nav > ul > li.with-sublist > .sublist {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background: var(--hn2-white);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 24px rgba(0, 35, 11, 0.08);
    clip-path: inset(0 -50px -50px -50px);
    list-style: none;
    margin: 0;
    padding: 16px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    z-index: 200;
}

/* Мост на li — только для CSS-hover дропдаунов (не для integration-drop с position:static) */
.hn2__nav > ul > li.with-sublist:not(.integration-drop)::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.hn2__nav > ul > li.with-sublist:hover > .sublist {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}
.hn2__nav > ul > li.with-sublist:hover  {
    border: 1px solid transparent;
    border-bottom: 0;
}

/* Пункты первого уровня в дропдауне */
.hn2__nav .sublist > li > a {
    display: block;
    text-decoration: none;
    color: var(--hn2-black);
    font-size: 15px;
    font-weight: 300;
    padding: 10px;
    padding-right: 35px;
    border-radius: 6px;
    letter-spacing: -.03em;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

/* Hover 1-й уровень: спойлер → фон, ссылка → синий */
.hn2__nav .sublist:not(.sublist--deep) > li.with-sublist > a:hover {
    background: rgba(0, 0, 0, 0.04);
    
}

.hn2__nav .sublist:not(.sublist--deep) > li:not(.with-sublist) > a:hover {
    background: rgba(243, 243, 243, 1);
    color: rgba(3, 137, 203, 1);
}

/* Шеврон у пунктов 1-го уровня с подменю */
.hn2__nav .sublist:not(.sublist--deep) > li.with-sublist > a::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    opacity: 0.6;
    display: none; /* стрелка скрыта — раскрытие происходит автоматически */
}

.hn2__nav .sublist:not(.sublist--deep) > li.with-sublist.is-open > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 0.8;
}

.hn2__nav .sublist:not(.sublist--deep) > li.with-sublist.is-open > a {
}

/* ===== ВЛОЖЕННОЕ ПОДМЕНЮ ===== */
/* display: block — всегда развёрнуто; сам дропдаун скрыт через opacity/visibility родителя */
.hn2__nav .sublist > li > .sublist--deep {
    list-style: none;
    margin: 0;
    padding: 0 0 4px 0;
    display: block;
}

/* .hn2__nav .sublist > li.is-open > .sublist--deep { display: block; } — не нужно, всегда видно */

/* Hover-раскрытие больше не нужно — оставлено как резерв
.hn2__nav > ul > li.with-sublist:hover .sublist:not(.sublist--deep) > li.with-sublist > .sublist--deep {
    display: block;
}
.hn2__nav > ul > li.with-sublist:hover .sublist:not(.sublist--deep) > li.with-sublist > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 0.8;
} */

.hn2__nav .sublist--deep > li > a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.68);
    font-size: 14px;
    font-weight: 400;
    padding: 6px 12px 6px 32px;
    border-radius: 6px;
    transition: background-color 0.15s, color 0.15s;
    white-space: nowrap;
}

/* Hover 2-й уровень: ссылка → синий */
.hn2__nav .sublist--deep > li:not(.with-sublist) > a:hover {
    color: var(--hn2-blue);
}

/* Шеврон у пунктов 2-го уровня с вложенными списками */
.hn2__nav .sublist--deep > li.with-sublist {
    transition: .35s ease;
}

.hn2__nav .sublist--deep > li.with-sublist > a {
    position: relative;
    padding-left: 32px;
    transition: .35s ease;
}
.hn2__nav .sublist--deep > li.with-sublist > a:hover {
       background: rgba(0, 0, 0, 0.04)
}

.hn2__nav .sublist--deep > li.with-sublist > a::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #888;
    border-bottom: 1.5px solid #888;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
    opacity: 0.6;
    display: none; /* стрелка скрыта */
}

.hn2__nav .sublist--deep > li.with-sublist.is-open > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 0.8;
}

.hn2__nav .sublist--deep > li.with-sublist.is-open > a {
}

.hn2__nav .sublist--deep > li.with-sublist.is-open {
    background: #F3F3F3;
    border-radius: 6px;
    margin-top: 5px;
    transition: .35s ease;
}

/* Третий уровень вложения: всегда развёрнут (сам дропдаун скрыт через родителя) */
.hn2__nav .sublist--deep > li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

/* .hn2__nav .sublist--deep > li.is-open > ul { display: block; } — не нужно

.hn2__nav > ul > li.with-sublist:hover .sublist--deep > li.with-sublist > ul {
    display: block;
} */
/* .hn2__nav > ul > li.with-sublist:hover .sublist--deep > li.with-sublist {
    background: #F3F3F3;
    border-radius: 6px;
    margin-top: 5px;
} */
/* .hn2__nav > ul > li.with-sublist:hover .sublist--deep > li.with-sublist > a::after {
    transform: translateY(-25%) rotate(-135deg);
    opacity: 0.8;
} */

.hn2__nav .sublist--deep li ul li a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.55);
    font-size: 13px;
    padding: 5px 12px 5px 36px;
    border-radius: 6px;
    transition: background-color 0.15s, color 0.15s;
}

.hn2__nav .sublist--deep li ul li a:hover {
    background-color: rgba(3, 137, 203, 0.06);
    color: var(--hn2-blue);
}

/* ===== КНОПКИ АВТОРИЗАЦИИ ===== */
.hn2__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* <1300px: только узкий набор (2 кнопки) */
.hn2__actions--wide   { display: none; }
.hn2__actions--narrow { display: flex; }

@media (min-width: 1300px) {
    .hn2__actions--wide   { display: flex; }
    .hn2__actions--narrow { display: none; }
}

.hn2__btn {
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    padding: 8px 20px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border: 1.5px solid transparent;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
}

.hn2__btn--ghost {
    color: #0389CB;
    background: none;
    border-color: transparent;
    padding: 8px 10px;
}

.hn2__btn--ghost:hover {
    color: #1054b0;
}

.hn2__btn--outline {
    color: #0389CB;
    background: transparent;
    border-color: #0389CB;
}

.hn2__btn--outline:hover {
    background: rgba(23, 116, 215, 0.07);
}

.hn2__btn--filled {
    color: #ffffff;
    background: #0389CB;
    border-color: #0389CB;
}

.hn2__btn--filled:hover {
    background: #1054b0;
    border-color: #1054b0;
}

/* ===== БУРГЕР ===== */
.hn2__burger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
}

.hn2__burger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hn2-black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hn2__burger.is-active .hn2__burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hn2__burger.is-active .hn2__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hn2__burger.is-active .hn2__burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== СПЕЙСЕР ===== */
.hn2__spacer {
    height: var(--hn2-total-h);
}

/* ===== МОБИЛЬНОЕ МЕНЮ ===== */
.hn2__mobile {
    position: fixed;
    top: var(--hn2-total-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hn2-white);
    z-index: 1000;
    overflow: hidden;
    transform: translateX(100%);
    padding: 0 !important;
    transition: transform 0.3s ease;
}

.hn2__mobile.is-open {
    transform: translateX(0);
}

/* Основная панель — весь старый контент */
.hn2__mob-main-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    padding: 16px 20px 40px;
    box-sizing: border-box;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.32s ease;
}

.hn2__mobile.is-sub-open .hn2__mob-main-panel {
    transform: translateX(-25%);
    opacity: 0.35;
    pointer-events: none;
}

/* Вторая панель — подменю, приходит справа */
.hn2__mob-panel--sub {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hn2-white);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0 20px 40px;
    box-sizing: border-box;
    padding-top: 0px;
    margin-top: 0;
    
}

.hn2__mob-panel--sub.is-visible {
    transform: translateX(0);
}

.hn2__mob-panel--sub.is-behind {
    transform: translateX(-25%);
    opacity: 0.35;
    pointer-events: none;
}

/* Заголовок второй панели */
.hn2__mob-panel-hd {
    display: flex;
    align-items: center;
    padding: 16px 0 16px;
    margin: 0 -5px 18px;
    flex-shrink: 0;
    position: relative;
}

.hn2__mob-back {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--hn2-blue);
    padding: 0;
    line-height: 1;
}

.hn2__mob-back-icon {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-left: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hn2__mob-panel-title {
    position: absolute;
    left: 0;
    right: 0;
    top: 30px;
    transform: translateY(-50%);
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: var(--hn2-black);
    white-space: normal;
    pointer-events: none;
    margin: 0 auto;
    max-width: 320px;

}

.hn2__mob-panel-content {
    flex: 1;
}

/* Списки внутри второй панели */
.hn2__mob-panel-content ul {
    list-style: none;
    margin: 0;
    /* margin-top: 20px; */
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hn2__mob-panel-content li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--hn2-black);
    font-size: 16px;
    font-weight: 400;
    padding: 18px 5px;
    border-radius: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    transition: color 0.2s;
}

.hn2__mob-panel-content li > a:hover {
    color: var(--hn2-blue);
}

/* Hover с фоном только на третьем уровне */
.hn2__mob-panel--deep .hn2__mob-panel-content li > a:hover {
    background: rgba(243, 243, 243, 1);
    color: rgba(3, 137, 203, 1);
}

/* Группа с подменю внутри панели — открывается в следующей панели (slide) */
.hn2__mob-panel-content li.with-sublist > a {
    font-weight: 500;
}

.hn2__mob-panel-content li.with-sublist > a::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #aaa;
    border-top: 1.5px solid #aaa;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Вложенный список скрыт — содержимое открывается в новой панели */
.hn2__mob-panel-content li.with-sublist > ul {
    display: none;
}

/* Мобильная навигация */
.hn2__mobile-nav {
    margin: 0 -20px;
}

.hn2__mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn2__mobile-nav > ul > li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hn2__mobile-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--hn2-black);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 20px;
    transition: color 0.2s;
}

.hn2__mobile-nav > ul > li.with-sublist > a::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #888;
    border-top: 1.5px solid #888;
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.hn2__mobile-nav > ul > li.with-sublist.is-open > a::after {
    transform: rotate(135deg);
}

.hn2__mobile-nav > ul > li > a:hover { color: var(--hn2-blue); }

/* Мобильный sublist */
.hn2__mobile-nav .sublist {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
    display: none;
}

.hn2__mobile-nav > ul > li.with-sublist.is-open > .sublist {
    display: block;
}

.hn2__mobile-nav .sublist > li > a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.75);
    font-size: 15px;
    padding: 8px 0 8px 12px;
    transition: color 0.2s;
}

.hn2__mobile-nav .sublist > li > a:hover { color: var(--hn2-blue); }

/* Мобильный sublist--deep */
.hn2__mobile-nav .sublist--deep {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.hn2__mobile-nav .sublist > li.with-sublist.is-open > .sublist--deep {
    display: block;
}

.hn2__mobile-nav .sublist--deep > li > a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.55);
    font-size: 14px;
    padding: 6px 0 6px 24px;
}

/* Мобильная поддержка */
.hn2__mob-support {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hn2__mob-support-title {
    font-size: 16px;
    color: rgba(19, 19, 19, 1);
}

.hn2__mob-support-icons {
    display: flex;
    gap: 8px;
}

.hn2__mob-support-icons a {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(243, 243, 243, 1);
    justify-content: center;
}

.hn2__mob-support-icons a:hover { opacity: 1; }

/* Мобильные кнопки */
.hn2__mob-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.hn2__mob-actions .hn2__btn {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 12px 20px;
    border-radius: 10px;
}

/* Мобильная кнопка языка — строка с стрелкой */
.hn2__mob-lang {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 14px 20px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--hn2-black);
    text-align: left;
    margin-top: auto;
}

.hn2__mob-lang::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.45;
}

/* ===== АНИМАЦИИ ДЕСКТОП-МЕНЮ ===== */

@keyframes hn2-desk-item-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Пункты левой панели — каскадный вход */
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li {
    animation: hn2-desk-item-in 0.2s ease both;
}
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(1) { animation-delay: 0.08s; }
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(2) { animation-delay: 0.12s; }
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(3) { animation-delay: 0.16s; }
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(4) { animation-delay: 0.20s; }
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(5) { animation-delay: 0.24s; }
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__list > li:nth-child(6) { animation-delay: 0.28s; }

/* Правая панель — лёгкий fade при появлении */
.hn2--mega .menu-item-mega.is-open .hn2-megadrop__panel.is-active {
    animation: hn2-desk-item-in 0.18s 0.1s ease both;
}

/* ===== АНИМАЦИИ МОБИЛЬНОГО МЕНЮ ===== */

@keyframes hn2-mob-item-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hn2__mobile.is-open .hn2__mob-lang,
.hn2__mobile.is-open .hn2__mobile-nav > ul > li,
.hn2__mobile.is-open .hn2__mob-support,
.hn2__mobile.is-open .hn2__mob-actions {
    animation: hn2-mob-item-in 0.22s ease both;
}

.hn2__mobile.is-open .hn2__mob-lang                              { animation-delay: 0.06s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(1)    { animation-delay: 0.09s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(2)    { animation-delay: 0.12s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(3)    { animation-delay: 0.15s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(4)    { animation-delay: 0.18s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(5)    { animation-delay: 0.21s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(6)    { animation-delay: 0.24s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(7)    { animation-delay: 0.27s; }
.hn2__mobile.is-open .hn2__mobile-nav > ul > li:nth-child(8)    { animation-delay: 0.30s; }
.hn2__mobile.is-open .hn2__mob-support                          { animation-delay: 0.30s; }
.hn2__mobile.is-open .hn2__mob-actions                          { animation-delay: 0.33s; }

/* ===== "СКОРО" — БЛОКИРОВКА ВЗАИМОДЕЙСТВИЯ ===== */

/* Desktop: 2-й уровень "скоро" с подпунктами — li:hover открывает правую панель,
   но клик по ссылке заблокирован */
.hn2--mega .menu-item-mega > .sublist > li.is-soon > a {
    pointer-events: none;
    cursor: default;
    opacity: 0.6;
}

/* Desktop: 3-й уровень "скоро" — полная блокировка, никакого взаимодействия */
.hn2--mega .menu-item-mega .sublist--deep > li.is-soon {
    pointer-events: none;
    cursor: default;
}
.hn2--mega .menu-item-mega .sublist--deep > li.is-soon > a {
    opacity: 0.5;
    cursor: default;
}

/* Full-width megadrop (hn2-megadrop): "скоро" в левой панели —
   клик по <a> заблокирован, li:hover для показа правой панели работает */
.hn2-megadrop__list > li.is-soon > a {
    pointer-events: none;
    cursor: default;
}

/* Full-width megadrop (hn2-megadrop): "скоро" в правой панели — клик заблокирован */
.hn2-megadrop__panel-list > li.is-soon > a {
    pointer-events: none;
    cursor: default;
    opacity: 0.5;
}

/* Мобильная панель: "скоро" без подпунктов — визуально заблокировано */
.hn2__mob-panel-content li.is-soon:not(.with-sublist) > a {
    opacity: 0.5;
    cursor: default;
}

/* Контакт-блок интеграций в мобильной панели */
.hn2__mob-panel-content .hn2-mob-integ-contact {
    margin-top: 20px;
    padding-top: 16px;
    margin-top: auto;
}

.hn2__mob-panel-content .hn2-mob-integ-contact > span {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 500;
    color: rgba(64, 64, 64, 1);
}

.hn2__mob-panel-content .hn2-mob-integ-contact > a {
    display: flex;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--hn2-blue);
    border: 1.5px solid var(--hn2-blue);
    border-bottom: 1.5px solid var(--hn2-blue);
    border-radius: 10px;
    padding: 12px 20px;
    text-decoration: none;
    transition: background 0.15s;
}

.hn2__mob-panel-content .hn2-mob-integ-contact > a:hover {
    background: rgba(3, 137, 203, 0.08);
}

/* ===== РОДИТЕЛЬСКАЯ ССЫЛКА В МОБИЛЬНОЙ ПОД-ПАНЕЛИ ===== */

.hn2__mob-panel-content .hn2-mob-parent-link > a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    color: rgba(19, 19, 19, 1);
    text-decoration: none;
    padding: 6px 5px 17px;
    justify-content: flex-start;
    border-bottom: none;
}
.hn2__mob-panel-content .hn2-mob-parent-link  {
   list-style: none;
}

.hn2__mob-panel-content .hn2-mob-parent-link > a .hn2-ext-arrow {
    flex-shrink: 0;
    color: var(--hn2-blue);
}

.hn2__mob-panel-content .hn2-mob-parent-link > a:hover {
    color: var(--hn2-blue);
}

/* Третий уровень (deep-панель) — без border-bottom на пунктах */
.hn2__mob-panel--deep .hn2__mob-panel-content ul > li:not(.hn2-mob-parent-link) > a {
    border-bottom: none;
}

/* ===== МОДАЛКА ДЕМО ===== */
.hn2-demo-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 2100;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.hn2-demo-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.hn2-demo-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hn2-demo-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px 24px;
    min-width: 260px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transform: scale(0.95) translateY(6px);
    transition: transform 0.25s ease;
}

.hn2-demo-modal.is-open .hn2-demo-modal__box {
    transform: scale(1) translateY(0);
}

.hn2-demo-modal__close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #aaa;
    line-height: 1;
    padding: 2px 6px;
    transition: color 0.15s;
}

.hn2-demo-modal__close:hover {
    color: #333;
}

.hn2-demo-modal__title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(19, 19, 19, 1);
    margin: 0 0 18px;
}

.hn2-demo-modal__items {
    display: flex;
    gap: 12px;
}

.hn2-demo-modal__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.75);
    font-size: 13px;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    flex: 1;
    text-align: center;
}

.hn2-demo-modal__item:hover {
    background: rgba(3, 137, 203, 0.06);
    border-color: rgba(3, 137, 203, 0.3);
    color: #0389CB;
}

/* ===== АККОРДЕОН В ПАНЕЛИ (планшет ≥768px) ===== */

@media (min-width: 768px) {

    /* Враппер: flex-ряд [ссылка | кнопка] */
    .hn2-mob-accordion-hd {
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    }

    .hn2__mob-panel-content li.with-sublist.is-open .hn2-mob-accordion-hd {
        border-bottom-color: transparent;
    }

    /* Ссылка (левая зона) — занимает оставшееся место */
    .hn2-mob-accordion-hd > a {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: -0.02em;
        line-height: 1;
        color: rgba(19, 19, 19, 1);
        text-decoration: none;
        padding: 18px 0;
        border-bottom: none;
        justify-content: flex-start;
    }

    .hn2-mob-accordion-hd > a .hn2-ext-arrow {
        color: var(--hn2-blue);
        flex-shrink: 0;
    }

    /* Скрываем старую стрелку-→ на link */
    .hn2__mob-panel-content li.with-sublist > a::after {
        display: none;
    }

    /* Кнопка-шеврон (правая зона) — статично в flex */
    .hn2-mob-accordion-btn {
        flex-shrink: 0;
        width: 44px;
        height: 56px;
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    .hn2-mob-accordion-btn::after {
        content: '';
        display: block;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid rgba(19, 19, 19, 0.45);
        border-bottom: 1.5px solid rgba(19, 19, 19, 0.45);
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .hn2__mob-panel-content li.with-sublist.is-open .hn2-mob-accordion-btn::after {
        transform: rotate(-135deg);
    }

    /* Дочерний список — скрыт / показан */
    .hn2__mob-panel-content li.with-sublist > ul {
        display: none;
        padding: 4px 0 12px;
    }

    .hn2__mob-panel-content li.with-sublist.is-open > ul {
        display: block;
    }

    /* Пункты внутри аккордеона */
    .hn2__mob-panel-content li.with-sublist > ul > li > a {
        font-size: 15px;
        font-weight: 400;
        padding: 10px 12px;
        color: rgba(19, 19, 19, 0.75);
        border-bottom: none;
        border-radius: 6px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .hn2__mob-panel-content li.with-sublist > ul > li > a:hover {
        background: rgba(243, 243, 243, 1);
        color: rgba(3, 137, 203, 1);
    }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }

    .hn2__nav > ul {
        gap: 0;
    }

    .hn2__nav > ul > li > a {
        font-size: 14px;
        padding: 8px 8px;
    }

    .hn2__btn {
        font-size: 13px;
        padding: 7px 12px;
    }

    .hn2__btn--ghost {
        padding: 7px 8px;
    }
}


@media (max-width: 992px) {
    .hn2__nav,
    .hn2__actions {
        display: none;
    }

    .hn2__burger {
        display: flex;
    }

    .hn2__main .container {
        justify-content: space-between;
    }

    .hn2__spacer {
        height: var(--hn2-total-h);
    }

    .hn2__mobile {
        top: var(--hn2-total-h);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hn2__support-text {
        display: none;
    }
}


.section-wrap {
    margin-top: 60px;
}

@media(max-width:640px) {
    .section-wrap {
        margin-top: 40px;
    }
}


/* ================================================
   MEGA MENU — двухпанельный дропдаун
   Применяется только к .hn2--mega .menu-item-mega
   Все прочие дроплисты не затронуты
   ================================================ */

/* Левая панель: фиксированная ширина */
.hn2--mega .menu-item-mega > .sublist {
    min-width: 230px;
    width: 230px;
    padding: 8px 0;
    overflow: visible;
}

/* Пункты левой панели */
.hn2--mega .menu-item-mega > .sublist > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 400;
    color: var(--hn2-black);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    position: relative;
}

/* Hover простого пункта левой панели */
.hn2--mega .menu-item-mega > .sublist > li:not(.with-sublist) > a:hover {
    color: var(--hn2-blue);
}

/* Hover пункта с подменю — подсветка */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > a:hover,
.hn2--mega .menu-item-mega > .sublist > li.with-sublist:hover > a {
    background: rgba(3, 137, 203, 0.07);
    color: var(--hn2-blue);
}

/* Шеврон > у пунктов левой панели с подпунктами */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > a::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid #aaa;
    border-bottom: 1.5px solid #aaa;
    transform: rotate(-45deg);
    margin-left: auto;
    flex-shrink: 0;
    transition: border-color 0.15s;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist:hover > a::after {
    border-color: var(--hn2-blue);
}

/* Бейдж «Скоро» */
.hn2-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 300;
    color: rgba(19, 21, 26, 1);
    background: rgba(243, 243, 243, 1);
    border-radius: 20px;
    line-height: 1.2;
    padding: 4px 8px;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Пункт с бейджем — сдвигаем шеврон чуть правее */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist.is-soon > a {
    padding-right: 10px;
}

/* ── ПРАВАЯ ПАНЕЛЬ ── */
/* Override: скрываем sublist--deep из базовых стилей */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep {
    position: absolute;
    left: 100%;        /* вплотную справа от левой панели */
    top: -8px;
    min-width: 300px;
    max-width: 560px;
    background: var(--hn2-white);
    border-radius: 0 10px 10px 10px;
    box-shadow: 4px 4px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 16px 16px;
    display: block !important; /* base имеет display:block — держим, используем opacity */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.1s ease, visibility 0.1s ease;
    z-index: 210;
    list-style: none;
    margin: 0;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist:hover > .sublist--deep {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Заголовок правой панели (ссылка на родительскую страницу) */
.hn2--mega .hn2-panel-header {
    list-style: none;
}

.hn2--mega .hn2-panel-header > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--hn2-black);
    text-decoration: none;
    margin-bottom: 10px;
    padding: 0 4px;
    border-radius: 4px;
    transition: color 0.15s;
}

.hn2--mega .hn2-panel-header > a:hover {
    color: var(--hn2-blue);
}

/* Иконка диагональной стрелки (ext-arrow) */
.hn2-ext-arrow {
    flex-shrink: 0;
    opacity: 0.55;
    transition: opacity 0.15s;
    vertical-align: middle;
}

.hn2-panel-header > a:hover .hn2-ext-arrow {
    opacity: 0.85;
}

/* Пункты правой панели */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li:not(.hn2-panel-header) > a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.8);
    font-size: 14px;
    font-weight: 400;
    padding: 7px 10px;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: normal;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li:not(.hn2-panel-header) > a:hover {
    background: rgba(3, 137, 203, 0.07);
    color: var(--hn2-blue);
}

/* «Скоро» в правой панели */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.is-soon > a .hn2-badge {
    margin-left: auto;
}

/* Правая панель с подгруппами (3 колонки) — когда внутри есть with-sublist */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep:has(> li.with-sublist) {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 12px;
    align-items: start;
    min-width: 520px;
}

/* Заголовок колонки в сетке — на всю ширину сетки */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep:has(> li.with-sublist) > .hn2-panel-header {
    grid-column: 1 / -1;
}

/* Пункт-подгруппа (секция внутри правой панели) */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.with-sublist > a {
    font-weight: 600;
    font-size: 14px;
    color: var(--hn2-black);
    padding: 6px 10px 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    margin-bottom: 2px;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.with-sublist > a:hover {
    color: var(--hn2-blue);
}

/* Дочерние пункты внутри секции */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.with-sublist > .sublist--deep {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    box-shadow: none !important;
    padding: 0 0 8px 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    display: block !important;
    min-width: 0 !important;
    max-width: none !important;
    transition: none !important;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.with-sublist > .sublist--deep > li > a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.6);
    font-size: 13px;
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: normal;
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist > .sublist--deep > li.with-sublist > .sublist--deep > li > a:hover {
    color: var(--hn2-blue);
    background: rgba(3, 137, 203, 0.06);
}

/* Первый пункт левой панели подсвечен при открытии (до hover другого пункта) */
.hn2--mega .menu-item-mega > .sublist > li.with-sublist.hn2-mega-first-hover > a {
    background: rgba(3, 137, 203, 0.07);
    color: var(--hn2-blue);
}

.hn2--mega .menu-item-mega > .sublist > li.with-sublist.hn2-mega-first-hover > .sublist--deep {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}


/* ================================================
   FULL-WIDTH MEGA DROPDOWN (.hn2-megadrop)
   Позиционируется относительно <header> (position:fixed)
   ================================================ */

/* Убираем position:relative с li и a мегапункта — дропдаун должен
   позиционироваться относительно .hn2__main .container */
.hn2--mega .menu-item-mega {
    position: static;
}

.hn2--mega .menu-item-mega > a {
    position: static;
}

/* Container шапки становится containing block для мегадропдауна */
.hn2--mega .hn2__main .container {
    position: relative;
}

/* Сохраняем прозрачный бордер той же толщины — без него li теряет 2px и прыгает */
.hn2--mega .hn2__nav > ul > li.menu-item-mega:hover,
.hn2--mega .hn2__nav > ul > li.menu-item-mega.is-open {
    border: 1px solid transparent !important;
    border-bottom: 0 !important;
    border-radius: 0 !important;
}

/* Шеврон поворачивается через JS-класс is-open */
.hn2--mega .menu-item-mega.is-open > a::after {
    transform: translateY(-25%) rotate(-135deg) !important;
    opacity: 0.8 !important;
}

.hn2--mega .menu-item-mega.is-open > a {
    opacity: 1;
}

li.integration-drop {
    transition: .35s ease;
}
/* Шеврон ::after скрываем для integration-drop — используется span.hn2-drop-arrow */
li.integration-drop > a::after {
    display: none !important;
}

/* Стрелка-шеврон для integration-drop через inline span (a остаётся position:static) */
.hn2-drop-arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0.6;
    vertical-align: middle;
    flex-shrink: 0;
    margin-bottom: 4px;
    margin-left: 7px;
    transition: .35s ease;
}

li.integration-drop.is-open .hn2-drop-arrow {
    transform: rotate(-135deg);
    opacity: 0.8;
    margin-bottom: -2px;
}

/* Сам дропдаун — полная ширина, прозрачный */
.hn2-megadrop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.08s ease, visibility 0.08s ease;
    z-index: 200;
    display: block;
    max-width: 1340px;
    margin: 0 auto;
}

/* Дропдаун открывается через JS-класс .is-open на родительском <li> */
.hn2--mega .menu-item-mega.is-open .hn2-megadrop {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    max-width: 1340px;
    margin: 0 auto;
}

/* Враппер внутри дропдауна — фон, тени, скругление нижних углов.
   Кастомный класс вместо .container чтобы избежать конфликтов с глобальными стилями */
.hn2-megadrop__box {
    width: 100%;
    box-sizing: border-box;
    background: var(--hn2-white);
    box-shadow: 0 8px 24px rgba(0, 35, 11, 0.08);
    clip-path: inset(0 -50px 100% -50px);
    transform: translateY(-6px);
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: none;
    transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hn2--mega .menu-item-mega.is-open .hn2-megadrop__box {
    clip-path: inset(0 -50px -50px -50px);
    transform: translateY(0);
}

/* Внутренний контейнер — горизонтальный flex с паддингами как у .container */
.hn2-megadrop__inner {
    display: flex;
    align-items: stretch;
    min-height: 200px;
    padding: 18px 16px 18px;
    width: 100%;
    box-sizing: border-box;
}

/* Левая панель */
.hn2-megadrop__left {
    max-width: 307px;
    width: 100%;
    min-width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding-right: 16px;
    margin-right: 0;
}

/* Список пунктов левой панели */
.hn2-megadrop__list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.hn2-megadrop__list > li {
    display: block;
}

.hn2-megadrop__list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: var(--hn2-black);
    font-size: 15px;
    font-weight: 300;
    padding: 10px;
    line-height: 1.24;
    letter-spacing: -.03em;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    white-space: normal;
    padding-right: 15px;
}

/* Шеврон > — только у пунктов с дочерними ссылками */
.hn2-megadrop__list > li > a::after {
    display: none;
}

.hn2-megadrop__list > li.has-children > a::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #bbb;
    border-bottom: 1.5px solid #bbb;
    transform: rotate(-45deg);
    flex-shrink: 0;
    transition: border-color 0.15s;
}

/* Hover / активный пункт */
.hn2-megadrop__list > li:hover > a,
.hn2-megadrop__list > li.is-active > a {
    background: rgba(243, 243, 243, 1);
    color: var(--hn2-black);
}

.hn2-megadrop__list > li.has-children:hover > a::after,
.hn2-megadrop__list > li.has-children.is-active > a::after {
    border-color: rgba(64, 64, 64, 1);
}

/* Кнопка «Связаться с нами» внизу левой панели */
.hn2-megadrop__contact {
    padding: 14px 14px 4px;
    /* border-top: 1px solid rgba(0, 0, 0, 0.07); */
    margin-top: 12px;
    padding-left: 0;
}

.hn2-megadrop__contact p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 300;
    color: rgba(64, 64, 64, 1);
    line-height: 1.24;
    letter-spacing: -.02em;
}

.hn2-megadrop__contact-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
    font-weight: 300;
    color: rgba(3, 137, 203, 1);
    border: 1.5px solid rgba(3, 137, 203, 1);
    letter-spacing: -.02em;
    border-radius: 5px;
    padding: 12px 20px;
    transition: background 0.15s, color 0.15s;
}

.hn2-megadrop__contact-btn:hover {
    background: rgba(3, 137, 203, 0.08);
}

/* Правые панели */
.hn2-megadrop__panels {
    flex: 1;
    padding: 0 0 0 40px;
    position: relative;
    min-height: 160px;
}

/* Каждая панель скрыта по умолчанию */
.hn2-megadrop__panel {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.hn2-megadrop__panel.is-active {
    display: flex;
    animation: hn2-panel-in 0.1s ease;
}

@keyframes hn2-panel-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок панели (ссылка на страницу раздела) */
.hn2-megadrop__panel-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    color: var(--hn2-black);
    text-decoration: none;
    margin-bottom: 5px;
    padding: 1px 10px;
    transition: color 0.15s;
    line-height: 1;
    letter-spacing: -.02em;
}

.hn2-megadrop__panel-title:hover {
    color: var(--hn2-blue);
}

/* Список пунктов в правой панели (одна колонка) */
.hn2-megadrop__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hn2-megadrop__panel-list > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: rgba(19, 21, 26, 1);
    font-size: 15px;
    font-weight: 300;
    max-width: 300px;
    padding: 12px 10px;
    border-radius: 10px;
    transition: background 0.15s, color 0.15s;
    letter-spacing: -.02em;
    line-height: 1;
}

.hn2-megadrop__panel-list > li > a:hover {
    background: rgba(243, 243, 243, 1);
    color: rgba(3, 137, 203, 1);
}

/* Сеточная раскладка для панели с колонками */
.hn2-megadrop__panel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 20px;
    align-items: start;
}

/* Заголовок колонки */
.hn2-megadrop__col-title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hn2-black);
    text-decoration: none;
    padding: 6px 8px 4px;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: color 0.15s;
}

.hn2-megadrop__col-title:hover {
    color: var(--hn2-blue);
}

/* Дочерние ссылки внутри колонки */
.hn2-megadrop__col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hn2-megadrop__col ul li a {
    display: block;
    text-decoration: none;
    color: rgba(19, 19, 19, 0.6);
    font-size: 13px;
    padding: 5px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.hn2-megadrop__col ul li a:hover {
    color: var(--hn2-blue);
    background: rgba(3, 137, 203, 0.06);
}

.hn2__nav .integration-drop > a {
    position: static !important;
    padding-right: 6px !important;
    margin-right: 2px;
}
.hn2__nav .integration-drop  {
    position: static !important;
    margin-right: -5px;

}
