/* =============================================
   СЕКП — Главный стиль сайта
   Тёмно-синий + Оранжевый акцент
   Шрифты: Oswald (заголовки) + Noto Sans (текст)
   ============================================= */

:root {
    --navy:        #293133;
    --navy-mid:    #333b3d;
    --navy-light:  #3e4749;
    --orange:      #e8610a;
    --orange-dark: #c4520a;
    --orange-lite: #ff7a2b;
    --white:       #ffffff;
    --gray-50:     #f8f9fa;
    --gray-100:    #f1f3f5;
    --gray-200:    #e9ecef;
    --gray-400:    #adb5bd;
    --gray-600:    #6c757d;
    --gray-800:    #343a40;
    --text:        #1a1a2e;
    --radius:      6px;
    --radius-lg:   12px;
    --shadow:      0 2px 12px rgba(41,49,51,.12);
    --shadow-lg:   0 8px 32px rgba(41,49,51,.18);
    --transition:  .22s ease;
    /* Шрифты: переопределяются из админки (Оформление → Шрифты сайта) */
    --font-heading: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --font-body:    'Noto Sans', 'Segoe UI', Arial, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    font-size: 15px;
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--navy);
    color: var(--gray-400);
    font-size: 14.5px;
    font-weight: 500;
    padding: 9px 0;
}
.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.topbar__contacts {
    display: flex;
    gap: 24px;
}
.topbar__right {
    display: flex;
    gap: 20px;
    align-items: center;
}
.topbar__right a { color: var(--gray-400); font-weight: 600; transition: color var(--transition); }
.topbar__right a:hover { color: var(--orange); }
.topbar__phone { font-weight: 700; color: var(--orange) !important; font-size: 16px; }

/* =============================================
   HEADER
   ============================================= */
.header {
    background: var(--white);
    border-bottom: 3px solid var(--orange);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 72px;
}

/* Логотип */
.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    clip-path: polygon(0 0, 90% 0, 100% 100%, 10% 100%);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-abbr {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 1px;
}
.logo-sub {
    font-size: 10px;
    color: var(--gray-600);
    letter-spacing: .3px;
    text-transform: uppercase;
}

/* Навигация */
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav-link {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    color: var(--navy);
    padding: 8px 14px;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition);
    letter-spacing: .3px;
}
.nav-link:hover, .nav-link.active {
    color: var(--orange);
    background: rgba(232,97,10,.07);
}
.nav-link .arrow { font-size: 10px; opacity: .6; }

/* Дропдаун */
.nav-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--transition), transform var(--transition);
    z-index: 200;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 14.5px;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.dropdown-menu a:hover {
    background: var(--gray-50);
    color: var(--orange);
}

/* Кнопки-иконки */
.header__actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: var(--navy);
    transition: background var(--transition), color var(--transition);
    position: relative;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:hover { background: var(--gray-100); color: var(--orange); }
.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--orange);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: var(--navy);
    flex-shrink: 0;
}
.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   МОБИЛЬНОЕ МЕНЮ
   ============================================= */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13,27,46,.6);
    z-index: 300;
}
.mobile-menu.open { display: block; }
.mobile-menu__inner {
    position: absolute;
    top: 0; right: 0;
    width: min(340px, 85vw);
    height: 100%;
    background: var(--navy);
    padding: 80px 28px 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}
.mobile-menu__inner a {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    transition: color var(--transition);
}
.mobile-menu__inner a:hover { color: var(--orange); }
.mobile-menu__sub { font-size: 15px !important; opacity: .75; padding-left: 16px !important; }
.mobile-menu__contacts {
    margin-top: auto;
    padding-top: 24px;
}
.mobile-menu__contacts a {
    font-size: 20px !important;
    color: var(--orange) !important;
    border-bottom: none !important;
}

/* =============================================
   HERO / БАННЕР
   ============================================= */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
    min-height: 480px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: none;
}
.hero__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: 60px 0;
}
.hero__badge {
    display: inline-block;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 18px;
}
.hero__title span { color: var(--orange); }
.hero__desc {
    color: rgba(255,255,255,.75);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   КНОПКИ
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .5px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--orange);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,97,10,.35);
}
.btn-outline {
    border-color: rgba(255,255,255,.4);
    color: var(--white);
}
.btn-outline:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.btn-dark {
    background: var(--navy);
    color: var(--white);
}
.btn-dark:hover { background: var(--navy-light); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* =============================================
   СЕКЦИИ
   ============================================= */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-dark {
    background: var(--navy);
    color: var(--white);
}
.section-gray { background: var(--gray-50); }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 36px;
    gap: 16px;
    flex-wrap: wrap;
}
.section__title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--navy);
    line-height: 1.15;
    position: relative;
}
.section__title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--orange);
    margin-top: 10px;
    border-radius: 2px;
}
.section-dark .section__title { color: var(--white); }
.section__link {
    color: var(--orange);
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .4px;
    white-space: nowrap;
}
.section__link:hover { text-decoration: underline; }

/* =============================================
   КАРТОЧКИ КАТЕГОРИЙ
   ============================================= */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}
.cat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 16px 22px;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
}
.cat-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.cat-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--orange), var(--orange-lite));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 16px;
    overflow: hidden;
}
.cat-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-card__name {
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

/* =============================================
   КАРТОЧКИ ТОВАРОВ
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--orange);
}
.product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}
.badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.badge-new { background: #16a34a; color: var(--white); }
.badge-sale { background: var(--orange); color: var(--white); }
.badge-order { background: var(--gray-400); color: var(--white); }

.product-card__img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: contain;
    background: var(--gray-50);
    padding: 16px;
}
.product-card__img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 48px;
}
.product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__article {
    font-size: 11.5px;
    color: var(--gray-600);
    margin-bottom: 6px;
    font-family: var(--font-body);
    letter-spacing: .3px;
}
.product-card__name {
    font-family: var(--font-body);
    font-size: 15.5px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
    margin-bottom: 12px;
    flex: 1;
}
.product-card__name a { color: inherit; }
.product-card__name a:hover { color: var(--orange); }

.product-card__prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.product-card__price {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--orange);
}
.product-card__price-old {
    font-size: 14px;
    color: var(--gray-400);
    text-decoration: line-through;
}
.product-card__price-req {
    font-size: 14px;
    color: var(--gray-600);
    font-style: italic;
}

.product-card__stock {
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 600;
}
.stock-in { color: #16a34a; }
.stock-order { color: #d97706; }
.stock-out { color: #dc2626; }

.product-card__actions {
    display: flex;
    gap: 8px;
}
.btn-cart {
    flex: 1;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-cart:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}
.btn-cart svg { width: 16px; height: 16px; }
.btn-view {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: all var(--transition);
    flex-shrink: 0;
}
.btn-view:hover {
    border-color: var(--orange);
    color: var(--orange);
}
.btn-view svg { width: 16px; height: 16px; }

/* =============================================
   ИЗБРАННОЕ / СРАВНЕНИЕ
   ============================================= */
.btn-wishlist {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition);
}
.btn-wishlist svg { width: 17px; height: 17px; }
.btn-wishlist:hover { color: #f59e0b; border-color: #f59e0b; }
.btn-wishlist.active { color: #fff; background: #f59e0b; border-color: #f59e0b; }
.btn-wishlist.active svg { fill: #fff; }
.btn-wishlist--lg {
    position: static;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}
.btn-view.btn-compare.active,
.btn-wishlist--lg.btn-compare.active {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.compare-table td {
    border: 1px solid var(--gray-200);
    padding: 12px 16px;
    vertical-align: top;
    font-size: 14px;
}
.compare-table__label {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    min-width: 160px;
}
.compare-table__col { width: 220px; text-align: center; position: relative; }
.compare-table__img { display: block; margin-bottom: 10px; }
.compare-table__img img { width: 100%; max-height: 130px; object-fit: contain; }
.compare-table__name { font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.compare-table__name a { color: var(--navy); }
.compare-table__price { font-family: var(--font-heading); font-weight: 700; color: var(--orange); font-size: 18px; margin-bottom: 4px; }
.compare-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gray-100);
    border: 0;
    color: var(--gray-600);
    cursor: pointer;
    font-size: 13px;
}
.compare-remove:hover { background: #fee2e2; color: #dc2626; }

@media (max-width: 768px) {
    .btn-wishlist { width: 30px; height: 30px; top: 8px; right: 8px; }
    .btn-wishlist svg { width: 15px; height: 15px; }
}


/* =============================================
   ПОЛОСЫ ПРЕИМУЩЕСТВ
   ============================================= */
.advantages {
    background: var(--navy);
    padding: 36px 0;
}
.advantages__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.advantage-item__icon {
    font-size: 36px;
    margin-bottom: 12px;
}
.advantage-item__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}
.advantage-item__text {
    font-size: 13px;
    color: rgba(255,255,255,.6);
    line-height: 1.5;
}

/* =============================================
   НОВОСТИ / КАРТОЧКИ СТАТЕЙ
   ============================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.news-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.news-card__img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--gray-100);
}
.news-card__img-ph {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--navy-light), var(--navy));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}
.news-card__body { padding: 20px; }
.news-card__type {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--orange);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}
.news-card__title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 10px;
}
.news-card__title a:hover { color: var(--orange); }
.news-card__excerpt {
    font-size: 13.5px;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.news-card__date { font-size: 12px; color: var(--gray-400); }

/* =============================================
   ТАБЫ (Акции / Новинки / Новости)
   ============================================= */
.tabs { display: flex; gap: 4px; margin-bottom: 32px; border-bottom: 2px solid var(--gray-200); }
.tab-btn {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 500;
    padding: 10px 20px;
    color: var(--gray-600);
    border-radius: var(--radius) var(--radius) 0 0;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active {
    color: var(--orange);
    border-bottom-color: var(--orange);
    background: rgba(232,97,10,.05);
}

/* =============================================
   КАТАЛОГ: РАСКЛАДКА (сайдбар + товары)
   ============================================= */
.catalog-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
    padding-bottom: 60px;
}

/* Общая адаптивная 2-колоночная раскладка (контакты, партнёры и т.п.) */
.two-col-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .two-col-layout { grid-template-columns: 1fr; gap: 28px; }
}
.catalog-sidebar__box {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.catalog-sidebar__toggle {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--navy);
    padding: 15px 18px;
    border: 0;
    cursor: default;
    font-family: inherit;
}
.catalog-sidebar__toggle-label {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}
.catalog-sidebar__toggle-label svg { flex-shrink: 0; }
.catalog-sidebar__chevron { display: none; color: #fff; flex-shrink: 0; }
.catalog-sidebar__nav { padding: 6px 0; }
.catalog-sidebar__link {
    display: block;
    padding: 10px 18px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text);
    border-bottom: 1px solid var(--gray-100);
    transition: background var(--transition), color var(--transition);
}
.catalog-sidebar__link:last-child { border-bottom: 0; }
.catalog-sidebar__link:hover { background: var(--gray-50); color: var(--orange); }
.catalog-sidebar__link.is-active {
    color: var(--orange);
    font-weight: 600;
    background: rgba(232,97,10,.06);
    box-shadow: inset 3px 0 0 var(--orange);
}

@media (max-width: 900px) {
    .catalog-layout { grid-template-columns: 1fr; gap: 16px; }
    .catalog-sidebar__toggle { cursor: pointer; border-radius: 0; }
    .catalog-sidebar__chevron {
        display: block !important;
        width: 18px !important;
        height: 18px !important;
        min-width: 18px;
        transition: transform var(--transition);
    }
    .catalog-sidebar.is-open .catalog-sidebar__chevron { transform: rotate(180deg); }
    .catalog-sidebar__nav {
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height var(--transition);
    }
    .catalog-sidebar.is-open .catalog-sidebar__nav {
        max-height: 600px;
        overflow-y: auto;
        padding: 6px 0;
    }
}

/* =============================================
   ФИЛЬТРЫ И ПОИСК
   ============================================= */
.notfound-search {
    max-width: 440px;
    margin: 0 auto 32px;
    display: flex;
    gap: 10px;
}
@media (max-width: 480px) {
    .notfound-search { flex-direction: column; }
}

.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}
.filters__group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.filters__label {
    font-size: 13px;
    font-family: var(--font-heading);
    color: var(--gray-600);
    white-space: nowrap;
}
.filter-input, .filter-select {
    padding: 8px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition);
}
.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--orange);
}

/* =============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================= */
.breadcrumbs {
    padding: 14px 0;
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--gray-600); }
.breadcrumbs a:hover { color: var(--orange); }
.breadcrumbs span { color: var(--gray-400); }

/* =============================================
   СТРАНИЦА ТОВАРА
   ============================================= */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery__main {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--gray-400);
}
.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.product-gallery__thumb {
    width: 70px;
    height: 70px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
}
.product-gallery__thumb:hover,
.product-gallery__thumb.active { border-color: var(--orange); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

.product-info__title {
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 10px;
}
.product-info__article {
    font-size: 13px;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-family: var(--font-body);
}
.product-info__price-block {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.product-info__price {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 700;
    color: var(--orange);
}
.product-info__price-old {
    font-size: 18px;
    color: var(--gray-400);
    text-decoration: line-through;
}
.product-info__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.qty-block {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 44px;
    background: var(--gray-50);
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: background var(--transition);
    font-family: var(--font-heading);
}
.qty-btn:hover { background: var(--gray-200); }
.qty-input {
    width: 54px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}
.qty-input:focus { outline: none; }

.product-tabs { margin-top: 40px; }
.product-tabs .tabs { margin-bottom: 24px; }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.characteristics-table { width: 100%; border-collapse: collapse; }
.characteristics-table tr:nth-child(even) td { background: var(--gray-50); }
.characteristics-table td {
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--gray-200);
}
.characteristics-table td:first-child {
    color: var(--gray-600);
    width: 40%;
    font-weight: 500;
}

/* =============================================
   КОРЗИНА
   ============================================= */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}
.cart-item__img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 8px;
}
.cart-item__img-ph {
    width: 90px;
    height: 90px;
    background: var(--gray-100);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--gray-400);
}
.cart-item__name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.cart-item__article { font-size: 12px; color: var(--gray-600); margin-bottom: 10px; }
.cart-item__price-unit { font-size: 13px; color: var(--gray-600); }
.cart-item__right { text-align: right; }
.cart-item__total {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 10px;
}
.btn-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 18px;
    transition: color var(--transition);
    padding: 4px;
}
.btn-remove:hover { color: #dc2626; }

.cart-summary {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: sticky;
    top: 100px;
}
.cart-summary__title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--gray-600);
}
.summary-row.total {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    border-top: 2px solid var(--gray-200);
    margin-top: 16px;
    padding-top: 16px;
}
.summary-row.total span:last-child { color: var(--orange); }

/* =============================================
   ФОРМА ЗАЯВКИ
   ============================================= */
.order-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.form-card__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}
.form-group { margin-bottom: 18px; }
.form-label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    font-family: var(--font-heading);
}
.form-label span { color: #dc2626; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14.5px;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(232,97,10,.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Переключатель доставка/самовывоз */
.delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.delivery-option input { display: none; }
.delivery-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}
.delivery-option label:hover { border-color: var(--orange); }
.delivery-option input:checked + label {
    border-color: var(--orange);
    background: rgba(232,97,10,.06);
}
.delivery-option__icon { font-size: 28px; }
.delivery-option__name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
}

/* =============================================
   СТРАНИЦА УСПЕХ ЗАЯВКИ
   ============================================= */
.success-page {
    text-align: center;
    padding: 80px 20px;
    max-width: 560px;
    margin: 0 auto;
}
.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 28px;
}
.success-order-number {
    display: inline-block;
    background: var(--gray-50);
    border: 2px dashed var(--orange);
    border-radius: var(--radius-lg);
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 2px;
    margin: 20px 0;
}

/* =============================================
   ПАГИНАЦИЯ
   ============================================= */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--navy);
    cursor: pointer;
    transition: all var(--transition);
    padding: 0 10px;
}
.page-btn:hover { border-color: var(--orange); color: var(--orange); }
.page-btn.active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}
.page-btn:disabled { opacity: .4; cursor: default; }

/* =============================================
   ПУСТЫЕ СОСТОЯНИЯ
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-600);
}
.empty-state__icon { font-size: 64px; margin-bottom: 20px; opacity: .5; }
.empty-state__title {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 10px;
}
.empty-state__text { font-size: 15px; margin-bottom: 24px; }

/* =============================================
   КОНТАКТЫ
   ============================================= */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
}
.contact-item__icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--orange), var(--orange-lite));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.contact-item__label {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: .6px;
    font-family: var(--font-heading);
    margin-bottom: 4px;
}
.contact-item__value {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,.7);
    padding-top: 56px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr 1.3fr;
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    margin-top: 20px;
    letter-spacing: .5px;
}
.footer__col h4:first-child { margin-top: 0; }
.footer__col a, .footer__col p {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.65);
    transition: color var(--transition);
}
.footer__col a:hover { color: var(--orange); }
.footer__brand .footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.footer__brand .logo-abbr { color: var(--white); }
.footer__brand .logo-sub { color: rgba(255,255,255,.5); }
.footer__brand p {
    font-size: 13.5px;
    color: rgba(255,255,255,.55);
    line-height: 1.6;
}
.footer__bottom {
    padding: 18px 0;
}
.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: 10px;
}
.footer__bottom a {
    color: rgba(255,255,255,.3);
    transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--orange); }

/* =============================================
   УВЕДОМЛЕНИЕ (Toast)
   ============================================= */
#toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--navy);
    color: var(--white);
    padding: 14px 22px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--orange);
    box-shadow: var(--shadow-lg);
    font-size: 14.5px;
    z-index: 999;
    transform: translateX(120%);
    transition: transform .3s ease;
    max-width: 340px;
}
#toast.show { transform: translateX(0); }

/* =============================================
   АДАПТИВНОСТЬ
   ============================================= */
@media (max-width: 1024px) {
    .footer__inner { grid-template-columns: 1fr 1fr; }
    .cart-layout { grid-template-columns: 1fr; }
    .order-layout { grid-template-columns: 1fr; }
    .product-page { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .header__nav { display: none; }
    .burger { display: flex; }
    .hide-on-mobile { display: none !important; }
    .topbar__contacts { display: none; }
    .topbar { display: none; }

    .container { padding: 0 12px; }
    .header__inner { height: 58px; gap: 8px; }
    .header__logo { gap: 8px; min-width: 0; }
    .logo-icon { width: 36px; height: 36px; font-size: 19px; border-radius: 5px; flex-shrink: 0; }
    .logo-text { line-height: 1.05; overflow: hidden; }
    .logo-abbr { font-size: 16px; letter-spacing: .5px; white-space: nowrap; }
    .logo-sub { font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
    .header__actions { gap: 0; margin-left: auto; margin-right: -6px; }
    .icon-btn { width: 40px; height: 40px; }
    .icon-btn svg { width: 20px; height: 20px; }
    .cart-badge { width: 16px; height: 16px; font-size: 9px; top: 4px; right: 4px; }

    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }

    /* Фильтры каталога — не сжимаются, не вылезают за край */
    .filters { padding: 12px; gap: 10px; margin-bottom: 18px; }
    .filters form { flex-direction: column; align-items: stretch !important; }
    .filter-input { min-width: 0 !important; width: 100%; }
    .filters__group { width: 100%; }
    .filter-select { width: 100%; flex: 1; }
    .filters .btn { width: 100%; justify-content: center; }

    /* Хлебные крошки — не переносятся криво */
    .breadcrumbs { font-size: 12px; flex-wrap: wrap; padding: 12px 0; }

    /* Карточки товара в сетке */
    .product-card { border-radius: 10px; }
    .product-card__title { font-size: 13.5px; }
    .product-card__price { font-size: 16px; }
    .product-card__actions { flex-direction: column; gap: 8px; }
    .product-card__actions .btn-view { width: 100%; }

    /* Страница товара */
    .product-page { grid-template-columns: 1fr !important; gap: 24px; }
    .product-gallery { max-width: 100%; }
    .product-tabs .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab-btn { white-space: nowrap; }

    /* Таблицы (характеристики, корзина) — горизонтальный скролл вместо сжатия */
    .characteristics-table { display: block; overflow-x: auto; white-space: nowrap; }

    /* Кнопки на всю ширину там, где уместно */
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; text-align: center; }

    /* Подвал — компактнее */
    .footer { padding: 32px 0 16px; }
    .footer__col { text-align: left; }
}
@media (max-width: 360px) {
    .logo-sub { display: none; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 28px; }
    .cart-item { grid-template-columns: 70px 1fr; }
    .cart-item__right { grid-column: 2; }
}

/* =============================================
   СОСТОЯНИЯ КНОПКИ КОРЗИНЫ
   ============================================= */
.btn-cart.in-cart {
    background: #16a34a;
}
.btn-cart.in-cart:hover {
    background: #15803d;
    transform: translateY(-1px);
}
.btn-cart.adding {
    opacity: .7;
    pointer-events: none;
}

/* =============================================
   ПЛАВАЮЩИЕ КНОПКИ МЕССЕНДЖЕРОВ
   ============================================= */
.floating-messengers {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.floating-messengers__btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    transition: transform var(--transition), box-shadow var(--transition);
}
.floating-messengers__btn svg { width: 28px; height: 28px; }
.floating-messengers__btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.floating-messengers__btn--whatsapp { background: #25d366; }
.floating-messengers__btn--telegram { background: #229ed9; }
.floating-messengers__btn--max      { background: linear-gradient(135deg,#ff2d55,#ff6b3d); }
.floating-messengers__btn--callback { background: var(--navy); }

/* =============================================
   МОДАЛЬНОЕ ОКНО "ПЕРЕЗВОНИТЕ МНЕ"
   ============================================= */
.callback-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.callback-modal.open { display: flex; }
.callback-modal__box {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    max-width: 380px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.callback-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: var(--gray-100);
    color: var(--gray-600);
    cursor: pointer;
    font-size: 14px;
}
.callback-modal__close:hover { background: var(--gray-200); }

.quickview-modal__box { max-width: 720px; padding: 24px; }
.quickview { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.quickview__img {
    background: var(--gray-50);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quickview__img img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
    .quickview { grid-template-columns: 1fr; }
    .quickview-modal__box { max-width: 100%; max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 768px) {
    .floating-messengers { right: 12px; bottom: 12px; gap: 10px; }
    .floating-messengers__btn { width: 48px; height: 48px; }
    .floating-messengers__btn svg { width: 24px; height: 24px; }
}
