.contacts-page {
    color: #111820;
    background: #f7f9fb;
}

.contacts-hero {
    min-height: 390px;
    padding: 38px 0 75px;
    background:
        linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.9) 20%, rgba(255,255,255,.2) 100%),
        url("/assets/img/bckg/header_bckg.jpg") 50% 1% / cover no-repeat;
}

.contacts-hero__content {
    max-width: 650px;
    padding-top: 65px;
}

.contacts-hero__label,
.contacts-info__eyebrow,
.contacts-card__heading > span {
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contacts-hero h1 {
    margin: 12px 0 18px;
    font-size: clamp(40px, 5vw, 62px);
    line-height: 1.05;
}

.contacts-hero p {
    max-width: 610px;
    margin: 0;
    color: #56616d;
    font-size: 18px;
    line-height: 1.65;
}

.contacts-section {
    padding-bottom: 68px;
}

.contacts-layout {
    margin-top: -45px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 25px;
    align-items: start;
}

.contacts-card,
.contacts-info {
    border: 1px solid #e3e8ed;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(27, 39, 51, .08);
}

.contacts-card {
    padding: 38px 42px;
}

.contacts-card__heading h2,
.contacts-info h2 {
    margin: 8px 0 9px;
    font-size: 27px;
}

.contacts-card__heading p,
.contacts-info > p {
    margin: 0;
    color: #6c7680;
    line-height: 1.6;
}

.contacts-form {
    margin-top: 30px;
}

.contacts-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
}

.contacts-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contacts-form label > span,
.contacts-form__message > span {
    margin-bottom: 8px;
    display: block;
    font-size: 13px;
    font-weight: 700;
}

.contacts-form input,
.contacts-form select,
.contacts-form textarea {
    width: 100%;
    border: 1px solid #dce2e7;
    border-radius: 11px;
    color: #17202a;
    background: #fff;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.contacts-form input,
.contacts-form select {
    height: 54px;
    padding: 0 15px;
}

.contacts-form textarea {
    min-height: 165px;
    padding: 15px;
    resize: vertical;
}

.contacts-form input:focus,
.contacts-form select:focus,
.contacts-form textarea:focus {
    border-color: #19a65b;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 166, 91, .1);
}

.contacts-form__message {
    margin-top: 18px;
    position: relative;
    display: block;
}

.contacts-form__message small {
    position: absolute;
    right: 13px;
    bottom: 12px;
    color: #9aa3ac;
    font-size: 11px;
}

.contacts-consent {
    margin-top: 19px;
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    color: #56616d;
    font-size: 13px;
    line-height: 1.55;
}

.contacts-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #00a651;
}

.contacts-consent span {
    margin: 0 !important;
    font-weight: 400 !important;
}

.contacts-consent a {
    color: #087f45;
    text-decoration: underline;
}

.contacts-form__bottom {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.contacts-form__submit {
    min-width: 225px;
    display: inline-flex;
    justify-content: space-between;
    gap: 20px;
}

.contacts-form__submit:disabled {
    opacity: .65;
    cursor: wait;
}

.contacts-form-status {
    flex: 1;
    min-height: 54px;
    padding: 9px 12px;
    border: 1px solid;
    border-radius: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contacts-form-status[hidden] { display: none; }
.contacts-form-status i { min-width: 28px; height: 28px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.contacts-form-status strong,
.contacts-form-status small { display: block; }
.contacts-form-status strong { margin-bottom: 2px; font-size: 12px; }
.contacts-form-status small { font-size: 11px; line-height: 1.4; }
.contacts-form-status.is-success { border-color: #bce8cf; color: #087a3c; background: #effbf4; }
.contacts-form-status.is-success i { background: #00ad54; }
.contacts-form-status.is-error { border-color: #f0c3c3; color: #a92525; background: #fff3f3; }
.contacts-form-status.is-error i { background: #dc3d3d; }
.contacts-form-status.is-loading { border-color: #cbddeb; color: #35627f; background: #f2f8fc; }
.contacts-form-status.is-loading i { background: #5995bb; }

.contacts-info {
    padding: 34px 30px;
    background: linear-gradient(145deg, #f5fbf7, #fff 55%);
}

.contacts-info__items {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.contacts-info__items > * {
    padding: 14px;
    border: 1px solid #e3e9e5;
    border-radius: 12px;
    color: inherit;
    background: rgba(255,255,255,.85);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contacts-info__items i {
    min-width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #009c4c;
    background: #e8f8ef;
    display: grid;
    place-items: center;
    font-style: normal;
}

.contacts-info__items span {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.contacts-info__items small {
    color: #7b858e;
    font-size: 11px;
}

.contacts-info__items strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.5;
}

.contacts-info__messenger {
    min-height: 50px;
    margin-top: 18px;
    border-radius: 10px;
    color: #fff;
    background: #00a651;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.contacts-info__messenger[href*="t.me"] {
    background: #2497c5;
}

@media (max-width: 900px) {
    .contacts-layout { grid-template-columns: 1fr; }
    .contacts-info { order: -1; }
}

@media (max-width: 640px) {
    .contacts-hero { min-height: 340px; padding-top: 25px; }
    .contacts-hero__content { padding-top: 45px; }
    .contacts-hero h1 { font-size: 38px; }
    .contacts-hero p { font-size: 15px; }
    .contacts-section { padding-bottom: 55px; }
    .contacts-layout { margin-top: -30px; }
    .contacts-card,
    .contacts-info { padding: 25px 20px; border-radius: 16px; }
    .contacts-form__grid { grid-template-columns: 1fr; }
    .contacts-form__bottom { align-items: stretch; flex-direction: column; }
    .contacts-form__submit { width: 100%; }
}
