:root {
  color-scheme: light;
  --bg: #f9fcff;
  --panel: #fff;
  --surface: #edf5fc;
  --line: #d6e4f0;
  --control-line: #7d91a7;
  --text: #183249;
  --muted: #476078;
  --heading: #142d47;
  --accent: #225891;
  --accent-line: #6d9cc5;
  --focus: #2564a4;
  --primary-bg: #1d4c82;
  --primary-text: #fff;
  --primary-hover: #173c67;
  --outline-bg: var(--panel);
  --outline-hover: #e3effa;
  --sans: "Inter", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); }
body:has(dialog[open]) { overflow: hidden; }
::selection { background: #c9e0f5; color: var(--heading); }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: .23em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, .brand { font-family: var(--serif); font-weight: 500; }
h2 { color: var(--heading); font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.wrap { width: min(1220px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus), .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 4; top: 10px; left: 12px; padding: 10px 14px; background: var(--bg); }
.icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ruo-banner { padding: 7px 16px; text-align: center; color: var(--heading); background: var(--surface); font-weight: 700; font-size: .82rem; }
.site-header { border-block: 1px solid var(--line); background: var(--panel); }
.nav { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--heading); font-size: clamp(1.3rem, 2.25vw, 1.9rem); line-height: 1.02; letter-spacing: -.045em; }
.brand img { flex: 0 0 auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: clamp(15px, 2.4vw, 34px); }
nav a { color: var(--text); font-size: .87rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
nav a:hover, .inline-button:hover { color: var(--heading); text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; display: inline-grid; place-items: center; min-width: 40px; min-height: 42px; padding: 5px; background: transparent; color: var(--text); border: 1px solid transparent; border-radius: 6px; }
.icon-button:hover { color: var(--heading); border-color: var(--line); }
.bag > span { position: absolute; top: -1px; right: -3px; background: var(--accent); color: var(--panel); border-radius: 999px; padding: 0 5px; font-size: .7rem; font-weight: 800; line-height: 17px; min-width: 17px; }
.mobile-toggle { display: none; }
.hero { overflow: clip; isolation: isolate; background: linear-gradient(110deg, #f3f8fe 10%, #e8f3fc 64%, #e5f0fb); border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 464px; position: relative; display: grid; align-items: center; }
.hero-photo { position: absolute; z-index: -1; inset: 0 min(-40px, calc((1220px - 100vw) / 2)) 0 39%; background: url("../img/hero.webp") center 49% / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 35%); }
.hero-copy { max-width: 560px; padding-block: 48px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .15em; }
.eyebrow span { height: 1px; width: 23px; background: var(--accent-line); }
.hero h1 { margin: 17px 0 18px; color: var(--heading); font-size: clamp(3rem, 5.5vw, 5.4rem); line-height: .99; letter-spacing: -.057em; }
.hero h1 span { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { font-size: clamp(1rem, 1.8vw, 1.19rem); color: var(--muted); max-width: 390px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 25px; }
.button { min-height: 43px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; border-radius: 5px; padding: 9px 17px; font-weight: 700; text-decoration: none; border: 1px solid transparent; text-align: center; }
.button .icon, .text-link .icon { width: 17px; height: 17px; }
.primary { background: var(--primary-bg); color: var(--primary-text); }
.primary:hover { background: var(--primary-hover); }
.outline { color: var(--heading); border-color: var(--control-line); background: var(--outline-bg); }
.outline:hover { background: var(--outline-hover); }
.wide { width: 100%; }
.standards { background: var(--surface); border-bottom: 1px solid var(--line); }
.standards-grid { display: grid; grid-template-columns: 1.55fr repeat(4, 1fr); align-items: stretch; padding-block: 24px; }
.standards-intro { padding-right: 22px; }
.standards-intro h2 { font-size: clamp(1.65rem, 2.65vw, 2.3rem); margin-bottom: 9px; }
.standards p, .section-heading p, .coa-layout > div:first-child > p:last-child, .process p, .signup-box p, .faq-layout details p { color: var(--muted); }
.standards-intro p { max-width: 260px; font-size: .88rem; }
.method { text-align: center; border-left: 1px solid var(--line); padding: 4px 12px; }
.method .icon { width: 31px; height: 31px; color: var(--accent); }
.method h3 { color: var(--heading); margin: 3px 0 2px; font: 600 1.15rem var(--serif); }
.method p { font-size: .78rem; line-height: 1.35; }
.section { padding-block: 42px; scroll-margin-top: 14px; }
.bordered { border-block: 1px solid var(--line); background: var(--surface); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.section-heading p { margin-top: 8px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.catalog-controls { display: flex; gap: 10px; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--control-line); border-radius: 5px; padding-left: 12px; background: var(--panel); flex: 1; min-width: 0; }
.search:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.search .icon { width: 19px; height: 19px; color: var(--accent); }
input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; width: 100%; padding: 8px 11px; color: var(--text); background: var(--panel); border: 1px solid var(--control-line); border-radius: 5px; }
.search input[type=search] { border: 0; background: transparent; padding-left: 0; }
.search input[type=search]:focus-visible { outline: none; }
input::placeholder { color: var(--muted); opacity: 1; }
select { width: auto; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.product-photo { aspect-ratio: 1.57; border: 0; border-bottom: 1px solid var(--line); width: 100%; display: block; padding: 0; background: var(--surface); position: relative; overflow: hidden; }
.product-photo img { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform .25s ease; }
.product-photo:hover img { transform: scale(1.04); }
.product-photo:focus-visible { outline-offset: -4px; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 15px; }
.product-title { border: 0; padding: 0; text-align: left; background: transparent; color: var(--heading); font: 500 1.55rem/1.15 var(--serif); }
.product-title:hover { text-decoration: underline; text-underline-offset: .15em; }
.product-meta { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.lot { font: 500 .78rem/1.5 ui-monospace, monospace; color: var(--muted); }
.product-body .lot { margin-top: 6px; }
.stock { padding: 2px 7px; border-radius: 999px; background: #edf1f6; color: #46596d; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.stock.in-stock { color: #36523a; background: #eaf0e8; }
.card-price { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 5px 8px; margin-top: 11px; }
.card-price strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.card-actions { display: grid; margin-top: auto; padding-top: 12px; gap: 7px; }
.card-actions .button { min-height: 42px; padding: 5px 9px; font-size: .86rem; }
.inline-button { border: 0; padding: 2px 0; background: transparent; text-align: left; color: var(--accent); text-underline-offset: .23em; }
.card-actions .inline-button { justify-self: start; display: flex; align-items: center; gap: 6px; font-size: .81rem; }
.card-actions .icon { width: 16px; height: 16px; }
.empty { color: var(--muted); grid-column: 1 / -1; border: 1px dashed var(--line); padding: 20px; border-radius: 6px; }
.coa-layout { display: grid; grid-template-columns: .8fr 1.4fr; gap: 48px; align-items: start; }
.coa-layout h2 { margin: 10px 0; }
.coa-layout > div:first-child > p:last-child { max-width: 380px; }
.coa-browser { padding: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.coa-browser .search { margin-bottom: 6px; }
.coa-row { display: grid; grid-template-columns: minmax(6ch, .65fr) minmax(14ch, 1fr) auto; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.coa-row:last-child { border-bottom: 0; }
.coa-row .inline-button { font-size: .82rem; }
.process-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; counter-reset: stage; }
.process-grid li { min-height: 115px; padding: 13px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); counter-increment: stage; }
.process-grid li::before { content: counter(stage, decimal-leading-zero); display: block; color: var(--accent); font: .76rem/1.2 ui-monospace, monospace; margin-bottom: 7px; }
.process-grid h3 { font-size: .92rem; color: var(--heading); }
.process-grid p { font-size: .78rem; line-height: 1.35; margin-top: 4px; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1.32fr) 1fr; align-items: center; gap: 38px; }
.faq-layout h2 { margin-bottom: 15px; }
details { margin-block: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
summary { cursor: pointer; list-style: none; padding: 9px 36px 9px 12px; position: relative; font-size: .92rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 12px; top: 5px; font-size: 1.2rem; color: var(--accent); }
details[open] summary::after { content: "−"; }
details p { padding: 0 12px 11px; font-size: .87rem; }
.faq-art { height: 100%; min-height: 220px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel) url("../img/ribbon.webp") center / cover no-repeat; }
.signup-wrap { margin-block: 26px; }
.signup-box { border: 1px solid var(--accent-line); border-radius: 8px; padding: 21px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px; align-items: start; background: var(--panel); }
.signup-intro { display: flex; gap: 15px; align-items: center; }
.signup-intro > .icon { color: var(--accent); width: 35px; height: 35px; }
.signup-box h2 { font-size: 1.95rem; margin-bottom: 4px; }
.signup-box p { font-size: .88rem; }
.signup-box .form-status { color: var(--accent); }
.signup-input { display: flex; gap: 8px; }
.signup-box .check { margin-top: 8px; font-size: .83rem; }
.signup-box .small { font-size: .76rem; margin-top: 4px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr .85fr 1.6fr; gap: 20px; align-items: start; }
.footer-grid > div { border-left: 1px solid var(--line); padding-left: 17px; }
.footer-grid h2 { font: 700 .94rem/1.2 var(--sans); letter-spacing: 0; color: var(--heading); margin-bottom: 7px; }
.footer-grid p, .footer-grid li, .footer-bottom { font-size: .8rem; }
.footer-grid ul { padding: 0; margin: 0; list-style: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 15px; margin-top: 20px; border-top: 1px solid var(--line); padding-block: 10px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
dialog { color: var(--text); background: var(--panel); border: 1px solid var(--control-line); border-radius: 9px; padding: 0; box-shadow: 0 20px 65px #142d4733; }
dialog::backdrop { background: #17334f66; }
.gate { width: min(460px, calc(100% - 30px)); }
.gate::backdrop { backdrop-filter: blur(7px); }
.gate-content { padding: 30px; }
.gate .eyebrow { margin-top: 10px; }
.gate h2 { margin-block: 8px; }
.gate form { margin-top: 19px; }
.gate .check { margin-bottom: 12px; }
.gate-decline { display: block; text-align: center; margin: 11px auto 0; font-size: .86rem; }
#gate-denied { margin-top: 17px; }
.check { display: flex; align-items: flex-start; gap: 9px; }
.check input, input[type=radio] { margin: .27em 0 0; flex: 0 0 auto; accent-color: var(--accent); width: 15px; height: 15px; }
.check span { min-width: 0; }
.panel { width: min(600px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.panel.drawer { width: min(487px, 100%); max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; border-radius: 0; border-width: 0 0 0 1px; }
.panel-header { position: sticky; z-index: 1; top: 0; padding: 15px 21px; display: flex; align-items: center; justify-content: space-between; gap: 15px; background: var(--panel); border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: clamp(1.65rem, 5vw, 2.1rem); }
.panel-content { padding: 20px 21px 25px; }
.panel-content > * + * { margin-top: 13px; }
.panel-content h3 { color: var(--heading); font-weight: 650; }
.panel-content .actions { margin-top: 17px; }
.panel-content .product-photo { border-radius: 6px; height: 210px; aspect-ratio: auto; }
.panel-content .product-photo img { object-fit: contain; }
.panel-content .form-stack { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; font-size: .91rem; font-weight: 650; }
.field input, .field select { font-weight: 400; }
.field > select { width: 100%; }
.detail-grid, .totals { margin: 0; }
.detail-grid div, .totals div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.detail-grid dt, .totals dt { color: var(--muted); }
.detail-grid dd, .totals dd { margin: 0; text-align: right; }
.cart-items, .report-methods { list-style: none; padding: 0; margin-bottom: 0; }
.cart-line { display: grid; gap: 9px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cart-line > div { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.cart-line .line-name { display: grid; gap: 1px; }
.quantity { display: inline-flex; align-items: center; gap: 10px; }
.quantity button { min-width: 34px; min-height: 34px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.cart-upgrade, .notice { padding: 11px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; }
.cart-upgrade { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.cart-upgrade .button { min-height: 34px; padding: 4px 10px; }
.progress { width: 100%; height: 8px; display: block; border: none; border-radius: 5px; overflow: hidden; accent-color: var(--accent); margin-top: 6px; }
.progress::-webkit-progress-bar { background: var(--line); }
.progress::-webkit-progress-value { background: var(--accent); }
.progress::-moz-progress-bar { background: var(--accent); }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 5px; display: grid; gap: 8px; padding: 8px 11px 11px; margin: 0; }
legend { padding-inline: 5px; }
.policy-list { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.policy-list .inline-button { font-size: .85rem; }
.form-status { color: var(--accent); margin-top: 5px; }
.toast { position: fixed; bottom: 18px; right: 18px; z-index: 2; width: min(355px, calc(100% - 36px)); padding: 11px 16px; background: var(--surface); color: var(--heading); border: 1px solid var(--accent-line); border-radius: 6px; }
@media (max-width: 980px) {
  .wrap { width: calc(100% - 46px); }
  .hero-inner { min-height: 405px; }
  .hero-photo { right: -23px; }
  .nav { gap: 12px; }
  nav { gap: 14px; }
  .nav-actions { gap: 2px; }
  .product-body { padding: 12px; }
  .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; justify-content: initial; gap: 4px; min-height: 62px; }
  .nav .brand { margin-right: auto; }
  .nav .brand img { width: 33px; height: 37px; }
  .mobile-toggle { display: inline-grid; }
  nav { display: none; order: 4; flex-basis: 100%; flex-wrap: wrap; padding: 6px 0 13px; }
  nav[data-open] { display: flex; }
  .hero-inner { min-height: auto; align-items: start; }
  .hero-photo { inset: 0 -16px auto; height: 255px; mask-image: linear-gradient(180deg, #000 65%, transparent 100%); background-position: center 48%; }
  .hero-copy { padding: 224px 0 27px; }
  .hero h1 { font-size: clamp(2.85rem, 9vw, 4.15rem); margin-block: 10px 13px; }
  .hero-copy > p:not(.eyebrow) { font-size: 1rem; }
  .hero .actions { margin-top: 17px; }
  .standards-grid { grid-template-columns: repeat(4, 1fr); gap: 13px 0; padding-block: 17px; }
  .standards-intro { grid-column: 1 / -1; }
  .standards-intro p { max-width: 100%; }
  .method:nth-child(2) { border-left: 0; }
  .method { padding: 3px 5px; }
  .method .icon { width: 25px; height: 25px; }
  .method h3 { font-size: .98rem; }
  .method p { font-size: .69rem; }
  .section { padding-block: 31px; }
  .section-heading { align-items: start; flex-direction: column; }
  .catalog-heading .text-link { font-size: .84rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .coa-layout, .faq-layout { grid-template-columns: 1fr; gap: 17px; }
  .faq-art { display: none; }
  .signup-box { grid-template-columns: 1fr; gap: 13px; padding: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 390px) {
  .nav .brand { font-size: 1.23rem; gap: 7px; }
  .nav .icon-button { min-width: 34px; }
  .catalog-controls { flex-wrap: wrap; }
  .catalog-controls .search { flex-basis: 100%; }
  .product-title { font-size: 1.31rem; }
  .product-body { padding: 9px; }
  .coa-browser { padding: 11px; }
  .coa-row { font-size: .84rem; gap: 4px; }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-input { flex-wrap: wrap; }
  .footer-grid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.featured-photo { background: #e4eff9; aspect-ratio: 1.4; }
.featured-photo img { object-fit: contain; }
.product-title { text-decoration: none; }

.storefront-hero .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; }
.hero-vials { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 29px 0; min-width: 0; }
.hero-vial { width: 29%; max-width: 186px; transition: transform .2s ease; }
.hero-vial-main { width: 34%; max-width: 219px; }
.hero-vial:hover { transform: translateY(-4px); }
.hero-vial img { display: block; width: 100%; height: auto; border-radius: 9px; box-shadow: 0 10px 27px #142d4730; }
@media (max-width: 760px) {
  .storefront-hero .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .storefront-hero .hero-copy { padding-block: 32px 8px; }
  .hero-vials { justify-content: center; padding-block: 15px 28px; }
  .hero-vial { width: 24%; max-width: 136px; }
  .hero-vial-main { width: 29%; max-width: 155px; }
}
@media (prefers-reduced-motion: reduce) { .hero-vial { transition: none; } }
