.hc-contacts-page {
    --hc-contacts-bg: #fefcf9;
    --hc-contacts-text: #1f1911;
    --hc-contacts-muted: #7b6f5e;
    --hc-contacts-soft: #efebe5;
    --hc-contacts-soft-2: #e7e2da;
    --hc-contacts-primary: #ff5500;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
    background: var(--hc-contacts-bg);
    color: var(--hc-contacts-text);
    font-family: Onest, Arial, sans-serif;
}

.hc-contacts-page *,
.hc-contacts-page *::before,
.hc-contacts-page *::after {
    box-sizing: border-box;
}

.hc-contacts-page a {
    color: inherit;
    text-decoration: none;
}

.hc-contacts-page__container {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    padding: 10px 12px 60px;
}

.hc-contacts-page__header {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hc-contacts-page__intro {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hc-contacts-page__intro h1,
.hc-contacts-page__intro p,
.hc-contacts-card__label,
.hc-contacts-card__description {
    margin: 0;
}

.hc-contacts-page__intro h1 {
    color: var(--hc-contacts-text);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 2.75rem;
    letter-spacing: 0;
}

.hc-contacts-page__intro p {
    color: #423a2e;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.75rem;
}

.hc-contacts-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    background: var(--hc-contacts-soft);
}

.hc-contacts-tabs__button {
    display: inline-flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #423a2e;
    cursor: pointer;
    padding: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.hc-contacts-tabs__button i {
    flex: 0 0 auto;
    font-size: 20px;
    line-height: 1;
}

.hc-contacts-tabs__button span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hc-contacts-tabs__button:hover {
    background: rgba(255, 255, 255, 0.45);
}

.hc-contacts-tabs__button.is-active {
    background: var(--hc-contacts-primary);
    color: #fff;
}

.hc-contacts-tabs__button:focus-visible,
.hc-contacts-card__button:focus-visible,
.hc-contacts-card:focus-visible,
.hc-contacts-map:focus-visible {
    outline: 2px solid var(--hc-contacts-primary);
    outline-offset: 3px;
}

.hc-contacts-page__body {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hc-contacts-page__panels {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.hc-contacts-panel {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    grid-column: 1;
    grid-row: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
    visibility: hidden;
}

.hc-contacts-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.hc-contacts-card {
    display: flex;
    width: 100%;
    min-height: 136px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-radius: 20px;
    background: var(--hc-contacts-soft);
    padding: 28px;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

a.hc-contacts-card:hover {
    transform: translateY(-2px);
    background: var(--hc-contacts-soft-2);
}

.hc-contacts-card__label {
    color: #423a2e;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
}

.hc-contacts-card__title {
    display: inline-flex;
    max-width: 100%;
    color: #423a2e;
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    overflow-wrap: anywhere;
}

a.hc-contacts-card__title:hover {
    color: var(--hc-contacts-primary);
}

.hc-contacts-card__description {
    color: var(--hc-contacts-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.hc-contacts-card__phone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hc-contacts-card__button {
    position: relative;
    display: inline-flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 8px;
    background: var(--hc-contacts-primary);
    color: #fff;
    cursor: pointer;
    margin-top: 12px;
    padding: 18px 32px;
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25rem;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.hc-contacts-card__button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 85, 0, 0.36);
    pointer-events: none;
    animation: hc-contacts-button-ping 1.5s infinite ease-in-out;
}

.hc-contacts-card__button span,
.hc-contacts-card__button i {
    position: relative;
    z-index: 1;
}

.hc-contacts-card__button:hover {
    background: #eb4e00;
}

.hc-contacts-card__button:active {
    background: var(--hc-contacts-primary);
    box-shadow: 0 0 0 4px rgba(255, 85, 0, 0.4);
}

.hc-contacts-card__button i {
    font-size: 20px;
    line-height: 1;
}

.hc-contacts-map {
    position: relative;
    display: block;
    width: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 0;
}

.hc-contacts-map__image {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(254, 252, 249, 0.2), rgba(254, 252, 249, 0.72)),
        url("/local/templates/horus/assets/images/location.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.72;
}

.hc-contacts-map__logo {
    position: absolute;
    bottom: 128px;
    left: 50%;
    width: 116px;
    height: auto;
    transform: translateX(-50%);
}

@keyframes hc-contacts-button-ping {
    0% {
        opacity: 1;
        transform: scale(1, 1);
    }

    100% {
        opacity: 0;
        transform: scale(1.08, 1.42);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hc-contacts-card,
    .hc-contacts-tabs__button,
    .hc-contacts-card__button,
    .hc-contacts-panel {
        transition: none;
    }

    .hc-contacts-card__button::before {
        animation: none;
    }
}

@media (min-width: 768px) {
    .hc-contacts-page__container {
        gap: 40px;
        padding: 16px 120px 80px;
    }

    .hc-contacts-page__header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 40px;
    }

    .hc-contacts-page__intro h1 {
        font-size: 3.5rem;
        line-height: 4rem;
    }

    .hc-contacts-page__intro p {
        font-size: 1.125rem;
        line-height: 2rem;
    }

    .hc-contacts-tabs {
        width: max-content;
        min-width: 328px;
    }

    .hc-contacts-page__body {
        display: grid;
        grid-template-columns: minmax(320px, 0.48fr) minmax(0, 1fr);
        align-items: start;
        gap: 56px;
    }

    .hc-contacts-card {
        min-height: 124px;
        padding: 20px;
    }

    .hc-contacts-card__button {
        margin-top: 8px;
    }

    .hc-contacts-map {
        min-height: 514px;
    }

    .hc-contacts-map__image {
        background-image:
            linear-gradient(90deg, rgba(254, 252, 249, 0.06), rgba(254, 252, 249, 0.62)),
            url("/local/templates/horus/assets/images/locationDesktop.png");
        background-position: center;
    }

    .hc-contacts-map__logo {
        bottom: 128px;
        left: 42%;
        width: 116px;
    }
}

@media (min-width: 1200px) {
    .hc-contacts-page__body {
        grid-template-columns: minmax(360px, 400px) minmax(0, 1fr);
        gap: 80px;
    }
}
