:root {
  --bg-main: #0c0e14;
  --bg-surface: #131620;
  --bg-elevated: #1a1e2b;
  --bg-input: #0f1119;
  --border: #242938;
  --border-hover: #384057;
  --text-main: #e5e9f0;
  --text-bright: #f3f6fa;
  --text-muted: #94a0b8;
  --text-dim: #647087;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --gold: #f59e0b;
  --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, strong, b { font-weight: 600; color: var(--text-bright); }
a { color: inherit; text-decoration: none; transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { background: #08090d; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.topbar-inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar-badge { color: var(--text-main); font-weight: 500; }
.topbar-accent { color: var(--gold); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-phone {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-bright);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.topbar-phone:hover { border-color: var(--gold); color: var(--gold); }

.callback-trigger {
  font-size: 12.5px;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.callback-trigger:hover { background: rgba(245, 158, 11, 0.28); color: #ffffff; }

/* Header */
.site-header { background: rgba(12, 14, 20, 0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 107, 0, 0.45); box-shadow: 0 4px 14px rgba(255, 107, 0, 0.2); background: #090d16; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-size: 19px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-bright); line-height: 1.1; }
.brand-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; color: #ff6b00; display: block; margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 500; color: #cbd5e1; flex-shrink: 0; }
.main-nav a:hover { color: #ffffff; }

.search-form { flex: 1; max-width: 380px; position: relative; }
.search-input { width: 100%; height: 40px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 0 38px 0 14px; color: var(--text-bright); font-size: 13px; }
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; border-color: #475569; background: var(--bg-elevated); }
.search-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: none; background: transparent; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.mobile-menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-bright); align-items: center; justify-content: center; cursor: pointer; }
.mobile-drawer { display: none; border-top: 1px solid var(--border); padding: 14px 0; flex-direction: column; gap: 10px; }
.mobile-drawer.open { display: flex; }
.mobile-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mobile-nav-grid a { background: var(--bg-surface); border: 1px solid var(--border); padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-white { background: #f1f5f9; color: #0f172a; }
.btn-white:hover { background: #e2e8f0; }
.btn-outline { background: var(--bg-surface); border-color: var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 14px; border-radius: 12px; }

.cart-counter { background: #0f172a; color: #ffffff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; min-width: 22px; text-align: center; }

/* Messenger Buttons */
.messenger-links { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.msg-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; }
.msg-max { background: rgba(59, 130, 246, 0.16); border-color: rgba(59, 130, 246, 0.45); color: #93c5fd; }
.msg-max:hover { background: rgba(59, 130, 246, 0.28); color: #ffffff; }
.msg-wa { background: rgba(16, 185, 129, 0.16); border-color: rgba(16, 185, 129, 0.45); color: #6ee7b7; }
.msg-wa:hover { background: rgba(16, 185, 129, 0.28); color: #ffffff; }

/* Sections & Hero */
.section { padding: 32px 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-title { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--text-bright); }
.section-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.section-link { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.section-link:hover { color: #ffffff; }

.hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; }
.hero-main { background: radial-gradient(120% 120% at 90% 10%, rgba(225, 29, 72, 0.14) 0%, rgba(19, 22, 32, 0.98) 65%), var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 38px; display: flex; flex-direction: column; justify-content: space-between; min-height: 330px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 12px; }
.hero-title { font-size: 30px; font-weight: 600; line-height: 1.22; color: var(--text-bright); max-width: 580px; margin-bottom: 14px; }
.hero-desc { font-size: 15px; color: var(--text-muted); max-width: 540px; margin-bottom: 24px; }
.hero-stack { display: flex; flex-direction: column; gap: 20px; }

.promo-card { flex: 1; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.promo-card-20 { background: linear-gradient(135deg, rgba(245, 158, 11, 0.11) 0%, rgba(19, 22, 32, 1) 70%); border-color: rgba(245, 158, 11, 0.32); }
.promo-card-30 { background: linear-gradient(135deg, rgba(225, 29, 72, 0.14) 0%, rgba(19, 22, 32, 1) 70%); border-color: rgba(225, 29, 72, 0.36); }
.promo-tag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 9px; border-radius: 6px; margin-bottom: 8px; }
.promo-tag-gold { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }
.promo-tag-red { background: rgba(225, 29, 72, 0.18); color: #fb7185; }
.promo-title { font-size: 19px; font-weight: 600; color: var(--text-bright); line-height: 1.25; }
.promo-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.promo-percent { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; flex-shrink: 0; }

/* Categories Grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cat-card:hover { border-color: #475569; background: var(--bg-elevated); }
.cat-num { font-size: 11px; font-weight: 500; color: var(--text-dim); letter-spacing: 0.06em; margin-bottom: 4px; }
.cat-name { font-size: 15px; font-weight: 600; color: var(--text-bright); }
.cat-badge { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 500; color: #fbbf24; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.25); padding: 2px 8px; border-radius: 6px; }
.cat-arrow { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-main); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); flex-shrink: 0; }

/* Products (White studio capsule for clean product photos) */
.products-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.products-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
}
.product-card:hover { border-color: var(--border-hover); }
.product-media {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.badge-stack { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.badge-discount { background: #e11d48; color: #ffffff; box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35); }
.badge-video { background: #131620; color: #ffffff; }
.badge-stock { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 6px; }
.badge-stock.in { background: #ecfdf5; border: 1px solid #10b981; color: #047857; }
.badge-stock.out { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; }

.product-body { padding: 4px 4px 0; display: flex; flex-direction: column; gap: 6px; }
.product-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); }
.product-title { display: block; font-size: 15.5px; font-weight: 600; color: var(--text-bright); line-height: 1.35; min-height: 42px; }
.specs-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg-main); border: 1px solid var(--border); border-radius: 10px; padding: 8px 6px; margin-top: 6px; text-align: center; }
.specs-mini-label { font-size: 10px; color: var(--text-dim); display: block; }
.specs-mini-val { font-size: 12px; font-weight: 600; color: #dce3ee; margin-top: 1px; display: block; }
.product-footer { padding: 12px 4px 2px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-current { font-size: 20px; font-weight: 700; color: var(--text-bright); line-height: 1.1; }
.price-old { font-size: 12.5px; color: var(--text-dim); text-decoration: line-through; margin-top: 2px; }

/* Certificates Grid */
.certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cert-card-scan { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.cert-card-scan svg { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,0.45); display: block; }

/* Catalog & Filters */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.filter-panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; position: sticky; top: 92px; }
.filter-group { margin-bottom: 15px; }
.filter-label { display: block; font-size: 12px; font-weight: 500; color: #cbd5e1; margin-bottom: 6px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.form-control { width: 100%; height: 42px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; padding: 0 12px; color: var(--text-bright); font-size: 14px; }
.form-control:focus { outline: none; border-color: #64748b; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-pill { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 500; background: var(--bg-surface); border: 1px solid var(--border); color: var(--text-muted); }
.cat-pill:hover { color: #ffffff; border-color: var(--border-hover); }
.cat-pill.active { background: var(--text-bright); color: #090a0f; border-color: var(--text-bright); font-weight: 600; }
.mobile-filter-toggle { display: none; width: 100%; margin-bottom: 14px; }

/* Product Detail & Surfaces */
.product-detail-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: start; }
.surface-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table td { padding: 11px 4px; font-size: 14px; }
.spec-table td:first-child { color: var(--text-muted); }
.spec-table td:last-child { text-align: right; font-weight: 600; color: var(--text-bright); }

/* Info Pages Layout */
.info-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.info-nav { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 92px; }
.info-nav a { padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--text-muted); }
.info-nav a:hover { color: #ffffff; background: var(--bg-elevated); }
.info-nav a.active { background: var(--accent); color: #ffffff; font-weight: 600; }
.info-nav-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.kpi-box { background: var(--bg-main); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.kpi-val { font-size: 24px; font-weight: 700; color: var(--text-bright); margin-bottom: 4px; }
.kpi-label { font-size: 12px; color: var(--text-muted); }
.info-cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.info-box { background: var(--bg-main); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.legal-doc { display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; color: #cbd5e1; line-height: 1.65; }
.legal-doc h3 { font-size: 15px; font-weight: 600; color: var(--text-bright); margin-top: 8px; }

/* Checkout & Cart */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }
.qty-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-elevated); border: 1px solid var(--border-hover); color: var(--text-bright); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: #262b3d; }

/* Callback Modal & Captcha */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex !important; }
.modal-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  position: relative;
}
.captcha-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
}
.captcha-question {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* Footer */
.site-footer { background: #08090d; border-top: 1px solid var(--border); margin-top: 56px; padding: 48px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 1fr 1.2fr; gap: 32px; margin-bottom: 32px; }
.footer-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-bright); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: #ffffff; }

@media (max-width: 1024px) {
  .hero-grid, .product-detail-grid, .catalog-layout, .info-layout, .checkout-grid { grid-template-columns: 1fr; }
  .products-grid-4, .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-panel, .info-nav { position: static; }
  .main-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-filter-toggle { display: inline-flex; }
  .filter-panel.mobile-hidden { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .topbar-inner { justify-content: space-between; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .search-form { order: 3; max-width: 100%; width: 100%; flex: 0 0 100%; }
  .products-grid-4, .products-grid-3, .cat-grid, .certs-grid, .footer-grid, .kpi-grid, .info-cards-2, .input-row { grid-template-columns: 1fr; }
  .hero-main { padding: 24px; min-height: auto; }
  .hero-title { font-size: 23px; }
  .surface-card { padding: 18px; }
  .form-control { font-size: 16px; }
}

/* === ИСПРАВЛЕНИЕ МОБИЛЬНОЙ ВЕРХУШКИ И КНОПКИ TELEGRAM === */
.msg-tg {
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.45);
  color: #7dd3fc;
}
.msg-tg:hover {
  background: rgba(14, 165, 233, 0.28);
  color: #ffffff;
}

@media (max-width: 768px) {
  .topbar-info {
    display: none !important;
  }
  .topbar-inner {
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .topbar-phone {
    font-size: 14.5px;
    padding: 4px 9px;
  }
  .callback-trigger {
    font-size: 12px;
    padding: 5px 10px;
  }
}

/* === ИСПРАВЛЕНИЕ ПЕРЕПОЛНЕНИЯ НА МОБИЛЬНЫХ И АДАПТИВНЫЙ БЛОК КОНСУЛЬТАЦИИ === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.hero-grid > *,
.catalog-layout > *,
.product-detail-grid > *,
.checkout-grid > *,
.info-layout > * {
  min-width: 0;
  max-width: 100%;
}

.consult-card {
  background: radial-gradient(120% 120% at 10% 90%, rgba(245, 158, 11, 0.12) 0%, rgba(19, 22, 32, 0.98) 65%), var(--bg-surface);
  padding: 36px;
}
.consult-title {
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.consult-form-box {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 100%;
}
.captcha-row {
  flex-wrap: wrap;
}
.captcha-question {
  white-space: normal;
  line-height: 1.3;
}

/* === ПАГИНАЦИЯ И КНОПКА "ПОКАЗАТЬ ЕЩЁ" В КАТАЛОГЕ === */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.pagination-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.load-more-btn {
  width: 100%;
  max-width: 380px;
  height: 48px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  color: var(--text-bright);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s ease;
}
.load-more-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245, 158, 11, 0.08);
}
.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.page-link {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-link:hover {
  border-color: var(--border-hover);
  color: #ffffff;
}
.page-link.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 640px) {
  .consult-card {
    padding: 18px 14px !important;
  }
  .consult-title {
    font-size: 20px !important;
  }
  .consult-form-box {
    padding: 16px 12px !important;
  }
  .captcha-row {
    padding: 8px 10px;
    gap: 8px;
  }
  .captcha-question {
    font-size: 12px;
  }

  /* Компактная сетка по 2 карточки в ряд на смартфонах */
  .products-grid-4,
  .products-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .product-card {
    padding: 8px;
    border-radius: 12px;
    gap: 8px;
  }
  .product-media {
    height: 145px;
    padding: 10px;
    border-radius: 9px;
  }
  .badge {
    font-size: 9.5px;
    padding: 3px 6px;
  }
  .badge-stock {
    font-size: 9.5px;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }
  .badge-stack {
    top: 6px;
    left: 6px;
  }
  .product-meta {
    font-size: 10.5px;
  }
  .product-title {
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .specs-mini {
    padding: 5px 3px;
    gap: 2px;
    border-radius: 8px;
  }
  .specs-mini-label {
    font-size: 9px;
  }
  .specs-mini-val {
    font-size: 10.5px;
  }
  .product-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 8px;
  }
  .price-current {
    font-size: 16.5px;
  }
  .price-old {
    font-size: 11px;
    display: inline;
    margin-left: 6px;
  }
  .product-footer .btn {
    width: 100%;
    height: 36px;
    font-size: 12px;
    padding: 0 10px;
  }
  .cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
