/* ============================================
   Babigum 7 - Design tokens & base styles
   ============================================ */

:root {
  /* Brand colors */
  --color-navy-900: #0f1e3d;
  --color-navy-800: #16294f;
  --color-navy-700: #1e3a8a;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-400: #60a5fa;

  /* Neutrals */
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-soft: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-tint: #eef2f9;
  --color-border: #e2e8f0;
  --color-border-soft: #f1f5f9;

  /* Gradient backgrounds used in hero + product cards */
  --grad-hero: linear-gradient(135deg, #f3f6fb 0%, #e6ecf5 55%, #c8d4e8 100%);
  --grad-card-blue: linear-gradient(135deg, #1e3a8a 0%, #2855a8 100%);
  --grad-feature-strip: linear-gradient(180deg, #2e4870 0%, #1e3358 100%);

  /* Spacing */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 30, 61, .05);
  --shadow-md: 0 10px 30px rgba(15, 30, 61, .08);
  --shadow-lg: 0 20px 50px rgba(15, 30, 61, .12);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; color: var(--color-navy-900); letter-spacing: -.02em; }

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 18px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: transform .2s ease;
}
.btn-primary {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, .28);
}
.btn-primary:hover { background: var(--color-navy-700); transform: translateY(-1px); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost {
  background: transparent;
  color: var(--color-blue-600);
  border: 1.5px solid var(--color-blue-600);
}
.btn-ghost:hover { background: var(--color-blue-600); color: #fff; }

/* circular arrow button used inside cards */
.icon-arrow {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all .2s ease;
}
a:hover .icon-arrow,
.solution-card:hover .icon-arrow { background: var(--color-blue-600); color: #fff; border-color: var(--color-blue-600); transform: translateX(3px); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--color-border-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
}
.nav > .logo { margin-inline-end: auto; }
.logo {
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  color: var(--color-navy-900);
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: .04em;
  margin-top: 4px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color .15s ease;
  position: relative;
  padding: 8px 0;
}
.nav-menu a:hover,
.nav-menu li.active > a { color: var(--color-blue-600); }
.nav-menu .has-dropdown { position: relative; }
.nav-menu .has-dropdown > a::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 6px;
  transition: transform .2s ease;
}
.nav-menu .has-dropdown.open > a::after { transform: translateY(1px) rotate(225deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all .2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.dropdown a:hover { background: var(--color-bg-soft); color: var(--color-blue-600); }
.dropdown .ico { width: 22px; height: 22px; color: var(--color-blue-600); flex-shrink: 0; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  background: #eef2f9;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .04em;
  border-radius: 999px;
  color: var(--color-text-muted);
  transition: all .15s ease;
  line-height: 1;
  cursor: pointer;
}
.lang-switch button:hover { color: var(--color-navy-900); }
.lang-switch button.active {
  background: var(--color-blue-600);
  color: #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}

/* ============================================
   RTL adjustments
   ============================================ */
[dir="rtl"] body {
  font-family: 'Heebo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[dir="rtl"] .hero h1,
[dir="rtl"] .section-header h2,
[dir="rtl"] .page-hero h1 { letter-spacing: 0; }

/* Icon-arrow inside solution cards — flip to opposite side */
[dir="rtl"] .solution-card .icon-arrow {
  right: auto;
  left: 18px;
}
/* Arrow icon inside circular CTA pills — flip horizontally so → looks like → in RTL too */
[dir="rtl"] .btn .arrow svg,
[dir="rtl"] .icon-arrow svg,
[dir="rtl"] .breadcrumb .sep {
  transform: scaleX(-1);
}

/* Hero & page-hero gradient overlays were anchored on right — mirror to left in RTL */
[dir="rtl"] .hero {
  background-image:
    linear-gradient(-90deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.85) 28%, rgba(245,248,252,.4) 50%, rgba(245,248,252,0) 70%),
    url('../assets/img/hero-industrial.png');
  background-position: center, center left;
  transform: none;
}
[dir="rtl"] .hero-industrial,
[dir="rtl"] .hero {
  /* flip the underlying image so products end up on the LEFT (start in RTL) */
}
[dir="rtl"] .hero::before {
  right: auto;
  left: -6%;
  transform: skewX(14deg);
}
[dir="rtl"] .page-hero {
  background-image:
    linear-gradient(-90deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.85) 28%, rgba(245,248,252,.35) 50%, rgba(245,248,252,0) 65%),
    var(--page-hero-bg, none),
    linear-gradient(120deg, #f5f8fc 0%, #e8eef7 45%, #d0dbef 100%);
  background-position: center, center left, center;
}
[dir="rtl"] .page-hero::before {
  right: auto;
  left: -6%;
  transform: skewX(14deg);
}
[dir="rtl"] .order-section::before {
  right: auto;
  left: -8%;
  transform: skewX(14deg);
}

/* Form labels stay aligned to start in RTL (right side) — flexbox handles it */
[dir="rtl"] .order-form-card .form-group select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}
[dir="rtl"] .order-form-card button[type="submit"] { align-self: flex-end; }

/* Dropdown menu items flip icon order in RTL automatically via flex; just align text */
[dir="rtl"] .dropdown a { direction: rtl; text-align: right; }

/* Footer copyright text */
[dir="rtl"] .footer-bottom { direction: rtl; }

/* Solution card text divider under h3 — keep on start side */
[dir="rtl"] .solution-card h3::after,
[dir="rtl"] .tab-panel-header h2::after,
[dir="rtl"] .order-info h2 + p ~ .benefits li::before { margin-right: 0; }
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  left: 0;
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 640px;
  background-image:
    linear-gradient(90deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.85) 28%, rgba(245,248,252,.4) 50%, rgba(245,248,252,0) 70%),
    url('../assets/img/hero-industrial.png');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 60px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -6%;
  top: -25%;
  width: 30%;
  height: 150%;
  background: linear-gradient(135deg, rgba(30,58,138,.18) 0%, rgba(40,85,168,.32) 100%);
  transform: skewX(-14deg);
  z-index: 1;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 600px) 1fr;
  align-items: center;
  gap: 40px;
  min-height: 600px;
}
.hero-inner > .hero-image { display: none; }
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  margin-top: 18px;
  letter-spacing: -.03em;
}
.hero h1 .light { color: var(--color-text-soft); font-weight: 700; display: block; }
.hero .divider { width: 80px; height: 3px; background: var(--color-blue-500); border-radius: 2px; margin: 28px 0; }
.hero p.lead {
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 0 18px;
}
.hero p.desc {
  font-size: 15px;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 0 36px;
  line-height: 1.7;
}
.hero-image {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image .product-stage {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 60% 50%, rgba(255,255,255,.55) 0%, rgba(214,223,238,.4) 40%, transparent 80%);
  border-radius: 24px;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image .product-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(15, 30, 61, .25));
  position: relative;
  z-index: 2;
}
.hero-image .product-stage::after {
  content: "";
  position: absolute;
  bottom: 5%;
  left: 10%;
  right: 10%;
  height: 14px;
  background: radial-gradient(ellipse at center, rgba(15,30,61,.25) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 1;
}

/* feature strip below hero */
.feature-strip {
  background: var(--grad-feature-strip);
  border-radius: 18px;
  padding: 28px 32px;
  margin: 40px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  color: #fff;
  max-width: calc(var(--container) - 48px);
}
.feature-strip .item { display: flex; gap: 14px; align-items: flex-start; }
.feature-strip .item .ico {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: #cfdcf2;
  flex-shrink: 0;
}
.feature-strip .item h4 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-strip .item p { font-size: 13px; color: #b8c5dc; margin: 0; line-height: 1.5; }

/* ============================================
   Sections
   ============================================ */
.section-header { max-width: 720px; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.section-header h2 .light { color: var(--color-text-soft); display: block; }
.section-header p {
  font-size: 16px;
  color: var(--color-text-muted);
  margin: 18px 0 28px;
  max-width: 480px;
}

/* solutions section */
.solutions-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 1280px) {
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
}
.solution-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 26px 22px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  min-height: 380px;
  overflow: hidden;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.solution-card .card-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--color-bg-tint);
  color: var(--color-blue-600);
  display: flex; align-items: center; justify-content: center;
}
.solution-card h3 {
  font-size: 19px;
  font-weight: 700;
}
.solution-card h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--color-blue-500);
  margin-top: 10px;
}
.solution-card p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
}
.solution-card .card-image {
  margin-top: auto;
  margin-left: -22px;
  margin-right: -22px;
  margin-bottom: 0;
  height: 200px;
  flex-shrink: 0;
  background:
    radial-gradient(ellipse 80% 45% at 50% 70%, rgba(15,30,61,.10) 0%, rgba(15,30,61,0) 70%),
    linear-gradient(180deg, #f7f9fc 0%, #e6edf6 60%, #d5dfee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  padding: 14px;
}
.solution-card .card-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  filter: drop-shadow(0 14px 14px rgba(15, 30, 61, .18));
  transition: transform .5s ease;
}
.solution-card:hover .card-image img { transform: scale(1.05) translateY(-3px); }

/* Scene-style image (industries/capabilities/quality) — full-bleed photo with own background */
.solution-card .card-image.card-image--scene {
  background: none;
  padding: 0;
  align-items: stretch;
}
.solution-card .card-image.card-image--scene img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.solution-card:hover .card-image.card-image--scene img { transform: scale(1.06) translateY(0); }
.solution-card .icon-arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  z-index: 3;
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 30, 61, .15);
}

/* features strip below solutions (light variant) */
.features-light {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  background: var(--color-bg-soft);
  padding: 28px 32px;
  border-radius: 18px;
  margin-top: 32px;
}
.features-light .item { display: flex; gap: 14px; align-items: flex-start; }
.features-light .item .ico {
  width: 36px; height: 36px;
  color: var(--color-navy-700);
  flex-shrink: 0;
}
.features-light .item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--color-text); }
.features-light .item p { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* ============================================
   Page hero (sub-pages)
   ============================================ */
.page-hero {
  background-color: #f5f8fc;
  background-image:
    linear-gradient(90deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.85) 28%, rgba(245,248,252,.35) 50%, rgba(245,248,252,0) 65%),
    var(--page-hero-bg, none),
    linear-gradient(120deg, #f5f8fc 0%, #e8eef7 45%, #d0dbef 100%);
  background-size: cover, cover, cover;
  background-position: center, center right, center;
  background-repeat: no-repeat;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -6%; top: -25%;
  width: 28%; height: 150%;
  background: linear-gradient(135deg, rgba(30,58,138,.22) 0%, rgba(40,85,168,.36) 100%);
  transform: skewX(-14deg);
  z-index: 1;
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) 1fr;
  align-items: center;
  gap: 40px;
}
.page-hero-inner > .page-hero-img { display: none; }
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--color-blue-600); }
.breadcrumb span.sep { color: var(--color-text-soft); }
.breadcrumb span.current { color: var(--color-navy-900); font-weight: 500; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -.025em;
}
.page-hero p {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-top: 18px;
  max-width: 480px;
}
.page-hero-img {
  height: 360px;
  border-radius: 22px;
  background: radial-gradient(circle at 55% 50%, rgba(255,255,255,.5) 0%, rgba(214,223,238,.35) 50%, transparent 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(15, 30, 61, .22));
  position: relative;
  z-index: 2;
}

/* ============================================
   Solution detail page - tabs
   ============================================ */
.tabs-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px;
  margin: -36px auto 0;
  position: relative;
  z-index: 2;
}
.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  position: relative;
  transition: all .2s ease;
}
.tab-btn:hover { color: var(--color-blue-600); }
.tab-btn.active { color: var(--color-blue-600); }
.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: var(--color-blue-600);
  border-radius: 2px;
}
.tab-btn svg, .tab-btn .ico { width: 22px; height: 22px; }

/* tab panels */
.tab-panel { display: none; padding: 56px 0; }
.tab-panel.active { display: block; }

.tab-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-panel-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.tab-panel-header h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-blue-500);
  border-radius: 2px;
  margin-top: 14px;
}
.tab-panel-header p {
  font-size: 15px;
  color: var(--color-text-muted);
  margin-top: 16px;
  max-width: 480px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all .2s ease;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--color-blue-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.product-card .img {
  border-radius: 10px;
  height: 130px;
  background: linear-gradient(135deg, #eef2f9, #d8e1ef);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15,30,61,.3);
  font-size: 11px;
  margin-bottom: 16px;
}
.product-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.product-card p { font-size: 12.5px; color: var(--color-text-muted); margin: 0; line-height: 1.5; }
.product-card .arrow-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

/* side feature column */
.feature-list {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.feature-list .feat { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .feat .ico {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 10px;
  color: var(--color-blue-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-list .feat h5 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--color-text); }
.feature-list .feat p { font-size: 13px; color: var(--color-text-muted); margin: 0; line-height: 1.55; }

/* ============================================
   Generic content blocks (about/contact/etc.)
   ============================================ */
.text-block {
  max-width: 760px;
  margin: 0 auto;
}
.text-block h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.text-block p { font-size: 16px; color: var(--color-text-muted); margin: 14px 0; line-height: 1.7; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { background: var(--color-bg-soft); border-radius: var(--radius-lg); padding: 36px; }
.contact-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.contact-info .row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--color-border-soft); align-items: flex-start; }
.contact-info .row:last-child { border-bottom: none; }
.contact-info .row .ico { width: 38px; height: 38px; background: #fff; border-radius: 10px; color: var(--color-blue-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-info .row strong { display: block; font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.contact-info .row span { font-size: 15px; color: var(--color-text); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; color: var(--color-text-muted); font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  font-family: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--color-blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ============================================
   Order & Payment section (homepage)
   ============================================ */
.order-section {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 99, 235, .18) 0%, rgba(15, 30, 61, 0) 60%),
    linear-gradient(180deg, #0f1e3d 0%, #16294f 100%);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
}
.order-section::before {
  content: "";
  position: absolute;
  right: -8%; top: -25%;
  width: 28%; height: 150%;
  background: linear-gradient(135deg, rgba(59, 130, 246, .14) 0%, rgba(96, 165, 250, .08) 100%);
  transform: skewX(-14deg);
  z-index: 0;
  pointer-events: none;
}
.order-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: stretch;
}

/* Form card (left) */
.order-form-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
}
.order-form-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-form-card h3 .ico {
  width: 32px; height: 32px;
  background: rgba(59, 130, 246, .18);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-400);
}
.order-form-card .form-group label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}
.order-form-card .form-group input,
.order-form-card .form-group textarea,
.order-form-card .form-group select {
  background: rgba(15, 30, 61, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.order-form-card .form-group input::placeholder,
.order-form-card .form-group textarea::placeholder {
  color: rgba(148, 163, 184, .55);
}
.order-form-card .form-group input:focus,
.order-form-card .form-group textarea:focus,
.order-form-card .form-group select:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: rgba(15, 30, 61, .85);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.order-form-card .form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.order-form-card .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.order-form-card .form-row.full { grid-template-columns: 1fr; }
.order-form-card .contact-form { display: flex; flex-direction: column; gap: 16px; }
.order-form-card button[type="submit"] {
  align-self: flex-start;
  margin-top: 8px;
}
.order-form-card .form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 8px;
}

/* Info column (right) */
.order-info { display: flex; flex-direction: column; justify-content: center; }
.order-info .eyebrow {
  color: var(--color-blue-400);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.order-info h2 {
  color: #fff;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.order-info h2 .light { color: #94a3b8; display: block; font-weight: 700; }
.order-info > p {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.7;
  margin: 22px 0 0;
  max-width: 460px;
}
.benefits {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}
.benefits li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: 15px;
  color: #cbd5e1;
}
.benefits li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .18);
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .order-grid { grid-template-columns: 1fr; gap: 40px; }
  .order-info { order: -1; }
  .order-section { padding: 64px 0; }
}
@media (max-width: 720px) {
  .order-form-card { padding: 24px; }
  .order-form-card .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-navy-900);
  color: #cbd5e1;
  padding: 64px 0 32px;
  margin-top: 80px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-top h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: .04em; }
.footer-top a { color: #94a3b8; font-size: 14px; line-height: 2; transition: color .15s ease; }
.footer-top a:hover { color: #fff; }
.footer-top .brand { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-top .brand small { font-size: 12px; color: #94a3b8; font-weight: 500; display: block; margin-top: 4px; }
.footer-top p { font-size: 14px; color: #94a3b8; line-height: 1.7; margin: 16px 0 0; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    background-image:
      linear-gradient(180deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.88) 40%, rgba(245,248,252,.35) 70%, transparent 100%),
      url('../assets/img/hero-industrial.png');
    background-position: top, center bottom;
    background-size: cover, 140% auto;
    min-height: 720px;
  }
  .hero::before { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; min-height: 480px; padding-bottom: 60px; }
  .hero-image { height: 360px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
  .solutions-grid { grid-template-columns: repeat(3, 1fr); }
  .solutions-block { grid-template-columns: 1fr; gap: 32px; }
  .features-light { grid-template-columns: repeat(2, 1fr); }
  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(245,248,252,.96) 0%, rgba(245,248,252,.85) 30%, rgba(245,248,252,.3) 60%, transparent 100%),
      var(--page-hero-bg, none),
      linear-gradient(120deg, #f5f8fc 0%, #e8eef7 45%, #d0dbef 100%);
    background-position: top, center bottom, center;
    background-size: cover, 140% auto, cover;
    min-height: 620px;
  }
  .page-hero::before { display: none; }
  .page-hero-inner { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .nav-menu { display: none; }
  .menu-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 18px;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open li { width: 100%; }
  .nav-menu.open a { display: block; padding: 14px 12px; width: 100%; border-radius: 8px; }
  .nav-menu.open a:hover { background: var(--color-bg-soft); }
  .nav-menu.open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 6px 0 6px 18px; min-width: 0; }
  .nav-menu.open .has-dropdown > a::after { display: none; }

  .feature-strip, .features-light { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: 44px; }
  .nav { gap: 16px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }
}

/* Tight phones (≤480px): hide the "Get in Touch" CTA from the header —
   Contact link is in the hamburger menu. Prevents nav overflow. */
@media (max-width: 480px) {
  .nav-cta > .btn { display: none; }
  .nav { gap: 12px; }
  .nav-cta { gap: 6px; }
  .logo { font-size: 20px; }
  .logo small { font-size: 10.5px; }
}

/* ============================================
   Industrial Calculator (homepage)
   ============================================ */
.calc-section {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 99, 235, .22) 0%, rgba(15, 30, 61, 0) 55%),
    radial-gradient(ellipse at 0% 80%, rgba(59, 130, 246, .12) 0%, rgba(15, 30, 61, 0) 60%),
    linear-gradient(180deg, #0b1733 0%, #0f1e3d 55%, #16294f 100%);
  color: #fff;
  padding: 110px 0;
  overflow: hidden;
}
.calc-section::before {
  content: "";
  position: absolute;
  left: -8%; top: -25%;
  width: 32%; height: 150%;
  background: linear-gradient(135deg, rgba(96, 165, 250, .14) 0%, rgba(37, 99, 235, .06) 100%);
  transform: skewX(-14deg);
  z-index: 0;
  pointer-events: none;
}
/* RTL: зеркалим декоративную диагональную заливку калькулятора */
[dir="rtl"] .calc-section::before {
  left: auto;
  right: -8%;
  transform: skewX(14deg);
}
/* RTL: select dropdown — стрелка слева, padding слева */
[dir="rtl"] .calc-field select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 40px;
}
.calc-section .container { position: relative; z-index: 1; }

/* Header */
.calc-header { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.calc-header .eyebrow {
  color: var(--color-blue-400);
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.calc-header h2 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.calc-header h2 .light { color: #94a3b8; display: block; font-weight: 700; }
.calc-header p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.7;
  margin: 22px auto 0;
  max-width: 600px;
}

/* Grid: configurator (left) + sticky result (right) */
.calc-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 36px;
  align-items: start;
}

/* Step card */
.calc-form { display: flex; flex-direction: column; gap: 18px; }
.calc-step {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 20px;
  padding: 28px 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .25);
  opacity: .55;
  transition: opacity .25s ease, border-color .25s ease, transform .25s ease;
}
.calc-step[hidden] { display: none; }
.calc-step.is-open { opacity: 1; border-color: rgba(96, 165, 250, .25); }
.calc-step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.calc-step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  min-width: 44px; height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .18);
  color: var(--color-blue-400);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.calc-step-head h3 { color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.calc-step-hint { color: #7e8bab; font-size: 13px; margin-inline-start: auto; }

/* Step 1: product type cards */
.calc-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.calc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 18px 20px;
  background: linear-gradient(160deg, rgba(15, 30, 61, .55) 0%, rgba(22, 41, 79, .55) 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  text-align: start;
  color: #cbd5e1;
  cursor: pointer;
  font-family: inherit;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  overflow: hidden;
  isolation: isolate;
}
.calc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% -20%, rgba(96, 165, 250, .28) 0%, rgba(96, 165, 250, 0) 70%);
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.calc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, .35);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}
.calc-card:hover::before { opacity: 1; }
.calc-card.is-active {
  border-color: var(--color-blue-500);
  background: linear-gradient(160deg, rgba(37, 99, 235, .25) 0%, rgba(30, 58, 138, .35) 100%);
  box-shadow: 0 0 0 1px var(--color-blue-500), 0 18px 40px rgba(37, 99, 235, .28);
  color: #fff;
}
.calc-card.is-active::before { opacity: 1; }
.calc-card-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(96, 165, 250, .15), rgba(59, 130, 246, .05));
  border: 1px solid rgba(96, 165, 250, .25);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-blue-400);
  transition: transform .35s ease, color .25s ease, border-color .25s ease;
}
.calc-card-ico svg { width: 28px; height: 28px; }
.calc-card:hover .calc-card-ico { transform: rotate(-4deg) scale(1.04); }
.calc-card.is-active .calc-card-ico {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  background: linear-gradient(160deg, rgba(96, 165, 250, .35), rgba(37, 99, 235, .25));
}
.calc-card h4 { color: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.calc-card p { font-size: 12.5px; color: rgba(203, 213, 225, .75); margin: 0; line-height: 1.5; }
.calc-card.is-active p { color: rgba(255, 255, 255, .8); }

/* Selected check mark */
.calc-card::after {
  content: "";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-blue-500) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center/13px no-repeat;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s ease, transform .2s ease;
}
.calc-card.is-active::after { opacity: 1; transform: scale(1); }

/* Step 2: material chips */
.calc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.calc-chip {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(15, 30, 61, .55);
  color: #cbd5e1;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.calc-chip:hover { border-color: rgba(96, 165, 250, .45); color: #fff; }
.calc-chip.is-active {
  background: var(--color-blue-600);
  border-color: var(--color-blue-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
}

/* Step 3 & 4: fields */
.calc-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field--full { grid-column: 1 / -1; }
.calc-field label {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}
.calc-field input,
.calc-field textarea,
.calc-field select {
  background: rgba(15, 30, 61, .55);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  padding: 13px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.calc-field input::placeholder,
.calc-field textarea::placeholder { color: rgba(148, 163, 184, .55); }
.calc-field input:focus,
.calc-field textarea:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--color-blue-500);
  background: rgba(15, 30, 61, .85);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .15);
}
.calc-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.calc-field textarea { resize: vertical; min-height: 90px; }

/* Toggles */
.calc-toggles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.calc-toggle {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 30, 61, .55);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
  align-items: flex-start;
}
.calc-toggle:hover { border-color: rgba(96, 165, 250, .35); }
.calc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.calc-toggle-track {
  flex-shrink: 0;
  position: relative;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  transition: background .2s ease;
  margin-top: 2px;
}
.calc-toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.calc-toggle input:checked ~ .calc-toggle-track { background: var(--color-blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
.calc-toggle input:checked ~ .calc-toggle-track .calc-toggle-thumb { transform: translateX(16px); }
.calc-toggle-body { display: flex; flex-direction: column; gap: 2px; }
.calc-toggle-title { color: #fff; font-size: 14.5px; font-weight: 600; }
.calc-toggle-desc { color: #94a3b8; font-size: 12.5px; line-height: 1.45; }
.calc-toggle:has(input:checked) {
  border-color: rgba(96, 165, 250, .5);
  background: rgba(37, 99, 235, .14);
}

/* RIGHT: result panel */
.calc-result {
  position: sticky;
  top: 100px;
}
.calc-result-inner {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, .18) 0%, rgba(15, 30, 61, 0) 60%),
    linear-gradient(180deg, rgba(15, 30, 61, .85) 0%, rgba(11, 23, 51, .92) 100%);
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 22px;
  padding: 32px 30px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
  backdrop-filter: blur(12px);
}
.calc-result-head { margin-bottom: 22px; }
.calc-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .18);
  color: var(--color-blue-400);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.calc-result-badge svg { animation: calc-spin 8s linear infinite; }
@keyframes calc-spin { to { transform: rotate(360deg); } }
.calc-result-head h3 { color: #fff; font-size: 22px; font-weight: 700; }

.calc-summary { list-style: none; padding: 0; margin: 0 0 22px; }
.calc-summary li {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .08);
  font-size: 14px;
}
.calc-summary li:last-child { border-bottom: none; }
.calc-summary .label { color: #94a3b8; flex-shrink: 0; }
.calc-summary .value { color: #fff; font-weight: 500; text-align: right; max-width: 65%; }
.calc-summary .value.is-empty { color: #64748b; font-weight: 400; }

/* Price block */
.calc-price {
  background: linear-gradient(160deg, rgba(37, 99, 235, .18) 0%, rgba(30, 58, 138, .08) 100%);
  border: 1px solid rgba(96, 165, 250, .3);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
}
.calc-price-label {
  color: #94a3b8;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-price-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -.02em;
}
.calc-price-value .from { font-size: 18px; color: #94a3b8; font-weight: 600; }
.calc-price-value .num { font-size: 44px; line-height: 1; }
.calc-price-value .ccy { font-size: 24px; color: #94a3b8; }
.calc-price-note {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.55;
  margin-top: 12px;
}

.calc-submit { width: 100%; justify-content: center; }
.calc-submit:disabled {
  background: rgba(37, 99, 235, .35);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  opacity: .65;
}
.calc-submit:disabled:hover { transform: none; background: rgba(37, 99, 235, .35); }

/* Modal */
.calc-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.calc-modal[hidden] { display: none; }
.calc-modal.is-visible { opacity: 1; }
.calc-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 14, 31, .8);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.calc-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(96, 165, 250, .18) 0%, rgba(15, 30, 61, 0) 60%),
    linear-gradient(180deg, #0f1e3d 0%, #16294f 100%);
  border: 1px solid rgba(96, 165, 250, .3);
  border-radius: 22px;
  padding: 36px 32px;
  color: #fff;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
  transform: translateY(20px) scale(.97);
  opacity: 0;
  transition: transform .3s ease, opacity .25s ease;
}
.calc-modal.is-visible .calc-modal-card { transform: translateY(0) scale(1); opacity: 1; }
.calc-modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.calc-modal-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.calc-modal-head { margin-bottom: 22px; }
.calc-modal-head .eyebrow { color: var(--color-blue-400); font-size: 12px; letter-spacing: .25em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.calc-modal-head h3 { color: #fff; font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.calc-modal-head p { color: #cbd5e1; font-size: 14.5px; line-height: 1.6; margin: 0; }
.calc-contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-contact-form .calc-field:nth-child(3),
.calc-contact-form .calc-field:nth-child(4) { grid-column: 1 / -1; }
.calc-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}
.calc-btn-ghost {
  color: #cbd5e1;
  border-color: rgba(255, 255, 255, .2);
}
.calc-btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.calc-modal-success { text-align: center; padding: 12px 4px; }
.calc-modal-success-ico {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(34, 197, 94, .15);
  color: #4ade80;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, .08);
}
.calc-modal-success h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.calc-modal-success p { color: #cbd5e1; font-size: 14.5px; line-height: 1.65; margin: 0 0 24px; }
.calc-modal-success .btn { width: 100%; justify-content: center; }

/* Responsive */
@media (max-width: 1180px) {
  .calc-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .calc-grid { grid-template-columns: 1fr; gap: 28px; }
  .calc-result { position: static; }
  .calc-section { padding: 72px 0; }
  .calc-toggles { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .calc-step { padding: 22px 20px; border-radius: 16px; }
  .calc-step-head { margin-bottom: 18px; }
  .calc-step-hint { margin-left: 0; flex-basis: 100%; }
  .calc-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .calc-card { padding: 18px 14px 16px; }
  .calc-fields { grid-template-columns: 1fr; }
  .calc-result-inner { padding: 24px 22px; border-radius: 18px; }
  .calc-price-value .num { font-size: 36px; }
  .calc-modal-card { padding: 28px 22px; border-radius: 18px; }
  .calc-contact-form { grid-template-columns: 1fr; }
  .calc-contact-form .calc-field:nth-child(3),
  .calc-contact-form .calc-field:nth-child(4) { grid-column: auto; }
  .calc-modal-actions { flex-direction: column-reverse; align-items: stretch; }
  .calc-modal-actions .btn { width: 100%; justify-content: center; }
}

/* ============================================
   Material cards (/materials page)
   ============================================ */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 8px;
}

.material-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.material-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(37, 99, 235, .35);
}
.material-card.is-in-cart {
  border-color: rgba(37, 99, 235, .6);
  background: linear-gradient(180deg, #ffffff 0%, #f0f6ff 100%);
}
.material-card.is-in-cart::after {
  content: "✓";
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 24px; height: 24px;
  background: var(--color-blue-600);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
}

.material-card .mat-head h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 6px;
}
.material-card .mat-head .mat-sku {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-soft);
  letter-spacing: .08em;
}
.material-card .mat-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Properties chips */
.material-card .props-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.material-card .chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .01em;
  line-height: 1.4;
  white-space: nowrap;
}
.material-card .chip[data-accent="positive"] { background: #ecfdf5; color: #047857; }
.material-card .chip[data-accent="warn"]     { background: #fff7ed; color: #c2410c; }
.material-card .chip[data-accent="info"]     { background: #eff6ff; color: #1d4ed8; }
.material-card .chip[data-accent="neutral"]  { background: var(--color-bg-tint); color: var(--color-text-muted); }

/* Compact label */
.material-card .field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}

/* Quantity + dimensions wrapper */
.material-card .mat-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--color-border);
}

/* Quantity selector */
.qty-selector {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  width: max-content;
}
.qty-selector button {
  width: 34px; height: 34px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background .15s ease, color .15s ease;
}
.qty-selector button:hover { background: var(--color-bg-soft); color: var(--color-blue-600); }
.qty-selector button:disabled { color: var(--color-border); cursor: not-allowed; }
.qty-selector input {
  width: 44px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  background: #fff;
  font-family: inherit;
  -moz-appearance: textfield;
}
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Dimensions inputs (compact 3-col) */
.dim-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.dim-inputs label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dim-inputs label > span {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--color-text-soft);
  letter-spacing: .02em;
}
.dim-inputs input {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
  -moz-appearance: textfield;
}
.dim-inputs input::-webkit-outer-spin-button,
.dim-inputs input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim-inputs input:focus {
  outline: none;
  border-color: var(--color-blue-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

/* Actions row */
.material-card .mat-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.material-card .mat-actions .btn {
  padding: 10px 18px;
  font-size: 13.5px;
  flex: 1 1 auto;
}
.material-card .mat-actions .btn .arrow { width: 22px; height: 22px; }
.material-card .mat-actions .btn .arrow svg { width: 10px; height: 10px; }

/* Price-on-request badge */
.material-card .price-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-blue-600);
  background: rgba(37, 99, 235, .08);
  padding: 5px 10px;
  border-radius: 999px;
}
.material-card .price-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-blue-500);
}

/* Toast (small floating confirmation) */
.mat-toast {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  background: var(--color-navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.mat-toast.is-visible { opacity: 1; transform: translateY(0); }

/* RTL: shadow & chip side */
[dir="rtl"] .material-card.is-in-cart::after { right: auto; left: 14px; }
[dir="rtl"] .mat-toast { right: auto; left: 24px; }

@media (max-width: 720px) {
  .materials-grid { grid-template-columns: 1fr; }
  .material-card { padding: 22px 18px; }
  .dim-inputs { grid-template-columns: 1fr 1fr; }
  .dim-inputs label:nth-child(3) { grid-column: span 2; }
  .material-card .mat-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ============================================
   Cart icon in header + badge
   ============================================ */
.cart-trigger {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-navy-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  cursor: pointer;
}
.cart-trigger:hover {
  background: var(--color-bg-tint);
  border-color: rgba(37, 99, 235, .35);
  transform: translateY(-1px);
}
.cart-trigger svg { width: 20px; height: 20px; }

.cart-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--color-blue-600);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border: 2px solid #fff;
  transform: scale(1);
  transition: transform .2s cubic-bezier(.34, 1.56, .64, 1);
  box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}
.cart-badge.is-empty { transform: scale(0); }

/* ============================================
   Cart drawer
   ============================================ */
.cart-drawer-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.cart-drawer-root.is-open { pointer-events: auto; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 61, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}
.cart-drawer-root.is-open .cart-backdrop { opacity: 1; }

.cart-drawer {
  position: absolute;
  top: 0; bottom: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  box-shadow: -20px 0 60px rgba(15, 30, 61, .25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
[dir="rtl"] .cart-drawer { transform: translateX(-100%); box-shadow: 20px 0 60px rgba(15, 30, 61, .25); }
.cart-drawer-root.is-open .cart-drawer { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-border-soft);
  flex-shrink: 0;
}
.cart-drawer-head h3 { font-size: 20px; font-weight: 700; }
.cart-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 24px;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  transition: background .15s ease, color .15s ease;
}
.cart-close:hover { background: var(--color-bg-tint); color: var(--color-navy-900); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-muted);
}
.cart-empty-ico { color: var(--color-text-soft); margin-bottom: 14px; display: flex; justify-content: center; }
.cart-empty-ico svg { width: 48px; height: 48px; }
.cart-empty p { margin: 6px 0; }
.cart-empty p:first-of-type { font-size: 16px; font-weight: 600; color: var(--color-text); }
.cart-empty-sub { font-size: 13.5px; }

.cart-line {
  display: flex;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease;
}
.cart-line:hover { border-color: rgba(37, 99, 235, .35); }
.cart-line-main { flex: 1; min-width: 0; }
.cart-line-main h4 { font-size: 15px; font-weight: 600; margin: 0 0 4px; line-height: 1.3; }
.cart-line-sku { font-size: 11px; color: var(--color-text-soft); letter-spacing: .04em; font-weight: 500; }
.cart-line-dims {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--color-bg-soft);
  border-radius: 8px;
  display: inline-block;
}
.cart-line-price {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-blue-600);
  margin-top: 8px;
}
.cart-line-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}
.qty-selector--sm { transform: scale(.88); transform-origin: top right; }
[dir="rtl"] .qty-selector--sm { transform-origin: top left; }
.cart-line-remove {
  background: none;
  font-size: 16px;
  color: var(--color-text-soft);
  width: 32px; height: 32px;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
}
.cart-line-remove:hover { background: #fee2e2; color: #b91c1c; }

.cart-drawer-foot {
  flex-shrink: 0;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--color-border-soft);
  background: var(--color-bg-soft);
}
.cart-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cart-summary-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cart-summary-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy-900);
}

.cart-actions {
  display: flex;
  gap: 10px;
}
.cart-actions .btn-ghost { flex: 0 0 auto; padding: 12px 18px; }
.cart-actions .btn-primary { flex: 1; padding: 12px 18px; justify-content: center; font-size: 14px; }

/* ============================================
   Add-to-cart icon button on solution cards
   ============================================ */
.cart-add-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-blue-600);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline-end: 8px;
  transition: background .15s ease, transform .15s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}
.cart-add-icon:hover {
  background: var(--color-navy-700);
  transform: translateY(-2px) scale(1.06);
}
.product-card.is-in-cart .cart-add-icon {
  background: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, .35);
}
.product-card.is-in-cart .cart-add-icon::before {
  content: "✓";
  font-size: 16px;
  font-weight: 700;
}
.product-card.is-in-cart .cart-add-icon svg { display: none; }

/* Card visual indicator when in cart */
.product-card.is-in-cart {
  border-color: rgba(16, 185, 129, .4);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

@media (max-width: 720px) {
  .cart-drawer { max-width: 100%; }
  .cart-drawer-head { padding: 18px 20px; }
  .cart-drawer-body { padding: 14px 20px; }
  .cart-drawer-foot { padding: 16px 20px 20px; }
}

/* ============================================
   Cart page (cart.html)
   ============================================ */
.cp-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* Items column */
.cp-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cp-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cp-items-head h2 { font-size: 22px; font-weight: 700; }
.cp-items-count {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.cp-line {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cp-line:hover {
  border-color: rgba(37, 99, 235, .35);
  box-shadow: var(--shadow-sm);
}

.cp-line-info { min-width: 0; }
.cp-line-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.3;
}
.cp-line-sku {
  font-size: 11px;
  color: var(--color-text-soft);
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 6px;
}
.cp-line-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cp-line-dims {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--color-bg-soft);
  border-radius: 8px;
  font-size: 12px;
}
.cp-dim-label {
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .02em;
}
.cp-dim-values { color: var(--color-text); }

.cp-line-qty .cp-field-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 6px;
}
.cp-line-qty .qty-selector input { background: var(--color-bg-soft); }

.cp-line-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 130px;
}
.cp-line-unit-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}
.cp-line-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy-900);
  letter-spacing: -.01em;
}
.cp-line-breakdown {
  font-size: 10.5px;
  color: var(--color-blue-600);
  background: rgba(37, 99, 235, .08);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: help;
}
.cp-line-quote-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-blue-600);
  background: rgba(37, 99, 235, .08);
  padding: 5px 10px;
  border-radius: 999px;
}
.cp-calc-link {
  font-size: 12px;
  color: var(--color-blue-600);
  font-weight: 600;
  text-decoration: underline;
}
.cp-calc-link:hover { color: var(--color-navy-700); }

.cp-line-remove {
  width: 36px; height: 36px;
  border-radius: 10px;
  font-size: 16px;
  background: none;
  color: var(--color-text-soft);
  transition: background .15s ease, color .15s ease;
}
.cp-line-remove:hover { background: #fee2e2; color: #b91c1c; }

/* Summary column */
.cp-summary {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cp-summary-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cp-summary-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.cp-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--color-text-muted);
}
.cp-sum-row > span:last-child { color: var(--color-text); font-weight: 600; }
.cp-sum-row--note { font-size: 12.5px; color: var(--color-blue-600); }
.cp-sum-row--note > span:last-child { color: var(--color-blue-600); }
.cp-sum-divider {
  height: 1px;
  background: var(--color-border-soft);
  margin: 8px 0;
}
.cp-sum-row--total {
  font-size: 17px;
  align-items: baseline;
}
.cp-sum-row--total > span:first-child {
  color: var(--color-navy-900);
  font-weight: 700;
}
.cp-sum-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-navy-900);
  letter-spacing: -.01em;
}
.cp-sum-quote {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue-600);
  background: rgba(37, 99, 235, .1);
  padding: 3px 10px;
  border-radius: 999px;
  margin-inline-start: 4px;
}
.cp-sum-note {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 4px 0 12px;
  padding: 10px 12px;
  background: var(--color-bg-soft);
  border-radius: 10px;
  border-left: 3px solid var(--color-blue-500);
}
[dir="rtl"] .cp-sum-note {
  border-left: none;
  border-right: 3px solid var(--color-blue-500);
}

.cp-cta-primary {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 14.5px;
}
.cp-cta-pay {
  width: 100%;
  justify-content: center;
  padding: 12px 24px;
  font-size: 13.5px;
  opacity: .6;
  cursor: not-allowed;
}
.cp-cta-pay:hover { background: transparent; color: var(--color-blue-600); }

.cp-clear {
  font-size: 12.5px;
  color: var(--color-text-soft);
  background: none;
  padding: 8px;
  text-align: center;
  font-weight: 500;
  transition: color .15s ease;
}
.cp-clear:hover { color: #b91c1c; }

.cp-continue {
  font-size: 13.5px;
  color: var(--color-blue-600);
  font-weight: 600;
  text-align: center;
  padding: 10px;
}
.cp-continue:hover { color: var(--color-navy-700); }

/* Empty state */
.cp-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
}
.cp-empty-ico {
  color: var(--color-text-soft);
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.cp-empty h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
}
.cp-empty p {
  font-size: 14px;
  color: var(--color-text-muted);
  margin: 0 0 24px;
}
.cp-empty .btn { display: inline-flex; }

/* RTL flips */
[dir="rtl"] .cp-line-price-block { align-items: flex-start; }

/* Cart trigger when on cart page */
.cart-trigger.is-active-page {
  background: var(--color-blue-600);
  color: #fff;
  border-color: var(--color-blue-600);
}

@media (max-width: 1024px) {
  .cp-layout { grid-template-columns: 1fr; }
  .cp-summary { position: static; }
}
@media (max-width: 720px) {
  .cp-line {
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 18px;
  }
  .cp-line-qty { grid-column: 1; }
  .cp-line-price-block { grid-column: 2; min-width: 0; }
  .cp-line-remove {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
  }
  .cp-line { position: relative; }
  .cp-line-info { grid-column: 1 / -1; }
}

/* ================================================================
   BRAND v2 — "Industrial reference catalog" (hero proof)
   Layered: industrial backdrop · charcoal grading · paper foreground
   Motion per Emil Kowalski: custom ease-out, stagger, no scale(0),
   springs-of-perception via subtle infinite bob on the product.
   Scope: hero + header only. Rest of page intentionally untouched.
   ================================================================ */
:root {
  /* cool off-white surface (brand-identity preserved: cobalt + navy) */
  --v2-paper: #f1f5fa;
  --v2-paper-deep: #e4ecf5;
  --v2-paper-line: #cfdbe9;
  --v2-ink: #0f1e3d;
  --v2-ink-soft: #3a4d6f;
  --v2-ink-mute: #7b8aa6;
  /* brand spot — cobalt (Babigum identity) */
  --v2-spot: #2563eb;
  --v2-spot-deep: #1e3a8a;
  --v2-spot-ink: #ffffff;
  /* type */
  --v2-sans: 'Geist', system-ui, -apple-system, sans-serif;
  --v2-mono: 'Geist Mono', ui-monospace, 'SF Mono', monospace;
  --v2-display-he: 'Frank Ruhl Libre', 'Heebo', serif;
  --v2-display-lat: 'Geist', system-ui, sans-serif;
  /* tabular figures everywhere they matter */
  --v2-tab: "tnum" 1, "lnum" 1;
  /* easings (Emil's strong curves) */
  --v2-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --v2-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --v2-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* page baseline (only when hero is on the page) */
body:has(.v2-hero) {
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: var(--v2-sans);
}
[dir="rtl"] body:has(.v2-hero) {
  font-family: 'Heebo', var(--v2-sans);
}

/* ---------- Header rebuild ---------- */
body:has(.v2-hero) .site-header {
  background: rgba(241, 245, 250, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 220ms var(--v2-ease-out),
              border-color 220ms var(--v2-ease-out);
}
body:has(.v2-hero) .site-header.is-scrolled {
  background: rgba(241, 245, 250, 0.98);
  border-bottom-color: var(--v2-paper-line);
}
body:has(.v2-hero) .site-header .container { border: 0; }
body:has(.v2-hero) .nav { padding: 22px 0; gap: 40px; }

/* Header on-load stagger reveal */
body:has(.v2-hero) .nav > .logo,
body:has(.v2-hero) .nav-menu > li,
body:has(.v2-hero) .nav-cta > * {
  opacity: 0;
  transform: translateY(-8px);
  animation: v2-header-in 520ms var(--v2-ease-out) forwards;
}
body:has(.v2-hero) .nav > .logo               { animation-delay: 40ms;  }
body:has(.v2-hero) .nav-menu > li:nth-child(1) { animation-delay: 120ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(2) { animation-delay: 160ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(3) { animation-delay: 200ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(4) { animation-delay: 240ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(5) { animation-delay: 280ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(6) { animation-delay: 320ms; }
body:has(.v2-hero) .nav-menu > li:nth-child(7) { animation-delay: 360ms; }
body:has(.v2-hero) .nav-cta > *:nth-child(1) { animation-delay: 400ms; }
body:has(.v2-hero) .nav-cta > *:nth-child(2) { animation-delay: 440ms; }
body:has(.v2-hero) .nav-cta > *:nth-child(3) { animation-delay: 480ms; }
body:has(.v2-hero) .nav-cta > *:nth-child(4) { animation-delay: 520ms; }
@keyframes v2-header-in {
  to { opacity: 1; transform: translateY(0); }
}

body:has(.v2-hero) .logo {
  font-family: var(--v2-display-lat);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--v2-ink);
  font-size: 19px;
  white-space: nowrap;
  flex-shrink: 0;
}
body:has(.v2-hero) .logo small {
  white-space: nowrap;
}
[dir="rtl"] body:has(.v2-hero) .logo { font-family: var(--v2-display-he); font-weight: 700; }
body:has(.v2-hero) .logo small {
  font-family: var(--v2-mono);
  font-feature-settings: var(--v2-tab);
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--v2-ink-mute);
  font-weight: 500;
  margin-top: 5px;
}
body:has(.v2-hero) .nav-menu a {
  font-family: var(--v2-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-ink);
  letter-spacing: 0;
  padding: 8px 2px;
  position: relative;
  transition: color 180ms var(--v2-ease-out);
}
[dir="rtl"] body:has(.v2-hero) .nav-menu a { font-family: 'Heebo', var(--v2-sans); }
/* Nav link underline draw on hover */
body:has(.v2-hero) .nav-menu a::before {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline-start: 0;
  width: 100%;
  height: 1.5px;
  background: var(--v2-spot);
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform 220ms var(--v2-ease-out);
}
body:has(.v2-hero) .nav-menu a:hover { color: var(--v2-spot); }
body:has(.v2-hero) .nav-menu a:hover::before,
body:has(.v2-hero) .nav-menu li.active > a::before {
  transform: scaleX(1);
}
body:has(.v2-hero) .nav-menu .has-dropdown > a::after {
  border-color: var(--v2-ink-mute);
}
body:has(.v2-hero) .nav-cta { gap: 14px; }
body:has(.v2-hero) .lang-switch {
  background: transparent;
  border: 1px solid var(--v2-paper-line);
  padding: 2px;
  border-radius: 999px;
}
body:has(.v2-hero) .lang-switch button {
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--v2-ink-soft);
  letter-spacing: .05em;
  transition: background 180ms var(--v2-ease-out), color 180ms var(--v2-ease-out);
}
body:has(.v2-hero) .lang-switch button.active {
  background: var(--v2-ink);
  color: var(--v2-paper);
  box-shadow: none;
}
body:has(.v2-hero) .cart-trigger {
  background: transparent;
  border: 1px solid var(--v2-paper-line);
  color: var(--v2-ink);
  transition: border-color 180ms var(--v2-ease-out), transform 160ms var(--v2-ease-out);
}
body:has(.v2-hero) .cart-trigger:hover { border-color: var(--v2-ink); }
body:has(.v2-hero) .cart-trigger:active { transform: scale(0.97); }
body:has(.v2-hero) .menu-toggle {
  border-color: var(--v2-paper-line);
  background: transparent;
  transition: border-color 180ms var(--v2-ease-out), transform 160ms var(--v2-ease-out);
}
body:has(.v2-hero) .menu-toggle:hover { border-color: var(--v2-ink); }
body:has(.v2-hero) .menu-toggle:active { transform: scale(0.97); }
body:has(.v2-hero) .menu-toggle span,
body:has(.v2-hero) .menu-toggle span::before,
body:has(.v2-hero) .menu-toggle span::after {
  background: var(--v2-ink);
}
/* Header CTA → ghost (was loud cobalt pill — now quiet so hero CTA wins) */
body:has(.v2-hero) .nav-cta > .btn.btn-primary {
  background: transparent;
  color: var(--v2-ink);
  border: 1px solid var(--v2-ink);
  border-radius: 999px;
  padding: 11px 20px;
  font-family: var(--v2-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: none;
  transition: background 200ms var(--v2-ease-out),
              color 200ms var(--v2-ease-out),
              transform 160ms var(--v2-ease-out);
}
[dir="rtl"] body:has(.v2-hero) .nav-cta > .btn.btn-primary { font-family: 'Heebo', var(--v2-sans); }
body:has(.v2-hero) .nav-cta > .btn.btn-primary:hover {
  background: var(--v2-ink);
  color: var(--v2-paper);
  transform: none;
}
body:has(.v2-hero) .nav-cta > .btn.btn-primary:active { transform: scale(0.97); }
body:has(.v2-hero) .nav-cta > .btn.btn-primary .arrow {
  background: transparent;
  width: 14px;
  height: 14px;
}

/* ---------- Hero rebuild (full-bleed product backdrop + cool wash) ---------- */
.v2-hero {
  position: relative;
  background: var(--v2-paper);
  padding: 96px 0 0;
  overflow: hidden;
  isolation: isolate;
}
/* Layer 1 — full product showcase, natural studio rendering */
.v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/hero-products.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  filter: contrast(1.04) saturate(1.05);
  transform: scale(1.04);
  transform-origin: center right;
  opacity: 0;
  z-index: 0;
  animation: v2-hero-backdrop-in 1400ms var(--v2-ease-out) 80ms forwards;
}
/* RTL: native mirrored image (no CSS flip — keeps product labels readable) */
[dir="rtl"] .v2-hero::before {
  background-image: url('../assets/img/hero-products-he.png');
  background-position: center left;
  transform: scale(1.04);
  transform-origin: center left;
}
/* Layer 2 — cool paper wash, heavier on the copy side for legibility */
.v2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      var(--v2-paper) 0%,
      rgba(241,245,250,0.92) 22%,
      rgba(241,245,250,0.55) 45%,
      rgba(241,245,250,0.18) 65%,
      rgba(241,245,250,0) 80%),
    linear-gradient(180deg,
      rgba(241,245,250,0) 60%,
      rgba(241,245,250,0.55) 85%,
      var(--v2-paper) 100%);
  z-index: 1;
  pointer-events: none;
}
[dir="rtl"] .v2-hero::after {
  background:
    linear-gradient(270deg,
      var(--v2-paper) 0%,
      rgba(241,245,250,0.92) 22%,
      rgba(241,245,250,0.55) 45%,
      rgba(241,245,250,0.18) 65%,
      rgba(241,245,250,0) 80%),
    linear-gradient(180deg,
      rgba(241,245,250,0) 60%,
      rgba(241,245,250,0.55) 85%,
      var(--v2-paper) 100%);
}
.v2-hero > .container,
.v2-hero > * { position: relative; z-index: 2; }

.v2-hero .container {
  max-width: 1280px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.v2-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-ink-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-feature-settings: var(--v2-tab);
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(10px);
  animation: v2-rise 700ms var(--v2-ease-out) 280ms forwards;
}
.v2-hero-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--v2-ink-mute);
}

.v2-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  min-height: 620px;
}
.v2-hero-copy { padding-bottom: 64px; max-width: 560px; }
/* Right column = pure visual breathing room for the product photo backdrop */
.v2-hero-stage {
  position: relative;
  align-self: stretch;
  min-height: 560px;
}

.v2-hero h1 {
  font-family: var(--v2-display-he);
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--v2-ink);
  margin: 0 0 28px;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(16px);
  animation: v2-rise 800ms var(--v2-ease-out) 380ms forwards;
}
/* In LTR the H1 uses Geist (display serif feels off in Latin engineering register) */
:not([dir="rtl"]) .v2-hero h1 {
  font-family: var(--v2-display-lat);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.v2-hero-sub {
  font-family: var(--v2-sans);
  font-size: clamp(15px, 1.3vw, 19px);
  font-weight: 400;
  color: var(--v2-ink-soft);
  max-width: 44ch;
  line-height: 1.55;
  margin: 0 0 44px;
  opacity: 0;
  transform: translateY(14px);
  animation: v2-rise 800ms var(--v2-ease-out) 480ms forwards;
}
[dir="rtl"] .v2-hero-sub { font-family: 'Heebo', var(--v2-sans); }

.v2-hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  animation: v2-rise 800ms var(--v2-ease-out) 580ms forwards;
}
.v2-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 26px;
  font-family: var(--v2-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--v2-spot);
  color: var(--v2-spot-ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 220ms var(--v2-ease-out),
              transform 160ms var(--v2-ease-out),
              box-shadow 260ms var(--v2-ease-out);
  text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(37,99,235,0.45);
  will-change: transform;
}
[dir="rtl"] .v2-cta { font-family: 'Heebo', var(--v2-sans); font-weight: 700; }
.v2-cta:hover {
  background: var(--v2-spot-deep);
  box-shadow: 0 18px 40px -12px rgba(30,58,138,0.55);
}
.v2-cta:active { transform: scale(0.97); }
.v2-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 220ms var(--v2-ease-out);
}
[dir="rtl"] .v2-cta svg { transform: scaleX(-1); }
.v2-cta:hover svg { transform: translateX(3px); }
[dir="rtl"] .v2-cta:hover svg { transform: scaleX(-1) translateX(3px); }

.v2-cta-link {
  font-family: var(--v2-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--v2-ink);
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
[dir="rtl"] .v2-cta-link { font-family: 'Heebo', var(--v2-sans); font-weight: 600; }
.v2-cta-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--v2-ink);
  transform-origin: inset-inline-start;
  transition: transform 240ms var(--v2-ease-out), background 200ms var(--v2-ease-out);
}
.v2-cta-link:hover { color: var(--v2-spot); }
.v2-cta-link:hover::after { background: var(--v2-spot); transform: scaleX(1.04); }

/* ---------- Hero catalog meta — inline under eyebrow, always over clean copy column ---------- */
.v2-hero-catalog {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding-inline-start: 14px;
  border-inline-start: 1px solid var(--v2-paper-line);
  opacity: 0;
  transform: translateY(8px);
  animation: v2-rise 700ms var(--v2-ease-out) 340ms forwards;
}
.v2-hero-catalog-kicker {
  font-family: var(--v2-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v2-ink-mute);
  font-feature-settings: var(--v2-tab);
}
.v2-hero-catalog-body {
  font-family: var(--v2-sans);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--v2-ink-soft);
  max-width: 42ch;
}
[dir="rtl"] .v2-hero-catalog-body { font-family: 'Heebo', var(--v2-sans); }

/* ---------- Stats row (integrated at hero bottom) ---------- */
.v2-stats {
  background: var(--v2-paper);
  border-top: 1px solid var(--v2-paper-line);
  margin-top: -1px;
}
.v2-stats .container {
  max-width: 1280px;
  padding-inline: clamp(20px, 4vw, 56px);
}
.v2-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.v2-stat {
  padding: 44px 36px 40px;
  border-inline-start: 1px solid var(--v2-paper-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(14px);
  animation: v2-rise 800ms var(--v2-ease-out) forwards;
}
.v2-stat:nth-child(1) { animation-delay: 720ms; }
.v2-stat:nth-child(2) { animation-delay: 800ms; }
.v2-stat:nth-child(3) { animation-delay: 880ms; }
.v2-stat:first-child { border-inline-start: 0; padding-inline-start: 0; }
.v2-stat-num {
  font-family: var(--v2-mono);
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--v2-ink);
  font-feature-settings: var(--v2-tab);
  margin-bottom: 14px;
}
.v2-stat-label {
  font-family: var(--v2-sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--v2-ink-soft);
  max-width: 26ch;
  line-height: 1.45;
}
[dir="rtl"] .v2-stat-label { font-family: 'Heebo', var(--v2-sans); }

/* ---------- Keyframes ---------- */
@keyframes v2-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes v2-hero-backdrop-in {
  to { opacity: 0.85; transform: scale(1); }
}
@keyframes v2-product-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes v2-product-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* hide the old feature-strip when v2 is present so we don't double-render */
.v2-hero ~ .section .feature-strip,
body:has(.v2-hero) .hero .feature-strip { display: none; }

/* hide the old .hero block when v2 is present */
body:has(.v2-hero) > header + .hero,
body:has(.v2-hero) .hero { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .v2-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }
  .v2-hero-product { min-height: 380px; order: 2; }
  .v2-stats-grid { grid-template-columns: 1fr; }
  .v2-stat {
    border-inline-start: 0;
    border-top: 1px solid var(--v2-paper-line);
    padding: 28px 0;
  }
  .v2-stat:first-child { border-top: 0; padding-top: 24px; }
}

@media (max-width: 720px) {
  body:has(.v2-hero) .nav-menu { display: none; }
  body:has(.v2-hero) .menu-toggle { display: inline-flex; }
}

/* ---------- A11y: focus visible across v2 ---------- */
body:has(.v2-hero) :is(a, button, [role="button"], input, textarea, select):focus-visible {
  outline: 2px solid var(--v2-spot);
  outline-offset: 3px;
}

/* ---------- A11y: reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body:has(.v2-hero) *,
  body:has(.v2-hero) *::before,
  body:has(.v2-hero) *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }
  body:has(.v2-hero) .v2-hero-meta,
  body:has(.v2-hero) .v2-hero-catalog,
  body:has(.v2-hero) .v2-hero h1,
  body:has(.v2-hero) .v2-hero-sub,
  body:has(.v2-hero) .v2-hero-actions,
  body:has(.v2-hero) .v2-stat,
  body:has(.v2-hero) .nav > .logo,
  body:has(.v2-hero) .nav-menu > li,
  body:has(.v2-hero) .nav-cta > * {
    opacity: 1 !important;
    transform: none !important;
  }
  body:has(.v2-hero) .v2-hero::before { opacity: 1 !important; transform: scale(1) !important; }
}

/* ================================================================
   v2-SECTION (generic chrome for content sections under hero)
   ================================================================ */
.v2-section {
  padding: clamp(72px, 9vw, 120px) 0;
  background: var(--v2-paper);
  color: var(--v2-ink);
}
.v2-section .container {
  max-width: 1280px;
  padding-inline: clamp(20px, 4vw, 56px);
}
.v2-section-head {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.v2-section-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-ink-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-feature-settings: var(--v2-tab);
  margin-bottom: 24px;
}
.v2-section-meta::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--v2-ink-mute);
}
.v2-section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.v2-section-h2 {
  font-family: var(--v2-display-he);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.0;
  letter-spacing: -.01em;
  color: var(--v2-ink);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}
:not([dir="rtl"]) .v2-section-h2 {
  font-family: var(--v2-display-lat);
  font-weight: 600;
  letter-spacing: -.025em;
}

/* ================================================================
   v2-CATALOG GRID — showroom cards: icon top, rule, prominent photo
   ================================================================ */
.v2-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.v2-cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--v2-ink);
  text-decoration: none;
  border: 1px solid var(--v2-paper-line);
  border-radius: 16px;
  overflow: hidden;
  min-height: 460px;
  transition: transform 280ms var(--v2-ease-out),
              box-shadow 280ms var(--v2-ease-out),
              border-color 220ms var(--v2-ease-out);
  box-shadow: 0 1px 2px rgba(15, 30, 61, 0.04);
  isolation: isolate;
}
.v2-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(15, 30, 61, 0.22),
              0 6px 14px -8px rgba(15, 30, 61, 0.10);
  border-color: rgba(37, 99, 235, 0.32);
}

/* Head row — icon box + numeric code */
.v2-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 0;
}
.v2-cat-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--v2-paper-deep);
  color: var(--v2-spot);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 220ms var(--v2-ease-out), color 220ms var(--v2-ease-out);
}
.v2-cat-ico svg {
  width: 22px;
  height: 22px;
}
.v2-cat-card:hover .v2-cat-ico {
  background: var(--v2-spot);
  color: var(--v2-spot-ink);
}
.v2-cat-code {
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--v2-ink-mute);
  letter-spacing: .08em;
  font-feature-settings: var(--v2-tab);
  text-transform: uppercase;
}
.v2-cat-code::before {
  content: "CAT · ";
  opacity: 0.7;
}
.v2-cat-grid--mat .v2-cat-code::before { content: "MAT · "; }
/* Materials section gets a softer alt-surface to separate from Solutions visually */
.v2-materials { background: var(--v2-paper-deep); }
.v2-materials .v2-cat-card { background: var(--v2-paper); }

/* ================================================================
   v2-TRUST strip — industries served + standards compliance
   Plotная "support" секция между Materials и Calculator
   ================================================================ */
.v2-trust {
  background: var(--v2-paper);
  padding: clamp(64px, 7vw, 96px) 0;
  border-top: 1px solid var(--v2-paper-line);
  border-bottom: 1px solid var(--v2-paper-line);
}
.v2-trust .container {
  max-width: 1280px;
  padding-inline: clamp(20px, 4vw, 56px);
}
.v2-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.v2-trust-grid::before {
  content: "";
  grid-column: 2;
  align-self: stretch;
  background: var(--v2-paper-line);
}
.v2-trust-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.v2-trust-kicker {
  font-family: var(--v2-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--v2-ink-mute);
  font-feature-settings: var(--v2-tab);
  display: flex;
  align-items: center;
  gap: 14px;
}
.v2-trust-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--v2-ink-mute);
}
.v2-trust-h3 {
  font-family: var(--v2-display-lat);
  font-weight: 600;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--v2-ink);
  margin: 0;
  max-width: 22ch;
}
[dir="rtl"] .v2-trust-h3 {
  font-family: 'Heebo', var(--v2-sans);
  font-weight: 700;
  letter-spacing: 0;
}
.v2-trust-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.v2-trust-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--v2-paper-line);
}
.v2-trust-list li:last-child { border-bottom: 0; }

/* Industries list — icon + name */
.v2-trust-list--ind li svg {
  width: 22px;
  height: 22px;
  color: var(--v2-spot);
  flex-shrink: 0;
}
.v2-trust-list--ind li span {
  font-family: var(--v2-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--v2-ink);
}
[dir="rtl"] .v2-trust-list--ind li span { font-family: 'Heebo', var(--v2-sans); }

/* Standards list — badge + description */
.v2-trust-list--std li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: baseline;
}
.v2-trust-badge {
  font-family: var(--v2-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--v2-ink);
  background: var(--v2-paper-deep);
  border: 1px solid var(--v2-paper-line);
  padding: 6px 10px;
  border-radius: 4px;
  text-align: center;
  font-feature-settings: var(--v2-tab);
  justify-self: start;
  white-space: nowrap;
}
[dir="rtl"] .v2-trust-badge { font-family: 'Heebo', var(--v2-mono); font-weight: 700; font-size: 11.5px; }
.v2-trust-badge-d {
  font-family: var(--v2-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--v2-ink-soft);
}
[dir="rtl"] .v2-trust-badge-d { font-family: 'Heebo', var(--v2-sans); }

@media (max-width: 820px) {
  .v2-trust-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .v2-trust-grid::before {
    grid-column: 1;
    height: 1px;
    width: 100%;
    align-self: auto;
  }
  .v2-trust-list--std li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Body — title + cobalt rule + description + tag */
.v2-cat-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 28px;
  flex: 0 0 auto;
}
.v2-cat-card h3 {
  font-family: var(--v2-display-lat);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--v2-ink);
  margin: 0;
}
[dir="rtl"] .v2-cat-card h3 {
  font-family: 'Heebo', var(--v2-sans);
  font-weight: 700;
  letter-spacing: 0;
}
.v2-cat-rule {
  display: block;
  width: 36px;
  height: 2px;
  background: var(--v2-spot);
  border-radius: 2px;
  margin-top: -2px;
  transition: width 240ms var(--v2-ease-out);
}
.v2-cat-card:hover .v2-cat-rule { width: 52px; }
.v2-cat-card p {
  font-family: var(--v2-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--v2-ink-soft);
  margin: 0;
  max-width: 38ch;
}
[dir="rtl"] .v2-cat-card p {
  font-family: 'Heebo', var(--v2-sans);
  font-size: 14px;
}
.v2-cat-tag {
  align-self: flex-start;
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--v2-ink-soft);
  font-feature-settings: var(--v2-tab);
  background: var(--v2-paper-deep);
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 4px;
}

/* Stage — product photo full-bleed bottom with subtle gradient */
.v2-cat-stage {
  position: relative;
  margin-top: auto;
  height: 180px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 75%, rgba(15, 30, 61, 0.10) 0%, rgba(15, 30, 61, 0) 65%),
    linear-gradient(180deg, var(--v2-paper) 0%, var(--v2-paper-deep) 100%);
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}
.v2-cat-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 16px 18px rgba(15, 30, 61, 0.18));
  transition: transform 480ms var(--v2-ease-out);
  will-change: transform;
}
.v2-cat-card:hover .v2-cat-stage img {
  transform: scale(1.06) translateY(-4px);
}

/* Scene variant — full-bleed real photograph, no gradient/padding (used when image has its own studio backdrop) */
.v2-cat-stage--scene {
  padding: 0;
  background: none;
  height: 220px;
  align-items: stretch;
}
.v2-cat-stage--scene img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.v2-cat-card:hover .v2-cat-stage--scene img {
  transform: scale(1.04) translateY(0);
}

/* Arrow — absolute floating button bottom-end of card */
.v2-cat-arrow {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--v2-paper-line);
  border-radius: 999px;
  color: var(--v2-ink);
  box-shadow: 0 6px 14px rgba(15, 30, 61, 0.12);
  z-index: 3;
  transition: background 220ms var(--v2-ease-out),
              border-color 220ms var(--v2-ease-out),
              color 220ms var(--v2-ease-out),
              transform 220ms var(--v2-ease-out);
}
[dir="rtl"] .v2-cat-arrow svg { transform: scaleX(-1); }
.v2-cat-card:hover .v2-cat-arrow {
  background: var(--v2-spot);
  border-color: var(--v2-spot);
  color: var(--v2-spot-ink);
  transform: translateX(3px);
}
[dir="rtl"] .v2-cat-card:hover .v2-cat-arrow {
  transform: translateX(-3px);
}

@media (max-width: 980px) {
  .v2-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 600px) {
  .v2-cat-grid { grid-template-columns: 1fr; }
  .v2-cat-card { min-height: 420px; }
  .v2-section-title-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* ================================================================
   v2-CALCULATOR override (kept dark navy for focus, new tokens)
   ================================================================ */
body:has(.v2-hero) .calc-section {
  background: #0b1730;
  color: var(--v2-paper);
  padding: clamp(72px, 9vw, 120px) 0;
}
body:has(.v2-hero) .calc-section::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.18) 0%, rgba(15,30,61,0) 60%);
}
body:has(.v2-hero) .calc-header { max-width: 720px; margin-bottom: 56px; }
body:has(.v2-hero) .calc-header .eyebrow {
  font-family: var(--v2-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  color: rgba(241,245,250,0.55);
  text-transform: uppercase;
  margin-bottom: 16px;
}
body:has(.v2-hero) .calc-header h2 {
  font-family: var(--v2-display-he);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--v2-paper);
}
:not([dir="rtl"]) body:has(.v2-hero) .calc-header h2 {
  font-family: var(--v2-display-lat);
  font-weight: 600;
  letter-spacing: -.025em;
}
body:has(.v2-hero) .calc-header h2 .light { color: rgba(241,245,250,0.55); display: block; }
body:has(.v2-hero) .calc-header p {
  font-family: var(--v2-sans);
  font-size: 15px;
  color: rgba(241,245,250,0.72);
  line-height: 1.55;
  margin-top: 18px;
  max-width: 56ch;
}
[dir="rtl"] body:has(.v2-hero) .calc-header p { font-family: 'Heebo', var(--v2-sans); }

body:has(.v2-hero) .calc-step-num,
body:has(.v2-hero) .calc-card,
body:has(.v2-hero) .calc-chip,
body:has(.v2-hero) .calc-field input,
body:has(.v2-hero) .calc-field select,
body:has(.v2-hero) .calc-field textarea,
body:has(.v2-hero) .calc-result-inner {
  font-family: var(--v2-sans);
}
[dir="rtl"] body:has(.v2-hero) .calc-step-num,
[dir="rtl"] body:has(.v2-hero) .calc-card,
[dir="rtl"] body:has(.v2-hero) .calc-chip,
[dir="rtl"] body:has(.v2-hero) .calc-field input,
[dir="rtl"] body:has(.v2-hero) .calc-field select,
[dir="rtl"] body:has(.v2-hero) .calc-field textarea,
[dir="rtl"] body:has(.v2-hero) .calc-result-inner { font-family: 'Heebo', var(--v2-sans); }

body:has(.v2-hero) .calc-step-num,
body:has(.v2-hero) .calc-price-value .num,
body:has(.v2-hero) [data-summary] {
  font-family: var(--v2-mono);
  font-feature-settings: var(--v2-tab);
}

/* ================================================================
   v2-ORDER form override (kept dark, new tokens, sharper inputs)
   ================================================================ */
body:has(.v2-hero) .order-section {
  background: #0b1730;
  color: var(--v2-paper);
}
body:has(.v2-hero) .order-section::before {
  background: linear-gradient(135deg, rgba(37,99,235,0.14) 0%, rgba(15,30,61,0) 55%);
}
body:has(.v2-hero) .order-info h2 {
  font-family: var(--v2-display-he);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--v2-paper);
}
:not([dir="rtl"]) body:has(.v2-hero) .order-info h2 {
  font-family: var(--v2-display-lat);
  font-weight: 600;
  letter-spacing: -.025em;
}
body:has(.v2-hero) .order-info h2 .light { color: rgba(241,245,250,0.55); display: block; }
body:has(.v2-hero) .order-info .eyebrow {
  font-family: var(--v2-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(241,245,250,0.55);
  text-transform: uppercase;
  margin-bottom: 16px;
}
body:has(.v2-hero) .order-info p {
  font-family: var(--v2-sans);
  color: rgba(241,245,250,0.72);
  line-height: 1.55;
}
[dir="rtl"] body:has(.v2-hero) .order-info p { font-family: 'Heebo', var(--v2-sans); }
body:has(.v2-hero) .order-form-card label {
  font-family: var(--v2-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(241,245,250,0.55);
}
body:has(.v2-hero) .order-form-card input,
body:has(.v2-hero) .order-form-card select,
body:has(.v2-hero) .order-form-card textarea {
  font-family: var(--v2-sans);
  border-radius: 4px;
}
[dir="rtl"] body:has(.v2-hero) .order-form-card input,
[dir="rtl"] body:has(.v2-hero) .order-form-card select,
[dir="rtl"] body:has(.v2-hero) .order-form-card textarea { font-family: 'Heebo', var(--v2-sans); }

/* ================================================================
   v2-FOOTER override (tightened, new tokens)
   ================================================================ */
body:has(.v2-hero) .site-footer {
  background: var(--v2-ink);
  color: var(--v2-paper);
  font-family: var(--v2-sans);
}
[dir="rtl"] body:has(.v2-hero) .site-footer { font-family: 'Heebo', var(--v2-sans); }
body:has(.v2-hero) .site-footer h4,
body:has(.v2-hero) .site-footer .footer-brand h3 {
  font-family: var(--v2-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(241,245,250,0.5);
  margin-bottom: 18px;
}
body:has(.v2-hero) .site-footer .footer-brand h3 {
  font-family: var(--v2-display-lat);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
  color: var(--v2-paper);
  margin-bottom: 10px;
}
[dir="rtl"] body:has(.v2-hero) .site-footer .footer-brand h3 {
  font-family: var(--v2-display-he);
  font-weight: 700;
}
body:has(.v2-hero) .site-footer a {
  font-family: var(--v2-sans);
  font-size: 14px;
  color: rgba(241,245,250,0.78);
  transition: color 180ms var(--v2-ease-out);
}
[dir="rtl"] body:has(.v2-hero) .site-footer a { font-family: 'Heebo', var(--v2-sans); }
body:has(.v2-hero) .site-footer a:hover { color: var(--v2-spot); }
body:has(.v2-hero) .footer-bottom {
  border-top: 1px solid rgba(241,245,250,0.1);
  color: rgba(241,245,250,0.45);
  font-family: var(--v2-mono);
  font-size: 11px;
  letter-spacing: .05em;
}
[dir="rtl"] body:has(.v2-hero) .footer-bottom { font-family: var(--v2-mono); }
