/* Heshi GEO Network — light editorial/premium media aesthetic */
:root {
  --primary: #1a1a2e;
  --accent: #c9a96e;
  --surface: #f8f6f3;
  --text: #1c1c1c;
  --text-muted: #6b6b6b;
  --line: rgba(20, 20, 30, .09);
  --line-soft: rgba(20, 20, 30, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20,20,30,.04), 0 12px 28px rgba(20,20,30,.06);
  --shadow-lg: 0 4px 8px rgba(20,20,30,.05), 0 24px 48px rgba(20,20,30,.09);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-width: 1180px;
  --duration-fast: 160ms;
  --duration-normal: 360ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --motion-distance: 14px;
  --transition: var(--duration-normal) var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--surface);
  line-height: 1.75;
  font-size: 16px;
  letter-spacing: .01em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.article-methodology,
.editorial-cta {
  margin: 40px 0 0;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(26, 26, 46, 0.04);
}

.editorial-cta .btn { margin-right: 12px; margin-top: 12px; }

/* Кнопки внутри article-content: не наследовать accent-цвет ссылок */
.article-content a.btn,
.editorial-cta a.btn {
  color: var(--primary);
  border-bottom: none;
  text-decoration: none;
}

.article-content a.btn:hover,
.editorial-cta a.btn:hover {
  color: var(--primary);
  border-bottom: none;
}

.article-methodology h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.brief-answer {
  background: linear-gradient(135deg, rgba(201,169,110,.12), rgba(26,26,46,.04));
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 0 0 28px;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
}

.brief-answer strong { color: var(--primary); }

.brief-answer ul {
  margin: 12px 0 0;
  padding-left: 1.25rem;
}

.brief-answer li {
  margin: 0 0 8px;
}

.brief-answer li:last-child { margin-bottom: 0; }

.brief-answer p + ul { margin-top: 12px; }

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover { color: var(--primary); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ── Header ── */
.site-header {
  background: rgba(252,251,249,.86);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 40px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.2;
}

.logo:hover { color: var(--accent); }

.brand-mark {
  flex-shrink: 0;
  width: clamp(30px, 4vw, 38px);
  height: clamp(30px, 4vw, 38px);
  transition: transform var(--transition);
}

.logo:hover .brand-mark { transform: scale(1.06) rotate(-3deg); }

.logo-text {
  max-width: 60vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .logo-text { max-width: 42vw; }
}

.header-inner > nav { flex-shrink: 0; }

.nav { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; align-items: center; }

.nav a {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }

.nav a.nav-brand {
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .78rem;
}

.nav a.nav-brand::after { display: none; }
.nav a.nav-brand:hover { background: rgba(201,169,110,.15); color: var(--primary); }

/* ── Hero ── */
.hero {
  background: var(--surface);
  color: var(--text);
  padding: clamp(72px, 12vw, 120px) clamp(20px, 4vw, 40px) clamp(88px, 14vw, 130px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 12%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 85%, color-mix(in srgb, var(--primary) 5%, transparent) 0%, transparent 55%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}

.hero-ornament {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-ornament::before {
  content: '';
  position: absolute;
  inset: 40px;
  border: 1px solid color-mix(in srgb, var(--accent) 9%, transparent);
  border-radius: 50%;
}

.hero-content { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; }

.hero-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -.01em;
  color: var(--primary);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201,169,110,.35);
  color: var(--primary);
  background: color-mix(in srgb, var(--accent) 90%, #fff);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--primary) 25%, transparent);
  color: var(--primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--primary);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: none;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--accent);
  color: var(--primary);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--accent) 75%, var(--primary));
  color: var(--primary);
  box-shadow: none;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--primary);
  box-shadow: none;
}

/* ── Sections ── */
section { padding: clamp(56px, 8vw, 88px) 0; }

.section-label {
  display: block;
  text-align: center;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
  color: var(--primary);
  letter-spacing: -.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin: 16px auto 0;
}

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(26,26,46,.04);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  display: block;
}

.card-image--photo::before {
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,.35) 100%);
}

.card-image--photo picture,
.card-image--photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.card-image--photo img {
  transition: transform var(--transition);
}

.card:hover .card-image--photo img {
  transform: scale(1.04);
}

.card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 30%, rgba(201,169,110,.25) 100%),
    linear-gradient(to bottom, transparent 40%, rgba(0,0,0,.45) 100%);
  z-index: 1;
}

.card-image-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--accent) 30%, var(--primary)) 0%, var(--primary) 70%);
}

.card-image-icon {
  font-size: 2.5rem;
  color: rgba(201,169,110,.35);
  z-index: 2;
  position: relative;
}

.card-image-num {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}

.card-body {
  padding: 26px 28px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: .04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-meta::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.35;
}

.card-body h3 a { color: inherit; }
.card-body h3 a:hover { color: var(--accent); }

.card-excerpt {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.65;
  flex: 1;
}

.card-link {
  margin-top: 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-link:hover { color: var(--primary); }

/* ── Article ── */
.article-header {
  background: var(--surface);
  color: var(--text);
  padding: clamp(48px, 8vw, 80px) clamp(20px, 4vw, 40px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.article-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 55%);
}

.article-header .container { position: relative; z-index: 1; }

.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  max-width: 800px;
  margin: 0 0 18px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--primary);
}

.article-meta {
  font-size: .85rem;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* Layout wrapper: ~800px article column; sticky TOC rail only when present */
.article-layout {
  max-width: 800px;
  margin: -32px auto 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.article-content {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 40px) clamp(64px, 8vw, 96px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line-soft);
  position: relative;
  max-width: 800px;
  margin-inline: auto;
}

.article-rail {
  min-width: 0;
}

.article-rail-inner .article-toc {
  margin: 0;
}

@media (min-width: 1240px) {
  .article-layout:has(> .article-rail) {
    max-width: 1160px;
    display: grid;
    grid-template-columns: minmax(0, 800px) 280px;
    gap: 56px;
  }

  .article-rail-inner {
    position: sticky;
    top: 96px;
  }
}

.article-wrap {
  background: var(--surface);
  padding: 0 clamp(20px, 4vw, 40px) clamp(48px, 6vw, 72px);
}

.article-hero {
  margin: 0 0 32px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  /* Portrait stock often ships 2:3 — without a cap the hero fills the viewport
     and the article looks "blank" until the user scrolls past ~1000px. */
  max-height: min(52vh, 440px);
}

.article-hero img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: min(52vh, 440px);
  max-height: min(52vh, 440px);
  object-fit: cover;
  object-position: center;
  margin-inline: auto;
}

.js-seq-img.img-load-failed {
  min-height: 120px;
  background: rgba(26, 26, 46, 0.06);
}

.article-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  margin-bottom: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.article-lead p { margin-bottom: 0; }

.article-table {
  overflow-x: auto;
  margin: 28px 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: var(--radius-sm);
}

.article-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.article-table th,
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  text-align: left;
}

.article-table th {
  background: var(--surface);
  font-weight: 600;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 500;
  margin: 44px 0 16px;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,169,110,.2);
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 { font-size: 1.15rem; margin: 32px 0 12px; font-weight: 600; }

.article-content p { margin-bottom: 22px; color: var(--text); }

.article-content ul, .article-content ol { margin: 0 0 22px 22px; }

.article-content li { margin-bottom: 10px; color: var(--text); }

.article-content a { color: var(--accent); border-bottom: 1px solid rgba(201,169,110,.3); }
.article-content a:hover { border-color: var(--accent); }

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 20px 28px;
  margin: 32px 0;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  font-style: italic;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-figure {
  margin: 28px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-figure img {
  display: block;
  width: 100%;
  max-width: 780px;
  height: auto;
  margin-inline: auto;
}

.article-figure figcaption {
  padding: 12px 16px;
  font-size: .88rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.hero-compact {
  padding: 48px 24px;
}

.hero-compact .lead {
  max-width: 720px;
  margin: 12px auto 0;
  font-size: 1rem;
  opacity: .85;
}

.legal-doc {
  max-width: 800px;
}

.legal-meta {
  font-size: .88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.legal-toc {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 36px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 20px;
}

.legal-toc li {
  margin-bottom: 6px;
}

.legal-toc a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.legal-toc a:hover {
  border-color: var(--accent);
}

.article-toc {
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0 36px;
}

.article-toc-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 12px;
}

.article-toc ol {
  margin: 0;
  padding-left: 20px;
}

.article-toc li {
  margin-bottom: 6px;
}

.article-toc a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.article-toc a:hover {
  border-color: var(--accent);
}

.article-toc a.is-active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}

/* TOC once JS has relocated it into the sticky sidebar rail */
.article-toc--rail {
  background: transparent;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.article-toc--rail .article-toc-title {
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text-muted);
}

.article-toc--rail ol {
  padding-left: 0;
  list-style: none;
}

.article-toc--rail li { margin-bottom: 10px; font-size: .88rem; line-height: 1.4; }

.legal-section {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(26, 26, 46, .06);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--primary);
}

.legal-section p,
.legal-section li {
  line-height: 1.7;
  color: var(--text);
}

.legal-section ul {
  margin: 12px 0 16px 20px;
}

.legal-footer-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 46, .08);
  font-size: .92rem;
  color: var(--text-muted);
}

.faq-more {
  text-align: center;
  padding-bottom: 48px;
  color: var(--text-muted);
}
.faq { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  border: 1px solid rgba(26,26,46,.06);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow); }

.faq-q {
  padding: 20px 24px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  color: var(--primary);
  margin: 0;
}

.faq-q-text {
  flex: 1;
  line-height: 1.45;
}

.faq-q-icon {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform var(--transition);
}

.faq-item.open .faq-q-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 24px 20px;
  color: var(--text-muted);
  display: none;
  font-size: .93rem;
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* FAQ внутри статьи — нативный аккордеон <details> + microdata */
.article-faq {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid rgba(26, 26, 46, .08);
}

.article-faq-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 24px;
  letter-spacing: -.01em;
}

.article-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-faq-item {
  background: #fff;
  border: 1px solid rgba(26, 26, 46, .08);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.article-faq-item:hover {
  border-color: rgba(26, 26, 46, .12);
}

.article-faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 8px 28px rgba(26, 26, 46, .06);
}

.article-faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.article-faq-q::-webkit-details-marker {
  display: none;
}

.article-faq-q::marker {
  content: "";
}

.article-faq-q-text {
  flex: 1;
}

.article-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  position: relative;
  transition: transform var(--transition), background var(--transition);
}

.article-faq-icon::before,
.article-faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--accent);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}

.article-faq-icon::before {
  width: 10px;
  height: 2px;
}

.article-faq-icon::after {
  width: 2px;
  height: 10px;
  transition: transform var(--transition), opacity var(--transition);
}

.article-faq-item[open] .article-faq-icon {
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  transform: rotate(180deg);
}

.article-faq-item[open] .article-faq-icon::after {
  transform: translate(-50%, -50%) scaleY(0);
  opacity: 0;
}

.article-faq-a {
  padding: 0 20px 18px;
  font-size: .96rem;
  line-height: 1.72;
  color: var(--text);
  border-top: 1px solid rgba(26, 26, 46, .06);
  margin: 0 20px;
  padding-top: 14px;
  padding-bottom: 18px;
}

.article-faq-a p {
  margin: 0;
}

/* ── Article comments ── */
.article-comments {
  margin: 48px 0 0;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: rgba(26, 26, 46, 0.03);
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.article-comments-header {
  margin-bottom: 24px;
}

.article-comments-title {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

.article-comments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-comment-body {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.article-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.article-comment-author {
  font-weight: 600;
  color: var(--primary);
}

.article-comment-date {
  color: var(--text-muted, rgba(26, 26, 46, 0.55));
  font-size: 0.85rem;
}

.article-comment-text {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
}

.article-comment-text.is-question {
  font-style: italic;
}

.comment-form-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.comment-form-title {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.comment-form-note,
.comment-form-noscript {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--text-muted, rgba(26, 26, 46, 0.62));
}

.comment-form-field {
  margin-bottom: 14px;
}

.comment-form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

.comment-form-field input,
.comment-form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(26, 26, 46, 0.14);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}

.comment-form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.comment-form-feedback {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--primary);
}

.comment-form-feedback.is-error {
  color: #b42318;
}

.comment-form-submit {
  margin-top: 4px;
}

.faq-section { background: #fff; }

/* ── Partners ── */
.partners {
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid rgba(26,26,46,.06);
}

.partner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.partner-links a {
  padding: 10px 20px;
  background: #fff;
  border-radius: 999px;
  font-size: .85rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  color: var(--primary);
  border: 1px solid rgba(26,26,46,.06);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.partner-links a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Brand CTA ── */
.brand-cta {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--text);
  padding: clamp(64px, 8vw, 96px) clamp(20px, 4vw, 40px);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.brand-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 65%);
}

.brand-cta .container { position: relative; z-index: 1; }

.brand-cta .section-label { color: color-mix(in srgb, var(--accent) 75%, var(--primary)); }

.brand-cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: -.01em;
  color: var(--primary);
}

.brand-cta p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  background: color-mix(in srgb, var(--primary) 4%, var(--surface));
  color: var(--text-muted);
  padding: clamp(56px, 7vw, 80px) clamp(20px, 4vw, 40px) 28px;
  font-size: .88rem;
  border-top: 1px solid var(--line);
}

.footer-top-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: .55;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: var(--max-width);
  margin: 0 auto clamp(36px, 5vw, 52px);
}

.footer-brand .logo {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.footer-brand p { line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  color: var(--primary);
  margin-bottom: 18px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-muted);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col a:hover { color: var(--accent); padding-left: 4px; }

.footer-address {
  font-style: normal;
  line-height: 1.95;
}

.footer-address a { color: var(--text-muted); }
.footer-address a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: .8rem;
  opacity: .8;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
}

.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: .8rem;
  padding: 0 0 20px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ── Features strip ── */
.features {
  background: #fff;
  border-bottom: 1px solid rgba(26,26,46,.06);
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: center;
}

.feature-item {
  padding: 16px;
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.feature-item h4 {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Stats strip ── */
.stats-strip {
  background: #fff;
  color: var(--text);
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: .78rem;
  opacity: .75;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
  color: var(--text-muted);
}

/* ── Page content ── */
.page-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.85;
}

.page-content .lead {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--primary);
  margin-bottom: 20px;
}

.page-content h2 {
  font-family: var(--font-heading);
  margin: 32px 0 12px;
  font-size: 1.35rem;
}

/* ── Topics / rubrics ── */
.topics-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.topic-card,
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,26,46,.06);
}

.topic-icon,
.service-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.topic-card h3,
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.topic-card p,
.service-card p {
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.editorial-note {
  font-size: .92rem;
  color: var(--text-muted);
  text-align: center;
}

.editorial-contact,
.editorial-disclaimer {
  margin-top: 32px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.editorial-contact h2,
.editorial-disclaimer h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.text-muted {
  color: var(--text-muted);
  font-size: .9rem;
}

.footer-disclaimer {
  font-size: .78rem;
  opacity: .65;
  margin-top: 8px;
  font-style: italic;
}

/* ── Author byline & cards ── */
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 8px;
  font-size: .92rem;
  color: var(--text-muted);
}

.article-header .article-byline {
  color: var(--text-muted);
}

.article-header .article-byline .byline-label {
  color: var(--text-muted);
  font-weight: 500;
}

.article-byline a {
  color: var(--primary);
  font-weight: 500;
}

.article-header .article-byline a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 3px;
}

.article-header .article-byline a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.byline-role {
  display: block;
  font-size: .82rem;
  color: var(--text-muted);
  font-weight: 400;
}

.article-header .byline-role {
  color: var(--text-muted);
}

.byline-reviewed {
  font-style: italic;
}

.article-header .byline-reviewed,
.article-header .byline-dates {
  color: var(--text-muted);
}

.byline-author {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.5em;
}

.byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.author-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26,26,46,.06);
  scroll-margin-top: 100px;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
}

.author-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.author-title {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 12px;
}

.author-bio {
  font-size: .95rem;
  line-height: 1.65;
  margin-bottom: 14px;
}

.author-expertise {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.author-expertise li {
  font-size: .78rem;
  background: rgba(201,169,110,.15);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 999px;
}

.author-certifications-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-top: 16px;
  margin-bottom: 6px;
}

.author-certifications {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.author-certifications li {
  font-size: .82rem;
  line-height: 1.4;
  padding-left: 14px;
  position: relative;
  color: var(--text-muted);
}

.author-certifications li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.editorial-standards h2 {
  margin-top: 28px;
}

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(255,255,255,.97);
  color: var(--text);
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20,20,30,.06);
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-banner p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner .cookie-accept {
  flex-shrink: 0;
  padding: 10px 24px;
  font-size: .88rem;
}

@media print {
  .cookie-banner { display: none; }
}

/* ── Contacts (legacy) ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 1rem;
  color: var(--primary);
}

/* ── Glossary ── */
.glossary-hero {
  padding: 60px 24px 40px;
}

.glossary-lead {
  max-width: 720px;
  margin: 12px auto 0;
  opacity: .88;
}

.glossary-page {
  padding-bottom: 72px;
}

.glossary-toolbar {
  margin-bottom: 40px;
  padding: 24px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  border-radius: var(--radius-sm);
}

.glossary-search-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary);
}

.glossary-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  margin-bottom: 16px;
}

.glossary-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.glossary-jump a {
  font-size: .85rem;
  color: var(--primary);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.glossary-jump a:hover {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}

.glossary-category {
  margin-bottom: 48px;
}

.glossary-category-title {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--primary);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.glossary-list {
  margin: 0;
}

.glossary-item {
  margin-bottom: 28px;
}

.glossary-list dt {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 8px;
}

.glossary-list dd {
  margin: 0;
  color: var(--text);
  line-height: 1.65;
}

.glossary-list dd p {
  margin: 0 0 10px;
}

.glossary-related {
  font-size: .92rem;
  color: var(--text-muted);
}

.glossary-related a {
  color: var(--primary);
}

.glossary-sources {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.glossary-sources a {
  font-size: .82rem;
  color: var(--text-muted);
}

.glossary-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
}

/* ── Reading progress bar ── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  z-index: 999;
  overflow: hidden;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.reading-progress span {
  display: block;
  width: var(--reading-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 65%, #fff));
  transition: width var(--duration-fast) linear;
}

/* ── Shop-style home grid: 1 feature + several small cards ── */
.cards--shop {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
}

.cards--shop .card--feature {
  grid-column: span 2;
  grid-row: span 2;
}

.cards--shop .card--feature .card-image { height: 100%; min-height: 320px; }
.cards--shop .card--feature .card-body h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
.cards--shop .card--feature .card-excerpt {
  display: block;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .cards--shop { grid-template-columns: repeat(2, 1fr); }
  .cards--shop .card--feature { grid-column: span 2; grid-row: span 1; }
  .cards--shop .card--feature .card-image { height: 260px; min-height: 0; }
}

@media (max-width: 560px) {
  .cards--shop { grid-template-columns: 1fr; }
  .cards--shop .card--feature { grid-column: span 1; }
}

/* ── Pagination (/blog/) ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
}

.pagination-pages { display: flex; gap: 6px; flex-wrap: wrap; }

.pagination-link,
.pagination-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.pagination-page { padding: 0; }

.pagination-link:hover,
.pagination-page:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pagination-page.is-current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── "How to cite" widget ── */
.article-cite {
  margin: 40px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.article-cite h2 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-cite-text {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  word-break: break-word;
}

.article-cite-copy { font-size: .8rem; padding: 10px 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .article-layout { margin-top: -20px; }
  .article-content { border-radius: var(--radius-sm); }
}

/* Progressive enhancement: hide only when JS opted in via html.js-anim.
   Without that class (no JS / failed boot) content stays visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js-anim .motion-enter,
  html.js-anim .motion-reveal {
    opacity: 0;
    transform: translateY(var(--motion-distance));
    transition:
      opacity var(--duration-normal) var(--ease-out),
      transform var(--duration-normal) var(--ease-out);
  }

  html.js-anim .motion-enter.is-visible,
  html.js-anim .motion-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  html.js-anim .motion-stagger > .motion-reveal {
    transition-delay: calc(var(--motion-index, 0) * 55ms);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .site-footer, .brand-cta, .partners { display: none; }
}
