footer {
    background: #000;
}

footer .content-flex-width {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 3vw 0;
}

.footer__column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    color: #fff;
    align-items: end;
    justify-content: space-between;
}

div#footer-social {
    flex-basis: 100%;
    justify-content: flex-end;
    display: flex;
    gap: 1.7rem;
    align-items: center;
    margin-bottom: 2rem;
}

a.footer__contact {
    font-size: clamp(18px, 1.8rem, 20px);
    color: #fff;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    line-height: 110%;
    text-align: right;
}

img.social-icon:nth-child(1) {
    width: 31px;
    height: 17px;
}

img.social-icon:nth-child(2) {
    width: 23px;
    height: 20px;
}

div#footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 7px;
    flex-basis: fit-content;
    margin-right: 1rem;
}

/* .footer__contacts-phones.anim-scale {
    margin: -3px;
} */

span.copyrights {
    font-family: 'Montserrat';
    display: flex;
    font-style: normal;
    font-weight: 600;
    font-size: clamp(12px, 1.2rem, 16px);
    line-height: 1;
    text-align: end;
}

div#footer-logo {
    margin-right: 26px;
}

footer img.btn-icon {
    position: absolute;
    right: 16px;
}

footer a.btn.light .btn-icon-white {
    opacity: 0;
    transition: opacity .4s ease, background .4s ease, color .4s ease;
}

footer a.btn.light {
    max-width: 140px;
    padding-left: 15px;
    font-weight: 600;
}

footer a.btn.light .btn-icon {
    position: initial;
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

footer a.btn.light .btn-icon-black {
    opacity: 1;
    transition: opacity .4s ease, background .4s ease, color .4s ease;
}

footer a.btn.light:hover .btn-icon-black {
    opacity: 0;
}

footer a.btn.light:hover .btn-icon-white {
    opacity: 1;
}

footer a.btn.light {
    transition: background .4s ease, color .4s ease;
    border: 1px solid transparent;
}

footer a.btn.light:hover {
    background: #000;
    color: #fff;
    transform: none;
    border: 1px solid #fff;
}

footer a.btn.light path {
    transition: fill .4s ease;
}

footer a.btn.light:hover path {
    fill: #fff !important;
}

.to-top {
    position: fixed;
    right: 65px;
    bottom: 35px;
    z-index: 100;
    transition: bottom 0.3s ease;
}


.to-top:hover svg circle {
    fill: #323232;
}

.to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fancybox__content {
    background: transparent !important;
    aspect-ratio: 16 / 9 !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: 100% !important;
    height: auto !important;
}

footer .content-flex-width {
    max-width: calc(var(--content-flex-width) - 4rem);
}

img.footer-logo {
    height: 89px;
    display: flex;
}

div#footer-copyrights {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer__contacts-phones.anim-scale {
    margin-bottom: -4px;
}

@media (min-width: 2000px) {
    img.footer-logo {
        width: 10rem;
    }

    span.copyrights {
        font-size: 18px;
    }

    a.footer__contact {
        font-size: clamp(20px, 2.2rem, 22px);
    }

    img.btn-icon {
        width: 25px;
        right: 30px !important;
    }

    img.social-icon {
        height: 3.2rem;
        max-width: 5rem;
    }

    div#footer-contacts {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 15px;
        flex-basis: 45%;
    }

    div#footer-social img {
        transform: scale(2);
    }

    div#footer-social {
        flex-basis: 100%;
        justify-content: flex-end;
        display: flex;
        gap: 4rem;
        align-items: center;
        margin-bottom: 5rem;
    }

    a.footer__contact {
        font-size: 26px;
    }

    div#footer-contacts {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 20px;
        flex-basis: 50%;
    }

    img.footer-logo {
        height: fit-content;
    }
}

@media (min-width: 3000px) {
    img.footer-logo {
        width: 13rem;
        height: fit-content;
    }

    span.copyrights {
        font-size: 2.3rem;
    }

    a.footer__contact {
        font-size: 3rem;
    }
}

@media (max-width: 1130px) and (orientation: landscape) {
    .btn {
        min-width: 170px;
    }
}

@media (orientation: portrait) {
    a.to-top {
        display: none;
    }

    .has-iframe .fancybox__content {
        width: 90vw !important;
        height: 50vw !important;
        padding: 0 !important;
        aspect-ratio: 2 / 1;
    }

    .has-image .fancybox__content {
        width: 100vw !important;
        height: 100vh !important;
    }

    a.to-top.visible {
        display: none;
    }

    .footer__column:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        width: fit-content;
    }

    span.copyrights {
        font-size: 1rem;
        text-align: left;
        margin: 0;
    }

    div#footer-contacts,
    div#footer-btn {
        flex-basis: 100%;
    }

    a.footer__contact {
        font-size: 1.2rem;
    }

    div#footer-contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-basis: fit-content;
        margin-right: 0;
    }

    .footer__contacts-phones.anim-scale {
        text-align: end;
        display: flex;
        flex-direction: row;
    }

    div#footer-btn {
        justify-content: end;
        display: flex;
        flex-direction: column;
        flex-basis: fit-content;
    }

    div#footer-social {
        gap: 1.5rem;
    }

    footer .content-flex-width {
        padding: 3rem 0;
    }

    /* img.footer-logo {
        height: 17.33vw;
    } */

    footer .content-flex-width {
        flex-wrap: nowrap;
        max-width: 90vw;
    }

    a.footer__social-item.anim-scale:first-child img {
        width: 25px;
        height: 14px;
    }

    a.footer__social-item.anim-scale:last-child img {
        width: 19px;
        height: 17px;
    }

    img.footer-logo {
        max-height: fit-content;
        width: 43px;
    }

    div#footer-social {
        margin-bottom: 0;
        flex-basis: fit-content;
    }

    footer a.btn.light {
        height: 3rem;
        width: 125px;
        font-weight: 600;
    }

    footer a.btn.light img {
        max-height: 12px;
    }

    .footer__column {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        color: #fff;
        align-items: end;
        flex-basis: 50vw;
    }
}