/*
 * v2 chrome: header, menu, footer.
 * Bootstrap 5 layout. Icons from fontawesome-7.3.1-web.
 * Page sections belong in /css/v2/style.css or a page css file.
 */
:root {
    --npc-container: 1520px;
    --npc-bar: #1a73e9;
    --npc-blue: #007dd1;
    --npc-blue-dark: #155ebe;
    --npc-logo: #0092cd;
    --npc-accent: #0079e0;
    --npc-btn: #036fdd;
    --npc-btn-catalog: #3c2399;
    --npc-accent-light: var(--npc-blue);
    --npc-link-active: var(--npc-logo);
    --npc-slogan: #0a7eae;
    --npc-ink: #172033;
    --npc-muted: #5c6b80;
    --npc-line: #e6edf5;
    --npc-soft: #f5f8fb;
    --npc-navy: #071428;
    --npc-navy-2: #0c1c33;
    --npc-footer-text: #c5d0e0;
    --npc-badge: #f03d3d;
}

.npc-v2 {
    margin: 0;
    color: var(--npc-ink);
    font-family: Roboto, "Segoe UI", sans-serif;
    background: #fff;
}

.npc-v2 a {
    color: inherit;
}

.npc-v2 .container {
    max-width: var(--npc-container);
}

#npc-v2-main {
    min-height: 240px;
}

.npc-v2-topbar {
    background: var(--npc-blue);
    color: #fff;
    font-size: 13.5px;
    line-height: 1;
}

.npc-v2-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 38px;
}

.npc-v2-topbar__contacts {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.npc-v2-topbar__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.npc-v2-topbar__contacts a:hover {
    color: #fff;
    opacity: .85;
}

.npc-v2-topbar__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.npc-v2-topbar__links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.npc-v2-topbar__links a:hover,
.npc-v2-topbar__links a.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.npc-v2-header {
    background: #fff;
    border-bottom: 1px solid var(--npc-line);
}

.npc-v2-header__row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 84px;
}

.npc-v2-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--npc-ink);
    min-width: 0;
}

.npc-v2-logo:hover {
    color: var(--npc-ink);
}

.npc-v2-logo img {
    display: block;
    height: 52px;
    width: auto;
}

.npc-v2-logo__slogan {
    display: block;
    max-width: 132px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--npc-slogan);
}

.npc-v2-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.npc-v2-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.npc-v2-nav a,
.npc-v2-nav span {
    position: relative;
    display: inline-block;
    padding: 6px 0 8px;
    color: var(--npc-ink);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
}

.npc-v2-nav a:hover {
    color: var(--npc-link-active);
}

.npc-v2-nav .is-active a,
.npc-v2-nav .is-active span {
    color: var(--npc-link-active);
}

.npc-v2-nav .is-active a::after,
.npc-v2-nav .is-active span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--npc-link-active);
}

.npc-v2-search {
    position: relative;
    flex: 0 1 260px;
    width: 260px;
    margin-left: auto;
}

.npc-v2-search input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid #e4ebf3;
    border-radius: 10px;
    background: var(--npc-soft);
    color: var(--npc-ink);
    font-size: 14px;
}

.npc-v2-search input::placeholder {
    color: #93a0b2;
}

.npc-v2-search input:focus {
    outline: none;
    border-color: #b9d4f8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .12);
}

.npc-v2-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8b97a8;
}

.npc-v2-search button:hover {
    color: var(--npc-blue);
}

.npc-v2-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.npc-v2-iconbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #243044;
    font-size: 18px;
    text-decoration: none;
}

.npc-v2-iconbtn:hover {
    background: var(--npc-soft);
    color: var(--npc-blue);
}

.npc-v2-cart .items-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--npc-badge);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.npc-v2-cart .items-count.is-zero {
    display: none;
}

.npc-v2-drop {
    position: relative;
}

.npc-v2-drop__menu,
.npc-v2-cart .items-list {
    display: none;
    position: absolute;
    top: calc(100% - 4px);
    right: 0;
    z-index: 40;
    min-width: 180px;
    padding: 8px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(16, 36, 72, .16);
}

.npc-v2-cart .items-list {
    width: 320px;
    padding: 12px;
}

.npc-v2-drop.is-open > .npc-v2-drop__menu,
.npc-v2-cart.is-open > .items-list {
    display: block;
}

.npc-v2-drop__menu a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--npc-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.npc-v2-drop__menu a:hover {
    background: var(--npc-soft);
    color: var(--npc-blue);
}

.npc-v2-cart__empty {
    padding: 16px 8px;
    color: var(--npc-muted);
    font-size: 14px;
    text-align: center;
}

.npc-v2-cart .items-list .item {
    padding: 8px 0;
    border-bottom: 1px solid var(--npc-line);
}

.npc-v2-cart .items-list .item-name {
    margin: 0 0 4px;
    font-size: 13px;
}

.npc-v2-cart .items-list .item-name a {
    color: var(--npc-ink);
    text-decoration: none;
}

.npc-v2-cart .items-list .item-price {
    margin: 0;
    color: var(--npc-muted);
    font-size: 13px;
}

.npc-v2-cart .items-list .view-cart {
    display: flex;
    gap: 8px;
    padding-top: 12px;
}

.npc-v2-cart .items-list .view-cart .btn {
    flex: 1;
    font-size: 13px;
}

.npc-v2-cart .close-cart {
    display: inline-flex;
    margin-left: auto;
    cursor: pointer;
}

.npc-v2-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--npc-ink);
    font-size: 18px;
}

.npc-v2-mobile {
    padding-bottom: 12px;
}

.npc-v2-mobile__nav,
.npc-v2-mobile__sub {
    margin: 0;
    padding: 0;
    list-style: none;
}

.npc-v2-mobile__nav a,
.npc-v2-mobile__sub a {
    display: block;
    padding: 10px 4px;
    color: var(--npc-ink);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.npc-v2-mobile__sub {
    border-top: 1px solid var(--npc-line);
    margin-top: 4px;
}

.npc-v2-mobile__sub a {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--npc-muted);
}

.npc-v2-footer {
    background: var(--npc-navy);
    color: var(--npc-footer-text);
}

.npc-v2-footer__main {
    padding: 48px 0 36px;
}

.npc-v2-logo--footer .npc-v2-logo__slogan {
    color: #d5e2f2;
    font-weight: 600;
}

.npc-v2-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.npc-v2-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 15px;
    text-decoration: none;
}

.npc-v2-footer__social a:hover {
    background: var(--npc-blue);
    color: #fff;
}

.npc-v2-footer__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.npc-v2-footer__links,
.npc-v2-footer__contacts {
    margin: 0;
    padding: 0;
    list-style: none;
}

.npc-v2-footer__links li + li,
.npc-v2-footer__contacts li + li {
    margin-top: 10px;
}

.npc-v2-footer__links a {
    color: var(--npc-footer-text);
    font-size: 14px;
    text-decoration: none;
}

.npc-v2-footer__links a:hover {
    color: #fff;
}

.npc-v2-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.npc-v2-footer__contacts i {
    width: 16px;
    margin-top: 3px;
    color: #8fb4e8;
    text-align: center;
}

.npc-v2-footer__contacts a {
    color: var(--npc-footer-text);
    text-decoration: none;
}

.npc-v2-footer__contacts a:hover {
    color: #fff;
}

.npc-v2-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: var(--npc-navy-2);
    color: #8ea0b8;
    font-size: 13px;
}

.npc-v2-footer__bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
}

.npc-v2-footer__bar a {
    color: #8ea0b8;
    text-decoration: none;
}

.npc-v2-footer__bar a:hover {
    color: #fff;
}

@media (min-width: 992px) {
    .npc-v2-auth:hover > .npc-v2-drop__menu,
    .npc-v2-auth:focus-within > .npc-v2-drop__menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .npc-v2-header__row {
        flex-wrap: wrap;
        gap: 8px 12px;
        min-height: 72px;
        padding: 10px 0;
    }

    .npc-v2-logo {
        flex: 1 1 auto;
    }

    .npc-v2-search {
        flex: 1 1 100%;
        width: 100%;
        margin-left: 0;
        order: 3;
    }

    .npc-v2-logo__slogan {
        display: none;
    }

    .npc-v2-logo img {
        height: 44px;
    }
}

@media (max-width: 575.98px) {
    .npc-v2-footer__bar-row {
        flex-direction: column;
        justify-content: center;
        padding: 12px 0;
        text-align: center;
    }
}
