/* T'sys Industrial Controls — Home
   Tokens and structure per DESIGN.md ("Industrial Precision") and COMPONENTS.md */

:root {
  --ink: #1B1D21;
  --ink-2: #131518;
  --charcoal-2: #1F2126;
  --charcoal-3: #24272C;
  --charcoal-4: #34373D;
  --charcoal-5: #4A4D53;
  --nav-muted: #45484E;
  --muted: #6B6E74;
  --muted-2: #8A8D93;
  --muted-light: #B9BCC1;
  --border: #E3E1DC;
  --border-2: #EEECE7;
  --page-bg: #F4F3F1;
  --surface: #FFFFFF;
  --accent: #E32227;
  --accent-bright: #FF6157;
  --accent-dark: #B5121B;
  --tag-bg: #FBE9E8;
  --border-3: #D8D5CE;
  --success: #1B7A3D;
  --success-bg: #E7F4EC;
  --success-border: #B8E0C6;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --font-display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --content-max: 1344px;
  --header-h: 60px;
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, dl, dd, address { margin: 0; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }

ul { list-style: none; margin: 0; padding: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -48px; left: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: 12px 20px;
  font: 600 14px var(--font-display); border-radius: 0 0 var(--radius-md) 0;
  transition: top 150ms ease;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.section-inner, .header-inner, .hero-inner, .trust-strip-inner, .cta-band-inner, .site-footer-inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 1024px) {
  .section-inner, .header-inner, .hero-inner, .trust-strip-inner, .cta-band-inner, .site-footer-inner {
    padding-inline: 48px;
  }
}

.eyebrow {
  display: block;
  font: 500 11px var(--font-mono);
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}
.eyebrow-on-dark { color: var(--accent-bright); }
.eyebrow-on-light { color: var(--accent-dark); }

.link-underline {
  font: 600 14px var(--font-display);
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  white-space: nowrap;
}

.link-arrow {
  font: 600 14px var(--font-display);
  color: var(--accent-bright);
}

.meta-mono {
  font: 400 11px var(--font-mono);
  color: var(--muted-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 15px var(--font-display);
  padding: 15px 28px;
  border-radius: var(--radius-md);
  transition: background-color 150ms ease, border-color 150ms ease, opacity 150ms ease;
  min-height: 48px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline-dark { border: 1px solid var(--charcoal-5); color: #fff; }
.btn-outline-dark:hover { border-color: var(--muted-light); }

.tag {
  display: inline-block;
  align-self: flex-start;
  font: 500 10.5px var(--font-mono);
  color: var(--accent-dark);
  background: var(--tag-bg);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.badge-circle {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font: 600 8px var(--font-mono);
}
.badge-circle-muted {
  width: 22px; height: 22px;
  border-color: var(--muted);
  color: var(--muted-2);
  font-size: 6.5px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 150ms ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.logo-mark {
  width: 26px; height: 26px;
  background: var(--ink);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark-diamond { width: 10px; height: 10px; background: var(--accent); transform: rotate(45deg); }
.logo-mark-image {
  width: 204px;
  height: 40px;
  background: transparent;
  border-radius: 0;
}
.logo-mark-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font: 700 15px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.logo-sub { display: none; font: 500 9.5px var(--font-mono); color: var(--muted); }

@media (min-width: 1024px) {
  .logo-mark { width: 30px; height: 30px; }
  .logo-mark-image { width: 225px; height: 44px; }
  .logo-mark-diamond { width: 12px; height: 12px; }
  .logo-name { font-size: 17px; }
  .logo-sub { display: block; }
}

.primary-nav { display: none; }

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

.social-links { display: none; align-items: center; gap: 8px; }

.social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font: 700 14px var(--font-display);
}

.header-phone { display: none; flex-direction: column; align-items: flex-end; }
.header-phone-label { font: 500 9.5px var(--font-mono); color: var(--muted); }
.header-phone a { font: 600 14px var(--font-display); }
.header-phone-inline {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  font: 600 13px var(--font-display);
}
.header-phone-inline span:first-child {
  font: 500 9.5px var(--font-mono);
  color: var(--muted);
}

@media (min-width: 1024px) {
  .primary-nav { display: block; margin-left: 32px; }
  .primary-nav > ul { display: flex; gap: 26px; }
  .nav-link {
    position: relative;
    display: flex; align-items: center; gap: 5px;
    font: 500 14.5px var(--font-display);
    color: var(--nav-muted);
    height: var(--header-h);
  }
  /* Animated active/hover/focus bar — slides in from the left */
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
  }
  .nav-link:hover, .nav-link:focus-visible { color: var(--ink); }
  .nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }
  .nav-item.is-active .nav-link { color: var(--ink); }
  .nav-item.is-active .nav-link::after { transform: scaleX(1); }
  .caret { font-size: 10px; color: var(--muted); }

  .header-actions { gap: 20px; }
  .social-links { display: flex; }
  .header-phone-inline { display: flex; }
  .social-icon {
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
  }
  .header-phone { display: flex; }

  .nav-item.has-dropdown { position: relative; }
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
  }
  .nav-item.has-dropdown:hover .dropdown-menu,
  .dropdown-menu:focus-within,
  .nav-dropdown-trigger[aria-expanded="true"] + .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu a {
    position: relative;
    display: block;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font: 500 14px var(--font-display);
    color: var(--nav-muted);
  }
  /* Animated left accent bar on hover/keyboard focus */
  .dropdown-menu a::before {
    content: "";
    position: absolute;
    left: 0; top: 6px; bottom: 6px;
    width: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 150ms ease;
  }
  .dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--page-bg); color: var(--ink); }
  .dropdown-menu a:hover::before, .dropdown-menu a:focus-visible::before { transform: scaleY(1); }
  .dropdown-divider { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
  .dropdown-divider a { color: var(--accent-dark); font-weight: 600; }
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
}
.menu-toggle span { width: 18px; height: 1.8px; background: var(--ink); transition: transform 150ms ease, opacity 150ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 20px 20px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav > ul > li { border-top: 1px solid var(--border-2); }
.mobile-nav > ul > li:first-child { border-top: none; }
.mobile-nav > ul > li > a {
  display: block;
  padding: 14px 4px;
  font: 500 15px var(--font-display);
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-nav-group { padding: 10px 4px 4px; }
.mobile-nav-heading { display: block; font: 500 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
/* Active-section indicator (mobile): left accent bar + ink + heavier weight */
.mobile-nav > ul > li > a[aria-current="page"] {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--ink);
  font-weight: 600;
}
.mobile-nav-group.is-active { border-left: 3px solid var(--accent); padding-left: 12px; }
.mobile-nav-group.is-active .mobile-nav-heading { color: var(--accent-dark); }
.mobile-nav-group ul { padding-left: 4px; }
.mobile-nav-group ul a {
  display: flex; align-items: center;
  padding: 11px 0;
  min-height: 44px;
  font: 400 14.5px var(--font-display);
  color: var(--nav-muted);
}
.mobile-nav-phone {
  display: block;
  margin-top: 16px;
  text-align: center;
  padding: 14px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font: 600 14.5px var(--font-display);
}

@media (min-width: 1024px) {
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */

.hero { background: var(--ink); }
.hero-inner { padding-block: 36px 32px; display: flex; flex-direction: column; gap: 20px; }

.hero-copy { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.hero-copy h1 {
  font: 700 27px/1.18 var(--font-display);
  color: #fff;
  letter-spacing: -0.015em;
}
.hero-subhead { margin: 0; font: 400 15px/1.55 var(--font-display); color: var(--muted-light); }
.hero-actions { display: flex; flex-direction: column; gap: 10px; }
.hero-actions .btn { width: 100%; }

.hero-media {
  position: relative;
  border: 1px solid var(--charcoal-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 170px;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font: 400 10px var(--font-mono);
  color: #D8DADD;
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding-block: 0;
    min-height: 520px;
  }
  .hero-copy { flex: 0 0 auto; width: 552px; gap: 22px; padding-block: 72px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-subhead { font-size: 17.5px; max-width: 460px; }
  .hero-actions { flex-direction: row; gap: 14px; margin-top: 10px; }
  .hero-actions .btn { width: auto; }
  .hero-media { flex: 1; margin-block: 36px; margin-left: 56px; height: auto; align-self: stretch; }
}

/* ---------- Trust strip ---------- */

.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip-inner { padding-block: 18px; display: flex; flex-direction: column; gap: 10px; }

.trust-facts { display: flex; flex-direction: column; gap: 10px; }
.trust-fact { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--font-display); }
.trust-fact-text { font: 500 12.5px var(--font-display); }
.trust-divider { display: none; }

.partner-brands { display: flex; gap: 16px; align-items: center; overflow-x: auto; }
.partner-label { display: none; }
.partner-name { font: 600 12px var(--font-display); color: var(--muted); white-space: nowrap; }

@media (min-width: 1024px) {
  .trust-strip-inner { flex-direction: row; align-items: center; gap: 40px; padding-block: 22px; }
  .trust-facts { flex-direction: row; align-items: center; gap: 22px; }
  .trust-fact, .trust-fact-text { font-size: 13px; }
  .trust-divider { display: block; width: 1px; height: 22px; background: var(--border); }
  .partner-brands { flex: 1; justify-content: flex-end; gap: 34px; }
  .partner-label { display: inline; font: 400 10.5px var(--font-mono); color: var(--muted-2); }
  .partner-name { font-size: 14px; }
}

/* ---------- Sections ---------- */

.section { padding-block: 36px; }
.section-dark { background: var(--ink); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head h2 { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.01em; color: inherit; }
.section-head-tight { margin-bottom: 16px; }

@media (min-width: 1024px) {
  .section { padding-block: 64px; }
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
  }
  .section-head h2 { font-size: 30px; }
}

.card-grid { display: grid; gap: 12px; }
.card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }

@media (min-width: 600px) {
  .card-grid-3, .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .card-grid { gap: 16px; }
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Category card */
.category-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.category-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.category-card-media {
  height: 150px;
  border-bottom: 1px solid var(--border-2);
  display: grid;
  place-items: center;
}
.category-card-media img { max-width: 88%; max-height: 130px; object-fit: contain; }
.category-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.category-card-body h3 { font: 600 17px var(--font-display); }
.category-card-body p { margin: 0; font: 400 13.5px/1.5 var(--font-display); color: var(--muted); }

/* Capability */
.capability-grid { display: flex; flex-direction: column; gap: 24px; }
.capability-copy { display: flex; flex-direction: column; gap: 14px; }
.capability-copy h2 { font: 700 22px/1.2 var(--font-display); color: #fff; letter-spacing: -0.01em; }
.capability-copy p { margin: 0; font: 400 14.5px/1.6 var(--font-display); color: var(--muted-light); max-width: 520px; }
.capability-media { position: relative; border: 1px solid var(--charcoal-4); border-radius: var(--radius-md); overflow: hidden; height: 180px; }
.capability-media img { width: 100%; height: 100%; object-fit: cover; }
.capability-media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px 14px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
  font: 400 10px var(--font-mono);
  color: #D8DADD;
}

@media (min-width: 1024px) {
  .capability-grid { flex-direction: row; align-items: center; gap: 56px; }
  .capability-copy { flex: 1; }
  .capability-copy h2 { font-size: 30px; }
  .capability-copy p { font-size: 15.5px; }
  .capability-media { flex: 0 0 560px; height: 280px; }
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--charcoal-4);
  border: 1px solid var(--charcoal-4);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 32px;
}
.stat { background: var(--charcoal-2); padding: 16px 18px; }
.stat-number { display: block; font: 700 26px var(--font-display); color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { margin: 2px 0 0; font: 400 11.5px var(--font-display); color: var(--muted-2); }

@media (min-width: 1024px) {
  .stats-bar { grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
  .stat { padding: 24px 28px; }
  .stat-number { font-size: 34px; }
  .stat-label { font-size: 12.5px; margin-top: 4px; }
}

/* Project card */
.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.project-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.project-card-media { height: 150px; border-bottom: 1px solid var(--border-2); overflow: hidden; }
.project-card-media img { width: 100%; height: 100%; object-fit: cover; }
.project-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.project-card-body h3 { font: 600 16px/1.3 var(--font-display); }
.project-card-body p { margin: 0; font: 400 13px/1.5 var(--font-display); color: var(--muted); }

/* Service card */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: box-shadow 150ms ease, transform 150ms ease;
}
.service-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); transform: translateY(-1px); }
.service-card svg { color: var(--ink); }
.service-card h3 { font: 600 15px var(--font-display); }
.service-card p { margin: 0; font: 400 13px/1.5 var(--font-display); color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band { background: var(--ink); }
.cta-band-inner {
  padding-block: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cta-band h2 { font: 700 20px/1.3 var(--font-display); color: #fff; }
.cta-band p { margin: 8px 0 0; font: 400 14px var(--font-display); color: var(--muted-2); }
.cta-band-actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band-actions .btn { width: 100%; }
.cta-band-phone { display: none; }

@media (min-width: 1024px) {
  .cta-band-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-block: 52px;
  }
  .cta-band h2 { font-size: 26px; }
  .cta-band p { font-size: 14.5px; }
  .cta-band-actions { flex-direction: row; align-items: center; gap: 18px; flex-shrink: 0; }
  .cta-band-actions .btn { width: auto; }
  .cta-band-phone { display: inline; font: 600 16px var(--font-display); color: #fff; }
}

/* ---------- Footer ---------- */

.site-footer { background: var(--ink-2); }
.site-footer-inner { padding-block: 32px 20px; }

.footer-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col-heading { font: 500 10.5px var(--font-mono); color: var(--muted); }
.footer-col a, .footer-col address {
  font: 400 13px/1.55 var(--font-display);
  color: var(--muted-light);
  font-style: normal;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--charcoal-3);
}
.footer-cert { display: flex; align-items: center; gap: 12px; }
.footer-cert span:last-child { font: 400 11px var(--font-mono); color: var(--muted); }
.footer-copyright { font: 400 11px var(--font-display); color: var(--muted); }
.footer-copyright a { text-decoration: underline; text-underline-offset: 2px; }
.footer-copyright a:hover { color: var(--muted-light); }

@media (min-width: 600px) {
  .footer-columns { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .site-footer-inner { padding-block: 52px 0; }
  .footer-columns { gap: 32px; padding-bottom: 44px; }
  .footer-col a, .footer-col address { font-size: 13.5px; }
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0 20px;
  }
  .footer-cert span:last-child { font-size: 11.5px; }
  .footer-copyright { font-size: 11.5px; }
}

/* ---------- AI assistant button ---------- */

.ai-assistant-button {
  position: fixed;
  bottom: 18px;
  right: 16px;
  width: 50px;
  height: 50px;
  background: var(--ink);
  border: 1px solid var(--charcoal-4);
  border-radius: 25px;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  z-index: 90;
  transition: transform 150ms ease;
}
.ai-assistant-button:hover { transform: scale(1.05); }

@media (min-width: 1024px) {
  .ai-assistant-button { bottom: 22px; right: 22px; width: 52px; height: 52px; }
}

/* ================================================================
   Catalog / Product / RFQ — shared components
   ================================================================ */

/* Task header (Products, Product detail, RFQ): logo, nav, smaller
   social icons, cart CTA with badge — replaces the marketing phone
   number used on Home. */

@media (min-width: 1024px) {
  .social-icon-sm {
    width: 38px; height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    display: grid;
    place-items: center;
    color: var(--ink);
    font: 700 13px var(--font-display);
  }
}

.btn-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font: 600 12px var(--font-display);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  min-height: 40px;
}
.btn-cart:hover { background: var(--accent-dark); }
.btn-cart-label-full { display: none; }
.btn-cart-label-short { display: inline; }

.cart-count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: rgba(255,255,255,.22);
  border-radius: 8px;
  font: 600 10px/16px var(--font-mono);
  text-align: center;
}

@media (min-width: 1024px) {
  .btn-cart { gap: 8px; font-size: 13.5px; padding: 10px 16px; min-height: 44px; }
  .btn-cart-label-full { display: inline; }
  .btn-cart-label-short { display: none; }
  .cart-count { min-width: 19px; height: 19px; border-radius: 10px; font: 600 11px/19px var(--font-mono); }
}

.header-actions-task { display: flex; align-items: center; gap: 8px; margin-left: auto; }

@media (min-width: 1024px) {
  .header-actions-task { gap: 16px; }
}

/* Breadcrumb */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 12px var(--font-mono);
  color: var(--muted-2);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .current { color: var(--ink); }

@media (min-width: 1024px) {
  .breadcrumb { font: 400 12.5px var(--font-display); color: var(--muted); }
  .breadcrumb a { color: var(--muted); }
}

/* Page header (category / product) */

.page-header-band { padding-block: 20px 0; }
@media (min-width: 1024px) { .page-header-band { padding-block: 26px 0; } }

.category-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.category-header h1 { font: 700 26px/1.1 var(--font-display); letter-spacing: -0.015em; }
.category-header p { margin: 0; font: 400 13.5px/1.6 var(--font-display); color: var(--nav-muted); max-width: 720px; }
.category-header-count { font: 400 12px var(--font-mono); color: var(--muted-2); white-space: nowrap; }

@media (min-width: 1024px) {
  .category-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: 16px;
    padding-bottom: 22px;
  }
  .category-header h1 { font-size: 34px; }
  .category-header p { font-size: 15px; }
}

/* Category layout: filters + grid */

.category-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block: 20px 40px;
}

@media (min-width: 1024px) {
  .category-layout { display: grid; grid-template-columns: 248px 1fr; gap: 36px; padding-block: 28px 56px; }
}

.filter-toggle-row { display: flex; gap: 8px; }

@media (min-width: 1024px) { .filter-toggle-row { display: none; } }

.filter-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 13px var(--font-display);
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  padding: 11px 0;
  min-height: 44px;
}
.filter-toggle-count { font: 600 10px var(--font-mono); color: var(--accent); }

.sort-select {
  flex: 1;
  font: 500 13px var(--font-display);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  min-height: 44px;
}

.filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.filter-sidebar[hidden] { display: none; }

@media (min-width: 1024px) {
  .filter-sidebar[hidden] { display: flex; }
  .filter-sidebar { gap: 22px; }
}

.filter-sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.filter-sidebar-head span { font: 600 13px var(--font-display); }
.filter-clear { font: 400 12px var(--font-display); color: var(--accent-dark); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 400 11.5px var(--font-display);
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: 14px;
  padding: 4px 10px;
}
.filter-chip button { color: var(--muted-2); font-size: 13px; line-height: 1; }
.filter-chip button:hover { color: var(--ink); }

.filter-group { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.filter-group legend { font: 500 10.5px var(--font-mono); color: var(--muted); padding: 0 0 4px; }
.filter-option { display: flex; align-items: center; gap: 9px; font: 400 13.5px var(--font-display); min-height: 32px; }
.filter-option input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }
.filter-divider { height: 1px; background: var(--border); }

/* Sort row + grid */

.catalog-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.catalog-toolbar span { font: 400 13px var(--font-display); color: var(--muted); }
.catalog-toolbar label { display: flex; align-items: center; gap: 8px; font: 400 13px var(--font-display); color: var(--muted); }

@media (min-width: 1024px) {
  .catalog-toolbar { display: flex; }
  .catalog-toolbar .sort-select { flex: none; min-height: auto; padding: 7px 10px; }
}

.catalog-count-mobile { margin: 0 0 14px; font: 400 13px var(--font-display); color: var(--muted); }
@media (min-width: 1024px) { .catalog-count-mobile { display: none; } }

.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.catalog-empty {
  display: none;
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--muted);
  font: 400 14px var(--font-display);
}
.catalog-empty.is-visible { display: block; }

/* Catalog product card */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card[hidden] { display: none; }
.product-card-media {
  height: 150px;
  border-bottom: 1px solid var(--border-2);
  display: grid;
  place-items: center;
}
.product-card-media img.contain { max-width: 86%; max-height: 130px; object-fit: contain; }
.product-card-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card-body h3 { font: 600 16px var(--font-display); }
.product-card-body h3 a:hover { color: var(--accent); }
.product-card-specs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; font: 400 12.5px var(--font-display); color: var(--nav-muted); }
.product-card-specs .dot { color: var(--border-3); }
.product-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-view {
  flex: 1;
  text-align: center;
  font: 600 13px var(--font-display);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 11px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-add {
  flex: 1;
  font: 600 13px var(--font-display);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 11px 0;
  min-height: 44px;
  cursor: pointer;
}
.btn-add:hover { background: var(--accent-dark); }
.btn-add.is-added { background: var(--success); }

/* SEO block */

.seo-block {
  margin-top: 28px;
  padding: 22px 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.seo-block h2 { margin: 0 0 10px; font: 600 17px var(--font-display); }
.seo-block p { margin: 0; font: 400 13.5px/1.7 var(--font-display); color: var(--nav-muted); }

@media (min-width: 1024px) { .seo-block { margin-top: 36px; padding: 26px 30px; } }

/* CTA band (task variant, no phone by default on mobile) */

.cta-band .cta-band-actions .cta-band-phone { display: none; }
@media (min-width: 1024px) { .cta-band .cta-band-actions .cta-band-phone { display: inline; } }

/* Product detail: gallery */

.product-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 20px 32px;
}
@media (min-width: 1024px) {
  .product-header { flex-direction: row; gap: 44px; padding-block: 24px 44px; }
}

.gallery { flex: none; }
@media (min-width: 1024px) { .gallery { width: 560px; } }

.gallery-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gallery-main img { max-width: 82%; max-height: 90%; object-fit: contain; }
@media (min-width: 1024px) { .gallery-main { height: 420px; } }

.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 64px; height: 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 0;
}
.gallery-thumb img { max-width: 90%; max-height: 90%; object-fit: contain; }
.gallery-thumb.is-active { border: 2px solid var(--accent); }
@media (min-width: 1024px) { .gallery-thumb { width: 84px; height: 84px; } }

/* Product detail: facts */

.product-facts { display: flex; flex-direction: column; flex: 1; }
.product-facts h1 { margin: 8px 0 4px; font: 700 25px/1.12 var(--font-display); letter-spacing: -0.015em; }
.product-facts .series-line { font: 400 12px var(--font-mono); color: var(--muted-2); }
.product-facts .lede { margin: 14px 0 0; font: 400 13.5px/1.6 var(--font-display); color: var(--nav-muted); }

@media (min-width: 1024px) {
  .product-facts h1 { font-size: 34px; margin-top: 8px; }
  .product-facts .series-line { font-size: 13px; }
  .product-facts .lede { font-size: 15px; line-height: 1.65; margin-top: 16px; }
}

.key-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 16px;
}
.key-specs div { background: var(--surface); padding: 12px 14px; }
@media (min-width: 1024px) { .key-specs div { padding: 16px 18px; } }
.key-spec-label { font: 500 9.5px var(--font-mono); color: var(--muted-2); }
.key-spec-value { font: 700 19px var(--font-display); margin-top: 2px; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .key-spec-value { font-size: 22px; margin-top: 3px; } }

.product-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
@media (min-width: 1024px) { .product-actions { flex-direction: row; gap: 12px; } }

.btn-add-lg {
  font: 600 15px var(--font-display);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 0;
  cursor: pointer;
  min-height: 48px;
}
.btn-add-lg:hover { background: var(--accent-dark); }
@media (min-width: 1024px) { .btn-add-lg { flex: 1; } }

.btn-datasheet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font: 600 15px var(--font-display);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 14px 0;
  min-height: 48px;
}
@media (min-width: 1024px) { .btn-datasheet { padding: 15px 22px; } }

.added-confirmation {
  margin-top: 12px;
  font: 500 12.5px var(--font-display);
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  padding: 9px 14px;
}
.added-confirmation[hidden] { display: none; }
.added-confirmation a { color: var(--success); border-bottom: 1px solid var(--success); }

.ask-assistant-link {
  margin-top: 14px;
  font: 500 13px var(--font-display);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Spec table */

.spec-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
}
.spec-table { font: 400 12.5px var(--font-display); }
@media (min-width: 1024px) { .spec-table { font-size: 13.5px; } }
.spec-table thead tr { background: var(--ink); }
.spec-table th {
  text-align: left;
  font: 600 10px var(--font-mono);
  color: var(--muted-light);
  padding: 10px 14px;
  white-space: nowrap;
}
@media (min-width: 1024px) { .spec-table th { font-size: 11px; padding: 12px 20px; } }
.spec-table .group-row td {
  background: var(--page-bg);
  font: 600 9.5px var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.03em;
  padding: 8px 14px;
}
@media (min-width: 1024px) { .spec-table .group-row td { font-size: 10.5px; padding: 9px 20px; } }
.spec-table td {
  padding: 10px 14px;
  border-top: 1px solid var(--border-2);
  vertical-align: top;
}
@media (min-width: 1024px) { .spec-table td { padding: 11px 20px; } }
.spec-table .param { color: var(--nav-muted); white-space: nowrap; }
.spec-table .value { font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-table .standard { color: var(--muted-2); font: 400 11px var(--font-mono); white-space: nowrap; }
.spec-table .value-standard { color: var(--muted-2); font: 400 10.5px var(--font-mono); }

/* Advantages + standards */

.advantages-layout { display: flex; flex-direction: column; gap: 28px; padding-block: 0 40px; }
@media (min-width: 1024px) { .advantages-layout { flex-direction: row; gap: 36px; } }

.advantages-col { flex: 1; }
.advantages-col h2 { margin: 0 0 16px; font: 700 20px var(--font-display); letter-spacing: -0.01em; }
@media (min-width: 1024px) { .advantages-col h2 { font-size: 22px; } }

.advantages-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .advantages-grid { grid-template-columns: 1fr 1fr; } }

.advantage-item { display: flex; gap: 12px; align-items: flex-start; }
.advantage-icon {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--tag-bg);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.advantage-item p { margin: 0; font: 400 13.5px/1.5 var(--font-display); color: var(--nav-muted); }
.advantage-item strong { font-weight: 600; color: var(--ink); }

.standards-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px 22px;
}
@media (min-width: 1024px) { .standards-box { width: 380px; padding: 22px 24px; } }
.standards-box h3 { margin: 0 0 12px; font: 600 15px var(--font-display); }
.standards-list { display: flex; flex-direction: column; gap: 10px; font: 400 13px/1.4 var(--font-display); color: var(--nav-muted); }
.standards-list div { display: flex; gap: 10px; align-items: center; }
.standards-list .mark {
  width: 22px; height: 22px; flex-shrink: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 6.5px var(--font-mono);
}
.standards-list .mark-text {
  font: 600 11px var(--font-mono);
  color: var(--accent);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.standards-box a { display: inline-block; margin-top: 14px; font: 500 13px var(--font-display); color: var(--accent-dark); border-bottom: 1px solid var(--accent); }

/* Related products (compact) */

.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
}
.related-card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.related-card-media { height: 110px; border-bottom: 1px solid var(--border-2); display: grid; place-items: center; overflow: hidden; }
.related-card-media img.contain { max-width: 80%; max-height: 92px; object-fit: contain; }
.related-card-media img.cover { width: 100%; height: 100%; object-fit: cover; }
.related-card-body { padding: 12px 14px; }
.related-card-body h3 { margin: 0; font: 600 13.5px var(--font-display); }
.related-card-body span { font: 400 10.5px var(--font-mono); color: var(--muted-2); }
@media (min-width: 1024px) {
  .related-card-media { height: 130px; }
  .related-card-media img.contain { max-height: 112px; }
  .related-card-body { padding: 14px 16px; }
  .related-card-body h3 { font-size: 14.5px; }
  .related-card-body span { font-size: 11px; }
}

/* RFQ: minimal header */

.header-minimal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.header-secure {
  display: none;
  align-items: center;
  gap: 8px;
  font: 500 13px var(--font-display);
  color: var(--muted);
}
@media (min-width: 1024px) { .header-secure { display: flex; } }
.header-nooblig { font: 500 11px var(--font-display); color: var(--muted); }

.rfq-intro { padding-block: 24px 0; }
.back-link { font: 500 13px var(--font-display); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.rfq-intro h1 { margin: 14px 0 4px; font: 700 25px/1.12 var(--font-display); letter-spacing: -0.015em; }
.rfq-intro p { margin: 0; font: 400 13.5px/1.55 var(--font-display); color: var(--nav-muted); }
@media (min-width: 1024px) {
  .rfq-intro { padding-block: 32px 0; }
  .rfq-intro h1 { font-size: 32px; margin-top: 14px; }
  .rfq-intro p { font-size: 15px; }
}

.rfq-layout { display: flex; flex-direction: column; gap: 24px; padding-block: 20px 48px; }
@media (min-width: 1024px) {
  .rfq-layout { display: grid; grid-template-columns: 1fr 440px; gap: 32px; align-items: start; padding-block: 28px 48px; }
}

.rfq-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rfq-items-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border-2);
}
.rfq-items-head h2 { margin: 0; font: 600 14.5px var(--font-display); }
.rfq-items-head span { font: 500 12px var(--font-mono); color: var(--muted-2); }
.rfq-items-head a { font: 400 12px var(--font-display); color: var(--accent-dark); }
@media (min-width: 1024px) { .rfq-items-head { padding: 18px 24px; } .rfq-items-head h2 { font-size: 16px; } }

.rfq-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-2); }
@media (min-width: 1024px) { .rfq-item { gap: 18px; padding: 18px 24px; } }

.rfq-item-media {
  width: 56px; height: 56px; flex-shrink: 0;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.rfq-item-media img { max-width: 88%; max-height: 88%; object-fit: contain; }
@media (min-width: 1024px) { .rfq-item-media { width: 76px; height: 76px; } }

.rfq-item-body { flex: 1; min-width: 0; }
.rfq-item-body .tag { margin-bottom: 2px; }
.rfq-item-body h3 { margin: 0 0 2px; font: 600 13.5px var(--font-display); }
.rfq-item-body .spec { font: 400 10.5px var(--font-mono); color: var(--muted-2); }
@media (min-width: 1024px) { .rfq-item-body h3 { font-size: 15.5px; } .rfq-item-body .spec { font-size: 11.5px; } }

.rfq-item-controls { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border-3); border-radius: var(--radius-md); }
.qty-stepper button { width: 30px; height: 32px; border: none; background: var(--surface); font: 400 16px var(--font-display); color: var(--nav-muted); cursor: pointer; }
.qty-stepper span { width: 30px; text-align: center; font: 500 13px var(--font-mono); }
@media (min-width: 1024px) {
  .qty-stepper button { width: 34px; height: 36px; font-size: 18px; }
  .qty-stepper span { width: 38px; font-size: 14px; }
}
.rfq-item-remove-mobile { border: none; background: none; font: 400 11.5px var(--font-display); color: var(--muted-2); cursor: pointer; }
.rfq-item-remove-desktop {
  display: none;
  width: 34px; height: 34px; border: none; background: none; cursor: pointer; color: var(--muted-2);
  align-items: center; justify-content: center;
}
@media (min-width: 1024px) {
  .rfq-item-remove-mobile { display: none; }
  .rfq-item-remove-desktop { display: flex; }
}

.rfq-empty { display: none; padding: 32px 16px; text-align: center; }
.rfq-empty.is-visible { display: block; }
.rfq-empty p { margin: 0 0 12px; font: 400 13px var(--font-display); color: var(--muted); }
.rfq-empty a { background: var(--accent); color: #fff; font: 600 13px var(--font-display); padding: 10px 18px; border-radius: var(--radius-md); }
@media (min-width: 1024px) { .rfq-empty { padding: 44px 24px; } .rfq-empty p { font-size: 14px; } }

.rfq-note {
  padding: 16px; display: flex; align-items: center; gap: 10px; background: var(--page-bg);
}
.rfq-note span { font: 400 12.5px var(--font-display); color: var(--muted); }
@media (min-width: 1024px) { .rfq-note { padding: 16px 24px; } }

.rfq-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px 20px;
}
.rfq-form h2 { margin: 0 0 14px; font: 600 14.5px var(--font-display); }
@media (min-width: 1024px) { .rfq-form { padding: 26px 26px 28px; } .rfq-form h2 { font-size: 16px; margin-bottom: 18px; } }

.form-fields { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) { .form-fields { gap: 15px; } }

.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label { font: 500 11.5px var(--font-display); color: var(--nav-muted); }
.form-field .optional { color: var(--muted-2); font-weight: 400; }
.form-field input, .form-field textarea {
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  font: 400 14px var(--font-display);
  color: var(--ink);
  background: var(--surface);
}
.form-field input:invalid[data-touched="true"], .form-field textarea:invalid[data-touched="true"] {
  border-color: var(--accent);
}
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 1024px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }

.form-submit {
  font: 600 15px var(--font-display);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 0;
  cursor: pointer;
  min-height: 48px;
}
.form-submit:hover { background: var(--accent-dark); }

.form-reassurance {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 2px;
}
.form-reassurance svg { flex-shrink: 0; margin-top: 1px; }
.form-reassurance p { margin: 0; font: 400 11.5px/1.5 var(--font-display); color: var(--muted); }
.form-reassurance a { color: var(--accent-dark); }
.form-reassurance strong { color: var(--ink); font-weight: 600; }

/* Confirmation page */

.confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding-block: 56px 64px;
  max-width: 520px;
  margin-inline: auto;
}
.confirmation-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  display: grid;
  place-items: center;
  color: var(--success);
}
.confirmation h1 { font: 700 26px/1.2 var(--font-display); letter-spacing: -0.01em; }
.confirmation p { margin: 0; font: 400 15px/1.6 var(--font-display); color: var(--nav-muted); }
.confirmation-actions { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 8px; }
@media (min-width: 600px) { .confirmation-actions { flex-direction: row; justify-content: center; } }

/* ================================================================
   Added components: AI panel, catalog search, simple/service/project/
   about/cert/downloads/contact/404 templates
   ================================================================ */

/* ---------- AI assistant panel ---------- */

.ai-panel {
  position: fixed;
  z-index: 95;
  bottom: 78px;
  right: 16px;
  left: 16px;
  max-height: min(72vh, 620px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0,0,0,.28);
  overflow: hidden;
}
.ai-panel[hidden] { display: none; }
@media (min-width: 600px) {
  .ai-panel { left: auto; width: 380px; bottom: 84px; right: 22px; }
}

.ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
}
.ai-panel-title-wrap { display: flex; align-items: center; gap: 10px; }
.ai-panel-avatar {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--charcoal-3);
  display: grid; place-items: center;
  color: var(--accent-bright);
}
.ai-panel-head h2 { font: 600 14px var(--font-display); }
.ai-panel-sub { display: block; font: 400 10.5px var(--font-mono); color: var(--muted-2); margin-top: 1px; }
.ai-panel-close { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted-light); border-radius: var(--radius-sm); }
.ai-panel-close:hover { color: #fff; background: var(--charcoal-3); }

.ai-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--page-bg);
}
.ai-msg { max-width: 88%; font: 400 13.5px/1.5 var(--font-display); border-radius: var(--radius-md); padding: 10px 13px; }
.ai-msg-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); color: var(--ink); }
.ai-msg-user { align-self: flex-end; background: var(--ink); color: #fff; }
.ai-msg a.ai-link, .ai-msg a { color: var(--accent-dark); border-bottom: 1px solid var(--accent); }
.ai-msg-user a { color: #fff; border-bottom-color: rgba(255,255,255,.5); }

.ai-products { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ai-product { display: flex; gap: 10px; background: var(--page-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 8px; }
.ai-product-img { width: 46px; height: 46px; flex-shrink: 0; object-fit: contain; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-sm); }
.ai-product-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ai-product-name { font: 600 12.5px var(--font-display); color: var(--ink); border: none; }
.ai-product-name:hover { color: var(--accent); }
.ai-product-spec { font: 400 10px var(--font-mono); color: var(--muted-2); }
.ai-product-actions { display: flex; gap: 6px; margin-top: 5px; }
.ai-product-link { font: 600 11px var(--font-display); color: var(--ink); border: 1px solid var(--border-3); border-radius: var(--radius-sm); padding: 4px 10px; }
.ai-product-add { font: 600 11px var(--font-display); color: #fff; background: var(--accent); border-radius: var(--radius-sm); padding: 4px 10px; }
.ai-product-add:hover { background: var(--accent-dark); }
.ai-product-add.is-added { background: var(--success); }

.ai-typing { display: inline-flex; gap: 4px; align-items: center; padding: 2px 0; }
.ai-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: aiblink 1s infinite ease-in-out; }
.ai-typing span:nth-child(2) { animation-delay: .18s; }
.ai-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes aiblink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.ai-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; margin-top: -4px; }
.ai-suggestions:empty { display: none; }
.ai-chip {
  font: 500 12px var(--font-display);
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: 16px;
  padding: 7px 12px;
  color: var(--nav-muted);
  text-align: left;
}
.ai-chip:hover { border-color: var(--accent); color: var(--ink); }

.ai-input-row { display: flex; gap: 8px; padding: 12px 16px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.ai-input-row input {
  flex: 1;
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font: 400 13.5px var(--font-display);
  color: var(--ink);
}
.ai-send {
  width: 42px; flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
}
.ai-send:hover { background: var(--accent-dark); }

/* ---------- Catalog search ---------- */

.catalog-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-3);
  border-radius: var(--radius-md);
  padding: 0 12px;
  margin-bottom: 12px;
  color: var(--muted-2);
}
.catalog-search-row input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px 0;
  font: 400 14px var(--font-display);
  color: var(--ink);
  min-height: 44px;
}
.catalog-search-row input:focus { outline: none; }
@media (min-width: 1024px) { .catalog-search-row { margin-bottom: 18px; } }

/* ---------- 2-up card grid + large service card ---------- */

.card-grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .card-grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.service-card-lg { padding: 24px; }
.service-card-lg h3 { font-size: 17px; }
.service-card-lg .link-arrow { margin-top: 4px; }

/* ---------- Simple page layout (services, about) ---------- */

.simple-layout { display: flex; flex-direction: column; gap: 28px; padding-block: 24px 44px; }
@media (min-width: 1024px) { .simple-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; padding-block: 32px 56px; } }

.simple-h2 { font: 700 20px var(--font-display); letter-spacing: -0.01em; margin: 0 0 14px; }
.simple-main .simple-h2:not(:first-child) { margin-top: 32px; }
.body-p { margin: 0 0 14px; font: 400 14.5px/1.7 var(--font-display); color: var(--nav-muted); max-width: 660px; }

.steps { display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  font: 700 13px var(--font-display);
}
.step h3 { font: 600 15px var(--font-display); margin-bottom: 3px; }
.step p { margin: 0; font: 400 13.5px/1.6 var(--font-display); color: var(--muted); }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; font: 400 14px/1.5 var(--font-display); color: var(--nav-muted); }
.check-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }

.proof-card {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.proof-card h3 { font: 600 16px var(--font-display); }
.proof-card p { margin: 0; font: 400 13.5px/1.5 var(--font-display); color: var(--muted); }

.simple-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.aside-card h3 { font: 600 14.5px var(--font-display); margin-bottom: 10px; }
.aside-card p { margin: 0 0 14px; font: 400 13px/1.55 var(--font-display); color: var(--muted); }
.aside-card .btn { margin-bottom: 12px; }
.aside-phone { display: block; text-align: center; font: 600 14px var(--font-display); color: var(--ink); }
.aside-links { display: flex; flex-direction: column; gap: 9px; }
.aside-links a { font: 500 13.5px var(--font-display); color: var(--nav-muted); }
.aside-links a:hover { color: var(--accent); }
.fact-list { display: flex; flex-direction: column; gap: 10px; }
.fact-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-2); padding-bottom: 9px; }
.fact-list div:last-child { border-bottom: none; padding-bottom: 0; }
.fact-list dt { font: 400 12.5px var(--font-display); color: var(--muted); }
.fact-list dd { font: 600 12.5px var(--font-display); color: var(--ink); text-align: right; }

.about-media {
  position: relative;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 220px;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .about-media { height: 360px; margin-top: 24px; } }

/* ---------- Project case study ---------- */

.project-hero { display: flex; flex-direction: column; gap: 20px; padding-block: 20px 24px; }
@media (min-width: 1024px) { .project-hero { flex-direction: row; gap: 40px; align-items: center; padding-block: 24px 32px; } }
.project-hero-media { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; height: 220px; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) { .project-hero-media { flex: 0 0 520px; height: 320px; } }
.project-hero-copy { flex: 1; }
.project-hero-copy h1 { font: 700 26px/1.15 var(--font-display); letter-spacing: -0.015em; margin: 10px 0 0; }
@media (min-width: 1024px) { .project-hero-copy h1 { font-size: 34px; } }
.project-meta { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 18px; }
.project-meta dt { font: 500 10px var(--font-mono); color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; }
.project-meta dd { font: 600 14px var(--font-display); margin-top: 3px; }

.stats-bar-light { background: var(--border); border-color: var(--border); margin-top: 0; margin-bottom: 8px; grid-template-columns: repeat(3, 1fr); }
.stats-bar-light .stat { background: var(--surface); }
.stats-bar-light .stat-number { color: var(--ink); }
.stats-bar-light .stat-label { color: var(--muted); }
@media (min-width: 1024px) { .stats-bar-light { grid-template-columns: repeat(3, 1fr); } }

.narrative { display: flex; flex-direction: column; gap: 22px; padding-block: 24px 8px; max-width: 760px; }
.narrative-block h2 { font: 700 18px var(--font-display); letter-spacing: -0.01em; margin-bottom: 8px; }
.narrative-block p { margin: 0; font: 400 14.5px/1.7 var(--font-display); color: var(--nav-muted); }

/* ---------- Certifications ---------- */

.cert-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .cert-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.cert-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; }
.cert-mark { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.cert-mark.mark { border: 2px solid var(--ink); font: 700 9px var(--font-mono); }
.cert-mark.mark-text { border: 2px solid var(--accent); color: var(--accent); font: 700 12px var(--font-mono); }
.cert-tag { display: block; font: 500 10px var(--font-mono); color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; }
.cert-card h3 { font: 600 15.5px var(--font-display); margin-bottom: 6px; }
.cert-card p { margin: 0; font: 400 13px/1.55 var(--font-display); color: var(--muted); }

/* ---------- Downloads ---------- */

.downloads-wrap { display: flex; flex-direction: column; gap: 24px; }
.download-group h2 { font: 600 16px var(--font-display); margin-bottom: 10px; }
.download-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin-bottom: 8px;
}
.download-row:hover { border-color: var(--border-3); box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.download-icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--tag-bg); color: var(--accent); display: grid; place-items: center; }
.download-name { flex: 1; font: 600 13.5px var(--font-display); }
.download-series { display: block; font: 400 11px var(--font-mono); color: var(--muted-2); margin-top: 2px; }
.download-meta { font: 400 11px var(--font-mono); color: var(--muted-2); white-space: nowrap; }

/* ---------- Contact ---------- */

.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-line { display: block; font: 600 15px var(--font-display); color: var(--ink); margin-bottom: 6px; }
.contact-line:hover { color: var(--accent); }
.contact-address { font: 400 13.5px/1.6 var(--font-display); color: var(--nav-muted); font-style: normal; margin-bottom: 10px; }
.contact-hours { margin: 0; font: 400 13.5px/1.7 var(--font-display); color: var(--nav-muted); }
.form-success { display: flex; gap: 10px; align-items: flex-start; background: var(--success-bg); border: 1px solid var(--success-border); border-radius: var(--radius-md); padding: 14px 16px; }
.form-success[hidden] { display: none; }
.form-success svg { flex-shrink: 0; margin-top: 2px; color: var(--success); }
.form-success p { margin: 0; font: 400 13px/1.55 var(--font-display); color: var(--success); }

/* ---------- 404 + legal ---------- */

.notfound { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-block: 56px 72px; max-width: 560px; margin-inline: auto; }
.notfound h1 { font: 700 30px var(--font-display); letter-spacing: -0.015em; }
.notfound p { margin: 0; font: 400 15px/1.6 var(--font-display); color: var(--nav-muted); }
.notfound-search { display: flex; gap: 8px; width: 100%; max-width: 420px; margin-top: 6px; }
.notfound-search input { flex: 1; border: 1px solid var(--border-3); border-radius: var(--radius-md); padding: 12px 14px; font: 400 14px var(--font-display); color: var(--ink); min-height: 48px; }
.notfound-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.chip-link { font: 500 12.5px var(--font-display); background: var(--surface); border: 1px solid var(--border-3); border-radius: 16px; padding: 7px 14px; color: var(--nav-muted); }
.chip-link:hover { border-color: var(--accent); color: var(--ink); }

.legal-body { padding-block: 8px 48px; max-width: 720px; }
.legal-body .simple-h2 { margin-top: 26px; font-size: 18px; }
.legal-body .body-p a { color: var(--accent-dark); }
