.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-family: var(--prichal-font);
}

.site-header.topmenu-COLOR.canfixed {
    background: transparent;
    box-shadow: none;
}

body.has-site-header,
body:has(.site-header) {
    padding-top: var(--site-header-total);
}

.site-header__left {
    display: none;
}

.site-header__top {
    background: var(--prichal-surface);
    border-bottom: 1px solid var(--prichal-border);
    box-shadow: var(--prichal-shadow-sm);
}

.site-header__top-inner {
    position: relative;
    min-height: var(--site-header-top);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-header__brand {
    display: none;
    flex-direction: column;
    gap: 2px;
    max-width: 220px;
    text-decoration: none;
    color: var(--prichal-ink);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.site-header__brand:hover {
    color: var(--prichal-brand);
}

.site-header__brand-tagline {
    color: var(--prichal-ink-muted);
    font-weight: 500;
    font-size: 12px;
}

.site-header__route {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--prichal-radius-pill);
    background: var(--prichal-surface-soft);
    text-decoration: none;
    color: var(--prichal-brand);
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-header__route:hover {
    background: #e8f2fa;
    color: var(--prichal-brand-dark);
}

.site-header__route-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--prichal-brand);
    color: #fff;
    font-size: 14px;
}

.site-header__logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    z-index: 1;
    line-height: 0;
    justify-self: center;
}

.site-header__logo-img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.site-header__actions {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    grid-column: 3;
    justify-self: end;
    position: relative;
    z-index: 2;
    min-width: 0;
}

.site-header__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 10px;
    border-radius: var(--prichal-radius-pill);
    background: var(--prichal-surface-soft);
    text-decoration: none;
    color: var(--prichal-ink);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header__chip:hover {
    background: #fff;
    box-shadow: var(--prichal-shadow-sm);
    color: var(--prichal-ink);
}

.site-header__chip--accent:hover {
    color: var(--prichal-ink);
}

.site-header__chip-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
}

.site-header__chip-icon--brand {
    background: linear-gradient(145deg, var(--prichal-brand-light), var(--prichal-brand));
}

.site-header__chip-icon--camping {
    background: linear-gradient(145deg, #f25563, var(--prichal-accent));
}

.site-header__chip-text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.site-header__phones {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.site-header__phones a {
    color: var(--prichal-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.site-header__phones a:hover {
    color: var(--prichal-brand);
}

.site-header__mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--site-header-top);
}

.site-header__mobile-route {
    display: flex;
    align-items: center;
}

.site-header__mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-header__mobile-camping {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-header__nav {
    background: linear-gradient(90deg, var(--prichal-brand-dark) 0%, var(--prichal-brand) 52%, var(--prichal-brand-light) 100%);
    padding: 0;
    min-height: var(--site-header-nav);
}

.site-header__nav .navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.site-header__nav .navbar-nav {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.site-header__nav .nav-item {
    flex: 1;
    text-align: center;
}

.site-header__nav .nav-item.dropdown:hover,
.site-header__nav .nav-item.dropdown.show {
    background: rgba(255, 255, 255, 0.12);
}

.site-header__nav .nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.92) !important;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 14px 12px !important;
    border-radius: 0;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header__nav .nav-link::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 6px;
    height: 2px;
    border-radius: 0;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.site-header__nav .nav-item:hover .nav-link,
.site-header__nav .nav-item.dropdown.show .nav-link,
.site-header__nav .nav-link:focus {
    color: #fff !important;
    background: transparent;
}

.site-header__nav .nav-item:hover .nav-link::after,
.site-header__nav .nav-item.dropdown.show .nav-link::after {
    transform: scaleX(1);
}

.site-header__nav .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

.site-header__nav .dropdown-menu {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    min-width: 100%;
    box-shadow: 0 8px 24px rgba(15, 42, 68, 0.18);
    overflow: hidden;
}

.site-header__nav .dropdown-item {
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    color: var(--prichal-ink) !important;
}

.site-header__nav .dropdown-item + .dropdown-item {
    border-top: 1px solid var(--prichal-border);
}

.site-header__nav .dropdown-item:hover,
.site-header__nav .dropdown-item:focus {
    background: var(--prichal-brand);
    color: #fff !important;
}

.site-header .navbar-toggler {
    border: 1px solid var(--prichal-border);
    border-radius: var(--prichal-radius-sm);
    padding: 0.45rem 0.55rem;
    background: #fff;
}

.site-header .navbar-toggler-icon {
    width: 1.35em;
    height: 1.35em;
}

@media (min-width: 768px) {
    .site-header__left {
        display: flex;
        align-items: center;
        gap: 16px;
        grid-column: 1;
        justify-self: start;
        min-width: 0;
    }

    .site-header__mobile {
        display: none;
    }

    .site-header__top-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 20px;
    }

    .site-header__logo {
        grid-column: 2;
    }

    .site-header__left .site-header__brand {
        display: flex;
    }

    .site-header__actions {
        display: flex;
        flex-wrap: nowrap;
    }

    .site-header__brand,
    .site-header__route {
        display: flex;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .site-header__brand {
        max-width: 160px;
        font-size: 12px;
    }

    .site-header__route span:not(.site-header__route-icon) {
        display: none;
    }

    .site-header__route {
        padding: 8px 10px;
    }

    .site-header__chip-text {
        font-size: 12px;
        max-width: 120px;
    }

    .site-header__phones a {
        font-size: 12px;
    }

    .site-header__logo-img {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 767.98px) {
    .site-header__top-inner {
        position: relative;
    }

    .site-header__logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .site-header__nav {
        background: #fff;
        border-top: 1px solid var(--prichal-border);
    }

    .site-header__nav .navbar-collapse {
        background: #fff;
    }

    .site-header__nav .nav-item {
        flex: none;
        text-align: left;
    }

    .site-header__nav .nav-link {
        color: var(--prichal-ink) !important;
        padding: 12px 16px !important;
        font-size: 15px;
    }

    .site-header__nav .nav-link::after {
        display: none;
    }

    .site-header__nav .nav-item:hover .nav-link {
        background: var(--prichal-surface-soft);
        color: var(--prichal-brand) !important;
    }

    .site-header__logo-img {
        width: 64px;
        height: 64px;
    }

    body.has-site-header,
    body:has(.site-header) {
        padding-top: var(--site-header-top);
    }

    .site-header__nav:not(.show) {
        min-height: 0;
    }
}
