/* =========================================================
   PROSPEKT PARTS — PUBLIC HEADER
   ========================================================= */

.pp-header {
    --pp-header-accent: #6f2c91;
    --pp-header-accent-hover: #5b2278;
    --pp-header-text: #19191c;
    --pp-header-muted: #77777f;
    --pp-header-border: #ececf0;
    --pp-header-surface: #ffffff;
    --pp-header-soft: #f7f7f9;

    position: sticky;
    top: 0;
    z-index: 1040;

    width: 100%;
    background: var(--pp-header-surface);
    color: var(--pp-header-text);

    box-shadow: 0 4px 22px rgba(19, 15, 27, 0.06);
}


/* =========================================================
   MAIN LEVEL
   ========================================================= */

.pp-header__main {
    background: #fff;
    border-bottom: 1px solid var(--pp-header-border);
}

.pp-header__main-inner {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* =========================================================
   LOGO
   ========================================================= */

.pp-header__logo {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 10px;

    color: var(--pp-header-text);
    text-decoration: none;
}

.pp-header__logo:hover {
    color: var(--pp-header-text);
}

.pp-header__logo-image {
    display: block;

    width: 44px;
    height: 44px;

    object-fit: contain;
}

.pp-header__logo-name {
    max-width: 145px;

    font-size: 17px;
    font-weight: 600;
    line-height: 1.05;

    white-space: nowrap;
}


/* =========================================================
   SEARCH
   ========================================================= */

.pp-header__search {
    flex: 1 1 auto;

    max-width: 700px;

    margin: 0 auto;
}

.pp-header__search-box {
    position: relative;

    width: 100%;
    height: 46px;

    display: flex;
    align-items: center;

    border: 1px solid #dedee4;
    border-radius: 12px;

    background: #fafafa;

    overflow: hidden;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.pp-header__search-box:focus-within {
    border-color: rgba(111, 44, 145, .55);
    background: #fff;

    box-shadow:
        0 0 0 3px rgba(111, 44, 145, .08);
}

.pp-header__search-prefix {
    flex: 0 0 auto;

    margin-left: 15px;

    font-size: 21px;

    color: #929298;
}

.pp-header__search-input {
    flex: 1 1 auto;

    min-width: 0;
    height: 100%;

    padding: 0 14px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #1e1e22;

    font-size: 14px;
}

.pp-header__search-input::placeholder {
    color: #99999f;
}

.pp-header__search-submit {
    align-self: stretch;

    min-width: 82px;

    border: 0;
    border-left: 1px solid #e6e6ea;

    background: transparent;

    color: var(--pp-header-accent);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.pp-header__search-submit:hover {
    background: rgba(111, 44, 145, .06);
    color: var(--pp-header-accent-hover);
}


/* =========================================================
   ACTIONS
   ========================================================= */

.pp-header__actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    gap: 11px;
}

.pp-header__phones {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-right: 7px;
}

.pp-header__phones > .material-symbols-outlined {
    font-size: 21px;
    color: #8a8a91;
}

.pp-header__phones div {
    display: flex;
    flex-direction: column;

    line-height: 1.35;
}

.pp-header__phones a {
    color: #333338;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;
}

.pp-header__phones a:hover {
    color: var(--pp-header-accent);
}


/* ICON BUTTON */

.pp-header__icon-button {
    position: relative;

    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--pp-header-border);
    border-radius: 11px;

    background: #fff;
    color: #525258;

    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.pp-header__icon-button:hover {
    border-color: #ddd3e3;

    background: #faf7fc;
    color: var(--pp-header-accent);

    transform: translateY(-1px);
}

.pp-header__icon-button .material-symbols-outlined {
    font-size: 21px;
}

.pp-header__telegram {
    color: #229ed9;
}


/* CART COUNT */

.pp-header__cart-count {
    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 4px;

    border: 2px solid #fff;
    border-radius: 20px;

    background: #dc3545;
    color: #fff;

    font-size: 9px;
    font-weight: 700;
}


/* =========================================================
   AUTH
   ========================================================= */

.pp-header__login {
    min-height: 40px;

    display: flex;
    align-items: center;
    gap: 6px;

    padding: 0 13px;

    border: 1px solid var(--pp-header-border);
    border-radius: 11px;

    color: #333338;
    background: #fff;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.pp-header__login .material-symbols-outlined {
    font-size: 21px;
}

.pp-header__login:hover {
    border-color: #ddd3e3;

    color: var(--pp-header-accent);
    background: #faf7fc;
}


/* =========================================================
   SECOND LEVEL
   ========================================================= */

.pp-header__nav-wrapper {
    position: relative;

    background: #fff;
}

.pp-header__nav {
    min-height: 54px;

    display: flex;
    align-items: center;

    gap: 27px;
}


/* =========================================================
   CATALOG
   ========================================================= */

.pp-header__catalog {
    position: relative;

    flex: 0 0 auto;
}

.pp-header__catalog-button {
    height: 38px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0 15px;

    border: 0;
    border-radius: 10px;

    background: #f4eff7;
    color: var(--pp-header-accent);

    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition: background .2s ease;
}

.pp-header__catalog-button:hover {
    background: #eee5f3;
}

.pp-header__catalog-button > .material-symbols-outlined:first-child {
    font-size: 19px;
}

.pp-header__catalog-arrow {
    font-size: 18px;

    transition: transform .2s ease;
}

.pp-header__catalog.is-open .pp-header__catalog-arrow {
    transform: rotate(180deg);
}


/* DROPDOWN */

.pp-header__catalog-dropdown {
    position: absolute;

    top: calc(100% + 10px);
    left: 0;

    width: 620px;

    padding: 20px;

    border: 1px solid var(--pp-header-border);
    border-radius: 15px;

    background: #fff;

    box-shadow:
        0 20px 60px rgba(25, 16, 35, .13);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-6px);

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.pp-header__catalog.is-open .pp-header__catalog-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.pp-header__catalog-title {
    margin-bottom: 14px;

    color: #252529;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .05em;
}

.pp-header__catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 6px;
}

.pp-header__catalog-grid a {
    display: flex;
    flex-direction: column;
    gap: 2px;

    padding: 10px 12px;

    border-radius: 9px;

    color: #26262b;

    text-decoration: none;

    transition:
        background .18s ease,
        color .18s ease;
}

.pp-header__catalog-grid a:hover {
    background: #f7f3f9;

    color: var(--pp-header-accent);
}

.pp-header__catalog-grid strong {
    font-size: 13px;
    font-weight: 650;
}

.pp-header__catalog-grid span {
    color: #98989e;

    font-size: 11px;
}


/* =========================================================
   NAV LINKS
   ========================================================= */

.pp-header__links {
    display: flex;
    align-items: center;
    gap: 25px;

    min-width: 0;
}

.pp-header__links > a {
    position: relative;

    padding: 18px 0;

    color: #55555b;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
    white-space: nowrap;

    transition: color .2s ease;
}

.pp-header__links > a:hover,
.pp-header__links > a.is-active {
    color: var(--pp-header-accent);
}

.pp-header__links > a.is-active::after {
    content: "";

    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    border-radius: 3px 3px 0 0;

    background: var(--pp-header-accent);
}


/* =========================================================
   BURGER
   ========================================================= */

.pp-header__burger {
    display: none;

    width: 40px;
    height: 40px;

    padding: 9px;

    border: 1px solid var(--pp-header-border);
    border-radius: 11px;

    background: #fff;

    cursor: pointer;
}

.pp-header__burger span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 4px 0;

    border-radius: 20px;

    background: #333338;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.pp-header.is-menu-open .pp-header__burger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.pp-header.is-menu-open .pp-header__burger span:nth-child(2) {
    opacity: 0;
}

.pp-header.is-menu-open .pp-header__burger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* =========================================================
   MOBILE ONLY
   ========================================================= */

.pp-header__mobile-search,
.pp-header__mobile-footer {
    display: none;
}


/* =========================================================
   RESPONSIVE — SMALL DESKTOP
   ========================================================= */

@media (max-width: 1199px) {

    .pp-header__main-inner {
        gap: 18px;
    }

    .pp-header__phones {
        display: none;
    }

    .pp-header__links {
        gap: 18px;
    }

    .pp-header__links > a {
        font-size: 12px;
    }

}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991px) {

    .pp-header {
        position: sticky;
        top: 0;
    }

    .pp-header__main-inner {
        min-height: 63px;

        gap: 12px;
    }

    .pp-header__logo-image {
        width: 39px;
        height: 39px;
    }

    .pp-header__logo-name {
        font-size: 15px;
    }

    .pp-header__search {
        display: none;
    }

    .pp-header__auth {
        display: none;
    }

    .pp-header__telegram {
        display: none;
    }

    .pp-header__actions {
        margin-left: auto;

        gap: 8px;
    }

    .pp-header__burger {
        display: block;
    }


    /* MOBILE SEARCH */

    .pp-header__mobile-search {
        height: 43px;

        display: flex;
        align-items: center;

        margin-bottom: 10px;

        border: 1px solid #dedee4;
        border-radius: 11px;

        background: #f8f8fa;

        overflow: hidden;
    }

    .pp-header__mobile-search > .material-symbols-outlined {
        margin-left: 12px;

        color: #929298;

        font-size: 20px;
    }

    .pp-header__mobile-search input {
        flex: 1;

        min-width: 0;
        height: 100%;

        padding: 0 10px;

        border: 0;
        outline: 0;

        background: transparent;

        font-size: 14px;
    }

    .pp-header__mobile-search button {
        width: 44px;
        height: 100%;

        display: flex;
        align-items: center;
        justify-content: center;

        border: 0;

        background: transparent;
        color: var(--pp-header-accent);
    }

    .pp-header__mobile-search button .material-symbols-outlined {
        font-size: 20px;
    }


    /* MENU DRAWER */

    .pp-header__nav-wrapper {
        position: fixed;

        top: var(--pp-mobile-header-height, 116px);
        right: 0;
        bottom: 0;
        left: 0;

        overflow-y: auto;

        background: rgba(255,255,255,.985);

        opacity: 0;
        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity .2s ease,
            transform .2s ease,
            visibility .2s ease;
    }

    .pp-header.is-menu-open .pp-header__nav-wrapper {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);
    }

    .pp-header__nav {
        min-height: 0;

        display: block;

        padding: 12px 0 30px;
    }


    /* MOBILE CATALOG */

    .pp-header__catalog {
        width: 100%;

        border-bottom: 1px solid #eeeef2;
    }

    .pp-header__catalog-button {
        width: 100%;
        height: 52px;

        justify-content: flex-start;

        padding: 0 4px;

        border-radius: 0;

        background: transparent;

        color: #222226;

        font-size: 15px;
    }

    .pp-header__catalog-button:hover {
        background: transparent;
    }

    .pp-header__catalog-button .pp-header__catalog-arrow {
        margin-left: auto;
    }

    .pp-header__catalog-dropdown {
        position: static;

        width: 100%;

        max-height: 0;

        padding: 0;

        border: 0;
        border-radius: 0;

        box-shadow: none;

        opacity: 1;
        visibility: visible;

        overflow: hidden;

        transform: none;

        transition: max-height .3s ease;
    }

    .pp-header__catalog.is-open .pp-header__catalog-dropdown {
        max-height: 800px;

        padding-bottom: 12px;
    }

    .pp-header__catalog-title {
        display: none;
    }

    .pp-header__catalog-grid {
        grid-template-columns: 1fr;

        gap: 1px;
    }

    .pp-header__catalog-grid a {
        padding: 9px 12px;
    }


    /* MOBILE LINKS */

    .pp-header__links {
        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;
    }

    .pp-header__links > a {
        padding: 15px 4px;

        border-bottom: 1px solid #eeeef2;

        color: #333338;

        font-size: 15px;
    }

    .pp-header__links > a.is-active::after {
        display: none;
    }


    /* MOBILE FOOTER */

    .pp-header__mobile-footer {
        display: block;

        padding-top: 24px;
    }

    .pp-header__mobile-phones {
        display: flex;
        align-items: flex-start;

        gap: 10px;

        margin-bottom: 19px;
    }

    .pp-header__mobile-phones > .material-symbols-outlined {
        color: #8b8b91;

        font-size: 20px;
    }

    .pp-header__mobile-phones div {
        display: flex;
        flex-direction: column;

        gap: 4px;
    }

    .pp-header__mobile-phones a {
        color: #37373c;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;
    }

    .pp-header__mobile-account {
        min-height: 46px;

        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        padding: 0 16px;

        border-radius: 11px;

        background: var(--pp-header-accent);
        color: #fff;

        font-size: 14px;
        font-weight: 600;

        text-decoration: none;
    }

    .pp-header__mobile-account:hover {
        background: var(--pp-header-accent-hover);

        color: #fff;
    }

    .pp-header__mobile-logout {
        display: block;

        padding: 15px 0;

        color: #99999f;

        font-size: 13px;

        text-align: center;
        text-decoration: none;
    }

    body.pp-header-menu-open {
        overflow: hidden;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 575px) {

    .pp-header__main-inner {
        min-height: 60px;
    }

    .pp-header__logo {
        gap: 7px;
    }

    .pp-header__logo-image {
        width: 36px;
        height: 36px;
    }

    .pp-header__logo-name {
        max-width: 125px;

        font-size: 14px;
    }

    .pp-header__icon-button,
    .pp-header__burger {
        width: 38px;
        height: 38px;
    }

}


/* REALLY SMALL DEVICES */

@media (max-width: 370px) {

    .pp-header__logo-name {
        display: none;
    }

}


/* =========================================================
   PRINT
   ========================================================= */

@media print {

    .pp-header {
        display: none !important;
    }

}