.hystmodal__wrap {
    padding: 0 20px;
}

.hystmodal__window {
    width: 860px;
    background: #fafafa;
    padding: 90px 44px;
    border-radius: 2px;
}

.hystmodal__close {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    top: 44px;
    right: 44px;
    outline: none !important;
    background-image: none !important;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.hystmodal__shadow--show {
    opacity: 1;
    background: rgba(20, 20, 20, 0.55);
}

.modal__title {
    color: #141414;
    text-align: center;
    font-size: 36px;
    font-weight: 500;
    line-height: 126%;
    margin-bottom: 34px;
}

.modal__text {
    color: rgba(20, 20, 20, 0.8);
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}

.form-row .form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-row .form-group.textarea .control-label {
    top: 14px;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.form-row .control-label {
    color: rgba(20, 20, 20, 0.6);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    position: absolute;
    top: 45%;
    left: 16px;
    right: 16px;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: text;
}

.form-row .form-control,
.form-row textarea {
    width: 100%;
    height: 60px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #f4f4f4;
    padding: 12px 16px;
    color: rgb(20, 20, 20);
    font-family: Inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.form-row .form-control:focus,
.form-row textarea:focus {
    border-color: #141414;
}

.form-row textarea {
    resize: none;
    height: 80px !important;
}

.form-row .form-agreement {
    min-height: 18px;
    color: #141414;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 160%;
    margin-top: 25px;
}

.form-row .form-agreement a {
    color: #141414;
    text-decoration: underline;
}

.form-row .form-checkbox input {
    display: none;
}

.form-row .form-checkbox input:checked+span::after {
    -webkit-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
}

.form-row .form-checkbox input:checked+span::before {
    border: 1px solid rgb(20, 20, 20);
}

.form-row .form-checkbox span {
    position: relative;
    display: inline-block;
    padding-left: 28px;
    cursor: pointer;
}

.form-row .form-checkbox span::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    border-radius: 2px;
    border: 1px solid rgba(20, 20, 20, 0.4);
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.form-row .form-checkbox span::after {
    content: "";
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.3693 0.195265C11.7217 0.491285 11.7674 1.01694 11.4714 1.36934L4.47142 9.70266C4.31628 9.88735 4.08873 9.99576 3.84756 9.99988C3.6064 10.004 3.37528 9.90342 3.21392 9.72414L0.213928 6.39081C-0.0939536 6.04872 -0.0662217 5.52181 0.275869 5.21393C0.61796 4.90605 1.14487 4.93378 1.45275 5.27587L3.81165 7.89687L10.1952 0.297359C10.4913 -0.0550467 11.0169 -0.100756 11.3693 0.195265Z' fill='%2399242C'/%3E%3C/svg%3E");
    position: absolute;
    width: 12px;
    height: 10px;
    top: 50%;
    -webkit-transform: translateY(-50%) scale(0);
    -ms-transform: translateY(-50%) scale(0);
    transform: translateY(-50%) scale(0);
    left: 3px;
    background: #141414;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
}

.form-row .button {
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    margin-top: 25px;
    width: 100%;
}


.subscribe {
    padding: 66px 0;
    background: #f4f4f4;
}

.subscribe__row {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 490px 1fr;
    grid-template-columns: 490px 1fr;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 56px;
}

.subscribe__title {
    color: #141414;
    font-size: 28px;
    font-weight: 400;
    line-height: 130%;
}

.subscribe__form .form-row {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 256px;
    grid-template-columns: 1fr 256px;
    -webkit-column-gap: 17px;
    -moz-column-gap: 17px;
    column-gap: 17px;
    row-gap: 13px;
}

.subscribe__form .form-group {
    margin-bottom: 0;
    height: 52px;
}

.subscribe__form .control-label {
    left: 0;
    color: rgba(20, 20, 20, 0.5);
    font-size: 16px;
    font-weight: 300;
    line-height: 150%;
}

.subscribe__form .form-control {
    padding-left: 0;
    padding-right: 0;
    height: 41px;
    border-bottom: 1px solid rgba(20, 20, 20, 0.1);
    border-top: none;
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.subscribe__form .form-control:focus {
    border-bottom: 1px solid rgb(20, 20, 20);
}

.subscribe__form .button {
    margin: 0;
}

.subscribe__form .form-agreement {
    -ms-grid-column-span: 2;
    grid-column: span 2;
    margin: 0;
    color: rgba(20, 20, 20, 0.5);
    font-size: 12px;
    font-weight: 300;
    line-height: 133.333%;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .hystmodal__wrap {
        padding: 0 15px;
    }

    .hystmodal__window {
        width: 100%;
        max-width: 400px;
        padding: 40px 20px;
    }

    .hystmodal__close {
        top: 20px;
        right: 20px;
        width: 20px;
        height: 20px;
    }

    .modal__title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .modal__text {
        font-size: 16px;
    }

    .form-row .form-control,
    .form-row textarea {
        height: 50px;
        font-size: 14px;
        padding: 10px 12px;
    }

    .form-row textarea {
        height: 70px !important;
    }

    .form-row .control-label {
        font-size: 14px;
        left: 12px;
    }

    .form-row .form-agreement {
        font-size: 12px;
        margin-top: 20px;
    }

    .subscribe {
        padding: 40px 0;
    }

    .subscribe__row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .subscribe__title {
        font-size: 22px;
        text-align: center;
    }

    .subscribe__form .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .subscribe__form .form-agreement {
        grid-column: span 1;
        font-size: 11px;
    }

    .subscribe__form .form-group {
        height: 45px;
    }

    .subscribe__form .form-control {
        height: 35px;
        font-size: 14px;
    }

    .subscribe__form .control-label {
        font-size: 14px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hystmodal__window {
        padding: 30px 15px;
    }

    .modal__title {
        font-size: 20px;
    }

    .modal__text {
        font-size: 14px;
    }

    .subscribe__title {
        font-size: 18px;
    }
}