.header-contacts {
    position: relative;
    z-index: 20;
    margin-right: 0;
}

.header-contacts__toggle {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1c1c1c;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.header-contacts__toggle:focus-visible {
    outline: 2px solid #0144a4;
    outline-offset: 4px;
}

.header-contacts__toggle .hero__search__phone__icon {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    float: none;
}

.header-contacts__number {
    white-space: nowrap;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.header-contacts__chevron {
    margin-left: 9px;
    color: #0144a4;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.header-contacts.is-open .header-contacts__chevron {
    transform: rotate(180deg);
}

.header-contacts__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 370px;
    padding: 24px;
    /*border-top: 3px solid #0144a4;*/
    background: #fff;
    box-shadow: 0 12px 35px rgba(16, 38, 71, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.header-contacts.is-open .header-contacts__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-contacts__section {
    margin-bottom: 15px;
}

.header-contacts__section:last-of-type {
    margin-bottom: 20px;
}

.header-contacts__label,
.header-contacts__detail p {
    margin: 0 0 3px;
    color: #252525;
    font-size: 13px;
    line-height: 1.55;
}

.header-contacts__section a,
.header-contacts__detail a {
    color: #0054b8;
    font-size: 14px;
    line-height: 1.5;
}

.header-contacts__details {
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
}

.header-contacts__detail {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.header-contacts__detail > i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0054b8;
    color: #fff;
    font-size: 13px;
}

.header-contacts__detail strong {
    display: block;
    margin-bottom: 3px;
    color: #252525;
    font-size: 15px;
}

.header-contacts__socials {
    display: flex;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid #e5e5e5;
}

.header-contacts__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f4f7;
    color: #1c1c1c;
    font-size: 15px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.header-contacts__socials a:hover,
.header-contacts__socials a:focus {
    background: #0144a4;
    color: #fff;
}

@media (max-width: 1199px) {
    .header-contacts__number {
        font-size: 15px;
    }

    .header-contacts__toggle .hero__search__phone__icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .hero__search__form {
        width: calc(100% - 225px);
    }
}

@media (max-width: 767px) {
    .header-contacts {
        margin-top: 30px;
    }

    .header-contacts__panel {
        right: auto;
        left: 0;
        width: calc(100vw - 30px);
        max-width: 370px;
        padding: 20px;
    }

    .header-contacts__panel::before {
        right: auto;
        left: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-contacts__chevron,
    .header-contacts__panel {
        transition: none;
    }
}
