/* ═══════════════════════════════════════════════════════════════
   ТехГазы РУ — main.css
   Полностью адаптивная вёрстка (320px — 1920px)
═══════════════════════════════════════════════════════════════ */

/* ── 1. CSS VARIABLES ── */
:root {
  --blue-dark:   #0A1628;
  --blue-900:    #0D1F3C;
  --blue-800:    #122550;
  --blue-700:    #163070;
  --blue-600:    #1A3D8F;
  --blue-500:    #1E50B8;
  --blue-400:    #2B6ADF;
  --blue-300:    #5C8FE8;
  --blue-200:    #A8C4F4;
  --blue-100:    #D6E6FB;
  --blue-50:     #EDF4FF;
  --accent:      #E8501A;
  --accent-light:#FF6B35;
  --white:       #FFFFFF;
  --gray-50:     #F7F8FA;
  --gray-100:    #EAEDF2;
  --gray-200:    #D0D6E2;
  --gray-400:    #8896AE;
  --gray-600:    #4A5568;
  --gray-800:    #1A202C;
  --font-head:  'Bebas Neue', sans-serif;
  --font-body:  'Manrope', sans-serif;
  --container:   1200px;
  --radius:      6px;
  --radius-lg:   12px;
  --transition:  0.22s ease;
  --section-pad: clamp(48px, 6vw, 80px);
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--gray-800); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ── 3. UTILITIES ── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; border: none;
  transition: all var(--transition); letter-spacing: 0.02em; white-space: nowrap;
  line-height: 1;
}
.btn-primary  { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,80,26,.35); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); }
.btn-blue     { background: var(--blue-600); color: var(--white); }
.btn-blue:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,61,143,.3); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; }

.section-tag {
  display: inline-block; background: var(--blue-50); color: var(--blue-600);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 40px; margin-bottom: 14px;
  border: 1px solid var(--blue-200);
}
.section-title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 52px); color: var(--blue-900); line-height: 1; letter-spacing: 0.01em; }
.section-sub   { font-size: clamp(15px, 2vw, 17px); color: var(--gray-600); margin-top: 14px; }

/* ── 4. TOPBAR ── */
.topbar { background: var(--blue-dark); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar-info  { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-item  { display: flex; align-items: center; gap: 7px; color: var(--blue-200); font-size: 13px; }
.topbar-item svg  { width: 14px; height: 14px; opacity: .7; flex-shrink: 0; }
.topbar-item a    { color: var(--blue-200); text-decoration: none; transition: color var(--transition); }
.topbar-item a:hover { color: var(--white); }
.topbar-right { color: var(--blue-300); font-size: 13px; white-space: nowrap; }

/* ── 5. HEADER ── */
.site-header { background: var(--blue-900); position: sticky; top: 0; z-index: 200; box-shadow: 0 2px 24px rgba(0,0,0,.35); }
.header-inner { display: flex; align-items: center; gap: 32px; padding: 16px 0; }

.site-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 42px; height: 42px; background: var(--accent); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 22px; height: 22px; fill: none; stroke: white; stroke-width: 2; }
.logo-text-wrap { line-height: 1.2; }
.logo-name   { display: block; font-family: var(--font-head); font-size: 22px; color: var(--white); letter-spacing: .04em; }
.logo-slogan { display: block; font-size: 11px; color: var(--blue-300); letter-spacing: .06em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; flex: 1; }
.primary-nav > .nav-list { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin: 0; }
.primary-nav .menu-item { list-style: none; }
.primary-nav > .nav-list > .menu-item > a {
  display: inline-flex; align-items: center; gap: 4px;
  color: rgba(255,255,255,.75); font-size: 14px; font-weight: 600;
  text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  transition: all var(--transition); white-space: nowrap;
}
.primary-nav > .nav-list > .menu-item > a:hover,
.primary-nav > .nav-list > .menu-item.current-menu-item > a,
.primary-nav > .nav-list > .menu-item > a.active { color: var(--white); background: rgba(255,255,255,.1); }
.primary-nav > .nav-list > .menu-item.current-menu-item > a { color: var(--accent-light); }

.header-phone-wrap { margin-left: auto; flex-shrink: 0; text-align: right; }
.header-phone-num  { font-size: clamp(15px, 2vw, 18px); font-weight: 800; color: var(--white); text-decoration: none; display: block; letter-spacing: -.01em; transition: color var(--transition); }
.header-phone-num:hover { color: var(--accent-light); }
.header-phone-sub  { font-size: 11px; color: var(--blue-300); letter-spacing: .05em; }

/* Hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-shrink: 0; }

/* BS-элементы скрыты на десктопе */
.bs-drag-handle,
.bs-sheet-header,
.bs-sheet-footer,
.bs-overlay { display: none; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
/* Hamburger → X */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Кнопка-звонок (планшет/мобайл, скрыта на десктопе) */
.header-call-mobile { display: none; }

/* Мобильный футер в меню (скрыт на десктопе) */
.mobile-nav-footer { display: none; }

/* ── 6. HERO SECTION ── */
.hero-section {
  background: var(--blue-dark); position: relative; overflow: hidden;
  padding: clamp(60px,8vw,100px) 0 clamp(50px,7vw,90px);
  min-height: clamp(480px, 60vw, 640px); display: flex; align-items: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(26,61,143,.15) 1px,transparent 1px), linear-gradient(90deg,rgba(26,61,143,.15) 1px,transparent 1px);
  background-size: 48px 48px;
}
.hero-accent-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,var(--accent),var(--blue-400),transparent); }
.hero-glow { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle,rgba(30,80,184,.2) 0%,transparent 70%); pointer-events: none; }

.hero-inner { position: relative; z-index: 2; display: flex; justify-content: center; }
.hero-content { max-width: 780px; width: 100%; text-align: center; }

.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,80,26,.15); border: 1px solid rgba(232,80,26,.4); color: var(--accent-light); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 40px; margin-bottom: 20px; margin-left: auto; margin-right: auto; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

.hero-title { font-family: var(--font-head); font-size: clamp(42px,6vw,82px); color: var(--white); line-height: .95; letter-spacing: .01em; margin-bottom: 22px; }
.hero-title .accent { color: var(--accent); }
.hero-desc  { font-size: clamp(15px, 2vw, 17px); color: var(--blue-200); line-height: 1.7; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; justify-content: center; }

.hero-stats { display: flex; gap: clamp(20px,3vw,32px); border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; flex-wrap: wrap; justify-content: center; }
.hero-stat-num   { font-family: var(--font-head); font-size: clamp(28px,3.5vw,38px); color: var(--white); line-height: 1; }
.hero-stat-num .accent { color: var(--accent); }
.hero-stat-label { font-size: 13px; color: var(--blue-300); margin-top: 3px; }

/* ── Trust-бейджи ── */
.hero-trust { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; justify-content: center; }
.hero-trust-item {
  display: flex; align-items: center; gap: 7px;
  color: var(--blue-200); font-size: 13px; font-weight: 500;
}
.hero-trust-icon { display: flex; align-items: center; flex-shrink: 0; }
.hero-trust-icon svg { width: 15px; height: 15px; stroke: var(--accent-light); fill: none; stroke-width: 2; }

/* ── Кнопки Hero (с иконкой) ── */
.btn-hero { gap: 8px; }
.btn-hero svg { flex-shrink: 0; }

/* ── Scroll-индикатор ── */
.hero-scroll-btn {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: none; border: none; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  animation: scrollBounce 2.4s ease-in-out infinite; z-index: 10;
}
.hero-scroll-mouse {
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.35);
  border-radius: 11px; display: flex; justify-content: center; padding-top: 5px;
  transition: border-color var(--transition);
}
.hero-scroll-btn:hover .hero-scroll-mouse { border-color: rgba(255,255,255,.7); }
.hero-scroll-wheel {
  width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 2px;
  animation: wheelScroll 2.4s ease-in-out infinite;
}
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(5px)} }
@keyframes wheelScroll  { 0%,100%{opacity:1;transform:translateY(0)} 60%{opacity:0;transform:translateY(8px)} }

/* ── Фоновое изображение ── */
.hero-bg-image { position:absolute; inset:0; z-index:0; }
.hero-bg-image img { width:100%; height:100%; object-fit:cover; opacity:.2; }

/* ── 7. CATEGORY HERO ── */
.cat-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cat-from, #0D2047) 0%, var(--cat-to, #1A3D8F) 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 3px solid var(--cat-accent, var(--blue-600));
}
.cat-hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cat-hero-accent-line {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--cat-accent, var(--accent)), transparent);
}
.cat-hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
}
.cat-hero-bg-img img {
  width: 100%; height: 100%; object-fit: cover; opacity: .18;
}
.cat-hero .container { position: relative; z-index: 2; }

/* Хлебные крошки */
.cat-hero-breadcrumbs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.5);
  margin-bottom: clamp(16px, 3vw, 28px);
}
.cat-hero-breadcrumbs a { color: rgba(255,255,255,.55); text-decoration: none; transition: color var(--transition); }
.cat-hero-breadcrumbs a:hover { color: var(--white); }
.cat-hero-breadcrumbs span[aria-hidden] { opacity: .4; }

/* Внутренний лейаут */
.cat-hero-inner {
  display: flex; align-items: flex-start; gap: clamp(20px, 3vw, 36px);
}
.cat-hero-icon {
  flex-shrink: 0;
  width: clamp(200px, 28vw, 320px);
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
}
.cat-hero-icon img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cat-hero-content { flex: 1; min-width: 0; }

/* Бейдж с количеством */
.cat-hero-meta-top { margin-bottom: 10px; }
.cat-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 40px;
}

/* Заголовок */
.cat-hero-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 58px);
  color: var(--white); line-height: .95;
  letter-spacing: .01em;
  margin: 0 0 14px;
}

/* Описание */
.cat-hero-desc {
  font-size: clamp(14px, 1.8vw, 16px);
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 20px;
}

/* Чипы подкатегорий */
.cat-hero-subcats {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.cat-hero-subcat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 40px;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-hero-subcat-chip:hover {
  background: rgba(255,255,255,.22);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.cat-hero-subcat-count {
  background: rgba(255,255,255,.2);
  font-size: 11px; padding: 1px 7px;
  border-radius: 40px; font-weight: 700;
}

/* CTA */
.cat-hero-actions { margin-top: 4px; }

/* ── Trust-бейджи ── */
.cat-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.cat-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 40px;
  padding: 6px 14px 6px 10px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), border-color var(--transition);
}
.cat-trust-badge:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .32);
}

/* Предупредительные бейджи (fire, warning, pressure) */
.cat-trust-badge--warn {
  background: rgba(232, 80, 26, .18);
  border-color: rgba(232, 80, 26, .4);
}
.cat-trust-badge--warn:hover {
  background: rgba(232, 80, 26, .28);
}
.cat-trust-badge--warn .cat-trust-badge-icon svg {
  stroke: #FF8A5C;
}

.cat-trust-badge-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cat-trust-badge-icon svg {
  width: 15px;
  height: 15px;
  stroke: rgba(255, 255, 255, .85);
  fill: none;
  stroke-width: 2;
}

.cat-trust-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Кнопки hero: несколько в ряд */
.cat-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* ── CF7 Модальное окно ── */
.cat-cf7-modal {
  display: none; position: fixed; inset: 0; z-index: 1000;
  align-items: center; justify-content: center;
}
.cat-cf7-modal.is-open { display: flex; }
.cat-cf7-overlay {
  position: absolute; inset: 0;
  background: rgba(10,22,40,.75); backdrop-filter: blur(4px);
  cursor: pointer; animation: overlayIn .2s ease;
}
@keyframes overlayIn { from{opacity:0} to{opacity:1} }
.cat-cf7-inner {
  position: relative; z-index: 1;
  background: var(--white); border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from{opacity:0;transform:translateY(-16px) scale(.97)} to{opacity:1;transform:translateY(0) scale(1)} }
.cat-cf7-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-100);
}
.cat-cf7-title { font-size: 18px; font-weight: 700; color: var(--blue-900); margin: 0; }
.cat-cf7-close {
  width: 32px; height: 32px; border: none; background: var(--gray-100);
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background var(--transition); flex-shrink: 0;
}
.cat-cf7-close:hover { background: var(--gray-200); }
.cat-cf7-close svg { width: 16px; height: 16px; stroke: var(--gray-600); }
.cat-cf7-body { padding: 24px; }
.cat-cf7-body .wpcf7-text,
.cat-cf7-body .wpcf7-tel,
.cat-cf7-body .wpcf7-email,
.cat-cf7-body .wpcf7-textarea {
  background: var(--white) !important; border: 1px solid var(--gray-200) !important;
  color: var(--gray-800) !important;
}
.cat-cf7-body .wpcf7-text:focus,
.cat-cf7-body .wpcf7-tel:focus,
.cat-cf7-body .wpcf7-email:focus {
  border-color: var(--blue-400) !important;
  box-shadow: 0 0 0 3px rgba(26,61,143,.1) !important;
}
.cat-cf7-body .wpcf7-text::placeholder,
.cat-cf7-body .wpcf7-tel::placeholder,
.cat-cf7-body .wpcf7-email::placeholder { color: var(--gray-400) !important; }
.cat-cf7-body .wpcf7-submit { width: 100%; }

/* Адаптив */
@media (max-width: 768px) {
  .cat-hero-inner { flex-direction: column; align-items: center; gap: 20px; }
  .cat-hero-icon  { width: min(360px, 90vw); }
  .cat-hero-content { width: 100%; text-align: center; }
  .cat-hero-breadcrumbs { justify-content: center; }
  .cat-hero-meta-top { text-align: center; }
  .cat-hero-subcats { justify-content: center; }
  .cat-trust-badges { justify-content: center; }
  .cat-hero-actions { justify-content: center; }
  .cat-hero-title { font-size: clamp(26px, 7vw, 40px); }
  .cat-trust-badge-text { white-space: normal; }
  .cat-cf7-inner  { max-width: calc(100vw - 32px); }
}

/* ══════════════════════════════════════════════════
   ОБЩИЙ: FAQ АККОРДЕОН (категории + товары)
══════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--blue-200); }

.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  font-size: 15px; font-weight: 600; color: var(--blue-900);
  cursor: pointer; list-style: none; user-select: none;
  transition: background var(--transition), color var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { background: var(--blue-50); color: var(--blue-700); }
.faq-item[open] .faq-question { background: var(--blue-50); color: var(--blue-700); border-bottom: 1px solid var(--blue-100); }

.faq-chevron {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: var(--gray-400); transition: transform var(--transition);
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); stroke: var(--blue-500); }

.faq-answer { padding: 16px 20px; }
.faq-answer p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin: 0; }

/* ══════════════════════════════════════════════════
   КАТЕГОРИЯ: FAQ секция
══════════════════════════════════════════════════ */
.cat-faq-section {
  padding: var(--section-pad) 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.cat-faq-inner { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.cat-faq-header { position: sticky; top: 100px; }
.cat-faq-header .section-title { font-size: clamp(22px, 3vw, 32px); margin-top: 10px; }

@media (max-width: 768px) {
  .cat-faq-inner { grid-template-columns: 1fr; gap: 24px; }
  .cat-faq-header { position: static; }
}

/* ══════════════════════════════════════════════════
   КАТЕГОРИЯ: SEO-текст
══════════════════════════════════════════════════ */
.cat-seo-section {
  padding: clamp(32px, 4vw, 56px) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.cat-seo-inner { max-width: 860px; }
.cat-seo-title {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--blue-900); margin-bottom: 20px;
  letter-spacing: .01em;
}
.cat-seo-text { color: var(--gray-600); }
.cat-seo-text p { margin-bottom: 1em; line-height: 1.75; }

/* ══════════════════════════════════════════════════
   ТОВАР: общие блоки (применение, преимущества, FAQ)
══════════════════════════════════════════════════ */
.product-section-block {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-100);
}
.product-section-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--blue-900); margin-bottom: 24px;
  letter-spacing: .01em;
}
.product-section-title svg { stroke: var(--blue-500); flex-shrink: 0; }

/* ── Область применения ── */
.product-applications-grid {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.product-application-item {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 40px; padding: 9px 16px;
  transition: all var(--transition);
}
.product-application-item:hover {
  background: var(--blue-100); border-color: var(--blue-300);
  transform: translateY(-1px);
}
.product-app-icon { display: flex; align-items: center; flex-shrink: 0; }
.product-app-icon svg { width: 16px; height: 16px; stroke: var(--blue-600); fill: none; stroke-width: 2; }
.product-app-text { font-size: 14px; font-weight: 600; color: var(--blue-800); }

/* ── Преимущества товара ── */
.product-advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.product-advantage-card {
  display: flex; align-items: flex-start; gap: 14px;
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); padding: 18px 20px;
  transition: all var(--transition);
}
.product-advantage-card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 4px 16px rgba(26,61,143,.08);
  transform: translateY(-2px);
}
.product-adv-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  background: var(--blue-50); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.product-advantage-card:hover .product-adv-icon { background: var(--blue-600); }
.product-adv-icon svg { width: 20px; height: 20px; stroke: var(--blue-600); fill: none; stroke-width: 2; transition: stroke var(--transition); }
.product-advantage-card:hover .product-adv-icon svg { stroke: var(--white); }
.product-adv-body { flex: 1; min-width: 0; }
.product-adv-title { font-size: 15px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; }
.product-adv-text  { font-size: 13px; color: var(--gray-600); line-height: 1.55; }

/* ── 8 (бывш. 7). ADVANTAGES ── */
.advantages-section { padding: var(--section-pad) 0; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.advantages-section.bg-white { background: var(--white); }
.advantages-section.bg-dark  { background: var(--blue-dark); }
.advantages-section.bg-dark .section-title,
.advantages-section.bg-dark .section-sub { color: var(--white); }
.adv-header { text-align: center; margin-bottom: clamp(32px,4vw,52px); }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.adv-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: clamp(22px,3vw,32px) clamp(18px,2.5vw,24px); transition: all var(--transition); position: relative; overflow: hidden; }
.adv-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--blue-600); transform:scaleX(0); transform-origin:left; transition:transform var(--transition); }
.adv-card:hover { box-shadow:0 8px 32px rgba(26,61,143,.12); transform:translateY(-4px); border-color:var(--blue-100); }
.adv-card:hover::before { transform:scaleX(1); }
.adv-icon { width:52px; height:52px; background:var(--blue-50); border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:16px; transition:background var(--transition); flex-shrink:0; }
.adv-icon img, .adv-icon svg { width:24px; height:24px; stroke:var(--blue-600); fill:none; stroke-width:2; transition:all var(--transition); }
.adv-card:hover .adv-icon { background:var(--blue-600); }
.adv-card:hover .adv-icon svg { stroke:white; }
.adv-title { font-size:16px; font-weight:700; color:var(--blue-900); margin-bottom:8px; }
.adv-text  { font-size:14px; color:var(--gray-600); line-height:1.65; }

/* ── 8. CATEGORIES ── */
.categories-section { padding: var(--section-pad) 0; background: var(--white); }
.categories-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px,4vw,44px); flex-wrap: wrap; gap: 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cat-card { border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); text-decoration: none; display: block; border: 1px solid var(--gray-100); position: relative; }
.cat-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(26,61,143,.14); }
.cat-thumb { aspect-ratio: 1 / 1; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--transition); }
.cat-thumb-icon { font-size: clamp(44px,6vw,60px); filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); transition: transform var(--transition); }
.cat-card:hover .cat-thumb img,
.cat-card:hover .cat-thumb-icon { transform: scale(1.08); }
.cat-body { padding: 16px 18px 20px; }
.cat-name  { font-size: 15px; font-weight: 700; color: var(--blue-900); margin-bottom: 4px; line-height: 1.3; }
.cat-count { font-size: 13px; color: var(--gray-400); }
.cat-arrow { position: absolute; bottom: 18px; right: 18px; color: var(--blue-400); opacity: 0; transition: all var(--transition); font-size: 20px; line-height: 1; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(3px); }
/* Color themes */
.cat-blue  .cat-thumb{background:linear-gradient(135deg,#EDF4FF,#D6E6FB)}
.cat-red   .cat-thumb{background:linear-gradient(135deg,#FFF0ED,#FDDDD5)}
.cat-green .cat-thumb{background:linear-gradient(135deg,#EAF3DE,#D2EAB8)}
.cat-gray  .cat-thumb{background:linear-gradient(135deg,#F7F8FA,#EAEDF2)}
.cat-teal  .cat-thumb{background:linear-gradient(135deg,#E1F5EE,#B8E8D6)}
.cat-amber .cat-thumb{background:linear-gradient(135deg,#FAEEDA,#F5D49A)}
.cat-dark  .cat-thumb{background:linear-gradient(135deg,#2C2C2A,#1A202C)}
.cat-indigo .cat-thumb{background:linear-gradient(135deg,#EEEDFE,#CECBF6)}

/* ── 9. STATS ── */
.stats-section { padding: clamp(48px,6vw,72px) 0; background: var(--blue-800); position: relative; overflow: hidden; }
.stats-section::before { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:40px 40px; }
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats-grid::before { content:''; position:absolute; inset:0; border:1px solid rgba(255,255,255,.08); border-radius:var(--radius-lg); }
.stat-item { padding: clamp(28px,4vw,40px) clamp(18px,3vw,32px); text-align: center; border-right: 1px solid rgba(255,255,255,.08); transition: background var(--transition); }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.04); }
.stat-value       { font-family: var(--font-head); font-size: clamp(42px,5vw,58px); color: var(--white); line-height: 1; }
.stat-value .accent { color: var(--accent); }
.stat-label       { font-size: clamp(13px,1.5vw,14px); color: var(--blue-200); margin-top: 8px; font-weight: 500; }

/* ── 10. PRODUCTS GRID ── */
.products-section { padding: var(--section-pad) 0; background: var(--gray-50); }
.products-header  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px,4vw,44px); flex-wrap: wrap; gap: 16px; }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prod-card { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.prod-card:hover { box-shadow: 0 12px 36px rgba(26,61,143,.12); transform: translateY(-4px); border-color: var(--blue-200); }
.prod-img  { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--gray-100); overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform var(--transition); }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-img-placeholder { font-size: 60px; }
.prod-body  { padding: clamp(16px,2vw,20px); flex: 1; display: flex; flex-direction: column; }
.prod-badge { display: inline-block; background: var(--blue-50); color: var(--blue-600); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.prod-badge.out-of-stock { background: #FFF0ED; color: #C0392B; }
.prod-name  { font-size: 15px; font-weight: 700; color: var(--blue-900); margin-bottom: 12px; line-height: 1.3; text-decoration: none; display: block; }
.prod-name:hover { color: var(--blue-500); }
.prod-specs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; flex: 1; }
.prod-spec  { display: flex; justify-content: space-between; font-size: 13px; border-bottom: 1px dashed var(--gray-100); padding-bottom: 5px; gap: 8px; }
.prod-spec-label { color: var(--gray-600); flex-shrink: 0; }
.prod-spec-val   { font-weight: 600; color: var(--gray-800); text-align: right; }
/* ── Блок цен на карточке товара ── */
.prod-prices-wrap {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Список цен */
.prod-prices { display: flex; flex-direction: column; gap: 6px; }
.prod-price-row {
  display: flex; align-items: baseline;
  justify-content: space-between; gap: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--gray-100);
}
.prod-price-row:last-child { border-bottom: none; padding-bottom: 0; }

.prod-price-lbl {
  font-size: 12px; color: var(--gray-600);
  flex: 1; line-height: 1.3;
}
.prod-price-num {
  font-family: var(--font-head);
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--blue-700); white-space: nowrap; line-height: 1;
  flex-shrink: 0;
}
.prod-price-unit {
  font-family: var(--font-body);
  font-size: 11px; font-weight: 500;
  color: var(--gray-400); margin-left: 1px;
}
.prod-price-request {
  font-size: 14px; color: var(--gray-400);
  font-style: italic;
}

/* Кнопка */
.prod-btn {
  background: var(--blue-600); color: white; border: none;
  padding: 10px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all var(--transition); white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center;
  align-self: flex-start;
}
.prod-btn:hover { background: var(--blue-500); transform: translateY(-1px); }

/* ── Сетка цен на странице товара ── */
.product-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.product-prices-grid.single-price { grid-template-columns: 1fr; max-width: 280px; }

.product-price-card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
  position: relative; overflow: hidden;
}
.product-price-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--blue-600);
}
.product-price-card:hover {
  box-shadow: 0 4px 16px rgba(26,61,143,.12);
  border-color: var(--blue-300);
}
.pp-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--blue-600);
  margin-bottom: 8px; line-height: 1.3;
}
.pp-value {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  color: var(--blue-800); line-height: 1;
}
.pp-unit {
  font-size: 12px; color: var(--gray-400);
  margin-top: 5px; font-weight: 500;
}
.product-price-unit-inline {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 500;
  color: var(--gray-400);
}

/* ── 11. CTA + FORM ── */
.cta-section {
  padding: var(--section-pad) 0; background: var(--blue-dark);
  background-image: radial-gradient(ellipse at 20% 50%, rgba(30,80,184,.3) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(232,80,26,.15) 0%, transparent 60%);
}
.cta-inner  { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.cta-text .section-title { color: var(--white); }
.cta-text .section-sub   { color: var(--blue-200); }
.cta-text .section-tag   { background: rgba(232,80,26,.15); color: var(--accent-light); border-color: rgba(232,80,26,.3); }
.cta-bullets { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.cta-bullet  { display: flex; align-items: center; gap: 12px; color: var(--blue-200); font-size: 15px; }
.cta-bullet-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.cta-form       { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: clamp(24px,3vw,36px); }
.cta-form-title { font-size: clamp(17px,2.2vw,20px); font-weight: 700; color: var(--white); margin-bottom: 6px; }
.cta-form-sub   { font-size: 14px; color: var(--blue-300); margin-bottom: 22px; }

/* CF7 / Generic form styles */
.form-field { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--blue-200); margin-bottom: 6px; }
.form-input,
.wpcf7-text, .wpcf7-tel, .wpcf7-email, .wpcf7-textarea, .wpcf7-select {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius); padding: 13px 16px; color: var(--white); font-family: var(--font-body); font-size: 15px;
  transition: border-color var(--transition); outline: none;
}
.form-input::placeholder,
.wpcf7-text::placeholder, .wpcf7-tel::placeholder, .wpcf7-email::placeholder, .wpcf7-textarea::placeholder { color: rgba(255,255,255,.35); }
.form-input:focus,
.wpcf7-text:focus, .wpcf7-tel:focus, .wpcf7-email:focus, .wpcf7-textarea:focus { border-color: var(--blue-400); background: rgba(255,255,255,.12); }
.wpcf7-textarea { resize: vertical; min-height: 80px; }
.wpcf7-submit,
.form-submit {
  width: 100%; padding: 15px; background: var(--accent); color: white; border: none;
  border-radius: var(--radius); font-family: var(--font-body); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all var(--transition); letter-spacing: .02em; margin-top: 4px;
}
.wpcf7-submit:hover, .form-submit:hover { background: var(--accent-light); transform: translateY(-2px); }
.form-note { font-size: 12px; color: rgba(255,255,255,.35); text-align: center; margin-top: 10px; }
.wpcf7-response-output { border-radius: var(--radius); padding: 10px 14px; font-size: 14px; margin-top: 10px; }

/* Light CF7 form (on white bg) */
.form-light .form-label     { color: var(--gray-600); }
.form-light .form-input,
.form-light .wpcf7-text, .form-light .wpcf7-tel, .form-light .wpcf7-email, .form-light .wpcf7-textarea {
  background: var(--white); border: 1px solid var(--gray-200); color: var(--gray-800);
}
.form-light .form-input::placeholder,
.form-light .wpcf7-text::placeholder { color: var(--gray-400); }
.form-light .form-input:focus,
.form-light .wpcf7-text:focus { border-color: var(--blue-400); background: var(--white); box-shadow: 0 0 0 3px rgba(26,61,143,.1); }

/* ── 12. REVIEWS ── */
.reviews-section { padding: var(--section-pad) 0; background: var(--white); }
.reviews-header  { text-align: center; margin-bottom: clamp(32px,4vw,52px); }
.reviews-header .section-sub { max-width: 560px; margin: 14px auto 0; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.rev-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: clamp(20px,3vw,28px); transition: all var(--transition); display: flex; flex-direction: column; }
.rev-card:hover { box-shadow: 0 8px 28px rgba(26,61,143,.08); transform: translateY(-3px); border-color: var(--blue-100); }
.rev-stars  { display: flex; gap: 3px; margin-bottom: 14px; }
.rev-stars span { color: #F5A623; font-size: 16px; }
.rev-text   { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; font-style: italic; flex: 1; }
.rev-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-600); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; overflow: hidden; }
.rev-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rev-name    { font-size: 14px; font-weight: 700; color: var(--blue-900); }
.rev-company { font-size: 12px; color: var(--gray-400); }

/* ── 13. PARTNERS ── */
.partners-section { padding: clamp(40px,5vw,56px) 0; border-top: 1px solid var(--gray-100); border-bottom: 1px solid var(--gray-100); }
.partners-section.bg-gray { background: var(--gray-50); }
.partners-section.bg-white { background: var(--white); }
.partners-label { text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-400); margin-bottom: 28px; }
.partners-row   { display: flex; align-items: center; justify-content: center; gap: clamp(24px,4vw,48px); flex-wrap: wrap; }
.partner-item   { opacity: .45; transition: all var(--transition); filter: grayscale(1); }
.partner-item:hover { opacity: 1; filter: grayscale(0); }
.partner-item img { max-height: 44px; width: auto; object-fit: contain; }
.partner-name   { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--gray-400); font-family: var(--font-head); }

/* ── 14. TEXT + IMAGE ── */
.text-image-section { padding: var(--section-pad) 0; }
.text-image-inner   { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: center; }
.text-image-inner.img-left  .ti-image { order: -1; }
.text-image-inner.img-right .ti-image { order: 1; }
.ti-content .section-sub { max-width: 480px; }
.ti-content .btn { margin-top: 24px; }
.ti-image img { border-radius: var(--radius-lg); width: 100%; height: auto; object-fit: cover; box-shadow: 0 16px 48px rgba(10,22,40,.15); }

/* ── 15. BLOG POSTS ── */
.blog-section { padding: var(--section-pad) 0; background: var(--white); }
.blog-header  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px,4vw,44px); flex-wrap: wrap; gap: 16px; }
.blog-grid    { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card    { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); display: flex; flex-direction: column; }
.post-card:hover { box-shadow: 0 10px 32px rgba(26,61,143,.1); transform: translateY(-4px); border-color: var(--blue-100); }
.post-thumb   { height: clamp(160px,18vw,200px); overflow: hidden; background: var(--gray-50); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-body    { padding: clamp(18px,2.5vw,24px); flex: 1; display: flex; flex-direction: column; }
.post-meta    { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-date    { font-size: 12px; color: var(--gray-400); }
.post-cat     { font-size: 11px; font-weight: 700; color: var(--blue-600); background: var(--blue-50); padding: 2px 8px; border-radius: 4px; }
.post-title   { font-size: 16px; font-weight: 700; color: var(--blue-900); line-height: 1.35; margin-bottom: 10px; text-decoration: none; display: block; flex: 1; }
.post-title:hover { color: var(--blue-500); }
.post-excerpt { font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; }
.post-read-more { font-size: 13px; font-weight: 700; color: var(--blue-600); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; transition: gap var(--transition); }
.post-read-more:hover { gap: 9px; color: var(--blue-400); }

/* ── 16. CATALOG ARCHIVE ── */
.catalog-archive-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: var(--section-pad) 0; align-items: start; }
.catalog-sidebar { position: sticky; top: 90px; }
.catalog-sidebar-inner { background: var(--white); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 24px; }
.sidebar-title    { font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--gray-100); }
.cat-filter-list  { display: flex; flex-direction: column; gap: 4px; }
.cat-filter-item a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--radius); font-size: 14px; color: var(--gray-600); text-decoration: none; transition: all var(--transition); font-weight: 500; }
.cat-filter-item a:hover,
.cat-filter-item.current-cat a { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.cat-filter-count { font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--gray-400); padding: 2px 8px; border-radius: 40px; }
.cat-filter-item a:hover .cat-filter-count,
.cat-filter-item.current-cat .cat-filter-count { background: var(--blue-100); color: var(--blue-600); }
.catalog-main {}
.catalog-top   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.catalog-count { font-size: 14px; color: var(--gray-400); }
.catalog-sort  { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); }
.catalog-sort select { padding: 7px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius); font-size: 14px; font-family: var(--font-body); color: var(--gray-800); outline: none; }
.catalog-sort select:focus { border-color: var(--blue-400); }

/* ── 17. SINGLE PRODUCT ── */
.single-product-wrap { padding: var(--section-pad) 0; }
.single-product-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,60px); align-items: start; }
.product-gallery-wrap { position: sticky; top: 90px; }
.product-main-img { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-100); margin-bottom: 12px; background: var(--gray-50); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.product-main-img img { width: 100%; height: auto; object-fit: contain; padding: 20px; max-height: 400px; }
.product-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-thumb  { width: 72px; height: 72px; border-radius: var(--radius); border: 2px solid var(--gray-100); overflow: hidden; cursor: pointer; transition: border-color var(--transition); background: var(--gray-50); }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.product-thumb.active,
.product-thumb:hover { border-color: var(--blue-400); }
.product-thumb.active,
.product-thumb:hover { border-color: var(--blue-400); }

.product-info {}
.product-breadcrumb { font-size: 13px; color: var(--gray-400); margin-bottom: 14px; }
.product-breadcrumb a { color: var(--gray-400); text-decoration: none; transition: color var(--transition); }
.product-breadcrumb a:hover { color: var(--blue-500); }
.product-badge-row  { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.product-cat-badge  { font-size: 12px; font-weight: 700; background: var(--blue-50); color: var(--blue-600); padding: 4px 12px; border-radius: 4px; }
.product-stock-badge.in-stock  { background: #EAF3DE; color: #3B6D11; }
.product-stock-badge.out-stock { background: #FFF0ED; color: #C0392B; }
.product-stock-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; }
.product-title      { font-family: var(--font-head); font-size: clamp(26px,3.5vw,40px); color: var(--blue-900); line-height: 1.05; margin-bottom: 16px; letter-spacing: .01em; }
.product-excerpt    { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 24px; }
.product-price-box  { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius-lg); padding: 20px 24px; margin-bottom: 24px; }
.product-price-val  { font-family: var(--font-head); font-size: clamp(32px,4vw,44px); color: var(--blue-700); line-height: 1; }
.product-price-note { font-size: 13px; color: var(--gray-400); margin-top: 4px; }
.product-specs-table { margin-bottom: 24px; }
.product-specs-table .spec-row { display: flex; border-bottom: 1px solid var(--gray-100); padding: 10px 0; font-size: 14px; }
.product-specs-table .spec-row:last-child { border-bottom: none; }
.spec-key   { color: var(--gray-600); flex: 0 0 180px; }
.spec-val   { font-weight: 600; color: var(--gray-800); }
.product-actions { display: flex; flex-direction: column; gap: 12px; }
.product-docs     { margin-top: 20px; }
.product-docs-title { font-size: 15px; font-weight: 700; color: var(--blue-900); margin-bottom: 10px; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius); margin-bottom: 8px; text-decoration: none; color: var(--gray-800); transition: all var(--transition); font-size: 14px; font-weight: 600; }
.doc-item:hover { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-600); }

/* ── 18. BREADCRUMBS ── */
.breadcrumbs { padding: 14px 0; border-bottom: 1px solid var(--gray-100); background: var(--white); }
.breadcrumb-list { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--gray-400); }
.breadcrumb-list a { color: var(--gray-400); text-decoration: none; transition: color var(--transition); }
.breadcrumb-list a:hover { color: var(--blue-500); }
.breadcrumb-sep { font-size: 11px; opacity: .5; }
.breadcrumb-current { color: var(--gray-600); font-weight: 600; }

/* ── 19. PAGE HEADER ── */
.page-header { background: var(--blue-900); padding: clamp(32px,5vw,56px) 0; }
.page-header-inner { }
.page-header-title { font-family: var(--font-head); font-size: clamp(28px,4vw,48px); color: var(--white); line-height: 1; letter-spacing: .01em; }
.page-header-sub   { font-size: 16px; color: var(--blue-200); margin-top: 10px; }

/* ── 20. SINGLE POST / PAGE ── */
.page-content-wrap { padding: var(--section-pad) 0; }
.page-content-inner { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.page-content-inner.no-sidebar { grid-template-columns: 1fr; max-width: 860px; }
.entry-content { min-width: 0; }
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4 { font-family: var(--font-head); color: var(--blue-900); margin: 1.5em 0 .6em; letter-spacing: .01em; }
.entry-content h2 { font-size: clamp(22px,3vw,32px); }
.entry-content h3 { font-size: clamp(18px,2.5vw,24px); }
.entry-content p  { margin-bottom: 1.2em; }
.entry-content a  { color: var(--blue-500); text-decoration: underline; text-decoration-color: rgba(30,80,184,.3); transition: color var(--transition); }
.entry-content a:hover { color: var(--blue-400); }
.entry-content ul,.entry-content ol { padding-left: 1.5em; margin-bottom: 1.2em; list-style: unset; }
.entry-content img { border-radius: var(--radius); }

/* ── 21. SIDEBAR WIDGET ── */
.widget { margin-bottom: 24px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 16px; font-weight: 700; color: var(--blue-900); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blue-600); }

/* ── 22. PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: var(--radius); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--gray-600); background: var(--white); border: 1px solid var(--gray-200); transition: all var(--transition); }
.page-numbers:hover { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-600); }
.page-numbers.current { background: var(--blue-600); border-color: var(--blue-600); color: white; }
.page-numbers.dots { border: none; background: none; width: auto; }

/* ── 23. FOOTER ── */
.site-footer { background: var(--blue-dark); color: var(--blue-200); }
.footer-top   { padding: clamp(40px,6vw,60px) 0 clamp(32px,5vw,48px); border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(24px,4vw,48px); }
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-desc  { font-size: 14px; color: var(--blue-300); line-height: 1.7; margin-bottom: 20px; }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact  { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--blue-200); text-decoration: none; transition: color var(--transition); }
.footer-contact:hover { color: var(--white); }
.footer-contact svg { width: 16px; height: 16px; stroke: var(--blue-400); fill: none; stroke-width: 2; flex-shrink: 0; }
.footer-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 18px; }
.footer-links   { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--blue-300); text-decoration: none; transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }
.footer-social  { display: flex; gap: 10px; margin-top: 18px; }
.social-icon    { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background var(--transition); text-decoration: none; }
.social-icon:hover { background: var(--blue-600); }
.social-icon svg { width: 18px; height: 18px; stroke: var(--blue-300); fill: none; stroke-width: 2; }
.footer-bottom  { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy,
.footer-dev { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-dev a { color: rgba(255,255,255,.3); text-decoration: none; }

/* ── 24. RESPONSIVE — TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  /* Header: уменьшаем gap и шрифты чтобы всё влезало */
  .header-inner { gap: 16px; }
  .logo-name    { font-size: 18px; }
  .logo-slogan  { display: none; }
  .primary-nav > .nav-list > .menu-item > .nav-link { padding: 7px 9px; font-size: 13px; }
  .header-phone-num { font-size: 15px; }
  .header-phone-sub { display: none; }

  .hero-desc   { max-width: 600px; }
  .hero-stats  { flex-wrap: wrap; }

  .cta-inner  { grid-template-columns: 1fr; gap: 40px; }
  .text-image-inner { grid-template-columns: 1fr; gap: 32px; }
  .text-image-inner.img-left .ti-image,
  .text-image-inner.img-right .ti-image { order: 0; }

  .single-product-inner { grid-template-columns: 1fr; }
  .product-gallery-wrap { position: static; }

  .page-content-inner { grid-template-columns: 1fr; }
  .page-content-inner .sidebar { display: none; }

  .catalog-archive-wrap { grid-template-columns: 1fr; }
  .catalog-sidebar      { position: static; display: none; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════
   HEADER TABLET + MOBILE (max 960px) — BOTTOM SHEET
══════════════════════════════════════════════════ */
@media (max-width: 960px) {

  /* Показываем hamburger и телефон-иконку */
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; }
  .header-call-mobile {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.1); flex-shrink: 0;
    text-decoration: none; transition: background var(--transition);
  }
  .header-call-mobile:hover { background: var(--accent); }
  .header-call-mobile svg { width: 17px; height: 17px; stroke: var(--white); fill: none; stroke-width: 2; display: block; }
  .header-phone-wrap { display: none; }
  .header-inner { gap: 10px; padding: 12px 0; }
  .logo-name  { font-size: 18px; }
  .logo-slogan { display: none; }

  /* ── OVERLAY ── */
  /* z-index: 150 — выше контента страницы, но ниже site-header (200)
     чтобы панель nav внутри header рендерилась поверх overlay        */
  .bs-overlay {
    display: none; position: fixed; inset: 0; z-index: 150;
    background: rgba(10,22,40,.6);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .bs-overlay.bs-overlay--visible { display: block; }
  .bs-overlay.bs-overlay--active  { opacity: 1; }

  /* ── BOTTOM SHEET PANEL ── */
  /* Nav внутри site-header (z-index: 200), поэтому nav тоже
     рендерится на уровне 200 в корневом stacking-контексте —
     выше overlay (150) и всего контента страницы               */
  .primary-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    flex: none;
    display: block !important; /* всегда в DOM, скрыт через transform */
    background: var(--white);
    border-radius: 20px 20px 0 0;
    max-height: 85svh;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(100%);
    transition: transform .36s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 48px rgba(10,22,40,.25);
  }
  .primary-nav.open { transform: translateY(0); }

  /* Drag handle */
  .bs-drag-handle {
    display: flex; justify-content: center;
    padding: 14px 0 8px; cursor: grab;
  }
  .bs-drag-pill {
    width: 40px; height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
  }

  /* Sheet header */
  .bs-sheet-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--gray-100);
  }
  .bs-sheet-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .12em; color: var(--gray-400);
  }
  .bs-close-btn {
    width: 32px; height: 32px;
    background: var(--gray-100); border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
  }
  .bs-close-btn:hover { background: var(--gray-200); }
  .bs-close-btn svg { width: 15px; height: 15px; stroke: var(--gray-600); flex-shrink: 0; }

  /* Nav-list */
  .primary-nav > .nav-list {
    display: flex; flex-direction: column; gap: 0;
    padding: 4px 0; margin: 0; list-style: none;
  }

  /* Пункты первого уровня */
  .primary-nav > .nav-list > .menu-item {
    border-bottom: 1px solid var(--gray-100);
  }
  .primary-nav > .nav-list > .menu-item:last-of-type { border-bottom: none; }

  /* Ссылки */
  .primary-nav > .nav-list > .menu-item > .nav-link {
    display: flex; align-items: center;
    padding: 15px 20px; padding-right: 52px;
    font-size: 16px; font-weight: 600;
    color: var(--blue-900);
    border-radius: 0; width: 100%; white-space: normal;
    transition: background var(--transition), color var(--transition);
  }
  .primary-nav > .nav-list > .menu-item > .nav-link:hover,
  .primary-nav > .nav-list > .menu-item > .nav-link.active {
    background: none; color: var(--blue-600);
  }
  .primary-nav > .nav-list > .menu-item.current-menu-item > .nav-link {
    color: var(--blue-600);
    background: none;
  }

  /* Dropdown toggle */
  .primary-nav > .nav-list > .menu-item.has-dropdown { position: relative; }
  .primary-nav > .nav-list > .menu-item > .dropdown-toggle {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    padding: 8px; color: var(--gray-400); z-index: 1;
  }
  .primary-nav > .nav-list > .menu-item > .dropdown-toggle svg { stroke: var(--gray-400); }

  /* Sheet footer (контакты) */
  .bs-sheet-footer {
    display: flex; flex-direction: column; gap: 12px;
    padding: 16px 20px 32px;
    border-top: 1px solid var(--gray-100);
    background: var(--gray-50);
    margin-top: 4px;
  }
  .bs-footer-phone {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; padding: 10px 14px;
    background: var(--white); border: 1px solid var(--gray-100);
    border-radius: var(--radius); transition: border-color var(--transition);
  }
  .bs-footer-phone:hover { border-color: var(--blue-300); }
  .bs-footer-phone svg { width: 18px; height: 18px; stroke: var(--blue-500); flex-shrink: 0; fill: none; stroke-width: 2; }
  .bs-footer-phone-num { display: block; font-size: 17px; font-weight: 800; color: var(--blue-900); }
  .bs-footer-phone-sub { display: block; font-size: 11px; color: var(--gray-400); }
  .bs-footer-email {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; font-size: 14px; color: var(--gray-600);
    padding: 8px 14px; border-radius: var(--radius);
    transition: color var(--transition);
  }
  .bs-footer-email:hover { color: var(--blue-600); }
  .bs-footer-email svg { width: 16px; height: 16px; stroke: var(--gray-400); flex-shrink: 0; fill: none; stroke-width: 2; }
  .bs-footer-cta { width: 100%; justify-content: center; }

  /* Скрываем старый mobile-nav-footer (заменён bs-sheet-footer) */
  .mobile-nav-footer { display: none; }

  /* Скрываем bs-элементы на десктопе */
  .bs-drag-handle,
  .bs-sheet-header,
  .bs-sheet-footer { /* видны только в этом breakpoint */ }
}

/* ── 25. RESPONSIVE — MOBILE (max 768px) ── */
@media (max-width: 768px) {
  .topbar { display: none; }

  .adv-grid  { grid-template-columns: 1fr 1fr; }
  .cat-grid  { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr 1fr; }
  .rev-grid  { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item  { border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }

  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  .page-header-title { font-size: clamp(24px,6vw,36px); }

  .hero-scroll-btn { display: none; }
  .hero-trust { gap: 8px; }
  .hero-trust-item { font-size: 12px; }

  .categories-header,
  .products-header,
  .blog-header { flex-direction: column; align-items: flex-start; }
}

/* ── 26. RESPONSIVE — SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
  /* Header: компактный логотип */
  .logo-icon { width: 34px; height: 34px; }
  .logo-icon svg { width: 18px; height: 18px; }
  .logo-name { font-size: 16px; }
  .header-inner { padding: 10px 0; gap: 8px; }

  .adv-grid  { grid-template-columns: 1fr; }
  .cat-grid  { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  .hero-actions .btn { width: 100%; }
  .hero-stats   { gap: 16px; }

  .spec-key { flex: 0 0 140px; }
}

/* ── 27. PRINT STYLES ── */
@media print {
  .site-header, .site-footer, .topbar { display: none; }
  .entry-content { font-size: 12pt; }
}

/* ── 28. ACCESSIBILITY ── */
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 6px; padding: 8px 16px; background: var(--blue-600); color: white; font-weight: 700; border-radius: 0 0 var(--radius) 0; text-decoration: none; z-index: 9999; }
.skip-link:focus { left: 0; }
