/* ============================================================
   Целоформ — Design System
   ============================================================ */

:root {
  /* ---------- Color ---------- */
  --ink:           oklch(22% 0.04 245);
  --ink-2:         oklch(34% 0.05 245);
  --ink-3:         oklch(48% 0.04 245);
  --mute:          oklch(62% 0.02 245);
  --rule:          oklch(90% 0.008 245);
  --rule-strong:   oklch(82% 0.012 245);

  --paper:         oklch(98.5% 0.009 240);
  --paper-2:       oklch(96.6% 0.013 240);
  --paper-3:       oklch(94% 0.018 240);
  --white:         #ffffff;

  --signal:        oklch(56% 0.18 22);   /* crimson — military / hemostatic */
  --signal-soft:   oklch(94% 0.04 22);
  --sage:          oklch(58% 0.07 150);  /* veterinary */
  --sage-soft:     oklch(94% 0.03 150);
  --azure:         oklch(56% 0.105 195); /* link / accent — medical teal */
  --azure-ink:     oklch(45% 0.095 195); /* accessible teal for solid fills */
  --azure-deep:    oklch(36% 0.085 195); /* teal hover / pressed */
  --azure-soft:    oklch(94% 0.03 195);

  /* ---------- Type ---------- */
  --font-sans: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---------- Layout ---------- */
  --container: 1240px;
  --container-narrow: 880px;
  --radius: 8px;
  --radius-lg: 14px;
  --gutter: clamp(20px, 4vw, 48px);

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px oklch(22% 0.04 245 / 0.05);
  --shadow-md: 0 10px 34px -14px oklch(22% 0.04 245 / 0.20);
  --shadow-lg: 0 28px 70px -28px oklch(22% 0.04 245 / 0.28);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in oklab, var(--azure) 22%, transparent); color: var(--ink); }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
table { border-collapse: collapse; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* ============================================================
   Typography utilities
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 2px;
  border-radius: 2px;
  background: var(--azure);
  opacity: 0.9;
}
.eyebrow.no-rule::before { display: none; }

.display-1 { font-size: clamp(44px, 6vw, 88px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
.display-2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.display-3 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h-section { font-size: clamp(24px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.015em; }
.h-card    { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lead      { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--ink-2); }
.body-lg   { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.caption   { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.mono      { font-family: var(--font-mono); }

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(48px, 5.5vw, 80px) 0; }
.section--tight { padding: clamp(32px, 4vw, 56px) 0; }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .lead, .section--ink .caption { color: oklch(86% 0.01 245); }

.divider { height: 1px; background: var(--rule); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  border-bottom-color: transparent;
  box-shadow: 0 8px 30px -16px oklch(22% 0.04 245 / 0.25);
}
.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
}
.brand__mark {
  width: 32px; height: 28px;
  background: url("assets/logo.svg") center / contain no-repeat;
  flex-shrink: 0;
}
.site-footer .brand__mark {
  /* lighten the mark on the dark footer */
  filter: brightness(0) saturate(100%) invert(91%) sepia(7%) saturate(484%) hue-rotate(187deg) brightness(102%);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color 120ms ease, background 120ms ease;
}
.nav__link:hover { color: var(--azure-ink); background: var(--paper-2); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--azure);
}
.nav__dd { position: relative; }
.nav__dd-trigger { cursor: pointer; }
.nav__dd-trigger::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  margin-left: 8px;
  opacity: 0.6;
}
.nav__dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px -12px rgba(11, 27, 43, 0.18);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}
.nav__dd:hover .nav__dd-panel,
.nav__dd:focus-within .nav__dd-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav__dd-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.nav__dd-link:hover { background: var(--paper-2); color: var(--ink); }
.nav__dd-link .mono { font-size: 11px; color: var(--mute); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  transition: background 140ms ease, border-color 140ms ease;
}
.header-cta { cursor: default; white-space: nowrap; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: color 120ms ease, border-color 120ms ease;
}
.lang-switch:hover { color: var(--azure-ink); border-color: color-mix(in oklab, var(--azure) 45%, var(--rule-strong)); }
.lang-switch__sep { color: var(--mute); }
.lang-switch__active { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--rule-strong);
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 18px; height: 1.5px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

/* Mobile nav */
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__inner { gap: 12px; }

  body.nav-open .mobile-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
}
.mobile-nav {
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 40;
  transform: translateX(100%);
  transition: transform 220ms ease;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--rule);
}
.mobile-nav .mono { font-size: 11px; color: var(--mute); margin-top: 24px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 140ms var(--ease-out), background 140ms ease, color 140ms ease, border-color 140ms ease, box-shadow 200ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--azure-ink);
  color: #fff;
  box-shadow: 0 8px 24px -10px oklch(50% 0.12 245 / 0.55);
}
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -130%;
  width: 55%;
  z-index: 0;
  background: linear-gradient(100deg, transparent, oklch(100% 0 0 / 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-out);
  pointer-events: none;
}
.btn--primary:hover { background: var(--azure-deep); transform: translateY(-1px); box-shadow: 0 14px 34px -10px oklch(50% 0.12 245 / 0.6); }
.btn--primary:hover::after { left: 150%; }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--white); border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--signal {
  background: var(--signal);
  color: var(--paper);
}
.btn .arrow { transition: transform 140ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.arrow::before { content: "→"; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(48px, 5.5vw, 80px);
  position: relative;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero__copy { max-width: 720px; }
.hero__title { margin-top: 24px; }
.hero__subtitle { margin-top: 24px; max-width: 560px; }
.hero__strip {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  color: var(--ink-2);
  background: var(--white);
}
.chip--signal { color: var(--signal); border-color: color-mix(in oklab, var(--signal) 40%, var(--rule-strong)); }
.chip--sage   { color: var(--sage);   border-color: color-mix(in oklab, var(--sage)   40%, var(--rule-strong)); }
.hero__cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__visual {
  position: relative;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: -10% -8% -12% -8%;
  z-index: 0;
  background: radial-gradient(58% 56% at 58% 42%, var(--azure-soft), transparent 72%);
  filter: blur(10px);
  opacity: 0.85;
  pointer-events: none;
  transform-origin: 58% 42%;
  animation: hero-glow 9s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero__visual > * { position: relative; z-index: 1; }
.hero__visual .media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: hero-float 7s ease-in-out infinite;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Image placeholders
   ============================================================ */
.media {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--paper-2) 0 14px,
      var(--paper-3) 14px 15px
    );
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.media img { transition: transform 500ms var(--ease-out); }
.media--photo:hover img { transform: scale(1.03); }
.media--cover:hover img { transform: scale(1.05); }
.media__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  background: var(--paper);
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid var(--rule);
}
.media--wide { aspect-ratio: 16/9; }
.media--square { aspect-ratio: 1/1; }
.media--tall { aspect-ratio: 3/4; }
.media--portrait { aspect-ratio: 4/5; }

/* Real photo: clean off-white card so the bottle's natural white background blends in */
.media--photo {
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: var(--rule);
}
.media--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.media--photo.media--square img,
.media--photo.media--portrait img { padding: 6% 10%; }
.media--photo.media--wide img { padding: 4% 10%; }
.media--photo .media__label { display: none; }

/* Compact supporting photo inside an application section */
.app-sec__media { max-width: 340px; }

/* Full-bleed real photography that should fill the frame edge to edge */
.media--cover { background: var(--paper-3); padding: 0; }
.media--cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; padding: 0; }
.media--cover.media--square img,
.media--cover.media--portrait img,
.media--cover.media--wide img { padding: 0; }

/* ============================================================
   Cards & grids
   ============================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.card:hover { border-color: color-mix(in oklab, var(--azure) 35%, var(--rule-strong)); box-shadow: var(--shadow-md); }
.card--link { display: block; }
.card--link:hover { transform: translateY(-3px); border-color: var(--azure); box-shadow: var(--shadow-md); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Problem cards (homepage) */
.problem-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 240px;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.problem-card:hover { border-color: var(--azure); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.problem-card:hover .problem-card__arrow { color: var(--azure-ink); }
.problem-card__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mute);
}
.problem-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.problem-card__desc {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.problem-card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.problem-card__arrow::after { content: "→"; transition: transform 140ms ease; }
.problem-card:hover .problem-card__arrow::after { transform: translateX(4px); }

/* ============================================================
   How it works (3 steps)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
}
.step {
  padding: 36px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  position: relative;
}
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--signal);
}
.step__title { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.step__desc { color: var(--ink-3); font-size: 15px; line-height: 1.55; }
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--rule); }
  .step:last-child { border-bottom: 0; }
}

/* ============================================================
   Property list (8 properties)
   ============================================================ */
.props {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.prop {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.prop:nth-child(odd) { padding-right: 32px; border-right: 1px solid var(--rule); }
.prop:nth-child(even) { padding-left: 32px; }
.prop__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mute);
  padding-top: 4px;
}
.prop__title { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.prop__desc { color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }
@media (max-width: 720px) {
  .props { grid-template-columns: 1fr; }
  .prop:nth-child(odd), .prop:nth-child(even) { padding: 28px 0; border-right: 0; }
}

/* ============================================================
   ExpertQuote
   ============================================================ */
.quote {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
}
.quote__portrait {
  width: 96px; height: 96px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(135deg, var(--paper-2) 0 8px, var(--paper-3) 8px 9px);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  flex-shrink: 0;
}
.quote__body {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 400;
  text-wrap: pretty;
}
.quote__body::before { content: "« "; color: var(--mute); }
.quote__body::after { content: " »"; color: var(--mute); }
.quote__attr {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.quote__name { font-weight: 600; font-size: 14px; }
.quote__role { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 600px) {
  .quote { grid-template-columns: 1fr; }
}

/* ============================================================
   Social proof bar
   ============================================================ */
.proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.proof__item {
  padding: 32px 24px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof__item:last-child { border-right: 0; }
.proof__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.proof__label { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.proof__detail { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 1080px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof__item:nth-child(2n) { border-right: 0; }
}
@media (max-width: 880px) {
  .proof { grid-template-columns: 1fr; }
  .proof__item { border-right: 0; border-bottom: 1px solid var(--rule); }
  .proof__item:last-child { border-bottom: 0; }
}

/* ============================================================
   Comparison table
   ============================================================ */
.cmp {
  width: 100%;
  border-top: 1px solid var(--ink);
  font-size: 14.5px;
}
.cmp th, .cmp td {
  padding: 18px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.cmp th {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.005em;
  background: var(--paper-2);
  position: sticky;
  top: 72px;
}
.cmp th:first-child { width: 220px; }
.cmp th.is-us {
  background: var(--ink);
  color: var(--paper);
}
.cmp td.is-us { background: color-mix(in oklab, var(--ink) 4%, var(--white)); font-weight: 500; }
.cmp .yes { color: var(--signal); font-weight: 500; }
.cmp .no  { color: var(--sage); font-weight: 500; }
.cmp .mute-cell { color: var(--mute); }
.cmp tbody tr { transition: background 140ms ease; }
.cmp tbody tr:hover td { background: var(--paper-2); }
.cmp tbody tr:hover td.is-us { background: color-mix(in oklab, var(--ink) 8%, var(--white)); }

.cmp-wrap { overflow-x: auto; }

/* ============================================================
   Sticky TOC (primenenie)
   ============================================================ */
.toc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 1024px) { .toc-layout { grid-template-columns: 1fr; gap: 32px; } }
.toc {
  position: sticky;
  top: 96px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc__heading { color: var(--mute); margin-bottom: 16px; }
.toc a {
  padding: 10px 0 10px 16px;
  border-left: 1px solid var(--rule);
  color: var(--ink-3);
  transition: color 120ms ease, border-color 120ms ease;
}
.toc a:hover { color: var(--ink-2); background: color-mix(in oklab, var(--ink) 4%, transparent); }
.toc a.is-active {
  color: var(--azure-ink);
  border-left-color: var(--azure);
  border-left-width: 2px;
  padding-left: 15px;
}
@media (max-width: 1024px) {
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .toc a { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 999px; }
  .toc a.is-active { background: var(--azure-ink); color: var(--paper); border-color: var(--azure-ink); }
  .toc__heading { width: 100%; }
}

/* primenenie section */
.app-sec {
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 96px;
}
.app-sec:last-child { border-bottom: 0; }
.app-sec__head { margin-bottom: 40px; }
.app-sec__title { font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: -0.02em; }
.app-sec__sub { margin-top: 12px; max-width: 640px; color: var(--ink-2); font-size: 18px; }
.app-sec__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 880px) { .app-sec__grid { grid-template-columns: 1fr; } }

/* Inline condition pills — replaces 2-col lists in /primenenie */
.condition-chips {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.condition-chips li {
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-2);
  line-height: 1.3;
}

.warn {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--signal);
  background: var(--signal-soft);
  color: var(--ink);
  font-size: 14.5px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.warn strong { font-weight: 600; }

/* ============================================================
   Variants table (3 products)
   ============================================================ */
.variants {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .variants { grid-template-columns: 1fr; } }
.variant {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.variant:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.variant:hover .variant__swatch { transform: scale(1.12); }
.variant__swatch {
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  border-bottom-left-radius: 100%;
  transform-origin: top right;
  transition: transform 300ms var(--ease-out);
}
.variant--white .variant__swatch { background: var(--paper-3); }
.variant--red   .variant__swatch { background: var(--signal); }
.variant--green .variant__swatch { background: var(--sage); }
.variant__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); }
.variant__name { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.variant__row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--rule); }
.variant__row:last-of-type { border-bottom: 0; }
.variant__row dt { color: var(--mute); }
.variant__row dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

/* ============================================================
   Inline how-to-apply block (folded /instruktsiya into /primenenie)
   ============================================================ */
.howto {
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}
.howto > .eyebrow { display: inline-flex; }
.howto p {
  margin-top: 16px;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 680px;
}
.howto ol {
  list-style: none;
  counter-reset: howto;
  padding: 0;
  margin: 16px 0 0 0;
  display: grid;
  gap: 12px;
  max-width: 680px;
}
.howto ol li {
  counter-increment: howto;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.55;
}
.howto ol li::before {
  content: counter(howto) ".";
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  padding-top: 4px;
}
.howto__note {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--white);
  border-left: 3px solid var(--ink-3);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  border-radius: 0 6px 6px 0;
  max-width: 680px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: oklch(88% 0.008 245);
  padding: 80px 0 32px;
}
.site-footer a {
  color: oklch(86% 0.008 245);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 140ms ease, background-size 220ms var(--ease-out);
}
.site-footer a:hover { color: var(--paper); background-size: 100% 1px; }
.site-footer .brand { background-image: none; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(38% 0.04 245);
}
@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.site-footer__brand .brand { color: var(--paper); font-size: 22px; }
.site-footer__brand p { color: oklch(76% 0.012 245); font-size: 14px; line-height: 1.5; }
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(64% 0.02 245);
  margin-bottom: 16px;
  font-weight: 500;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col li { font-size: 14px; }
.site-footer__legal {
  padding-top: 32px;
  font-size: 12px;
  color: oklch(64% 0.02 245);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.site-footer__legal span::before { content: "·"; margin-right: 16px; opacity: 0.4; }
.site-footer__legal span:first-child::before { display: none; }

/* ============================================================
   Page header (non-home)
   ============================================================ */
.page-head {
  padding: clamp(48px, 6vw, 96px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.page-head__title { margin-top: 16px; max-width: 880px; }
.page-head__sub { margin-top: 20px; max-width: 640px; }

/* ============================================================
   Small utility
   ============================================================ */
.stack { display: flex; flex-direction: column; gap: var(--stack, 16px); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.hide-mobile { }
@media (max-width: 720px) { .hide-mobile { display: none; } }

/* ============================================================
   Accessibility & responsive fixes
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Scroll-reveal (class added by JS; never hides content without JS) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s var(--ease-out) var(--reveal-delay, 0ms),
    transform 0.65s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .wagner-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 400px) {
  .wagner-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

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