:root {
  --bg: #ffffff;
  --bg-muted: #f5f8fc;
  --surface: #ffffff;
  --text: #1a1d23;
  --text-secondary: #5c6370;
  --text-tertiary: #8b929e;
  --border: #e8eaed;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: #eff6ff;
  --steel: #2563eb;
  --steel-subtle: #eff6ff;
  --success: #0d7c4e;
  --success-subtle: #e8f5ef;
  --warning: #b45309;
  --warning-subtle: #fef3e2;
  --error: #c41e3a;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shell: 1280px;
  --contact-bar-h: 36px;
  --header-h: 72px;
  --header-total: calc(var(--contact-bar-h) + var(--header-h));
  --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 29, 35, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 29, 35, 0.12);
  --font-mono: "SF Mono", "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open,
body.sheet-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--bg-muted);
}

.section--dark {
  color: #fff;
  background: var(--text);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--text-secondary);
}

.section-link {
  color: var(--steel);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--text-tertiary);
}

.btn--ghost {
  color: var(--steel);
  background: transparent;
  border-color: transparent;
  padding-inline: 12px;
}

.btn--ghost:hover {
  background: var(--steel-subtle);
}

.btn--whatsapp {
  color: #fff;
  background: #25d366;
  border-color: #25d366;
}

.btn--whatsapp:hover {
  background: #1fb855;
}

.btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn--full {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.contact-bar {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.contact-inner {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 24px;
}

.city-select {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  color: var(--text);
  background: none;
  font-weight: 600;
  cursor: pointer;
}

.city-select svg {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: var(--text-secondary);
}

.contact-links a:hover {
  color: var(--accent);
}

.city-contact-hint {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
}

.header-main .shell {
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav > a,
.nav-dropdown > .nav-catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  background: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.main-nav > a:hover,
.nav-dropdown > .nav-catalog-link:hover,
.main-nav > a.is-active {
  color: var(--text);
  background: var(--bg-muted);
}

.nav-dropdown {
  position: relative;
}

/* Invisible bridge so hover isn't lost crossing the gap to the panel */
.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 12px;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  z-index: 60;
  display: none;
  width: min(640px, calc(100vw - 48px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown:hover .mega-menu,
.nav-dropdown.is-open .mega-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mega-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
}

.mega-menu a:hover {
  background: var(--bg-muted);
  color: var(--steel);
}

.mega-menu-all {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--accent) !important;
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-phone {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-phone a {
  color: inherit;
  text-decoration: none;
}

.header-phone a:hover {
  color: var(--accent);
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 11px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-total));
  border-bottom: none;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/hero-bg.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 14, 24, 0.92) 0%,
    rgba(8, 14, 24, 0.72) 42%,
    rgba(8, 14, 24, 0.35) 68%,
    rgba(8, 14, 24, 0.15) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--shell), calc(100% - 48px));
  margin-inline: auto;
  padding: 56px 0;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  max-width: 640px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.hero-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
}

.hero-search input {
  min-width: 0;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 16px;
}

.hero-search input::placeholder {
  color: var(--text-tertiary);
}

.hero-search button {
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--accent-hover);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero .btn--secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.hero .trust-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.trust-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero .trust-chip::before {
  background: #fff;
}

/* Catalog showcase (snabtechmet-style) */
.section--catalog-showcase {
  background: var(--bg-muted);
}

.catalog-showcase-head {
  margin-bottom: 28px;
  text-align: center;
}

.catalog-showcase-head h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.catalog-showcase-head p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.catalog-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.catalog-showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.catalog-showcase-card:hover {
  border-color: #c7d2fe;
  box-shadow: var(--shadow-md);
}

.catalog-showcase-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f0f4f8;
}

.catalog-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.catalog-showcase-card:hover .catalog-showcase-media img {
  transform: scale(1.04);
}

.catalog-showcase-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.catalog-showcase-body h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.catalog-showcase-body h3 a:hover {
  color: var(--accent);
}

.catalog-showcase-subs {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.catalog-showcase-subs li {
  padding: 3px 0;
}

.catalog-showcase-subs a {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.catalog-showcase-subs a:hover {
  color: var(--accent-hover);
  text-decoration-style: solid;
}

.catalog-showcase-more {
  margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dotted;
}

.catalog-showcase-footer {
  margin-top: 28px;
  text-align: center;
}

/* Subcategory grid on parent category pages */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.subcategory-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.subcategory-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.subcategory-card-media {
  aspect-ratio: 1;
  background: var(--bg-muted);
  overflow: hidden;
}

.subcategory-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory-card span {
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

/* Category page header */
.category-intro--stm h1 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.category-meta {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.category-desc {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

.category-desc a {
  color: var(--accent);
}

.catalog-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: var(--accent-subtle);
  color: var(--text);
  font-size: 14px;
}

.catalog-with-sidebar--full {
  grid-template-columns: 1fr;
}

/* STM-style filters */
.filters-sidebar--stm {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.filter-group--stm {
  margin-bottom: 2px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--bg-muted);
}

.filter-group--stm summary {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-group--stm .filter-options {
  padding: 0 14px 12px;
  background: var(--surface);
}

.filters-apply {
  margin-top: 12px;
}

.filters-reset {
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* Product rows (snabtechmet list) */
.product-rows {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.product-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.product-row:last-child {
  border-bottom: 0;
}

.product-row-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-muted);
  border: 1px solid var(--border);
}

.product-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-row--skeleton {
  min-height: 104px;
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-elevated) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.product-row-name {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-row-name:hover {
  color: var(--accent-hover);
}

.product-row-gost {
  color: var(--text-secondary);
  font-size: 13px;
}

.product-row-sku {
  margin-top: 4px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.product-row-price {
  min-width: 110px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.qty-control {
  display: grid;
  grid-template-columns: 28px 48px 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-control button {
  border: 0;
  background: var(--bg-muted);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
}

.qty-control input {
  width: 100%;
  min-height: 32px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  outline: none;
}

.product-row-qty {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.product-row-qty .unit-select {
  min-width: 64px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
}

.product-row-actions {
  display: grid;
  gap: 8px;
  min-width: 130px;
}

.btn--outline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Legacy category cards */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.cat-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.cat-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: var(--radius-xs);
  background: var(--steel-subtle);
  color: var(--steel);
}

.cat-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.cat-card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  flex: 1;
}

.cat-card li {
  padding: 3px 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.cat-card li::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-tertiary);
}

.cat-card-link {
  color: var(--steel);
  font-size: 14px;
  font-weight: 600;
}

.cat-card-link:hover {
  color: var(--accent);
}

/* RFQ block */
.rfq-block {
  padding: 64px 0;
}

.rfq-inner {
  max-width: 720px;
}

.rfq-block h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
}

.rfq-block .rfq-lead {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.rfq-upload {
  display: grid;
  place-items: center;
  min-height: 120px;
  margin-bottom: 24px;
  padding: 24px;
  border: 2px dashed rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.rfq-upload:hover,
.rfq-upload.is-dragover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.rfq-upload input {
  display: none;
}

.rfq-upload strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.rfq-upload span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.rfq-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.rfq-file-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.rfq-file-tag button {
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  background: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.rfq-form {
  display: grid;
  gap: 16px;
}

.rfq-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xs);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.field select option {
  color: var(--text);
  background: var(--surface);
}

.rfq-hint {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

/* Why us */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.proof-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.proof-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border-radius: var(--radius-xs);
  background: var(--steel-subtle);
  color: var(--steel);
  font-size: 18px;
}

.proof-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.proof-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* Services */
.section--services {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 100%);
}

.section-head--services {
  align-items: flex-start;
}

.section-lead {
  max-width: 520px;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.services-bento {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 18px;
  min-height: 480px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  min-height: 220px;
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card--featured {
  grid-row: span 2;
  min-height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card-media {
  position: absolute;
  inset: 0;
  background-image: var(--service-img);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-media {
  transform: scale(1.06);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.88) 100%
  );
}

.service-card--featured .service-card-overlay {
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.2) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(15, 23, 42, 0.92) 100%
  );
}

.service-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 22px;
  color: #fff;
}

.service-card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-card--featured h3 {
  font-size: clamp(22px, 2.5vw, 28px);
}

.service-card p {
  margin: 0;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.15s;
}

.service-card:hover .service-card-link,
.service-card:focus-within .service-card-link {
  opacity: 1;
  transform: translateY(0);
}

.service-card-link:hover {
  color: #bfdbfe;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--steel);
}

.step h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

/* Calculator */
.calc-widget {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.calc-widget h2 {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
}

.calc-widget > p {
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 15px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.calc-widget .field label {
  color: var(--text-secondary);
}

.calc-widget .field input,
.calc-widget .field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.calc-widget .field input:focus,
.calc-widget .field select:focus {
  border-color: var(--steel);
}

.calc-dims {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-dims input {
  flex: 1;
  min-width: 0;
}

.calc-dims span {
  color: var(--text-tertiary);
  font-weight: 600;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
}

.calc-result strong {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.calc-result span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Price list */
.pricelist-block {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.pricelist-block h2 {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
}

.pricelist-block p {
  margin-bottom: 28px;
  color: var(--text-secondary);
  font-size: 16px;
}

.pricelist-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.pricelist-meta {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Contacts */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: start;
}

.contacts-info h2 {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 700;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-xs);
  background: var(--steel-subtle);
  color: var(--steel);
  flex-shrink: 0;
  font-size: 16px;
}

.contact-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.contact-item span,
.contact-item a {
  color: var(--text-secondary);
  font-size: 14px;
}

.contact-item a:hover {
  color: var(--accent);
}

.branches {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.branches h3 {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}

.branch-list {
  display: grid;
  gap: 8px;
}

.branch-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
  font-size: 14px;
}

.branch-item.is-active {
  background: var(--steel-subtle);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.branch-item-main {
  display: grid;
  gap: 2px;
}

.branch-item-main strong {
  font-weight: 600;
}

.branch-item-main span {
  color: var(--text-secondary);
  font-size: 13px;
}

.contacts-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.section--offices .section-head {
  margin-bottom: 24px;
}

.section--offices .section-head h2 {
  font-size: 28px;
  font-weight: 700;
}

.section--offices .section-head p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 15px;
}

.kz-map-block {
  margin-bottom: 40px;
}

.kz-map {
  height: 480px;
  background: var(--bg-muted);
}

.kz-map-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--text-tertiary);
  font-size: 14px;
}

.kz-map-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.kz-map-city {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.kz-map-city:hover {
  border-color: var(--accent);
}

.kz-map-city.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: var(--steel-subtle);
}

.kz-map-city-pin {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
  flex-shrink: 0;
}

.kz-map-city.is-active .kz-map-city-pin {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.kz-map-city-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.kz-map-city-body strong {
  font-size: 14px;
  font-weight: 600;
}

.kz-map-city-body span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}

.kz-map-city-phone {
  color: var(--accent) !important;
  font-weight: 500;
}

.kz-marker {
  background: transparent;
  border: 0;
}

.kz-marker-pin {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  border: 2px solid #93c5fd;
  color: #1d4ed8;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform 0.15s, background 0.15s;
}

.kz-marker-pin.is-active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(37, 99, 235, 0.35);
}

.kz-marker-pin span {
  display: block;
  margin-top: -1px;
}

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 14px;
  line-height: 1.45;
}

.leaflet-popup-content a {
  color: var(--accent);
}

.map-placeholder {
  min-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  color: var(--text-tertiary);
  font-size: 14px;
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

@media (max-width: 768px) {
  .kz-map {
    height: 320px;
  }

  .kz-map-legend {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer h3 {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Catalog layout */
.page {
  padding: 32px 0 64px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span::before,
.breadcrumbs a + a::before,
.breadcrumbs a + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--border);
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-header p {
  max-width: 720px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.catalog-search-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.catalog-search-bar input {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  outline: 0;
  font-size: 16px;
}

.catalog-search-bar button {
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-count {
  color: var(--text-secondary);
  font-size: 14px;
  margin-right: auto;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: 0;
  color: var(--text-tertiary);
  background: var(--surface);
  cursor: pointer;
}

.view-toggle button.is-active {
  color: var(--text);
  background: var(--bg-muted);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--steel-subtle);
  color: var(--steel);
  font-size: 12px;
  font-weight: 500;
}

.filter-pill button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--steel);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.filter-reset {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 4px 0;
}

/* Filters sidebar */
.filters-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.filters-sidebar h2 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.filter-group {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.filter-group:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  color: var(--text-tertiary);
  font-size: 18px;
  font-weight: 400;
}

.filter-group[open] summary::after {
  content: "−";
}

.filter-search {
  width: 100%;
  min-height: 32px;
  margin-bottom: 8px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
}

.filter-search:focus {
  border-color: var(--steel);
}

.filter-options {
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-option input {
  accent-color: var(--accent);
}

.filter-option:hover {
  color: var(--text);
}

.stock-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.stock-toggle input {
  accent-color: var(--accent);
}

/* Product table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: auto;
}

.product-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.product-table th,
.product-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.product-table th {
  color: var(--text-tertiary);
  background: var(--bg-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.product-table tbody tr:hover {
  background: var(--bg-muted);
}

.product-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.table-name:hover {
  color: var(--steel);
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.price-cell {
  font-weight: 600;
  white-space: nowrap;
}

.unit-select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--surface);
}

.table-actions {
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge--stock {
  color: var(--success);
}

.status-badge--stock::before {
  background: var(--success);
}

.status-badge--order {
  color: var(--warning);
}

.status-badge--order::before {
  background: var(--warning);
  border-radius: 50%;
  border: 1px solid var(--warning);
  background: transparent;
}

.status-badge--none {
  color: var(--text-tertiary);
}

.status-badge--none::before {
  background: var(--text-tertiary);
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.product-card:hover {
  box-shadow: var(--shadow-sm);
}

.product-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--bg-muted);
  overflow: hidden;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px;
  gap: 8px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.product-card-name:hover {
  color: var(--steel);
}

.product-card-meta {
  display: grid;
  gap: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.product-card-price {
  font-weight: 700;
  font-size: 15px;
}

.product-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Sticky quote sidebar */
.quote-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.quote-sidebar h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.quote-sidebar-items {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
}

.quote-sidebar-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
  font-size: 13px;
}

.quote-sidebar-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.quote-sidebar-item span {
  color: var(--text-tertiary);
  font-size: 12px;
}

.quote-sidebar-empty {
  padding: 24px 0;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 14px;
}

.catalog-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* Category page extras */
.category-intro {
  margin-bottom: 24px;
}

.related-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.related-cat {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
}

.related-cat:hover {
  border-color: var(--steel);
  color: var(--steel);
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.manager-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--steel-subtle);
}

.manager-cta h2 {
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
}

.manager-cta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.manager-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

/* Product page */
.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.product-gallery {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.product-gallery img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  padding: 24px;
  background: var(--bg-muted);
}

.product-info h1 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.sku-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sku-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 12px;
  font-family: var(--font-mono);
}

.buy-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 20px;
}

.buy-box-price {
  display: block;
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 700;
}

.buy-box-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.buy-box-row input {
  width: 80px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.buy-box-row select {
  flex: 1;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}

.product-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.spec-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.spec-table dl {
  margin: 0;
}

.spec-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-row:last-child {
  border-bottom: 0;
}

.spec-row dt {
  color: var(--text-secondary);
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
}

.desc-block {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.desc-block h2 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.desc-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.image-fallback {
  min-height: 140px;
  background: linear-gradient(135deg, var(--bg-muted), var(--border));
}

.image-fallback.large {
  min-height: 420px;
}

/* Quote drawer */
.quote-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(26, 29, 35, 0.4);
  backdrop-filter: blur(2px);
}

.quote-drawer.is-open {
  display: block;
}

.quote-panel {
  width: min(440px, 100%);
  height: 100%;
  margin-left: auto;
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.quote-panel h2 {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 700;
}

.quote-panel-sub {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
}

.drawer-close {
  float: right;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
}

.quote-items {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg-muted);
}

.quote-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.quote-item span {
  color: var(--text-tertiary);
  font-size: 12px;
}

.quote-item button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-tertiary);
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  outline: none;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--steel);
}

.quote-form textarea {
  min-height: 88px;
  padding-top: 12px;
  resize: vertical;
}

.quote-form-hint {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(26, 29, 35, 0.4);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-panel {
  width: min(320px, 85vw);
  height: 100%;
  padding: 24px;
  background: var(--surface);
  overflow-y: auto;
}

.mobile-nav-panel h2 {
  margin-bottom: 20px;
  font-size: 18px;
}

.mobile-nav-links {
  display: grid;
  gap: 4px;
}

.mobile-nav-links a,
.mobile-nav-links button {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: var(--radius-xs);
  text-align: left;
  color: var(--text);
  background: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-nav-links button small {
  display: block;
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 400;
}

.mobile-nav-links a:hover,
.mobile-nav-links button:hover {
  background: var(--bg-muted);
}

.mobile-nav-cats {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-nav-cats summary {
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.mobile-nav-cats summary::-webkit-details-marker {
  display: none;
}

.mobile-nav-cats a {
  padding-left: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Filter bottom sheet */
.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  background: rgba(26, 29, 35, 0.4);
}

.filter-sheet.is-open {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.filter-sheet-panel {
  max-height: 85vh;
  padding: 24px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
  overflow-y: auto;
}

.filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filter-sheet-header h2 {
  margin: 0;
  font-size: 18px;
}

.filter-sheet-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 0 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

/* Mobile bottom bar */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -4px 16px rgba(26, 29, 35, 0.08);
}

.mobile-bar a,
.mobile-bar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px;
  border: 0;
  color: var(--text-secondary);
  background: none;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-bar a:hover,
.mobile-bar button:hover {
  color: var(--accent);
}

.mobile-bar-icon {
  font-size: 18px;
}

/* Floating contact widget (desktop/tablet) */
.floating-contact-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 10px;
}

.floating-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(26, 29, 35, 0.2);
  transition: transform 0.15s;
}

.floating-contact-btn:hover {
  transform: translateY(-1px);
}

.floating-contact-btn--phone {
  background: var(--accent);
}

.floating-contact-btn--wa {
  background: #25d366;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 110;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination button {
  min-width: 36px;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-secondary);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
}

.pagination button.is-active {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Responsive */
@media (max-width: 1100px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-row {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb main"
      "price price"
      "qty actions";
  }

  .product-row-thumb { grid-area: thumb; }
  .product-row-main { grid-area: main; }
  .product-row-price { grid-area: price; }
  .product-row-qty { grid-area: qty; justify-items: start; }
  .product-row-actions { grid-area: actions; grid-template-columns: 1fr 1fr; }

  .service-card--featured {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .steps::before {
    display: none;
  }

  .catalog-with-sidebar {
    grid-template-columns: 1fr;
  }

  .quote-sidebar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .main-nav,
  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    display: none;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-page,
  .product-details,
  .contacts-grid,
  .calc-grid,
  .rfq-row {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-bento {
    grid-template-columns: 1fr;
  }

  .service-card--featured {
    grid-column: span 1;
    min-height: 300px;
  }

  .service-card-link {
    opacity: 1;
    transform: none;
  }

  .mobile-bar {
    display: grid;
  }

  body {
    padding-bottom: 56px;
  }

  .floating-contact-widget {
    display: none;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(var(--shell), calc(100% - 28px));
  }

  .section {
    padding: 48px 0;
  }

  .hero-inner {
    width: min(var(--shell), calc(100% - 28px));
    padding: 40px 0;
  }

  .hero-search {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    border-top: 1px solid var(--border);
  }

  .contact-links {
    display: none;
  }

  .header-actions .btn--whatsapp span {
    display: none;
  }

  .catalog-showcase-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .product-grid,
  .proof-grid,
  .services-bento,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .manager-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalog-search-bar {
    grid-template-columns: 1fr;
  }

  .catalog-search-bar button {
    border-top: 1px solid var(--border);
  }

  .table-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .pricelist-actions {
    flex-direction: column;
  }

  .pricelist-actions .btn {
    width: 100%;
  }
}
