/* ============================================================
   LOPAL KAZAKHSTAN & ТОО «ТОПМАКОЙЛ» (TOPMAQ OIL)
   Официальный витринный сайт представительства Lopal в Казахстане
   Современная дизайн-система: Светлая и Тёмная темы (Dual Theme)
   ============================================================ */

:root {
  /* Светлая тема (Light Theme - Clean Architectural White, Emerald & Gold) */
  --bg-page: #F4F6F9;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-secondary: #EAEFF5;
  --bg-tertiary: #DCE4EE;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --nav-pill-bg: #EEF2F6;
  
  --ink-primary: #0F172A;
  --ink-secondary: #334155;
  --ink-muted: #64748B;
  --ink-inverse: #FFFFFF;
  
  /* Lopal Emerald Green */
  --lopal-green: #00843D;
  --lopal-green-hover: #006B31;
  --lopal-green-light: rgba(0, 132, 61, 0.10);
  --lopal-green-glow: rgba(0, 132, 61, 0.22);
  
  /* Topmaq Oil Gold */
  --topmaq-gold: #C5A059;
  --topmaq-gold-hover: #B08B42;
  --topmaq-gold-light: rgba(197, 160, 89, 0.12);
  --topmaq-gold-border: rgba(197, 160, 89, 0.38);
  --topmaq-gold-glow: rgba(197, 160, 89, 0.20);

  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.14);
  
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.11);
  --shadow-gold: 0 12px 32px rgba(197, 160, 89, 0.18);
  
  --hero-bg-gradient: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 55%, #E8EEF5 100%);
  --hero-text-main: #0F172A;
  --hero-text-sub: #475569;
  --hero-pattern-color: rgba(15, 23, 42, 0.03);
  --hero-card-bg: rgba(255, 255, 255, 0.85);
  --hero-border: rgba(15, 23, 42, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --container: 1280px;
  --header-h: 82px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* Container */
.container {
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

/* ============================================================
   Современная шапка и капсульное меню (Modern Header & Nav)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-medium);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

/* Dual Brand Logo */
.brand-combo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-lopal-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

.brand-divider {
  width: 1px;
  height: 26px;
  background: var(--border-medium);
}

.brand-topmaq-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--topmaq-gold-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* В верхнем левом углу (и в светлой, и в тёмной теме) всегда используется тёмный вариант логотипа Topmaq Oil */
.brand-topmaq-light { display: none !important; }
.brand-topmaq-dark { display: block !important; }

/* Modern Capsule Navigation Menu */
.site-nav {
  background: var(--nav-pill-bg);
  border: 1px solid var(--border-light);
  padding: 5px;
  border-radius: var(--radius-full);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 8px 15px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover {
  color: var(--ink-primary);
  background: var(--bg-surface);
}

.site-nav a.is-active {
  color: #FFFFFF;
  background: var(--lopal-green);
  box-shadow: 0 2px 10px var(--lopal-green-glow);
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Unified Header Buttons */
.btn-oil-selector {
  display: none !important;
}

/* Theme Toggle Button (Hidden - Light Theme Only) */
.theme-toggle-btn {
  display: none !important;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface);
  padding: 9px;
  flex-direction: column;
  justify-content: space-around;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* ============================================================
   Единая система кнопок (Unified Buttons)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--lopal-green);
  color: #FFFFFF;
  box-shadow: 0 4px 16px var(--lopal-green-glow);
}
.btn-primary:hover {
  background: var(--lopal-green-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--lopal-green-glow);
}

.btn-gold {
  background: var(--lopal-green);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: 0 4px 16px var(--lopal-green-glow);
}
.btn-gold:hover {
  background: var(--lopal-green-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px var(--lopal-green-glow);
}

.btn-outline {
  border: 1px solid var(--border-medium);
  color: var(--ink-primary);
  background: var(--bg-surface);
}
.btn-outline:hover {
  border-color: var(--lopal-green);
  color: var(--lopal-green);
  background: var(--lopal-green-light);
}

.btn-outline-gold {
  border: 1px solid var(--border-medium);
  color: var(--ink-primary);
  background: var(--bg-surface);
}
.btn-outline-gold:hover {
  border-color: var(--lopal-green);
  color: var(--lopal-green);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15.5px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* ============================================================
   Секции и заголовки
   ============================================================ */
.section {
  padding-block: clamp(32px, 4vw, 52px);
}

/* Баннер заголовка каталога с фирменным фоном Lopal */
.catalog-hero-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 4.5vw, 52px);
  margin-bottom: 28px;
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.52) 0%, rgba(8, 14, 26, 0.24) 55%, rgba(8, 14, 26, 0.0) 100%),
    url('../assets/branding/catalog-hero-sunrise.jpg') center 38% / cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.catalog-hero-banner .section-head {
  margin-bottom: 0;
  max-width: 780px;
}

.catalog-hero-banner .kicker {
  color: #FFE082;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 224, 130, 0.35);
  backdrop-filter: blur(6px);
  margin-bottom: 14px;
}

.catalog-hero-banner .section-title {
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.catalog-hero-banner .section-subtitle {
  color: #F1F5F9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.catalog-hero-banner .section-subtitle strong {
  color: #6EE7B7;
}

.section-secondary {
  background: var(--bg-secondary);
}

.section-head {
  max-width: 820px;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lopal-green);
  margin-bottom: 12px;
}

.kicker-gold {
  color: var(--topmaq-gold);
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 2.65rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.section-subtitle {
  margin-top: 14px;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--ink-secondary);
  line-height: 1.65;
}

/* ============================================================
   Главный экран (Hero Section) с логотипом ТОО «ТопМакОйл» справа
   ============================================================ */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(8, 14, 26, 0.65) 0%, rgba(8, 14, 26, 0.38) 55%, rgba(8, 14, 26, 0.15) 100%),
    url('../assets/branding/catalog-hero-sunrise.jpg') center 38% / cover no-repeat;
  color: #FFFFFF;
  padding-block: clamp(28px, 3.5vw, 44px) clamp(36px, 4.5vw, 56px);
  border-bottom: 1px solid var(--hero-border);
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(74, 222, 128, 0.45);
  backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 700;
  color: #4ADE80;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.35rem);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.hero h1 span {
  color: #4ADE80;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
  color: #F1F5F9;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero-distributor-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(9, 13, 22, 0.72);
  border: 1px solid var(--topmaq-gold-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(12px);
  max-width: 560px;
  box-shadow: var(--shadow-sm);
}

.distributor-text h4 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--topmaq-gold);
  margin-bottom: 4px;
}

.distributor-text p {
  font-size: 13px;
  color: #E2E8F0;
  line-height: 1.5;
}

/* Правый блок Hero с фирменным логотипом ТОО «ТопМакОйл» */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 53px;
}

.hero-topmaq-showcase {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--topmaq-gold-border);
  box-shadow: var(--shadow-lg), 0 0 40px var(--topmaq-gold-glow);
  background: var(--bg-surface);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-topmaq-showcase:hover {
  transform: translateY(-4px);
}

.hero-topmaq-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-topmaq-light { display: none !important; }
.hero-topmaq-dark { display: block !important; }

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stat dt {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  line-height: 1.1;
}

.hero-stat dt .gold-text {
  color: #FFE082;
}

.hero-stat dd {
  font-size: 13px;
  color: #E2E8F0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  margin-top: 6px;
}

/* ============================================================
   Единый стиль кнопок фильтрации категорий (без цифр и разнобоя)
   ============================================================ */
.category-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cat-tab-btn {
  padding: 11px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cat-tab-btn:hover {
  border-color: var(--lopal-green);
  color: var(--lopal-green);
  background: var(--lopal-green-light);
}

.cat-tab-btn.is-active {
  background: var(--lopal-green);
  border-color: var(--lopal-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--lopal-green-glow);
}

/* ============================================================
   Карточки продукции (Product Cards Grid)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-medium);
}

.product-card-top {
  position: relative;
  background: var(--bg-secondary);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  overflow: hidden;
}

.product-card-thumb {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-thumb {
  transform: scale(1.04);
}

.product-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-sq {
  background: #DC2626;
  color: #FFFFFF;
}

.badge-gf7 {
  background: #0284C7;
  color: #FFFFFF;
}

.badge-nev {
  background: #059669;
  color: #FFFFFF;
}

.badge-heavy {
  background: #D97706;
  color: #FFFFFF;
}

.badge-oem {
  background: var(--topmaq-gold);
  color: #0A0D10;
}

.product-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lopal-green);
  margin-bottom: 6px;
}

.product-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.product-specs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-pill {
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--ink-secondary);
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.product-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.btn-card-details {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--lopal-green);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-card-details:hover {
  color: var(--lopal-green-hover);
  text-decoration: underline;
}

.btn-card-order {
  padding: 8px 16px;
  font-size: 12.5px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--ink-primary);
  font-weight: 600;
}
.btn-card-order:hover {
  background: var(--lopal-green);
  color: #FFFFFF;
}

/* ============================================================
   Баннер онлайн-подбора масла
   ============================================================ */
.oil-selector-banner {
  background: linear-gradient(135deg, #093422 0%, #0E5233 60%, #061B11 100%);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.5vw, 52px);
  color: #FFFFFF;
  margin-block: 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
}

.oil-selector-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.oil-selector-content h3 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.oil-selector-content p {
  font-size: 15px;
  color: #E2E8F0;
  line-height: 1.6;
  margin-bottom: 24px;
}

.oil-selector-btns {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.oil-selector-banner .btn-outline,
.site-footer .btn-outline,
.site-footer .btn-outline-gold {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
}

.oil-selector-banner .btn-outline:hover,
.site-footer .btn-outline:hover,
.site-footer .btn-outline-gold:hover {
  background: #FFFFFF !important;
  color: #093422 !important;
  border-color: #FFFFFF !important;
}

/* ============================================================
   Модальное окно подбора масла (Iframe Modal)
   ============================================================ */
.selector-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.selector-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.selector-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: min(1040px, 100%);
  height: min(850px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-medium);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.selector-modal-overlay.is-active .selector-modal {
  transform: translateY(0);
}

.selector-modal-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
}

.selector-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
}

.selector-modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--ink-primary);
  font-size: 18px;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.selector-iframe-container {
  flex-grow: 1;
  position: relative;
  background: #FFFFFF;
}

.selector-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   Карта дилеров (Модальное окно "Где купить" и страница точек продаж)
   ============================================================ */
.dealers-modal-body {
  display: grid;
  grid-template-columns: 360px 1fr;
  flex-grow: 1;
  overflow: hidden;
  background: var(--bg-surface);
}

.dealers-sidebar {
  border-right: 1px solid var(--border-light);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-surface);
}

.dealer-list-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.dealer-list-item:hover,
.dealer-list-item.is-active {
  border-color: var(--lopal-green);
  background: var(--lopal-green-light);
}

.dealer-list-item.is-hq {
  border-color: var(--topmaq-gold-border);
}

.dealer-list-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--lopal-green);
  color: #FFFFFF;
  margin-bottom: 6px;
}

.dealer-list-item.is-hq .dealer-list-badge {
  background: var(--topmaq-gold);
  color: #090C10;
}

.dealer-list-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.dealer-list-addr {
  font-size: 12.5px;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.dealer-list-phone {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lopal-green);
}

.dealers-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #E2E8F0;
}

.page-dealers-map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  height: 480px;
  background: var(--bg-secondary);
}

@media (max-width: 860px) {
  .dealers-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
  }
  .dealers-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ============================================================
   Карточки преимуществ и блока дистрибьютора
   ============================================================ */
.tech-highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.tech-highlight-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tech-highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lopal-green-light);
  color: var(--lopal-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.tech-highlight-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ink-primary);
}

.tech-highlight-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Distributor Card */
.distributor-hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 40px;
  align-items: center;
}

.distributor-banner-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.distributor-banner-visual img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.distributor-info-content h3 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.22;
}

.distributor-info-content p {
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 22px;
}

.contacts-pill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.contact-pill-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.pill-icon {
  font-size: 18px;
  color: var(--lopal-green);
}

.pill-text h5 {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pill-text a, .pill-text span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

/* ============================================================
   Подвал сайта (Footer)
   ============================================================ */
.site-footer {
  background: #070A0D;
  color: #94A3B8;
  padding-block: 64px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--lopal-green);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

.footer-developer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #94A3B8;
  font-size: 13px;
}

.footer-developer a {
  color: var(--topmaq-gold, #E5A93C);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.footer-developer a:hover {
  color: #F8D179;
  text-decoration: underline;
}

/* ============================================================
/* ============================================================
   Страницы детального описания продуктов (product-*.html) и Медиа
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 9999;
  background: var(--lopal-green);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
}
.skip-link:focus {
  left: 16px;
}

.page-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding-block: clamp(24px, 3vw, 38px);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  color: var(--ink-muted);
}

.breadcrumbs a {
  color: var(--ink-secondary);
  font-weight: 500;
}
.breadcrumbs a:hover {
  color: var(--lopal-green);
}

.page-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--ink-primary);
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-hero-lead {
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  color: var(--ink-secondary);
  max-width: 780px;
}

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
  margin-bottom: 48px;
}

.product-gallery {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.product-gallery img {
  max-height: 380px;
  width: auto;
  object-fit: contain;
}

.gallery-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 10px;
  text-align: center;
}

.product-tag {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lopal-green);
  margin-bottom: 10px;
}

.spec-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.spec-badge {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--lopal-green-light);
  color: var(--lopal-green);
  border: 1px solid rgba(0, 132, 61, 0.2);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-block: 22px;
}

.quick-fact {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.quick-fact dt {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.quick-fact dd {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-primary);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.detail-block {
  margin-top: 44px;
}

.detail-block .section-head {
  margin-bottom: 20px;
}

.detail-block .section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  gap: 20px;
}

.cards-grid.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards-grid.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card, .news-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.card h3, .news-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink-primary);
}

.card-text {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.spec-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.spec-table th {
  width: 34%;
  font-weight: 700;
  color: var(--ink-secondary);
  background: var(--bg-secondary);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.roadmap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}

.roadmap ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 14.5px;
}

.cert-list ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cert-list li {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cert-list h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cert-list p {
  font-size: 13px;
  color: var(--ink-muted);
}

.cta-band {
  background: linear-gradient(125deg, #063820 0%, #092217 60%, #0D161F 100%);
  color: #FFFFFF;
  padding-block: clamp(40px, 5vw, 64px);
  margin-top: 48px;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFFFFF;
}

.cta-inner p {
  font-size: 15px;
  color: #CBD5E1;
  max-width: 640px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-light {
  background: var(--lopal-green);
  color: #FFFFFF;
  font-weight: 700;
}
.btn-light:hover {
  background: var(--lopal-green-hover);
  color: #FFFFFF;
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost-light:hover {
  background: #FFFFFF;
  color: #0F172A;
}

/* ============================================================
   Адаптивность для мобильных устройств и планшетов (Mobile-First Polish)
   ============================================================ */
@media (max-width: 1180px) {
  .site-nav a {
    padding: 7px 11px;
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 70px;
  }
  .site-nav {
    display: none;
  }
  body.nav-open .site-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-surface);
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border-light);
    padding: 20px 24px 40px;
    overflow-y: auto;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }
  body.nav-open .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  body.nav-open .site-nav a {
    justify-content: flex-start;
    padding: 14px 18px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }
  .nav-toggle {
    display: flex;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .hero-visual {
    margin-top: 0;
  }
  .hero-text {
    margin-inline: auto;
  }
  .hero-lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-distributor-card {
    margin-inline: auto;
    text-align: left;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .distributor-hero-card,
  .product-detail {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand-lopal-img {
    height: 28px;
  }
  .brand-topmaq-img {
    height: 28px;
  }
  .brand-combo {
    gap: 8px;
  }
  .hero {
    padding-block: 24px 32px;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
  }
  .category-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-inline: -16px;
    padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .cat-tab-btn {
    flex-shrink: 0;
    padding: 9px 16px;
    font-size: 13px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .quick-facts {
    grid-template-columns: 1fr;
  }
  .product-actions .btn {
    width: 100%;
  }
  .spec-table th,
  .spec-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .page-dealers-map-wrap {
    height: 360px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
