html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.scroll {
    display: block;
    width: 0;
    height: 0;
    scroll-margin-top: 130px;
    pointer-events: none;
}

body.is-locked {
    overflow: hidden;
}

.form-wrap__card > .wpcf7 {
    display: contents;
}

.form-wrap__field .wpcf7-form-control-wrap {
    display: block;
}

.form-wrap__panel .wpcf7-not-valid {
    border-color: #c0392b;
}

.form-wrap__panel .wpcf7-not-valid-tip {
    margin: 6px 0 0 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 18px;
    color: #c0392b;
}

body form.form-wrap__panel .wpcf7-response-output,
body form.form-wrap__panel.invalid .wpcf7-response-output,
body form.form-wrap__panel.unaccepted .wpcf7-response-output,
body form.form-wrap__panel.spam .wpcf7-response-output,
body form.form-wrap__panel.failed .wpcf7-response-output,
body form.form-wrap__panel.aborted .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 12px 20px;
    border: 1px solid #c0392b;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 20px;
    color: #c0392b;
    background: rgba(192, 57, 43, .05);
}

form.form-wrap__panel.sent .wpcf7-response-output,
form.form-wrap__panel .wpcf7-spinner {
    display: none;
}

form.form-wrap__panel .wpcf7-not-valid {
    border-color: #c0392b;
}

.form-wrap__contact-text a {
    color: inherit;
    text-decoration: none;
    transition: opacity .3s;
}

.form-wrap__contact-text a:hover {
    opacity: .6;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(21, 21, 21, .55);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.modal-active {
    opacity: 1;
    visibility: visible;
}

.modal__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    width: 100%;
    padding: 50px 40px 40px;
    border-radius: 50px;
    text-align: center;
    background: #fdf6ed;
    transform: translateY(20px);
    transition: transform .3s ease;
}

.modal-active .modal__card {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 900px;
    background: #fff;
    cursor: pointer;
}

.modal__close span {
    position: absolute;
    top: 16px;
    left: 10px;
    width: 14px;
    height: 1px;
    background: #151515;
}

.modal__close span:first-child {
    transform: rotate(45deg);
}

.modal__close span:last-child {
    transform: rotate(-45deg);
}

.modal__mark {
    width: 10px;
    height: 10px;
    margin-bottom: 24px;
    border-radius: 900px;
    background: #e6c7a5;
}

.modal__title {
    font-family: 'Alice', serif;
    font-weight: normal;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    color: #151515;
}

.modal__text {
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 26px;
    color: #675b5b;
}

.modal__btn {
    flex: 0 0 auto;
    width: 235px;
    min-height: 50px;
    margin-top: 30px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.modal__btn .btn-primary__bg {
    box-shadow: none;
}

.text-page {
    position: relative;
    padding: clamp(150px, 17vw, 240px) clamp(16px, 3.5vw, 50px) clamp(50px, 6.94vw, 100px);
    background: #fdf6ed;
}

.text-page-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1340px;
    width: 100%;
    margin: 0 auto;
}

.text-page-wrap__label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 27px;
    text-transform: uppercase;
    color: #e6c7a5;
}

.text-page-wrap__title {
    margin-top: 24px;
    font-family: 'Alice', serif;
    font-weight: normal;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.15;
    color: #151515;
}

.text-page-wrap__content {
    margin-top: 30px;
    max-width: 1018px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 30px;
    color: #675b5b;
}

.text-page-wrap__content p,
.text-page-wrap__content ul,
.text-page-wrap__content ol {
    margin-bottom: 20px;
}

.text-page-wrap__content ul,
.text-page-wrap__content ol {
    padding-left: 20px;
}

.text-page-wrap__content li {
    margin-bottom: 8px;
    list-style: inherit;
}

.text-page-wrap__content ul li {
    list-style: disc;
}

.text-page-wrap__content ol li {
    list-style: decimal;
}

.text-page-wrap__content h2,
.text-page-wrap__content h3,
.text-page-wrap__content h4 {
    margin: 34px 0 16px;
    font-family: 'Alice', serif;
    font-weight: normal;
    line-height: 1.25;
    color: #151515;
}

.text-page-wrap__content h2 {
    font-size: clamp(24px, 2.6vw, 34px);
}

.text-page-wrap__content h3 {
    font-size: clamp(20px, 2vw, 26px);
}

.text-page-wrap__content h4 {
    font-size: clamp(18px, 1.6vw, 22px);
}

.text-page-wrap__content b,
.text-page-wrap__content strong {
    font-weight: 500;
    color: #151515;
}

.text-page-wrap__content a {
    color: #151515;
    text-decoration: underline;
}

.text-page-wrap__content img {
    margin: 10px 0 20px;
    border-radius: 30px;
}

.text-page-wrap__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.text-page-wrap__code {
    font-family: 'Alice', serif;
    font-weight: normal;
    font-size: clamp(90px, 14vw, 190px);
    line-height: 1;
    color: #e6c7a5;
}

@media (max-width: 768px) {
    .modal__card {
        padding: 44px 24px 30px;
        border-radius: 30px;
    }

    .text-page-wrap__content {
        line-height: 26px;
    }
}
