/* ============================================================
   METAL GROUP AM — Дизайн-система
   Акцент: #F07828 (оранжевый MG)
   Фон: #ffffff белый, секции #f5f5f5
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Roboto+Condensed:wght@400;700&family=Oswald:wght@400;600&display=swap');

/* ---- CSS переменные ---- */
:root {
  --accent:       #F07828;
  --accent-dark:  #d4651a;
  --dark:         #1a1a1a;
  --text:         #111111;
  --text-muted:   #666666;
  --light:        #f5f5f5;
  --white:        #ffffff;
  --border:       #e0e0e0;
  --green:        #27ae60;
  --green-bg:     #eafaf1;
  --yellow:       #f39c12;
  --yellow-bg:    #fef9e7;
  --red:          #e74c3c;
  --shadow-sm:    0 1px 4px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       6px;
  --radius-lg:    10px;
  --transition:   .18s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.5;
  padding-bottom: 56px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

h1, h2, h3 {
  font-family: 'Bebas Neue', Impact, sans-serif;
  letter-spacing: .5px;
  line-height: 1.1;
}
h4, h5 {
  font-family: 'Roboto Condensed', Arial, sans-serif;
  font-weight: 700;
}

.price-num {
  font-family: 'Oswald', Arial, sans-serif;
  font-weight: 600;
}

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

/* ============================================================
   ТОПБАР
   ============================================================ */
.topbar {
  background: var(--dark);
  color: #aaa;
  font-size: 12px;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a { color: #aaa; transition: color var(--transition); }
.topbar a:hover { color: var(--white); }
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 14px; align-items: center; }
.topbar-right a.active { color: var(--accent); font-weight: 700; }

/* ============================================================
   ШАПКА
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

/* Лого */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-text strong {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--dark);
}
.logo-text span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Поиск */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 9px 16px 9px 40px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  color: var(--text);
  background: var(--light);
  transition: border-color var(--transition);
}
.header-search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 200;
  display: none;
}
.search-dropdown.open { display: block; }
.search-item {
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.search-item:last-child { border-bottom: none; }
.search-item:hover { background: var(--light); }
.search-item .s-price { color: var(--accent); font-weight: 700; font-family: 'Oswald', sans-serif; }

/* Контакты в шапке */
.header-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn-call {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
  white-space: nowrap;
}
.btn-call:hover { background: var(--accent-dark); }
.btn-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: #229ED9;
  color: var(--white);
  border-radius: 4px;
  font-size: 18px;
  transition: opacity var(--transition);
}
.btn-tg:hover { opacity: .85; }
.burger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 20px;
  color: var(--dark);
}

/* ============================================================
   НАВИГАЦИЯ / МЕГАМЕНЮ
   ============================================================ */
.site-nav {
  background: var(--dark);
  border-bottom: 3px solid var(--accent);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav-item > span {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
  color: #cccccc;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > span:hover,
.nav-item.active > a,
.nav-item.active > span {
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.nav-item.catalog-item > span::after {
  content: '▾';
  font-size: 10px;
  margin-left: 2px;
}

/* Мегаменю */
.megamenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 760px;
  background: var(--white);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-lg);
  z-index: 300;
  padding: 20px;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.nav-item.catalog-item:hover .megamenu,
.nav-item.catalog-item.open .megamenu {
  display: grid;
}
.mega-col { padding: 0 16px; }
.mega-col:not(:last-child) { border-right: 1px solid var(--border); }
.mega-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.mega-col ul li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text);
  transition: color var(--transition);
  border-bottom: 1px solid #f0f0f0;
}
.mega-col ul li:last-child a { border-bottom: none; }
.mega-col ul li a:hover { color: var(--accent); }
.mega-col ul li a .cat-icon {
  width: 20px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  letter-spacing: .3px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover { background: var(--white); color: var(--dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.btn-outline:hover { background: var(--accent); color: var(--white); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: #fff8f4; }

/* Бейджи */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.badge-green  { background: var(--green-bg);  color: var(--green); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow); }
.badge-red    { background: #fdf0f0; color: var(--red); }
.badge-orange { background: #fff3e8; color: var(--accent); }
.price-down   { color: var(--green); font-size: 11px; }
.price-up     { color: var(--red); font-size: 11px; }

/* ============================================================
   HERO БЛОК
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  min-height: 420px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(240,120,40,.03) 40px,
    rgba(240,120,40,.03) 80px
  );
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--white);
  margin-bottom: 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero h1 span { color: var(--accent); }
.hero-desc {
  color: #bbb;
  font-size: 16px;
  margin-bottom: 28px;
  line-height: 1.6;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Карточка живых цен в hero */
.hero-prices {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-prices h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  font-family: 'Roboto Condensed', sans-serif;
}
.hp-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.hp-item:last-child { border-bottom: none; }
.hp-name { font-size: 13px; color: var(--text); font-weight: 700; }
.hp-price {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.hero-prices-footer {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.price-updated { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   БЛОК ДОВЕРИЯ
   ============================================================ */
.trust-bar {
  background: var(--dark);
  padding: 0;
}
.trust-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-icon { font-size: 24px; margin-bottom: 6px; }
.trust-num {
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.trust-label {
  font-size: 12px;
  color: #888;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ============================================================
   КАТАЛОГ — КАРТОЧКИ КАТЕГОРИЙ
   ============================================================ */
.catalog-section {
  padding: 48px 0;
  background: var(--light);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--dark);
}
.section-header h2 span { color: var(--accent); }
.section-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-card-icon {
  width: 52px;
  height: 52px;
  background: #fff3e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.cat-card h3 {
  font-size: 15px;
  color: var(--dark);
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}
.cat-card-from {
  font-size: 12px;
  color: var(--text-muted);
}
.cat-card-from strong {
  font-family: 'Oswald', sans-serif;
  font-size: 15px;
  color: var(--accent);
}
.cat-card-arrow {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   ТАБЛИЦА ЦЕН
   ============================================================ */
.prices-section {
  padding: 48px 0;
  background: var(--white);
}
.prices-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.prices-header h2 { font-size: clamp(24px, 3vw, 32px); }
.price-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.price-updated-badge {
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.price-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-btn {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Roboto Condensed', sans-serif;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.table-wrap { overflow-x: auto; }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.price-table thead th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.price-table thead th:first-child { border-radius: 6px 0 0 0; }
.price-table thead th:last-child  { border-radius: 0 6px 0 0; }
.price-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.price-table tbody tr:hover { background: #fff8f4; }
.price-table tbody tr.hidden-row { display: none; }
.price-table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}
.price-table tbody td.price-amd {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.price-table tbody td .prod-name { font-weight: 700; color: var(--dark); }
.price-table tbody td .prod-sub  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.btn-calc-mini {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: 'Roboto Condensed', sans-serif;
}
.btn-calc-mini:hover { border-color: var(--accent); color: var(--accent); background: #fff8f4; }

.btn-order-row {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  font-family: 'Roboto Condensed', sans-serif;
}
.btn-order-row:hover { background: var(--accent-dark); }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.calculator {
  padding: 48px 0;
  background: var(--light);
}
.calc-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-header {
  background: var(--dark);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.calc-header h2 {
  color: var(--white);
  font-size: 26px;
}
.calc-header h2 span { color: var(--accent); }
.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.calc-types {
  display: flex;
  gap: 0;
  padding: 20px 28px 0;
  grid-column: 1 / -1;
  border-bottom: 1px solid var(--border);
}
.calc-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: -1px;
}
.calc-type-btn .type-icon { font-size: 22px; }
.calc-type-btn:hover { color: var(--accent); }
.calc-type-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: #fff8f4;
}

.calc-schema {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  min-height: 220px;
  background: var(--light);
}
.calc-schema svg { max-width: 200px; }

.calc-fields-wrap { padding: 24px 28px; }
.calc-fields { display: flex; flex-direction: column; gap: 14px; }
.calc-fields label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.calc-fields input,
.calc-fields select {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.calc-fields input:focus,
.calc-fields select:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-result {
  grid-column: 1 / -1;
  padding: 20px 28px;
  background: #fff8f4;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.result-item { display: flex; flex-direction: column; gap: 3px; }
.result-item .r-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.result-item .r-value {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}
.result-item .r-value.weight { color: var(--dark); }

.calc-actions {
  grid-column: 1 / -1;
  padding: 16px 28px 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}

/* ============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================ */
.how-section {
  padding: 48px 0;
  background: var(--white);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 100%);
  background-image: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 40%, transparent 40%, transparent 50%);
  background-size: 60px 2px;
  z-index: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-family: 'Bebas Neue', Impact, sans-serif;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(240,120,40,.35);
}
.step h3 {
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 8px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
}
.step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services-section {
  padding: 48px 0;
  background: var(--light);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-img {
  height: 140px;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.service-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.4));
}
.service-body { padding: 18px; }
.service-body h3 {
  font-size: 18px;
  color: var(--dark);
  margin-bottom: 6px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 700;
}
.service-body p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.service-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}
.service-price .from { font-size: 12px; color: var(--text-muted); }
.service-price .amount {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}
.service-price .unit { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   НАШЛИ ДЕШЕВЛЕ
   ============================================================ */
.cheaper-section {
  padding: 40px 0;
  background: var(--dark);
}
.cheaper-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cheaper-text h2 { color: var(--white); font-size: 28px; }
.cheaper-text h2 span { color: var(--accent); }
.cheaper-text p { color: #aaa; font-size: 14px; margin-top: 6px; }
.cheaper-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cheaper-form input {
  flex: 1;
  min-width: 180px;
  padding: 11px 16px;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 14px;
}
.cheaper-form input::placeholder { color: #888; }
.cheaper-form input:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews-section {
  padding: 48px 0;
  background: var(--white);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.review-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.review-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.review-stars { color: #f1c40f; font-size: 16px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 14px;
}
.review-text::before { content: '«'; }
.review-text::after  { content: '»'; }
.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}
.review-author strong { font-size: 14px; color: var(--dark); display: block; }
.review-author span   { font-size: 12px; color: var(--text-muted); }
.review-product {
  font-size: 11px;
  background: #fff3e8;
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
  white-space: nowrap;
}
.review-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   ПАРТНЁРЫ / ЗАВОДЫ
   ============================================================ */
.partners-section {
  padding: 32px 0;
  background: var(--light);
  border-top: 1px solid var(--border);
}
.partners-label {
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.partners-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.partner-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  color: #bbb;
  letter-spacing: 2px;
  transition: color var(--transition);
}
.partner-logo:hover { color: var(--dark); }

/* ============================================================
   ДОСТАВКА — БЛОК
   ============================================================ */
.delivery-section {
  padding: 48px 0;
  background: var(--white);
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.delivery-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1.5px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.delivery-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.delivery-card.featured { border-color: var(--accent); background: #fff8f4; }
.dc-icon { font-size: 36px; margin-bottom: 12px; }
.dc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.dc-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.dc-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.dc-zone strong {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  color: var(--accent);
}
.dc-zone small { font-size: 11px; color: var(--text-muted); display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  padding: 48px 0 0;
}
.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-text strong { color: var(--white); }
.footer-brand p {
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin-bottom: 4px;
}
.footer-brand a { color: #aaa; }
.footer-brand a:hover { color: var(--accent); }
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-social-btn {
  width: 34px; height: 34px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255,255,255,.08);
  color: #aaa;
  transition: background var(--transition), color var(--transition);
}
.footer-social-btn:hover { background: var(--accent); color: var(--white); }

.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: #888;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 20px;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #555; }
.footer-bottom-links { display: flex; gap: 16px; }
.footer-bottom-links a { font-size: 12px; color: #555; }
.footer-bottom-links a:hover { color: var(--accent); }
.footer-langs { display: flex; gap: 8px; }
.footer-langs a {
  font-size: 12px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-langs a.active, .footer-langs a:hover { color: var(--accent); }

/* ============================================================
   МОБИЛЬНЫЙ BOTTOM NAV
   ============================================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--accent);
  z-index: 500;
  box-shadow: 0 -4px 16px rgba(0,0,0,.10);
}
.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 7px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .3px;
  transition: color var(--transition);
}
.mobile-bottom-nav a .nav-icon { font-size: 20px; }
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--accent); }
.mobile-bottom-nav a.btn-nav-order {
  background: var(--accent);
  color: var(--white);
  margin: 6px 4px;
  border-radius: var(--radius);
  padding: 6px 4px;
}

/* Плавающая кнопка звонка */
.float-call {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 52px; height: 52px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(240,120,40,.45);
  z-index: 400;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.float-call:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(240,120,40,.55);
}

/* ============================================================
   МОДАЛЬНОЕ ОКНО ЗАКАЗА
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  background: var(--dark);
  padding: 20px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-head h3 {
  color: var(--white);
  font-size: 22px;
}
.modal-head h3 span { color: var(--accent); }
.modal-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--white); }
.modal-body { padding: 24px; }
.modal-item-info {
  background: #fff8f4;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 20px;
  font-weight: 700;
}

/* Форма заказа */
.order-form { display: flex; flex-direction: column; gap: 14px; }
.form-section { display: flex; flex-direction: column; gap: 10px; }
.form-section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.order-form input,
.order-form select,
.order-form textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  width: 100%;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.order-form textarea { resize: vertical; min-height: 80px; }

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}
.radio-group label:hover { border-color: var(--accent); background: #fff8f4; }
.radio-group input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; }
.radio-group input[type="radio"]:checked + span { color: var(--accent); font-weight: 700; }

.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pay-badge {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

/* ============================================================
   СТРАНИЦА КАТЕГОРИИ
   ============================================================ */
.breadcrumb {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb-inner a { color: var(--accent); }
.breadcrumb-inner a:hover { text-decoration: underline; }
.breadcrumb-inner .sep { color: var(--border); }

.category-layout {
  max-width: 1240px;
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

/* Сайдбар */
.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  overflow: hidden;
  position: sticky;
  top: 74px;
}
.sidebar-head {
  background: var(--dark);
  padding: 14px 16px;
}
.sidebar-head h3 {
  color: var(--white);
  font-size: 16px;
}
.sidebar-body { padding: 16px; }

.subcats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.subcat-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  font-weight: 700;
}
.subcat-link:hover { background: var(--light); color: var(--accent); }
.subcat-link.active { background: #fff3e8; color: var(--accent); }

.filter-group { margin-bottom: 16px; }
.filter-group-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.checkboxes { display: flex; flex-direction: column; gap: 6px; }
.checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 5px 0;
  border-bottom: 1px solid #f5f5f5;
}
.checkboxes label:last-child { border-bottom: none; }
.checkboxes input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

.sidebar-btns { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }

/* Основной контент категории */
.category-main { min-width: 0; }

.cat-header {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.cat-header h1 { font-size: clamp(22px, 3vw, 32px); color: var(--dark); margin-bottom: 6px; }
.cat-header h1 span { color: var(--accent); }
.cat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

.cat-sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-count { font-size: 13px; color: var(--text-muted); }
.cat-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cat-sort select {
  padding: 6px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--white);
}

/* SVG схема + параметры */
.cat-schema-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 16px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.cat-svg { flex: 0 0 180px; }
.cat-svg svg { width: 100%; height: auto; }
.cat-params { flex: 1 1 200px; }
.cat-params h4 { font-size: 14px; margin-bottom: 10px; color: var(--dark); }
.cat-params ul { display: flex; flex-direction: column; gap: 7px; }
.cat-params li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
}
.cat-params li:last-child { border-bottom: none; }
.cat-params li .p-label { color: var(--text-muted); }
.cat-params li .p-val { font-weight: 700; color: var(--dark); }

/* Таблица категории */
.cat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.cat-table thead th {
  background: var(--dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}
.cat-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.cat-table tbody tr:hover { background: #fff8f4; }
.cat-table tbody tr.hidden-row { display: none; }
.cat-table tbody td { padding: 12px 16px; vertical-align: middle; }
.cat-table tbody td.td-price {
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--accent);
}
.cat-table tbody td.td-weight { color: var(--text-muted); font-size: 13px; }

/* SEO текст */
.seo-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-top: 24px;
}
.seo-block h3 { font-size: 18px; color: var(--dark); margin-bottom: 12px; font-family: 'Roboto Condensed', sans-serif; }
.seo-block p  { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.seo-block p:last-child { margin-bottom: 0; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-prices { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 900px) {
  body { padding-bottom: 56px; }
  .topbar { display: none; }
  .burger { display: block; }
  .header-search { display: none; }
  .btn-tg { display: none; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; gap: 0; }
  .nav-item > a, .nav-item > span { padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .megamenu { position: static; min-width: unset; grid-template-columns: 1fr; border-top: none; box-shadow: none; }
  .mega-col { border-right: none !important; padding: 8px 20px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .steps::before { display: none; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: repeat(2, 1fr); }
  .category-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .cat-schema-block { flex-direction: column; }
  .mobile-bottom-nav { display: flex; }
  .float-call { bottom: 68px; }
}

@media (max-width: 600px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card-icon { width: 40px; height: 40px; font-size: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .calc-body { grid-template-columns: 1fr; }
  .calc-schema { border-right: none; border-bottom: 1px solid var(--border); min-height: 140px; }
  .calc-result { gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .price-table { font-size: 12px; }
  .price-table th, .price-table td { padding: 8px 10px; }
  .cat-table { font-size: 12px; }
  .cat-table th, .cat-table td { padding: 8px 10px; }
}

@media (max-width: 400px) {
  .header-inner { padding: 10px 12px; }
  .logo-text strong { font-size: 18px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ТАБЛИЦА-СПИСОК: фото | наименование | цена | корзина
   ============================================================ */
.product-list {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.product-list thead tr {
  background: var(--dark);
  color: var(--white);
}
.product-list thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}
.product-list thead th:first-child { width: 76px; }
.product-list tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.product-list tbody tr:last-child { border-bottom: none; }
.product-list tbody tr:hover { background: #fdf8f4; }

/* Строка-разделитель группы товаров */
.pl-group-header td {
  background: #f4f4f4;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  border-top: 2px solid var(--border);
}
.pl-group-header:hover { background: #f4f4f4 !important; }

/* Ячейка с фото */
.pl-img {
  padding: 8px 10px;
  width: 76px;
}
.pl-img img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  display: block;
}

/* Ячейка наименование */
.pl-name {
  padding: 10px 14px;
}
.pl-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}
.pl-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.pl-gost {
  font-size: 11px;
  color: #aaa;
  margin-top: 1px;
}

/* Ячейка вес */
.pl-weight {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

/* Ячейка цена */
.pl-price {
  padding: 10px 14px;
  white-space: nowrap;
  text-align: right;
}
.pl-price-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-num);
}
.pl-price-unit {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
}

/* Ячейка наличие */
.pl-stock {
  padding: 10px 12px;
  white-space: nowrap;
}

/* Ячейка кнопка */
.pl-action {
  padding: 10px 14px;
  white-space: nowrap;
  vertical-align: middle;
}
.pl-action .pl-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 6px;
  vertical-align: middle;
}
.btn-add-cart {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  vertical-align: middle;
  transition: background var(--transition);
}
.btn-add-cart:hover { background: var(--accent-dark); }

@media (max-width: 900px) {
  .pl-weight { display: none; }
  .pl-img img { width: 48px; height: 36px; }
  .pl-price-val { font-size: 15px; }
}
@media (max-width: 600px) {
  .product-list thead th.hide-sm { display: none; }
  .pl-gost { display: none; }
  .btn-add-cart { padding: 7px 10px; font-size: 12px; }
}

/* ============================================================
   ДОПОЛНЕНИЯ ДЛЯ СТРАНИЦ КАТЕГОРИЙ
   ============================================================ */

/* Хлебные крошки — вариант с .container внутри */
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.breadcrumb .container a { color: var(--accent); }
.breadcrumb .container a:hover { text-decoration: underline; }
.breadcrumb .container .sep { color: var(--border); }

/* category-layout с display:contents wrapper */
.category-layout > .container { display: contents; }

/* Sidebar — вариант с .sidebar-block */
.sidebar-block {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-block:last-child { border-bottom: none; }
.sidebar-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.sidebar-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}

/* subcats list links (armatura.html используeт простой li>a) */
.subcats a {
  display: block;
  padding: 7px 10px;
  font-size: 13px;
  color: var(--text);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.subcats a:hover { background: var(--light); color: var(--accent); }
.subcats li.active a { background: #fff3e8; color: var(--accent); font-weight: 700; }

/* Filter checkboxes (sidebar) */
.filter-checks { display: flex; flex-direction: column; gap: 5px; }
.filter-checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 0;
}
.filter-checks input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; }

/* Мини-калькулятор в сайдбаре */
.sidebar-calc label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.sidebar-calc input, .sidebar-calc select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--font-body);
  background: var(--light);
}
.sc-result {
  background: #fff3e8;
  border-radius: var(--radius);
  padding: 12px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sc-result strong { font-size: 16px; color: var(--accent); font-family: var(--font-num); }

/* Контакты в сайдбаре */
.sidebar-contact .sidebar-phone,
.sidebar-contact .sidebar-tg {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.sidebar-contact .sidebar-phone:hover,
.sidebar-contact .sidebar-tg:hover { color: var(--accent); }
.sidebar-hours { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Блок характеристик (cat-info-block) */
.cat-info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
  align-items: center;
}
.cat-svg-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.cat-svg-wrap svg { width: 100%; max-width: 300px; height: auto; }
.cat-specs { display: flex; flex-direction: column; gap: 8px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--light);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 700; color: var(--dark); text-align: right; }

/* Заголовок таблицы цен (cat-table-header) */
.cat-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-table-header h2 { font-size: 20px; color: var(--dark); }

/* Примечание под таблицей */
.table-note {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

/* SEO-блок */
.seo-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border);
  padding: 24px;
}
.seo-block h2 { font-size: 20px; color: var(--dark); margin-bottom: 12px; }
.seo-block h3 { font-size: 15px; color: var(--dark); margin: 16px 0 8px; }
.seo-block p, .seo-block ul { font-size: 14px; color: var(--text-muted); line-height: 1.7; }
.seo-block ul { padding-left: 18px; }
.seo-block li { margin-bottom: 6px; }
.seo-block strong { color: var(--dark); }

/* «С этим также берут» */
.also-buy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.also-card {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  display: block;
}
.also-card:hover { border-color: var(--accent); color: var(--accent); background: #fff3e8; }

/* Bottom nav (используeт .bottom-nav в armatura.html) */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--white);
  border-top: 1px solid var(--border);
  z-index: 800;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0,0,0,.08);
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-body);
  padding: 6px 8px;
  transition: color var(--transition);
  flex: 1;
  text-align: center;
  text-decoration: none;
}
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active,
.bottom-nav a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .bottom-nav { display: flex; }
  .cat-info-block { grid-template-columns: 1fr; }
  .also-buy { grid-template-columns: 1fr; }
}

/* ============================================
   КОРЗИНА — поле количества в таблице
   ============================================ */
.pl-qty-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  vertical-align: middle;
}
.pl-qty-input {
  width: 64px;
  padding: 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  text-align: center;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
}
.pl-qty-input:focus { outline: none; border-color: var(--accent); }
.pl-qty-unit {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ============================================
   КОРЗИНА — иконка в шапке
   ============================================ */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.cart-btn:hover { border-color: var(--accent); background: #fff8f3; }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  display: none;
}
.cart-count.visible { display: flex; }

/* ============================================
   КОРЗИНА — drawer (панель справа)
   ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 32px rgba(0,0,0,.12);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 700; margin: 0; }
.cart-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  transition: color var(--transition);
}
.cart-close-btn:hover { color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
  font-size: 15px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3; }
.cart-item-sub { font-size: 12px; color: var(--text-muted); margin-top: 3px; }
.cart-item-price { font-size: 14px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
  padding: 0;
  margin-left: 8px;
  transition: color var(--transition);
  line-height: 1;
}
.cart-item-remove:hover { color: #e53e3e; }

.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #fafafa;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text-muted);
}
.cart-total-row.main {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.cart-total-row.main span:last-child { color: var(--accent); }
.btn-checkout {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--accent-dark); }
.btn-clear-cart {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 8px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-clear-cart:hover { border-color: #e53e3e; color: #e53e3e; }

/* ============================================
   МОДАЛЬНОЕ ОКНО ЗАКАЗА
   ============================================ */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.order-modal-overlay.open { opacity: 1; pointer-events: all; }

/* Широкий модал */
.order-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 48px rgba(0,0,0,.22);
  transform: translateY(20px);
  transition: transform .25s;
}
.order-modal-overlay.open .order-modal { transform: translateY(0); }

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.order-modal-header h3 { font-size: 18px; font-weight: 700; margin: 0; }

/* Двухколоночный layout */
.order-modal-cols {
  display: grid;
  grid-template-columns: 1fr 280px;
  overflow: hidden;
  flex: 1;
}
.order-modal-left {
  padding: 20px 24px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
}
.order-modal-right {
  padding: 20px;
  background: #fafafa;
  overflow-y: auto;
}

.order-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.order-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.order-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
}
.order-tab.active { background: var(--accent); color: var(--white); }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 60px; }

.form-radio-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 4px; }
.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}
.form-radio-group input[type=radio] { width: auto; margin: 0; accent-color: var(--accent); }

/* Карта + машины рядом */
.checkout-map-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.checkout-trucks {
  width: 130px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ct-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.ct-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color var(--transition), background var(--transition);
  text-align: center;
}
.ct-btn img { width: 80px; height: 44px; object-fit: contain; }
.ct-btn span { font-size: 12px; font-weight: 600; color: var(--text); }
.ct-btn small { font-size: 11px; color: var(--text-muted); }
.ct-btn.active { border-color: var(--accent); background: #fff8f3; }
.ct-btn:hover:not(.active) { border-color: #ccc; }

/* Итог заказа (правая колонка) */
.order-summary-box { position: sticky; top: 0; }
.osb-title { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.osb-items { margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.osb-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-muted); }
.osb-item strong { white-space: nowrap; color: var(--text); }
.osb-totals { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.osb-row { display: flex; justify-content: space-between; font-size: 13px; }
.osb-row span { color: var(--text-muted); }
.osb-total { font-size: 15px; font-weight: 700; margin-top: 4px; }
.osb-total span { color: var(--text); }

.form-note-small { font-size: 11px; color: var(--text-muted); margin-top: 12px; }
.form-note-small a { color: var(--accent); }

.btn-submit-order {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-submit-order:hover { background: var(--accent-dark); }

@media (max-width: 700px) {
  .order-modal-cols { grid-template-columns: 1fr; }
  .order-modal-right { border-top: 1px solid var(--border); border-right: none; }
  .checkout-map-row { flex-direction: column; }
  .checkout-trucks { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .ct-btn { flex: 1; min-width: 90px; }
  .cart-drawer { width: 100vw; }
  .pl-qty-input { width: 52px; }
}

/* ============================================
   БЛОК ДОСТАВКИ
   ============================================ */
.delivery-section h2 { font-size: 22px; margin-bottom: 8px; }

.delivery-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.delivery-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  gap: 12px;
  background: var(--white);
  transition: border-color var(--transition);
}
.delivery-card.active { border-color: var(--accent); background: #fff8f3; }

.dc-thumb {
  width: 96px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: #f5f5f5;
}

.dc-info { flex: 1; min-width: 0; }
.dc-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dc-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }

.dc-zones { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.dc-zone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  background: #f7f7f7;
  border-radius: var(--radius);
  font-size: 12px;
}
.dc-zone-row.highlighted { background: #fff3e8; }
.dc-zone-label { color: var(--text-muted); }
.dc-zone-price { font-weight: 700; color: var(--text); }
.dc-zone-row.highlighted .dc-zone-price { color: var(--accent); }

.dc-add-btn {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background var(--transition), opacity var(--transition);
}
.dc-add-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.dc-add-btn:not(:disabled):hover { background: var(--accent-dark); }

@media (max-width: 600px) {
  .delivery-cards { grid-template-columns: 1fr; }
}

/* ===== SIDEBAR FILTER BUTTONS ===== */
.sidebar-filter-btns {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 4px;
}
.sidebar-filter-btns .filter-btn {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--light);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: 'Roboto Condensed', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sidebar-filter-btns .filter-btn::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all 0.18s;
}
.sidebar-filter-btns .filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff8f4;
}
.sidebar-filter-btns .filter-btn:hover::before {
  border-color: var(--accent);
}
.sidebar-filter-btns .filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.sidebar-filter-btns .filter-btn.active::before {
  background: #fff;
  border-color: #fff;
}
.sidebar-filter-all {
  margin-bottom: 8px;
}
.sidebar-filter-all .filter-btn {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
  font-weight: 700;
}
.sidebar-filter-all .filter-btn.inactive {
  background: var(--light);
  border-color: var(--border);
  color: var(--text);
}

/* ===== CATALOG PAGE CARDS ===== */
.catalog-categories { padding: 24px 0; }
.category-block { margin-bottom: 40px; }
.category-block h2 {
  font-size: 22px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
  text-align: center;
}
.category-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(240,120,40,0.12);
  transform: translateY(-2px);
}
.category-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  margin-bottom: 12px;
  background-size: cover;
  background-position: center;
  background-color: #f5f5f5;
}
.category-icon.armatura  { background-image: url('img/catalog/armatura.jpg'); }
.category-icon.ugolok    { background-image: url('img/catalog/ugolok.jpg'); }
.category-icon.shveller  { background-image: url('img/catalog/shveller.jpg'); }
.category-icon.balka     { background-image: url('img/catalog/balka.jpg'); }
.category-icon.kvadrat   { background-image: url('img/catalog/kvadrat.jpg'); }
.category-icon.polosa    { background-image: url('img/catalog/polosa.jpg'); }
.category-icon.truba     { background-image: url('img/catalog/truba.jpg'); }
.category-icon.truba-krugla { background-image: url('img/catalog/truba.jpg'); }
.category-icon.truba-vgp { background-image: url('img/catalog/truba.jpg'); }
.category-icon.truba-besshov { background-image: url('img/catalog/truba.jpg'); }
.category-icon.list-gk   { background-image: url('img/catalog/list.jpg'); }
.category-icon.list-hk   { background-image: url('img/catalog/list.jpg'); }
.category-icon.setka     { background-image: url('img/catalog/setka.jpg'); }
.category-icon.provoloka { background-image: url('img/catalog/provoloka.jpg'); }
.category-icon.profnastil { background-image: url('img/catalog/profnastil.jpg'); }
.category-item h3 {
  font-size: 14px;
  font-weight: 700;
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: 4px;
  color: var(--dark);
}
.category-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}
.price-from {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'Roboto Condensed', sans-serif;
}
.catalog-description {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 15px;
}

/* ===== FIX: pl-name column width ===== */
.product-list .pl-name {
  width: 240px;
  max-width: 240px;
}

/* ===== COMPACT TABLE COLUMNS ===== */
.pl-weight { width: 90px; padding: 8px 6px; }
.pl-price  { width: 100px; padding: 8px 6px; }
.pl-stock  { width: 80px; padding: 8px 6px; }
.pl-action { width: 110px; padding: 8px 6px; }
.pl-name   { width: 220px; max-width: 220px; padding: 8px 10px; }

/* ---- Phase A: Official Metal Group logo ---- */
.logo-img--header {
  height: 44px;
  width: auto;
  max-width: 200px;
  display: block;
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
.logo-img--footer {
  height: 52px;
  width: auto;
  max-width: 240px;
  display: block;
  image-rendering: auto;
}
.topbar a { color: #ccc; }
.topbar a:hover { color: var(--accent, #F07828); }
