.contacts-page {
    --contacts-accent: #4d6aff;
    padding: 30px var(--site-chrome-gutter) 100px;
    color: #1d1e1f;
    background: #fff;
}

.contacts-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 40px 0 46px;
}

.contacts-page__heading h1 {
    margin: 0;
    font-size: clamp(48px, 3.384vw, 67px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.contacts-page__heading p {
    max-width: 340px;
    margin: 0;
    color: #62656c;
    font-size: 18px;
    line-height: 1.5;
}

.contacts-channels {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 20px;
}

.contacts-channel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 2vw, 38px);
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.contacts-channel--phone {
    border-color: var(--contacts-accent);
    background: var(--contacts-accent);
    color: #fff;
}

.contacts-channel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.contacts-channel h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
}

.contacts-channel__icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.contacts-channel__value {
    align-self: flex-start;
    color: inherit;
    font-size: clamp(23px, 1.72vw, 34px);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contacts-channel__note {
    margin: 12px 0 30px;
    color: #62656c;
    font-size: 15px;
    line-height: 1.55;
}

.contacts-channel--phone .contacts-channel__note {
    color: #fff;
}

.contacts-channel__schedule,
.contacts-channel__action {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 15px;
    line-height: 1.4;
}

.contacts-channel__schedule svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.contacts-channel__action {
    align-self: flex-start;
    color: var(--contacts-accent);
    font-weight: 500;
    text-decoration: none;
}

.contacts-arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    transition: transform 180ms ease;
}

.contacts-page a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
    border-radius: 3px;
}

.contacts-page a:hover .contacts-arrow {
    transform: translate(2px, -2px);
}

.contacts-channel__value:hover,
.contacts-channel__action:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contacts-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid #e8e8e8;
}

.contacts-socials p {
    margin: 0;
    color: #62656c;
    font-size: 15px;
    line-height: 1.5;
}

.contacts-socials__links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
}

.contacts-socials a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    gap: 10px;
    color: inherit;
    font-size: 15px;
    text-decoration: none;
}

.contacts-socials img {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

.contacts-socials .contacts-arrow {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
    margin-left: 4px;
    color: #62656c;
}

.contacts-location {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(32px, 4vw, 76px);
    margin-top: 60px;
}

.contacts-location h2,
.contacts-help h2 {
    margin: 0;
    font-size: clamp(28px, 2vw, 38px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.2;
}

.contacts-location__company {
    margin: 32px 0 24px;
    font-size: 21px;
    font-weight: 500;
}

.contacts-location__data {
    display: grid;
    gap: 22px;
    margin: 0 0 28px;
}

.contacts-location dt {
    margin-bottom: 8px;
    color: #62656c;
    font-size: 14px;
}

.contacts-location dd {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

.contacts-location address {
    max-width: 350px;
    font-style: normal;
}

.contacts-location__map-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    gap: 16px;
    padding: 12px 18px;
    border: 1px solid #dfe3f3;
    border-radius: 8px;
    color: var(--contacts-accent);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 180ms ease;
}

.contacts-location__map-link:hover {
    background: #f3f5ff;
}

.contacts-location__note {
    max-width: 360px;
    margin: 22px 0 0;
    color: #62656c;
    font-size: 14px;
    line-height: 1.6;
}

.contacts-location__note a {
    color: inherit;
    text-underline-offset: 3px;
}

.contacts-location__map {
    min-width: 0;
    min-height: 460px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #f5f6f8;
}

.contacts-location iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

.contacts-help {
    margin-top: 68px;
}

.contacts-help__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.contacts-help__links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border-radius: 8px;
    background: #f6f7f9;
    color: inherit;
    text-decoration: none;
    transition: background 180ms ease;
}

.contacts-help__links a:hover {
    background: #eff2ff;
}

.contacts-help strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.contacts-help strong + span {
    display: block;
    margin-top: 8px;
    color: #62656c;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 1199px) {
    .contacts-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contacts-channel--phone {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 12px 24px;
    }

    .contacts-channel--phone .contacts-channel__top {
        grid-column: 1 / -1;
        margin: 0 0 8px;
    }

    .contacts-channel--phone .contacts-channel__value {
        font-size: 32px;
    }

    .contacts-channel--phone .contacts-channel__note {
        grid-row: 3;
        margin: 0;
    }

    .contacts-channel--phone .contacts-channel__schedule {
        grid-column: 2;
        grid-row: 2 / 4;
        margin: 0;
    }

    .contacts-location {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .contacts-help__links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 767px) {
    .contacts-page {
        padding-top: 24px;
        padding-bottom: 60px;
    }

    .contacts-page__heading {
        display: block;
        margin: 30px 0;
    }

    .contacts-page__heading h1 {
        font-size: 38px;
    }

    .contacts-page__heading p {
        max-width: 340px;
        margin-top: 18px;
        font-size: 16px;
    }

    .contacts-channels {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contacts-channel,
    .contacts-channel--phone {
        display: flex;
        gap: 0;
        padding: 24px;
    }

    .contacts-channel__top,
    .contacts-channel--phone .contacts-channel__top {
        margin-bottom: 24px;
    }

    .contacts-channel__value,
    .contacts-channel--phone .contacts-channel__value {
        font-size: clamp(24px, 6.3vw, 30px);
    }

    .contacts-channel__note,
    .contacts-channel--phone .contacts-channel__note {
        margin: 10px 0 24px;
    }

    .contacts-socials {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .contacts-location {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 40px;
    }

    .contacts-location__company {
        margin-top: 24px;
    }

    .contacts-location__map,
    .contacts-location iframe {
        min-height: 340px;
        height: 340px;
    }

    .contacts-help {
        margin-top: 40px;
    }

    .contacts-help__links {
        margin-top: 22px;
    }

    .contacts-help__links a {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacts-page a,
    .contacts-arrow {
        transition: none;
    }
}

.contacts-location--without-map {
    grid-template-columns: 1fr;
}
