/* ============================================================
   Smells Like — «Спектр» redesign (pilot: home)
   Self-contained design system. Fonts: Syne / Space Grotesk / Space Mono.
   CSP-safe: all styling lives here (no inline style attributes in HTML).
   ============================================================ */

:root {
  color-scheme: light;

  --paper: oklch(97.8% 0.007 88);
  --paper-card: oklch(99.2% 0.004 90);
  --paper-footer: oklch(94.5% 0.013 84);
  --ink: oklch(24% 0.02 55);
  --ink-soft: oklch(40% 0.02 55);
  --muted: oklch(50% 0.02 55);
  --line: oklch(90% 0.012 80);
  --line-strong: oklch(82% 0.02 70);

  /* Accent darkened from the mockup's oklch(60% 0.2 32) so accent text and
     white-on-red buttons clear WCAG AA (verified ~5:1 / ~4.6:1). */
  --accent: oklch(51% 0.2 33);
  --accent-ink: oklch(98% 0.01 80);
  --dot-1: oklch(56% 0.18 38);
  --dot-2: oklch(62% 0.16 40 / 0.6);
  --dot-3: oklch(68% 0.14 42 / 0.4);
  --dark-btn: oklch(28% 0.02 55);
  --focus: oklch(45% 0.16 250);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius-card: 16px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --line-footer: oklch(89% 0.014 78);
  --paper-tint: var(--paper-tint);
  --shadow-card: 0 18px 40px oklch(25% 0.03 55 / 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Masthead / nav ───────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: oklch(97.8% 0.007 88 / 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: 15px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.brand__dots { display: inline-flex; align-items: center; gap: 4px; }
.brand__dots i { display: block; border-radius: 50%; }
.brand__dots i:nth-child(1) { width: 8px; height: 8px; background: var(--dot-1); }
.brand__dots i:nth-child(2) { width: 6px; height: 6px; background: var(--dot-2); }
.brand__dots i:nth-child(3) { width: 4px; height: 4px; background: var(--dot-3); }

.masthead__nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 30px); font-weight: 500; font-size: 14px; }
.masthead__nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; transition: color 0.2s; }
.masthead__nav a:hover { color: var(--accent); }
.masthead__nav a[aria-current="page"] { color: var(--accent); }

.menu-button {
  display: none; appearance: none; border: none; background: transparent; cursor: pointer;
  width: 42px; height: 42px; padding: 0;
}
.menu-button__bars { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-button__bars i { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s, opacity 0.2s; }
.menu-button[aria-expanded="true"] .menu-button__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] .menu-button__bars i:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] .menu-button__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; padding: 0 var(--gutter) 8px; }
.mobile-nav a {
  display: block; padding: 15px 0; text-decoration: none;
  border-top: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
}

/* ── Layout shell ─────────────────────────────────────────── */
main { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Home section rhythm (scoped so it doesn't leak into article-shell pages) */
main:not(.article-shell) > section { padding-block: clamp(40px, 6vw, 64px); }
main:not(.article-shell) > section + section { border-top: 1px solid var(--line); }

.section-head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: baseline; justify-content: space-between; margin-bottom: 28px;
}
.section-head h2 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.02; margin-bottom: 6px; }
.section-head p { margin: 0; font-size: 16px; color: var(--ink-soft); }
.section-head__link { font-weight: 600; font-size: 14px; color: var(--accent); text-decoration: none; white-space: nowrap; }
.section-head__link:hover { text-decoration: underline; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding-block: clamp(52px, 9vw, 100px) clamp(36px, 5vw, 56px); border-top: none; }
.hero__eyebrow {
  margin: 0 0 22px; font-family: var(--font-mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.hero__title { font-size: clamp(46px, 9vw, 112px); line-height: 0.92; letter-spacing: -0.03em; }
.hero__lead { max-width: 540px; margin: 26px 0 32px; font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); }

.search { max-width: 560px; }
.search__control {
  display: flex; gap: 10px; flex-wrap: wrap;
  background: oklch(99.5% 0.004 90); border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill); padding: 7px 7px 7px 22px;
}
.search__control input {
  flex: 1; min-width: 180px; border: none; background: transparent; outline: none;
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
}
.search__control button {
  appearance: none; border: none; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 15px 30px; border-radius: var(--radius-pill); transition: filter 0.2s;
}
.search__control button:hover { filter: brightness(1.08); }
.search__control input[aria-invalid="true"] ~ button { box-shadow: 0 0 0 2px var(--accent) inset; }
.search__status { margin: 10px 4px 0; font-size: 13px; color: var(--accent); min-height: 1.2em; }

.quicklinks { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.quicklinks__label { font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.quicklinks a { font-weight: 500; font-size: 14px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.quicklinks a:hover { color: var(--accent); border-color: var(--accent); }

/* ── Cover image ──────────────────────────────────────────── */
.cover { padding-block: 0 clamp(40px, 6vw, 64px); border-top: none; position: relative; }
.cover__media {
  height: clamp(220px, 32vw, 420px); border-radius: 18px; overflow: hidden;
  background-color: oklch(60% 0.16 42);
  background-image:
    linear-gradient(120deg, oklch(20% 0.02 50 / 0.15), oklch(20% 0.02 50 / 0)),
    url("/photo-amber.webp");
  background-size: cover; background-position: center;
}
.cover__tag {
  position: absolute; left: clamp(20px, 3vw, 34px); bottom: clamp(18px, 2.5vw, 28px);
  font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: oklch(99% 0.01 90 / 0.9); background: oklch(20% 0.02 50 / 0.45);
  padding: 7px 12px; border-radius: var(--radius-pill); backdrop-filter: blur(4px);
}

/* ── Spectrum ─────────────────────────────────────────────── */
.spectrum__axis {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.spectrum__bar {
  height: 30px; border-radius: var(--radius-pill); background-size: 200% 100%;
  background-image: linear-gradient(90deg,
    oklch(86% 0.06 200), oklch(88% 0.09 130), oklch(84% 0.12 80),
    oklch(72% 0.16 50), oklch(50% 0.13 40), oklch(86% 0.06 200));
  box-shadow: inset 0 0 0 1px oklch(82% 0.02 70 / 0.5);
  animation: slShimmer 9s linear infinite;
}
@keyframes slShimmer { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }

.spectrum__points { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.spectrum__points > li { flex: 1; min-width: 110px; }
.spectrum__points a { display: block; text-align: center; text-decoration: none; color: inherit; }
.spectrum__tick { display: block; width: 1px; height: 14px; background: var(--line-strong); margin: 0 auto 8px; }
.spectrum__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.2; }
.spectrum__note { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 4px; }
.spectrum__points a:hover .spectrum__name { color: var(--accent); }

/* ── Featured cards ───────────────────────────────────────── */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.feature-card {
  display: flex; flex-direction: column; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.feature-card__media { display: block; height: 150px; background-size: cover; background-position: center; }
.feature-card__media--resin { background-image: url("/photo-resin.webp"); }
.feature-card__media--wood { background-image: url("/photo-wood.webp"); }
.feature-card__media--amber { background-image: url("/photo-amber.webp"); }
.feature-card__body { padding: 22px 24px 26px; }
.feature-card__source { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.feature-card__body h3 { font-size: 22px; line-height: 1.12; font-weight: 700; margin-bottom: 10px; }
.feature-card__body h3 a { text-decoration: none; }
.feature-card__body h3 a:hover { color: var(--accent); }
.feature-card__notes { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* ── Mood ─────────────────────────────────────────────────── */
.mood-picker { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.mood {
  appearance: none; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: var(--radius-pill); white-space: nowrap;
  background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong);
  transition: background 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.mood:hover { border-color: var(--ink); color: var(--ink); }
.mood.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 6px 18px oklch(51% 0.2 33 / 0.28); }

.mood-result {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: end;
  padding: clamp(26px, 4vw, 34px); background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.mood-result__label { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.mood-result__text h3 { font-size: clamp(24px, 3vw, 30px); line-height: 1.05; font-weight: 700; margin-bottom: 12px; }
.mood-result__text p { margin: 0; font-size: 15px; color: var(--ink-soft); }
.mood-result__cta {
  justify-self: end; align-self: end; display: inline-block; text-decoration: none;
  background: var(--dark-btn); color: var(--accent-ink); font-weight: 600; font-size: 14px;
  padding: 14px 24px; border-radius: var(--radius-pill); white-space: nowrap; transition: filter 0.2s;
}
.mood-result__cta:hover { filter: brightness(1.15); }

/* ── Notes ────────────────────────────────────────────────── */
.note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.note-grid a {
  text-decoration: none; color: inherit; padding: 22px; background: var(--paper-card);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color 0.2s, transform 0.2s;
}
.note-grid a:hover { border-color: var(--accent); transform: translateY(-3px); }
.note-grid__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.note-grid__desc { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--muted); }

/* ── Comparisons ──────────────────────────────────────────── */
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.compare-list a {
  display: flex; align-items: baseline; gap: clamp(12px, 2vw, 24px);
  padding: 20px 8px; border-top: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: background 0.2s, padding 0.2s;
}
.compare-list a:hover { background: var(--paper-tint); padding-inline: 18px; border-radius: 8px; }
.compare-list__n { flex: none; width: 28px; font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.compare-list strong { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2.4vw, 22px); line-height: 1.15; }
.compare-list em { font-family: var(--font-mono); font-style: normal; font-size: 13px; color: var(--muted); text-align: right; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { margin-top: clamp(20px, 4vw, 40px); background: var(--paper-footer); border-top: 1px solid var(--line-footer); padding: 0; }
.footer__inner {
  max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 6vw, 56px) var(--gutter);
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center;
}
.footer__statement { margin: 0; max-width: 440px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); line-height: 1.18; }
.footer__statement span { color: var(--accent); }
.footer__meta { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.footer__meta .brand { margin-bottom: 6px; }
.footer__meta .brand__name { font-size: 18px; }
.footer__link { color: var(--accent); text-decoration: none; }
.footer__link:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .masthead__nav { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-nav:not([hidden]) { display: flex; }
  .compare-list em { display: none; }
  .mood-result__cta { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .spectrum__bar { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ============================================================
   Inner pages — article / catalog / guide / about
   (kept the existing body class names; restyled here)
   ============================================================ */

/* ── Page hero (light) ────────────────────────────────────── */
.page-hero { max-width: var(--wrap); margin-inline: auto; padding: clamp(34px, 6vw, 68px) var(--gutter) clamp(26px, 4vw, 40px); }
.back-link { display: inline-block; margin-bottom: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-kicker { margin: 0 0 16px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.03em; max-width: 18ch; }
.article-deck { max-width: 640px; margin: 22px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); }
.page-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-hero__tags span { font-weight: 500; font-size: 14px; background: var(--paper-tint); border: 1px solid var(--line); padding: 9px 16px; border-radius: var(--radius-pill); }

/* search (catalog / noty) */
.catalogue-search { max-width: 560px; margin-top: 28px; }
.catalogue-search label { display: block; margin-bottom: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.catalogue-search input { width: 100%; border: 1.5px solid var(--ink); background: oklch(99.5% 0.004 90); border-radius: var(--radius-pill); padding: 14px 22px; font-family: var(--font-body); font-size: 16px; color: var(--ink); outline: none; }
.catalogue-status { margin: 10px 4px 0; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

/* shell */
.article-shell { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter) clamp(40px, 6vw, 72px); }

/* ── Catalog grid ─────────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.hub-card { display: flex; flex-direction: column; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px 26px 26px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s; }
.hub-card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.hub-card__meta { margin: 0 0 12px; font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.hub-card h2 { font-size: 21px; line-height: 1.12; font-weight: 700; margin-bottom: 10px; }
.hub-card p { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.hub-card a { margin-top: auto; align-self: flex-start; font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: none; }
.hub-card a:hover { text-decoration: underline; }

.empty-state { padding: 60px 0; text-align: center; }
.empty-state h2 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { margin: 0; color: var(--muted); }

/* ── Guide pages (noty / nastroeniya) ─────────────────────── */
.guide-index { display: grid; gap: 18px; }
.guide-entry { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(22px, 3vw, 32px); scroll-margin-top: 90px; }
.entry-thumb { display: block; width: 56px; height: 56px; border-radius: var(--radius-sm); margin-bottom: 18px; background-size: cover; background-position: center; }
.entry-thumb--amber { background-image: url("/photo-amber.webp"); }
.entry-thumb--wood { background-image: url("/photo-wood.webp"); }
.entry-thumb--resin { background-image: url("/photo-resin.webp"); }
.guide-entry h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.guide-entry__lead { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 70ch; }
.guide-entry dl { margin: 0; display: grid; gap: 0; }
.guide-entry dl > div { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 10px 20px; padding: 12px 0; border-top: 1px solid var(--line); }
.guide-entry dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.guide-entry dd { margin: 0; font-size: 15px; color: var(--ink); }
.guide-entry dd a { color: var(--accent); }

/* ── Comparison article body ──────────────────────────────── */
.article-intro-card { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 28px); margin-bottom: clamp(28px, 4vw, 40px); }
.article-intro-card dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.article-intro-card dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.article-intro-card dd { margin: 0; font-size: 15px; font-weight: 500; }

.article-layout { display: grid; grid-template-columns: 210px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 90px; font-family: var(--font-mono); font-size: 13px; }
.toc p { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.article-body { max-width: 720px; }
.article-body section { padding-block: clamp(24px, 4vw, 36px); border-top: 1px solid var(--line); }
.article-body section:first-child { border-top: none; padding-top: 0; }
.article-body h2 { font-size: clamp(24px, 3.5vw, 34px); margin-bottom: 16px; }
.article-body p { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 16px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body ul { margin: 0; padding-left: 1.2em; }
.article-body li { margin-bottom: 8px; line-height: 1.6; }
.article-body a { color: var(--accent); }
.article-body .answer { font-size: clamp(16px, 1.9vw, 18px); line-height: 1.6; padding: clamp(20px, 3vw, 28px); background: linear-gradient(135deg, oklch(97% 0.012 84), oklch(99% 0.005 90)); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; color: oklch(30% 0.02 55); }

.alternatives { display: flex; flex-direction: column; gap: 14px; }
.alternative { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr); gap: clamp(14px, 3vw, 36px); align-items: start; background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(18px, 3vw, 26px); transition: border-color 0.2s, transform 0.2s; }
.alternative:hover { border-color: var(--accent); transform: translateY(-3px); }
.alternative > div { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.alternative h3 { margin: 0; font-size: clamp(18px, 2.4vw, 23px); line-height: 1.12; }
.alternative__meta { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: oklch(96% 0.02 50); border: 1px solid oklch(88% 0.04 50); padding: 6px 12px; border-radius: var(--radius-pill); }
.alternative p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.verdict { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 20px; }
.verdict > div { background: var(--paper-card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-size: 15px; color: var(--ink-soft); }
.verdict strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); margin-bottom: 6px; }

.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--ink-soft); }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related a { padding: 22px 24px; background: var(--paper-card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); transition: border-color 0.2s, transform 0.2s; }
.related a:hover { border-color: var(--accent); transform: translateY(-3px); color: var(--accent); }

/* comparison table (tablica) */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--paper-card); margin: clamp(8px, 2vw, 16px) 0 0; }
.compare-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.compare-table thead th { text-align: left; font-family: var(--font-mono); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; color: var(--ink); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-family: var(--font-display); font-weight: 700; }
.compare-table a { color: var(--accent); white-space: nowrap; }

/* ── Inner footer (restyled article-footer) ───────────────── */
.article-footer { margin-top: clamp(20px, 4vw, 40px); background: var(--paper-footer); border-top: 1px solid var(--line-footer); padding: clamp(40px, 6vw, 56px) 0; }
.article-footer__close { max-width: var(--wrap); margin: 0 auto 20px; padding-inline: var(--gutter); font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 3vw, 26px); line-height: 1.18; }
.article-footer__close em { font-style: normal; color: var(--accent); }
.article-footer__meta { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.article-footer__meta a { color: var(--accent); text-decoration: none; }
.article-footer__meta a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; gap: 24px; }
  .toc { position: static; }
  .alternative { grid-template-columns: 1fr; gap: 14px; }
}
