.contact-page {
    --contact-red: #d90000;
    --contact-dark-red: #980000;
    --contact-black: #080808;
    --contact-muted: #555b66;
    --contact-line: #e4e6eb;
    overflow: hidden;
    background: #fff;
    color: var(--contact-black);
    font-family: Arial, Helvetica, sans-serif;
    padding-bottom: 46px;
}

.contact-page * {
    box-sizing: border-box;
}

.contact-page-hero {
    min-height: 265px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e8e8e8;
    background:
        linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 50%, rgba(255, 243, 243, 0.84) 100%),
        repeating-linear-gradient(165deg, rgba(217, 0, 0, 0.08) 0 2px, transparent 2px 8px);
}

.contact-page-hero__content {
    width: min(520px, calc(100% - 40px));
    margin-left: clamp(24px, 7vw, 94px);
    position: relative;
    z-index: 2;
}

.contact-page-hero__content > p:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 12px;
    color: var(--contact-red);
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-page-hero__content > p:first-child span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--contact-red);
}

.contact-page-hero h1 {
    margin: 0;
    color: #080808;
    font-size: clamp(45px, 5.4vw, 66px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: 0;
}

.contact-page-hero h1 strong {
    color: var(--contact-red);
    font-weight: 900;
}

.contact-page-hero__content > i,
.contact-info-panel > i {
    display: block;
    width: 50px;
    height: 2px;
    margin: 18px 0 16px;
    background: var(--contact-red);
}

.contact-page-hero__lead {
    max-width: 470px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 17px;
    line-height: 1.55;
    font-weight: 500;
}

.contact-page-hero__art {
    min-height: 265px;
    position: relative;
    z-index: 1;
}

.contact-page-hero__art::before {
    content: "";
    width: 780px;
    height: 250px;
    position: absolute;
    right: 72px;
    top: 0;
    border-top: 1px solid rgba(217, 0, 0, 0.13);
    border-radius: 50% 50% 0 0;
    transform: rotate(-9deg);
    box-shadow:
        0 18px 0 -17px rgba(217, 0, 0, 0.13),
        0 34px 0 -33px rgba(217, 0, 0, 0.11),
        0 50px 0 -49px rgba(217, 0, 0, 0.09),
        0 66px 0 -65px rgba(217, 0, 0, 0.07);
}

.contact-swoop {
    width: 420px;
    height: 310px;
    position: absolute;
    right: -56px;
    bottom: -158px;
    border-radius: 52% 0 0 0;
    background:
        linear-gradient(132deg, var(--contact-red) 0 47%, transparent 47%),
        linear-gradient(132deg, transparent 0 58%, #080808 58% 100%);
    transform: rotate(-6deg);
}

.contact-orbit {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    position: absolute;
    z-index: 2;
    border-radius: 50%;
    background: #fff;
    color: var(--contact-red);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
}

.contact-orbit i {
    color: var(--contact-red);
    font-size: 34px;
}

.contact-orbit--mail {
    width: 96px;
    height: 96px;
    right: 280px;
    top: 78px;
    color: #fff;
    background: linear-gradient(180deg, #f20b0b, #b90000);
}

.contact-orbit--mail i {
    color: #fff;
    font-size: 42px;
}

.contact-orbit--phone {
    right: 126px;
    top: 42px;
}

.contact-orbit--chat {
    width: 70px;
    height: 70px;
    right: 428px;
    top: 162px;
}

.contact-orbit--chat i {
    font-size: 26px;
}

.contact-dots {
    width: 92px;
    height: 56px;
    position: absolute;
    left: 160px;
    top: 164px;
    background-image: radial-gradient(circle, rgba(217, 0, 0, 0.18) 2px, transparent 2px);
    background-size: 16px 16px;
}

.contact-card,
.contact-benefits {
    width: min(1350px, calc(100% - 48px));
    margin: 0 auto;
}

.contact-card {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 52px;
    margin-top: 34px;
    padding: 48px 60px 34px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(0, 0, 0, 0.09);
}

.contact-info-panel {
    position: relative;
    min-height: 450px;
    padding-right: 48px;
    border-right: 1px solid var(--contact-line);
}

.contact-info-panel::after {
    content: "";
    width: 220px;
    height: 220px;
    position: absolute;
    right: 24px;
    bottom: 46px;
    opacity: 0.22;
    background-image: radial-gradient(circle, #cfd4dc 1px, transparent 1.5px);
    background-size: 6px 6px;
    clip-path: polygon(12% 0, 100% 15%, 78% 100%, 0 77%);
}

.contact-info-panel h2 {
    margin: 0;
    color: #101010;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.contact-info-panel > p {
    margin: 0 0 30px;
    color: #30343b;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
}

.contact-details {
    display: grid;
    gap: 22px;
    position: relative;
    z-index: 1;
}

.contact-details article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.contact-details article > span,
.contact-benefits article > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--contact-red);
    background: rgba(217, 0, 0, 0.1);
}

.contact-details article > span i,
.contact-benefits article > span i {
    color: var(--contact-red);
    font-size: 23px;
}

.contact-details h3 {
    margin: 2px 0 5px;
    color: #111;
    font-size: 14px;
    line-height: 1.1;
    font-weight: 900;
}

.contact-details p,
.contact-details a {
    margin: 0;
    color: #2f333b;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 500;
    text-decoration: none;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 46px;
    align-content: start;
}

.contact-form label {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto 52px;
    align-items: center;
    margin: 0;
}

.contact-form label > span {
    grid-column: 1 / -1;
    margin-bottom: 10px;
    color: #111;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
}

.contact-form label > span b {
    display: block;
    margin-top: 9px;
    color: var(--contact-red);
    font-weight: 900;
}

.contact-form label > i {
    grid-column: 1;
    grid-row: 2;
    z-index: 1;
    justify-self: center;
    color: #788397;
    font-size: 21px;
}

.contact-form input,
.contact-form textarea {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    border: 1px solid #d7dde8;
    border-radius: 6px;
    outline: 0;
    background: #fff;
    color: #111;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input {
    height: 52px;
    padding: 0 16px 0 52px;
}

.contact-form textarea {
    min-height: 192px;
    resize: vertical;
    padding: 17px 16px 16px 52px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #788397;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(217, 0, 0, 0.62);
    box-shadow: 0 0 0 4px rgba(217, 0, 0, 0.08);
}

.contact-form__message {
    grid-row: span 2;
    grid-template-rows: auto 192px !important;
}

.contact-submit {
    min-width: 250px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    justify-self: center;
    grid-column: 2;
    border: 0;
    border-radius: 5px;
    background: linear-gradient(180deg, #f20b0b, #bd0000);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(217, 0, 0, 0.2);
}

.contact-submit i {
    color: #fff;
    font-size: 18px;
}

.contact-submit:hover {
    background: linear-gradient(180deg, #e10000, #990000);
}

.contact-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.07);
}

.contact-benefits article {
    min-height: 100px;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 20px 48px;
}

.contact-benefits article:not(:last-child) {
    border-right: 1px solid var(--contact-line);
}

.contact-benefits article > span {
    width: 58px;
    height: 58px;
}

.contact-benefits h2 {
    margin: 0 0 7px;
    color: #111;
    font-size: 15px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.contact-benefits p {
    margin: 0;
    color: #5b626f;
    font-size: 13px;
    line-height: 1.42;
    font-weight: 500;
}

@media (max-width: 991px) {
    .contact-page-hero {
        grid-template-columns: 1fr;
        min-height: 280px;
    }

    .contact-page-hero__content {
        width: min(620px, calc(100% - 32px));
        margin: 0 auto;
        padding: 42px 0;
    }

    .contact-page-hero__art {
        position: absolute;
        inset: 0;
        opacity: 0.42;
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 34px 26px;
    }

    .contact-info-panel {
        min-height: 0;
        padding-right: 0;
        padding-bottom: 30px;
        border-right: 0;
        border-bottom: 1px solid var(--contact-line);
    }

    .contact-info-panel::after {
        right: 0;
        bottom: 18px;
    }

    .contact-benefits {
        grid-template-columns: 1fr;
    }

    .contact-benefits article:not(:last-child) {
        border-right: 0;
        border-bottom: 1px solid var(--contact-line);
    }
}

@media (max-width: 767px) {
    .contact-card,
    .contact-benefits {
        width: min(100% - 24px, 1350px);
    }

    .contact-page-hero h1 {
        font-size: 46px;
    }

    .contact-page-hero__lead {
        font-size: 15px;
    }

    .contact-card {
        margin-top: 22px;
        padding: 28px 18px;
    }

    .contact-details {
        gap: 18px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .contact-form__message {
        grid-row: auto;
    }

    .contact-submit {
        grid-column: 1;
        width: 100%;
        min-width: 0;
    }

    .contact-benefits article {
        grid-template-columns: 58px minmax(0, 1fr);
        padding: 18px;
    }
}
