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

.overlay--active {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2 !important;
}

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

.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: 1s;
    animation-duration: 1s;
}

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

    to {
        opacity: 0;
    }
}

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

    to {
        opacity: 0;
    }
}

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

/* modal */

.modal,
.modal-read {
    display: none;
    position: fixed;
    width: 100%;
    max-width: 390px;
    height: max-content;
    border-radius: 30px;
    background-color: #F4F4F4;
    box-shadow: 0px 0px 8px 1px rgb(13 17 19 / 20%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    padding: 40px 60px;
}

.modal--active {
    display: block;
}

.modal__close,
.modal-read__close {
    display: none;
    position: absolute;
    width: 40px;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.modal__title {
    color: #1E1E1E;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.modal .modal__btn {
    display: block;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background-color: #009688;
    border-radius: 45px;
    border: none;
    color: #FFFFFF;
    padding: 10px 0;
    margin: 0 auto;
}

.content .content__main .modal .modal__btn:hover {
    color: #FFFFFF !important;
    text-decoration: none;
}

.modal__text,
.modal-read__text {
    font-size: 18px;
    font-weight: 600;
    color: #1E1E1E;
    text-align: center;
}

.modal__socials,
.modal-read__socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
}

.modal__socials a,
.modal-read__socials a {
    transition: 0.3s;
}

.modal-read__socials a:hover {
    transform: scale(1.1);
}

.modal-read .modal-read__socials-link img {
    box-shadow: unset;
    margin: 0;
}

.modal__socials-link img,
.modal-read__socials-link img {
    width: 35px;
    height: 35px;
}

.modal__read {
    display: block;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    text-decoration: underline;
    border: none;
    background-color: transparent;
    color: #F28C28;
    cursor: pointer;
    transition: all .3s;
    margin: 25px auto;
    margin-bottom: 0;
}

.modal__read:hover {
    text-decoration: unset;
}

.modal-btn {
    cursor: pointer;
}

/* modal */

@media(max-width: 1024px) {

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

}

@media(max-width: 768px) {

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

    .modal__close {
        display: block;
        width: 30px;
        height: 30px;
        top: 13px;
        right: 23px;
    }

    .modal__title {
        margin-top: 20px;
    }

}

@media(max-width: 430px) {

    .modal {
        padding: 30px 20px 30px 20px;
    }

    .modal__close {
        top: 15px;
        right: 15px;
    }

    .modal__close svg {
        width: 30px;
        height: 30px;
    }

    .modal__btn {
        width: 85%;
    }

    .modal__text {
        margin-top: 15px;
    }

}

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

    .modal__socials a:hover {
        -webkit-transform: unset;
        -ms-transform: unset;
        transform: unset;
    }

}