.kf-modal {
    background: #FFF100;
    border-radius: 40px;
    max-width: 1135px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 136px;
    padding-bottom: 44px;
    position: relative;
    box-shadow: 5px 5px 5px 0px #00000040;
    overflow: hidden;
}

.kf-modal__content {
    max-width: 649px;
    width: 100%;
    text-align: center;
}

.kf-modal__icon {
    margin-bottom: 32px;
    width: 157px;
    height: auto;
}

.kf-modal__title {
    font-style: italic;
    font-weight: 800;
    font-size: 60px;
    line-height: 90px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 37px;
    font-family: 'Montserrat', sans-serif;
}

.kf-modal__title_dedicated {
    background: #0C0C0C;
    color: #FFF100;
    width: 75%;
    max-height: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: skewX(-10deg);
    padding: 0 15px;
    z-index: 1;
    font-family: 'Montserrat', sans-serif;
}

.kf-modal__title_dedicated span {
    transform: skewX(10deg);
}

.kf-modal__button {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    background: #0C0C0C;
    color: #ffffff;
    font-style: italic;
    font-size: 18px;
    padding: 16px;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2;
    font-family: 'Montserrat', sans-serif;
}

.kf-modal__close {
    position: absolute;
    top: 26px;
    right: 30px;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kf-modal__bg-icon {
    position: absolute;
}

.kf-modal__bg-icon_1 {
    bottom: 530px;
    left: 245px;
    transform: rotate(15deg)
}

.kf-modal__bg-icon_2 {
    top: 170px;
    left: 30px;
}

.kf-modal__bg-icon_3 {
    bottom: 50px;
    left: 60px;
    transform: rotate(-15deg)
}

.kf-modal__bg-icon_4 {
    right: 0px;
    top: 30px;
    transform: rotate(15deg)
}

.kf-modal__bg-icon_5 {
    right: 200px;
    top: 160px;
    transform: rotate(-5deg)
}

.kf-modal__bg-icon_6 {
    bottom: 20px;
    right: 10px;
    transform: rotate(30deg)
}

@media (max-width: 1361px) {
    .kf-modal {
        max-width: 800px;
        padding-top: 100px;
        padding-bottom: 32px;
    }

    .kf-modal__icon {
        margin-bottom: 21px;
    }

    .kf-modal__content {
        max-width: 480px;
    }

    .kf-modal__title {
        font-size: 44px;
        line-height: 66px;
        margin-bottom: 26px;
    }

    .kf-modal__button {
        font-size: 14px;
        max-width: 380px;
    }

    .kf-modal__bg-icon_2 {
        top: 40px;
        left: 40px;
    }

    .kf-modal__bg-icon_3 {
        bottom: 40px;
        left: 60px;
    }

    .kf-modal__bg-icon_5 {
        top: -50px;
        right: 250px;
    }
}

@media (max-width: 769px) {
    .kf-modal {
        max-width: 600px;
        padding-top: 75px;
        padding-bottom: 21px;
    }

    .kf-modal__icon {
        margin-bottom: 17px;
        width: 118px;
        height: auto;
    }

    .kf-modal__content {
        max-width: 360px;
    }

    .kf-modal__title {
        font-size: 33px;
        line-height: 49.9px;
        margin-bottom: 20px;
    }

    .kf-modal__title_dedicated {
        font-size: 33px;
        line-height: 49.9px;
    }

    .kf-modal__button {
        max-width: 290px;
        font-size: 11px;
        padding: 10px;
    }

    .kf-modal__close {
        width: 20px;
        height: 20px;
    }

    .kf-modal__close img {
        width: 20px;
        height: 20px;
    }

    .kf-modal__bg-icon {
        width: 86px;
    }

    .kf-modal__bg-icon_1 {
        bottom: 100px;
        left: 20px;
    }

    .kf-modal__bg-icon_3 {
        bottom: 200px;
        left: 300px;
    }
}

@media (max-width: 420px) {
    .kf-modal {
        padding-top: 83px;
        padding-bottom: 51px;
        max-width: 300px;

    }

    .kf-modal__icon {
        margin-bottom: 8px;
        width: 56px;
        height: auto;
    }

    .kf-modal__content {
        max-width: 170px;
    }

    .kf-modal__title {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 23.78px;
    }

    .kf-modal__title_dedicated {
        font-size: 15px;
        line-height: 23.78px;
        height: auto;
    }

    .kf-modal__button {
        max-width: 150px;
        font-size: 10px;
        padding: 5px;
    }

    .kf-modal__close {
        width: 15px;
        height: 15px;
    }

    .kf-modal__close img {
        width: 15px;
        height: 15px;
    }

    .kf-modal__bg-icon {
        width: 42px;
    }

    .kf-modal__bg-icon_3 {
        bottom: 20px;
        left: 100px;
    }

    .kf-modal__bg-icon_4 {
        right: 50px;
        top: 30px;
        transform: rotate(15deg);
    }

    .kf-modal__bg-icon_5 {
        top: 120px;
        right: 20px;
    }
}

.kf-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(12, 12, 12, 0.2);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
