/* ===========================================
   Стерлинг — Глобальные стили
   Мебельная фабрика, Курск
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
  --bg:      #1A1A1E;
  --bg-2:    #222227;
  --surface: #28282E;
  --red:     #C8102E;
  --red-2:   #E2253E;
  --gold:    #B58A4E;
  --bronze:  #B58A4E;
  --fg:      #EDECEA;
  --fg-2:    #A0A0A8;
  --fg-3:    #74747A;
  --line:    rgba(237, 236, 234, 0.08);
  --line-2:  #40404B;
  --radius:  12px;
}

/* ============ СБРОС ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* ============ BASE ============ */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ HEADER ============ */
html {
  /* overflow: clip не ломает position:sticky/fixed в отличие от overflow:hidden */
  overflow-x: clip;
}

.header,
#header {
  /* fixed — всегда вверху, всегда 100% вьюпорта */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 14, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(14, 14, 16, 0.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  max-width: 1280px;
  margin: 0 auto;
}
/* Двойной класс — специфичность выше чем у .container в home.css,
   поэтому шапка всегда получает правильные отступы */
.header-inner.container {
  padding: 16px 0;
}

/* Компенсируем высоту fixed-шапки (~76px) чтобы контент не уходил под неё */
body {
  padding-top: 76px;
}

/* Когда пользователь авторизован, WordPress добавляет панель администратора (32px).
   Сдвигаем шапку вниз и добавляем суммарный отступ, чтобы контент не уходил под обе панели */
.admin-bar .header,
.admin-bar #header {
  top: 32px;
}
.admin-bar body {
  padding-top: 108px; /* 76px шапка + 32px панель */
}
@media screen and (max-width: 782px) {
  /* На мобильных панель администратора становится 46px */
  .admin-bar .header,
  .admin-bar #header {
    top: 46px;
  }
  .admin-bar body {
    padding-top: 122px; /* 76px + 46px */
  }
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  white-space: nowrap;
}
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-sub {
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* NAV */
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-2);
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav a.active { color: var(--fg); font-weight: 700; }

/* HEADER CTA */
.header-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.phone {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.phone:hover { color: var(--red-2); }

/* HEADER CART */
.header-cart {
  position: relative;
  background: none;
  border: none;
  color: var(--fg-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color .15s, background .15s;
}
.header-cart:hover { color: var(--fg); background: rgba(237, 236, 234, 0.09); }
.header-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  border: 2px solid rgba(14,14,16,0.78);
  line-height: 1;
  pointer-events: none;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1002;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* ============ BREADCRUMBS ============ */
.breadcrumbs { padding: 10px 0; border-bottom: 1px solid var(--line); }
.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
}
.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-3);
}
.breadcrumbs-list li::after { content: '/'; opacity: 0.4; }
.breadcrumbs-list li:last-child::after { display: none; }
.breadcrumbs-list a { color: var(--fg-3); text-decoration: none; transition: color 0.2s; }
.breadcrumbs-list a:hover { color: var(--fg-2); }
.breadcrumbs-list li:last-child span { color: var(--fg-2); font-weight: 600; }

/* ============ SECTION LABELS ============ */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 16px;
  color: var(--fg-3);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============ PAGE HERO ============ */
.page-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-hero-label,
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-hero h1 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page-hero h1 span { color: var(--red); }
.page-hero-sub {
  margin-top: 16px;
  font-size: 15px;
  color: var(--fg-3);
  max-width: 580px;
  line-height: 1.65;
}

/* ============ HOMEPAGE HERO ============ */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.display {
  font-size: clamp(26px, 3.8vw, 58px); /* то же что в home.css */
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.display em { color: var(--red); font-style: normal; }
/* .lede определён только в home.css, не дублировать здесь */
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.m-num { font-size: 15px; font-weight: 800; color: var(--fg); margin-bottom: 4px; }
.m-label { font-size: 12px; color: var(--fg-3); line-height: 1.4; }

/* ============ STATS ============ */
.stats-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat-item {
  background: var(--bg);
  padding: 40px 36px;
}
.stat-num {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--red); font-size: 0.6em; vertical-align: super; }
.stat-label { font-size: 13px; color: var(--fg-3); line-height: 1.45; }

/* STATS ROW (about page) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ============ CATALOG (HOME) ============ */
.catalog-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.cat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .2s ease, transform .2s ease;
  color: inherit;
  text-decoration: none;
}
.cat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cat-icon { font-size: 28px; }
.cat-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.cat-desc { font-size: 12px; color: var(--fg-3); line-height: 1.45; }
.cat-arrow { margin-top: auto; color: var(--fg-3); }

/* ============ AUDIENCE ============ */
.audience-section {
  padding: 80px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aud-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.aud-icon { font-size: 32px; margin-bottom: 16px; }
.aud-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.aud-card p { font-size: 13px; color: var(--fg-3); line-height: 1.6; margin-bottom: 16px; }
.aud-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.aud-card ul li {
  font-size: 13px;
  color: var(--fg-3);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.aud-card ul li::before { content: '—'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ============ CNC (HOME) ============ */
.cnc-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.cnc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cnc-copy h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.2;
}
.cnc-copy p { font-size: 15px; color: var(--fg-2); line-height: 1.7; margin-bottom: 24px; }
.cnc-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.cnc-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-3);
}

/* ============ PROCESS ============ */
.process-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 16px;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.step-content h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.step-content p { font-size: 13px; color: var(--fg-3); line-height: 1.6; }

/* ============ MATERIALS ============ */
.materials-section { padding: 80px 0; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.mat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.mat-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mat-desc { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

/* ============ TRUST ============ */
.trust-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.trust-icon { font-size: 32px; margin-bottom: 16px; }
.trust-item h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.trust-item p { font-size: 14px; color: var(--fg-3); line-height: 1.6; }

/* ============ CTA STRIP ============ */
.cta-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.cta-strip p {
  font-size: 16px;
  color: var(--fg-3);
  margin: 0 auto 32px;
  max-width: 480px;
  line-height: 1.65;
}

/* ============ CTA CONTACTS (ЧПУ-страница) ============ */
.cta-contacts {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.cta-contact-item {
  font-size: 15px;
  color: var(--fg-2);
  text-align: center;
}
.cta-contact-item a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
  transition: color .2s;
}
.cta-contact-item a:hover { color: var(--red-2); }

/* ============ INTRO SECTIONS ============ */
.intro-section { padding: 80px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-grid.reverse { direction: rtl; }
.intro-grid.reverse > * { direction: ltr; }
.intro-text h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  line-height: 1.2;
}
.intro-text p { color: var(--fg-2); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.intro-text p:last-child { margin-bottom: 0; }
.intro-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.intro-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============ FOOTER ============ */
.footer { background: var(--bg); padding: 72px 0 32px; border-top: 1px solid var(--line); }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.foot-brand p {
  color: var(--fg-3);
  font-size: 14px;
  max-width: 36ch;
  margin-top: 16px;
  line-height: 1.6;
}
.foot-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--bronze);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-col a,
.foot-col span { color: var(--fg-2); font-size: 14px; }
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--fg-3);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ BACK TO TOP ============ */
.top-btn {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  border: none;
  box-shadow: 0 12px 30px -8px rgba(200, 16, 46, 0.5);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 60;
  cursor: pointer;
}
.top-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.top-btn:hover { background: var(--red-2); }

/* ============ CART SIDEBAR ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg-2);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-size: 18px; font-weight: 800; }

.cart-close {
  background: none;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  transition: color .15s;
}
.cart-close:hover { color: var(--fg); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-empty {
  text-align: center;
  color: var(--fg-3);
  padding: 40px 0;
  font-size: 14px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 13px; font-weight: 600; color: var(--fg); line-height: 1.4; }
.cart-item-price { font-size: 15px; font-weight: 800; color: var(--fg); margin-top: 4px; }

.cart-item-remove {
  background: none;
  border: none;
  color: var(--fg-3);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: color .15s;
  flex-shrink: 0;
}
.cart-item-remove:hover { color: var(--red-2); }

.cart-foot {
  padding: 20px 28px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 13px; color: var(--fg-3); }
.cart-total-sum { font-size: 22px; font-weight: 800; }
.cart-order-btn { width: 100%; justify-content: center; font-size: 16px; padding: 16px 24px; }

/* ============ FORMS ============ */
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  color: var(--fg-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--fg);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--fg-3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: rgba(181, 138, 78, 0.5); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-submit { margin-top: 4px; }
.form-submit .btn-primary { font-size: 15px; padding: 14px 32px; width: 100%; justify-content: center; }
.form-note { font-size: 12px; color: var(--fg-3); margin-top: 10px; text-align: center; line-height: 1.5; }

/* CONTACT CARDS */
.contacts-section { padding: 72px 0; }
.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card-icon { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.contact-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card-value { font-size: 15px; color: var(--fg); font-weight: 600; line-height: 1.5; }
.contact-card-value a { color: var(--fg); text-decoration: none; display: block; transition: color 0.2s; }
.contact-card-value a:hover { color: var(--red-2); }
.contact-card-note { font-size: 12.5px; color: var(--fg-3); margin-top: 6px; line-height: 1.5; }

/* WORK HOURS */
.work-hours {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 16px;
}
.work-hours-title { font-size: 13px; font-weight: 700; color: var(--fg); margin-bottom: 14px; }
.work-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.work-hours-row:last-child { border-bottom: none; }
.work-hours-row span:first-child { color: var(--fg-3); }
.work-hours-row span:last-child { color: var(--fg); font-weight: 600; }
.work-hours-row.highlight span:last-child { color: var(--red); }

/* PAYMENT SECTION */
.payment-section { padding: 72px 0; border-top: 1px solid var(--line); }
.payment-section-title {
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.payment-section-sub { font-size: 15px; color: var(--fg-3); margin-bottom: 48px; line-height: 1.6; }
.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.payment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.payment-card-icon { font-size: 28px; margin-bottom: 16px; }
.payment-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--gold);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.payment-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; line-height: 1.3; }
.payment-card p { font-size: 14px; color: var(--fg-2); line-height: 1.7; }
.payment-card p + p { margin-top: 10px; }
.payment-card strong { color: var(--fg); font-weight: 600; }

/* REQUISITES */
.req-table {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.req-company {
  padding: 16px 20px;
  background: rgba(181, 138, 78, 0.08);
  border-bottom: 1px solid var(--line);
}
.req-company-name { font-size: 15px; font-weight: 800; color: var(--fg); }
.req-company-ids {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.req-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.req-row:last-child { border-bottom: none; }
.req-key { color: var(--fg-3); white-space: nowrap; }
.req-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg);
  font-weight: 600;
  text-align: right;
}
.req-bank {
  padding: 10px 20px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-3);
  line-height: 1.5;
}
.req-bank strong { color: var(--fg-2); font-weight: 600; }

/* MAP */
.map-section { padding: 0 0 80px; }
.map-section h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.map-wrap { border-radius: var(--radius); overflow: hidden; }

/* FORM BLOCK */
.form-block h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  line-height: 1.2;
}

/* PRODUCT CARD HOVER */
.product-card:hover { border-color: var(--line-2); }

/* ============ PAGINATION ============ */
.nav-links,
.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.page-numbers:hover { color: var(--fg); border-color: var(--line-2); }
.page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.page-numbers.prev,
.page-numbers.next { width: auto; padding: 0 16px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .nav.mobile-open {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 1001;
  }
  .nav.mobile-open a {
    font-size: 22px;
    letter-spacing: 0.05em;
    color: var(--fg);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cnc-inner { grid-template-columns: 1fr; }
  .cnc-img { display: none; }
  .contacts-layout { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .materials-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .intro-grid.reverse { direction: ltr; }
  .intro-img { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .cats-grid { grid-template-columns: 1fr 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-cta .btn { display: none; }
  .brand-sub { display: none; }
  .audience-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { grid-template-columns: 1fr; gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
}

/* ============ CATEGORY PAGE HERO ============ */
.cat-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.cat-hero-text { flex: 1; }
.cat-hero-aside {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  padding-top: 56px;
}
.hero-count {
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
}
.hero-count strong { color: var(--gold); }

/* ============ PRODUCTS SECTION ============ */
.products-section { padding: 48px 0 80px; }

/* Product card — новая верстка под оригинал */
.prod-img-wrap {
  height: 260px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
}
.prod-img-wrap:hover .prod-img { transform: scale(1.04); }
.prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .3s ease;
}
.prod-img-placeholder { opacity: 0.3; }
.prod-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.prod-meta { display: flex; flex-direction: column; gap: 3px; }
.prod-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  flex: 1;
  margin: 0;
}
.prod-title-link {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}
.prod-title-link:hover { color: var(--red-2); }
.prod-size {
  font-size: 11.5px;
  color: var(--fg-3);
  line-height: 1.5;
}
.prod-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}
.prod-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.prod-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--fg);
  white-space: nowrap;
}
.prod-currency { font-size: 12px; color: var(--fg-3); font-weight: 400; }
.prod-footer-right { display: flex; align-items: center; gap: 8px; }

/* Кнопка «В корзину» — стиль оригинала: контур красный, при ховере заливается */
.btn-cart {
  background: rgba(237, 236, 234, 0.07);
  border: 2px solid var(--red);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}
.btn-cart:hover,
.btn-cart.added {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.cat-pagination { text-align: center; padding: 20px 0 48px; }
.cat-empty { text-align: center; padding: 80px 0; color: var(--fg-3); font-size: 16px; }

/* Кнопка «О категории» в hero-aside */
.btn-about-modal {
  background: transparent;
  border: 1px solid rgba(237, 236, 234, 0.3);
  color: var(--fg-2);
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-family: 'Manrope', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
  display: block;
  margin-bottom: 12px;
}
.btn-about-modal:hover {
  border-color: rgba(237, 236, 234, 0.65);
  color: var(--fg);
  background: rgba(237, 236, 234, 0.05);
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: #1a1a1c;
  border: 1px solid rgba(237, 236, 234, 0.12);
  border-radius: 16px;
  max-width: 700px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 48px 52px;
  position: relative;
  transform: translateY(24px);
  transition: transform .25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(237, 236, 234, 0.2) transparent;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--fg-3);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--fg); background: rgba(237, 236, 234, 0.08); }
.modal-title { font-size: 22px; font-weight: 700; color: var(--fg); margin-bottom: 28px; }
.modal-content { color: var(--fg-2); line-height: 1.75; font-size: 14px; }
.modal-content h3 { color: var(--fg); font-size: 15px; font-weight: 700; margin: 24px 0 8px; }
.modal-content p { margin-bottom: 14px; }
.modal-content p:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .modal-box { padding: 32px 24px; } }

@media (max-width: 768px) {
  .cat-hero-inner { flex-direction: column; }
  .cat-hero-aside { padding-top: 0; }
  .prod-footer { flex-wrap: wrap; }
}

/* ============ PRODUCT GRID ============ */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
@media (max-width: 900px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease;
}
.prod-card:hover { border-color: var(--line-2); }
.prod-card-img-wrap {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #fff;
}
.prod-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 8px;
}
.prod-card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prod-card-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--fg-3);
  letter-spacing: 0.12em;
}
.prod-card-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  color: var(--fg);
  text-decoration: none;
}
.prod-card-title a { color: var(--fg); }
.prod-card-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
}
.prod-card-btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ============ PRODUCT DETAIL ============ */
.product-section { padding: 56px 0 72px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-gallery {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
}
.product-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #f5f5f5;
  color: #aaa;
  font-size: 13px;
}
.product-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--gold);
  background: rgba(181,138,78,0.1);
  border: 1px solid rgba(181,138,78,0.2);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 14px;
}
.product-title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.product-article {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.specs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: none; }
.spec-key { color: var(--fg-3); }
.spec-val { font-weight: 600; }
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.product-price {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}
.product-currency { font-size: 18px; color: var(--fg-3); }
.product-action {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-cart-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  flex: 1;
  justify-content: center;
}
.btn-cart-lg:hover { background: var(--red-2); }
.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}

/* Компактный счётчик для карточек каталога */
.qty-control-sm .qty-btn {
  font-size: 16px;
  padding: 6px 10px;
}
.qty-control-sm .qty-val {
  font-size: 13px;
  min-width: 24px;
}

/* Строка карточки с счётчиком */
.prod-footer--cart .prod-footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}
.qty-btn {
  background: none;
  border: none;
  color: var(--fg-2);
  font-size: 20px;
  padding: 10px 16px;
  cursor: pointer;
  transition: color .15s, background .15s;
  line-height: 1;
}
.qty-btn:hover { color: var(--fg); background: var(--surface); }
.qty-val {
  font-size: 15px;
  font-weight: 700;
  min-width: 36px;
  text-align: center;
}

/* ============ RELATED PRODUCTS ============ */
.related-section { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.related-section .section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
.related-section .section-title { font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -0.01em; }
.section-link { font-size: 13px; color: var(--fg-3); transition: color .15s; }
.section-link:hover { color: var(--fg); }
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rel-grid { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .rel-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .rel-grid { grid-template-columns: 1fr; }
}

/* ============ PAGE: О КОМПАНИИ ============ */
.values-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.value-icon { font-size: 28px; margin-bottom: 16px; }
.value-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--fg); }
.value-text { font-size: 13.5px; color: var(--fg-3); line-height: 1.6; }

.quote-section { padding: 80px 0; }
.quote-block { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 40px 48px; }
.quote-text { font-size: clamp(16px, 1.8vw, 20px); color: var(--fg-2); line-height: 1.7; font-style: italic; }
.quote-text strong { color: var(--fg); font-style: normal; }

.about-materials { padding: 0 0 80px; }
.about-materials .materials-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.material-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.material-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; }
.material-text { font-size: 14px; color: var(--fg-2); line-height: 1.55; }

/* ============ PAGE: ЧПУ-ЗАТОЧКА ============ */
/* hero для внутренних страниц (не главной) */
.hero { padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 3.5vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 24px; }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: 16px; color: var(--fg-2); line-height: 1.7; margin-bottom: 32px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-img { border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 4/3; }
.hero-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }

/* badge для внутренних страниц (не золотой, не главной) */
.hero-badges .badge { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 12.5px; color: var(--fg-2); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.desc-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.desc-text h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.2; }
.desc-text p { color: var(--fg-2); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.desc-text p:last-child { margin-bottom: 0; }
.advantages { display: flex; flex-direction: column; gap: 16px; }
.adv-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.adv-icon { font-size: 22px; flex-shrink: 0; }
.adv-title { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.adv-text { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

.services-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 80px 0; }
.services-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; }
.service-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.service-group-title { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--fg-3); line-height: 1.45; }
.service-list li::before { content: '—'; color: var(--gold); flex-shrink: 0; font-weight: 700; }

.process-section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-num { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: var(--red); opacity: 0.5; margin-bottom: 12px; }
.step-title { font-size: 14px; font-weight: 700; color: var(--fg); margin-bottom: 8px; }
.step-text { font-size: 13px; color: var(--fg-3); line-height: 1.5; }

/* ============ PAGE: КАТАЛОГ ============ */
.cat-hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.cat-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.cat-hero-label { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.cat-hero h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cat-hero h1 span { color: var(--red); }
.cat-hero-meta { font-size: 14px; color: var(--fg-3); max-width: 360px; text-align: right; line-height: 1.6; }
.cat-hero-meta strong { color: var(--fg-2); display: block; font-size: 22px; font-weight: 800; }

.catalog-section { padding: 64px 0 96px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(181, 138, 78, 0.3); transform: translateY(-3px); }
.card--large { grid-column: span 2; }
.card-img { aspect-ratio: 16/9; background: #fff; overflow: hidden; flex-shrink: 0; }
.card--large .card-img { aspect-ratio: 21/9; }
.card-img img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 8px; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.card-title { font-size: 18px; font-weight: 800; color: var(--fg); letter-spacing: -0.01em; margin-bottom: 8px; line-height: 1.2; }
.card-desc { font-size: 13px; color: var(--fg-3); line-height: 1.55; flex: 1; margin-bottom: 20px; }
.card-more { font-size: 12px; font-weight: 600; color: var(--red); letter-spacing: 0.04em; transition: color .2s; }
.card:hover .card-more { color: var(--red-2); }

/* ============ RESPONSIVE — новые классы ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .desc-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-cols { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-img { display: none; }
  .cat-hero-meta { display: none; }
  .quote-block { padding: 28px 24px; }
  .about-materials .materials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-cols { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .card--large { grid-column: span 1; }
}

/* ============ TRUST LIGHTBOX ============ */
.doc--has-img { cursor: zoom-in; }
.doc--has-img:hover { border-color: var(--line-2); transform: translateY(-3px); }

.trust-lb {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 64px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.trust-lb.open { opacity: 1; pointer-events: auto; }

.trust-lb-img-wrap {
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-lb-img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  display: block;
  transition: opacity .2s ease;
}

.trust-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(237, 236, 234, 0.1);
  border: 1px solid rgba(237, 236, 234, 0.2);
  color: var(--fg);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 701;
}
.trust-lb-close:hover { background: rgba(237, 236, 234, 0.2); }

.trust-lb-prev,
.trust-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(237, 236, 234, 0.1);
  border: 1px solid rgba(237, 236, 234, 0.2);
  color: var(--fg);
  font-size: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 701;
}
.trust-lb-prev { left: 16px; }
.trust-lb-next { right: 16px; }
.trust-lb-prev:hover,
.trust-lb-next:hover { background: rgba(237, 236, 234, 0.22); }

.trust-lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(237, 236, 234, 0.5);
  letter-spacing: 0.12em;
}

@media (max-width: 640px) {
  .trust-lb { padding: 20px 52px; }
  .trust-lb-prev { left: 4px; }
  .trust-lb-next { right: 4px; }
}

/* ============ ACCESSIBILITY ============ */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ============ WORDPRESS CORE ============ */
.wp-block-image img { max-width: 100%; border-radius: var(--radius); }
.aligncenter { text-align: center; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.entry-content h1,
.entry-content h2,
.entry-content h3 { font-weight: 800; letter-spacing: -0.01em; margin-bottom: 16px; margin-top: 32px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul,
.entry-content ol { margin: 0 0 16px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.entry-content a:hover { color: var(--fg); }

/* ============ PAGE: ОФОРМЛЕНИЕ ЗАКАЗА ============ */
.checkout-section { padding: 56px 0 96px; }

.checkout-empty {
  text-align: center;
  padding: 80px 0;
}
.checkout-empty-icon { font-size: 56px; margin-bottom: 20px; }
.checkout-empty h2 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 800; margin-bottom: 12px; }
.checkout-empty p { font-size: 15px; color: var(--fg-3); margin-bottom: 28px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.checkout-block-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

/* Список товаров */
.checkout-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  flex-shrink: 0;
}
.checkout-item-img--empty {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-art {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-3);
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.checkout-item-qty {
  font-size: 13px;
  color: var(--fg-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.checkout-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
}

/* Checkout qty controls & delete button */
.checkout-item-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.co-qty-btn {
  background: none;
  border: none;
  color: var(--fg-2);
  font-size: 15px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color .15s, background .15s;
  line-height: 1;
}
.co-qty-btn:hover { color: var(--fg); background: var(--bg-2); }
.co-qty-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}
.co-del-btn {
  background: none;
  border: none;
  color: var(--fg-3);
  font-size: 13px;
  padding: 6px 8px;
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
  flex-shrink: 0;
}
.co-del-btn:hover { color: var(--red); }

/* Итого */
.checkout-order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 4px;
}
.checkout-total-label { font-size: 14px; color: var(--fg-3); }
.checkout-total-sum { font-size: 22px; font-weight: 800; color: var(--fg); }

/* Форма — ошибки */
.co-req { color: var(--red); margin-left: 2px; }
.co-error {
  display: block;
  font-size: 12px;
  color: var(--red-2);
  margin-top: 5px;
}
.form-group input.co-invalid,
.form-group textarea.co-invalid {
  border-color: var(--red);
}

/* Кнопка отправки */
.checkout-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 16px 24px;
}
.checkout-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Сообщение об успехе */
.checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 320px;
}
.checkout-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(40, 167, 69, 0.15);
  border: 2px solid rgba(40, 167, 69, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #4caf50;
  margin-bottom: 20px;
}
.checkout-success h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}
.checkout-success p {
  font-size: 15px;
  color: var(--fg-3);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .checkout-item-img { width: 40px; height: 40px; }
  .checkout-item-price { min-width: 60px; font-size: 13px; }
}
