/* footer */

.title {
    font-size: clamp(1.625rem, 1.097rem + 2.25vw, 3.125rem);
    font-weight: 500;
}

.span-color {
    color: var(--main-color);
}

.btn {
    position: relative;
    display: block;
    max-width: 315px;
    -ms-flex-line-pack: center;
    align-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 19px;
    border: 1px solid var(--main-color);
    border-radius: 2px;
    color: var(--secondary-color);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    background-color: transparent;
    -webkit-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    transition: 0.3s all ease;
    cursor: pointer;
    z-index: 1;
    padding: 15px 23px 15px;
    margin: 0 auto;
    margin-top: 50px;
}

.btn::before {
    position: absolute;
    content: '';
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    background-color: var(--main-color);
    -webkit-transform: scaleX(0);
    -ms-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left center;
    -ms-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition: -webkit-transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9);
    transition: -webkit-transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9);
    -o-transition: transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9);
    transition: transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9);
    transition: transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9), -webkit-transform 150ms cubic-bezier(0.1, 0.7, 0.6, 0.9);
    z-index: -1;
}

.btn:hover::before {
    -webkit-transform: scaleX(1);
    -ms-transform: scaleX(1);
    transform: scaleX(1);
}

.btn:hover {
    color: var(--secondary-color);
}

.footer {
    padding: 100px 0px 100px 0px;
}

.footer__wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 30px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.footer__info {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

.footer__nav,
.footer__infoOne,
.footer__nav,
.footer__infoTwo {
    width: 100% !important;
}

.footer__nav ul li {
    list-style-type: none !important;
}

.footer__nav ul li a {
    font-size: 22px;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    margin-top: 10px;
    color: #1e1e1e;
}

.footer__nav ul li a:hover {
    color: #1d92dd;
}

.footer__callback-tel {
    position: relative;
    font-weight: 300;
    font-size: 25px;
    line-height: 38px;
    text-decoration: none;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    padding-left: 65px;
    color: #1e1e1e;
}

.footer__callback-tel:hover {
    color: #1d92dd;
}

.footer__logo {
    width: 275px;
    margin-top: 0;
}

.footer__logo img {
    width: 100%;
}

.footer .footer__callback-btn {
    color: #1d92dd;
}

.footer .footer__callback-btn:hover {
    color: var(--secondary-color);
}

/* modals */

.modal {
    display: none;
    position: fixed;
    width: 100%;
    max-width: 480px;
    border-radius: 30px;
    box-shadow: 0px 0px 8px 1px rgb(13 17 19 / 20%);
    top: calc(50% + 47.5px);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
}

.modal--active {
    display: block;
}

.modal__top {
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    background-color: #DDDDDD;
    padding-bottom: 3px;
}

.modal__wrapper {
    position: relative;
    padding: 0 42px;
}

.modal__top-close {
    display: none;
    position: absolute;
    width: 40px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.modal__top .modal__wrapper {
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.modal__top::before {
    position: absolute;
    content: "";
    width: 350px;
    height: 435px;
    background-size: cover;
    background-image: url(https://reg-nko.ru/a/article-lf/assets/images/modal-img.png);
    left: 0;
    top: 15px;
    z-index: 0;
}

.modal__top-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 24px;
    color: #132F48;
    text-align: end;
    margin-top: 164px;
}

.modal__top-title span {
    font-size: 23px;
    font-weight: 600;
}

.modal__top-block {
    max-width: 221px;
    background-color: var(--main-color);
    border-radius: 20px;
    align-self: end;
    padding: 14px 30px;
    margin-top: 20px;
}

.modal__top-block p {
    font-size: 20px;
    color: #DDDDDD;
    line-height: 22px;
    text-align: end;
    margin-bottom: 0;
}

.modal__top-name {
    font-size: 21px;
    font-weight: 500;
    color: #DDDDDD;
    z-index: 1;
    margin-top: 60px;
}

.modal__bottom {
    background-color: #143049;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    /* padding: 60px 25px 50px 25px; */
    padding: 35px 0px 35px 0px;
}

.modal__bottom-btn {
    display: block;
    font-size: 20px;
    line-height: 15.5px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: var(--main-color);
    border-radius: 15px;
    border: none;
    color: #DDDDDD;
    padding: 18px 20px;
    margin: 0 auto;
}

.modal__bottom-text {
    font-size: 22px;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 20px;
}

.modal__bottom-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 5px;
}

.modal__bottom-socials-link img {
    width: 40px;
    height: 40px;
}

/* modals */

.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    background: transparent;
}

.overlay--active {
    display: block;
    z-index: 2;
}

.circles-wrapper {
    background-image: url(../assets/icons/circles.svg);
    background-repeat: no-repeat;
    background-position: center;
}

/* Анимация для модального окна */

.fade {
    -webkit-animation-name: fade;
    animation-name: fade;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
}

/* fade */

@-webkit-keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade {
    from {
        opacity: 0.1;
    }

    to {
        opacity: 1;
    }
}

/* fade-out */

.fade-out {
    -webkit-animation-name: fade-out;
    animation-name: fade-out;
    -webkit-animation-duration: 1.1s;
    animation-duration: 1.1s;
}

@-webkit-keyframes fade-out {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* Анимация для модального окна */

/* media */

@media(max-width: 1536px) {

    .modal {
        max-width: 400px;
    }

    .modal__top::before {
        width: 291px;
        height: 330px;
    }

    .modal__top-title {
        font-size: 27px;
        line-height: 19px;
        margin-top: 119px;
    }

    .modal__top-title span {
        font-size: 19px;
    }


    .modal__top-block {
        padding: 10px 25px;
    }

    .modal__top-block p {
        font-size: 16px;
        line-height: 18px;
    }

    .modal__top-name {
        font-size: 17px;
        margin-top: 40px;
    }

    .modal__bottom {
        padding: 30px 0px 30px 0px;
    }

    .modal__bottom-btn {
        font-size: 18px;
        /* padding: 12px 20px; */
    }

    .modal__bottom-text {
        font-size: 19px;
    }

    .modal__bottom-socials-link img {
        width: 35px;
        height: 35px;
    }

}

@media(max-width: 1200px) {

    .footer__info-burger {
        padding: 0;
    }

    .footer__info-burger span {
        background-color: var(--main-color);
    }

    .footer__nav {
        margin-top: 0;
    }

}

@media(max-width: 768px) {

    .footer__wrapper {
        gap: 50px;
    }

    .footer__callback-tel {
        padding-left: 0;
    }

    .footer__callback-btn {
        margin: 0;
        margin-top: 30px;
    }

    /* .footer__nav {
        margin-top: 10px;
    } */

    .footer__nav ul li {
        margin-bottom: 10px;
    }

}

@media(max-width: 602px) {

    /* modal */

    .modal {
        max-width: 370px;
        top: calc(50% + 58.5px);
    }

    .modal__top .modal__wrapper {
        padding: 0 23px;
    }

    .modal__top-close {
        display: block;
    }

    .modal__top-title {
        font-size: 28px;
        margin-top: 120px;
    }

    .modal__top-block {
        padding: 10px 20px 10px 20px;
    }

    .modal__top-block p {
        font-size: 16px;
    }

    .modal__top::before {
        width: 250px;
        height: 294px;
        top: 15px;
    }

    .modal__top-name {
        font-size: 16px;
        margin-top: 5px;
    }

    .modal__bottom {
        padding: 23px 0px 23px 0px;
    }

    .modal__bottom-btn {
        width: 100%;
        font-size: 16px;
        padding: 15px 20px;
    }

    .modal__bottom-text {
        font-size: 17px;
    }

    /* modal */

}

@media(max-width: 430px) {

    .modal__top-title {
        font-size: 25px;
        line-height: 19px;
    }

    .modal__top-title span {
        font-size: 18px;
    }

    .modal__top::before {
        height: 294px;
    }

    .modal__top-name {
        margin-top: 5px;
    }

    .modal__bottom {
        padding: 30px 0px 30px 0px;
    }

    .modal__bottom-btn {
        width: 85%;
    }

    .modal__bottom-text {
        margin-top: 15px;
    }

    .footer {
        padding: 40px 0;
    }

    .footer__wrapper {
        gap: 40px;
    }

    .footer__callback-btn {
        margin: 0;
        margin-top: 20px;
    }

}

@media (hover: none) and (pointer: coarse) {

    .btn:hover:before {
        -webkit-transform: scaleX(0);
        -ms-transform: scaleX(0);
        transform: scaleX(0);
    }

    .footer__callback-btn:hover {
        color: var(--main-color);
    }

}