/* ==========================================================
   Теплосила — Premium Design System v2
   Полноэкранная раскладка, крупные элементы, яркие CTA
   ========================================================== */

:root {
    --red: #E53935;
    --red-hover: #C62828;
    --red-light: #FFEBEE;
    --blue: #1565C0;
    --blue-hover: #0D47A1;
    --blue-light: #E3F2FD;
    --white: #FFFFFF;
    --bg: #F4F6F9;
    --gray-50: #FAFBFC;
    --gray-100: #F0F2F5;
    --gray-200: #E4E7EC;
    --gray-300: #D0D5DD;
    --gray-400: #98A2B3;
    --gray-600: #667085;
    --gray-800: #344054;
    --gray-900: #1D2939;
    --green: #12B76A;
    --orange: #F79009;
    --footer-bg: #101828;
    --footer-text: #98A2B3;
    --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
    --shadow-md: 0 4px 16px rgba(16,24,40,0.08);
    --shadow-lg: 0 12px 40px rgba(16,24,40,0.12);
    --shadow-hover: 0 8px 32px rgba(21,101,192,0.18);
    --shadow-card-hover: 0 12px 36px rgba(16,24,40,0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    color: var(--gray-800);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--gray-900); font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

/* Scroll offset for sticky header */
[id] { scroll-margin-top: 100px; }

/* --- Container — full width with padding --- */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* --- Main content fills the page --- */
.main-content {
    flex: 1;
    padding: 28px 0 60px;
}

/* --- Full-width layout (no sidebar shrinking content) --- */
.page-layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.page-layout__sidebar { flex: 0 0 280px; position: sticky; top: 80px; }
.page-layout__content { flex: 1; min-width: 0; }

/* ==========================================================
   BUTTONS — Large and prominent
   ========================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(229,57,53,0.25);
}
.btn--primary:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(229,57,53,0.35);
}
.btn--secondary { background: var(--blue); color: #fff; }
.btn--secondary:hover { background: var(--blue-hover); color: #fff; }
.btn--outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 12px 26px; }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost { background: transparent; color: var(--gray-600); }
.btn--ghost:hover { color: var(--gray-900); background: var(--gray-100); }
.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 16px 36px; font-size: 1.1rem; }
.btn--full { width: 100%; }
.btn--callback {
    background: var(--red);
    color: #fff;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(229,57,53,0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}
.btn--callback:hover {
    background: var(--red-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(229,57,53,0.4);
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 14px rgba(229,57,53,0.3); }
    50% { box-shadow: 0 4px 24px rgba(229,57,53,0.5); }
}

/* ==========================================================
   HEADER — Large, clear, prominent callback
   ========================================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(16,24,40,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    background: var(--gray-900);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}
.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
}
.header-top__address {
    display: flex;
    align-items: center;
    gap: 6px;
}
.header-top__links { display: flex; gap: 20px; }
.header-top__links a { color: rgba(255,255,255,0.7); font-weight: 500; }
.header-top__links a:hover { color: #fff; }

.header-middle { padding: 16px 0; }
.header-middle .container {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header-logo img { height: 56px; width: auto; }
.header-slogan {
    font-size: 0.875rem;
    color: var(--gray-600);
    max-width: 220px;
    line-height: 1.4;
}

/* Search — large and prominent */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
}
.header-search__input {
    width: 100%;
    padding: 14px 52px 14px 22px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
    background: var(--gray-50);
    transition: all var(--transition);
}
.header-search__input:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(21,101,192,0.1);
}
.header-search__input::placeholder { color: var(--gray-400); }
.header-search__btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--blue);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.header-search__btn:hover { background: var(--blue-hover); }
.header-search__btn svg { width: 20px; height: 20px; }

/* Phone block — very visible */
.header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 6px;
}
.header-phone__number {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}
.header-phone__number a { color: inherit; }
.header-phone__number a:hover { color: var(--blue); }

/* Hamburger */
.header-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    gap: 5px;
    padding: 0;
    flex-shrink: 0;
}
.header-hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--gray-900);
    border-radius: 2px;
    transition: all 0.3s;
}
.header-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header-hamburger.active span:nth-child(2) { opacity: 0; }
.header-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Header Nav — blue bar */
.header-nav {
    background: var(--blue);
}
.header-nav .container {
    display: flex;
    align-items: center;
}
.main-nav { display: flex; }
.main-nav__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
}
.main-nav__item:hover {
    color: #fff;
    background: rgba(255,255,255,0.12);
}
.main-nav__item svg { width: 18px; height: 18px; }

/* ==========================================================
   MOBILE MENU
   ========================================================== */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16,24,40,0.6);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active { display: block; opacity: 1; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: var(--white);
    z-index: 201;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { left: 0; }

.mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
}
.mobile-menu__title { font-size: 1.125rem; font-weight: 700; }
.mobile-menu__close {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); border: none; border-radius: var(--radius-sm);
    font-size: 24px; color: var(--gray-600); cursor: pointer;
}
.mobile-menu__close:hover { background: var(--gray-200); }

.mobile-menu__phone {
    padding: 16px 24px;
    background: var(--red-light);
    border-bottom: 1px solid var(--gray-200);
}
.mobile-menu__phone-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
}
.mobile-menu__phone-number a { color: inherit; }
.mobile-menu__phone-btn {
    display: block;
    margin-top: 10px;
    text-align: center;
}

.mobile-menu__nav { padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.mobile-menu__nav-item {
    display: block;
    padding: 14px 24px;
    color: var(--gray-800);
    font-weight: 600;
    font-size: 1rem;
}
.mobile-menu__nav-item:hover { background: var(--gray-50); color: var(--blue); }

.mobile-menu__categories { padding: 8px 0; }
.mobile-menu__cat-title {
    padding: 10px 24px 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
}
.mobile-menu__cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 24px;
    color: var(--gray-800);
    font-size: 0.95rem;
}
.mobile-menu__cat-item:hover { background: var(--gray-50); color: var(--blue); }
.mobile-menu__cat-img { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }

/* ==========================================================
   SIDEBAR — Clean, roomy
   ========================================================== */
.sidebar-catalog {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar-catalog__head {
    padding: 16px 20px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.sidebar-catalog__head a { color: #fff; }
.sidebar-catalog__list { padding: 4px 0; }
.sidebar-catalog__item { position: relative; }
.sidebar-catalog__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
    color: var(--gray-800);
    font-size: 0.95rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-catalog__link:hover {
    background: var(--blue-light);
    color: var(--blue);
    border-left-color: var(--blue);
}
.sidebar-catalog__icon { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; }
.sidebar-catalog__text { flex: 1; }
.sidebar-catalog__arrow {
    font-size: 10px;
    color: var(--gray-400);
    transition: transform var(--transition);
}
.sidebar-catalog__item:hover .sidebar-catalog__arrow { color: var(--blue); transform: translateX(3px); }

.sidebar-catalog__sub {
    display: none;
    position: absolute;
    left: calc(100% + 4px);
    top: 0;
    min-width: 260px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 50;
}
.sidebar-catalog__item:hover .sidebar-catalog__sub { display: block; }
.sidebar-catalog__sub-title {
    padding: 10px 20px 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 4px;
}
.sidebar-catalog__sub-link {
    display: block;
    padding: 9px 20px;
    color: var(--gray-800);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.sidebar-catalog__sub-link:hover { background: var(--blue-light); color: var(--blue); }

/* ==========================================================
   PRODUCT GRID — Bigger cards, fill space
   ========================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ==========================================================
   PRODUCT CARD — Premium look, button below price
   ========================================================== */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.product-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
    border-color: var(--gray-200);
}

.product-card__img {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--white);
    padding: 16px;
}
.product-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img { transform: scale(1.05); }

.product-card__body {
    padding: 16px 20px 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.45;
    margin-bottom: 10px;
    text-decoration: none;
}
.product-card__name:hover { color: var(--blue); }

.product-card__price {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-top: auto;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.product-card__price--request {
    color: var(--red);
    font-size: 1rem;
    font-weight: 700;
}
.product-card__stock {
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.product-card__stock--in { color: var(--green); }
.product-card__stock--order { color: var(--orange); }

/* Button — appears BELOW price on hover, doesn't cover anything */
.product-card__action {
    padding: 0 20px 20px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}
.product-card:hover .product-card__action {
    max-height: 80px;
    opacity: 1;
    padding: 12px 20px 20px;
}

/* ==========================================================
   SECTION HEADERS — Large, clear
   ========================================================== */
.section { margin-bottom: 40px; }
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-header__title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.02em;
}
.section-header__link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-header__link:hover { color: var(--blue-hover); }

/* ==========================================================
   HERO BANNER (call to action section on homepage)
   ========================================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--blue) 0%, #1976D2 50%, #1565C0 100%);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    margin-bottom: 36px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    overflow: hidden;
    position: relative;
}
.hero-banner::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.hero-banner__text h2 {
    color: #fff;
    font-size: 1.875rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.hero-banner__text p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.5;
}
.hero-banner__actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.hero-banner .btn--callback {
    background: #fff;
    color: var(--red);
    font-size: 1.1rem;
    padding: 16px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    animation: none;
}
.hero-banner .btn--callback:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.hero-banner .btn--outline {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.hero-banner .btn--outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* ==========================================================
   POPULAR CATEGORIES — Larger cards
   ========================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}
.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
    border-color: var(--blue-light);
}
.category-card__img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.category-card__name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: color var(--transition);
}
.category-card:hover .category-card__name { color: var(--blue); }

/* ==========================================================
   BRANDS — Larger, nicer
   ========================================================== */
.brands-section {
    margin: 40px 0;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.brand-item {
    flex: 0 0 auto;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: var(--radius-md);
}
.brand-item:hover { background: var(--gray-50); }
.brand-item--text { font-size: 1rem; font-weight: 800; color: var(--gray-400); letter-spacing: 0.02em; }
.brand-item--text:hover { color: var(--blue); }
.brand-logo {
    max-height: 44px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s, opacity 0.3s;
}
.brand-item:hover .brand-logo { filter: grayscale(0%); opacity: 1; }

/* ==========================================================
   SEO TEXT
   ========================================================== */
.seo-block {
    margin: 48px 0;
    padding: 36px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.seo-block h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--gray-900);
}
.seo-block p {
    font-size: 1.05rem;
    color: var(--gray-600);
    margin-bottom: 14px;
    line-height: 1.75;
}
.seo-block p:last-child { margin-bottom: 0; }

/* ==========================================================
   FILTER BAR — Roomier
   ========================================================== */
.filter-bar {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.filter-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    flex: 1;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-label {
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 600;
    white-space: nowrap;
}
.filter-input {
    width: 100px;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}
.filter-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.1); }
.filter-dash { color: var(--gray-400); }
.filter-select {
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    outline: none;
    background: var(--white);
    cursor: pointer;
}
.filter-select:focus { border-color: var(--blue); }
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--gray-800);
    cursor: pointer;
    font-weight: 500;
}
.filter-checkbox input { accent-color: var(--blue); width: 18px; height: 18px; }
.filter-btn {
    padding: 10px 24px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.filter-btn:hover { background: var(--blue-hover); }
.filter-reset {
    font-size: 0.9rem;
    color: var(--red);
    font-weight: 500;
}
.filter-reset:hover { text-decoration: underline; }
.filter-count {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-left: auto;
    white-space: nowrap;
    font-weight: 500;
}

/* ==========================================================
   BREADCRUMBS
   ========================================================== */
.breadcrumbs {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.5;
}
.breadcrumbs a { color: var(--blue); font-weight: 500; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; color: var(--gray-300); }

/* ==========================================================
   SUBCATEGORY TAGS
   ========================================================== */
.subcategories { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.subcategory-tag {
    display: inline-block;
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-800);
    text-decoration: none;
    transition: all var(--transition);
}
.subcategory-tag:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

/* ==========================================================
   PRODUCT DETAIL — Large, spacious
   ========================================================== */
.product-detail {
    display: flex;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 28px;
}
.product-detail__gallery {
    flex: 0 0 480px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.product-detail__gallery img {
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
}
.product-detail__info { flex: 1; }
.product-detail__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.product-detail__article {
    font-size: 0.9rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}
.product-detail__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}
.product-detail__price--request {
    color: var(--red);
    font-size: 1.25rem;
    font-weight: 700;
}
.product-detail__stock {
    font-size: 1rem;
    margin: 14px 0 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.product-detail__stock--in { color: var(--green); }
.product-detail__stock--out { color: var(--orange); }
.product-detail__stock svg { width: 20px; height: 20px; flex-shrink: 0; }
.product-detail__preview {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}
.product-detail__preview h3 { font-size: 1.125rem; margin: 0 0 10px; }
.product-detail__preview p { font-size: 1rem; color: var(--gray-600); line-height: 1.75; white-space: pre-line; }

.product-description {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
    margin-bottom: 28px;
}
.product-description h2 { font-size: 1.375rem; margin: 0 0 16px; }
.product-description .text { font-size: 1rem; color: var(--gray-600); line-height: 1.8; }

/* ==========================================================
   BRANDS PAGE — Grid like original site
   ========================================================== */
.brands-page {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
}
.brands-page__desc {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 800px;
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.brands-grid__card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    margin: -0.5px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.brands-grid__card:hover {
    box-shadow: var(--shadow-md);
    z-index: 2;
    position: relative;
    border-color: var(--blue);
}
.brands-grid__logo {
    max-height: 60px;
    max-width: 180px;
    object-fit: contain;
}
.brands-grid__text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-400);
    letter-spacing: 0.02em;
    transition: color 0.25s;
}
.brands-grid__card:hover .brands-grid__text { color: var(--blue); }
.brands-grid__card:hover .brands-grid__logo { filter: none; }

@media (max-width: 768px) {
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .brands-grid__card { min-height: 90px; padding: 16px; }
    .brands-grid__logo { max-height: 40px; }
    .brands-grid__text { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .brands-grid { grid-template-columns: 1fr; }
}

/* Brand detail page */
.brand-detail {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}
.brand-detail__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}
.brand-detail__logo {
    flex-shrink: 0;
    padding: 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
}
.brand-detail__logo img { max-height: 80px; max-width: 220px; object-fit: contain; }
.brand-detail__title { font-size: 2rem; font-weight: 800; margin: 0; }
.brand-detail__description {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 28px;
}
.brand-detail__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================
   CONTACTS PAGE
   ========================================================== */
.contacts-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 28px;
}
.contacts-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}
.contacts-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.contacts-item__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--blue);
}
.contacts-item__icon svg { width: 28px; height: 28px; }
.contacts-item__icon--social { border-color: var(--blue); overflow: hidden; }
.contacts-item__icon--social a { display: flex; }
.contacts-item__vk-logo { width: 36px; height: 36px; object-fit: contain; }
.contacts-item__label {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: 2px;
}
.contacts-item__value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gray-900);
}
.contacts-item__value a { color: var(--gray-900); }
.contacts-item__value a:hover { color: var(--blue); }
.contacts-action { text-align: center; }
.contacts-about {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 36px;
}
.contacts-about h2 {
    font-size: 1.375rem;
    margin: 0 0 16px;
}
.contacts-about p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 14px;
}
.contacts-about__legal {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-400);
}

/* ==========================================================
   PAGINATION
   ========================================================== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-md);
    font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: all var(--transition);
}
.pagination a { background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-300); }
.pagination a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pagination .active { background: var(--blue); color: #fff; border: 1px solid var(--blue); }

/* ==========================================================
   PAGE TITLE
   ========================================================== */
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}
.search-count { font-size: 1rem; color: var(--gray-600); margin-bottom: 20px; }
.empty-msg {
    font-size: 1.125rem;
    color: var(--gray-400);
    padding: 80px 0;
    text-align: center;
    grid-column: 1 / -1;
}

/* ==========================================================
   FOOTER — Big, spacious, dark
   ========================================================== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto;
}
.footer-top { padding: 52px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.footer-col__list li { margin-bottom: 10px; }
.footer-col__list a {
    color: var(--footer-text);
    font-size: 0.95rem;
    transition: color var(--transition);
}
.footer-col__list a:hover { color: #fff; }

.footer-contacts__phone a {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}
.footer-contacts__phone a:hover { color: var(--red); }
.footer-contacts__address {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.5;
}
.footer-contacts__callback {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 20px;
    background: var(--red);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
}
.footer-contacts__callback:hover { background: var(--red-hover); color: #fff; transform: translateY(-1px); }

.footer-social { margin-top: 20px; }
.footer-social__title {
    font-size: 0.8rem;
    color: var(--footer-text);
    margin-bottom: 10px;
}
.footer-social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.08); color: #fff; font-size: 18px;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--blue); color: #fff; }
.footer-social__vk-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
    transition: transform var(--transition);
}
.footer-social__vk-logo:hover { transform: scale(1.1); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.footer-bottom__copy { font-size: 0.9rem; color: var(--footer-text); }
.footer-bottom__legal { font-size: 0.8rem; color: rgba(255,255,255,0.25); margin-top: 6px; }

/* ==========================================================
   MODALS — Polished
   ========================================================== */
.modal-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(16,24,40,0.6); z-index: 9998;
    backdrop-filter: blur(4px);
}
.modal-overlay.active { display: block; }

.popup-form {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    z-index: 9999; background: var(--white);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    width: 460px; max-width: 94vw;
    box-shadow: 0 20px 60px rgba(16,24,40,0.25);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.popup-form.active {
    display: block; opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.popup-close {
    position: absolute; top: 14px; right: 18px;
    font-size: 32px; color: var(--gray-400);
    text-decoration: none; line-height: 1;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.popup-close:hover { color: var(--gray-900); background: var(--gray-100); }
.popup-form__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.popup-form__subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 24px;
}
.popup-form__field { margin-bottom: 14px; }
.popup-form__field input,
.popup-form__field textarea {
    width: 100%;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition);
    box-sizing: border-box;
}
.popup-form__field input:focus,
.popup-form__field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(21,101,192,0.1);
}
.popup-form__field textarea { resize: vertical; }
.popup-form .btn { width: 100%; margin-top: 8px; padding: 16px; font-size: 1.05rem; }
.popup-form__success {
    text-align: center;
    padding: 28px 0;
    color: var(--green);
    font-size: 1.125rem;
    font-weight: 600;
}
.popup-form__success i { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ==========================================================
   COOKIE BANNER — Professional & detailed
   ========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 860px;
    width: calc(100% - 40px);
    box-shadow: 0 12px 40px rgba(16,24,40,0.15);
}
.cookie-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.cookie-banner__content { flex: 1; }
.cookie-banner__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}
.cookie-banner__text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.55;
}
.cookie-banner__text a { color: var(--blue); text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* ==========================================================
   MOBILE STICKY PHONE
   ========================================================== */
.mobile-phone-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    box-shadow: 0 6px 24px rgba(229,57,53,0.4);
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform var(--transition);
    animation: pulse-phone 2s ease-in-out infinite;
}
.mobile-phone-btn:hover { transform: scale(1.1); color: #fff; }
.mobile-phone-btn svg { width: 26px; height: 26px; }
@keyframes pulse-phone {
    0%, 100% { box-shadow: 0 6px 24px rgba(229,57,53,0.4); }
    50% { box-shadow: 0 6px 32px rgba(229,57,53,0.6); }
}

/* ==========================================================
   COMPANY PAGE
   ========================================================== */
.company-page {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}
.company-section {
    margin-bottom: 36px;
}
.company-section:last-child { margin-bottom: 0; }
.company-section__title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--blue-light);
}
.company-lead {
    font-size: 1.15rem;
    color: var(--gray-800);
    line-height: 1.8;
    margin-bottom: 12px;
}
.company-page p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 12px;
}
.company-page p:last-child { margin-bottom: 0; }

/* Timeline */
.company-timeline {
    position: relative;
    padding-left: 32px;
}
.company-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), var(--red));
    border-radius: 2px;
}
.company-timeline__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}
.company-timeline__item::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 18px;
    width: 12px;
    height: 12px;
    background: var(--blue);
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 2px var(--blue);
}
.company-timeline__year {
    flex-shrink: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--blue);
    min-width: 60px;
}
.company-timeline__text {
    font-size: 1rem;
    color: var(--gray-700, #475467);
    line-height: 1.5;
}

/* Highlights (mission + goal) */
.company-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}
.company-highlight {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
}
.company-highlight__icon {
    margin-bottom: 16px;
}
.company-highlight h3 {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.company-highlight p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Values */
.company-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.company-value {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 24px;
    border-left: 3px solid var(--blue);
}
.company-value h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}
.company-value p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.65;
    margin-bottom: 0;
}

/* CTA */
.company-cta {
    margin-top: 36px;
    padding: 32px;
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--gray-50) 100%);
    border-radius: var(--radius-lg);
    text-align: center;
}
.company-cta p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 20px;
    line-height: 1.6;
}
.company-cta__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
}

/* ==========================================================
   PRIVACY PAGE
   ========================================================== */
.privacy-page {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 40px;
}
.privacy-section {
    margin-bottom: 28px;
}
.privacy-section:last-child { margin-bottom: 0; }
.privacy-section h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px;
}
.privacy-section p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 10px;
}
.privacy-section ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 10px;
}
.privacy-section li {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 4px;
}
.privacy-section a { color: var(--blue); }
.privacy-section a:hover { text-decoration: underline; }
.privacy-legal {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-400);
}
.footer-bottom__legal a { color: rgba(255,255,255,0.4); }
.footer-bottom__legal a:hover { color: rgba(255,255,255,0.7); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1200px) {
    .container { padding: 0 24px; }
    .hero-banner { padding: 36px 32px; }
    .hero-banner__text h2 { font-size: 1.5rem; }
}

@media (max-width: 1024px) {
    .page-layout__sidebar { display: none; }
    .page-layout { gap: 0; }
    .product-detail { flex-direction: column; }
    .product-detail__gallery { flex: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .header-slogan { display: none; }
}

@media (max-width: 768px) {
    .header-top { display: none; }
    .header-nav { display: none; }
    .header-hamburger { display: flex; }
    .header-search { max-width: 100%; order: 10; flex-basis: 100%; margin-top: 10px; }
    .header-middle .container { flex-wrap: wrap; gap: 12px; }
    .header-phone { display: none; }
    .header-middle { padding: 12px 0; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }

    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-form { flex-direction: column; align-items: stretch; }
    .filter-count { margin-left: 0; }

    .mobile-phone-btn { display: flex; }

    .hero-banner { flex-direction: column; text-align: center; padding: 28px 24px; }
    .hero-banner__actions { align-items: center; }
    .hero-banner__text h2 { font-size: 1.375rem; }

    .cookie-banner {
        flex-direction: column;
        gap: 16px;
        bottom: 12px;
        padding: 20px 24px;
        text-align: center;
    }
    .cookie-banner__actions { width: 100%; }
    .cookie-banner__actions .btn { flex: 1; }

    .page-title { font-size: 1.5rem; }

    .container { padding: 0 16px; }

    /* Company page mobile */
    .company-page { padding: 24px; }
    .company-highlights { grid-template-columns: 1fr; }
    .company-values { grid-template-columns: 1fr; }
    .company-cta__actions { flex-direction: column; }
    .company-timeline { padding-left: 28px; }

    /* Privacy page mobile */
    .privacy-page { padding: 24px; }

    /* Contacts mobile */
    .contacts-card { padding: 24px; }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; gap: 16px; }
    .categories-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .product-detail { padding: 24px; gap: 24px; }
    .product-detail__price { font-size: 2rem; }
}

@media (min-width: 769px) {
    .header-slogan { display: block; }
}

/* ─── 404 Page ────────────────────────────── */
.error-page { text-align: center; padding: 60px 20px; }
.error-page__code { font-size: 6rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 8px; }
.error-page__title { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.error-page__text { color: var(--gray-600); max-width: 500px; margin: 0 auto 24px; }
.error-page__search { margin-bottom: 20px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.error-page__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── HTML Sitemap ────────────────────────── */
.sitemap-page { padding: 20px 0; }
.sitemap-section { margin-bottom: 32px; }
.sitemap-section h2 { font-size: 1.2rem; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-200); }
.sitemap-section ul { list-style: none; padding: 0; }
.sitemap-section li { padding: 4px 0; }
.sitemap-section li a { color: var(--blue); text-decoration: none; }
.sitemap-section li a:hover { text-decoration: underline; }
.sitemap-section ul ul { padding-left: 24px; margin-top: 4px; }
.sitemap-section ul ul li { padding: 2px 0; }
.sitemap-section ul ul li::before { content: "— "; color: var(--gray-400); }
