.scroll {
    display: block;
    height: 0;
    scroll-margin-top: 0;
}

.text-page {
    display: block;
    padding: 80px 0 100px;
    background-color: #e7e7e7;
}

.text-page-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 860px;
}

.text-page-wrap__head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.text-page-wrap__title {
    font-size: clamp(22px, 1.6rem + 0.6vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.5px;
    text-transform: uppercase;
    color: #2f2f2f;
}

.text-page-wrap__title span,
.notfound-wrap__title span,
.modal-success__title span {
    color: #c0181c;
}

.text-page-wrap__line,
.notfound-wrap__line,
.modal-success__line {
    width: 80px;
    height: 1.5px;
    background-color: #c0181c;
}

.text-page-wrap__subtitle a {
    color: inherit;
    text-decoration: none;
}

.text-page-wrap__content {
    font-size: 16px;
    line-height: 26px;
    color: #565656;
}

.text-page-wrap__content > * + * {
    margin-top: 16px;
}

.text-page-wrap__content h2,
.text-page-wrap__content h3 {
    margin-top: 36px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    color: #2f2f2f;
}

.text-page-wrap__content h2 {
    font-size: 20px;
}

.text-page-wrap__content h3 {
    font-size: 18px;
}

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

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

.text-page-wrap__content li + li {
    margin-top: 6px;
}

.text-page-wrap__content a {
    color: #c0181c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.text-page-wrap__content b,
.text-page-wrap__content strong {
    font-weight: 700;
    color: #2f2f2f;
}

.notfound {
    padding: 120px 0 140px;
}

.notfound-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.notfound-wrap__code {
    font-size: clamp(96px, 60px + 10vw, 180px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
    color: #c0181c;
}

.notfound-wrap__title {
    font-size: clamp(22px, 1.6rem + 0.6vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.5px;
    text-transform: uppercase;
    color: #2f2f2f;
}

.notfound-wrap__text {
    max-width: 520px;
    font-size: 16px;
    line-height: 26px;
    color: #565656;
}

.notfound-wrap__btn {
    flex: 0 0 auto;
    gap: 8px;
    height: 52px;
    margin-top: 8px;
    font-size: 16px;
    text-decoration: none;
}

.notfound-wrap__btn img {
    width: 20px;
    height: 20px;
}

.modal.modal-success {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: flex-start;
    padding: 20px 15px;
    background-color: rgba(47, 47, 47, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

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

.modal-success__box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 520px;
    max-width: 100%;
    max-height: 90vh;
    margin: auto;
    padding: 40px 30px 30px;
    overflow-y: auto;
    background-color: #e7e7e7;
}

.modal-success__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
}

.modal-success__close img {
    width: 24px;
    height: 24px;
}

.modal-success__title {
    padding-right: 32px;
    font-size: clamp(20px, 1.4rem + 0.5vw, 26px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -.5px;
    text-transform: uppercase;
    color: #2f2f2f;
}

.modal-success__text {
    font-size: 16px;
    line-height: 26px;
    color: #565656;
}

.modal-success__btn {
    flex: 0 0 auto;
    height: 52px;
    margin-top: 8px;
    border: none;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    cursor: pointer;
}

.cta .wpcf7 {
    display: contents;
}

.cta .screen-reader-response {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.cta-wrap__form .hidden-fields-container,
.cta-wrap__form fieldset.hidden-fields-container {
    display: none;
    margin: 0;
    padding: 0;
    border: 0;
}

.cta-wrap__fields > .wpcf7-form-control-wrap {
    position: relative;
    display: block;
}

.cta-wrap__fields > :nth-child(5) {
    width: 100%;
}

.cta-wrap__form .cta-wrap__input.wpcf7-not-valid {
    border-color: #c0181c;
}

.cta-wrap__form .wpcf7-not-valid-tip {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 1px;
    font-size: 12px;
    line-height: 14px;
    color: #ff5b5f;
}

.cta-wrap__form .wpcf7-response-output {
    display: none;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #c0181c;
    font-size: 14px;
    line-height: 22px;
    color: #e7e7e7;
}

body form.cta-wrap__form.invalid .wpcf7-response-output,
body form.cta-wrap__form.unaccepted .wpcf7-response-output,
body form.cta-wrap__form.failed .wpcf7-response-output,
body form.cta-wrap__form.aborted .wpcf7-response-output,
body form.cta-wrap__form.spam .wpcf7-response-output {
    display: block;
}

body form.cta-wrap__form.sent .wpcf7-response-output {
    display: none;
}

.cta-wrap__form.submitting .cta-wrap__btn {
    opacity: .7;
    pointer-events: none;
}

@media (max-width: 767px) {
    .text-page {
        padding: 48px 0 64px;
    }

    .notfound {
        padding: 80px 0 100px;
    }

    .modal-success__box {
        padding: 36px 20px 24px;
    }
}
