/* Журнал /articles/ · scoped .sb-art* */
.sb-art-page {
  --sb-ink: #fff8fb;
  --sb-muted: rgba(255, 236, 245, 0.72);
  --sb-gold: #f3c89a;
  --sb-pink: #ff8fbf;
  --sb-line: rgba(255, 180, 210, 0.2);
  --sb-panel: rgba(22, 8, 18, 0.55);
  background: #0c0409;
  color: var(--sb-ink);
  min-height: 100vh;
  /* Шапка sticky в потоке — глобальный padding-top body под fixed даёт пустоту */
  padding-top: 0 !important;
}

.sb-art-page .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(8, 3, 8, 0.72);
  border-bottom: 1px solid rgba(255, 180, 210, 0.1);
}

/* ——— HUB ——— */
.sb-art-hub {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.sb-art-hub__mast {
  position: relative;
  padding: clamp(28px, 6vw, 56px) 0 clamp(20px, 4vw, 36px);
  border-bottom: 1px solid var(--sb-line);
  overflow: hidden;
}

.sb-art-hub__mast::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(420px, 70vw);
  height: min(420px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 166, 0.22), transparent 68%);
  pointer-events: none;
}

.sb-art-hub__brand {
  margin: 0 0 10px;
  font-family: Cinzel, "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--sb-ink);
}

.sb-art-hub__kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sb-gold);
}

.sb-art-hub__mast h1 {
  margin: 0 0 12px;
  max-width: 14ch;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 0.98;
  font-weight: 700;
}

.sb-art-hub__lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.5;
  color: var(--sb-muted);
}

.sb-art-hub__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255, 220, 235, 0.65);
}

.sb-art-hub__stats b {
  color: var(--sb-gold);
  font-weight: 800;
}

.sb-art-hub__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 28px;
}

.sb-art-hub__cat {
  appearance: none;
  border: 1px solid var(--sb-line);
  background: transparent;
  color: rgba(255, 236, 245, 0.85);
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.sb-art-hub__cat:hover,
.sb-art-hub__cat.is-on {
  border-color: rgba(255, 180, 210, 0.55);
  background: rgba(255, 77, 166, 0.14);
  color: #fff;
}

.sb-art-hub__feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  min-height: 320px;
  margin: 0 0 28px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--sb-line);
  background:
    linear-gradient(135deg, rgba(255, 77, 166, 0.16), transparent 45%),
    linear-gradient(180deg, #1a0a14 0%, #10060e 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease, border-color 0.25s ease, box-shadow 0.35s ease;
}

.sb-art-hub__feature:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 180, 210, 0.45);
  box-shadow: 0 18px 40px rgba(255, 61, 154, 0.12);
}

.sb-art-hub__feature-visual {
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 180, 210, 0.35), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232, 176, 122, 0.22), transparent 45%),
    #160910;
}

.sb-art-hub__feature-visual::after {
  content: "Журнал";
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  opacity: 0.18;
  letter-spacing: 0.04em;
}

.sb-art-hub__feature-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(20px, 4vw, 36px);
}

.sb-art-hub__feature-body .sb-art-hub__meta {
  margin: 0;
}

.sb-art-hub__feature-body h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  line-height: 1.12;
  font-weight: 700;
}

.sb-art-hub__feature-body p {
  margin: 0;
  color: var(--sb-muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.sb-art-hub__feature-go {
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-pink);
}

.sb-art-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sb-gold);
}

.sb-art-hub__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 180, 210, 0.5);
}

.sb-art-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sb-art-hub__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 18px 16px 16px;
  border-radius: 18px;
  border: 1px solid var(--sb-line);
  background: var(--sb-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease, background 0.2s ease;
}

.sb-art-hub__card:hover {
  border-color: rgba(255, 180, 210, 0.42);
  transform: translateY(-2px);
  background: rgba(36, 12, 28, 0.65);
}

.sb-art-hub__card[hidden] { display: none !important; }

.sb-art-hub__card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 700;
}

.sb-art-hub__card p {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--sb-muted);
}

.sb-art-hub__card-foot {
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 180, 210, 0.85);
}

.sb-art-hub__empty {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  color: var(--sb-muted);
  border: 1px dashed var(--sb-line);
  border-radius: 16px;
}

.sb-art-hub__cta {
  margin: 40px 0 0;
  padding: clamp(22px, 4vw, 32px);
  border-radius: 22px;
  border: 1px solid rgba(255, 180, 210, 0.28);
  background:
    linear-gradient(120deg, rgba(255, 77, 166, 0.18), transparent 55%),
    #160910;
  display: grid;
  gap: 12px;
  align-items: start;
}

.sb-art-hub__cta h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.sb-art-hub__cta p {
  margin: 0;
  max-width: 36rem;
  color: var(--sb-muted);
  line-height: 1.45;
}

.sb-art-hub__cta .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

/* ——— ARTICLE + SIDEBAR ——— */
.sb-art-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 28px 36px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 16px 72px;
}

.sb-art {
  max-width: none;
  padding: 0;
  margin: 0;
}

.sb-art-side {
  position: sticky;
  top: calc(var(--site-header-h, 78px) + 12px);
  align-self: start;
}

.sb-art-side__panel {
  padding: 16px 14px 14px;
  border-radius: 18px;
  border: 1px solid var(--sb-line);
  background: var(--sb-panel);
}

.sb-art-side__kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sb-gold);
}

.sb-art-side__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 700;
}

.sb-art-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: min(70vh, 640px);
  overflow: auto;
}

.sb-art-side__list a {
  display: grid;
  gap: 2px;
  padding: 9px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sb-art-side__list a:hover {
  background: rgba(255, 77, 166, 0.1);
  border-color: rgba(255, 180, 210, 0.28);
}

.sb-art-side__cat {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 200, 170, 0.8);
}

.sb-art-side__name {
  font-size: 0.86rem;
  line-height: 1.3;
  color: rgba(255, 236, 245, 0.92);
}

.sb-art-side__list a:hover .sb-art-side__name {
  color: #fff;
}

.sb-art-side__all {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--sb-pink);
  text-decoration: none;
}

.sb-art-side__all:hover {
  color: #fff;
}

.sb-art__progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ff4da6, #e8b07a);
  pointer-events: none;
}

.sb-art__kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sb-gold);
}

.sb-art h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  line-height: 1.12;
  margin: 0 0 14px;
}

.sb-art h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  margin: 32px 0 10px;
}

.sb-art__cover-wrap {
  margin: 0 0 1.25rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 106, 0.35);
  background: rgba(20, 8, 18, 0.45);
}
.sb-art__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.sb-art__intro {
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(255, 236, 245, 0.86);
  margin: 0 0 8px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--sb-line);
}

.sb-art__intro::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4em;
  line-height: 0.85;
  float: left;
  padding: 6px 8px 0 0;
  color: var(--sb-pink);
  font-weight: 700;
}

.sb-art__html p {
  margin: 0 0 14px;
  line-height: 1.62;
  color: rgba(255, 236, 245, 0.88);
  font-size: 1.02rem;
}

.sb-art__html a { color: #ffb3d0; text-underline-offset: 3px; }
.sb-art__html a:hover { color: #fff; }

.sb-art__faq {
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sb-line);
  background: rgba(255, 255, 255, 0.03);
}

.sb-art__faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.sb-art__faq summary::-webkit-details-marker { display: none; }
.sb-art__faq summary::after {
  content: "+";
  float: right;
  color: var(--sb-gold);
  font-weight: 800;
}
.sb-art__faq[open] summary::after { content: "–"; }
.sb-art__faq p { margin: 10px 0 0; color: var(--sb-muted); line-height: 1.45; }

.sb-art__cta { margin: 32px 0 16px; }

.sb-art__rel {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sb-art__rel a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--sb-line);
  color: #ffb3d0;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
}

.sb-art__rel a:hover {
  border-color: rgba(255, 180, 210, 0.4);
  color: #fff;
}

.sb-art__back {
  margin: 28px 0 0;
  font-size: 0.88rem;
}

.sb-art__back a { color: var(--sb-gold); }

.sb-art-page .seo-foot__nav a { color: #ffb3d0; }
.sb-art-page .seo-foot__nav a:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .sb-art-hub__feature,
  .sb-art-hub__card { transition: none; }
  .sb-art-hub__feature:hover,
  .sb-art-hub__card:hover { transform: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .sb-art-hub__grid { grid-template-columns: repeat(2, 1fr); }
  .sb-art-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    gap: 22px 24px;
  }
}

@media (max-width: 820px) {
  .sb-art-hub__feature {
    grid-template-columns: 1fr;
  }
  .sb-art-hub__feature-visual {
    min-height: 160px;
  }
  .sb-art-layout {
    grid-template-columns: 1fr;
    padding: 14px 16px 64px;
  }
  .sb-art-side {
    position: static;
    order: 2;
  }
  .sb-art-side__list {
    max-height: none;
  }
}

/* Phone */
@media (max-width: 480px) {
  .sb-art-hub { padding: 12px 14px 64px; }
  .sb-art-hub__grid { grid-template-columns: 1fr; gap: 10px; }
  .sb-art-hub__mast h1 { max-width: none; }
  .sb-art-hub__cats { margin: 16px 0 20px; }
  .sb-art-layout { padding: 12px 14px 56px; }
  .sb-art__intro::first-letter { font-size: 2em; }
}

/* Wide desktop */
@media (min-width: 1200px) {
  .sb-art-hub__feature { min-height: 360px; }
}

/* Таблицы сравнения: цитата для поиска и AI, скролл только обёртки */
.sb-art .sb-aeo-wrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
  -webkit-overflow-scrolling: touch;
}
.sb-art table.sb-aeo {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.35;
}
.sb-art table.sb-aeo caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding: 0 0 0.6rem;
  color: var(--sb-gold, #f3c89a);
}
.sb-art table.sb-aeo th,
.sb-art table.sb-aeo td {
  border: 1px solid rgba(255, 180, 210, 0.28);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
.sb-art table.sb-aeo thead th {
  background: rgba(255, 143, 191, 0.12);
}
@media (max-width: 480px) {
  .sb-art table.sb-aeo { font-size: 0.82rem; min-width: 32rem; }
}
