#footer {
    padding: 40px 120px; 
    background: #0D2F90;
}
.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
}
.footer-logos {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.footer-logo:nth-child(1),
.footer-logo:nth-child(3) {
    max-width: 200px;
}
.footer-logo:nth-child(2) {
    max-width: 120px;
}

@media only screen and (max-width: 600px) {
    #footer  {
        height: auto;
        padding: 3.75rem 0.9375rem;
    }
    .footer-container {
        grid-template-columns: auto;
    }

    .footer-bottom {
        margin-top: 20px !important;
        width: 100% !important;
    }
    .footer-logos {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 20px;
    }
    .footer-logo:nth-child(3) {
        max-width: 8.8125rem;
        margin-top: 20px;
    }
    .footer-logo:nth-child(2) {
        max-width: 3.75rem;
    }
    .footer-logo:nth-child(1) {
        max-width: 10rem;
    }
}


#footer-links {
    color: #2C57DC;
    background: #F8FBFF;
    border: 1px dashed #2C57DC;
}
#footer-contacts {
    color: #F8FBFF;
    background: #2C57DC;
    border: 1px dashed #2C57DC;
}
#footer-rules {
    margin-top: 30px;
    color: #F8FBFF;
    background: transparent;
    border: 1px dashed #2C57DC;
}

#footer-links.footer-sticker::after {
    background: #2C57DC;
    border: 1px dashed #F8FBFF;
}
#footer-contacts.footer-sticker::after {
    background: #F8FBFF;
    border: 1px dashed #2C57DC;
}
#footer-rules.footer-sticker::after {
    background: #2C57DC;
    border: 1px dashed #0D2F90;
}


.footer-sticker {
    position: relative;
    padding: 20px 30px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 6px rgba(46, 46, 46, 0.5);
    clip-path: 
        polygon(
            0 0, 
            100% 0, 
            100% calc(100% - 30px),
            calc(100% - 60px) 100%,
            0 100%
        );
}
.footer-sticker::after {
    content:"";
	position: absolute;
    display: block;
    width: 60px;
    height: 30px;
	bottom: 0;
	right: 0;
    border-top-left-radius: 20px;
}   

.footer-sticker_title {
    font-size: 24px;
    font-family: 'Evolventa';
    margin: 10px 0;
}

.footer-sticker_content {
    list-style-type: none;
    margin: 0;
    padding: 0;
    line-height: 32px;
    font-size: 14px;
}
#footer-links .footer-sticker_content a:hover, 
#footer-contacts .footer-sticker_content a:hover {
    color: #0D2F90;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    width: 50%;
}
.footer-bottom p {
    color: #2C57DC;
}



.footer-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #F8FBFF;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 1s ease-out;
    z-index: 999;
}

.footer-overlay.show {
    transform: translateX(0);
}


.footer-overlay_content {
    height: 100%;
    color: #2C57DC;
    padding: 40px 120px;
}

.footer-close_btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    position: relative;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}
.footer-close_btn:hover {
    transform: rotate(90deg);
}

.footer-close_btn::before,
.footer-close_btn::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    height: 4px;
    background: #2C57DC;
    transition: transform 0.3s ease;
    transform-origin: center;
}

.footer-close_btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.footer-close_btn::after {
    transform:translate(-50%, -50%) rotate(-45deg);
}

.footer-close_btn span {
    display: block;
}

.footer-close_bar {
    width: 100%;
    height: 4px;
    background: #2C57DC; 
}

.footer-overlay_header {
    margin: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.footer-overlay_title {
    font-size: 64px;
    font-family: 'Evolventa';
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    width: 70%;
}

.footer-overlay_list {
    font-size: 14px;
    width: 70%;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-overlay_list li {
    margin: 10px 0;
}