html {
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --body-color: #ffffff;
    --footer-color: #f8f8f9;
    --main-color: #4A235A;
    --main-hover-color: #3f1a58;
    --submenu-color: #6C3483;
    --submenu-l3-color: #A569BD;
    --submenu-l4-color: #4A235A;
}

ul {
    list-style: none;
}

body {
    position: relative;
    background-color: var(--body-color);
    margin: 0;
    font-family: Arial, Roboto, sans-serif;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

/* Стилизация скроллбара */
body::-webkit-scrollbar {
    width: 16px;
    /* Ширина вертикального скроллбара */
    height: 16px;
    /* Высота горизонтального скроллбара */
}

/* Дорожка скроллбара */
body::-webkit-scrollbar-track {
    background: var(--body-color);
}

/* Ползунок скроллбара */
body::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
    border: 3px solid var(--body-color);
}

/* Ползунок при наведении */
body::-webkit-scrollbar-thumb:hover {
    background: var(--main-hover-color);
}

header {
    background: var(--main-color);
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
}

.header-navigation {
    /*display: flex;
    flex-flow: row wrap;*/
    display: grid;
    grid-template-columns: 234px 125px 1fr 120px 150px;
    border-bottom: solid 1px #00000020;
    min-height: 60px;
    align-items: center;
}

.header-navigation>div {
    padding: 10px;
}

.header-seaarch .input-group {
    /* margin-top: 5px; */
    border-radius: 5px;
    overflow: hidden;

}

.catalog-btn {
    display: inline-block;
    background: #f73859;
    border-radius: 5px;
    color: #ffffff;
    text-align: center;
    font-weight: bold;

    padding: 6px 16px;
    margin: 5px;
}

.input-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    background-color: #fff;
}

.input-group .form-control {
    position: relative;
    margin-bottom: 0;
    background-color: transparent;

}

.form-control {
    font-size: 16px;
    padding: 6px 16px;
    border: none;
}

.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
}

.btn {
    border-radius: 5px;
    border: none;
    font-weight: bold;
    padding: 0 16px;
}

.btn-danger {
    color: #fff;
    background-color: #f73859;
}

.input-group .btn {
    border-radius: 5px 0 0 5px;
}

.social-icon ul {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(3, 1fr);
    list-style: none;
    padding: 6px;
    margin: 0;
    justify-items: center;
}

.social-icon ul>li {
    font-size: 26px;
}

.social-icon a {
    color: #fff;
}

.header-lk ul {
    padding: 5px;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row-reverse;
    gap: 5px;
}

.header-lk a {
    color: #fff;
    text-decoration: none;
}

.header-lk .icon,
.bottom_mobile_menu .icon {
    text-align: center;
}

.header-lk .icon-text,
.bottom_mobile_menu .icon-text {
    font-size: 12px;
    text-align: center;
    font-weight: bold;
}

.katalog {
    display: none;
    position: fixed;
}

.header-menu {
    position: relative;
    width: 100%;

    .main-menu {
        display: flex;
        width: fit-content;
        gap: clamp(0rem, -2.778rem + 5.79vw, 1.563rem);
        margin: 0;
        padding-inline-start: clamp(0rem, -1.111rem + 2.31vw, 0.625rem);

        .menu-item {
            border-radius: 10px;
            display: flex;
            gap: 5px;
            align-items: center;
            list-style: none;
            position: relative;
            padding: 15px 10px;

            &.level1 {
                flex: 0 0 auto;
                border-radius: 10px 10px 0 0;

                &>.submenu {
                    border-radius: 0 0 10px 10px;
                    background-color: var(--submenu-color);
                }
            }

            &.level2 {
                border-radius: 10px 0 0 10px;

                &>.submenu {
                    border-radius: 0 10px 10px 10px;
                    background-color: var(--submenu-l3-color);
                }
            }

            a {
                display: inline-block;
                text-decoration: none;
                color: #fff;
                width: calc(100% - 14px);
            }

            .dropdown-button {
                content: url(../img/btn-arrow-2.svg);
            }

            .submenu {
                display: none;
                width: clamp(11.25rem, -2.083rem + 27.78vw, 18.75rem);
                z-index: 10;
                padding: 0;
                box-sizing: border-box;


                .menu-item {
                    .dropdown-button {
                        transform: rotate(-90deg);
                    }
                }
            }
        }
    }

    .more-btn {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        top: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        font-size: 30px;
        text-align: center;

        i {
            color: #ffffff;
            line-height: 100%;
            user-select: none;
        }
    }

    .burger-menu {
        position: absolute;
        z-index: 1000;
        top: 110%;
        right: 0;
        width: 300px;
        background-color: var(--main-color);
        margin: 0;
        padding: 10px;
        transform: translateX(100%);
        transition: 0.4s;
        border-radius: 10px;

        &.open {
            transform: translateX(0);
        }


        .menu-item {
            display: grid;
            grid-template-columns: auto 1fr;
            align-items: center;
            justify-content: space-between;
            list-style: none;
            padding: 15px;
            position: relative;
            border-radius: 10px;

            &.open {
                &.level1 {
                    background-color: var(--submenu-color);
                }

                &.level2 {
                    background-color: var(--submenu-l3-color);
                }

                &.level3 {
                    background-color: var(--submenu-l4-color);
                }
            }

            &.open {
                &>.dropdown-button {
                    transform: rotate(180deg);
                }
            }

            a {
                display: inline-block;
                text-decoration: none;
                color: #fff;
            }

            .dropdown-button {
                content: url(../img/btn-arrow-2.svg);
                transform: rotate(0);
                transition: 0.4s;
                justify-self: end;
            }

            .submenu {
                display: none;
                z-index: 10;
                grid-column: 1 / -1;
                border-radius: 10px;

                &.open {
                    display: block;
                }
            }


        }
    }

    .hidden {
        display: none;
    }
}



.menu-item {
    text-decoration: none;
}

.bottom_mobile_menu {
    z-index: 2147483647;
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 100%;
    height: 60px;
    width: 100%;
    background: #fff;
    border-top: solid 1px #663d82a0;
}

.bottom_mobile_menu ul {
    list-style: none;
    display: grid;
    height: 100%;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 0;
}

.bottom_mobile_menu a {
    text-decoration: none;
    color: var(--main-color);
}

.user_profile {
    text-align: center;
    position: relative;
}

.user-pic {
    width: 50px;
    height: 50px;
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

.user-avatar {
    border-radius: 23px;
    margin: 2px 2px 2px 2px;
    height: 46px;
    width: 46px;
}

.user-pic_has-zs_yes:after {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    content: "";
    background: url(//yastatic.net/s3/frontend/yandex-lego/serp-header/_/VDrTYsF1.svg) center center no-repeat;
    background-size: contain;
}

























.footer {
    display: block;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--footer-color);
}

.footer-column {
    padding: 60px;
}

.footer-text {
    background-color: var(--main-color);
    border-top-right-radius: 20px;
    color: #fff;
}

.footer-content {
    padding-bottom: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "links support widget"
        "copyright copyright copyright";
}

.footer-links {
    grid-area: links;
}

.footer-links-title {}

.footer-links-menu {
    display: flex;
}

.footer-links-menu-item {}

.footer-support {
    grid-area: support;
}

.footer-support-title {}

.footer-support-menu {}

.footer-support-menu-item {}

.footer-widget {
    grid-area: widget;
}

.footer-logo {}

.footer-social-icons {
    display: flex;
}

.footer-social-icons-item {
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    line-height: 35px;
    text-align: center;
    border: 1px solid #353f4a;
    transition: all .6s linear;
    margin-right: 8px;
}

.footer-copyright {
    grid-area: copyright;
}