.page-contact {
    --contact-red: #bf2b2d;
    --contact-ink: #2a2a2a;
    --contact-muted: #535353;
}

.page-contact main { overflow: hidden; }
.contact-container { width: min(1000px, calc(100% - 48px)); margin-inline: auto; }

.contact-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #fff;
    background: #0e1d2b;
}

.contact-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.contact-hero__content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding-top: 164px;
    padding-left: clamp(0px, 6vw, 116px);
}

.contact-hero h1 {
    margin: 0;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .04em;
}

.contact-hero p {
    margin: 20px 0 0;
    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 500;
    line-height: 1.25;
}

.contact-hero i {
    width: 220px;
    height: 8px;
    margin-top: 44px;
    display: block;
    background: var(--contact-red);
}

.contact-main { height: 1014px; background: #fff; }

.contact-service {
    height: 414px;
    padding-top: 70px;
    display: grid;
    grid-template-columns: minmax(0, 596px) 404px;
}

.contact-service__copy {
    position: relative;
    padding: 8px 80px 0 0;
}

.contact-service__copy::after {
    content: "";
    position: absolute;
    top: -6px;
    right: 0;
    width: 1px;
    height: 274px;
    background: #dedede;
}

.contact-service h2,
.contact-message h2 {
    margin: 0;
    color: var(--contact-ink);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
}

.contact-service h2 em,
.contact-message h2 em { color: var(--contact-red); font-style: normal; }

.contact-service__copy > p {
    margin: 12px 0 0;
    color: var(--contact-muted);
    font-size: 15px;
    line-height: 1.7;
}

.contact-service address {
    margin-top: 52px;
    display: grid;
    gap: 16px;
    font-style: normal;
}

.contact-service address a {
    width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #454545;
    font-size: 15px;
    line-height: 24px;
}

.contact-service address a:hover { color: var(--contact-red); }
.contact-service address img { width: 24px; height: 24px; object-fit: contain; }

.contact-consultant {
    padding: 0 0 0 206px;
    text-align: center;
}

.contact-consultant > img {
    width: 200px;
    height: 200px;
    max-width: none;
    object-fit: contain;
}

.contact-consultant figcaption {
    width: 200px;
    margin-top: 13px;
    color: #333;
    font-size: 14px;
    line-height: 1.65;
}

.contact-message { height: 600px; padding-top: 46px; }
.contact-message > header { text-align: center; }

.contact-message > header p {
    margin: 10px 0 0;
    color: var(--contact-muted);
    font-size: 15px;
    line-height: 1.7;
}

.contact-message form { margin-top: 54px; }

.contact-form-notice {
    width: 100%;
    margin: 26px auto -28px;
    padding: 14px 18px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.7;
}

.contact-form-notice--success { border: 1px solid #a9d9bf; color: #17633a; background: #effaf4; }
.contact-form-notice--error { border: 1px solid #efb4b6; color: #9c1f25; background: #fff4f4; }
.contact-form-notice p { margin: 0; }
.contact-form-notice ul { margin: 6px 0 0; padding-left: 20px; }
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.contact-projects {
    min-width: 0;
    margin: 0 0 31px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 26px;
    border: 0;
}

.contact-projects legend {
    margin: 0 17px 0 0;
    padding: 0;
    float: left;
    color: #404040;
    font-size: 15px;
    line-height: 24px;
}

.contact-projects legend span { color: var(--contact-red); }

.contact-projects label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #505050;
    font-size: 14px;
    line-height: 24px;
    cursor: pointer;
}

.contact-projects input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--contact-red);
}

.contact-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.contact-fields input,
.contact-message-field textarea {
    width: 100%;
    border: 1px solid #dedede;
    border-radius: 0;
    color: var(--contact-ink);
    background: #fff;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-fields input { height: 40px; padding: 0 17px; font-size: 14px; }
.contact-message-field { margin-top: 31px; display: block; }

.contact-message-field textarea {
    height: 130px;
    padding: 14px 17px;
    display: block;
    resize: vertical;
    font-size: 14px;
    line-height: 1.6;
}

.contact-fields input:focus,
.contact-message-field textarea:focus {
    border-color: var(--contact-red);
    box-shadow: 0 0 0 2px rgba(191, 43, 45, .1);
}

.contact-fields input::placeholder,
.contact-message-field textarea::placeholder { color: #8a8a8a; opacity: 1; }

.contact-message form > button {
    width: 160px;
    height: 50px;
    margin: 48px auto 0;
    display: block;
    border: 0;
    color: #fff;
    background: var(--contact-red);
    cursor: pointer;
    font-size: 16px;
    line-height: 50px;
    letter-spacing: .2em;
    text-indent: .2em;
}

.contact-message form > button:hover { background: #a92023; }
.contact-message form > button:active { transform: translateY(1px); }

.page-contact .site-footer {
    position: relative;
    height: 412px;
    padding: 0;
    color: rgba(255, 255, 255, .82);
    background: #0d192a;
}

.page-contact .footer-grid.site-container,
.page-contact .footer-legal.site-container { width: min(1200px, calc(100% - 80px)); }

.page-contact .footer-grid { position: relative; height: 313px; display: block; }

.page-contact .footer-identity,
.page-contact .footer-benefits,
.page-contact .footer-qrs { position: absolute; top: 0; }

.page-contact .footer-identity { left: 0; width: 295px; display: block; }

.page-contact .footer-brand {
    position: absolute;
    top: 48px;
    left: 0;
    width: 178px;
    height: 54px;
    margin: 0;
}

.page-contact .footer-brand img { width: 178px; height: 54px; max-width: none; object-fit: contain; }

.page-contact .footer-identity > a:not(.footer-brand) {
    position: absolute;
    left: 61px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
}

.page-contact .footer-identity > a:nth-of-type(2) { top: 127px; }
.page-contact .footer-identity > a:nth-of-type(3) { top: 163px; }
.page-contact .footer-identity > a:nth-of-type(4) { top: 199px; }
.page-contact .footer-identity b { width: 20px; height: 20px; display: block; }
.page-contact .footer-identity b img { width: 20px; height: 20px; }

.page-contact .footer-benefits { top: 56px; left: 405px; width: 304px; }

.page-contact .footer-benefits h2 {
    height: 34px;
    margin: 0 0 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    line-height: 34px;
}

.page-contact .footer-benefits ul {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 152px 136px;
    gap: 16px;
    list-style: none;
    font-size: 16px;
    line-height: 26px;
}

.page-contact .footer-benefits li {
    height: 26px;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    white-space: nowrap;
}

.page-contact .footer-benefits li span {
    width: 20px;
    height: 20px;
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    color: transparent;
    background: url("/site/images/home/icon-check.png") center / 20px 20px no-repeat;
}

.page-contact .footer-qrs {
    top: 56px;
    left: 820px;
    width: 340px;
    display: flex;
    justify-content: flex-start;
    gap: 40px;
}

.page-contact .footer-qrs figure { width: 150px; margin: 0; text-align: center; }
.page-contact .footer-qrs img { width: 150px; height: 150px; }

.page-contact .footer-qrs figcaption {
    height: 22px;
    margin-top: 16px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
}

.page-contact .footer-legal {
    height: 72px;
    margin: 0 auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
}

.page-contact .footer-legal p { margin: 0; color: #fff; font-size: 16px; line-height: 22px; }

@media (max-width: 1000px) {
    .contact-main, .contact-service, .contact-message { height: auto; }
    .contact-service { padding-bottom: 70px; grid-template-columns: 1fr 280px; }
    .contact-service__copy { padding-right: 42px; }
    .contact-consultant { padding-left: 60px; }
    .contact-message { padding-bottom: 80px; }
    .page-contact .site-footer { height: auto; padding: 48px 0 24px; }
    .page-contact .footer-grid.site-container,
    .page-contact .footer-legal.site-container { width: min(1200px, calc(100% - 48px)); }
    .page-contact .footer-grid { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
    .page-contact .footer-identity,
    .page-contact .footer-benefits,
    .page-contact .footer-qrs,
    .page-contact .footer-brand,
    .page-contact .footer-identity > a:not(.footer-brand) { position: static; }
    .page-contact .footer-identity { display: grid; gap: 10px; }
    .page-contact .footer-qrs { width: auto; grid-column: 1 / -1; }
    .page-contact .footer-legal { height: auto; margin-top: 40px; }
}

@media (max-width: 700px) {
    .contact-hero { height: 430px; }
    .contact-hero__content { padding-top: 116px; padding-left: 0; }
    .contact-hero h1 { font-size: 38px; }
    .contact-hero p { font-size: 21px; }
    .contact-hero i { width: 130px; height: 5px; margin-top: 30px; }
    .contact-service { grid-template-columns: 1fr; }
    .contact-service__copy { padding-right: 0; border-right: 0; }
    .contact-service__copy::after { display: none; }
    .contact-consultant { margin-top: 54px; padding-left: 0; }
    .contact-consultant > img,
    .contact-consultant figcaption { margin-inline: auto; }
    .contact-message { padding-top: 60px; }
    .contact-projects { flex-wrap: wrap; }
    .contact-fields { grid-template-columns: 1fr; }
    .page-contact .footer-grid { grid-template-columns: 1fr; }
    .page-contact .footer-qrs { grid-column: auto; }
}
