/* ============================================================
   TrendDesk — Design System v1.0
   Identity: "quiet magazine desk" — warm paper, deep slate ink,
   electric indigo actions, editorial serif display, soft 14px
   radii, hairline borders. (Original identity — not derived
   from any reference site.)
   Metodologia: BEM (blocos `.c-*` implícito omitido; utilitários
   `.u-*`, layout `.l-*`).
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* color — light */
  --color-bg: #FBFAF8;
  --color-surface: #FFFFFF;
  --color-surface-2: #F3F1EC;
  --color-ink: #1C2130;
  --color-muted: #5D6472;
  --color-line: #E7E4DD;
  --color-line-strong: #CFCBC1;
  --color-brand: #4F46E5;
  --color-brand-strong: #4338CA;
  --color-brand-soft: #EEEFFD;
  --color-gold: #A16207;
  --color-gold-soft: #FBF3DF;
  --color-good: #15803D;
  --color-good-soft: #E9F5ED;
  --color-warn: #B42318;
  --color-warn-soft: #FBEAE8;

  /* elevation */
  --shadow-1: 0 1px 2px rgba(28, 33, 48, .06);
  --shadow-2: 0 6px 24px -8px rgba(28, 33, 48, .14);

  /* shape */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  /* type — zero-request stacks (performance budget) */
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* fluid type scale (1.25 ratio, clamped) */
  --fs-xs: .78rem;
  --fs-sm: .875rem;
  --fs-base: clamp(1rem, .95rem + .2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-lg: clamp(1.35rem, 1.2rem + .6vw, 1.6rem);
  --fs-xl: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem);
  --fs-2xl: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);

  /* modular spacing (4px base) */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px;

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 28px);

  color-scheme: light;
}

[data-theme="dark"] {
  --color-bg: #14161C;
  --color-surface: #1B1E26;
  --color-surface-2: #232732;
  --color-ink: #EDEBE6;
  --color-muted: #9AA0AC;
  --color-line: #2C303B;
  --color-line-strong: #434857;
  --color-brand: #8B85F4;
  --color-brand-strong: #A5A0F8;
  --color-brand-soft: #262A44;
  --color-gold: #E3B341;
  --color-gold-soft: #33290F;
  --color-good: #4ADE80;
  --color-good-soft: #12291A;
  --color-warn: #F87171;
  --color-warn-soft: #331413;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
  --shadow-2: 0 6px 24px -8px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #14161C;
    --color-surface: #1B1E26;
    --color-surface-2: #232732;
    --color-ink: #EDEBE6;
    --color-muted: #9AA0AC;
    --color-line: #2C303B;
    --color-line-strong: #434857;
    --color-brand: #8B85F4;
    --color-brand-strong: #A5A0F8;
    --color-brand-soft: #262A44;
    --color-gold: #E3B341;
    --color-gold-soft: #33290F;
    --color-good: #4ADE80;
    --color-good-soft: #12291A;
    --color-warn: #F87171;
    --color-warn-soft: #331413;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5);
    --shadow-2: 0 6px 24px -8px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: var(--color-brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--color-brand-strong); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 var(--sp-3);
  text-wrap: balance;
}

h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }
h4 { font-size: var(--fs-base); }

p { margin: 0 0 var(--sp-4); }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 3. Utilities & layout ---------- */
.u-container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

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

/* 12-col desktop / 8 tablet / 4 mobile */
.l-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--sp-5); }
.l-grid > * { grid-column: span 12; }
.l-span-3 { grid-column: span 3; }
.l-span-4 { grid-column: span 4; }
.l-span-5 { grid-column: span 5; }
.l-span-6 { grid-column: span 6; }
.l-span-7 { grid-column: span 7; }
.l-span-8 { grid-column: span 8; }

.l-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-6); align-items: start; }

@media (max-width: 1000px) {
  .l-grid { grid-template-columns: repeat(8, 1fr); }
  .l-span-3, .l-span-4 { grid-column: span 4; }
  .l-span-5, .l-span-6, .l-span-7, .l-span-8 { grid-column: span 8; }
  .l-two-col { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .l-grid { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
  .l-span-3, .l-span-4 { grid-column: span 4; }
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--color-brand); color: #fff;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

/* ---------- 4. Buttons, badges, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--color-brand); color: #fff;
  font-weight: 600; font-size: var(--fs-sm); text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--color-brand-strong); color: #fff; }
[data-theme="dark"] .btn, [data-theme="dark"] .btn:hover { color: #14161C; }

.btn--ghost {
  background: transparent; color: var(--color-ink);
  border-color: var(--color-line-strong);
}
.btn--ghost:hover { background: var(--color-surface-2); color: var(--color-ink); }
[data-theme="dark"] .btn--ghost, [data-theme="dark"] .btn--ghost:hover { color: var(--color-ink); }

.btn--sm { padding: 6px 14px; }

.badge {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--color-brand-soft); color: var(--color-brand-strong);
}
.badge--gold { background: var(--color-gold-soft); color: var(--color-gold); }
.badge--good { background: var(--color-good-soft); color: var(--color-good); }
.badge--warn { background: var(--color-warn-soft); color: var(--color-warn); }

.chip {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface); color: var(--color-ink);
  font-size: var(--fs-sm); font-weight: 500; text-decoration: none;
}
.chip:hover { border-color: var(--color-brand); color: var(--color-brand-strong); }
.chip__count { color: var(--color-muted); font-size: var(--fs-xs); }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill);
  background: var(--color-surface-2); color: var(--color-muted);
  font-size: var(--fs-xs); font-weight: 600; text-decoration: none;
}
.tag:hover { color: var(--color-brand-strong); }

/* score badge (ratings) */
.score {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem;
  color: var(--color-good);
}
.score__max { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 500; }
.score--badge {
  background: var(--color-good-soft); border-radius: var(--radius-sm);
  padding: 4px 10px;
}
.stars { color: var(--color-gold); letter-spacing: 2px; font-size: var(--fs-sm); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: 68px;
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; color: var(--color-ink); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--color-brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
[data-theme="dark"] .brand__mark { color: #14161C; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand__tagline { display: none; color: var(--color-muted); font-size: var(--fs-xs); }
@media (min-width: 900px) { .brand__tagline { display: inline; } }

.site-nav { margin-left: auto; }
.site-nav__list { display: flex; gap: var(--sp-1); list-style: none; }
.site-nav__link {
  display: inline-block; padding: 8px 14px; border-radius: var(--radius-pill);
  color: var(--color-ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
}
.site-nav__link:hover { background: var(--color-surface-2); color: var(--color-ink); }
.site-nav__link[aria-current="page"] { background: var(--color-brand-soft); color: var(--color-brand-strong); font-weight: 600; }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-2); }

.site-search { display: flex; }
.site-search__input {
  width: 150px; padding: 8px 14px;
  border: 1px solid var(--color-line-strong); border-right: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  background: var(--color-surface); color: var(--color-ink);
  font: inherit; font-size: var(--fs-sm);
}
.site-search__btn {
  border: 1px solid var(--color-line-strong);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--color-surface); color: var(--color-muted);
  padding: 0 12px; display: grid; place-items: center;
}
.site-search__btn:hover { color: var(--color-brand); }

.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-line-strong);
  background: var(--color-surface); color: var(--color-ink);
  display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--color-brand); color: var(--color-brand); }

.nav-toggle { display: none; }

@media (max-width: 1000px) {
  .site-search { display: none; }
  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; z-index: 49;
    background: var(--color-bg); border-bottom: 1px solid var(--color-line);
    padding: var(--sp-4) var(--gutter) var(--sp-5);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { display: block; padding: 12px 8px; font-size: var(--fs-base); border-radius: var(--radius-sm); }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--sp-7); }
.section--tight { padding-block: var(--sp-6); }
.section--alt { background: var(--color-surface-2); }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.section__kicker {
  display: block;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--color-brand); margin-bottom: var(--sp-1);
}
.section__title { margin: 0; }
.section__lede { color: var(--color-muted); max-width: 62ch; margin-top: var(--sp-2); }
.section__more { white-space: nowrap; font-weight: 600; font-size: var(--fs-sm); text-decoration: none; }

/* ---------- 7. Cards ---------- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

.card__media { aspect-ratio: 16 / 9; background: var(--color-surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--tall { aspect-ratio: 4 / 3; }

.card__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.card__kicker { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-brand); }
.card__title { margin: 0; font-size: var(--fs-md); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--color-brand-strong); }
/* stretch whole card as click target */
.card { position: relative; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__excerpt { color: var(--color-muted); font-size: var(--fs-sm); margin: 0; }
.card__meta { margin-top: auto; padding-top: var(--sp-2); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); color: var(--color-muted); font-size: var(--fs-xs); }
.card__meta a { position: relative; z-index: 1; color: inherit; }
.card__meta-sep { opacity: .5; }
.card__topline { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }

/* hero */
.hero { padding-block: var(--sp-6) var(--sp-7); }
.hero__lead .card__body { padding: var(--sp-5); gap: var(--sp-3); }
.hero__lead .card__title { font-size: var(--fs-xl); }
.hero__lead .card__excerpt { font-size: var(--fs-base); }
.hero__stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.hero__stack .card { flex-direction: row; align-items: stretch; }
.hero__stack .card__media { width: 132px; flex: none; aspect-ratio: 1; }
.hero__stack .card__body { padding: var(--sp-3) var(--sp-4); gap: var(--sp-1); }
.hero__stack .card__title { font-size: var(--fs-base); }
@media (max-width: 640px) {
  .hero__stack .card__media { width: 96px; }
}

/* trending rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: var(--sp-4); overflow-x: auto; padding-bottom: var(--sp-3); scroll-snap-type: x proximity; }
.rail > * { scroll-snap-align: start; }
.trend-card .card__media { aspect-ratio: 5 / 4; }
.trend-card__rank { font-family: var(--font-mono); font-weight: 700; color: var(--color-muted); font-size: var(--fs-xs); }
.trend-card__delta { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; color: var(--color-good); }

/* review card */
.review-card .card__topline .score { flex: none; }

/* product card */
.product-card__price { font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-sm); }
.product-card__was { color: var(--color-muted); text-decoration: line-through; font-weight: 400; margin-left: var(--sp-1); }

/* editor pick */
.pick-card { border-top: 3px solid var(--color-gold); }
.pick-card__note {
  border-left: 3px solid var(--color-gold);
  background: var(--color-gold-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm); font-style: italic; color: var(--color-ink);
  margin: 0;
}

/* feature banner */
.feature-banner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
}
.feature-banner__media { min-height: 320px; background: var(--color-surface-2); }
.feature-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-banner__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); justify-content: center; }
.feature-banner__title { font-size: var(--fs-xl); margin: 0; }
@media (max-width: 900px) {
  .feature-banner { grid-template-columns: 1fr; }
  .feature-banner__media { min-height: 220px; }
}

/* news list */
.news-list { list-style: none; display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--color-line); }
.news-item:last-child { border-bottom: 0; }
.news-item__time { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-muted); padding-top: 4px; }
.news-item__title { margin: 0 0 var(--sp-1); font-size: var(--fs-base); }
.news-item__title a { color: inherit; text-decoration: none; }
.news-item__title a:hover { color: var(--color-brand-strong); }
.news-item__excerpt { color: var(--color-muted); font-size: var(--fs-sm); margin: 0; }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: var(--sp-1); } }

/* ranked list (most read) */
.rank-list { list-style: none; counter-reset: rank; }
.rank-list__item { counter-increment: rank; display: flex; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--color-line); }
.rank-list__item:last-child { border-bottom: 0; }
.rank-list__item::before {
  content: counter(rank, decimal-leading-zero);
  font-family: var(--font-mono); font-weight: 700; font-size: var(--fs-md);
  color: var(--color-brand); opacity: .7; line-height: 1.3; flex: none;
}
.rank-list__link { color: inherit; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.rank-list__link:hover { color: var(--color-brand-strong); }
.rank-list__meta { display: block; color: var(--color-muted); font-size: var(--fs-xs); margin-top: 2px; }

/* sidebar card */
.sidebar-card { background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow-1); }
.sidebar-card__title { font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.sidebar-card + .sidebar-card { margin-top: var(--sp-5); }

/* comparison */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); box-shadow: var(--shadow-1); }
.compare-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 640px; }
.compare-table caption { text-align: left; padding: var(--sp-4) var(--sp-4) 0; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; }
.compare-table th, .compare-table td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.compare-table thead th { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table th[scope="row"] { color: var(--color-muted); font-weight: 600; white-space: nowrap; }
.compare-table__win { color: var(--color-good); font-weight: 700; }

/* market / country hub */
.market-card__flag { font-size: 1.6rem; line-height: 1; }
.market-card__stat { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--color-muted); }
.market-card__list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
.market-card__list a { position: relative; z-index: 1; color: var(--color-ink); text-decoration: none; }
.market-card__list a:hover { color: var(--color-brand-strong); }

/* category hub */
.chip-grid { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 8. FAQ ---------- */
.faq { max-width: 800px; }
.faq__item { border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); margin-bottom: var(--sp-3); box-shadow: var(--shadow-1); }
.faq__q {
  list-style: none; cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-family: var(--font-mono); font-size: 1.3rem; color: var(--color-brand); flex: none; }
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--color-muted); }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- 9. Newsletter ---------- */
.newsletter {
  background: linear-gradient(120deg, var(--color-brand-soft), var(--color-surface));
  border: 1px solid var(--color-line); border-radius: var(--radius);
  padding: var(--sp-7) var(--sp-6);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); align-items: center;
}
.newsletter__title { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }
.newsletter__lede { color: var(--color-muted); margin: 0; }
.newsletter__form { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsletter__input {
  flex: 1 1 220px; padding: 12px 18px;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill);
  background: var(--color-surface); color: var(--color-ink); font: inherit;
}
.newsletter__hint { grid-column: 1 / -1; color: var(--color-muted); font-size: var(--fs-xs); margin: var(--sp-2) 0 0; }
.newsletter__msg { flex-basis: 100%; font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.newsletter__msg--ok { color: var(--color-good); }
.newsletter__msg--err { color: var(--color-warn); }
@media (max-width: 900px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- 10. Footer ---------- */
.site-footer { border-top: 1px solid var(--color-line); background: var(--color-surface); margin-top: var(--sp-8); }
.site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-6);
  padding-block: var(--sp-7);
}
.site-footer__about { color: var(--color-muted); font-size: var(--fs-sm); }
.site-footer__title { font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin-bottom: var(--sp-3); }
.site-footer__list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
.site-footer__list a { color: var(--color-ink); text-decoration: none; }
.site-footer__list a:hover { color: var(--color-brand-strong); }
.site-footer__legal {
  border-top: 1px solid var(--color-line);
  padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); align-items: center;
  color: var(--color-muted); font-size: var(--fs-xs);
}
.site-footer__legal a { color: var(--color-muted); }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- 11. Article / single templates ---------- */
.breadcrumb { padding-block: var(--sp-4); font-size: var(--fs-xs); color: var(--color-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); opacity: .5; }
.breadcrumb a { color: var(--color-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-brand-strong); }
.breadcrumb [aria-current="page"] { color: var(--color-ink); font-weight: 600; }

.article-header { max-width: 800px; margin-bottom: var(--sp-6); }
.article-header__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); color: var(--color-muted); font-size: var(--fs-sm); align-items: center; }
.article-header__meta a { color: inherit; font-weight: 600; }
.article-header__updated { font-family: var(--font-mono); font-size: var(--fs-xs); background: var(--color-surface-2); border-radius: var(--radius-pill); padding: 2px 10px; }

.article-hero { border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-6); border: 1px solid var(--color-line); }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-hero figcaption { padding: var(--sp-2) var(--sp-4); font-size: var(--fs-xs); color: var(--color-muted); background: var(--color-surface); }

.prose { max-width: 720px; }
.prose > h2 { margin-top: var(--sp-6); }
.prose > h3 { margin-top: var(--sp-5); }
.prose ul, .prose ol { padding-left: 1.4em; margin-bottom: var(--sp-4); }
.prose li { margin-bottom: var(--sp-1); }
.prose blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-3) var(--sp-5);
  border-left: 3px solid var(--color-brand);
  background: var(--color-surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: var(--fs-md); color: var(--color-ink);
}
.prose img { border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.prose th, .prose td { padding: var(--sp-2) var(--sp-3); border: 1px solid var(--color-line); text-align: left; }

/* verdict / pros-cons (reviews) */
.verdict {
  border: 1px solid var(--color-line); border-left: 4px solid var(--color-good);
  background: var(--color-surface); border-radius: var(--radius);
  padding: var(--sp-5); margin: var(--sp-5) 0; box-shadow: var(--shadow-1);
}
.verdict__head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-2); }
.verdict__title { margin: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin: var(--sp-5) 0; }
.pros-cons__col { border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-surface); padding: var(--sp-4) var(--sp-5); }
.pros-cons__title { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); font-size: var(--fs-base); }
.pros-cons__list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); font-size: var(--fs-sm); }
.pros-cons__list li { padding-left: 1.4em; position: relative; }
.pros-cons--pros .pros-cons__list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-good); font-weight: 700; }
.pros-cons--cons .pros-cons__list li::before { content: "✕"; position: absolute; left: 0; color: var(--color-warn); font-weight: 700; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* EEAT blocks */
.trust-note {
  display: flex; gap: var(--sp-3); align-items: flex-start;
  background: var(--color-surface-2); border-radius: var(--radius);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: var(--color-muted);
  margin-bottom: var(--sp-5);
}
.trust-note a { color: var(--color-brand-strong); }

.author-box {
  display: grid; grid-template-columns: 72px 1fr; gap: var(--sp-4);
  border: 1px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-surface); padding: var(--sp-5); margin-block: var(--sp-6);
  box-shadow: var(--shadow-1); max-width: 720px;
}
.author-box__avatar { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--color-surface-2); }
.author-box__name { margin: 0 0 2px; font-size: var(--fs-md); }
.author-box__name a { color: inherit; text-decoration: none; }
.author-box__cred { color: var(--color-brand-strong); font-size: var(--fs-xs); font-weight: 600; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; }
.author-box__bio { color: var(--color-muted); font-size: var(--fs-sm); margin: var(--sp-2) 0 0; }

.sources { border-top: 1px solid var(--color-line); margin-top: var(--sp-6); padding-top: var(--sp-4); max-width: 720px; }
.sources__list { padding-left: 1.4em; font-size: var(--fs-sm); color: var(--color-muted); }

/* spec table (product) */
.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { text-align: left; padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--color-line); }
.spec-table th { color: var(--color-muted); font-weight: 600; width: 40%; }

/* pagination */
.pagination { display: flex; justify-content: center; gap: var(--sp-2); padding-block: var(--sp-6); flex-wrap: wrap; }
.pagination__link {
  min-width: 40px; height: 40px; padding-inline: var(--sp-3);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-line-strong); border-radius: var(--radius-pill);
  color: var(--color-ink); text-decoration: none; font-size: var(--fs-sm); font-weight: 600;
}
.pagination__link:hover { border-color: var(--color-brand); color: var(--color-brand-strong); }
.pagination__link[aria-current="page"] { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
[data-theme="dark"] .pagination__link[aria-current="page"] { color: #14161C; }

/* page hero (category/about/etc) */
.page-hero { padding-block: var(--sp-6); border-bottom: 1px solid var(--color-line); margin-bottom: var(--sp-6); }
.page-hero__lede { color: var(--color-muted); max-width: 68ch; font-size: var(--fs-md); margin: 0; }

/* forms (contact / search) */
.form { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 560px; }
.form__field { display: flex; flex-direction: column; gap: var(--sp-1); }
.form__label { font-weight: 600; font-size: var(--fs-sm); }
.form__input, .form__textarea {
  padding: 12px 16px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm);
  background: var(--color-surface); color: var(--color-ink); font: inherit;
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__hint { color: var(--color-muted); font-size: var(--fs-xs); }

/* 404 */
.error-page { text-align: center; padding-block: var(--sp-9); }
.error-page__code { font-family: var(--font-mono); font-size: var(--fs-2xl); color: var(--color-brand); font-weight: 700; }
