.contacts-page {
    display: grid;
    gap: 28px;
}

.contacts-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    min-height: 194px;
    box-sizing: border-box;
    padding: 28px 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 194, 220, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(7, 27, 34, 0.98), rgba(7, 50, 71, 0.94) 68%, rgba(0, 94, 165, 0.82)), var(--site-bg-deep);
    color: #fff;
    box-shadow: 0 28px 78px rgba(7, 27, 34, 0.16);
}

.contacts-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 40%),
        linear-gradient(135deg, rgba(0, 194, 220, 0.08), transparent 46%);
    pointer-events: none;
}

.contacts-hero__content,
.contacts-hero__visual,
.contacts-hero__benefits {
    position: relative;
    z-index: 1;
}

.contacts-hero .eyebrow {
    color: rgba(255, 255, 255, 0.88);
}

.contacts-hero .eyebrow::before {
    background: var(--brand-cyan-bright);
}

.contacts-hero h1 {
    max-width: 620px;
    margin: 12px 0 8px;
    color: #fff;
    font-size: 42px;
    line-height: 1.02;
    letter-spacing: 0;
}

.contacts-hero p {
    max-width: 560px;
    margin: 0;
    color: rgba(238, 249, 251, 0.78);
    font-size: 16px;
    line-height: 1.5;
}

.contacts-hero__visual {
    position: absolute;
    z-index: 0;
    top: 0;
    right: 295px;
    bottom: 0;
    left: 38%;
    background:
        linear-gradient(90deg, rgba(7, 27, 34, 0.78) 0%, rgba(7, 27, 34, 0.22) 34%, rgba(7, 27, 34, 0.06) 72%, rgba(7, 27, 34, 0.32) 100%),
        url("/img/contacts/contacts-hero-buildings.jpg") center right / cover no-repeat;
    opacity: 0.78;
    filter: saturate(0.92) brightness(0.92) contrast(1.04);
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.contacts-hero__benefits {
    display: grid;
    gap: 14px;
    align-self: stretch;
    align-content: center;
    padding-left: 36px;
    border-left: 2px solid rgba(0, 194, 220, 0.68);
}

.contacts-hero__benefit {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.contacts-hero__benefit-icon,
.contact-card__icon,
.contacts-map__pin,
.contacts-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 194, 220, 0.12);
    color: var(--accent-dark);
}

.contacts-hero__benefit-icon {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #c7f5fb;
}


.contact-card__icon svg,
.contacts-map__pin svg,
.contacts-benefit__icon svg
{
    width: 30px;
    height: 30px;
    fill: none;
    stroke: rgb(241 79 67);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.contacts-hero__benefit-icon svg,
.contact-field__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contacts-hero__benefit-icon img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.contacts-hero__benefit strong {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.contacts-hero__benefit span {
    display: block;
    margin-top: 3px;
    color: rgba(238, 249, 251, 0.72);
    font-size: 13px;
    line-height: 1.25;
}

.contacts-main {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1fr);
    gap: 24px;
    align-items: stretch;
}

.contacts-side {
    display: grid;
    gap: 18px;
}

.contacts-card,
.contacts-map,
.contact-form,
.contacts-benefits {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 194, 220, 0.16);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(7, 27, 34, 0.1);
}

.contacts-card,
.contacts-benefits {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 254, 0.94)),
        #fff;
}

.contacts-card {
    display: grid;
    gap: 22px;
    padding: 30px;
}

.contacts-card h2,
.contact-form h2 {
    margin: 0;
    font-size: clamp(30px, 3.2vw, 32px);
    line-height: 1.05;
    letter-spacing: 0;
}

.contacts-card__intro,
.contact-form__head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.contact-card__list {
    display: grid;
    gap: 18px;
}

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

.contact-card__icon {
    width: 54px;
    height: 54px;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
        rgba(241, 80, 68, 0.1);
    color: rgb(241 80 68);
}

.contact-card__label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-card__value {
    display: block;
    color: #06294d;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.32;
    text-decoration: none;
    white-space: pre-line;
}

.contacts-map {
    min-height: 350px;
    background:
        radial-gradient(circle at 24% 70%, rgba(0, 194, 220, 0.18), transparent 22%),
        linear-gradient(135deg, rgba(0, 94, 165, 0.08), rgba(0, 194, 220, 0.12)),
        var(--surface-tint);
}

.contacts-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contacts-map__fallback {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 350px;
    padding: 24px;
    text-align: center;
}

.contacts-map__overlay {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(0, 194, 220, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(7, 27, 34, 0.14);
    backdrop-filter: blur(8px);
}

.contacts-map__place {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.contacts-map__pin {
    width: 44px;
    height: 44px;
    color: #006bb5;
}

.contacts-map__place strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
}

.contacts-map__place span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.contacts-map__button {
    min-height: 40px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.9);
    color: #006bb5;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 170ms ease, border-color 170ms ease, transform 170ms ease;
}

.contacts-map__button:hover,
.contacts-map__button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(0, 194, 220, 0.35);
    background: #fff;
    outline: none;
}

.contact-form {
    display: grid;
    align-content: start;
    gap: 22px;
    padding: clamp(28px, 3.8vw, 42px);
    overflow: visible;
    background:
        radial-gradient(circle at 12% 92%, rgba(0, 216, 232, 0.19), transparent 28%),
        radial-gradient(circle at 85% 0%, rgba(0, 94, 165, 0.3), transparent 34%),
        linear-gradient(315deg, #06242e 0%, #073a50 54%, #0063a7 100%);
    color: #fff;
}

.contact-form::before {
    content: "";
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--brand-cyan-bright);
}

.contact-form__head {
    display: grid;
    gap: 10px;
}

.contact-form__head p {
    max-width: 520px;
    color: rgba(238, 249, 251, 0.76);
}

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

.contact-field {
    position: relative;
    display: block;
}

.contact-field--select {
    z-index: 5;
}

.contact-field__control {
    position: relative;
    display: block;
}

.contact-field__icon {
    position: absolute;
    left: 17px;
    top: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: rgba(207, 244, 250, 0.95);
    pointer-events: none;
}

.contact-form .contact-field__icon {
    color: rgba(207, 244, 250, 0.95);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 62px;
    padding: 18px 18px 18px 60px;
    border: 1px solid rgba(207, 244, 250, 0.28);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.contact-form select {
    appearance: none;
    padding-right: 48px;
    cursor: pointer;
}

.contact-form option {
    color: var(--ink);
}

.contact-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.contact-select__button {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 62px;
    padding: 27px 54px 11px 60px;
    border: 1px solid rgba(207, 244, 250, 0.28);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    text-align: left;
    transition: border-color 170ms ease, background-color 170ms ease, box-shadow 170ms ease;
}

.contact-select__button:hover,
.contact-select__button:focus-visible,
.contact-field--select.is-open .contact-select__button {
    border-color: rgba(0, 216, 232, 0.82);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(0, 194, 220, 0.12);
    outline: none;
}

.contact-select__button .contact-field__chevron {
    top: 26px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    color: rgba(207, 244, 250, 0.92);
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    transition: transform 170ms ease, color 170ms ease;
}

.contact-field--select.is-open .contact-field__chevron {
    color: #fff;
    transform: rotate(225deg) translateY(-2px);
}

.contact-select__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    padding: 8px;
    border: 1px solid rgba(0, 216, 232, 0.28);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(5, 35, 47, 0.98), rgba(7, 58, 80, 0.98));
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    opacity: 0;
    transform: translateY(-6px);
    visibility: hidden;
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.contact-field--select.is-open .contact-select__menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.contact-select__option {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 13px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(238, 249, 251, 0.82);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-align: left;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.contact-select__option:hover,
.contact-select__option:focus-visible,
.contact-select__option.is-selected {
    background: rgba(0, 216, 232, 0.14);
    color: #fff;
    outline: none;
}

.contact-select__option:hover,
.contact-select__option:focus-visible {
    transform: translateX(2px);
}

.contact-form textarea {
    min-height: 162px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(207, 226, 231, 0.38);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: rgba(0, 216, 232, 0.82);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(0, 194, 220, 0.12);
}

.contact-field__label {
    position: absolute;
    left: 60px;
    top: 10px;
    z-index: 2;
    color: rgba(238, 249, 251, 0.62);
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}

.contact-field--has-label input,
.contact-field--has-label select,
.contact-field--has-label textarea {
    padding-top: 27px;
    padding-bottom: 11px;
}

.contact-field__chevron {
    position: absolute;
    right: 18px;
    top: 23px;
    color: rgba(207, 244, 250, 0.88);
    pointer-events: none;
}

.contact-form__wide {
    grid-column: 1 / -1;
}

.contact-form__trap {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-form__consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(238, 249, 251, 0.86);
    font-size: 14px;
    line-height: 1.45;
}

.contact-form__consent input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--brand-cyan-bright);
}

.contact-form__consent a {
    color: #9cf4ff;
    font-weight: 600;
    text-decoration: none;
    background-image: radial-gradient(circle, rgba(156, 244, 255, 0.44) 1px, transparent 1.35px);
    background-repeat: repeat-x;
    background-position: 0 calc(100% - 1px);
    background-size: 5px 2px;
    transition: color 0.18s ease, background-image 0.18s ease;
}

.contact-form__consent a:hover,
.contact-form__consent a:focus-visible {
    color: #fff;
    background-image: radial-gradient(circle, rgba(156, 244, 255, 0.82) 1px, transparent 1.35px);
    outline: none;
}

.contact-form .button {
    width: 100%;
    min-height: 64px;
}

.contact-form .button svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.contact-form__safe {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: rgba(238, 249, 251, 0.64);
    font-size: 13px;
    text-align: center;
}

.contact-result-modal {
    position: fixed;
    inset: 0;
    z-index: 520;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 27, 34, 0.54);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.contact-result-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.contact-result-modal__card {
    position: relative;
    width: min(430px, 100%);
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(0, 194, 220, 0.24);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(239, 251, 255, 0.96), rgba(255, 255, 255, 0.98)), #fff;
    box-shadow: 0 28px 90px rgba(7, 27, 34, 0.28);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.contact-result-modal.is-open .contact-result-modal__card {
    transform: translateY(0) scale(1);
}

.contact-result-modal__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-cyan), var(--accent));
}

.contact-result-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(0, 89, 123, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.contact-result-modal__close:hover,
.contact-result-modal__close:focus-visible {
    border-color: rgba(0, 152, 207, 0.38);
    background: #fff;
    color: var(--accent);
    outline: none;
}

.contact-result-modal__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 194, 220, 0.16), rgba(0, 101, 138, 0.08));
    color: var(--accent);
}

.contact-result-modal--danger .contact-result-modal__icon {
    background: rgba(241, 80, 68, 0.12);
    color: var(--accent-warm);
}

.contact-result-modal__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-result-modal__title {
    margin: 0 38px 8px 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: 0;
}

.contact-result-modal__text {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.contact-result-modal__button {
    width: 100%;
    justify-content: center;
}

.contacts-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 22px 18px;
}

.contacts-benefit {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 76px;
    padding: 0 18px;
}

.contacts-benefit + .contacts-benefit {
    border-left: 1px solid var(--line);
}

.contacts-benefit__icon {
    width: 52px;
    height: 52px;
    background: rgba(241, 80, 68, 0.1);
    color: rgb(241 80 68);
}

.contacts-benefit strong {
    display: block;
    color: #06294d;
    font-size: 15px;
    line-height: 1.25;
}

.contacts-benefit span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.3;
}

@media (max-width: 1080px) {
    .contacts-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .contacts-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .contacts-hero__visual {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 24%;
        opacity: 0.5;
    }

    .contacts-hero__benefits {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(0, 194, 220, 0.42);
        padding-top: 22px;
    }
}

@media (max-width: 760px) {
    .contacts-page {
        gap: 20px;
    }

    .contacts-hero,
    .contacts-card,
    .contacts-map,
    .contact-form,
    .contacts-benefits {
        border-radius: var(--radius-md);
    }

    .contacts-hero {
        min-height: 0;
        padding: 26px 22px;
    }

    .contacts-hero__visual {
        display: none;
    }

    .contacts-hero h1 {
        font-size: clamp(31px, 9vw, 38px);
        line-height: 1.08;
    }

    .contacts-hero p {
        font-size: 16px;
    }

    .contacts-hero__benefits,
    .contacts-benefits,
    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contacts-hero__benefits {
        gap: 14px;
    }

    .contacts-card,
    .contact-form {
        padding: 22px;
    }

    .contact-field input,
    .contact-field textarea,
    .contact-field select,
    .contact-select__button {
        min-width: 0;
    }

    .contact-result-modal__card {
        width: calc(100vw - 24px);
        padding: 24px 20px 20px;
    }

    .contact-result-modal__title {
        font-size: 22px;
    }

    .contacts-map,
    .contacts-map__fallback {
        min-height: 330px;
    }

    .contacts-map__overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        grid-template-columns: 1fr;
    }

    .contacts-map__button {
        width: 100%;
        text-align: center;
    }

    .contacts-benefit {
        padding: 14px 4px;
    }

    .contacts-benefit + .contacts-benefit {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/* Softer contact page weights for Onest. */
.contacts-hero__benefit strong,
.contact-card__label,
.contacts-map__button,
.contact-field label,
.contact-select__button,
.contact-form .button {
    font-weight: 600;
}

.contacts-card h2,
.contact-form h2,
.contact-card__value,
.contacts-map__place strong,
.contacts-benefit strong,
.contact-result-modal__title {
    font-weight: 700;
}
