:root { --accent: #BE123C; --accent-dark: #FB7185; }
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Source Sans 3 Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* MedIntegrity cluster stylesheet. Tokens mirror DESIGN.md. Per-site accent is injected as --accent / --accent-text. */
:root {
  --ink: #0F172A; --text: #334155; --muted: #5B6B82; --surface: #F8FAFC; --panel: #FFFFFF; --line: #E2E8F0;
  --tint: color-mix(in srgb, var(--accent) 7%, #F1F5F9);
  --accent-text: var(--accent);
  --radius: 8px; --radius-card: 12px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font-head: "Manrope Variable", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3 Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --wrap: 1200px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F1F5F9; --text: #CBD5E1; --muted: #94A3B8; --surface: #0B1220; --panel: #111A2E; --line: #1E293B;
    --tint: color-mix(in srgb, var(--accent) 16%, #0F172A);
    --accent-text: var(--accent-dark);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--surface); color: var(--text); font: 400 1.0625rem/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a, button, summary, select, input, textarea { touch-action: manipulation; }
button, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 30; background: var(--panel); padding: 8px 12px; border-radius: var(--radius); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 28px; height: 28px; color: var(--accent-text); flex: none; }
.brand b { font: 800 1.08rem/1 var(--font-head); letter-spacing: -0.01em; }
.brand span { display: block; font: 500 .78rem/1.2 var(--font-body); color: var(--muted); margin-top: 3px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 8px 10px; border-radius: var(--radius); white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--accent-text); }
.lang { display: flex; align-items: center; }
.nav-toggle { display: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--tint); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font: 650 1rem/1 var(--font-head); padding: 13px 20px; border-radius: var(--radius);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 35%, transparent); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); }
  .btn-ghost:hover { border-color: var(--ink); }
}
.nav .btn-primary { margin-left: 8px; padding: 10px 16px; color: #fff; }
@media (hover: hover) and (pointer: fine) { .nav .btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, #000); } }

/* hero */
.hero { padding: 56px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--text); max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 28px; }
.hero-media img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
@media (prefers-color-scheme: dark) { .hero-media img, .tile-media img, .product-media img { mix-blend-mode: normal; background: #fff; border-radius: 8px; } }

section { padding: 64px 0; }
section.trust { padding: 0 0 40px; }
.trust-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 16px 32px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.trust-list svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
@media (max-width: 900px) { .trust-list { grid-template-columns: 1fr; } }
section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-intro { max-width: 68ch; margin-bottom: 32px; }
.eyebrow { font: 700 .78rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 12px; }

/* product lineup: explicit layouts for 2 / 4 / 5 tiles (no empty cells) */
.lineup { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile { grid-column: span 6; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.lineup.n2 .tile:nth-child(1) { grid-column: span 7; } .lineup.n2 .tile:nth-child(2) { grid-column: span 5; }
.lineup.n4 .tile:nth-child(1), .lineup.n4 .tile:nth-child(4) { grid-column: span 7; }
.lineup.n4 .tile:nth-child(2), .lineup.n4 .tile:nth-child(3) { grid-column: span 5; }
.lineup.n5 .tile { grid-column: span 3; }
.lineup.n5 .tile:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.lineup.n5 .tile:nth-child(1) .tile-media { aspect-ratio: auto; flex: 1; min-height: 280px; }
.tile-media { background: #fff; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.tile-media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tile-media.noimg { color: var(--accent-text); background: var(--tint); }
.tile-media.noimg svg { width: 56px; height: 56px; }
.tile-body { padding: 18px 20px 20px; }
.tile-body h3 { margin-bottom: .25em; }
.tile-body .kind { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font: 500 .82rem/1.2 var(--font-mono); background: var(--tint); color: var(--ink); padding: 6px 10px; border-radius: 999px; }
@media (hover: hover) and (pointer: fine) { .reveal.in .lineup .tile:hover { transition-delay: 0ms; } .tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); } }

/* capability groups */
.groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.group h3 { display: flex; align-items: center; gap: 10px; }
.group h3 svg { width: 22px; height: 22px; color: var(--accent-text); flex: none; }
.group ul { margin: 0; padding-left: 1.1em; }
.group li { margin: .35em 0; }

/* compliance */
.note-block { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; background: var(--tint); border-radius: var(--radius-card); padding: 28px; }
.note-block > svg { width: 32px; height: 32px; color: var(--accent-text); }
.note-block ul { margin: 0; padding-left: 1.1em; }
.note-block li { margin: .4em 0; }
.fine { color: var(--muted); font-size: .92rem; }

/* service two-col */
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }

/* faq */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font: 650 1.05rem/1.35 var(--font-head); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex: none; transition: transform 200ms var(--ease-out); color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; }

/* specs */
.spec-groups { display: grid; gap: 28px; }
.spec-group { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 22px 24px; }
.spec-group h3 { font-size: 1.05rem; margin-bottom: 14px; }
.spec-group dl { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 10px 24px; margin: 0; }
.spec-group dt { color: var(--muted); font-weight: 600; }
.spec-group dd { font-variant-numeric: tabular-nums; margin: 0; font-family: var(--font-mono); font-size: .93rem; color: var(--ink); overflow-wrap: anywhere; }

/* product page */
.crumbs { font-size: .92rem; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.product-top { padding: 28px 0 56px; }
.product-top .wrap { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: start; }
.product-media { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 32px; position: sticky; top: 92px; }
.product-media img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-media.noimg { background: var(--tint); }
.product-media.noimg svg { width: 72px; height: 72px; color: var(--accent-text); }
.feature-list { columns: 2; column-gap: 40px; padding-left: 1.1em; margin: 0; }
.feature-list li { break-inside: avoid; margin: 0 0 .6em; }
.compare { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; font-size: .97rem; }
.compare th, .compare td { text-align: left; padding: 12px 14px; vertical-align: top; }
.compare thead th { background: var(--tint); color: var(--ink); font-family: var(--font-head); }
.compare tbody tr + tr td, .compare tbody tr + tr th { border-top: 1px solid var(--line); }
.compare td { font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: .9rem; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* quote band + form */
.quote { background: var(--panel); border-top: 1px solid var(--line); }
.quote .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.contact-lines { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.contact-lines li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.contact-lines svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 3px; }
.contact-lines a { color: var(--ink); }
form.inquiry { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 650; color: var(--ink); font-size: .95rem; }
.field .req { color: var(--accent-text); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); border-radius: var(--radius); padding: 11px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.field .err { color: #B91C1C; font-size: .9rem; min-height: 1.2em; }
@media (prefers-color-scheme: dark) { .field [aria-invalid="true"] { border-color: #F87171; } .field .err { color: #FCA5A5; } }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-weight: 600; color: var(--ink); }
.hp { position: absolute; left: -9999px; }

/* page header */
.page-head { padding: 40px 0 8px; }
.page-head p { font-size: 1.15rem; }

/* footer */
.site-footer { background: var(--panel); border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h2 { font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); }

/* reveal (JS-gated). Full motion only without reduced-motion; reduced motion keeps an opacity fade. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out); }
  html.js .reveal.in { opacity: 1; transform: none; }
  html.js .reveal .lineup .tile { opacity: 0; transform: translateY(8px); transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), border-color 200ms ease; }
  html.js .reveal.in .lineup .tile { opacity: 1; transform: none; }
  html.js .reveal.in .lineup .tile:nth-child(2) { transition-delay: 50ms; }
  html.js .reveal.in .lineup .tile:nth-child(3) { transition-delay: 100ms; }
  html.js .reveal.in .lineup .tile:nth-child(4) { transition-delay: 150ms; }
  html.js .reveal.in .lineup .tile:nth-child(5) { transition-delay: 200ms; }
  html.js .hero-media img { animation: rise 360ms var(--ease-out) both 40ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.985); } }
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 0; transition: opacity 200ms ease; }
  html.js .reveal.in { opacity: 1; }
  .btn, .tile, .faq summary svg { transition: none; }
}

/* responsive */
@media (max-width: 1080px) { .nav a { padding: 8px 7px; font-size: .94rem; } .brand > span > span { display: none; } }
@media (max-width: 1080px) and (min-width: 768px) { .lineup.n5 .tile:nth-child(n) { grid-column: span 6; grid-row: auto; } .lineup.n5 .tile:nth-child(1) { grid-column: span 12; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--ink); }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 24px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; }
  .nav .btn-primary { margin: 8px 0 0; }
  .hero .wrap, .two-col, .quote .wrap, .product-top .wrap, .groups { grid-template-columns: 1fr; gap: 32px; }
  .product-media { position: static; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  section { padding: 48px 0; }
  .hero { padding: 32px 0 48px; }
  .lineup { grid-template-columns: 1fr; }
  .lineup .tile, .lineup.n2 .tile:nth-child(n), .lineup.n4 .tile:nth-child(n), .lineup.n5 .tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .lineup.n5 .tile:nth-child(1) .tile-media { min-height: 220px; }
  .feature-list { columns: 1; }
  .spec-group dl { grid-template-columns: 1fr; gap: 2px 0; }
  .spec-group dd { margin-bottom: 10px; }
  form.inquiry { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .note-block { grid-template-columns: 1fr; }
}
