.repair-header {
    --header-slate: #292f40;
    --header-ink: #292f40;
    --header-blue: #3659d4;
    position: relative;
    z-index: 20;
    padding-top: clamp(10px, 2.2vw, 32px);
    background: #373c4d;
}

.repair-header__shell {
    width: min(94%, 1548px);
    margin-inline: auto;
}

.repair-header__contact-bar,
.repair-header__navigation,
.repair-header__location,
.repair-header__contact-actions,
.repair-header__actions {
    display: flex;
    align-items: center;
}

.repair-header__contact-bar {
    min-height: 48px;
    justify-content: space-between;
    gap: 12px;
    padding-inline: clamp(12px, 2vw, 30px);
    border-radius: 14px 14px 0 0;
    background: var(--header-slate);
    color: #fff;
    font-size: 14px;
}

.repair-header__location,
.repair-header__contact-actions {
    gap: clamp(12px, 1.65vw, 28px);
}

.repair-header__contact-bar a,
.repair-header__contact-bar summary {
    color: #fff;
    text-decoration: none;
}

.repair-header__address {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
}

.repair-header__address::before {
    content: '';
    width: 4px;
    height: 4px;
    margin-right: 14px;
    border-radius: 50%;
    background: #abb6d2;
}

.repair-header__hours {
    color: #e1e6f4;
    white-space: nowrap;
}

.repair-header__phone a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0;
    font-size: clamp(14px, 1.2vw, 19px);
    font-weight: 700;
    white-space: nowrap;
}

.repair-header__phone a::before {
    content: '';
    position: static;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0;
    border-radius: 0;
    background: url('/template/images/main-phone.svg') center / contain no-repeat;
}

.repair-header__city,
.repair-header__menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
}

.repair-header summary::-webkit-details-marker { display: none; }
.repair-header summary::marker { content: ''; }

.repair-header__city {
    gap: 7px;
    font-weight: 650;
    white-space: nowrap;
}

.repair-header__city img { object-fit: contain; }

.repair-header__chevron {
    width: 7px;
    height: 7px;
    margin-left: 2px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.repair-header__cities[open] .repair-header__chevron {
    transform: translateY(2px) rotate(225deg);
}

.repair-header__cities,
.repair-header__navigation {
    position: relative;
}

.repair-header__city-list,
.repair-header__mobile-panel {
    position: absolute;
    z-index: 2;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    border-radius: 10px;
    background: #fff;
    color: var(--header-ink);
    box-shadow: 0 8px 26px rgb(22 29 44 / 22%);
    list-style: none;
}

.repair-header__city-list {
    inset-inline-start: 0;
    width: max-content;
    min-width: 185px;
}

.repair-header__city-list li { margin: 0; padding: 0; }
.repair-header__city-list li::before { content: none; }

.repair-header__city-list a,
.repair-header__desktop-menu a,
.repair-header__mobile-menu a,
.repair-header__mobile-contact a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--header-ink);
    text-decoration: none;
    font-weight: 600;
}

.repair-header__city-list a,
.repair-header__mobile-menu a { padding-inline: 12px; border-radius: 6px; }

.repair-header__navigation {
    min-height: clamp(66px, 6.7vw, 106px);
    justify-content: space-between;
    gap: clamp(12px, 2.2vw, 42px);
    padding: 8px clamp(12px, 2vw, 30px);
    border-radius: 0 0 14px 14px;
    background: #fff;
    color: var(--header-ink);
}

.repair-header__brand {
    display: flex;
    align-items: center;
    flex: 0 1 clamp(185px, 22vw, 375px);
    min-height: 44px;
}

.repair-header__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.repair-header__desktop-menu {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2vw, 32px);
    margin-inline: auto;
}

.repair-header__desktop-menu a {
    white-space: nowrap;
    font-size: clamp(14px, 1.16vw, 18px);
}

.repair-header__actions { gap: clamp(8px, 1vw, 16px); }

:is(.repair-header__whatsapp, .repair-header__messenger),
.repair-header__callback,
.repair-header__menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 9px;
}

:is(.repair-header__whatsapp, .repair-header__messenger) { flex: 0 0 44px; }
:is(.repair-header__whatsapp, .repair-header__messenger) img { display: block; }

.repair-header__callback {
    padding: 0 clamp(12px, 1.7vw, 26px);
    border: 0;
    background: var(--header-blue);
    color: #fff;
    font: inherit;
    font-size: clamp(14px, 1.15vw, 18px);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

@media (hover: hover) {
    .repair-header__desktop-menu a:hover,
    .repair-header__desktop-menu a[aria-current="page"],
    .repair-header__city-list a:hover,
    .repair-header__mobile-menu a:hover { color: #2444b2; }
    .repair-header__city-list a:hover,
    .repair-header__mobile-menu a:hover,
    :is(.repair-header__whatsapp, .repair-header__messenger):hover,
    .repair-header__menu-button:hover { background: #edf2ff; }
    .repair-header__callback:hover { background: #2947b9; }
    .repair-header__contact-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
}

.repair-header :is(a, button, summary):focus:not(:focus-visible) { outline: none; }
.repair-header :is(a, button, summary):focus-visible {
    outline: 2px solid #2851c7;
    outline-offset: 2px;
}
.repair-header__contact-bar :is(a, summary):focus-visible { outline-color: #b6c8ff; }
.repair-header__contact-bar .repair-header__city-list a:focus-visible { outline-color: #2851c7; }
.repair-header :is(a, button, summary):active { outline: none; }

.repair-header__mobile,
.repair-header__mobile-contact,
.repair-header__mobile-actions { display: none; }

.repair-header__menu-button { color: var(--header-ink); }

.repair-header__menu-icon {
    position: relative;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.repair-header__menu-icon::before,
.repair-header__menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
}

.repair-header__menu-icon::before { top: -7px; }
.repair-header__menu-icon::after { top: 7px; }
.repair-header__mobile[open] .repair-header__menu-icon { background: transparent; }
.repair-header__mobile[open] .repair-header__menu-icon::before { top: 0; transform: rotate(45deg); }
.repair-header__mobile[open] .repair-header__menu-icon::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1023px) {
    .repair-header__desktop-menu { display: none; }
    .repair-header__mobile { display: block; }
    .repair-header__brand { flex-basis: clamp(155px, 29vw, 250px); }
    .repair-header__actions { margin-left: auto; }
    .repair-header__mobile-panel { inset-inline-end: 0; width: min(360px, 100%); }
    .repair-header__mobile-menu { display: grid; }
}

@media (max-width: 730px) {
    .repair-header__hours { display: none; }
    .repair-header__mobile-contact {
        display: grid;
        padding: 0 12px 10px;
        font-size: 14px;
        color: #56617b;
    }
}

@media (max-width: 530px) {
    .repair-header__address,
    .repair-header__actions { display: none; }
    .repair-header__brand { flex-basis: clamp(152px, 48vw, 248px); }
    .repair-header__mobile-panel { width: 100%; }
    .repair-header__mobile-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 4px 6px 6px;
    }
    .repair-header__mobile-actions .repair-header__callback { flex: 1; }
}

#popup_0 .close[role="button"]:focus:not(:focus-visible) { outline: none; }
#popup_0 .close[role="button"]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.repair-header__messengers {
    display: flex;
    gap: 2px;
}

.social--messengers {
    border-radius: 14px;
    overflow: hidden;
}

.contacts-page .social--messengers {
    display: inline-flex;
    width: fit-content;
}

.social--messengers .social__item {
    align-items: center;
    justify-content: center;
}

.social--messengers .social__item:focus:not(:focus-visible) {
    outline: none;
}

.social--messengers .social__item:focus-visible {
    outline: 2px solid #2851c7;
    outline-offset: -5px;
}
