﻿.ag-header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: var(--ag-dark);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.16);
}

.ag-header__main {
    min-height: 78px;
    display: grid;
    grid-template-columns: 230px minmax(260px, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 8px 0;
}

.ag-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    height: 62px;
    overflow: hidden;
}

.ag-logo__media {
    width: 210px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.ag-logo__img {
    display: block;
    width: auto;
    height: auto;
    max-width: 210px;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
}

.ag-logo__text {
    font-family: Montserrat, Roboto, Arial, sans-serif;
    font-weight: 900;
    font-size: 34px;
    letter-spacing: -1.2px;
    color: #fff;
    line-height: 1;
}

    .ag-logo__text strong {
        color: var(--ag-red);
    }

.ag-logo__sub {
    margin-top: 5px;
    color: #9aa2a9;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 800;
}

.ag-search {
    height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.ag-search__input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 17px;
    color: #1f2933;
    background: #fff;
    font-size: 13px;
}

.ag-search__btn {
    border: 0;
    background: var(--ag-red);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .ag-search__btn:hover {
        background: var(--ag-red-dark);
    }

    .ag-search__btn svg {
        width: 19px;
        height: 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
    }

.ag-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.ag-act {
    position: relative;
    min-width: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.ag-act__icon {
    position: relative;
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    color: #fff;
}

    .ag-act__icon svg {
        width: 23px;
        height: 23px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.ag-act__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
}

    .ag-act__meta small {
        color: #c8cdd2;
        font-size: 11px;
        font-weight: 500;
    }

    .ag-act__meta strong {
        color: #fff;
        font-size: 11px;
        font-weight: 800;
    }

.ag-act__badge {
    position: absolute;
    top: -9px;
    right: 2px;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--ag-red);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ag-lang {
    position: relative;
}

.ag-lang__btn {
    min-width: 48px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 4px;
    font-weight: 800;
    font-size: 12px;
}

    .ag-lang__btn svg {
        width: 13px;
        height: 13px;
        fill: currentColor;
    }

.ag-lang__menu,
.ag-account__menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: 210px;
    background: #fff;
    color: var(--ag-text);
    border: 1px solid var(--ag-border);
    border-radius: 10px;
    box-shadow: var(--ag-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .16s ease;
    z-index: 90;
}

.ag-lang.is-open .ag-lang__menu,
.ag-account.is-open .ag-account__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ag-lang__item,
.ag-account__item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ag-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 11px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
}

    .ag-lang__item:hover,
    .ag-account__item:hover {
        background: #f4f5f6;
    }

    .ag-lang__item.is-current {
        background: #f4f5f6;
        color: var(--ag-red);
    }

.ag-account {
    position: relative;
}

.ag-account__form {
    margin: 0;
}

.ag-account__item--danger {
    color: var(--ag-red);
}

.ag-navwrap {
    background: var(--ag-dark-2);
    border-top: 1px solid rgba(255,255,255,.06);
}

.ag-nav {
    height: 44px;
    display: flex;
    align-items: stretch;
}

.ag-catbtn {
    width: 190px;
    border: 0;
    background: var(--ag-dark-3);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0 17px;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
}

.ag-catbtn__icon {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

    .ag-catbtn__icon span {
        width: 16px;
        height: 2px;
        background: #fff;
        display: block;
        border-radius: 999px;
    }

.ag-menu {
    display: flex;
    align-items: center;
    min-width: 0;
}

.ag-menu__link {
    height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: #d8dde2;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
    border-left: 1px solid rgba(255,255,255,.04);
}

    .ag-menu__link:hover,
    .ag-menu__link.is-active {
        color: var(--ag-red);
    }

.ag-mobilebtn {
    display: none;
    width: 40px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    background: transparent;
    border-radius: 5px;
    cursor: pointer;
    padding: 9px;
}

    .ag-mobilebtn span {
        display: block;
        height: 2px;
        background: #fff;
        border-radius: 99px;
        margin-bottom: 5px;
    }

        .ag-mobilebtn span:last-child {
            margin-bottom: 0;
        }

.ag-mobile {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
}

    .ag-mobile[aria-hidden="true"] {
        display: none;
    }

.ag-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.62);
}

.ag-mobile__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(360px, 86vw);
    height: 100%;
    background: #111518;
    color: #fff;
    padding: 18px;
    pointer-events: auto;
}

.ag-mobile__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .ag-mobile__head button {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 6px;
        background: var(--ag-red);
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }

.ag-mobile__links {
    display: grid;
    gap: 3px;
    padding-top: 14px;
}

    .ag-mobile__links a {
        padding: 13px 10px;
        border-radius: 8px;
        color: #fff;
        font-weight: 800;
    }

        .ag-mobile__links a:hover {
            background: rgba(255,255,255,.08);
        }

@media (max-width: 1080px) {
    .ag-header__main {
        grid-template-columns: 200px minmax(220px, 1fr) auto;
        gap: 16px;
    }

    .ag-logo__media {
        width: 190px;
    }

    .ag-logo__img {
        max-width: 190px;
    }

    .ag-act__meta {
        display: none;
    }
}

@media (max-width: 980px) {
    .ag-header__main {
        min-height: auto;
        padding: 14px 0;
        grid-template-columns: 1fr auto;
    }

    .ag-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ag-fav {
        display: none;
    }

    .ag-mobilebtn {
        display: inline-block;
    }

    .ag-menu {
        display: none;
    }

    .ag-catbtn {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .ag-header__main {
        gap: 12px;
    }

    .ag-logo {
        height: 54px;
    }

    .ag-logo__media {
        width: 170px;
        height: 54px;
    }

    .ag-logo__img {
        max-width: 170px;
        max-height: 54px;
    }

    .ag-logo__text {
        font-size: 27px;
    }

    .ag-search {
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .ag-actions {
        gap: 8px;
    }
}
