/* ==========================================================================
   KINEMAT — design tokens
   ========================================================================== */
:root {
  /* colors */
  --ink-900: #14171A;
  --ink-800: #1B1F23;
  --ink-700: #262B31;
  --ink-600: #3A4048;
  --steel-300: #C7CDD3;
  --steel-200: #DEE2E6;
  --steel-100: #E8EAEC;
  --paper: #F4F5F6;
  --white: #FFFFFF;
  --blue-600: #2E6F95;
  --blue-500: #3D89B5;
  --blue-300: #9FC4DA;
  --amber-500: #E2A63B;
  --amber-600: #C98A22;
  --line: #D3D8DC;
  --line-dark: #3A4048;

  /* type */
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1180px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
@media (min-width: 1130px) { section[id] { scroll-margin-top: 132px; } }
body {
  margin: 0;
  padding-top: 77px;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1130px) { body { padding-top: 113px; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-600); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
}

/* eyebrow / kicker — mimics a drawing label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .07em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
/* dimension-line signature element:  |←—— 500 mm ——→| */
.dim {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-600);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* ---- header ---- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background: rgba(20,23,26,.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-dark);
}
.header-topbar { display: none; border-bottom: 1px solid var(--line-dark); }
.header-topbar .container {
  display: flex; align-items: center; justify-content: flex-end;
  height: 34px;
}
.header-topbar .header-contacts {
  display: flex; flex-direction: row; align-items: center; gap: 22px;
}
@media (min-width: 1130px) { .header-topbar { display: block; } }
.header-main .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 12px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
.logo-mark { height: 40px; width: auto; display: block; flex: none; }
.logo-text-group { display: flex; flex-direction: column; gap: 1px; line-height: 1; }
.logo-text {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  letter-spacing: 0.01em; color: var(--white);
}
.logo-tagline {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--steel-300);
}
footer .logo-mark { height: 44px; }
footer .logo-text { font-size: 22px; }
footer .logo-tagline { font-size: 11.5px; }
nav.main-nav {
  display: flex; gap: 22px;
}
nav.main-nav a {
  color: var(--steel-200);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color .15s;
}
nav.main-nav a:hover, nav.main-nav a.active { color: var(--white); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  appearance: none; background: none; border: none; font: inherit;
  color: var(--steel-200); font-size: 14.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 5px; padding: 0;
  cursor: pointer; transition: color .15s;
}
.nav-dropdown-trigger:hover, .nav-dropdown-trigger.active { color: var(--white); }
.nav-dropdown-caret { flex: none; transition: transform .15s; }
.nav-dropdown:hover .nav-dropdown-caret, .nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(180deg); }
.nav-dropdown-panel {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 14px;
  display: none;
}
.nav-dropdown:hover .nav-dropdown-panel, .nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-panel-inner {
  display: flex; flex-direction: column;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 6px; min-width: 168px;
  box-shadow: 0 14px 28px rgba(0,0,0,.4);
}
.nav-dropdown-panel a {
  color: var(--steel-200); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 9px 12px; border-radius: 2px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel a.active { color: var(--white); background: rgba(255,255,255,.07); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone, .header-email {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--steel-200);
  text-decoration: none;
}
.header-email { color: var(--steel-300); font-size: 11.5px; }
.header-phone:hover, .header-email:hover { color: var(--white); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex: none;
}
.btn-primary { background: var(--amber-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { background: transparent; border-color: var(--line-dark); color: var(--white); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-300); }
.btn-dark { background: var(--ink-800); color: var(--white); }
.btn-dark:hover { background: var(--ink-700); }
.mobile-toggle {
  display: none; background: none; border: none; color: var(--white);
  cursor: pointer; width: 32px; height: 32px; padding: 0;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-toggle span { width: 22px; height: 1.5px; background: var(--white); display: block; transition: transform .2s, opacity .2s; }
.mobile-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--ink-800);
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 0 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--steel-200); text-decoration: none; font-size: 15.5px;
  padding: 13px 32px; border-top: 1px solid var(--line-dark);
}
.mobile-nav a.active { color: var(--white); font-weight: 600; }
.mobile-nav-group-label {
  display: block; padding: 12px 32px 2px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--steel-300); border-top: 1px solid var(--line-dark);
}
.mobile-nav-group-label + a { border-top: none; }
.mobile-nav .header-phone { display: inline; padding: 13px 32px 0; color: var(--steel-300); font-size: 14px; }
.btn-label-short { display: none; }
@media (max-width: 1130px) {
  nav.main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .btn-label-full { display: none; }
  .btn-label-short { display: inline; }
}

/* ---- hero ---- */
.hero {
  background: var(--ink-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  max-width: 15ch;
  color: var(--white);
}
.hero .lede {
  font-size: 18px;
  color: var(--steel-300);
  max-width: 52ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- sections ---- */
section { padding: 84px 0; }
section.alt { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--ink-900); }
.section-head p { font-size: 16.5px; }

/* card grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.card .idx {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue-600);
  margin-bottom: 16px;
  display: block;
}
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { width: 100%; height: 220px; object-fit: cover; display: block; }
.card-photo .card-photo-body { padding: 26px 30px 30px; }
.card h3 { font-size: 19px; color: var(--ink-900); margin-bottom: 10px; }
.card p { font-size: 15px; margin-bottom: 0; }

/* usp strip */
.usp-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.usp-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) { .usp-strip .container { grid-template-columns: repeat(2, 1fr); } }
.usp-item {
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}
.usp-item:nth-child(4) { border-right: none; }
@media (max-width: 900px) {
  .usp-item:nth-child(2n) { border-right: none; }
  .usp-item { border-bottom: 1px solid var(--line); }
}
.usp-item .t { font-weight: 600; color: var(--ink-900); margin-bottom: 4px; font-size: 15.5px; }
.usp-item .d { font-size: 14px; color: var(--ink-600); }

/* material chips */
.mat-group { margin-bottom: 40px; }
.mat-group > h3 {
  font-size: 14px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--blue-600); font-family: var(--font-mono); font-weight: 500;
  margin-bottom: 20px;
}
.mat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .mat-list { grid-template-columns: 1fr; } }
.mat-row { background: var(--white); padding: 20px 24px; }
.mat-row .name { font-weight: 600; color: var(--ink-900); font-size: 15.5px; margin-bottom: 4px; }
.mat-row .name .code { font-family: var(--font-mono); color: var(--blue-600); font-size: 13px; font-weight: 400; margin-left: 8px; }
.mat-row .desc { font-size: 14px; color: var(--ink-600); margin: 0; }

/* process steps */
.steps { counter-reset: step; }
.step-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.step-row:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-mono); font-size: 15px; color: var(--blue-600); padding-top: 2px; }
.step-body h3 { font-size: 18px; margin-bottom: 6px; color: var(--ink-900); }
.step-body p { margin: 0; font-size: 15px; }

/* project cards */
.proj-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 800px) { .proj-card { grid-template-columns: 1fr; } }
.proj-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; background: var(--steel-100); }
.proj-body { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
.proj-body .eyebrow { margin-bottom: 12px; }
.proj-body h3 { font-size: 21px; margin-bottom: 10px; }
.spec-list { list-style: none; margin: 16px 0 20px; padding: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--ink-600); }
.spec-list li { padding: 5px 0; border-top: 1px dashed var(--line); }
.spec-list li:first-child { border-top: none; }
.spec-list b { color: var(--ink-900); font-weight: 600; }
.link-arrow { color: var(--blue-600); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.link-arrow:hover { color: var(--blue-500); }
.proj-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
/* project detail pages */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  margin-bottom: 40px;
}
.gallery-grid.single { grid-template-columns: 1fr; }
.gallery-item {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; padding: 0; background: var(--paper); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 260px; object-fit: contain; background: var(--paper); display: block; }
.gallery-grid.single .gallery-item img { height: 520px; }
.gallery-placeholder {
  width: 100%; height: 420px; border-radius: var(--radius);
  background: var(--ink-800); display: flex; align-items: center; justify-content: center;
}

.lightbox {
  position: fixed; inset: 0; background: rgba(10,12,14,.94);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 60px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65); font-family: var(--font-mono); font-size: 13px;
}

.detail-body { max-width: 720px; }
.detail-body p { font-size: 16.5px; color: var(--ink-700); }

/* article typography */
.article-body { max-width: 700px; }
.article-body .lede-p { font-size: 18.5px; color: var(--ink-800); margin-bottom: 32px; }
.article-body p { font-size: 16.5px; color: var(--ink-700); margin-bottom: 20px; }
.article-body h2 { font-size: 24px; color: var(--ink-900); margin: 44px 0 16px; }
.article-body a:not(.btn) { color: var(--blue-600); }
.article-meta { display: flex; gap: 16px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--steel-300); margin-top: 20px; }
.article-cta {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; margin-top: 48px;
}
.article-cta p { margin-bottom: 16px; }
.article-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--white); display: block; text-decoration: none; color: inherit;
}
.article-card:hover { border-color: var(--blue-500); }
.article-card .article-date { font-family: var(--font-mono); font-size: 13px; color: var(--steel-300); margin-bottom: 10px; display: block; }
.article-card h3 { font-size: 20px; color: var(--ink-900); margin-bottom: 10px; }
.article-card p { font-size: 15px; color: var(--ink-600); margin: 0; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .proj-card, .card-link:hover .card { border-color: var(--blue-500); }
.proj-card-img-link { display: block; height: 100%; }
.proj-card-title-link { text-decoration: none; color: inherit; display: block; }
.proj-card-title-link:hover h3 { color: var(--blue-600); }

/* industries */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-family: var(--font-mono); font-size: 13.5px;
  border: 1px solid var(--line); color: var(--ink-700);
  padding: 8px 14px; border-radius: 20px;
}

/* form */
.form-panel {
  background: var(--ink-800); color: var(--white);
  border-radius: var(--radius); padding: 48px;
}
@media (max-width: 640px) { .form-panel { padding: 30px 22px; } }
.form-panel h2 { color: var(--white); }
.form-panel .lede { color: var(--steel-300); max-width: 50ch; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 13px; color: var(--steel-300); margin-bottom: 6px;
  font-family: var(--font-mono);
}
.field input, .field textarea {
  width: 100%; background: var(--ink-700); border: 1px solid var(--line-dark);
  color: var(--white); padding: 12px 14px; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 15px;
}
.file-list { margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--steel-300); display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink-700); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 8px 12px;
}
.file-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-remove {
  background: none; border: none; color: var(--blue-300); font-family: var(--font-body);
  font-size: 12.5px; cursor: pointer; flex: none; padding: 2px 4px;
}
.file-remove:hover { color: var(--white); }
.form-status {
  font-size: 12.5px; color: var(--steel-300); margin-top: 18px; line-height: 1.6;
}
.form-status a { color: var(--blue-300); }
.form-status.success { color: #7FC98A; }
.form-status.error { color: #E28080; }

.confidentiality-note {
  display: flex; gap: 14px; align-items: flex-start;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 18px 22px; margin-top: 28px; max-width: 720px;
}
.confidentiality-note .icon { flex: none; color: var(--blue-300); font-size: 18px; line-height: 1.4; }
.confidentiality-note p { margin: 0; font-size: 14px; color: var(--steel-300); line-height: 1.6; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: 12.5px; color: var(--steel-300); margin-top: 18px; line-height: 1.6; }
.form-note a { color: var(--blue-300); }

/* footer */
footer {
  background: var(--ink-900); color: var(--steel-300);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line-dark);
}
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel-300); font-family: var(--font-mono); font-weight: 500; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--steel-200); text-decoration: none; font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line-dark); padding-top: 24px; font-size: 13px; }

/* page hero (inner pages) */
.page-hero { background: var(--ink-800); color: var(--white); padding: 56px 0 60px; }
.page-hero h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); max-width: 20ch; }
.page-hero .lede { color: var(--steel-300); max-width: 60ch; font-size: 17px; margin: 0; }
.breadcrumb { font-family: var(--font-mono); font-size: 13px; color: var(--blue-300); margin-bottom: 18px; }
.breadcrumb a { color: var(--steel-300); text-decoration: none; }

.cta-band {
  background: var(--blue-600); color: var(--white); padding: 56px 0; text-align: left;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: 26px; margin: 0; }
.cta-band p { color: var(--blue-300); margin: 6px 0 0; }

.faq-list { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px;
}
.faq-item h3 { font-size: 17px; color: var(--ink-900); margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--ink-600); margin: 0; }

/* ---- data table component (reusable, uses existing :root tokens) ----
   Разметка: <div class="data-table-wrap"><table class="data-table">
             <thead>...</thead><tbody>...</tbody></table></div>
   - class="wide" на <table> — для таблиц от 4 столбцов и больше
   - class="num" на th/td — числовые колонки (моноширинный шрифт, выравнивание вправо)
   - class="lead" на td — заголовочная ячейка строки (обычно первый столбец, полужирная)
   - текстовые/описательные колонки — обычный <td> без классов
   - для второстепенных/редких вариантов таблицы — оборачивать в
     <details class="more"><summary>...</summary>...</details>, чтобы не
     перегружать страницу с первого взгляда
   - class="data-table-group" на обёртке — несколько компактных таблиц в ряд
     (flex, gap 20px); объявлен, но пока не применялся — использовать, когда
     на странице несколько таблиц логически рядом
   ---------------------------------------------------------------------- */
.data-table-wrap{
  display:inline-block;
  max-width:100%;
  overflow-x:auto;
  vertical-align:top;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--paper);
  margin-bottom:8px;
}
.data-table{
  border-collapse:collapse;
  width:auto;
  min-width:320px;
  font-size:15px;
  font-family:var(--font-body);
  color:var(--ink-900);
}
.data-table.wide{width:100%; min-width:720px;}
.data-table thead th{
  position:sticky;
  top:0;
  background:var(--ink-900);
  color:#fbf7f2;
  text-align:left;
  font-weight:600;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.02em;
  padding:13px 22px;
  white-space:nowrap;
}
.data-table thead th:first-child{border-top-left-radius:var(--radius);}
.data-table thead th:last-child{border-top-right-radius:var(--radius);}
.data-table.wide thead th:first-child{
  position:sticky;
  left:0;
  z-index:2;
  box-shadow:2px 0 4px rgba(0,0,0,.08);
}
.data-table tbody td{
  padding:12px 22px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}
.data-table tbody tr:last-child td{border-bottom:none;}
.data-table tbody tr:nth-child(even) td{background:var(--steel-100);}
.data-table.wide tbody td:first-child{
  position:sticky;
  left:0;
  z-index:1;
  background:var(--paper);
  box-shadow:2px 0 4px rgba(0,0,0,.08);
}
.data-table.wide tbody tr:nth-child(even) td:first-child{background:var(--steel-100);}
.data-table tbody tr:hover td{background:var(--dt-accent-soft, #FBF1DE);}
.data-table td.num,
.data-table th.num{
  font-family:var(--font-mono);
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.data-table td.lead{font-weight:600;}
.data-table-group{
  display:flex;
  flex-wrap:wrap;
  gap:20px;
  align-items:flex-start;
}
.data-table-group .data-table-wrap{margin-bottom:0;}
.data-table.wrap-desc td:nth-child(1),
.data-table.wrap-desc td:nth-child(3),
.data-table.wrap-desc td:nth-child(4){
  white-space:normal;
}

/* narrow-screen header fixes — kept last so they win over earlier base rules */
@media (max-width: 420px) {
  .logo-tagline { display: none; }
  .header-actions { gap: 8px; }
  .btn-primary { padding: 8px 11px; font-size: 13px; }
  .mobile-toggle { width: 28px; }
}
