.contacts-page {
    --contacts-navy: #0a2d47;
    --contacts-green: #00c688;
    --contacts-mint: #00f6a9;
    --contacts-muted: #5b7990;
    --contacts-icon: #144370;
    --contacts-border: #e6e6e6;
    --contacts-box-border: #e7e7e7;
    --contacts-input-border: #c6c6c6;
    --contacts-social-border: #d6d6d6;

    background: #fff;
    color: var(--contacts-navy);
    font-family: var(--font-family);
    font-weight: 300;
}

.contacts-container {
    width: 100%;
    max-width: calc(var(--content-max-width) + var(--page-inline) * 2);
    margin: 0 auto;
    padding: 0 var(--page-inline);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */
.contacts-hero {
    padding: 44px 0 50px;
}

.contacts-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 710fr) minmax(0, 499fr);
    gap: 25px;
    align-items: stretch;
}

.contacts-hero__intro,
.contacts-hero__form {
    box-sizing: border-box;
    min-height: 339px;
    border: 1px solid var(--contacts-box-border);
    border-radius: 15px;
    background: #fff;
}

.contacts-hero__intro {
    padding: 41px 45px;
}

.contacts-hero__title {
    margin: 0;
    color: var(--contacts-navy);
    font-size: 35px;
    font-weight: 300;
    line-height: 50px;
}

.contacts-hero__divider {
    height: 1px;
    margin: 22px -45px 0;
    background: var(--contacts-border);
}

.contacts-hero__text {
    max-width: 524px;
    margin: 22px 0 0;
    color: var(--contacts-muted);
    font-size: 19px;
    font-weight: 300;
    line-height: 32px;
}

.contacts-hero__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 41px 34px;
}

.contacts-hero__input {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 16px 24px;
    border: 1px solid var(--contacts-input-border);
    border-radius: 10px;
    background: #fff;
    color: var(--contacts-navy);
    font-family: inherit;
    font-size: 18px;
    font-weight: 250;
    line-height: 1.2;
    outline: none;
}

.contacts-hero__input::placeholder {
    color: var(--contacts-navy);
    opacity: 1;
}

.contacts-hero__input:focus {
    border-color: var(--contacts-navy);
}

.contacts-hero__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 50px;
    margin-top: 3px;
    padding: 0 24px;
    border: 0;
    border-radius: 10px;
    background: var(--contacts-mint);
    color: var(--contacts-navy);
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.contacts-hero__submit:hover {
    opacity: 0.88;
}

.contacts-hero__submit-arrow {
    display: block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    object-fit: contain;
}

/* Info */
.contacts-info {
    padding: 0 0 120px;
}

.contacts-info__inner {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 25px;
    align-items: stretch;
}

.contacts-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-height: 513px;
    padding: 58px 45px 50px;
    border: 1px solid var(--contacts-border);
    border-radius: 15px;
    background: #fff;
}

.contacts-card__block + .contacts-card__block {
    margin-top: 28px;
}

.contacts-card__label {
    display: block;
    width: auto;
    margin-left: -45px;
    margin-right: -45px;
    padding: 0 45px 12px;
    border-bottom: 1px solid #E6E6E6;
    color: var(--contacts-navy);
    font-size: 17px;
    font-weight: 250;
    line-height: 1.2;
    text-transform: uppercase;
}

.contacts-card__value {
    display: block;
    margin: 16px 0 0;
    color: var(--contacts-navy);
    font-size: 19px;
    font-weight: 300;
    line-height: 28px;
}

a.contacts-card__value:hover {
    opacity: 0.75;
}

.contacts-card__social {
    display: flex;
    gap: 15px;
    margin-top: auto;
    padding-top: 36px;
}

.contacts-card__social-link {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--contacts-social-border);
    color: var(--contacts-icon);
    transition: border-color 0.2s ease;
    border-radius: 50%;
}

.contacts-card__social-link:hover {
    border-color: var(--contacts-navy);
}

.contacts-card__social-link img {
    display: block;
    max-width: 24px;
    max-height: 22px;
    object-fit: contain;
}

.contacts-map {
    overflow: hidden;
    border-radius: 15px;
    min-height: 513px;
    background: #d9d9d9;
}

.contacts-map__iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 513px;
    border: 0;
}

/* Header active — 6th nav item */
body.page-contacts .site-header__nav-item:nth-child(6) .site-header__nav-link {
    position: relative;
}

body.page-contacts .site-header__nav-item:nth-child(6) .site-header__nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -17px;
    height: 2px;
    background: var(--contacts-green, #00c688);
}
