/* ==========================================================================
   Pepatico design system — prototype stylesheet
   Layout concept: white "pharmacy counter" surfaces on a cool-green ground,
   one accent (brand green), Telegram blue reserved for Telegram actions,
   mono for lab identifiers (lot, CAS, sequence).
   Palette A "Apoteka" is default; <html data-palette="b"> switches to
   Palette B "Klinička plava".
   ========================================================================== */
:root {
  --ink: #0F1F2E;
  --text: #1B2430;
  --muted: #5C6873;
  --brand: #1F6F4A;
  --brand-600: #1A5F3F;
  --brand-100: #E6F2EB;
  --brand-50: #F3F8F5;
  --accent: #8DB63C;
  --accent-100: #F0F6E3;
  --tg: #229ED9;
  --tg-600: #1B8BC0;
  --tg-100: #E7F5FC;
  --surface: #FFFFFF;
  --bg: #F6F8F7;
  --line: #DDE5E0;
  --line-strong: #C9D5CE;
  --warn: #B7791F;
  --warn-100: #FBF3E4;
  --danger: #B3261E;
  --radius: 14px;
  --radius-sm: 10px;
  --pill: 999px;
  --shadow: 0 10px 30px rgba(15, 31, 46, .08);
  --shadow-sm: 0 2px 8px rgba(15, 31, 46, .06);
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --container: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
:root[data-palette="b"] {
  --brand: #1849A9;
  --brand-600: #143E90;
  --brand-100: #E8EFFC;
  --brand-50: #F4F7FD;
  --accent: #28C7EF;
  --accent-100: #E3F7FC;
  --bg: #F7F9FC;
  --line: #D7E4F5;
  --line-strong: #BFD2EA;
  --tg: #1E7FB3;
  --tg-600: #196C98;
  --tg-100: #E5F3FA;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section { padding-block: 72px; }
.section.tight { padding-block: 48px; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; max-width: 60ch; color: var(--muted); }
@media (max-width: 760px) { .section { padding-block: 48px; } .section-head { margin-bottom: 24px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .grid-4 { grid-template-columns: 1fr; } }
.grid > * { min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--pill);
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: var(--tg-600); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--brand); padding-inline: 8px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- badges, chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--pill);
  font-size: 12px; font-weight: 600; line-height: 1.5;
  background: var(--brand-100); color: var(--brand-600);
}
.badge.accent { background: var(--accent-100); color: #4F6B13; }
.badge.warn { background: var(--warn-100); color: var(--warn); }
.badge.tg { background: var(--tg-100); color: var(--tg-600); }
.badge.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text);
}
.chip svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px;
}
.card.pad-lg { padding: 28px; }
.tile {
  background: var(--brand-50); border-radius: var(--radius);
}

/* ---------- prototype ribbon & palette switch ---------- */
.proto-ribbon {
  background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 6px 12px;
}
.proto-ribbon b { color: var(--accent); }
.palette-switch {
  position: fixed; left: calc(12px + env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px;
  background: var(--ink); color: #fff; border-radius: var(--pill); font-size: 12px; box-shadow: var(--shadow);
}
.palette-switch button {
  border: 0; border-radius: var(--pill); padding: 5px 10px; font: 600 12px var(--font-body);
  background: transparent; color: #fff; cursor: pointer;
}
.palette-switch button[aria-pressed="true"] { background: #fff; color: var(--ink); }

/* ---------- header ---------- */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a { color: var(--text); text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--brand); }
.topbar .right { display: flex; gap: 18px; }
@media (max-width: 760px) { .topbar .right { display: none; } .topbar .container { justify-content: center; } }

.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .02em; }
.logo .mark { width: 30px; height: 30px; }
.logo sup { font-size: 9px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-600); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--brand-50); }
.icon-btn svg { width: 20px; height: 20px; }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header .container { gap: 12px; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 0 14px; }
}
.mobile-nav { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav .container { display: grid; gap: 4px; padding-block: 10px; }
.mobile-nav a { padding: 12px 10px; text-decoration: none; color: var(--text); font-weight: 500; border-radius: 8px; }
.mobile-nav a:hover { background: var(--brand-50); }

/* ---------- hero ---------- */
.hero { padding-block: 56px 48px; background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.hero-visual { position: relative; }
.hero-visual .tile { aspect-ratio: 1 / 1; max-width: 520px; margin-inline: auto; display: grid; place-items: center; padding: 8%; background: radial-gradient(120% 90% at 50% 100%, var(--brand-100) 0%, var(--brand-50) 60%, var(--surface) 100%); border: 1px solid var(--line); }
.hero-visual img { width: 78%; filter: drop-shadow(0 24px 30px rgba(15,31,46,.18)); }
.float-card {
  position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 14px; font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.float-card svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.float-card b { display: block; font-size: 13px; color: var(--ink); }
.float-card .mono { color: var(--muted); font-size: 12px; }
.float-card.tl { top: 8%; left: -4%; }
.float-card.br { bottom: 8%; right: -4%; }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual .tile { max-width: 380px; }
  .float-card.tl { left: 0; } .float-card.br { right: 0; }
}

.trust-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding-block: 18px; }
.trust-strip .chip { justify-content: center; font-weight: 500; padding: 10px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
@media (max-width: 960px) { .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trust-strip .chip { justify-content: flex-start; } }

/* ---------- category tiles ---------- */
.cat-tile { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .15s, box-shadow .15s; min-height: 100%; }
.cat-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); color: var(--ink); }
.cat-tile svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 12px; }
.cat-tile b { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 4px; }
.cat-tile span { font-size: 13px; color: var(--muted); }

/* ---------- product cards ---------- */
.product-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.product-card .media { background: var(--brand-50); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 14%; position: relative; }
.product-card .media img { width: 100%; filter: drop-shadow(0 12px 16px rgba(15,31,46,.14)); transition: transform .25s; }
.product-card:hover .media img { transform: translateY(-4px) scale(1.02); }
.product-card .media .badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.product-card .cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.product-card h3 { margin: 0; font-size: 18px; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card .strengths { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card .strengths span { font-size: 12px; padding: 2px 8px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--muted); }
.product-card .price { font-family: var(--font-head); font-size: 18px; font-weight: 800; color: var(--ink); }
.product-card .price small { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--muted); }
.product-card .kit { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.product-card .kit svg { width: 16px; height: 16px; color: var(--brand); }
.product-card .actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }

/* ---------- kit section ---------- */
.kit-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kit-items { display: grid; gap: 14px; }
.kit-item { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.kit-item .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-100); display: grid; place-items: center; flex: none; color: var(--brand); }
.kit-item .ico svg { width: 22px; height: 22px; }
.kit-item b { display: block; color: var(--ink); }
.kit-item span { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .kit-grid { grid-template-columns: 1fr; } }

/* ---------- CoA demo ---------- */
.coa-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.coa-demo .stamp { position: absolute; top: 14px; right: 14px; }
.coa-demo header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.coa-demo header b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.coa-demo table { width: 100%; border-collapse: collapse; font-size: 14px; }
.coa-demo td { padding: 7px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.coa-demo td:first-child { color: var(--muted); width: 42%; }
.coa-demo tr:last-child td { border-bottom: 0; }
.coa-demo .qr { width: 64px; height: 64px; background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px), repeating-linear-gradient(0deg, var(--ink) 0 4px, transparent 4px 8px); background-blend-mode: multiply; opacity: .85; border-radius: 4px; flex: none; }
.mini-cards { display: grid; gap: 12px; }
.mini-card { display: flex; gap: 12px; align-items: flex-start; }
.mini-card .n { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-100); color: var(--brand-600); display: grid; place-items: center; font: 700 13px var(--font-head); flex: none; }
.mini-card b { display: block; color: var(--ink); }
.mini-card span { font-size: 14px; color: var(--muted); }

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-head); background: var(--ink); color: #fff; flex: none; margin-top: 2px; }
.step b { display: block; color: var(--ink); }
.step span { font-size: 14px; color: var(--muted); }
.order-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.order-col.tg { border-color: var(--tg); border-width: 2px; }
.order-col h3 { display: flex; align-items: center; gap: 10px; }
.order-col h3 svg { width: 22px; height: 22px; color: var(--tg); }

/* ---------- telegram cards ---------- */
.tg-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; }
.tg-card .head { display: flex; align-items: center; gap: 12px; }
.tg-card .head .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--tg-100); color: var(--tg); display: grid; place-items: center; }
.tg-card .head .ico svg { width: 24px; height: 24px; }
.tg-card .head b { display: block; font-family: var(--font-head); font-size: 17px; color: var(--ink); }
.tg-card .head span { font-size: 13px; color: var(--muted); }
.tg-card ul { margin: 0; padding-left: 18px; color: var(--text); font-size: 15px; }
.tg-card li { margin-bottom: 4px; }
.tg-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- promo banner ---------- */
.promo { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.promo h3 { color: #fff; margin: 0 0 6px; }
.promo p { margin: 0; color: rgba(255,255,255,.78); }
.promo code { font-family: var(--font-mono); background: rgba(255,255,255,.12); padding: 4px 10px; border-radius: 6px; color: #fff; font-size: 15px; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* ---------- article cards ---------- */
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.article-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.article-card h3 { font-size: 17px; margin: 0; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a:hover { color: var(--brand); }
.article-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-head); font-size: 20px; color: var(--brand); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; margin: 0; color: var(--text); }

/* ---------- RUO & footer ---------- */
.ruo { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--text); }
.ruo svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 48px 24px; margin-top: 24px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { font-size: 14px; margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer a { color: var(--text); text-decoration: none; font-size: 14px; }
.footer a:hover { color: var(--brand); }
.footer .bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer .cols { grid-template-columns: 1fr; } }

/* ---------- breadcrumbs ---------- */
.crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; padding-block: 16px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }

/* ---------- product detail page (pdp) ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding-bottom: 40px; }
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; gap: 24px; } }
.pdp-gallery { display: grid; gap: 12px; }
.pdp-gallery .main { aspect-ratio: 1 / 1; border: 1px solid var(--line); display: grid; place-items: center; padding: 10%; background: radial-gradient(120% 90% at 50% 100%, var(--brand-100) 0%, var(--brand-50) 60%, var(--surface) 100%); }
.pdp-gallery .main img { width: 72%; filter: drop-shadow(0 24px 30px rgba(15,31,46,.18)); }
.pdp-gallery .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pdp-gallery .thumbs button { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-sm); display: grid; place-items: center; padding: 10px; cursor: pointer; font-size: 12px; color: var(--muted); text-align: center; }
.pdp-gallery .thumbs button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.pdp-gallery .thumbs img { width: 70%; }
.pdp-buy { display: grid; gap: 16px; }
.pdp-buy .title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pdp-buy h1 { margin: 0 0 6px; font-size: clamp(30px, 3.4vw, 40px); }
.pdp-buy .alias { color: var(--muted); font-size: 14px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.selector label, .selector .lbl { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .seg .opt {
  min-height: 40px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface);
  font: 500 14px var(--font-body); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.seg button:hover { border-color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg button .sub { font-size: 12px; opacity: .75; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 14px; }
.price-row .price { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--ink); }
.price-row .incl { font-size: 14px; color: var(--muted); }
.bundle-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bundle-tiles button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; cursor: pointer; display: grid; gap: 2px; font-family: var(--font-body); }
.bundle-tiles button b { font-size: 14px; color: var(--ink); }
.bundle-tiles button span { font-size: 12px; color: var(--brand-600); font-weight: 600; }
.bundle-tiles button small { font-size: 11px; color: var(--muted); }
.bundle-tiles button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-50); }
@media (max-width: 480px) { .bundle-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: stretch; }
@media (max-width: 560px) { .buy-row { grid-template-columns: 1fr 1fr; } .buy-row .qty { grid-column: 1 / -1; width: 100%; } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--pill); height: 48px; overflow: hidden; }
.qty button { width: 44px; height: 100%; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--ink); }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.kit-box { background: var(--brand-50); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.kit-box b { display: flex; align-items: center; gap: 8px; color: var(--ink); margin-bottom: 8px; }
.kit-box b svg { width: 18px; height: 18px; color: var(--brand); }
.kit-box ul { margin: 0; padding-left: 18px; font-size: 14px; }
.kit-box .note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.cold-note { display: none; font-size: 13px; color: var(--warn); background: var(--warn-100); border-radius: var(--radius-sm); padding: 10px 12px; }
.cold-note[data-show="true"] { display: block; }

/* tabs */
.tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 76px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.tabs .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs .container::-webkit-scrollbar { display: none; }
.tabs a { white-space: nowrap; padding: 14px 14px 12px; font-weight: 600; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="true"] { color: var(--brand-600); border-bottom-color: var(--brand); }
.pdp-section { padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: 140px; }
.pdp-section:last-of-type { border-bottom: 0; }
.pdp-section .inner { display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.pdp-section .inner > aside h2 { font-size: 22px; position: sticky; top: 150px; }
.pdp-section .inner > div { max-width: 72ch; min-width: 0; }
@media (max-width: 960px) { .pdp-section .inner { grid-template-columns: 1fr; gap: 12px; } .pdp-section .inner > aside h2 { position: static; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 500; color: var(--muted); }
.spec-table tr:nth-child(odd) td, .spec-table tr:nth-child(odd) th { background: rgba(15,31,46,.025); }
.table-wrap { overflow-x: auto; }
.coa-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.coa-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 14px; }
.coa-card dt { color: var(--muted); }
.coa-card dd { margin: 0; color: var(--ink); font-weight: 500; }
@media (max-width: 560px) { .coa-card { grid-template-columns: 1fr; } }
.refs { padding-left: 20px; font-size: 14px; color: var(--text); }
.refs li { margin-bottom: 8px; }
.sticky-buy { display: none; }
@media (max-width: 760px) {
  .sticky-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--surface); border-top: 1px solid var(--line); padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l); }
  .sticky-buy .p { font-family: var(--font-head); font-weight: 800; font-size: 16px; }
  body.has-sticky { padding-bottom: 76px; }
  .palette-switch { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- calculator ---------- */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.calc .calc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.calc .calc-head b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { padding: 20px; display: grid; gap: 18px; border-right: 1px solid var(--line); }
@media (max-width: 860px) { .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
.calc-inputs .field label, .calc-inputs .field .lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.calc-inputs .custom { display: inline-flex; align-items: center; gap: 6px; }
.calc-inputs input[type="number"], .calc-inputs select { height: 40px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 10px; font: 500 14px var(--font-body); color: var(--text); background: var(--surface); width: 110px; }
.calc-inputs select { width: auto; max-width: 100%; }
.calc-result { padding: 20px; background: var(--brand-50); display: grid; gap: 14px; align-content: start; }
.calc-result .headline { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.calc-result .headline em { font-style: normal; color: var(--brand-600); }
.calc-result dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-result .ruler { width: 100%; height: auto; display: block; }
.calc-result .warn { font-size: 13px; color: var(--warn); background: var(--warn-100); padding: 8px 10px; border-radius: 8px; display: none; }
.calc-result .warn[data-show="true"] { display: block; }
.calc-result .foot { font-size: 12px; color: var(--muted); }
.calc.compact .calc-grid { grid-template-columns: 1fr; }
.calc.compact .calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }

/* ---------- utilities ---------- */
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.spread { justify-content: space-between; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
