.tg-button {
width: 100%;
height: 34px;
background: #27A7E7;
font-size: 16px;
font-weight: 700;
display: block;
text-align: center;
color: #fff;
line-height: 34px;
margin-top: 9px;
margin-bottom: 9px;
border-radius: 5px;
}
.tg-button svg {
position:relative;
top:3px;
}
.tg-button:hover {
background: #FF7979;
color: #fff;
}

#modal {
    position: relative;
    z-index: 999;
}
#modal-subscribe {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background: #1F212FF2;
    visibility: hidden;
    opacity: 0;
    transition: all .3s ease-in-out;
    z-index: 40;
}
#modal-subscribe.active {
    visibility: visible;
    opacity: 1;
}
#modal-subscribe .modal__body {
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-10%);
    transition: all .3s ease-in-out;
    width: 800px;
    height: 460px;
    background-image: url('/templates/lakorny/images/modal/bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
}
#modal-subscribe.active .modal__body {
    transform: translateY(-50%);
}
#modal-subscribe .modal__content {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}
#modal-subscribe.active .modal__body .modal__close {
    position: absolute;
    right: -27px;
    top: -26px;
    cursor: pointer;
}
#modal-subscribe.active .modal__body .modal__close svg {
    fill: #D8E8F4;
    transition: all .2s ease-in-out;
}
#modal-subscribe.active .modal__body .modal__close:hover svg {
    fill: #FF7979;
}
#modal-subscribe .modal__content .title {
    font-family: 'PT Sans';
    font-weight: 700;
    font-size: 50px;
    line-height: 72px;
    color: #055690;
    margin-bottom: 33px;
    padding-top: 47px;
    position: relative;
}
#modal-subscribe .modal__content .title::before {
    content: '';
    position: absolute;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 425px;
    height: 95px;
    background-image: url('/templates/lakorny/images/modal/title-1.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}
#modal-subscribe .modal__content .title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 326px;
    height: 84px;
    background-image: url('/templates/lakorny/images/modal/title-2.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}
#modal-subscribe .modal__content .subtitle {
    font-family: 'PT Sans';
    font-weight: 700;
    font-size: 34px;
    line-height: 38px;
    color: #055690;
    position: relative;
    max-width: 438px;
    text-align: center;
    margin-bottom: 10px;
}
#modal-subscribe .modal__content .subtitle::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 506px;
    height: 100px;
    background-image: url('/templates/lakorny/images/modal/subtitle.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
}
#modal-subscribe .modal__content .arrow {
    margin-bottom: 9px;
}
#modal-subscribe .modal__content .button {
    width: 379px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .1s;
    cursor: pointer;
    gap: 10px;
    border-radius: 3px;
    background: #27A7E7;
}
#modal-subscribe .modal__content .button .text {
    font-family: 'PT Sans';
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
}
#modal-subscribe .modal__content .button .text svg {
    position: relative;
    top: 1px;
}
#modal-subscribe .modal__content:hover .button {
    background: #FF7979;
}

@media (max-width: 860px) {
    #modal-subscribe.active .modal__body .modal__close {
        right: 14px;
        top: -33px;
    }
    #modal-subscribe .modal__body {
        width: 100%;
    }

    #modal-subscribe .modal__content .title {
        font-size: 40px;
        line-height: 56px;
    }
    #modal-subscribe .modal__content .title::before {
        width: 280px;
        height: 80px;
        top: 36px;
        background-image: url('/templates/lakorny/images/modal/title-m-1.svg');
    }
    #modal-subscribe .modal__content .title::after {
        width: 260px;
        height: 80px;
        bottom: -20px;
        background-image: url('/templates/lakorny/images/modal/title-m-2.svg');
    }
    #modal-subscribe .modal__content .subtitle {
        font-size: 28px;
        line-height: 32px;
        max-width: 310px;
    }
    #modal-subscribe .modal__content .subtitle::before {
        width: 340px;
        height: 100px;
        top: -12px;
        background-image: url('/templates/lakorny/images/modal/subtitle-m.svg');
    }
    #modal-subscribe .modal__content .button {
        max-width: 380px;
        width: 100%;
    }
    #modal-subscribe .modal__content .arrow {
        margin-top: 25px;
	margin-bottom: 30px;
    }
}
@media(max-width: 450px) {
    #modal-subscribe .modal__content .button {
        max-width: calc(100% - 28px);
    }
}