h1 {
    margin: 0 0 40px 0;
}

main {
    min-height: 55vh;
}

.sitemap {
    width: 100%;
    display: flex;
    flex-flow: column;
    margin-bottom: 70px;
}

.sitemap .page-title {
    margin-top: 70px;
}

.sitemap-wrapper {
    display: flex;
    border-radius: 24px;
    padding: 30px;
    overflow: hidden;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    gap: 40px;
}

.mobile-header {
    display: none;
}

.sitemap-wrapper>* {
    position: relative;
    z-index: 3;
}


.sitemap-sidebar {
    width: 290px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 24px;
}

.sitemap-sidebar::before {
    border-radius: 24px;
}

.sitemap-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 20px 30px;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    gap: 20px;
}

.sitemap-sidebar li {
    padding: 0;
    cursor: pointer;
    position: relative;
}

.sitemap-sidebar li span {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 36px;
    color: #FFFFFF;
    transition: background 0.3s, color 0.3s;
}

.sitemap-sidebar li:hover span {
    background: linear-gradient(90deg, #EADF82 0%, #EFA75E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sitemap-sidebar li.active {
    padding-left: 16px;
}

.sitemap-sidebar li.active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #EADF82 0%, #EFA75E 100%);
    position: absolute;
    left: 0;
    top: 18px;
    border-radius: 0 4px 4px 0;
}

.sitemap-sidebar li.active span {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 500;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    background: linear-gradient(90deg, #EADF82 0%, #EFA75E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


.sitemap-content {
    flex: 1;
    padding: 0;
}

.sitemap-section {
    display: none;
}

.sitemap-section.active {
    display: block;
}

.sitemap-section ul {
    list-style: none;
    margin: 0;
    padding: 20px 0 0 0;
    display: grid;
    grid-template-columns: repeat(5, auto);
    justify-content: space-between;
    gap: 10px 20px;
}

.sitemap-section ul>li {
    flex: 0 0 auto;
}

.sitemap-section ul>li span,
.sitemap-section ul>li a {
    font-family: var(--font-main);
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.74);
}

.sitemap-section ul>li:hover span,
.sitemap-section ul>li:hover a {
    background: linear-gradient(90deg, #EADF82 0%, #EFA75E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


@media (max-width: 1100px) {
    .sitemap-section ul {
        grid-template-columns: repeat(4, auto);
    }
}

@media (max-width: 1024px) {
    h1.page-title {
        margin-bottom: 30px;
        font-size: 44px;
        line-height: 52px;
    }

    .sitemap .page-title {
        margin-top: 50px;
    }

    .sitemap {
        margin-bottom: 50px;
    }

    .sitemap-wrapper {
        gap: 30px;
        padding: 20px;
    }
}

@media (max-width: 990px) {
    .sitemap-section ul {
        grid-template-columns: repeat(3, auto);
    }
}

@media (max-width: 767px) {
    .sitemap-section ul {
        grid-template-columns: repeat(2, auto);
    }
}

@media (max-width: 720px) {
    .sitemap-wrapper {
        display: block;
        border: none;
        box-shadow: none;
        padding: 20px;
    }

    .sitemap-section ul {
        grid-template-columns: repeat(3, auto);
    }

    .sitemap-sidebar {
        display: none;
    }

    .sitemap-content {
        padding: 0;
    }

    .sitemap-section {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: inset 0px 0px 10px rgba(234, 223, 130, 0.34);
        backdrop-filter: blur(10px);
        border-radius: 14px;
        display: block;
        margin-bottom: 10px;
        overflow: hidden;
        max-height: 50px;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 20px;
        cursor: pointer;
        font-family: var(--font-main);
        font-style: normal;
        font-weight: 400;
        font-size: 18px;
        line-height: 28px;
        text-align: center;
        color: #FFFFFF;
        transition: background 0.3s;
        margin: 0;
    }

    .mobile-header:hover {}

    .mobile-header::after {
        content: '';
        width: 24px;
        height: 24px;
        background-image: url('../../images/front/arrow_drop_down_circle.svg');
        background-size: contain;
        background-repeat: no-repeat;
        transition: transform 0.3s;
    }

    .sitemap-section.open .mobile-header::after {
        background-image: url('../../images/front/arrow_drop_down_circle_light.svg');
        transform: rotate(180deg);
    }

    .sitemap-section ul {
        display: none;
        padding: 12px 20px;
        margin: 0;
    }

    .sitemap-section.open {
        max-height: 100%;
    }

    .sitemap-section.open ul {
        display: grid;
        animation: dropdown 0.25s ease-in-out;
        padding-top: 10px;
        padding-bottom: 15px;
    }

    .sitemap-section.open .mobile-header {
        padding-top: 15px;
    }

    @keyframes dropdown {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 650px) {
    .sitemap .page-title {
        margin-top: 40px;
    }

    .sitemap {
        margin-bottom: 40px;
    }

    h1.page-title {
        font-size: 32px;
        line-height: 41px;
        margin-bottom: 20px;
        margin-left: 15px;
    }

    .sitemap-section ul {
        grid-template-columns: repeat(2, auto);
    }

    .sitemap-wrapper {
        padding: 15px;
    }
}

@media (max-width: 560px) {

    .sitemap-section ul {
        grid-template-columns: 1fr;
    }
}