/* ===========================
   FONT: Manrope (self-hosted, variable 400–800)
=========================== */
/* cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope/cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope/cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope/latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope/latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #11355e;
    --primary-dark: #0b2645;
    --accent: #ff6a00;
    --success: #2ecc71;
    --warning: #f39c12;
    --bg: #f5f5f5;
    --white: #ffffff;
    --text: #1d2b3a;
    --text-light: #7a8aa0;
    --border: #e0e0e0;
    --shadow: 0 6px 24px rgba(17,53,94,0.10);
    --radius: 14px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===========================
   HEADER TOP
=========================== */
.header-top {
    background: linear-gradient(90deg, #0b2645 0%, #11355e 55%, #173f6b 100%);
    padding: 9px 0;
    color: white;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header-top-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.header-top-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background var(--transition), transform var(--transition);
}

.header-top-item:hover {
    background: rgba(255,255,255,0.14);
    transform: translateY(-1px);
}

/* Единый бейдж под иконку (одинаковый для всех сервисов) */
.ht-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.header-top-item img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.header-top-item:hover .ht-ico {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.5);
}

/* При наведении бейдж окрашивается в фирменный цвет сервиса (глиф остаётся белым) */
.phone-link:hover .ht-ico { background: #25d366; }                 /* WhatsApp */
.gis-link:hover .ht-ico   { background: #19aa1e; }                 /* 2ГИС */
.inst:hover .ht-ico {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); /* Instagram */
}

.header-top-delivery {
    white-space: nowrap;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 999px;
}

/* ===========================
   HEADER MAIN
=========================== */
header {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(8,22,34,0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    padding: 14px 0;
    border-bottom: 1px solid rgba(44,95,138,0.12);
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.logo-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 185px;
    color: #234b6e;
}

.logo-meta strong {
    font-size: 15px;
    line-height: 1.2;
}

.logo-meta span {
    font-size: 12px;
    color: #5b7489;
    line-height: 1.25;
}

/* ===========================
   SEARCH BAR
=========================== */
.search-bar {
    display: flex;
    flex: 1;
    max-width: 600px;
    min-width: 220px;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid rgba(44,95,138,0.4);
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 14px;
    outline: none;
    transition: border-color var(--transition);
}

.search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(232,93,4,0.1);
}

.search-bar button {
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-size: 14px;
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.search-bar button:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

/* ===========================
   HEADER ACTIONS
=========================== */
.header-actions {
    margin-left: auto;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-shrink: 0;
}

.header-actions a {
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 5px;
    transition: color var(--transition);
    position: relative;
    min-width: 55px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.header-actions a:hover {
    color: var(--primary);
    border-color: rgba(44,95,138,0.2);
    background: rgba(44,95,138,0.06);
}

.header-actions .icon {
    font-size: 22px;
    position: relative;
}

.header-actions .icon img,
.header-actions .ahdr-ico {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Иконки шапки (профиль / избранное / корзина) — единый стиль через CSS-маску */
.ahdr-ico {
    display: inline-block;
    background-color: var(--primary);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: background-color var(--transition), transform var(--transition);
}
.ahdr-user  { -webkit-mask-image: url(../img/icons/login.svg);    mask-image: url(../img/icons/login.svg); }
.ahdr-heart { -webkit-mask-image: url(../img/icons/favorite.svg); mask-image: url(../img/icons/favorite.svg); }
.ahdr-cart  { -webkit-mask-image: url(../img/icons/cart.svg);  mask-image: url(../img/icons/cart.svg); }

.header-actions a:hover .ahdr-ico {
    background-color: var(--accent);
    transform: translateY(-1px);
}

.cart-icon-wrap {
    position: relative;
    display: inline-block;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.fav-count {
    position: absolute;
    top: -2px;
    right: -8px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ===========================
   HEADER LINKS
=========================== */
.phone-link,
.gis-link,
.inst {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.phone-link:hover,
.gis-link:hover,
.inst:hover {
    opacity: 0.8;
}

/* ===========================
   NAVIGATION
=========================== */
nav {
    background: linear-gradient(90deg, #11355e 0%, #1c4877 100%);
    overflow-x: auto;
}

nav .container {
    display: flex;
    gap: 2px;
}

nav a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 14px 18px;
    font-size: 14px;
    transition: all var(--transition);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: white;
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--accent);
}

/* ===========================
   MAIN PAGE NAV DESIGN
=========================== */
.main-nav {
    position: relative;
    z-index: 20;
    background: linear-gradient(120deg, #0f3658 0%, #1f5f91 50%, #2e79b2 100%);
    box-shadow: 0 14px 28px rgba(11, 35, 56, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.main-nav .container {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

.main-nav a {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1px;
    white-space: nowrap;
    transition: all var(--transition);
}

.main-nav a::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.22), rgba(255,255,255,0.04));
    opacity: 0;
    transition: opacity var(--transition);
}

.main-nav a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 18px rgba(6, 24, 42, 0.28);
}

.main-nav a:hover::before,
.main-nav a.active::before {
    opacity: 1;
}

.main-nav a.active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 10px 22px rgba(7, 29, 49, 0.35);
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .header-top .container {
        justify-content: center;
    }

    .header-top-info {
        justify-content: center;
        gap: 10px;
    }

    .header-top-item {
        justify-content: center;
        width: auto;
        padding: 8px;
    }

    .header-top-item span,
    .header-top-delivery {
        display: none;
    }

    .header-main {
        padding: 10px 0;
    }

    .header-main .container {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo {
        margin-right: auto;
    }

    .logo-img {
        height: 46px;
    }

    .logo-meta {
        min-width: 0;
        flex: 1;
    }

    .search-bar {
        order: 3;
        min-width: 100%;
        max-width: none;
    }

    .header-actions {
        margin-left: 0;
        gap: 8px;
        width: auto;
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .header-actions a {
        flex: 0 0 auto;
        min-width: 0;
        padding: 6px 7px;
    }

    .header-actions .icon img,
    .header-actions .ahdr-ico {
        width: 26px;
        height: 26px;
    }

    .main-nav .container {
        padding: 8px 12px;
        gap: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav .container::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        padding: 9px 14px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .logo-meta span {
        display: none;
    }

    .logo-meta strong {
        font-size: 14px;
    }

    .search-bar input,
    .search-bar button {
        padding: 10px 14px;
        font-size: 13px;
    }

    .header-actions a {
        font-size: 11px;
    }

    .header-actions a > span:not(.icon) {
        display: none;
    }

    .header-actions {
        justify-content: flex-end;
        gap: 6px;
    }

    .header-actions a {
        padding: 5px;
    }

    .header-actions .icon img,
    .header-actions .ahdr-ico {
        width: 24px;
        height: 24px;
    }

    .main-nav {
        overflow-x: visible;
    }

    .main-nav .container {
        justify-content: space-between;
        gap: 4px;
        padding: 8px 10px;
    }

    .main-nav a {
        flex: 1;
        min-width: 0;
        padding: 9px 5px;
        font-size: 12px;
        text-align: center;
        letter-spacing: 0;
    }

    .slide-text {
        min-width: 0;
    }

    .slide-text h1 {
        font-size: 32px;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }
}

/* ===========================
   CART DRAWER
=========================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 18, 30, 0.52);
    backdrop-filter: blur(3px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), backdrop-filter var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
    backdrop-filter: blur(5px);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -14px 0 48px rgba(5, 20, 35, 0.26);
    border-left: 1px solid rgba(19, 56, 88, 0.14);
    transition: right var(--transition), box-shadow var(--transition);
}

.cart-drawer.active { right: 0; }

.cart-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background:
            radial-gradient(circle at top right, rgba(255,255,255,0.22), transparent 40%),
            linear-gradient(120deg, #0f446f, #0b2f4c 74%);
    color: white;
}

.cart-header h3 {
    font-size: 18px;
    letter-spacing: 0.2px;
}

.cart-close {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.35);
    color: white;
    font-size: 20px;
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.cart-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-items::-webkit-scrollbar {
    width: 7px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: rgba(11, 47, 76, 0.3);
    border-radius: 10px;
}

.cart-empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--text-light);
}

.cart-empty span { font-size: 50px; display: block; margin-bottom: 10px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(14, 44, 69, 0.1);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 10px;
    align-items: center;
    box-shadow: 0 5px 14px rgba(9, 32, 52, 0.06);
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    background: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cart-item-price { font-size: 14px; color: var(--primary); font-weight: bold; }
.cart-item-pack {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-item-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    padding: 4px;
    transition: color var(--transition);
}

.cart-item-remove:hover { color: #e74c3c; }


.cart-item-actions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(10, 41, 67, 0.14);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
}

.cart-total {
    font-size: 18px;
    margin-bottom: 15px;
    text-align: right;
}

.cart-total strong { color: var(--primary); font-size: 22px; }

.btn-checkout {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(120deg, #ff7a1a, #e85b00);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(232, 91, 0, 0.28);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(232, 91, 0, 0.34);
    filter: saturate(1.08);
}

/* ===========================
   BREADCRUMB
=========================== */
.breadcrumb {
    margin: 18px 0 16px;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #5f7890;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
    border: 1px solid #dbe8f4;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(13, 45, 74, 0.07);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition), transform var(--transition);
}

.breadcrumb a:hover {
    color: #0f4f80;
    transform: translateY(-1px);
}

.breadcrumb span { color: #9ab1c5; }

.breadcrumb-current {
    color: #3e5f7c !important;
    font-weight: 700;
    letter-spacing: 0.2px;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
    color: white;
    position: relative;
    overflow: hidden;
    padding: 54px 0 48px;
    margin-bottom: 30px;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.16), transparent 45%),
        radial-gradient(circle at 12% 84%, rgba(84, 177, 255, 0.22), transparent 40%),
        linear-gradient(135deg, rgba(8, 22, 34, 0.92), rgba(12, 43, 70, 0.9));
    transform: scale(1.03);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header-content {
    max-width: 760px;
    background: rgba(11, 36, 57, 0.42);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(2, 13, 23, 0.38);
    padding: 26px 30px;
}

.page-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d5ecff;
    background: rgba(124, 196, 255, 0.2);
    border: 1px solid rgba(185, 228, 255, 0.38);
    border-radius: 999px;
    padding: 6px 12px;
}

.page-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(32px, 4vw, 44px);
    margin-bottom: 10px;
    letter-spacing: 0.3px;
}

.page-header h1 img {
    width: clamp(38px, 4vw, 50px);
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.34));
}

.page-header p {
    max-width: 580px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(241, 249, 255, 0.92);
    margin-bottom: 18px;
}

.page-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-header-meta span {
    font-size: 13px;
    font-weight: 600;
    color: #f5fbff;
    background: rgba(3, 16, 27, 0.34);
    border: 1px solid rgba(201, 233, 255, 0.32);
    border-radius: 999px;
    padding: 8px 12px;
}

/* ===========================
   MAIN LAYOUT
=========================== */
.main-content {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 12px 0 70px;
    align-items: start;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 124px);
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 95, 138, 0.35) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(44, 95, 138, 0.35);
    border-radius: 999px;
}

.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}

.filter-block {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 0 10px 26px rgba(31, 75, 112, 0.09);
    border: 1px solid #e8f1f9;
    overflow: hidden;
}

.filter-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.filter-toggle::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: #eef6ff;
    color: var(--primary);
    font-size: 18px;
    line-height: 1;
    transition: transform var(--transition), background var(--transition);
}

.filter-block.is-open .filter-toggle {
    border-bottom: 1px solid #e8f0f7;
}

.filter-block.is-open .filter-toggle::after {
    content: "-";
    background: var(--primary);
    color: #fff;
}

.filter-panel {
    padding: 16px 18px 18px;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-item label {
    font-size: 14px;
    cursor: pointer;
    color: #555;
    flex: 1;
}

.filter-item .count {
    font-size: 12px;
    color: #bbb;
}

#brandFilters {
    max-height: min(360px, calc(100vh - 330px));
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 95, 138, 0.45) #eef4f9;
}

#brandFilters::-webkit-scrollbar {
    width: 8px;
}

#brandFilters::-webkit-scrollbar-track {
    background: #eef4f9;
    border-radius: 999px;
}

#brandFilters::-webkit-scrollbar-thumb {
    background: rgba(44, 95, 138, 0.45);
    border-radius: 999px;
}

.price-inputs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.price-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.price-inputs input:focus { border-color: var(--primary); }

.btn-filter {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}

.btn-filter:hover { background: var(--primary-dark); }

.btn-reset {
    background: #95a5a6;
    margin-top: 5px;
}

.btn-reset:hover { background: #7f8c8d; }

.categories-list {
    list-style: none;
    max-height: min(430px, calc(100vh - 260px));
    overflow-y: auto;
    padding-right: 6px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(44, 95, 138, 0.45) #eef4f9;
}

.categories-list::-webkit-scrollbar {
    width: 8px;
}

.categories-list::-webkit-scrollbar-track {
    background: #eef4f9;
    border-radius: 999px;
}

.categories-list::-webkit-scrollbar-thumb {
    background: rgba(44, 95, 138, 0.45);
    border-radius: 999px;
}

.categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eef4f9;
    border-radius: 10px;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.categories-list li a:hover,
.categories-list li a.active {
    color: var(--primary);
    font-weight: 600;
    background: #eef6ff;
    transform: translateX(2px);
}

.cat-count { font-size: 12px; color: #bbb; }

/* ===========================
   PRODUCTS SECTION
=========================== */
.products-section {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    padding: 24px;
    border-radius: calc(var(--radius) + 8px);
    background:
        radial-gradient(circle at top right, rgba(74, 144, 196, 0.14) 0%, rgba(74, 144, 196, 0) 42%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid #e4edf6;
    box-shadow: 0 18px 36px rgba(31, 75, 113, 0.08);
}

.promo-banner {
    background: linear-gradient(135deg, var(--accent), var(--warning));
    color: white;
    padding: 20px 25px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.promo-text h3 { font-size: 18px; margin-bottom: 4px; }
.promo-text p { font-size: 13px; opacity: 0.9; }

.promo-btn {
    padding: 10px 28px;
    background: white;
    color: var(--accent);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    transition: transform var(--transition);
}

.promo-btn:hover { transform: scale(1.05); }

/* ===========================
   TOOLBAR
=========================== */
.products-toolbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
    border-radius: var(--radius);
    box-shadow: 0 12px 24px rgba(39, 86, 126, 0.08);
    border: 1px solid #e5eef7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-size: 14px;
    color: #5a6876;
    background: #f3f8fd;
    border: 1px solid #dce8f3;
    border-radius: 999px;
    padding: 8px 14px;
}
.results-count strong { color: var(--primary); }

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 9px 15px;
    border: 1px solid #cfdeeb;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    color: #555;
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.view-toggle { display: flex; gap: 5px; }

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d7e4f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all var(--transition);
}

.sort-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44, 95, 138, 0.14);
}

 .phone-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.phone-link:hover {
    opacity: 0.8;
}

.gis-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.gis-link:hover {
    opacity: 0.8;
}

.inst {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.inst:hover {
    opacity: 0.8;
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.no-results {
    padding: 40px 16px;
    border-radius: var(--radius);
    border: 1px dashed #c8d9e8;
    background: #f8fcff;
    text-align: center;
}

.no-results span {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: #e8f2fb;
    font-size: 28px;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 6px;
}

.no-results p {
    color: #718096;
    margin-bottom: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text);
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    cursor: default;
}

.page-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.page-ellipsis {
    min-width: 24px;
    text-align: center;
    color: var(--text-light);
    user-select: none;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .products-section {
        padding: 18px;
    }
}

@media (max-width: 640px) {
    body.filters-open {
        overflow: hidden;
    }

    .mobile-filter-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        position: sticky;
        top: 0;
        z-index: 700;
        box-shadow: 0 12px 24px rgba(17, 52, 82, 0.18);
    }

    .filters-wrap {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2100;
        display: flex;
        flex-direction: column;
        gap: 12px;
        max-height: min(84vh, 720px);
        padding: 14px;
        background: #f6f9fc;
        border-radius: 18px 18px 0 0;
        box-shadow: 0 -20px 48px rgba(5, 20, 35, 0.24);
        overflow: hidden;
        overscroll-behavior: contain;
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
        transition: transform var(--transition), opacity var(--transition);
    }

    .filters-wrap.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .filters-backdrop {
        position: fixed;
        inset: 0;
        z-index: 2090;
        border: 0;
        background: rgba(5, 18, 30, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition);
    }

    body.filters-open .filters-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-filters-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 2px 12px;
        background: #f6f9fc;
        flex-shrink: 0;
    }

    .mobile-filters-head strong {
        color: var(--text);
        font-size: 18px;
    }

    .mobile-filters-head button {
        width: 36px;
        height: 36px;
        border: 1px solid #d5e4f1;
        border-radius: 50%;
        background: #fff;
        color: var(--text);
        font-size: 24px;
        line-height: 1;
    }

    .mobile-filters-body {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .mobile-filters-foot {
        position: static;
        left: auto;
        right: auto;
        z-index: 3;
        display: grid;
        grid-template-columns: 0.85fr 1.15fr;
        gap: 10px;
        flex-shrink: 0;
        margin: 0 -14px -14px;
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid #dce8f3;
        box-shadow: 0 -10px 24px rgba(17, 52, 82, 0.12);
    }

    .mobile-filters-foot .btn-filter {
        min-height: 44px;
        margin: 0;
    }

    .filters-wrap > .btn-reset,
    .filters-wrap .price-range .btn-filter {
        display: none;
    }

    .categories-list {
        max-height: 300px;
        -webkit-overflow-scrolling: touch;
    }

    #brandFilters {
        max-height: 300px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-block {
        padding: 16px;
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(31, 75, 112, 0.08);
    }

    .sidebar {
        gap: 12px;
    }

    .products-section {
        padding: 14px;
    }

    .products-toolbar {
        padding: 14px;
    }

    .results-count {
        width: 100%;
        text-align: center;
    }

    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}
/* ============================================
   RESET & VARIABLES
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #11355e;
    --primary-dark:  #0b2645;
    --primary-light: #2c5f8a;
    --accent:        #ff6a00;
    --accent-dark:   #e85d04;
    --green:         #2ecc71;
    --yellow:        #f39c12;
    --white:         #ffffff;
    --bg:            #f4f6f9;
    --text:          #1d2b3a;
    --text-muted:    #7a8aa0;
    --border:        #e0e0e0;
    --shadow-sm:     0 2px 12px rgba(17,53,94,0.08);
    --shadow-md:     0 8px 30px rgba(17,53,94,0.12);
    --shadow-lg:     0 20px 50px rgba(17,53,94,0.18);
    --radius:        14px;
    --radius-sm:     10px;
    --tr:            0.3s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Manrope', 'Segoe UI', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.mobile-filters-head,
.mobile-filters-foot {
    display: none;
}

.mobile-filters-body {
    display: contents;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TOPBAR
============================================ */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 7px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.topbar a {
    color: rgba(255,255,255,0.85);
    transition: color var(--tr);
}

.topbar a:hover { color: #fff; }

/* ============================================
   HEADER
============================================ */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    flex-wrap: wrap;
}

/* --- LOGO --- */
.logo {
    font-size: 30px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.logo em {
    color: var(--accent);
    font-style: normal;
}

/* --- SEARCH --- */
.search-wrap {
    flex: 1;
    min-width: 200px;
    display: flex;
}

.search-wrap input {
    flex: 1;
    padding: 11px 20px;
    border: 2px solid var(--primary);
    border-right: none;
    border-radius: 30px 0 0 30px;
    font-size: 14px;
    outline: none;
    background: var(--bg);
    transition: border-color var(--tr), background var(--tr);
    font-family: inherit;
}

.search-wrap input:focus {
    border-color: var(--accent);
    background: #fff;
}

.search-wrap button {
    padding: 11px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 30px 30px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--tr);
    font-family: inherit;
}

.search-wrap button:hover {
    background: var(--accent);
}

/* --- HEADER ACTIONS --- */
.h-actions {
    display: flex;
    gap: 4px;
}

.h-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--tr), color var(--tr);
    position: relative;
    font-size: 12px;
    color: var(--text);
    border: none;
    background: none;
    font-family: inherit;
}

.h-action:hover {
    background: var(--bg);
    color: var(--primary);
}

.h-action .ico { font-size: 22px; }

.h-badge {
    position: absolute;
    top: 4px;
    right: 6px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    color: rgba(255,255,255,0.82);
    padding: 14px 18px;
    font-size: 14px;
    white-space: nowrap;
    display: inline-block;
    border-bottom: 3px solid transparent;
    transition: all var(--tr);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-bottom-color: var(--accent);
}

.nav-link.sale {
    color: #ffd166;
    font-weight: 700;
}

/* ============================================
   OVERLAY
============================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--tr);
}

.overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* ============================================
   CART DRAWER
============================================ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -440px;
    width: 400px;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
    transition: right var(--tr);
}

.cart-drawer.show { right: 0; }

.cart-head {
    background: var(--primary);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.cart-head h3 { font-size: 18px; }

.cart-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--tr);
}

.cart-close:hover { background: rgba(255,255,255,0.35); }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty-msg {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty-msg .big-ico {
    font-size: 60px;
    display: block;
    margin-bottom: 14px;
}

.cart-empty-msg h4 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
}

.cart-empty-msg p { font-size: 14px; }

/* --- CART ITEM ROW --- */
.cart-item-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ci-img {
    width: 58px;
    height: 58px;
    background: var(--bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.ci-info { flex: 1; min-width: 0; }

.ci-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ci-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 700;
}

.ci-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
}

.qty-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.qty-num {
    font-weight: 700;
    min-width: 22px;
    text-align: center;
    font-size: 14px;
}

.ci-del {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    flex-shrink: 0;
    transition: color var(--tr);
}

.ci-del:hover { color: #e74c3c; }

/* --- CART FOOTER --- */
.cart-foot {
    padding: 18px 20px;
    border-top: 2px solid var(--border);
    flex-shrink: 0;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
}

.cart-total-row strong {
    font-size: 22px;
    color: var(--primary);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--tr);
}

.btn-checkout:hover { background: var(--accent-dark); }

/* ============================================
   TOAST
============================================ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #0f2130 0%, #102f45 100%);
    color: #fff;
    padding: 14px 18px 16px 46px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    max-width: min(90vw, 360px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 36px rgba(7, 17, 28, 0.45);
    backdrop-filter: blur(8px);
}

.toast::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-58%);
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #29d893 0%, #0fb670 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 14px rgba(15, 182, 112, 0.45);
}

.toast::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #4ce6a9 0%, #13b16f 100%);
    transform-origin: left center;
    transform: scaleX(0);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: toastPop 0.3s ease;
}

.toast.show::after {
    animation: toastTimer 2.2s linear forwards;
}

@keyframes toastPop {
    0% { transform: translateY(16px) scale(0.95); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes toastTimer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 600px) {
    .toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        max-width: none;
    }
}

.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1200;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 14px 30px rgba(31, 75, 112, 0.28);
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent);
}

@media (max-width: 640px) {
    .scroll-top-btn {
        right: 14px;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 22px;
    }
}

/* ============================================
   HERO SLIDER
============================================ */
.hero {
    position: relative;
    overflow: hidden;
    background: #071928;
}

.slide {
    display: none;
    padding: 54px 0 58px;
    min-height: 440px;
    position: relative;
    overflow: hidden;
    animation: fadeSlide 0.6s ease;
}

.slide.active { display: block; }

.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 14% 22%, rgba(255, 209, 102, 0.24) 0%, rgba(255, 209, 102, 0) 34%),
            radial-gradient(circle at 84% 74%, rgba(62, 207, 142, 0.24) 0%, rgba(62, 207, 142, 0) 32%);
    pointer-events: none;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 54px;
    position: relative;
    z-index: 1;
}

/* --- SLIDE TEXT --- */
.slide-text {
    flex: 1;
    color: #fff;
    background: rgba(7, 19, 32, 0.52);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 26px;
    padding: 34px 34px 30px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}

.slide-tag {
    display: inline-block;
    background: linear-gradient(120deg, rgba(255, 209, 102, 0.32), rgba(255,255,255,0.18));
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 7px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.4);
}

.slide-text h1 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}

.slide-text h1 span { color: #ffd166; }

.slide-text p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 28px;
    max-width: 540px;
}

/* --- SLIDE BUTTONS --- */
.slide-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-s1 {
    padding: 14px 32px;
    background: linear-gradient(130deg, #ffd166 0%, #ffb703 100%);
    color: #1a2e41;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: inline-block;
    transition: all var(--tr);
    font-family: inherit;
}

.btn-s1:hover {
    color: #11212f;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 209, 102, 0.45);
}

.btn-s2 {
    padding: 14px 32px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.42);
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: all var(--tr);
    font-family: inherit;
}

.btn-s2:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}

/* --- SLIDE STATS --- */
.slide-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-item {
    min-width: 120px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    padding: 10px 14px;
}

.stat-item strong {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: #ffd166;
    line-height: 1;
}

.stat-item span {
    font-size: 12px;
    opacity: 0.8;
}

/* --- COUNTDOWN --- */
.countdown {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cd-box {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 10px 16px;
    text-align: center;
    min-width: 64px;
}

.cd-box strong {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: #ffd166;
    line-height: 1;
}

.cd-box span { font-size: 11px; opacity: 0.8; }

.cd-sep {
    color: #ffd166;
    font-size: 26px;
    font-weight: 900;
}

/* --- SLIDE VISUAL --- */
.slide-visual {
    flex-shrink: 0;
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-circle {
    width: 310px;
    height: 310px;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(255,255,255,0.32), rgba(255,255,255,0.08));
    border: 3px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110px;
    animation: floatAnim 3s ease-in-out infinite;
    box-shadow: 0 30px 70px rgba(0,0,0,0.32);
}

.slide-circle img {
    max-width: 76%;
    max-height: 76%;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(0,0,0,0.25));
}

@keyframes floatAnim {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-14px); }
}

.float-badge {
    position: absolute;
    background: rgba(255,255,255,0.92);
    color: #112332;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: floatBadge 4s ease-in-out infinite;
    max-width: 130px;
}

.float-badge img {
    width: 100%;
    max-width: 86px;
    height: auto;
    display: block;
}

.fb1 { top: 18px; left: -8px; animation-delay: 0s; }
.fb2 { bottom: 50px; left: -22px; animation-delay: 1.3s; }
.fb3 { top: 62px; right: -8px; animation-delay: 0.7s; }

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.hero .slide.hero-banner-slide {
    padding: 0 !important;
    min-height: 0 !important;
    background: #fff;
}

.hero-banner-slide::before,
.hero-banner-slide::after {
    display: none;
}

.hero-banner-link {
    display: block;
    width: min(calc(100% - 32px), 1120px);
    margin: 18px auto;
    overflow: hidden;
    border-radius: 12px;
}

.hero-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 640px) {
    .hero-banner-link {
        width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 8px;
    }
}

/* --- SLIDER CONTROLS --- */
.slide-prev,
.slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
}

.slide-prev { left: 18px; }
.slide-next { right: 18px; }

.slide-prev:hover,
.slide-next:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-50%) scale(1.05);
}

/* --- SLIDER DOTS --- */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.sdot {
    width: 12px;
    height: 12px;
    border-radius: 5px;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    transition: all var(--tr);
    padding: 0;
}

.sdot.active {
    background: #ffd166;
    width: 30px;
}

@media (max-width: 1100px) {
    .slide {
        min-height: auto;
        padding: 48px 0 54px;
    }

    .slide-inner {
        flex-direction: column;
        text-align: center;
        gap: 26px;
    }

    .slide-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .slide-btns,
    .slide-stats {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .slide {
        padding: 56px 0 76px;
    }

    .slide-text {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }

    .slide-text h1 {
        font-size: clamp(26px, 7.5vw, 38px);
    }

    .slide-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-item {
        min-width: 0;
    }

    .slide-visual {
        width: 260px;
        height: 260px;
    }

    .slide-circle {
        width: 220px;
        height: 220px;
    }

    .float-badge {
        max-width: 104px;
        font-size: 11px;
        padding: 6px 10px;
    }

    .slide-prev,
    .slide-next {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 640px) {
    .slide {
        padding: 28px 0 58px;
        min-height: auto;
    }

    .slide::before {
        opacity: 0.55;
    }

    .slide-inner {
        gap: 14px;
    }

    .slide-text {
        width: 100%;
        padding: 18px 16px;
        border-radius: 18px;
        text-align: center;
    }

    .slide-tag {
        margin-bottom: 12px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .slide-text h1 {
        font-size: clamp(28px, 8vw, 34px);
        line-height: 1.14;
        margin-bottom: 12px;
        overflow-wrap: anywhere;
    }

    .slide-text p {
        font-size: 14px;
        line-height: 1.45;
        margin-bottom: 16px;
    }

    .slide-btns {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 16px;
    }

    .btn-s1,
    .btn-s2 {
        width: 100%;
        padding: 12px 16px;
        border-radius: 14px;
        text-align: center;
    }

    .slide-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .stat-item {
        min-width: 0;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .stat-item strong {
        font-size: 20px;
    }

    .stat-item span {
        font-size: 11px;
    }

    .slide-visual {
        width: min(230px, 72vw);
        height: min(230px, 72vw);
    }

    .slide-circle {
        width: min(190px, 60vw);
        height: min(190px, 60vw);
        border-width: 2px;
    }

    .slide-circle img {
        max-width: 82%;
        max-height: 82%;
    }

    .float-badge {
        font-size: 10px;
        padding: 5px 8px;
        max-width: 82px;
    }

    .float-badge img {
        max-width: 58px;
    }

    .fb1 { top: 4px; left: 0; }
    .fb2 { bottom: 16px; left: 0; }
    .fb3 { top: 34px; right: 0; }

    .slide-prev,
    .slide-next {
        top: auto;
        bottom: 150px;
        width: 38px;
        height: 38px;
        font-size: 18px;
        transform: none;
    }

    .slide-prev {
        left: 18px;
    }

    .slide-next {
        right: 18px;
    }

    .slide-prev:hover,
    .slide-next:hover {
        transform: none;
    }

    .slider-dots {
        bottom: 116px;
    }
}

/* ============================================
   FEATURES BAR
============================================ */
.features-bar {
    background:
        radial-gradient(1200px 260px at 50% -200px, rgba(39, 176, 255, 0.18), transparent 60%),
        linear-gradient(135deg, #f4f9ff 0%, #ffffff 100%);
    border-top: 1px solid rgba(18, 88, 161, 0.12);
    border-bottom: 1px solid rgba(18, 88, 161, 0.12);
    padding: 18px 0;
}

.features-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

@media (max-width: 1024px) {
    .features-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .features-row {
        grid-template-columns: 1fr;
    }
}

.feat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid rgba(18, 88, 161, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    box-shadow: 0 8px 24px rgba(8, 22, 34, 0.06);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), background var(--tr);
    cursor: default;
    min-height: 86px;
}

.feat-item:hover {
    transform: translateY(-3px);
    border-color: rgba(39, 176, 255, 0.42);
    box-shadow: 0 14px 30px rgba(39, 176, 255, 0.16);
    background: #ffffff;
}

.feat-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #e9f5ff, #ffffff);
    border: 1px solid rgba(39, 176, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.feat-ico img,
.feat-glyph {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Иконки преимуществ — единый стиль Lucide через CSS-маску */
.feat-glyph {
    display: inline-block;
    background-color: var(--primary);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: background-color var(--tr), transform var(--tr);
}
.feat-truck      { -webkit-mask-image: url(../img/icons/truck.svg);        mask-image: url(../img/icons/truck.svg); }
.feat-tag        { -webkit-mask-image: url(../img/icons/tag.svg);          mask-image: url(../img/icons/tag.svg); }
.feat-shield     { -webkit-mask-image: url(../img/icons/shield-check.svg); mask-image: url(../img/icons/shield-check.svg); }
.feat-headphones { -webkit-mask-image: url(../img/icons/headphones.svg);   mask-image: url(../img/icons/headphones.svg); }

.feat-item:hover .feat-glyph {
    background-color: var(--accent);
    transform: scale(1.06);
}

.feat-text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f2740;
    margin-bottom: 3px;
    line-height: 1.25;
}

.feat-text span {
    font-size: 12px;
    color: #5a6f84;
    line-height: 1.35;
}

/* ============================================
   SECTIONS COMMON
============================================ */
.section { padding: 60px 0; }

.section-alt { background: var(--white); }

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}

.sec-head h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.sec-head p {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 5px;
}

.see-all {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 20px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: all var(--tr);
}

.see-all:hover {
    background: var(--primary);
    color: #fff;
}

/* ============================================
   NEW PRODUCTS
============================================ */
.new-products-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(74,144,196,0.15), transparent 35%),
        radial-gradient(circle at 90% 90%, rgba(232,93,4,0.12), transparent 38%),
        linear-gradient(180deg, #f9fcff 0%, #ffffff 100%);
}

.new-products-layout {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr);
    gap: 18px;
    align-items: stretch;
}

.new-products-banner {
    background: linear-gradient(150deg, #0b2645 0%, #14406e 55%, #1c4877 100%);
    color: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 18px 36px rgba(11,38,69,0.30);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.new-products-kicker {
    display: inline-block;
    width: fit-content;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.new-products-banner h3 {
    font-size: 23px;
    line-height: 1.25;
}

.new-products-banner p {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

.new-products-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 18px;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}

.new-products-points {
    margin-top: auto;
    list-style: none;
    display: grid;
    gap: 7px;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
}

.new-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.new-product-card {
    position: relative;
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 22px rgba(23,56,84,0.07);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.new-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,106,0,0.35);
    box-shadow: 0 18px 34px rgba(255,106,0,0.14);
}

/* Крупное фото товара */
.new-product-icon {
    position: relative;
    width: 100%;
    height: 132px;
    border-radius: 13px;
    background: linear-gradient(160deg, #eef5fc, #ffffff);
    border: 1px solid #eaf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
    flex: 0 0 auto;
}

.new-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Бейдж поверх фото */
.new-product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255,106,0,0.32);
}

.np-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary-light);
}

.new-product-card h4 {
    font-size: 15px;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.new-product-meta {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
}

.np-unit {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.np-box {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-align: right;
    line-height: 1.1;
}

.np-unit i,
.np-box i {
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .new-products-layout {
        grid-template-columns: 1fr;
    }
}

.section.new-products-section {
    padding: 52px 0 56px;
    background:
        linear-gradient(180deg, #f6f9fc 0%, #ffffff 78%),
        #fff;
}

.section.new-products-section::before,
.section.new-products-section::after {
    display: none;
}

.new-products-head {
    align-items: center;
    margin-bottom: 24px;
}

.new-products-head h2 {
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: 0;
}

.new-products-head p {
    max-width: 620px;
    line-height: 1.55;
}

.new-products-head .see-all {
    border-radius: 8px;
    padding: 10px 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 75, 112, 0.08);
}

.new-products-layout {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.new-products-banner {
    min-height: 100%;
    border-radius: 10px;
    padding: 24px;
    background: linear-gradient(160deg, #ffffff 0%, #eef7ff 100%);
    color: var(--text);
    border: 1px solid rgba(44, 95, 138, 0.14);
    box-shadow: 0 16px 34px rgba(25, 65, 102, 0.10);
}

.new-products-kicker {
    background: rgba(232, 93, 4, 0.10);
    border-color: rgba(232, 93, 4, 0.18);
    color: var(--accent);
}

.new-products-banner h3 {
    font-size: 24px;
    color: #10263f;
}

.new-products-banner p {
    color: #50677d;
    line-height: 1.6;
}

.new-products-stats {
    display: grid;
    gap: 10px;
    padding: 14px 0;
    margin: 2px 0;
    border-top: 1px solid rgba(44, 95, 138, 0.12);
    border-bottom: 1px solid rgba(44, 95, 138, 0.12);
}

.new-products-stats span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #5a7086;
    font-size: 13px;
}

.new-products-stats strong {
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
    white-space: nowrap;
}

.new-products-cta {
    width: 100%;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    min-height: 42px;
    transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}

.new-products-cta:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(232, 93, 4, 0.22);
}

.new-products-points {
    gap: 8px;
    color: #405a72;
}

.new-products-points li {
    position: relative;
    padding-left: 18px;
    line-height: 1.45;
}

.new-products-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.new-products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.new-product-card {
    border-radius: 10px;
    padding: 12px;
    gap: 10px;
    border-color: rgba(44, 95, 138, 0.12);
    box-shadow: 0 10px 26px rgba(26, 63, 96, 0.08);
}

.new-product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(44, 95, 138, 0.28);
    box-shadow: 0 18px 34px rgba(26, 63, 96, 0.13);
}

.new-product-icon {
    height: 148px;
    border-radius: 8px;
    background: #f7fafc;
}

.new-product-icon .np-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.np-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 18px;
}

.np-cat {
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.np-stock {
    position: relative;
    flex: 0 0 auto;
    padding-left: 10px;
    color: #17885f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.np-stock::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #20b77a;
    transform: translateY(-50%);
}

.new-product-card h4 {
    min-height: 40px;
    font-size: 14px;
}

.new-product-meta {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 10px;
}

.np-unit,
.np-box {
    display: grid;
    gap: 3px;
    text-align: left;
}

.np-unit {
    color: #10263f;
}

.np-box {
    color: var(--primary);
}

.np-unit i,
.np-box i {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.np-pack {
    min-height: 20px;
    color: #6d7f91;
    font-size: 12px;
}

.np-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.np-open,
.np-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}

.np-open {
    color: var(--primary);
    background: #fff;
    border: 1px solid rgba(44, 95, 138, 0.18);
}

.np-cart {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.np-open:hover,
.np-cart:hover {
    transform: translateY(-1px);
}

.np-open:hover {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.np-cart:hover {
    background: #d94f00;
    border-color: #d94f00;
}

@media (max-width: 1100px) {
    .new-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .section.new-products-section {
        padding: 38px 0 42px;
    }

    .new-products-layout {
        grid-template-columns: 1fr;
    }

    .new-products-grid {
        grid-template-columns: 1fr;
    }

    .new-product-card {
        display: grid;
        grid-template-columns: 108px minmax(0, 1fr);
        align-items: start;
    }

    .new-product-icon {
        grid-row: span 5;
        height: 118px;
    }

    .new-product-card h4 {
        min-height: 0;
    }

    .new-product-meta,
    .np-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .new-product-card {
        grid-template-columns: 1fr;
    }

    .new-product-icon {
        grid-row: auto;
        height: 150px;
    }
}

/* Simple four-product version requested for the main page. */
.new-products-layout {
    display: block;
}

.new-products-banner,
.np-actions {
    display: none;
}

.new-products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .new-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .new-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BRANDS SECTION
============================================ */
.brands-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(44,95,138,0.08), transparent 35%),
        radial-gradient(circle at 90% 80%, rgba(232,93,4,0.12), transparent 30%),
        var(--white);
}

.brands-wrap {
    position: relative;
    padding: 10px 0;
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.brands-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: brandsMarquee 34s linear infinite;
}

.brands-wrap:hover .brands-track {
    animation-play-state: paused;
}

.brand-item {
    min-width: 190px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(44,95,138,0.12);
    box-shadow: 0 8px 22px rgba(44,95,138,0.10);
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(3px);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.brand-item:hover {
    transform: translateY(-4px);
    border-color: rgba(232,93,4,0.35);
    box-shadow: 0 12px 26px rgba(232,93,4,0.18);
}

.brand-icon {
    position: relative;
    width: 72px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(17,53,94,0.12), rgba(44,95,138,0.12));
    flex-shrink: 0;
}

.brand-mono {
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}

/* Логотип бренда (если файл есть в img/brands/) перекрывает заглушку */
.brand-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
    background: #fff;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.brand-tag {
    margin-left: auto;
    font-size: 11px;
    color: var(--primary);
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(44,95,138,0.10);
    letter-spacing: 0.2px;
    white-space: nowrap;
}

@keyframes brandsMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================
   ADVANTAGES SECTION
============================================ */
.section-alt {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 12%, rgba(44,95,138,0.14), transparent 32%),
        radial-gradient(circle at 94% 88%, rgba(232,93,4,0.14), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.section-alt::before,
.section-alt::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.section-alt::before {
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(44,95,138,0.18), rgba(44,95,138,0) 70%);
}

.section-alt::after {
    bottom: -130px;
    left: -70px;
    background: radial-gradient(circle, rgba(232,93,4,0.20), rgba(232,93,4,0) 70%);
}

.section-alt .container {
    position: relative;
    z-index: 1;
}

.adv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.adv-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(44,95,138,0.14);
    border-radius: 12px;
    padding: 22px 20px 20px;
    box-shadow: 0 12px 28px rgba(21,56,86,0.09);
    backdrop-filter: blur(4px);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), background var(--tr);
    position: relative;
    overflow: hidden;
}

.adv-card::after {
    content: '';
    position: absolute;
    inset: auto -20px -46px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(44,95,138,0.10), rgba(44,95,138,0) 70%);
    pointer-events: none;
}

.adv-card:hover {
    transform: translateY(-4px);
    border-color: rgba(44,95,138,0.28);
    background: #fff;
    box-shadow: 0 18px 34px rgba(21,56,86,0.14);
}

.adv-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: linear-gradient(145deg, rgba(44,95,138,0.12), rgba(44,95,138,0.05));
    border: 1px solid rgba(44,95,138,0.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72);
}

.adv-glyph {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-color: var(--primary);
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    transition: background-color var(--tr), transform var(--tr);
}

.adv-boxes { -webkit-mask-image: url(../img/icons/boxes.svg); mask-image: url(../img/icons/boxes.svg); }
.adv-price { -webkit-mask-image: url(../img/icons/badge-dollar-sign.svg); mask-image: url(../img/icons/badge-dollar-sign.svg); }
.adv-truck { -webkit-mask-image: url(../img/icons/truck.svg); mask-image: url(../img/icons/truck.svg); }
.adv-docs { -webkit-mask-image: url(../img/icons/clipboard-list.svg); mask-image: url(../img/icons/clipboard-list.svg); }
.adv-quality { -webkit-mask-image: url(../img/icons/badge-check.svg); mask-image: url(../img/icons/badge-check.svg); }
.adv-gift { -webkit-mask-image: url(../img/icons/gift.svg); mask-image: url(../img/icons/gift.svg); }

.adv-card:hover .adv-glyph {
    background-color: var(--accent);
    transform: scale(1.06);
}

.adv-card h4 {
    font-size: 17px;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 8px;
}

.adv-card p {
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .adv-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .adv-card {
        padding: 18px 16px;
    }
}

/* ============================================
   REVIEWS SECTION
============================================ */
.reviews-section {
    background:
        radial-gradient(circle at 8% 12%, rgba(44,95,138,0.10), transparent 32%),
        radial-gradient(circle at 92% 88%, rgba(232,93,4,0.11), transparent 35%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.review-card {
    position: relative;
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(44,95,138,0.16);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(22,58,86,0.10);
    backdrop-filter: blur(2px);
    overflow: hidden;
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 50px;
    line-height: 1;
    color: rgba(44,95,138,0.14);
    font-weight: 700;
    pointer-events: none;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(232,93,4,0.36);
    box-shadow: 0 18px 32px rgba(232,93,4,0.16);
}

.rev-top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.rev-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.rev-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rev-info strong {
    font-size: 15px;
    color: var(--text);
}

.rev-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.review-card p {
    font-size: 14px;
    line-height: 1.5;
    color: #3a4148;
    margin-bottom: 14px;
}

.rev-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px dashed #d7e2ec;
}

.rev-date::before {
    content: '🗓️';
    font-size: 12px;
}

@media (max-width: 980px) {
    .reviews-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .review-card {
        padding: 16px;
    }
}

.reviews-section {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
}

.reviews-section .sec-head {
    align-items: center;
}

.reviews-summary {
    min-width: 148px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(44,95,138,0.14);
    box-shadow: 0 10px 24px rgba(21,56,86,0.08);
    text-align: right;
}

.reviews-summary strong {
    display: block;
    color: var(--primary);
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
}

.reviews-summary span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.reviews-grid {
    gap: 18px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 28px rgba(22,58,86,0.08);
    transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), background var(--tr);
}

.review-card::before {
    content: "";
    top: 0;
    right: auto;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: transparent;
    font-size: 0;
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: rgba(44,95,138,0.28);
    box-shadow: 0 18px 34px rgba(22,58,86,0.14);
}

.rev-top {
    grid-template-columns: auto 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.rev-avatar {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    font-weight: 900;
    background: linear-gradient(145deg, var(--primary), #17466f) !important;
    box-shadow: 0 8px 18px rgba(21,56,86,0.18);
    overflow: hidden;
}

.rev-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rev-info strong {
    line-height: 1.25;
}

.rev-stars {
    position: relative;
    grid-column: 1 / -1;
    width: 92px;
    height: 18px;
    margin-top: 2px;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 1px;
}

.rev-stars::before,
.rev-stars span::before {
    content: "★★★★★";
    position: absolute;
    inset: 0;
    font-family: Arial, Helvetica, sans-serif;
}

.rev-stars::before {
    color: #d7e0e9;
}

.rev-stars span {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.rev-stars span::before {
    color: #f2a900;
}

.review-card p {
    line-height: 1.6;
    color: #33495d;
    margin-bottom: 16px;
}

.rev-date {
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
}

.rev-date::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

@media (max-width: 640px) {
    .reviews-summary {
        width: 100%;
        text-align: left;
    }
}

/* Unified main-page section background. */
.features-bar,
.hero,
.hero .slide.hero-banner-slide,
.section.new-products-section,
.brands-section,
section.section-alt,
.reviews-section,
.newsletter-section {
    background: #f6f9fc !important;
}

.section.new-products-section::before,
.section.new-products-section::after,
.brands-section::before,
.brands-section::after,
section.section-alt::before,
section.section-alt::after,
.reviews-section::before,
.reviews-section::after,
.newsletter-section::before,
.newsletter-section::after {
    display: none !important;
}

.features-bar {
    border-top: 1px solid #e5edf5;
    border-bottom: 1px solid #e5edf5;
}

.section.new-products-section,
.brands-section,
section.section-alt,
.reviews-section {
    border-top: 1px solid #e5edf5;
}

/* ============================================
   NEWSLETTER SECTION
============================================ */
.newsletter-section {
    padding: 8px 0 64px;
    background:
        radial-gradient(circle at 12% 14%, rgba(44,95,138,0.12), transparent 35%),
        radial-gradient(circle at 86% 80%, rgba(232,93,4,0.12), transparent 38%),
        linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%);
}

/* ============================================
   FOOTER
============================================ */
.footer {
    position: relative;
    margin-top: 48px;
    color: #d8e6f3;
    background:
        radial-gradient(circle at 12% 18%, rgba(84, 162, 224, 0.2), transparent 36%),
        radial-gradient(circle at 88% 84%, rgba(232, 93, 4, 0.18), transparent 42%),
        linear-gradient(135deg, #0b2a42 0%, #081b2b 60%, #051521 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 24%);
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
    padding-top: 44px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(160px, 1fr));
}

.footer-col h4 {
    color: #ffffff;
    font-size: 17px;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.footer-col a {
    color: #d8e6f3;
    font-size: 14px;
    transition: color var(--tr), transform var(--tr);
    display: inline-flex;
}

.footer-col a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-about p {
    margin: 14px 0 16px;
    color: rgba(216,230,243,0.85);
    max-width: 320px;
    line-height: 1.55;
}

.footer-logo {
    color: #fff;
    font-size: clamp(22px, 2.7vw, 30px);
    font-weight: 900;
    letter-spacing: 0.4px;
    line-height: 1.1;
    display: inline-block;
}

.footer-logo em {
    color: #8ec8f4;
    font-style: normal;
}

.socials {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.soc-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.18);
    transition: transform var(--tr), background var(--tr), border-color var(--tr);
}

.soc-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.35);
}

.footer-bottom {
    margin-top: 26px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(216,230,243,0.82);
}

.pay-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pay-icons span {
    font-size: 12px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    padding: 5px 10px;
}

.footer {
    margin-top: 0;
    color: #d9e8f5;
    background:
        radial-gradient(circle at 8% 20%, rgba(84, 162, 224, 0.16), transparent 34%),
        linear-gradient(135deg, #0b2645 0%, #071928 100%);
}

.footer .container {
    padding-top: 34px;
    padding-bottom: 22px;
}

.footer-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
}

.footer-topline strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.25;
}

.footer-kicker {
    color: #8ec8f4;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    color: #fff;
    background: var(--accent);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background var(--tr), transform var(--tr), box-shadow var(--tr);
}

.footer-order:hover {
    color: #fff;
    background: #d94f00;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(232,93,4,0.28);
}

.footer-grid {
    grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr) minmax(260px, 1.2fr);
    gap: 28px;
}

.footer-col h4 {
    position: relative;
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
}

.footer-col a {
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}

.footer-about p {
    max-width: 360px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.footer-badges span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #e8f4ff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    font-size: 12px;
    font-weight: 700;
}

.socials {
    gap: 10px;
}

.soc-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.soc-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-contact-list {
    gap: 11px;
}

.footer-contact {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #d8e6f3;
    font-size: 14px;
    line-height: 1.45;
}

.footer-contact span {
    min-width: 0;
}

.footer-ico {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: #8ec8f4;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.footer-phone { -webkit-mask-image: url(../img/icons/phone.svg); mask-image: url(../img/icons/phone.svg); }
.footer-mail { -webkit-mask-image: url(../img/icons/mail.svg); mask-image: url(../img/icons/mail.svg); }
.footer-pin { -webkit-mask-image: url(../img/icons/location.svg); mask-image: url(../img/icons/location.svg); }
.footer-clock { -webkit-mask-image: url(../img/icons/clock.svg); mask-image: url(../img/icons/clock.svg); }
.footer-card { -webkit-mask-image: url(../img/icons/credit-card.svg); mask-image: url(../img/icons/credit-card.svg); }
.footer-phonepay { -webkit-mask-image: url(../img/icons/smartphone.svg); mask-image: url(../img/icons/smartphone.svg); }
.footer-bank { -webkit-mask-image: url(../img/icons/building-2.svg); mask-image: url(../img/icons/building-2.svg); }

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
}

.pay-icons span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    line-height: 1;
}

.pay-icons .footer-ico {
    width: 15px;
    height: 15px;
    background-color: #fff;
}

@media (max-width: 860px) {
    .footer-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-order {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .footer .container {
        padding-top: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.newsletter-box {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(44,95,138,0.15);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(247,252,255,0.95));
    box-shadow: 0 18px 38px rgba(22,58,86,0.14);
    overflow: hidden;
}

.newsletter-box::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -110px;
    right: -90px;
    background: radial-gradient(circle, rgba(44,95,138,0.14), rgba(44,95,138,0) 70%);
    pointer-events: none;
}

.nl-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(44,95,138,0.11);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
}

.nl-text h3 {
    font-size: 30px;
    line-height: 1.2;
    color: #193149;
    margin-bottom: 10px;
}

.nl-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 14px;
}

.nl-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nl-benefits span {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(44,95,138,0.12);
    font-size: 13px;
    color: #35516b;
}

.nl-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(232,93,4,0.22);
    background: rgba(255,255,255,0.82);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.nl-label {
    font-size: 13px;
    font-weight: 600;
    color: #2f465d;
}

.nl-input-row {
    display: flex;
    gap: 10px;
}

.nl-form input {
    flex: 1;
    height: 46px;
    border-radius: 12px;
    border: 1px solid #cfdbe7;
    background: #fff;
    padding: 0 14px;
    font-size: 14px;
    color: var(--text);
    font-family: inherit;
    outline: none;
    transition: border-color var(--tr), box-shadow var(--tr);
}

.nl-form input:focus {
    border-color: rgba(44,95,138,0.55);
    box-shadow: 0 0 0 4px rgba(44,95,138,0.12);
}

.nl-form button {
    height: 46px;
    border: none;
    border-radius: 12px;
    padding: 0 20px;
    background: linear-gradient(135deg, var(--accent), #ff8d4a);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: transform var(--tr), box-shadow var(--tr);
    white-space: nowrap;
}

.nl-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(232,93,4,0.3);
}

.nl-form small {
    font-size: 12px;
    line-height: 1.35;
    color: #657486;
}

@media (max-width: 980px) {
    .newsletter-box {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .nl-text h3 {
        font-size: 26px;
    }
}

@media (max-width: 640px) {
    .newsletter-section {
        padding: 32px 0 42px;
    }

    .newsletter-box {
        padding: 16px;
        border-radius: 14px;
        gap: 14px;
    }

    .nl-chip {
        margin-bottom: 10px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .nl-text h3 {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .nl-text p {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .nl-benefits {
        gap: 6px;
    }

    .nl-benefits span {
        padding: 6px 8px;
        font-size: 12px;
    }

    .nl-form {
        padding: 14px;
        border-radius: 12px;
        gap: 9px;
    }

    .nl-label {
        font-size: 12px;
    }

    .nl-input-row {
        flex-direction: column;
        gap: 8px;
    }

    .nl-form input {
        width: 100%;
        height: 48px;
        border-radius: 10px;
        font-size: 16px;
        padding: 0 12px;
    }

    .nl-form button {
        width: 100%;
        height: 48px;
        border-radius: 10px;
        font-size: 15px;
    }

    .nl-form small {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .nl-benefits {
        display: none;
    }
}

/* ============================================
   ACTIONS PAGE
============================================ */
.actions-hero {
    padding: 54px 0 42px;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 22, 34, 0.9), rgba(22, 86, 132, 0.78)),
        url("../img/sklad.jpg") center/cover no-repeat;
}

.actions-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 34px;
}

.actions-hero-text {
    max-width: 680px;
}

.actions-chip,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.actions-chip {
    color: #fff6df;
    background: rgba(255, 209, 102, 0.22);
    border: 1px solid rgba(255, 209, 102, 0.38);
    margin-bottom: 16px;
}

.actions-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    margin-bottom: 14px;
}

.actions-hero p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    margin-bottom: 24px;
}

.actions-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.actions-hero-visual {
    min-height: 320px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.actions-hero-visual img {
    position: absolute;
    object-fit: contain;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.24));
}

.actions-hero-visual img:nth-child(1) {
    width: 48%;
    left: 14%;
    bottom: 24px;
}

.actions-hero-visual img:nth-child(2) {
    width: 24%;
    right: 12%;
    top: 34px;
}

.actions-hero-visual img:nth-child(3) {
    width: 24%;
    right: 18%;
    bottom: 40px;
}

.actions-section,
.actions-steps {
    padding: 58px 0;
}

.section-head {
    margin-bottom: 26px;
}

.section-kicker {
    color: var(--primary);
    background: rgba(44, 95, 138, 0.1);
    margin-bottom: 12px;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    color: #1d3144;
    margin-bottom: 8px;
}

.section-head p {
    max-width: 680px;
    color: var(--text-muted);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.action-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
}

.action-card-featured {
    border-color: rgba(232, 93, 4, 0.28);
}

.action-card-media {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f4fb, #d5e8f5);
}

.action-card-media img {
    width: 78%;
    height: 180px;
    object-fit: contain;
}

.action-card-body {
    padding: 18px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.action-badge {
    align-self: flex-start;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.action-card h3 {
    color: #1d3144;
    font-size: 20px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.action-card p,
.action-card li {
    color: #5b6e80;
    font-size: 14px;
}

.action-card ul {
    margin: 14px 0 18px;
    padding-left: 18px;
}

.action-card a {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.action-card a:hover {
    background: var(--accent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    padding: 22px;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(22, 58, 86, 0.08);
}

.step-card strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.step-card h3 {
    color: #1d3144;
    margin-bottom: 6px;
}

.step-card p {
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .actions-hero-grid,
    .actions-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .actions-hero-visual {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .actions-hero {
        padding: 34px 0 30px;
    }

    .actions-hero h1 {
        font-size: 34px;
    }

    .actions-hero p {
        font-size: 15px;
    }

    .actions-hero-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .actions-hero-buttons .btn-s1,
    .actions-hero-buttons .btn-s2 {
        text-align: center;
    }

    .actions-hero-visual {
        min-height: 230px;
        border-radius: 18px;
    }

    .actions-section,
    .actions-steps {
        padding: 38px 0;
    }

    .action-card-media {
        min-height: 170px;
    }

    .action-card-media img {
        height: 140px;
    }
}

/* ============================================
   ABOUT PAGE
============================================ */
.about-hero {
    padding: 54px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 22, 34, 0.9), rgba(22, 86, 132, 0.78)),
        url("../img/sklad.jpg") center/cover no-repeat;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
    gap: 34px;
    align-items: center;
}

.about-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    margin-bottom: 16px;
}

.about-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 520px;
}

.about-stats div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.about-stats strong {
    display: block;
    color: #ffd166;
    font-size: 28px;
    line-height: 1;
}

.about-stats span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
}

.about-hero-image {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.about-hero-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

.about-section,
.about-split {
    padding: 58px 0;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.about-card {
    padding: 22px;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
}

.about-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 14px;
}

.about-card h3 {
    color: #1d3144;
    margin-bottom: 8px;
}

.about-card p {
    color: var(--text-muted);
    line-height: 1.55;
}

.about-split {
    background:
        radial-gradient(900px 240px at 20% 0%, rgba(44, 95, 138, 0.13), transparent 60%),
        #f6fbff;
}

.about-split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    gap: 28px;
    align-items: start;
}

.about-split h2 {
    color: #1d3144;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    margin-bottom: 12px;
}

.about-split p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
}

.about-list {
    display: grid;
    gap: 10px;
    list-style: none;
}

.about-list li {
    padding: 12px 14px;
    border: 1px solid #dbe8f4;
    border-radius: 12px;
    background: #fff;
    color: #27445e;
    font-weight: 600;
}

.about-list li::before {
    content: "✓";
    color: var(--success);
    font-weight: 900;
    margin-right: 8px;
}

.about-panel {
    padding: 22px;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
}

.about-panel h3 {
    color: #1d3144;
    margin-bottom: 14px;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.about-tags span {
    padding: 9px 12px;
    border-radius: 999px;
    background: #edf6fc;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 980px) {
    .about-hero-grid,
    .about-cards,
    .about-split-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-image img {
        height: 280px;
    }
}

@media (max-width: 640px) {
    .about-hero {
        padding: 34px 0;
    }

    .about-hero h1 {
        font-size: 34px;
    }

    .about-hero p {
        font-size: 15px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .about-hero-image {
        border-radius: 18px;
    }

    .about-hero-image img {
        height: 220px;
    }

    .about-section,
    .about-split {
        padding: 38px 0;
    }
}

/* ============================================
   CONTACTS PAGE
============================================ */
.contacts-hero {
    padding: 54px 0;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(8, 22, 34, 0.9), rgba(22, 86, 132, 0.78)),
        url("../img/sklad.jpg") center/cover no-repeat;
}

.contacts-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.contacts-hero h1 {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.08;
    margin-bottom: 16px;
}

.contacts-hero p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.contacts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contacts-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font-weight: 800;
}

.contacts-actions a:first-child {
    background: #25d366;
}

.contacts-actions a:hover {
    background: var(--accent);
    transform: translateY(-1px);
}

.contacts-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 22px;
    background: rgba(7, 19, 32, 0.58);
    backdrop-filter: blur(6px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.contacts-card h2 {
    margin-bottom: 16px;
}

.contacts-card ul {
    display: grid;
    gap: 12px;
    list-style: none;
}

.contacts-card li {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.45;
}

.contacts-card a {
    color: #ffd166;
}

.contacts-section {
    padding: 58px 0;
}

.contacts-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    gap: 22px;
}

.contacts-map {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #dbe8f4;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
    text-decoration: none;
}

.contacts-map img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
}

.contacts-map span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    color: #fff;
    background: rgba(17, 54, 83, 0.88);
    border-radius: 999px;
    padding: 11px 16px;
    font-weight: 800;
}

.contacts-info-grid {
    display: grid;
    gap: 14px;
}

.contact-info-card {
    padding: 18px;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.08);
}

.contact-info-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-bottom: 10px;
}

.contact-info-card h3 {
    color: #1d3144;
    margin-bottom: 6px;
}

.contact-info-card p,
.contact-info-card a {
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .contacts-hero-grid,
    .contacts-map-grid {
        grid-template-columns: 1fr;
    }

    .contacts-map,
    .contacts-map img {
        min-height: 300px;
    }
}

@media (max-width: 640px) {
    .contacts-hero {
        padding: 34px 0;
    }

    .contacts-hero h1 {
        font-size: 34px;
    }

    .contacts-hero p {
        font-size: 15px;
    }

    .contacts-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contacts-card {
        padding: 18px;
        border-radius: 18px;
    }

    .contacts-section {
        padding: 38px 0;
    }

    .contacts-map,
    .contacts-map img {
        min-height: 230px;
    }
}

/* ============================================
   CHECKOUT PAGE
============================================ */
.checkout-section {
    padding: 44px 0 68px;
}

.checkout-section .section-head h1 {
    color: #1d3144;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: 24px;
    align-items: start;
}

.checkout-form,
.checkout-summary {
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
}

.checkout-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 22px;
}

.checkout-form h2,
.checkout-summary h2 {
    color: #1d3144;
}

.checkout-form h2,
.checkout-form-wide,
.checkout-submit,
.checkout-note {
    grid-column: 1 / -1;
}

.checkout-form label {
    display: grid;
    gap: 7px;
    color: #2f465d;
    font-size: 13px;
    font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    border: 1px solid #cfdbe7;
    border-radius: 12px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    outline: none;
}

.checkout-form textarea {
    resize: vertical;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
    border-color: rgba(44,95,138,0.55);
    box-shadow: 0 0 0 4px rgba(44,95,138,0.12);
}

.checkout-submit {
    min-height: 48px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #ff8d4a);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.checkout-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.checkout-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

.checkout-summary {
    padding: 18px;
    position: sticky;
    top: 124px;
}

.checkout-summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.checkout-summary-head a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.checkout-items {
    display: grid;
    gap: 10px;
}

.checkout-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e4edf5;
    border-radius: 12px;
    background: #f8fcff;
}

.checkout-item img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 10px;
    background: #eaf4fb;
}

.checkout-item strong {
    display: block;
    color: #1d3144;
    font-size: 13px;
    line-height: 1.25;
}

.checkout-item span {
    color: var(--text-muted);
    font-size: 12px;
}

.checkout-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.25;
}

.checkout-item b {
    color: var(--primary);
    white-space: nowrap;
}

.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #dbe8f4;
    color: #1d3144;
    font-size: 18px;
    font-weight: 800;
}

@media (max-width: 980px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .checkout-summary {
        position: static;
    }
}

@media (max-width: 640px) {
    .checkout-section {
        padding: 34px 0 48px;
    }

    .checkout-form {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .checkout-summary {
        padding: 14px;
    }

    .checkout-summary-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .checkout-item b {
        grid-column: 2;
    }
}

/* ============================================
   FAVORITES PAGE
============================================ */
.favorites-section {
    padding: 44px 0 68px;
}

.favorites-section .section-head h1 {
    color: #1d3144;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.favorite-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(22, 58, 86, 0.1);
}

.favorite-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    color: #d23b3b;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 20px;
    cursor: pointer;
}

.favorite-card-img {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf4fb;
}

.favorite-card-img img {
    width: 88%;
    height: 88%;
    object-fit: contain;
}

.favorite-card-body {
    display: grid;
    gap: 7px;
    padding: 16px;
}

.favorite-card-body span {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.favorite-card-body h3 {
    color: #1d3144;
    font-size: 15px;
    line-height: 1.35;
}

.favorite-card-body p {
    color: var(--text-muted);
    font-size: 13px;
}

.favorite-card-body strong {
    color: var(--primary);
    font-size: 20px;
}

.favorite-card-body button,
.favorites-empty a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.favorite-card-body button:hover,
.favorites-empty a:hover {
    background: var(--accent);
}

.favorites-empty {
    padding: 54px 18px;
    border: 1px dashed #c8d9e8;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.favorites-empty span {
    display: block;
    color: var(--accent);
    font-size: 54px;
    line-height: 1;
    margin-bottom: 10px;
}

.favorites-empty h2 {
    color: #1d3144;
    margin-bottom: 8px;
}

.favorites-empty p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.favorites-empty a {
    padding: 0 18px;
}

@media (max-width: 1100px) {
    .favorites-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .favorites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .favorites-section {
        padding: 34px 0 48px;
    }

    .favorites-grid {
        grid-template-columns: 1fr;
    }

    .favorite-card-img {
        height: 220px;
    }
}

/* ============================================
   AUTH PAGES
============================================ */
.auth-page,
.profile-page {
    padding: 46px 0 72px;
    background: linear-gradient(180deg, #f6fbff 0%, #ffffff 52%);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 470px) minmax(280px, 1fr);
    gap: 28px;
    align-items: stretch;
}

.auth-card,
.auth-info,
.profile-card {
    border: 1px solid #dbe8f4;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(22, 58, 86, 0.1);
}

.auth-card {
    padding: 20px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 5px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #eef6fc;
}

.auth-tabs button {
    min-height: 42px;
    border: none;
    border-radius: 10px;
    color: #31546f;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-tabs button.active {
    color: #fff;
    background: var(--primary);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form[hidden] {
    display: none;
}

.auth-form h1,
.profile-card h1 {
    color: #1d3144;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: #31546f;
    font-size: 13px;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #c9d9e8;
    border-radius: 12px;
    padding: 0 13px;
    color: #1d3144;
    background: #f8fcff;
    font: inherit;
    outline: none;
}

.auth-form input:focus {
    border-color: rgba(44,95,138,0.55);
    box-shadow: 0 0 0 4px rgba(44,95,138,0.12);
}

.auth-form button[type="submit"],
.profile-actions a,
.profile-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: none;
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.auth-form button[type="submit"]:hover,
.profile-actions a:hover,
.profile-actions button:hover {
    background: var(--accent);
}

.auth-form button[type="submit"]:disabled,
.profile-actions button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.auth-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 30px;
}

.auth-info h2 {
    color: #1d3144;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.12;
}

.auth-info p {
    max-width: 620px;
    color: var(--text-muted);
    line-height: 1.7;
}

.profile-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
}

.profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.profile-fields div {
    padding: 14px;
    border: 1px solid #dbe8f4;
    border-radius: 14px;
    background: #f8fcff;
}

.profile-fields span {
    display: block;
    margin-bottom: 5px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.profile-fields strong {
    display: block;
    color: #1d3144;
    overflow-wrap: anywhere;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-actions a,
.profile-actions button {
    min-width: 160px;
    padding: 0 18px;
}

.profile-actions button {
    background: #d94a4a;
}

@media (max-width: 860px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-info {
        order: -1;
    }
}

@media (max-width: 560px) {
    .auth-page,
    .profile-page {
        padding: 34px 0 52px;
    }

    .auth-card,
    .auth-info,
    .profile-card {
        border-radius: 14px;
    }

    .auth-card,
    .auth-info,
    .profile-card {
        padding: 16px;
    }

    .profile-fields {
        grid-template-columns: 1fr;
    }

    .profile-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .profile-actions a,
    .profile-actions button {
        width: 100%;
    }
}

/* ============================================
   CATEGORIES
============================================ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 18px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--c1), var(--c2));
    color: #fff;
    cursor: pointer;
    transition: transform var(--tr), box-shadow var(--tr), filter var(--tr);
    position: relative;
    overflow: hidden;
    min-height: 150px;
    border: 1px solid rgba(255,255,255,0.2);
}

.cat-card::before {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    right: -40px;
    bottom: -40px;
    pointer-events: none;
}

.cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255,255,255,0.12), transparent 50%);
    opacity: 0.85;
    pointer-events: none;
}

.cat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    filter: saturate(1.05);
}

.cat-card.big {
    grid-column: span 3;
    min-height: 220px;
    padding: 24px 24px;
}

.cat-card.big .cat-emoji { font-size: 52px; }
.cat-card.big .cat-info h3 { font-size: 22px; }

.cat-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.cat-emoji {
    font-size: 38px;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.16);
    backdrop-filter: blur(4px);
}

.cat-emoji img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.cat-info { flex: 1; }

.cat-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 3px;
}

.cat-info p {
    font-size: 13px;
    opacity: 0.82;
}

.cat-tag {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.34);
    padding: 6px 10px;
    border-radius: 999px;
    position: relative;
    z-index: 1;
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.95);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.cat-meta strong {
    font-size: 15px;
    font-weight: 700;
}

.cat-meta span {
    opacity: 0.86;
}

.cat-arr {
    font-size: 22px;
    opacity: 0.7;
    flex-shrink: 0;
    transition: transform var(--tr);
}

.cat-card:hover .cat-arr { transform: translateX(6px); }

@media (max-width: 1024px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-card.big {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .cat-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .cat-card,
    .cat-card.big {
        grid-column: span 1;
        min-height: 136px;
        padding: 18px 16px;
    }

    .cat-card.big .cat-info h3 {
        font-size: 18px;
    }

    .cat-info p {
        font-size: 12px;
    }
}

/* ============================================
   PRODUCT CARDS
============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.prod-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--tr), box-shadow var(--tr);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.prod-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 1;
    letter-spacing: 0.5px;
}

.badge-sale { background: var(--accent); color: #fff; }
.badge-new  { background: var(--green);  color: #fff; }
.badge-hit  { background: var(--yellow); color: #fff; }

.prod-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 1;
    transition: all var(--tr);
}

.prod-fav:hover { background: #ffe0e0; transform: scale(1.1); }
.prod-fav.liked { background: #ffe0e0; }

/* Обёртка <picture> не должна влиять на раскладку — img ведёт себя как раньше */
picture { display: contents; }

/* Honeypot — скрытое поле-ловушка для ботов. Реальные пользователи его не видят и не заполняют. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.prod-img {
    height: 190px;
    background: linear-gradient(135deg, #e8f0f7, #d0e3f0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 75px;
    overflow: hidden;
    transition: transform var(--tr);
}

.prod-card:hover .prod-img { transform: scale(1.04); }


.prod-img img {
    width: 88%;
    height: 88%;
    object-fit: contain;
    display: block;
}

.prod-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-cat {
    font-size: 11px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.prod-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 0 0 auto;
    min-height: calc(1.4em * 3);
}

.prod-vol {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.prod-box-note {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.prod-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}

.prod-price-label {
    margin-bottom: 2px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
}

.prod-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.prod-box-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
    padding: 10px;
    border: 1px solid #dbe8f4;
    border-radius: 10px;
    background: #f8fcff;
}

.prod-box-summary span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.prod-box-summary strong {
    color: #1d3144;
    font-size: 13px;
    line-height: 1.25;
}

.prod-old {
    font-size: 13px;
    color: #bbb;
    text-decoration: line-through;
}

.btn-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--tr);
}

.btn-cart:hover { background: var(--accent); }

.btn-cart:disabled {
    background: #9aa8b5;
    cursor: not-allowed;
}

.btn-cart-short {
    display: none;
}

.prod-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.prod-qty-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.qty-control {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #f3f6fa;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    min-height: 34px;
}

.qty-input {
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    min-height: 34px;
    outline: none;
    width: 100%;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}

/* ============================================
   PROMO BANNERS
============================================ */
.promo-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 16px;
}

.promo-card {
    border-radius: var(--radius);
    padding: 28px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--tr), box-shadow var(--tr);
}

.promo-card::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    right: -70px;
    top: -70px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .prod-img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .prod-img {
        height: 116px;
    }

    .prod-body {
        padding: 10px;
    }

    .prod-cat {
        font-size: 9px;
        margin-bottom: 4px;
    }

    .prod-name {
        font-size: 12px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
        min-height: calc(1.25em * 3);
    }

    .prod-vol,
    .prod-price-label,
    .prod-box-summary span,
    .prod-qty-label {
        font-size: 10px;
    }

    .prod-price {
        font-size: 16px;
    }

    .prod-box-summary {
        padding: 7px;
        margin-bottom: 8px;
    }

    .prod-box-summary strong {
        font-size: 11px;
    }

    .prod-actions {
        gap: 6px;
    }

    .prod-qty-label {
        display: none;
    }

    .qty-control {
        grid-template-columns: 28px 1fr 28px;
    }

    .qty-btn,
    .qty-input {
        min-height: 30px;
    }

    .btn-cart {
        padding: 8px 6px;
        font-size: 12px;
    }

    .btn-cart-full {
        display: none;
    }

    .btn-cart-short {
        display: inline;
    }

    .prod-fav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(190px, 1fr));
    }

    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer .container {
        padding-top: 36px;
    }

    .footer-col ul {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    #filtersWrap.filters-wrap {
        overflow: hidden;
    }

    #filtersWrap .mobile-filters-head {
        display: flex;
        flex-shrink: 0;
    }

    #filtersWrap .mobile-filters-body {
        display: flex;
        flex: 1;
        min-height: 0;
        flex-direction: column;
        gap: 12px;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    #filtersWrap .mobile-filters-foot {
        position: static;
        display: grid;
        flex-shrink: 0;
    }
}

/* Desktop catalog polish */
@media (min-width: 1025px) {
    .container {
        max-width: 1320px;
    }

    .main-content {
        grid-template-columns: 250px minmax(0, 1fr);
        gap: 24px;
    }

    .sidebar {
        top: 236px;
        gap: 14px;
        max-height: calc(100vh - 252px);
        overflow-y: auto;
    }

    .filter-block {
        padding: 0;
    }

    .filter-toggle {
        padding: 14px 16px;
    }

    .filter-panel {
        padding: 14px 16px 16px;
    }

    .categories-list {
        max-height: 320px;
        overflow-y: scroll;
        padding-right: 10px;
        scrollbar-width: auto;
        scrollbar-color: #2c5f8a #eef4f9;
    }

    .categories-list::-webkit-scrollbar,
    #brandFilters::-webkit-scrollbar {
        width: 12px;
    }

    .categories-list::-webkit-scrollbar-thumb,
    #brandFilters::-webkit-scrollbar-thumb {
        background: #2c5f8a;
        border: 3px solid #eef4f9;
        border-radius: 999px;
    }

    #brandFilters {
        max-height: 320px;
        overflow-y: scroll;
        padding-right: 10px;
        scrollbar-width: auto;
        scrollbar-color: #2c5f8a #eef4f9;
    }

    .products-section {
        padding: 20px;
        gap: 18px;
    }

    .products-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        gap: 16px;
    }

    .prod-card {
        align-self: start;
    }

    .prod-img {
        height: 152px;
    }

    .prod-body {
        padding: 12px;
    }

    .prod-name {
        flex: 0 0 auto;
        min-height: calc(1.3em * 3);
        font-size: 13px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }

    .prod-cat {
        font-size: 10px;
        letter-spacing: 0.3px;
    }

    .prod-price {
        font-size: 18px;
    }

    .prod-box-summary {
        padding: 8px;
        margin-bottom: 10px;
    }

    .prod-actions {
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: stretch;
        gap: 8px;
    }

    .prod-qty-label {
        display: none;
    }

    .qty-control {
        grid-template-columns: 28px 1fr 28px;
    }

    .qty-btn,
    .qty-input {
        min-height: 36px;
    }

    .btn-cart {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 13px;
    }

    .btn-cart-full {
        display: none;
    }

    .btn-cart-short {
        display: inline;
    }

    .prod-box-summary span,
    .prod-box-summary strong,
    .prod-vol,
    .prod-price-label,
    .prod-qty-label {
        font-size: 11px;
    }
}

/* ===========================
   HERO POLISH (visual refresh, decor only)
=========================== */
/* Богаче фоновое свечение поверх фото — в тон бренду, с глубиной */
.slide::before {
    background:
        radial-gradient(circle at 14% 20%, rgba(44, 95, 138, 0.50) 0%, rgba(44, 95, 138, 0) 45%),
        radial-gradient(circle at 86% 84%, rgba(255, 106, 0, 0.30) 0%, rgba(255, 106, 0, 0) 42%),
        linear-gradient(115deg, rgba(7, 19, 32, 0.50) 0%, rgba(7, 19, 32, 0) 58%);
}

/* Стеклянная карточка текста: градиентная поверхность + акцентная полоска сверху + глубокая мягкая тень */
.slide-text {
    background: linear-gradient(160deg, rgba(20, 44, 74, 0.60), rgba(7, 19, 32, 0.46));
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}
.slide-text::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6a00, #ffd166);
}

/* Тег-пилюля: акцентный градиент */
.slide-tag {
    background: linear-gradient(120deg, rgba(255, 106, 0, 0.32), rgba(255, 209, 102, 0.22));
    border-color: rgba(255, 209, 102, 0.5);
}

/* Светящееся вращающееся кольцо вокруг товара */
.slide-visual { isolation: isolate; }
.slide-circle {
    background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.05) 72%);
    box-shadow: 0 0 70px rgba(255, 209, 102, 0.18), 0 30px 80px rgba(0, 0, 0, 0.42), inset 0 0 36px rgba(255, 255, 255, 0.10);
}
.slide-circle::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(255, 209, 102, 0), rgba(255, 209, 102, 0.6) 18%, rgba(255, 106, 0, 0.55) 33%, rgba(44, 95, 138, 0) 56%, rgba(255, 209, 102, 0) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    animation: heroRing 14s linear infinite;
    z-index: -1;
}
@keyframes heroRing { to { transform: rotate(360deg); } }

/* Плавающие бейджи: премиальное стекло */
.float-badge {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Карточки статистики: лёгкий градиент */
.stat-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Жёлтая кнопка: мягкое свечение */
.btn-s1 { box-shadow: 0 10px 26px rgba(255, 183, 3, 0.30); }

/* Стрелки: аккуратнее + оранжевый ховер */
.slide-prev,
.slide-next {
    background: rgba(7, 19, 32, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.slide-prev:hover,
.slide-next:hover {
    background: rgba(255, 106, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    .slide-circle::before { animation: none; }
}

/* ===========================
   HERO: равная высота всех слайдов (без скачка при переключении)
   Все слайды лежат в одной grid-ячейке -> высота = по самому высокому.
   Переключение — плавное затухание (opacity), а не показ/скрытие.
=========================== */
.hero { display: grid; }
.slide {
    grid-area: 1 / 1;
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.5s ease, visibility 0s;
}

/* ===========================
   UX refresh 2026-06-28
=========================== */
:root {
    --ux-ink: #17212b;
    --ux-muted: #667789;
    --ux-line: #dbe5ee;
    --ux-panel: #ffffff;
    --ux-soft: #f4f7fa;
    --ux-teal: #0f766e;
    --ux-orange: #f97316;
    --ux-focus: 0 0 0 3px rgba(15, 118, 110, 0.22);
}

body {
    background: #f4f7fa;
    max-width: 100%;
    overflow-x: hidden;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: var(--ux-focus);
}

.catalog-hero {
    margin: 0 0 22px;
    padding: 30px 0;
    background:
        linear-gradient(90deg, rgba(15, 118, 110, 0.96), rgba(17, 53, 94, 0.92)),
        url("../img/sklad.jpg") center/cover no-repeat;
    color: #fff;
}

.catalog-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
}

.catalog-kicker {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.catalog-hero h1 {
    max-width: 760px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: 0;
}

.catalog-hero p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.55;
}

.catalog-hero-aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    gap: 10px;
    min-width: min(420px, 100%);
}

.catalog-hero-aside span,
.catalog-hero-aside a {
    min-height: 58px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
}

.catalog-hero-aside strong {
    display: block;
    margin-bottom: 3px;
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

.catalog-hero-aside a {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    background: var(--ux-orange);
    border-color: rgba(255, 255, 255, 0.28);
    font-weight: 800;
}

.header-main {
    background: rgba(255, 255, 255, 0.98);
}

.search-bar input {
    border-color: #cbd9e6;
    background: #fff;
}

.search-bar button,
.btn-filter,
.btn-cart {
    min-height: 42px;
}

.search-bar button:hover,
.btn-cart:hover,
.btn-filter:hover {
    background: var(--ux-orange);
}

.header-actions a,
.filter-block,
.products-toolbar,
.prod-card,
.sort-select,
.view-btn,
.btn-filter,
.qty-control {
    border-radius: 8px;
}

.main-content {
    padding-top: 0;
}

.products-section {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

.products-toolbar {
    background: #fff;
    border: 1px solid var(--ux-line);
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
}

.results-count {
    color: var(--ux-muted);
    background: #f7fafc;
    border-color: var(--ux-line);
}

.sort-select {
    min-height: 40px;
    color: var(--ux-ink);
}

.view-toggle {
    padding: 3px;
    border: 1px solid var(--ux-line);
    border-radius: 8px;
    background: #f8fafc;
}

.view-btn {
    border: 0;
    background: transparent;
}

.view-btn.active {
    background: #fff;
    color: var(--ux-teal);
    box-shadow: 0 4px 12px rgba(23, 33, 43, 0.08);
}

.active-filters {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
}

.active-filters.show {
    display: flex;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #c9d8e5;
    border-radius: 999px;
    background: #fff;
    color: var(--ux-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.filter-chip b {
    color: var(--ux-muted);
    font-size: 16px;
    line-height: 1;
}

.filter-chip:hover {
    border-color: var(--ux-teal);
    color: var(--ux-teal);
}

.filter-chip-reset {
    color: #fff;
    background: var(--ux-teal);
    border-color: var(--ux-teal);
}

.filter-block {
    background: #fff;
    border-color: var(--ux-line);
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.06);
}

.filter-toggle {
    color: var(--ux-ink);
}

.filter-toggle::after {
    background: #eef6f5;
    color: var(--ux-teal);
}

.filter-block.is-open .filter-toggle::after {
    background: var(--ux-teal);
}

.categories-list li a {
    border-bottom: 0;
    color: var(--ux-ink);
}

.categories-list li a:hover,
.categories-list li a.active {
    color: var(--ux-teal);
    background: #edf8f6;
    transform: none;
}

.cat-count {
    color: var(--ux-muted);
}

.brand-filter-search {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 10px;
    padding-bottom: 8px;
    background: #fff;
}

.brand-filter-search input {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid var(--ux-line);
    border-radius: 8px;
    color: var(--ux-ink);
    font: inherit;
    font-size: 13px;
    background: #f8fafc;
}

.brand-filter-list {
    display: grid;
    gap: 2px;
}

.filter-item {
    min-height: 30px;
    margin-bottom: 4px;
}

.filter-item[hidden] {
    display: none;
}

.filter-item label {
    color: var(--ux-ink);
}

.price-inputs input {
    min-height: 38px;
    border-color: var(--ux-line);
    border-radius: 8px;
}

.btn-reset {
    background: #e8eef4;
    color: var(--ux-ink);
}

.btn-reset:hover {
    background: #d9e4ee;
}

.products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.prod-card {
    border-color: #e3ebf3;
    box-shadow: 0 10px 24px rgba(23, 33, 43, 0.07);
}

.prod-card:hover {
    border-color: #c8d8e6;
    box-shadow: 0 16px 32px rgba(23, 33, 43, 0.10);
}

.prod-img {
    background: #f5f8fb;
}

.prod-card:hover .prod-img {
    transform: none;
}

.prod-badge,
.prod-cat {
    letter-spacing: 0;
}

.prod-badge {
    padding: 5px 9px;
    border-radius: 999px;
}

.badge-new {
    background: var(--ux-teal);
}

.badge-sale {
    background: var(--ux-orange);
}

.badge-hit {
    background: #facc15;
    color: #422006;
}

.prod-fav {
    border: 1px solid #e1e8ef;
    color: #9aa7b4;
}

.prod-fav:hover,
.prod-fav.liked {
    color: #e11d48;
    background: #fff1f2;
}

.prod-name {
    color: var(--ux-ink);
}

.prod-price {
    color: var(--ux-teal);
}

.prod-box-summary {
    border-color: #dce8e7;
    background: #f4fbfa;
}

.qty-btn:hover {
    background: #e6f3f1;
    color: var(--ux-teal);
}

.products-grid.is-list-view {
    grid-template-columns: 1fr;
}

.products-grid.is-list-view .prod-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.products-grid.is-list-view .prod-img {
    height: 100%;
    min-height: 178px;
}

.products-grid.is-list-view .prod-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
    gap: 8px 20px;
    align-items: start;
}

.products-grid.is-list-view .prod-cat,
.products-grid.is-list-view .prod-name,
.products-grid.is-list-view .prod-vol {
    grid-column: 1;
}

.products-grid.is-list-view .prod-name {
    min-height: 0;
    -webkit-line-clamp: 2;
}

.products-grid.is-list-view .prod-price-row,
.products-grid.is-list-view .prod-box-summary,
.products-grid.is-list-view .prod-actions {
    grid-column: 2;
}

.products-grid.is-list-view .prod-price-row {
    margin-bottom: 0;
}

.products-grid.is-list-view .prod-actions {
    align-self: end;
}

.pagination {
    gap: 8px;
}

.page-btn {
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
}

.mobile-cart-fab {
    display: none;
}

@media (max-width: 1024px) {
    .catalog-hero .container {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .catalog-hero-aside {
        width: 100%;
    }

    .mobile-filter-btn {
        background: var(--ux-teal);
        border-radius: 8px;
    }
}

@media (max-width: 760px) {
    .catalog-hero {
        padding: 24px 0;
    }

    .catalog-hero h1 {
        font-size: 30px;
    }

    .catalog-hero p {
        font-size: 14px;
    }

    .catalog-hero-aside {
        grid-template-columns: 1fr;
    }

    .products-toolbar {
        align-items: stretch;
    }

    .toolbar-right {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .sort-select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .products-grid.is-list-view .prod-card {
        grid-template-columns: 132px minmax(0, 1fr);
    }

    .products-grid.is-list-view .prod-img {
        min-height: 158px;
    }

    .products-grid.is-list-view .prod-body {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .header-main .container {
        position: relative;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .logo-img {
        height: 38px;
    }

    .logo {
        max-width: calc(100% - 126px);
    }

    .logo-meta {
        display: none;
    }

    .header-actions {
        position: static;
        display: flex !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
        margin-left: auto;
        min-width: 0;
        justify-content: end;
        flex: 0 0 auto;
        overflow: visible;
    }

    .header-actions a {
        display: none !important;
        width: 32px !important;
        min-width: 0 !important;
        height: 32px;
        padding: 4px !important;
        justify-content: center;
        flex: 0 0 32px;
    }

    .header-actions a:last-child {
        display: flex !important;
        width: auto !important;
        min-width: 82px !important;
        height: 34px;
        padding: 0 10px !important;
        color: #fff;
        background: var(--primary);
        border-color: var(--primary);
        font-size: 12px;
        font-weight: 800;
        flex: 0 0 auto;
    }

    .header-actions a:last-child .icon {
        display: none;
    }

    .header-actions a:last-child > span:not(.icon) {
        display: inline !important;
    }

    .header-actions {
        display: none !important;
    }

    .search-bar {
        order: 3;
        position: static;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0;
        flex: 0 0 100%;
        overflow: visible;
        margin-top: 2px;
    }

    .search-bar input {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-right: 14px;
        border-right: 2px solid rgba(44,95,138,0.4);
        border-radius: 30px;
    }

    .search-bar button {
        display: none;
    }

    .main-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav .container {
        width: max-content;
        min-width: 100%;
        justify-content: flex-start;
    }

    .main-nav a {
        flex: 0 0 auto;
        min-width: auto;
        padding-inline: 14px;
    }

    .catalog-hero {
        margin-bottom: 14px;
    }

    .catalog-hero h1 {
        max-width: 100%;
        font-size: 24px;
        line-height: 1.14;
        overflow-wrap: break-word;
    }

    .catalog-hero p {
        overflow-wrap: break-word;
    }

    .catalog-hero-aside span,
    .catalog-hero-aside a {
        min-height: 48px;
    }

    .active-filters {
        gap: 6px;
    }

    .filter-chip {
        max-width: 100%;
    }

    .filter-chip span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-cart-fab {
        position: fixed;
        left: 16px;
        right: auto;
        bottom: 16px;
        z-index: 1500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 46px;
        padding: 0 16px;
        border: 0;
        border-radius: 999px;
        background: var(--primary);
        color: #fff;
        box-shadow: 0 14px 28px rgba(17, 53, 94, 0.28);
        font: inherit;
        font-size: 14px;
        font-weight: 800;
    }

    .mobile-cart-fab span {
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: var(--ux-orange);
        color: #fff;
        font-size: 12px;
        line-height: 1;
    }

    body.filters-open .mobile-cart-fab {
        display: none;
    }
}

@media (max-width: 560px) {
    .products-grid,
    .products-grid.is-list-view {
        grid-template-columns: 1fr;
    }

    .products-grid.is-list-view .prod-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .prod-img {
        height: 148px;
    }
}

/* Mobile home hero repair */
@media (max-width: 640px) {
    .hero .slide {
        padding: 24px 0 28px;
    }

    .hero .slide-inner {
        display: block;
    }

    .hero .slide-text {
        padding: 18px 16px;
        border-radius: 16px;
    }

    .hero .slide-text h1 {
        font-size: clamp(25px, 7vw, 30px);
        line-height: 1.12;
    }

    .hero .slide-text p {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .hero .slide-stats {
        gap: 7px;
    }

    .hero .stat-item {
        padding: 9px 5px;
    }

    .hero .stat-item strong {
        font-size: 18px;
    }

    .hero .stat-item span {
        font-size: 10px;
    }

    .hero .slide-visual,
    .hero .float-badge {
        display: none;
    }

    .hero .slide-prev,
    .hero .slide-next,
    .hero .slider-dots {
        display: none;
    }
}

/* Mobile header actions repair */
@media (max-width: 640px) {
    .header-main .container {
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex: 1 1 auto;
        max-width: calc(100% - 144px);
        margin-right: 0;
    }

    .header-actions {
        order: 1;
        display: flex !important;
        gap: 6px !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 0 0 auto !important;
        flex: 0 0 auto;
        overflow: visible;
    }

    .search-bar {
        order: 2;
        flex: 0 0 100%;
        width: 100% !important;
        max-width: 100% !important;
    }

    .header-actions a,
    .header-actions a:last-child {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 38px !important;
        min-width: 0 !important;
        height: 38px;
        padding: 0 !important;
        flex: 0 0 38px !important;
        border: 1px solid rgba(44, 95, 138, 0.18);
        border-radius: 50%;
        background: #fff;
        color: var(--primary);
        box-shadow: 0 6px 16px rgba(17, 53, 94, 0.08);
    }

    .header-actions a .icon,
    .header-actions a:last-child .icon {
        display: inline-flex !important;
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .header-actions .ahdr-ico {
        width: 20px !important;
        height: 20px !important;
        background: var(--primary);
    }

    .header-actions a > span:not(.icon):not(.badge):not(.fav-count) {
        display: none !important;
    }

    .header-actions .badge,
    .header-actions .fav-count {
        position: absolute;
        top: -5px;
        right: -5px;
        display: none;
        min-width: 17px;
        height: 17px;
        padding: 0 4px;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 10px;
        line-height: 17px;
    }

    .header-actions .badge[style*="flex"],
    .header-actions .fav-count[style*="inline-flex"] {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

/* Mobile home features repair */
@media (max-width: 640px) {
    .features-bar {
        padding: 10px 0 14px;
        border-top: 0;
    }

    .features-bar .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .features-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .feat-item {
        align-items: flex-start;
        gap: 8px;
        min-height: 78px;
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(8, 22, 34, 0.05);
    }

    .feat-item:hover {
        transform: none;
    }

    .feat-ico {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .feat-glyph {
        width: 17px;
        height: 17px;
    }

    .feat-text {
        min-width: 0;
    }

    .feat-text strong {
        font-size: 11px;
        line-height: 1.18;
    }

    .feat-text span {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
    }
}

/* Mobile home actual products repair */
@media (max-width: 640px) {
    .section.new-products-section {
        padding: 28px 0 34px;
    }

    .new-products-head {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
    }

    .new-products-head h2 {
        font-size: 22px;
        line-height: 1.14;
    }

    .new-products-head p {
        max-width: 290px;
        font-size: 12px;
        line-height: 1.35;
    }

    .new-products-head .see-all {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        box-shadow: none;
    }

    .new-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .new-product-card {
        display: flex;
        flex-direction: column;
        gap: 7px;
        min-width: 0;
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(26, 63, 96, 0.07);
    }

    .new-product-card:hover {
        transform: none;
    }

    .new-product-icon {
        grid-row: auto;
        height: 96px;
        padding: 8px;
        border-radius: 8px;
    }

    .new-product-badge {
        top: 6px;
        right: 6px;
        padding: 3px 7px;
        font-size: 8px;
        letter-spacing: 0;
    }

    .np-card-top {
        min-height: 0;
    }

    .np-cat {
        max-width: 100%;
        font-size: 9px;
        letter-spacing: 0;
    }

    .np-stock {
        display: none;
    }

    .new-product-card h4 {
        min-height: 42px;
        font-size: 11px;
        line-height: 1.25;
        -webkit-line-clamp: 3;
    }

    .new-product-meta {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-top: 7px;
    }

    .np-unit,
    .np-box {
        gap: 1px;
        font-size: 11px;
        line-height: 1.15;
    }

    .np-box {
        font-size: 15px;
    }

    .np-unit i,
    .np-box i {
        font-size: 8px;
        letter-spacing: 0;
    }

    .np-pack {
        min-height: 0;
        font-size: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 340px) {
    .new-products-grid {
        grid-template-columns: 1fr;
    }

    .new-product-card {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        align-items: start;
    }

    .new-product-icon {
        height: 104px;
        grid-row: span 5;
    }
}

/* Mobile home advantages repair */
@media (max-width: 640px) {
    .advantages-section {
        padding: 32px 0 36px;
    }

    .advantages-section .sec-head {
        margin-bottom: 14px;
    }

    .advantages-section .sec-head h2 {
        font-size: 22px;
        line-height: 1.14;
    }

    .advantages-section .sec-head p {
        font-size: 12px;
        line-height: 1.35;
    }

    .advantages-section .adv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .advantages-section .adv-card {
        min-width: 0;
        min-height: 132px;
        padding: 10px;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(21, 56, 86, 0.07);
    }

    .advantages-section .adv-card::after {
        width: 72px;
        height: 72px;
        right: -24px;
        bottom: -34px;
    }

    .advantages-section .adv-card:hover {
        transform: none;
    }

    .advantages-section .adv-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 8px;
        border-radius: 9px;
    }

    .advantages-section .adv-glyph {
        width: 18px;
        height: 18px;
    }

    .advantages-section .adv-card h4 {
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.2;
    }

    .advantages-section .adv-card p {
        font-size: 10px;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

@media (max-width: 340px) {
    .advantages-section .adv-grid {
        grid-template-columns: 1fr;
    }

    .advantages-section .adv-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        column-gap: 10px;
        align-items: start;
    }

    .advantages-section .adv-icon {
        grid-row: span 2;
        margin-bottom: 0;
    }
}

/* Mobile home reviews repair */
@media (max-width: 640px) {
    .reviews-section {
        padding: 32px 0 36px;
    }

    .reviews-section .sec-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: 12px;
        margin-bottom: 14px;
    }

    .reviews-section .sec-head h2 {
        font-size: 22px;
        line-height: 1.14;
    }

    .reviews-section .sec-head p {
        font-size: 12px;
        line-height: 1.35;
    }

    .reviews-summary {
        width: auto;
        min-width: 76px;
        padding: 9px 10px;
        border-radius: 9px;
        text-align: center;
        box-shadow: 0 8px 18px rgba(21, 56, 86, 0.07);
    }

    .reviews-summary strong {
        font-size: 24px;
    }

    .reviews-summary span {
        margin-top: 2px;
        font-size: 9px;
        line-height: 1.15;
    }

    .reviews-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(260px, 84vw);
        grid-template-columns: none;
        gap: 10px;
        margin-left: -12px;
        margin-right: -12px;
        padding: 0 12px 4px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .review-card {
        scroll-snap-align: start;
        padding: 14px;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(22, 58, 86, 0.07);
    }

    .review-card:hover {
        transform: none;
    }

    .rev-top {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        margin-bottom: 10px;
    }

    .rev-avatar {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .rev-info {
        min-width: 0;
    }

    .rev-info strong {
        font-size: 13px;
    }

    .rev-info span {
        font-size: 10px;
        line-height: 1.2;
    }

    .rev-stars {
        width: 78px;
        height: 15px;
        font-size: 15px;
        letter-spacing: 0;
        margin-top: 0;
    }

    .review-card p {
        min-height: 58px;
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.45;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .rev-date {
        padding-top: 9px;
        font-size: 10px;
    }
}

/* Mobile home WhatsApp request repair */
@media (max-width: 640px) {
    .newsletter-section {
        padding: 26px 0 32px;
    }

    .newsletter-section .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .newsletter-box {
        display: block;
        padding: 14px;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(22, 58, 86, 0.08);
    }

    .newsletter-box::before {
        display: none;
    }

    .nl-chip {
        margin-bottom: 8px;
        padding: 5px 9px;
        font-size: 10px;
        line-height: 1.2;
    }

    .nl-text h3 {
        max-width: 260px;
        margin-bottom: 6px;
        font-size: 20px;
        line-height: 1.16;
    }

    .nl-text p {
        margin-bottom: 12px;
        font-size: 12px;
        line-height: 1.35;
    }

    .nl-benefits {
        display: none;
    }

    .nl-form {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        gap: 7px;
    }

    .nl-label {
        font-size: 11px;
        line-height: 1.2;
    }

    .nl-input-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .nl-form input {
        height: 44px;
        border-radius: 9px;
        font-size: 15px;
    }

    .nl-form button {
        height: 44px;
        border-radius: 9px;
        font-size: 14px;
    }

    .nl-form button:hover {
        transform: none;
    }

    .nl-form small {
        font-size: 10px;
        line-height: 1.25;
    }
}

/* Mobile footer repair */
@media (max-width: 640px) {
    .footer {
        background: linear-gradient(180deg, #0b2a48 0%, #071a2b 100%);
    }

    .footer .container {
        padding-top: 22px;
        padding-bottom: 14px;
    }

    .footer-topline {
        display: grid;
        gap: 10px;
        margin-bottom: 18px;
        padding: 14px;
        border-radius: 10px;
    }

    .footer-kicker {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .footer-topline strong {
        margin-top: 3px;
        font-size: 18px;
        line-height: 1.2;
    }

    .footer-order {
        width: 100%;
        min-height: 40px;
        border-radius: 8px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .footer-about,
    .footer-grid .footer-col:last-child {
        grid-column: 1 / -1;
    }

    .footer-logo {
        font-size: 21px;
    }

    .footer-about p {
        max-width: none;
        margin: 8px 0 12px;
        font-size: 12px;
        line-height: 1.45;
    }

    .footer-badges {
        gap: 6px;
        margin-bottom: 12px;
    }

    .footer-badges span {
        padding: 5px 8px;
        font-size: 10px;
    }

    .socials {
        gap: 8px;
    }

    .soc-btn {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .soc-btn img {
        width: 17px;
        height: 17px;
    }

    .footer-col h4 {
        margin-bottom: 9px;
        padding-bottom: 7px;
        font-size: 14px;
    }

    .footer-col h4::after {
        width: 26px;
    }

    .footer-col ul {
        gap: 7px;
    }

    .footer-col a {
        font-size: 12px;
        line-height: 1.25;
    }

    .footer-contact-list {
        gap: 8px;
    }

    .footer-contact {
        grid-template-columns: 17px minmax(0, 1fr);
        gap: 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    .footer-contact .footer-ico,
    .footer-contact.footer-ico {
        width: 15px;
        height: 15px;
    }

    .footer-bottom {
        margin-top: 18px;
        padding-top: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .footer-bottom p {
        font-size: 10px;
        line-height: 1.35;
    }

    .pay-icons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
    }

    .pay-icons span {
        justify-content: center;
        padding: 6px 8px;
        font-size: 10px;
    }

    .pay-icons .footer-ico {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 340px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-about,
    .footer-grid .footer-col:last-child {
        grid-column: auto;
    }
}

/* Mobile catalog product grid repair */
@media (max-width: 640px) {
    .products-section {
        padding: 10px;
        border-radius: 12px;
    }

    .products-toolbar {
        padding: 10px;
        gap: 8px;
    }

    .results-count {
        text-align: left;
        font-size: 12px;
    }

    .toolbar-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .sort-select {
        min-width: 0;
        height: 38px;
        font-size: 12px;
    }

    .view-toggle {
        height: 38px;
    }

    .view-btn {
        width: 36px;
        height: 38px;
    }

    .products-section .products-grid:not(.is-list-view) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-card {
        min-width: 0;
        border-radius: 10px;
        box-shadow: 0 7px 18px rgba(23, 33, 43, 0.06);
    }

    .products-section .products-grid:not(.is-list-view) .prod-card:hover {
        transform: none;
    }

    .products-section .products-grid:not(.is-list-view) .prod-img {
        height: 94px;
        font-size: 42px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-img img {
        width: 86%;
        height: 86%;
    }

    .products-section .products-grid:not(.is-list-view) .prod-body {
        padding: 8px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-cat {
        margin-bottom: 4px;
        font-size: 9px;
        line-height: 1.2;
    }

    .products-section .products-grid:not(.is-list-view) .prod-name {
        min-height: calc(1.22em * 3);
        margin-bottom: 4px;
        font-size: 11px;
        line-height: 1.22;
        -webkit-line-clamp: 3;
    }

    .products-section .products-grid:not(.is-list-view) .prod-vol {
        display: none;
    }

    .products-section .products-grid:not(.is-list-view) .prod-price-row {
        margin-bottom: 6px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-price-label {
        font-size: 9px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-price {
        font-size: 15px;
        line-height: 1.1;
    }

    .products-section .products-grid:not(.is-list-view) .prod-box-summary {
        gap: 2px;
        margin-bottom: 7px;
        padding: 6px;
        border-radius: 8px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-box-summary span,
    .products-section .products-grid:not(.is-list-view) .prod-box-summary strong {
        font-size: 9px;
        line-height: 1.2;
    }

    .products-section .products-grid:not(.is-list-view) .prod-actions {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-qty-label {
        display: none;
    }

    .products-section .products-grid:not(.is-list-view) .qty-control {
        grid-template-columns: 28px minmax(0, 1fr) 28px;
    }

    .products-section .products-grid:not(.is-list-view) .qty-btn,
    .products-section .products-grid:not(.is-list-view) .qty-input {
        min-height: 30px;
        font-size: 12px;
    }

    .products-section .products-grid:not(.is-list-view) .btn-cart {
        min-height: 32px;
        padding: 7px 6px;
        border-radius: 8px;
        font-size: 11px;
    }

    .products-section .products-grid:not(.is-list-view) .btn-cart-full {
        display: none;
    }

    .products-section .products-grid:not(.is-list-view) .btn-cart-short {
        display: inline;
    }

    .products-section .products-grid:not(.is-list-view) .prod-badge {
        top: 6px;
        left: 6px;
        padding: 3px 7px;
        font-size: 8px;
    }

    .products-section .products-grid:not(.is-list-view) .prod-fav {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .products-section .products-grid.is-list-view {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 340px) {
    .products-section .products-grid:not(.is-list-view) {
        grid-template-columns: 1fr;
    }

    .products-section .products-grid:not(.is-list-view) .prod-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .products-section .products-grid:not(.is-list-view) .prod-img {
        height: 100%;
        min-height: 132px;
    }
}
