.site-header {
    --header-yellow: #ffd504;
    --header-dark: #1c1c1c;
    position: relative;
    z-index: 100;
    width: 100%;
    height: 120px;
    background: var(--header-dark);
    font-family: Inter, sans-serif;
}

.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}

.site-header a { text-decoration: none; }

.site-header__inner {
    display: flex;
    align-items: center;
    width: 1280px;
    height: 100%;
    margin: 0 auto;
}

.site-header__logo,
.site-header__brand {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.site-header__logo img {
    display: block;
    width: 102px;
    height: 50px;
}

.site-header__nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 85px;
    white-space: nowrap;
}

.site-header__nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: normal;
    transition: color 160ms ease;
}

.site-header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.site-header__contacts a { font-weight: 500; line-height: normal; }
.site-header__phone { color: var(--header-yellow); font-size: 16px; }
.site-header__mail { color: #fff; font-size: 14px; }

.site-header__account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 51px;
    height: 51px;
    margin-left: 20px;
    border: 1px solid var(--header-yellow);
    border-radius: 3px;
    transition: background-color 160ms ease;
}

.site-header__account img { display: block; width: 19px; height: 22.6191px; }
.site-header__brand { margin-left: 20px; }
.site-header__brand img { display: block; width: 166px; height: 51px; }

.site-header__nav a:hover,
.site-header__nav a:focus-visible,
.site-header__mobile nav a:hover,
.site-header__mobile nav a:focus-visible { color: var(--header-yellow); }

.site-header__account:hover,
.site-header__account:focus-visible { background: rgba(255, 213, 4, 0.12); }

.site-header__toggle,
.site-header__mobile { display: none; }

.site-header__toggle:focus-visible,
.site-header a:focus-visible {
    outline: 2px solid var(--header-yellow);
    outline-offset: 4px;
}

@media (max-width: 1280px) {
    .site-header { height: 80px; }
    .site-header__inner { width: 100%; padding: 0 20px; }
    .site-header__nav,
    .site-header__contacts,
    .site-header__account { display: none; }
    .site-header__logo img { width: 82px; height: 40px; }
    .site-header__brand { margin-left: 16px; }
    .site-header__brand img { width: 130px; height: 40px; }

    .site-header__toggle {
        display: flex;
        flex-direction: column;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        gap: 7px;
        width: 60px;
        height: 54px;
        margin-left: auto;
        padding: 0;
        border: 0;
        border-radius: 5px;
        background: var(--header-yellow);
        cursor: pointer;
    }

    .site-header__toggle span {
        width: 30px;
        height: 2px;
        border-radius: 2px;
        background: var(--header-dark);
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(9px) rotate(45deg); }
    .site-header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-9px) rotate(-45deg); }

    .site-header__mobile {
        position: fixed;
        inset: 80px 0 0;
        z-index: 99;
        overflow-y: auto;
        padding: 32px max(20px, calc((100vw - 728px) / 2));
        background: var(--header-dark);
    }

    .site-header__mobile:not([hidden]) { display: flex; flex-direction: column; }
    .site-header__mobile nav { display: flex; flex-direction: column; }

    .site-header__mobile nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        color: #fff;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.3;
    }

    .site-header__mobile-contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
        padding-top: 36px;
    }

    .site-header__mobile-contacts a:first-child { color: var(--header-yellow); font-size: 18px; }
    .site-header__mobile-contacts a:last-child { color: #fff; font-size: 14px; }
    body.site-menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
    .site-header__inner { padding: 0 12px; }
    .site-header__logo img { width: 61px; height: 30px; }
    .site-header__brand { margin-left: 12px; }
    .site-header__brand img { width: 98px; height: 30px; }
    .site-header__toggle { width: 48px; height: 44px; gap: 6px; }
    .site-header__toggle span { width: 24px; }
    .site-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(8px) rotate(45deg); }
    .site-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-8px) rotate(-45deg); }
}

@media (prefers-reduced-motion: reduce) {
    .site-header__nav a,
    .site-header__account,
    .site-header__toggle span { transition: none; }
}
