/* Переопределение main.css для меню каталога */

.header .catalog-menu {
    height: auto;
    padding: 0;
    overflow: visible;
    z-index: 110 !important;
}

.header .catalog-menu.active {
    z-index: 110 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.header .catalog-menu-mobile.active {
    z-index: 110 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.catalog-menu .catalog-menu__wrap {
    display: block;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
}

.catalog-menu .container {
    height: auto;
}

.cat-dropdown {
    display: flex;
    align-items: stretch;
}

.cat-dropdown__left,
.cat-dropdown__col {
    width: 300px;
    flex-shrink: 0;
}

.cat-dropdown__right {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    width: auto;
}

.cat-dropdown__columns {
    display: flex;
    align-items: stretch;
    max-width: calc(100vw - 360px);
    overflow-x: auto;
}

.cat-dropdown:has(.cat-dropdown__section.has-children:hover) .cat-dropdown__columns,
.cat-dropdown__columns:hover {
    border-right: 1px solid #d7d7d7;
}

.cat-dropdown__col {
    display: flex;
    flex-direction: column;
    width: 300px;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f1f1f1;
}

.cat-dropdown__col:not(:last-child) {
    border-right: 1px solid #d7d7d7;
}

.cat-dropdown__sections {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cat-dropdown__section,
.cat-dropdown__sub {
    width: 100%;
}

.cat-dropdown__section > a,
.cat-dropdown__sub > a {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    min-height: 52px;
    padding: 14px 20px;
    text-decoration: none;
    color: var(--color-text);
    background: #f1f1f1;
    transition: background-color 0.2s ease-in-out;
}

.cat-dropdown__section > a {
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
}

.cat-dropdown__sub > a {
    font-weight: 500;
    font-size: 17px;
    line-height: 120%;
}

.cat-dropdown__section > a > span:not(.cat-dropdown__arrow),
.cat-dropdown__sub > a > span:not(.cat-dropdown__arrow) {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.cat-dropdown__left {
    display: flex;
    flex-direction: column;
    background: #f1f1f1;
}

.cat-dropdown__section.is-active > a,
.cat-dropdown__section:hover > a,
.cat-dropdown__sub.is-active > a,
.cat-dropdown__sub:hover > a,
.cat-dropdown__sub.is-current > a {
    background: #f5f5f5;
    box-shadow: inset -3px 0 0 var(--color-base);
}

.cat-dropdown__arrow {
    flex: 0 0 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 7px;
    height: 12px;
    margin-left: auto;
}

.cat-dropdown__arrow svg {
    display: block;
    width: 7px;
    height: 12px;
}

.cat-dropdown__download {
    flex-shrink: 0;
    margin: 15px 0;
    padding: 0;
    background: white;
}

.cat-dropdown__download .catalog-menu__btn-block {
    border: none;
    border-radius: 5px!important;

    padding: 16px;
}

.cat-dropdown__download .catalog-menu__btn-block p {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #434343;
}

.cat-dropdown__download .catalog-menu__button a {
    font-weight: 400!important;
    font-size: 16px!important;
    line-height: 135% !important;
    text-align: center!important;
    color: #fff!important;
}

@media (max-width: 991px) {
    .cat-dropdown {
        display: none;
    }
}

/* Мобильное drill-down меню */

.catalog-menu-mobile__nav {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 35px;
}

.cat-mobile {
    width: 100%;
}

.cat-mobile__header {
    display: none;
    width: 100%;
    border-bottom: 1px solid #b9b9b9;
}

.cat-mobile__header.is-visible {
    display: block;
}

.cat-mobile__back {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 19px 0;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
}

.cat-mobile__back-icon {
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: #fff;
    transform: rotate(180deg);
}

.catalog-menu-mobile .cat-mobile__back-icon {
    background-color: #fff;
}

.cat-mobile__back-icon svg {
    display: block;
    width: 7px;
    height: 12px;
}

.cat-mobile__arrow {
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background-color: #fecd4d;
    margin-left: auto;
}

.catalog-menu-mobile .cat-mobile__arrow {
    background-color: #fecd4d;
}

.cat-mobile__arrow svg {
    display: block;
    width: 7px;
    height: 12px;
}

.cat-mobile__list {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cat-mobile__item {
    width: 100%;
    border-bottom: 1px solid #b9b9b9;
}

.cat-mobile__row {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 58px;
}

.cat-mobile__link {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    min-height: 58px;
    padding: 19px 0;
    border: none;
    background: none;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    line-height: 120%;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
}

.cat-mobile__row .cat-mobile__link {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.cat-mobile__drill {
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.cat-mobile__text {
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word;
}

.cat-mobile__link .cat-mobile__arrow {
    flex: 0 0 30px;
    margin-left: auto;
}

.cat-mobile__drill .cat-mobile__arrow {
    margin-left: 0;
}

.cat-mobile__item.is-current .cat-mobile__link {
    color: var(--color-hover);
}

.cat-mobile__download {
    display: none;
    width: 100%;
    margin-top: 20px;
}

.cat-mobile__download.is-visible {
    display: block;
}

.cat-mobile__download .catalog-menu__btn-block {
    border: none;
    border-radius: 5px !important;
    padding: 16px;
    background: #fff;
}

.cat-mobile__download .catalog-menu__btn-block p {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #434343;
    margin: 0 0 20px;
}

.cat-mobile__download .catalog-menu__button a {
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 135% !important;
    text-align: center !important;
    color: #fff !important;
}

