.deco-main-menu {
    position: relative;
    z-index: 3000;
    width: 100%;
    background: #f8d000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    font-family: 'Didact Gothic', Arial, sans-serif;
}

.deco-menu-list,
.deco-submenu,
.deco-mega-links,
.deco-side-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.deco-menu-list {
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: #f8d000;
}

.deco-menu-item {
    position: relative;
}

.deco-menu-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    color: #1d1d1d;
    text-decoration: none;
    font-weight: 600;
    border-right: 1px solid rgba(0, 0, 0, 0.12);
    transition: background-color 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}

.deco-menu-link:hover,
.deco-menu-item:hover > .deco-menu-link,
.deco-products-item.deco-mega-active > .deco-menu-link {
    background: #e0be00;
    color: #ffffff;
    text-decoration: none;
}

.deco-submenu-toggle {
    display: none;
}

.deco-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #f8d000;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 3100;
}

.deco-menu-item:hover > .deco-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.deco-products-item:hover > .deco-submenu {
    opacity: 0;
    visibility: hidden;
}

.deco-submenu .deco-submenu {
    top: 0;
    left: 100%;
}

.deco-submenu .deco-menu-link {
    min-height: 38px;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.deco-products-item {
    position: static;
}

.deco-mega-panel {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(10px, 4vh, 42px) clamp(8px, 2vw, 20px);
    background: rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.deco-mega-panel.open {
    display: flex;
}

body.deco-mega-open {
    overflow: hidden;
}

.deco-mega-modal {
    position: relative;
    width: min(1200px, 94vw);
    max-height: calc(100dvh - clamp(20px, 8vh, 84px));
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
    padding: clamp(14px, 2vw, 24px);
    overflow: hidden;
}

.deco-mega-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    border: none;
    background: #333333;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.deco-mega-close:hover {
    background: #000000;
}

.deco-mega-layout {
    display: grid;
    grid-template-columns: clamp(210px, 24vw, 280px) minmax(0, 1fr);
    gap: clamp(12px, 2vw, 22px);
    max-height: calc(100dvh - clamp(64px, 12vh, 140px));
    overflow: hidden;
}

.deco-mega-tabs {
    background: #fff6b8;
    border-right: 1px solid #f0d900;
    padding: 10px;
    overflow-y: auto;
    max-height: calc(100dvh - clamp(86px, 14vh, 164px));
    scrollbar-width: thin;
}

.deco-mega-tab {
    display: block;
    width: 100%;
    border: none;
    background: transparent;
    color: #1a1a1a;
    text-align: left;
    padding: clamp(7px, 1.2vh, 10px) 8px;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 700;
    line-height: 1.15;
    cursor: pointer;
    border-radius: 5px;
}

.deco-mega-tab:hover,
.deco-mega-tab.active {
    background: #ffe874;
}

.deco-mega-tab.inactive {
    opacity: 0.55;
}

.deco-mega-content {
    min-width: 0;
    padding: 6px 14px 0 0;
    overflow-y: auto;
    max-height: calc(100dvh - clamp(86px, 14vh, 164px));
    scrollbar-width: thin;
}

.deco-mega-pane {
    display: none;
}

.deco-mega-pane.active {
    display: block;
}

.deco-mega-primary-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: clamp(10px, 2vh, 18px) clamp(18px, 3vw, 42px);
    padding: 8px 0 18px;
    border-bottom: 3px solid #f8d000;
    margin-bottom: 18px;
}

.deco-mega-primary-links a {
    color: #1d2433;
    font-size: clamp(15px, 1.2vw, 16px);
    line-height: 1.25;
    text-decoration: none;
    font-weight: 500;
}

.deco-mega-primary-links a:hover {
    color: #b69700;
    text-decoration: underline;
}

.deco-mega-secondary-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(130px, 1fr));
    gap: clamp(10px, 2vh, 18px) clamp(18px, 3vw, 42px);
    align-items: start;
}

.deco-mega-secondary-links a {
    color: #1d2433;
    font-size: clamp(15px, 1.2vw, 16px);
    line-height: 1.25;
    text-decoration: none;
    font-weight: 400;
}

.deco-mega-secondary-links a:hover {
    color: #b69700;
    text-decoration: underline;
}

.deco-mega-link-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.deco-mega-link-group > a {
    font-weight: 700;
}

.deco-mega-link-group-children {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-left: 12px;
}

.deco-mega-link-group-children a {
    font-size: 14px;
}

.deco-mega-empty {
    color: #777777;
    font-size: 15px;
    padding: 15px 0;
}

.deco-menu-item.inactive,
.deco-side-menu li.inactive {
    opacity: 0.5;
}

.deco-menu-item.inactive > a,
.deco-side-menu li.inactive > a,
.deco-mega-primary-links a.inactive,
.deco-mega-secondary-links a.inactive {
    pointer-events: none;
    color: #999999 !important;
}

.deco-page-with-side {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.deco-page-content {
    min-width: 0;
}

.deco-side-menu {
    background: #ffffff;
    border: 1px solid #e3e3e3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 14px;
    position: sticky;
    top: 62px;
    max-height: 64vh;
    max-height: 64dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.deco-side-menu-title {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f8d000;
}

.deco-side-menu-list li {
    margin: 0;
}

.deco-side-menu-list a {
    display: block;
    color: #333333;
    text-decoration: none;
    padding: 8px 8px;
    border-bottom: 1px solid #eeeeee;
    font-size: 14px;
}

.deco-side-menu-list a:hover {
    color: #000000;
    background: #fff6b8;
    text-decoration: none;
}

.deco-side-menu-list .deco-side-menu-list {
    margin-left: 12px;
}

.deco-side-menu-structure {
    opacity: 1 !important;
}

.deco-side-menu-section {
    display: block;
    margin: 10px 0 4px;
    padding: 9px 8px 7px;
    background: #fff8c6;
    border-left: 4px solid #f8d000;
    color: #222222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    cursor: default;
}

.deco-side-menu-list > .deco-side-menu-structure:first-child > .deco-side-menu-section {
    margin-top: 0;
}

.deco-side-menu-structure > .deco-side-menu-list {
    margin-left: 8px;
    padding-left: 8px;
    border-left: 2px solid #f1e28a;
}

.deco-side-menu-structure > .deco-side-menu-list a {
    font-size: 13px;
}

@media (min-width: 1025px) and (max-width: 1320px) {
    .deco-menu-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .deco-menu-item {
        flex: 0 0 auto;
    }

    .deco-menu-link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 15px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    }
}

@media (min-width: 1025px) and (max-width: 1180px) {
    .deco-menu-link {
        padding: 0 10px;
        font-size: 14px;
    }
}

@media (max-width: 1180px) {
    .deco-menu-link {
        padding: 0 12px;
    }

    .deco-mega-modal {
        width: 94vw;
    }

    .deco-mega-layout {
        grid-template-columns: 245px minmax(0, 1fr);
    }

    .deco-mega-primary-links,
    .deco-mega-secondary-links {
        gap: 14px 24px;
    }
}

@media (max-width: 980px), (max-height: 740px) {
    .deco-mega-panel {
        padding: 10px;
    }

    .deco-mega-modal {
        width: 96vw;
        max-height: calc(100dvh - 20px);
        padding: 42px 14px 14px;
    }

    .deco-mega-layout {
        max-height: calc(100dvh - 76px);
        grid-template-columns: 230px minmax(0, 1fr);
        gap: 12px;
    }

    .deco-mega-tabs,
    .deco-mega-content {
        max-height: calc(100dvh - 84px);
    }

    .deco-mega-primary-links,
    .deco-mega-secondary-links {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 1024px) {
    .deco-main-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.24s ease;
        background: #1a1a1a;
        z-index: 99990;
        box-shadow: 2px 0 14px rgba(0, 0, 0, 0.4);
    }

    .deco-main-menu.open {
        transform: translateX(0);
    }

    .deco-menu-list {
        display: block;
        background: #1a1a1a;
        padding: 74px 12px 20px;
    }

    .deco-menu-item {
        margin-bottom: 6px;
    }

    .deco-products-item {
        position: relative;
    }

    .deco-products-item > .deco-submenu-toggle {
        top: 4px;
        right: 6px;
    }

    .deco-menu-link {
        min-height: 42px;
        padding: 10px 42px 10px 12px;
        background: #333333;
        color: #ffffff;
        border: 0;
        border-radius: 6px;
        white-space: normal;
    }

    .deco-menu-link:hover,
    .deco-menu-item:hover > .deco-menu-link,
    .deco-products-item.deco-mega-active > .deco-menu-link {
        background: #444444;
        color: #ffffff;
    }

    .deco-submenu-toggle {
        display: flex;
        position: absolute;
        right: 6px;
        top: 4px;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 6px;
        background: #f8d000;
        color: #111111;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
    }

    .deco-submenu-toggle.open {
        transform: rotate(45deg);
    }

    .deco-submenu {
        position: static;
        min-width: 0;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-top: 0;
        padding: 6px 0 2px 12px;
    }

    .deco-submenu.open {
        display: block;
    }

    .deco-submenu .deco-menu-link {
        background: #252525;
        font-size: 14px;
        border-bottom: 0;
    }

    .deco-mega-panel {
        z-index: 999999;
        padding: 8px;
        align-items: flex-start;
    }

    .deco-mega-modal {
        width: min(520px, 100%);
        max-height: calc(100dvh - 16px);
        border-radius: 8px;
        padding: 66px 12px 14px;
    }

    .deco-mega-close {
        top: 16px;
        right: 14px;
        width: 42px;
        height: 42px;
        font-size: 26px;
        border-radius: 4px;
    }

    .deco-mega-layout {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        max-height: calc(100dvh - 92px);
        overflow: hidden;
    }

    .deco-mega-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 165px;
        min-height: 0;
        border-right: 0;
        border-bottom: 2px solid #f0d900;
        margin-bottom: 0;
        padding: 8px;
        scrollbar-width: thin;
    }

    .deco-mega-tab {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 38px;
        white-space: normal;
        font-size: 13px;
        line-height: 1.15;
        padding: 8px 9px;
        border: 1px solid transparent;
        background: rgba(255, 255, 255, 0.45);
    }

    .deco-mega-tab.active {
        background: #ffe874;
        border-color: #111111;
        box-shadow: inset 0 0 0 1px #111111;
    }

    .deco-mega-content {
        padding: 0 4px 0 0;
        max-height: calc(100dvh - 276px);
        overflow-y: auto;
    }

    .deco-mega-primary-links,
    .deco-mega-secondary-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .deco-mega-primary-links {
        padding: 4px 0 12px;
        margin-bottom: 12px;
    }

    .deco-mega-primary-links a,
    .deco-mega-secondary-links a {
        display: block;
        padding: 4px 0;
        font-size: 15px;
        line-height: 1.25;
    }

    .deco-page-with-side {
        display: block;
    }

    .deco-side-menu {
        position: static;
        margin-bottom: 14px;
        padding: 10px;
        max-height: 42vh;
        max-height: 42dvh;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }

    .deco-side-menu-title {
        font-size: 16px;
        margin-bottom: 7px;
        padding-bottom: 6px;
    }

    .deco-side-menu-list a {
        padding: 6px 7px;
        font-size: 13px;
        line-height: 1.2;
    }

    .deco-side-menu-list .deco-side-menu-list {
        margin-left: 8px;
    }

    .deco-side-menu-section {
        margin: 7px 0 3px;
        padding: 7px 7px 6px;
        font-size: 13px;
        line-height: 1.2;
    }

    .deco-side-menu-structure > .deco-side-menu-list {
        margin-left: 6px;
        padding-left: 6px;
    }

    .deco-side-menu-structure > .deco-side-menu-list a {
        font-size: 12.5px;
    }
}

@media (max-width: 560px) {
    .deco-mega-panel {
        padding: 0;
        background: rgba(0, 0, 0, 0.72);
    }

    .deco-mega-modal {
        width: 100vw;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 58px 10px 12px;
        overflow: hidden;
    }

    .deco-mega-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .deco-mega-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        max-height: calc(100dvh - 70px);
        gap: 8px;
        overflow: hidden;
    }

    .deco-mega-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: 33dvh;
        height: auto;
        overflow: visible;
        padding: 5px;
        gap: 4px;
        border-right: 0;
        border-bottom: 2px solid #f0d900;
    }

    .deco-mega-tab {
        display: flex;
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 32px;
        white-space: normal;
        font-size: 12px;
        line-height: 1.08;
        padding: 4px 7px;
    }

    .deco-mega-content {
        max-height: calc(100dvh - 33dvh - 86px);
        min-height: 120px;
        overflow-y: auto;
        padding: 0 4px 0 0;
    }

    .deco-mega-primary-links {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .deco-mega-primary-links a,
    .deco-mega-secondary-links a {
        font-size: 15px;
    }

    .deco-side-menu {
        max-height: 36vh;
        max-height: 36dvh;
        padding: 9px;
    }

    .deco-side-menu-title {
        font-size: 15px;
    }

    .deco-side-menu-list a {
        padding: 5px 6px;
        font-size: 12.5px;
    }

    .deco-side-menu-section {
        padding: 6px 6px 5px;
        font-size: 12.5px;
    }
}

@media (max-width: 390px) {
    .deco-mega-modal {
        padding-top: 56px;
    }

    .deco-mega-layout {
        max-height: calc(100dvh - 68px);
    }

    .deco-mega-tabs {
        max-height: 33dvh;
        height: auto;
        overflow: visible;
        padding: 5px;
        gap: 4px;
    }

    .deco-mega-tab {
        font-size: 11.5px;
        min-height: 31px;
        padding: 4px 6px;
        line-height: 1.05;
    }

    .deco-mega-content {
        max-height: calc(100dvh - 33dvh - 82px);
        min-height: 115px;
    }

    .deco-side-menu {
        max-height: 32vh;
        max-height: 32dvh;
        padding: 8px;
    }

    .deco-side-menu-list a {
        padding: 5px 6px;
        font-size: 12px;
    }

    .deco-side-menu-section {
        margin: 6px 0 3px;
        padding: 6px;
        font-size: 12px;
    }
}

@media (max-width: 1024px) and (max-height: 520px) {
    .deco-mega-panel {
        padding: 0;
        align-items: flex-start;
    }

    .deco-mega-modal {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 50px 10px 10px;
        overflow: hidden;
    }

    .deco-mega-close {
        top: 10px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .deco-mega-layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        max-height: calc(100dvh - 60px);
        gap: 7px;
        overflow: hidden;
    }

    .deco-mega-tabs {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-height: 33dvh;
        height: auto;
        overflow: visible;
        padding: 4px;
        gap: 4px;
        border-right: 0;
        border-bottom: 2px solid #f0d900;
    }

    .deco-mega-tab {
        min-height: 31px;
        font-size: 11px;
        line-height: 1.05;
        padding: 3px 6px;
    }

    .deco-mega-content {
        max-height: calc(100dvh - 33dvh - 74px);
        min-height: 90px;
        overflow-y: auto;
        padding: 0 4px 0 0;
    }

    .deco-mega-primary-links,
    .deco-mega-secondary-links {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
        gap: 8px 16px;
    }

    .deco-mega-primary-links {
        padding: 2px 0 8px;
        margin-bottom: 8px;
    }

    .deco-mega-primary-links a,
    .deco-mega-secondary-links a {
        font-size: 13px;
        line-height: 1.15;
        padding: 2px 0;
    }

    .deco-side-menu {
        max-height: 34vh;
        max-height: 34dvh;
        padding: 8px;
    }
}