
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #2d2d2d;
    background: #f5f6f8;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; cursor: pointer; }
a[aria-disabled="true"] { cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== CSS VARIABLES ===== */
:root {
    --blue: #1a56a0;
    --blue-dark: #0d3d7a;
    --blue-light: #2a75c7;
    --accent: #f2a900;
    --accent-hover: #e09900;
    --text: #2d2d2d;
    --text-light: #666;
    --border: #e0e4ea;
    --bg: #f5f6f8;
    --white: #fff;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
    --container: 1440px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* ===== TOP NAV (utility bar) ===== */
.topbar {
    background: #1a2940;
    color: #bcc7d8;
    font-size: 14px;
    padding: 6px 0;
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: #bcc7d8; transition: color .2s; }
.topbar__links a:hover { color: #fff; }
.topbar__contacts { display: flex; align-items: center; gap: 16px; }
.topbar__phones { display: flex; gap: 12px; align-items: center; }
.topbar__phone {
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    display: flex; align-items: center; gap: 5px;
}
.topbar__phone svg { opacity: .7; }
.topbar__email { color: #bcc7d8; transition: color .2s; }
.topbar__email:hover { color: #fff; }
.email-link { color: var(--blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: color .15s; }
.email-link:hover { color: var(--blue-dark); }
.email-link svg { opacity: .6; flex-shrink: 0; }
.topbar .email-link,
.hero__slide .email-link,
.partners-banner .email-link,
footer .email-link { color: rgba(255,255,255,.85); }
.topbar .email-link:hover,
.hero__slide .email-link:hover,
.partners-banner .email-link:hover,
footer .email-link:hover { color: #fff; }
.topbar__callback {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    transition: background .2s;
}
.topbar__callback:hover { background: var(--accent-hover); }
.topbar__messengers { display: flex; align-items: center; gap: 8px; }
.topbar__messengers a { display: flex; align-items: center; }
.topbar__messengers img { width: 18px; height: 18px; }

/* ===== MAIN HEADER ===== */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,.07);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}
.header__logo { flex-shrink:0; display:flex; align-items:center; gap:10px; text-decoration:none; }

/* ── ЛОГОТИП: обёртка ── */
.header__logo-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    text-decoration: none;
}
.header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.header__logo svg, .header__logo img {
    height: 52px;
    width: 52px;
}
.header__logo svg, .header__logo img { height: 52px; width: 52px; }
.header__logo .header__logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
}
.header__logo-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue);
    line-height: 1.3;
}
.header__logo-text span { display: block; font-weight: 400; color: var(--text-light); font-size: 13px; }
.header__mobile-phone { display: none; }

.wrapper-inner {
    position: relative;
    z-index: 120;
}

.wrapper-inner--fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.wrapper-inner-placeholder {
    display: none;
}

.wrapper-inner-placeholder.is-active {
    display: block;
}

.catalog-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: background .2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}
.catalog-btn:hover,
.catalog-btn.mm-open { background: var(--blue-dark); }
.catalog-btn svg { flex-shrink: 0; transition: transform .22s; }
.catalog-btn.mm-open svg.mm-bars { display: none; }
.catalog-btn .mm-close { display: none; }
.catalog-btn.mm-open .mm-close { display: block; }
.catalog-btn.mm-open .mm-bars { display: none; }

/* ===== MEGA-MENU (flat card grid) ===== */
.mm-backdrop {
    position: fixed; inset: 0;
    z-index: 199;
    background: rgba(8,20,50,.48);
    opacity: 0; pointer-events: none;
    transition: opacity .25s;
}
.mm-backdrop.mm-show { opacity: 1; pointer-events: all; }

.mm-wrap {
    position: fixed;
    inset: 0;
    z-index: 200;
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
}
.mm-wrap.mm-open { opacity: 1; pointer-events: all; transform: translateY(0); }

.mm-panel {
    background: #fff;
    box-shadow: 0 20px 60px rgba(10,30,80,.18);
    height: 100dvh;
    overflow-y: auto;
}
.mm-panel::-webkit-scrollbar { width: 4px; }
.mm-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.mm-top {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.mm-top__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mm-search {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #f5f7fb;
    overflow: hidden;
}
.mm-search:focus-within { border-color: var(--blue); }
.mm-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 10px 12px;
    color: var(--text);
}
.mm-search svg { color: #8a95a6; margin-left: 10px; flex-shrink: 0; }
.mm-empty {
    display: none;
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px;
    color: var(--text-light);
    font-size: 16px;
}
.mm-empty.mm-show { display: block; }

.mm-grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 20px 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.mm-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 15px;
    display: flex;
    flex-direction: column;
}
.mm-card__head {
    display: flex; align-items: center; gap: 7px;
    padding-bottom: 9px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 9px; flex-shrink: 0;
}
.mm-card__ico {
    flex-shrink: 0;
    line-height: 1;
    height: 40px;
}

img.mm-card__ico {
    width: auto;
    object-fit: contain;
}

span.mm-card__ico {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
}
.mm-card__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 14.5px; font-weight: 700;
    color: var(--blue); line-height: 1.25; text-decoration: none;
    transition: color .13s;
}
.mm-card__title:hover { color: var(--blue-dark); }
.mm-card__arr {
    margin-left: auto; flex-shrink: 0;
    width: 20px; height: 20px;
    background: var(--blue); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .15s; text-decoration: none;
}
.mm-card:hover .mm-card__arr { opacity: 1; }
.mm-card__list { flex: 1; display: flex; flex-direction: column; }
.mm-card__item {
    display: flex; align-items: baseline; gap: 7px;
    padding: 4px 6px; border-radius: 5px;
    font-size: 14px; color: var(--text); text-decoration: none;
    transition: background .12s, color .12s; line-height: 1.4;
}
.mm-card__item::before {
    content: "\00B7";
    color: #b8c2d0; font-size: 16px;
    line-height: 1; flex-shrink: 0; transition: color .12s;
}
.mm-card__item:hover { background: #e6edf8; color: var(--blue); }
.mm-card__item:hover::before { color: var(--blue); }
.mm-card__toggle {
    margin-left: auto;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #eaf0fb;
    color: var(--blue);
    cursor: pointer;
}
.mm-card__toggle svg { transition: transform .2s; }
.mm-card.mm-open .mm-card__toggle svg { transform: rotate(180deg); }
.mm-card__all {
    margin-top: 10px; flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13.5px; font-weight: 600; color: var(--blue);
    padding-top: 8px; border-top: 1px solid var(--border);
    text-decoration: none; transition: color .13s;
}
.mm-card__all:hover { color: var(--blue-dark); }
.mm-card__more {
    margin-top: 8px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 6px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    padding: 7px 10px;
    cursor: pointer;
}
.mm-card--filtered-out { display: none; }
.mm-item--hidden { display: none; }

/* Кнопка × закрыть мегаменю */
.mm-close-btn {
    position: static;
    width: 32px; height: 32px;
    border: none; background: #eef2f8;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #6b7385;
    transition: background .15s, color .15s;
    z-index: 3; flex-shrink: 0;
}
.mm-close-btn:hover { background: #dce4f0; color: var(--blue); }

.header__search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}
.header__search:focus-within { border-color: var(--blue); }
.header__search input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-size: 16px;
    color: var(--text);
    outline: none;
}
.header__search input::placeholder { color: #aaa; }
.header__search button {
    background: var(--blue);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background .2s;
}
.header__search button:hover { background: var(--blue-dark); }

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.header__action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: color .2s;
}
.header__action:hover { color: var(--blue); }
.header__action svg { color: var(--blue); }
.header__cart {
    position: relative;
}
.header__cart-count {
    position: absolute;
    top: -4px; right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Work hours bar */
.worktime-bar {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue));
    color: #fff;
    font-size: 14px;
    padding: 6px 0;
}
.worktime-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.worktime-bar__left { display: flex; align-items: center; gap: 10px; }
.worktime-badge {
    background: #E31E24;
    padding: 2px 10px;
    border-radius: 3px;

    font-size: 13px;
    letter-spacing: .5px;
}
.worktime-bar__right { opacity: .85; }

/* ===== HERO SLIDER ===== */
.hero {
    background: var(--blue-dark);
    overflow: hidden;
}
.hero__slider {
    position: relative;
    height: 420px;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .6s ease;
    overflow: hidden;
}
.hero__slide.active { opacity: 1; }

/* Заглушка-макет с диагональным крестом */
.hero__slide-bg {
    position: absolute;
    inset: 0;
    background: var(--slide-bg, #1a3a6a);
}
/*.hero__slide-bg::before,*/
/*.hero__slide-bg::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    inset: 0;*/
/*    background: linear-gradient(to bottom right, transparent calc(50% - .5px), rgba(255,255,255,.08) calc(50% - .5px), rgba(255,255,255,.08) calc(50% + .5px), transparent calc(50% + .5px));*/
/*}*/
/*.hero__slide-bg::after {*/
/*    background: linear-gradient(to bottom left, transparent calc(50% - .5px), rgba(255,255,255,.08) calc(50% - .5px), rgba(255,255,255,.08) calc(50% + .5px), transparent calc(50% + .5px));*/
/*}*/
/* Размерная подпись как в макетах */
.hero__slide-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: rgba(255,255,255,.2);
    font-family: monospace;
    letter-spacing: .5px;
    pointer-events: none;
    white-space: nowrap;
}

/* Контент поверх слайда */
.hero__slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero__slide-content .container {
    width: 100%;
}
.hero__slide-inner {
    max-width: 580px;
}
.hero__slide-tag {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.hero__slide-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero__slide-text {
    font-size: 17px;
    color: rgba(255,255,255,.82);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 460px;
}
.hero__slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero__slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Exo 2', sans-serif;
    transition: all .2s;
    cursor: pointer;
    border: none;
}
.hero__slide-btn--primary {
    background: var(--accent);
    color: #fff;
}
.hero__slide-btn--primary:hover { background: #e09900; }
.hero__slide-btn--outline {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
}
.hero__slide-btn--outline:hover { background: rgba(255,255,255,.22); }
.hero__slide-actions .email-link {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 11px 20px;
    border-radius: 8px;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.35);
    transition: all .2s;
}
.hero__slide-actions .email-link:hover {
    background: rgba(255,255,255,.22);
}
.hero__slide-actions .email-link svg {
    opacity: 1;
}

.hero__dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    border: none;
    cursor: pointer;
    transition: all .2s;
    padding: 0;
}
.hero__dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}
.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.95);
    color: var(--blue);
    border: none;
    width: 52px; height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.hero__slider:hover .hero__arrow,
.hero__slider:focus-within .hero__arrow {
    opacity: 1;
    pointer-events: auto;
}
.hero__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hero__arrow:active {
    transform: translateY(-50%) scale(0.95);
}
.hero__arrow svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ===== QUICK STATS BAR ===== */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.stats-bar__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-icon {
    width: 44px; height: 44px;
    background: #eef4ff;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}
.stat-num {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
}
.stat-label { font-size: 14px; color: var(--text-light); margin-top: 2px; }

/* ===== CATEGORY GRID ===== */
.section-categories {
    padding: 40px 0 10px;
    background: var(--bg);
}
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 16px 8px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all .22s;
    cursor: pointer;
    /* Фиксированная ширина = 1/7 контейнера минус gap */
    width: calc((100% - 60px) / 7);
    min-width: 100px;
    box-sizing: border-box;
}
.category-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.category-card__img {
    width: 87px;
    height: 87px;
    object-fit: contain;
    transition: transform .22s;
    border-radius: 8px;
    padding: 8px;
}
.category-card:hover .category-card__img { transform: scale(1.08); }
.category-card__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: .2px;
    text-transform: uppercase;
}

/* ===== BRANDS ===== */
.section-brands {
    padding: 36px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.brands-row {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}
.brands-row::-webkit-scrollbar { display: none; }
.brands-row.dragging { cursor: grabbing; user-select: none; }
.brands-track {
    display: flex;
    gap: 16px;
    align-items: center;
    width: max-content;
}
@keyframes scroll-brands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.brand-item {
    flex-shrink: 0;
    width: 120px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.brand-item:hover {
    border-color: var(--blue);
    box-shadow: 0 2px 8px rgba(26,86,160,.12);
}
.brand-item img {
    max-width: 90px;
    max-height: 40px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter .2s;
}
.brand-item:hover img { filter: grayscale(0); }

/* ===== NEW PRODUCTS ===== */
.section-products {
    padding: 40px 0;
    background: var(--bg);
}
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-link {
    font-size: 15px;
    color: var(--blue);
    font-weight: 500;
    display: flex; align-items: center; gap: 4px;
    transition: color .2s;
}
.section-link:hover { color: var(--blue-dark); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all .22s;
    position: relative;
}
.product-card:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.product-card__badge {
    position: absolute;
    top: 10px; left: 10px;
    background: #22b573;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 3px;
    z-index: 2; /* всегда поверх картинки */
}
.product-card__img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    border-radius: 6px;
    overflow: hidden;
    position: relative; /* нужен для z-index */
}
/* CSS-заглушка товара вместо битых фото */
.product-card__ph {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f0f4fb 0%, #e8edf6 100%);
    position: relative;
}
.product-card__ph::before,
.product-card__ph::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to bottom right,
    transparent calc(50% - .5px),
    rgba(180,195,220,.35) calc(50% - .5px),
    rgba(180,195,220,.35) calc(50% + .5px),
    transparent calc(50% + .5px));
}
.product-card__ph::after {
    background: linear-gradient(to bottom left,
    transparent calc(50% - .5px),
    rgba(180,195,220,.35) calc(50% - .5px),
    rgba(180,195,220,.35) calc(50% + .5px),
    transparent calc(50% + .5px));
}
.product-card__ph span {
    position: relative; z-index: 1;
    font-size: 12px; color: #9aaabb;
    text-align: center; padding: 8px;
    line-height: 1.4;
}
.product-card__img {
    max-height: 140px;
    max-width: 100%;
    object-fit: contain;
    transition: transform .25s;
    position: relative; z-index: 1;
}
.product-card:hover .product-card__img { transform: scale(1.06); }
.product-card--out-of-stock .product-card__img,
.product-card--out-of-stock .product-card__ph {
    filter: grayscale(1) brightness(.82);
    opacity: .78;
}
.product-card__art { font-size: 13px; color: #999; }
.product-card__name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__name:hover { color: var(--blue); }
.product-card__availability {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #22b573;
}
.product-card__availability::before {
    content: '';
    width: 7px; height: 7px;
    background: #22b573;
    border-radius: 50%;
    flex-shrink: 0;
}
.product-card__availability--empty {
    color: #98a2b3;
}
.product-card__availability--empty::before {
    background: #98a2b3;
}
.product-card__price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}
.product-card__quick-actions {
    display: grid;
    grid-template-columns: minmax(132px, 2fr) minmax(56px, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
}
.product-card__price {
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}
.product-card__one-click {
    padding: 7px 10px;
    font-size: 12px;
    width: 100%;
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
}
.product-card__price-note {
    font-size: 12px;
    color: #999;
    margin-top: -4px;
}
.product-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.btn-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.btn-cart:hover { background: var(--blue-dark); }
.btn-opt {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-light);
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.btn-opt:hover { border-color: var(--blue); color: var(--blue); }
.product-card__quick-actions .btn-opt {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow-wrap: normal;
    text-align: center;
}
.section-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.carousel-nav {
    display: inline-flex;
    gap: 6px;
}
.carousel-nav__btn {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--blue-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
.carousel-nav__btn:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #f4f8ff;
}
.section-bestsellers {
    padding: 0 0 40px;
    background: var(--bg);
}
.bestsellers-viewport {
    overflow: hidden;
}
.bestsellers-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 42px) / 4);
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.bestsellers-track::-webkit-scrollbar { display: none; }
.bestsellers-track .product-card { scroll-snap-align: start; }
.product-card__badge--hit {
    background: #f57c00;
}

.product-card__badge--out-of-stock {
    background: #98a2b3;
}

/* ===== PARTNERS BANNER ===== */
.section-partners {
    padding: 0 0 40px;
    background: var(--bg);
}
.partners-banner {
    background: linear-gradient(135deg, #0d3d7a 0%, #1a56a0 50%, #2a75c7 100%);
    border-radius: 12px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    overflow: hidden;
    position: relative;
}
.partners-banner::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.partners-banner__left { position: relative; z-index: 1; }
.partners-banner__left h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 8px;
}
.partners-banner__left p { color: rgba(255,255,255,.8); font-size: 16px; margin-bottom: 20px; }
.partners-banner__contacts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.partners-banner__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,.9);
    font-size: 17px;
    font-weight: 500;
}
.partners-banner__contact svg { opacity: .7; }
.partners-banner__contacts .email-link {
    color: rgba(255,255,255,.95);
    font-size: 17px;
    font-weight: 500;
}
.partners-banner__contacts .email-link:hover { color: #fff; }
.partners-banner__contacts .email-link svg { opacity: .9; }
.btn-catalog {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-family: 'Exo 2', sans-serif;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 8px;
    transition: background .2s;
}
.btn-catalog:hover { background: var(--accent-hover); }

.partners-banner__right { position: relative; z-index: 1; }
.partners-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.partners-list li {
    display: flex;
    gap: 10px;
    color: rgba(255,255,255,.85);
    font-size: 15px;
    line-height: 1.5;
}
.partners-list li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    font-size: 15px;
}

/* ===== ADVANTAGES ===== */
.section-advantages {
    padding: 48px 0;
    background: var(--white);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.adv-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all .22s;
    background: #fff;
}
.adv-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.adv-card__icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.adv-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.adv-card__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}
.adv-card__text { font-size: 15px; color: var(--text-light); line-height: 1.6; }

/* ===== NEWS ===== */
.section-news {
    padding: 48px 0;
    background: var(--bg);
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    overflow: hidden;
    transition: all .22s;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.news-card__img {
    height: 180px;
    overflow: hidden;
    background: #e8edf2;
}
.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.news-card__date { font-size: 13px; color: #999; }
.news-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card__title { color: var(--blue); }
.news-card__more {
    font-size: 14px;
    color: var(--blue);
    font-weight: 500;
    display: flex; align-items: center; gap: 4px;
    margin-top: 4px;
}

/* ===== SEO TEXT ===== */
.section-seo {
    padding: 36px 0;
    background: var(--white);
}
.seo-block {
    background: #f5f7fb;
    border-radius: 10px;
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.seo-block h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.seo-block p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== DELIVERY REGIONS ===== */
.section-delivery {
    padding: 48px 0;
    background: var(--bg);
}
.delivery-inner {
    display: grid;
    gap: 18px;
}
.delivery-hero {
    background: linear-gradient(135deg, #0d3d7a 0%, #1a56a0 52%, #2a75c7 100%);
    border-radius: 12px;
    padding: 22px 24px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}
.delivery-hero__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 6px;
}
.delivery-hero__text {
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255,255,255,.88);
    max-width: 760px;
}
.delivery-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.delivery-stat {
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.delivery-actions {
    display: grid;
    gap: 10px;
    min-width: 220px;
}
.delivery-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    display: grid;
    place-items: center;
    text-align: center;
    transition: all .2s;
}
.delivery-btn--primary {
    background: #fff;
    color: var(--blue-dark);
    border: 1px solid #fff;
}
.delivery-btn--primary:hover {
    background: #f0f5ff;
}
.delivery-btn--secondary {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,.4);
}
.delivery-btn--secondary:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.58);
}
.delivery-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.delivery-feature {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}
.delivery-feature__title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.delivery-feature__sub {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}
.regions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.region-item {
    background: #f8faff;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .2s;
}
.region-item:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: #f4f8ff;
}
.region-item::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.delivery-cta {
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.delivery-cta a {
    font-size: 14px;
    color: var(--blue);
    font-weight: 600;
    border-bottom: 1px dashed rgba(26,86,160,.35);
    transition: color .2s;
}
.delivery-cta a:hover { color: var(--blue-dark); }

/* ===== FAQ ===== */
.section-faq {
    padding: 48px 0;
    background: var(--white);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}
.faq-item {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}
.faq-item.open { border-color: var(--blue); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    gap: 16px;
    user-select: none;
    background: #fff;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #eef4ff;
    color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    transition: transform .25s, background .2s;
}
.faq-item.open .faq-icon {
    transform: rotate(45deg);
    background: var(--blue);
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease, padding .32s ease;
    font-size: 15.5px;
    color: var(--text-light);
    line-height: 1.75;
    padding: 0 20px;
    background: #fff;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 20px 18px;
}
.faq-answer a { color: var(--blue); border-bottom: 1px dashed rgba(26,86,160,.35); }
.faq-answer a:hover { color: var(--blue-dark); }

/* ===== FOOTER ===== */
footer {
    background: #1a2940;
    color: #bcc7d8;
}
.footer__top {
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__top-inner {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 40px;
}
.footer__logo svg, .footer__logo img { height: 52px; width: 52px; margin-bottom: 14px; }
.footer__logo .footer__logo-img {
    width: 180px;
    height: auto;
    object-fit: contain;
}
.footer__logo-tagline { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.5); }
.footer__address-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 15px;
}
.footer__address-item svg { flex-shrink: 0; margin-top: 2px; opacity: .6; }
.footer__address-item .email-link {
    color: rgba(255,255,255,.9);
}
.footer__address-item .email-link:hover { color: #fff; }
.footer__phone {
    display: block;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color .2s;
}
.footer__phone:hover { color: var(--accent); }
.footer__callback-link {
    color: var(--accent);
    font-size: 14px;
    display: inline-block;
    margin-top: 4px;
    border-bottom: 1px dashed rgba(242,169,0,.4);
    transition: color .2s;
}
.footer__callback-link:hover { color: var(--accent-hover); }

.footer__col-title {
    font-family: 'Exo 2', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 14px;
}
.footer__nav li { margin-bottom: 6px; }
.footer__nav a {
    font-size: 15px;
    color: rgba(255,255,255,.6);
    transition: color .2s;
}
.footer__nav a:hover { color: #fff; }

.footer__bottom {
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,.4);
}
.footer__bottom-links { display: flex; gap: 16px; }
.footer__bottom-links a { color: rgba(255,255,255,.4); transition: color .2s; }
.footer__bottom-links a:hover { color: rgba(255,255,255,.8); }

/* ===== MOBILE SEARCH (hidden on desktop) ===== */
.mobile-search { display: none; }

/* ===== RESPONSIVE ===== */
/* ── Базовый фикс горизонтального скролла ── */
html, body { overflow-x: hidden; max-width: 100%; }

@media (max-width: 1200px) {
    .category-card { width: calc((100% - 40px) / 5); }
    .products-grid { grid-template-columns: repeat(4, 1fr); }
    .bestsellers-track { grid-auto-columns: calc((100% - 28px) / 3); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__top-inner { grid-template-columns: 180px 1fr 1fr; }
    .footer__col:last-child { display: none; }
    .mm-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .topbar__links { display: none; }
    .category-card { width: calc((100% - 30px) / 4); }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .bestsellers-track { grid-auto-columns: calc((100% - 14px) / 2); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-banner { grid-template-columns: 1fr; padding: 28px; }
    .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .footer__top-inner { grid-template-columns: 1fr 1fr; }
    .seo-block { grid-template-columns: 1fr; }
    .hero__slider { height: 260px; }
    .delivery-inner { gap: 14px; }
    .delivery-hero { grid-template-columns: 1fr; }
    .delivery-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
    .delivery-features { grid-template-columns: 1fr; }
    .mm-top__inner { padding: 10px 14px; }
    .mm-grid { grid-template-columns: repeat(2, 1fr); }
    .mm-card__toggle { display: inline-flex; }
    .mm-card__list {
        max-height: 0;
        overflow: hidden;
        transition: max-height .22s ease;
    }
    .mm-card.mm-open .mm-card__list { max-height: 360px; }
    .mm-card__all { display: none; }
    .mm-card.mm-open .mm-card__all { display: inline-flex; }
    .hero__slide-title { font-size: 24px; }
    .hero__slide-text { font-size: 15px; }
}

@media (max-width: 768px) {
    .header__inner {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .header__logo-wrap {
        justify-content: flex-start;
        min-width: 0;
    }

    .header__mobile-phone {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        min-width: 0;
        margin-left: auto;
        color: var(--blue-dark);
        font-family: 'Exo 2', sans-serif;
        font-size: 14px;
        font-weight: 800;
        line-height: 1.1;
        text-align: right;
        text-decoration: none;
        white-space: nowrap;
    }

    .header__mobile-phone span {
        margin-bottom: 2px;
        color: var(--text-light);
        font-family: 'Roboto', sans-serif;
        font-size: 11px;
        font-weight: 500;
    }
}

@media (max-width: 600px) {
    /* ── Скрываем топбар полностью ── */
    .topbar { display: none; }

    /* ── Шапка: компактная 1 строка ── */
    .header__inner {
        justify-content: space-between;
        padding: 10px 0;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .header__logo-wrap {
        justify-content: flex-start;
        min-width: 0;
    }
    .header__logo-text { display: none; }
    .header__logo svg, .header__logo img { height: 36px; width: 36px; }
    .header__logo .header__logo-img { width: 120px; height: auto; }
    /* Поиск — полная строка под шапкой */
    .header__search {
        display: none; /* скрываем в шапке */
    }
    /* Кнопка каталог */
    .catalog-btn {
        padding: 8px 14px;
        font-size: 15px;
        flex: 1; /* растягивается */
    }
    /* Действия: войти + корзина */
    .header__actions { gap: 8px; margin-left: auto; flex-shrink: 0; }
    .header__action { font-size: 12px; gap: 2px; }
    .header__action svg { width: 20px; height: 20px; }

    /* ── Поиск отдельной строкой под шапкой ── */
    .mobile-search {
        display: block;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 8px 16px 10px;
    }
    .mobile-search form {
        display: flex;
        align-items: center;
        background: #f0f2f5;
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }
    .mobile-search input {
        flex: 1; border: none; background: transparent;
        padding: 9px 14px; font-size: 16px; color: var(--text); outline: none;
    }
    .mobile-search input::placeholder { color: #aaa; }
    .mobile-search button {
        padding: 0 14px; height: 40px; border: none;
        background: transparent; cursor: pointer; color: var(--text-light);
        display: flex; align-items: center;
    }
    .mobile-search button:hover { color: var(--blue); }

    /* ── Логотип скрывается при прокрутке ── */
    .header--scrolled .header__logo { display: none; }
    .header--scrolled .header__logo-text { display: none; }

    /* ── Прочие секции ── */
    .worktime-bar {
        padding: 5px 0;
        font-size: 12px;
    }
    .worktime-bar__inner {
        justify-content: center;
        gap: 8px;
    }
    .worktime-bar__left {
        display: none;
    }
    .worktime-bar__right { display: none; }
    .categories-grid {
        display: grid;
        grid-auto-flow: column;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        grid-auto-columns: minmax(102px, 1fr);
        justify-content: start;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 4px;
    }
    .category-card {
        width: 100%;
        min-width: 0;
        padding: 14px 6px 12px;
    }
    .category-card__img { width: 52px; height: 52px; }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .bestsellers-track { grid-auto-columns: 100%; gap: 10px; }
    .section-header-actions { gap: 8px; }
    .carousel-nav__btn { width: 28px; height: 28px; }
    .product-card {
        min-width: 0;
        padding: 12px;
    }
    .product-card__img-wrap { height: 132px; }
    .product-card__price-row {
        gap: 7px;
    }
    .product-card__price {
        font-size: 20px;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }
    .product-card__quick-actions {
        grid-template-columns: 1fr;
    }
    .product-card__one-click {
        padding: 7px 6px;
        font-size: 11px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .product-card__quick-actions .btn-opt {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .product-card__actions {
        flex-direction: column;
        gap: 6px;
    }
    .btn-cart, .btn-opt {
        width: 100%;
        padding: 8px 10px;
        font-size: 13px;
    }
    .btn-opt { white-space: normal; }
    .news-grid { grid-template-columns: 1fr; }
    .advantages-grid { grid-template-columns: 1fr; }
    .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
    .stat-item {
        padding: 12px 14px;
        border-right: none;
    }
    .footer__top-inner { grid-template-columns: 1fr; gap: 24px; }
    .hero__slider { height: 200px; }
    .section-title { font-size: 20px; }
    .delivery-inner { gap: 12px; }
    .delivery-hero { padding: 16px; gap: 12px; }
    .delivery-hero__title { font-size: 22px; }
    .delivery-actions { grid-template-columns: 1fr; }
    .delivery-feature__title { font-size: 14px; }
    .delivery-feature__sub { font-size: 13px; }
    .region-item { font-size: 13px; padding: 7px 10px; }
    .mm-grid { grid-template-columns: 1fr; padding: 14px 10px 18px; gap: 8px; }
    .mm-search input { font-size: 15px; }
    .hero__slide-title { font-size: 20px; }
    .hero__slide-text { display: none; }
    .hero__slide-actions { gap: 8px; }
    .hero__slide-btn { padding: 9px 16px; font-size: 14px; }
    .hero__arrow { display: none; }
}

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

/* Блокировка скролла страницы когда мега-меню открыто */
body.mm-scroll-lock { overflow: hidden; }

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d3d7a 0%, #1a56a0 50%, #2a75c7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader__content {
    text-align: center;
}
.preloader__spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}
.preloader__spinner::before,
.preloader__spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
}
.preloader__spinner::before {
    inset: 0;
}
.preloader__spinner::after {
    inset: 8px;
    border-top-color: var(--accent);
    animation-duration: 0.7s;
    animation-direction: reverse;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.preloader__logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    opacity: 0.9;
}
.preloader__text {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    opacity: 0.85;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(26, 86, 160, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 24px rgba(26, 86, 160, 0.4);
    transform: translateY(-3px);
}
.scroll-top:active {
    transform: translateY(-1px);
}
@media (max-width: 600px) {
    .scroll-top {
        display: none !important;
    }
}

/* ===== ANALYSIS COMMENT INDICATORS ===== */
/* Floating annotation panel */
.design-notes {
    display: none; /* Used for dev mode only */
}

/* ── БЕЙДЖИ ТОВАРОВ ── */
.badge { font-size:12px; font-weight:700; padding:3px 8px; border-radius:4px; line-height:1.4; display:inline-flex; align-items:center; gap:3px; white-space:nowrap; }
.b-stock { background:#e8f5e9; color:#2e7d32; }
.b-stock::before { content:''; width:6px; height:6px; border-radius:50%; background:#4caf50; display:inline-block; flex-shrink:0; }
.b-order { background:#fff3e0; color:#e65100; }
.b-new  { background:var(--blue); color:#fff; }
.b-hit  { background:linear-gradient(135deg,#ff9800,#f57c00); color:#fff; }
.b-sale { background:#fde8e8; color:#c62828; }

/* ===== FORM CHECKBOX ===== */
.custom-checkbox {
    position: absolute;
    z-index: 1;
    opacity: 0;
    width: 17px;
    height: 17px;
    cursor: pointer;
    margin-top: 2px;
}

.custom-checkbox + label {
    display: inline-flex;
    align-items: center;
    user-select: none;
}

.custom-checkbox + label::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 2px;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    background-color: #fff;
}

.custom-checkbox:checked + label::before {
    border-color: var(--blue);
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%231a56a0' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

/* ===== REGISTRATION PAGE ===== */
.section-registration {
    padding-top: 120px;
    padding-bottom: 80px;
    background: #f5f7fb;
}

.section-registration__intro {
    max-width: 760px;
    margin: 0 auto 28px;
}

.section-registration__title {
    font-family: "Exo 2", sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
}

.section-registration__subtitle {
    color: #6b7280;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
}

.section-registration__wrapper-fields {
    /*max-width: 980px;*/
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(11, 14, 35, 0.08);
}

.section-registration .wrapper-faces-fields {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}

.section-registration .wrapper__face {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
}

.section-registration .wrapper__face input {
    margin: 0;
    cursor: pointer;
}

.section-registration .wrapper__face label {
    width: auto;
    margin-bottom: 0;
    color: #334155;
    font-weight: 500;
    cursor: pointer;
}

.section-registration .wrapper-fiz-fields,
.section-registration .wrapper-ur-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.section-registration ._wrapper-ur-fields__for-hidden {
    display: none;
}

.section-registration .wrapper-ur-fields {
    margin: 0 0 20px;
}

.section-registration .wrapper-confirm {
    grid-column: auto;
}

.section-registration .wrapper__input-field {
    position: relative;
}

.section-registration .wrapper__input-field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.section-registration .wrapper__input-field label span {
    color: #d63b3b;
}

.section-registration .wrapper__input-field input {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 2px solid #d0d7e2;
    border-radius: 8px;
    outline: none;
    font-size: 17px;
    line-height: 1.2;
    color: #333;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.section-registration .wrapper__input-field input::placeholder {
    color: #9aa3af;
}

.section-registration .wrapper__input-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 160, 0.12);
}

.section-registration .wrapper__input-tooltip {
    z-index: 5;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    display: none;
    width: 100%;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #dfe5ef;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(11, 14, 35, 0.12);
}

.section-registration .wrapper__input-tooltip.active {
    display: block;
}

.section-registration .wrapper__input-tooltip ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.section-registration .wrapper__input-tooltip li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f8fafc;
    cursor: pointer;
    transition: background .2s ease;
}

.section-registration .wrapper__input-tooltip li:hover {
    background: #eef4fb;
}

.section-registration .wrapper__input-tooltip li p {
    margin: 0;
}

.section-registration .wrapper__input-tooltip .api-tooltip-name {
    font-weight: 600;
}

.section-registration .wrapper-policy {
    display: block;
    margin-top: 8px;
}

.section-registration .wrapper-input__submit-entry.wrapper-policy {
    display: flex;
    grid-template-columns: none;
    align-items: flex-start;
    gap: 12px;
    margin-top: 8px;
    grid-column: 1 / -1;
}

.section-registration .wrapper-input__submit-entry.wrapper-policy .custom-checkbox {
    position: relative;
    flex-shrink: 0;
    margin-top: 3px;
}

.section-registration .wrapper-policy label {
    width: auto;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 0;
}

.section-registration .wrapper-policy a {
    color: var(--blue);
}

.section-registration__message {
    margin: 24px 0 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff3f0;
    border: 1px solid #ffd7cc;
    color: #a63f2f;
    font-size: 16px;
    line-height: 1.4;
}

/*.section-registration__actions {*/
/*    display: flex;*/
/*    justify-content: flex-end;*/
/*}*/

.section-registration .register_user {
    min-width: 280px;
    height: 52px;
    margin-top: 24px;
    padding: 0 32px;
    border: none;
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background .2s ease;
}

.section-registration .register_user:hover {
    background: var(--blue-dark);
    color: #fff;
}

@media (max-width: 768px) {
    .section-registration .wrapper-fiz-fields,
    .section-registration .wrapper-ur-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section-registration {
        padding-top: 96px;
        padding-bottom: 48px;
    }

    .section-registration__title {
        font-size: 34px;
    }

    .section-registration__wrapper-fields {
        padding: 24px 18px 28px;
        border-radius: 10px;
    }

    .section-registration .wrapper-faces-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .section-registration .wrapper__face {
        width: 100%;
    }

    .section-registration .wrapper__input-field {
        width: 100%;
    }

    .section-registration__actions {
        justify-content: stretch;
    }

    .section-registration .register_user {
        width: 100%;
        min-width: 0;
    }
}
