/* Стили статей. Токены — те же, что на главной (палитра Tezeris). */
:root {
  --bg: #f5f7f9; --surface: #fff; --surface3: #eef1f5; --border: #dfe5ec; --border-strong: #c8d2dd;
  --text: #0f172a; --text-2: #5b6779; --text-3: #7d8b9c; --accent: #0b7a52;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.04);
  --shadow: 0 2px 4px rgba(16,24,40,.06), 0 10px 28px rgba(16,24,40,.10);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, rgba(15,23,42,.13) 1.2px, transparent 1.6px);
  background-size: 1.5cm 1.5cm; background-attachment: fixed;
  color: var(--text); font-family: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid #7c5cff; outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

nav { position: sticky; top: 0; z-index: 50; background: rgba(245,247,249,.85); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-logo { font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px;
  border-radius: 12px; border: 0; font: 600 16px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
}
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background: linear-gradient(110deg, #cb11ab, #7c5cff 50%, #005bff) 0 0 / 200% 100%;
  box-shadow: 0 8px 22px -8px rgba(124,92,255,.65);
  transition: background-position .5s var(--ease-out), transform .25s var(--ease-out), box-shadow .25s;
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(0,91,255,.6); }
.nav-links .btn { min-height: 40px; padding: 0 18px; font-size: 15px; color: #fff; }

.hl { background: linear-gradient(90deg, #cb11ab, #7c5cff 55%, #005bff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #7c5cff; }

/* Тёмный градиентный блок — как на главной */
.glow {
  border-radius: 22px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(203,17,171,.55), transparent 60%),
    radial-gradient(65% 95% at 100% 10%, rgba(0,91,255,.75), transparent 62%),
    radial-gradient(60% 90% at 65% 115%, rgba(15,157,88,.6), transparent 60%), #0c1022;
  background-size: 160% 160%; animation: flow 18s ease-in-out infinite alternate;
  box-shadow: 0 24px 60px -24px rgba(72,17,115,.55);
}
.glow::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: -1;
  background: linear-gradient(120deg, #cb11ab, #7c5cff, #005bff, #0f9d58, #cb11ab); background-size: 300% 100%;
  animation: flow 10s linear infinite alternate;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes flow { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
.glow .btn { background: #fff; color: #0c1022; box-shadow: 0 8px 24px -8px rgba(124,92,255,.7); transition: transform .25s var(--ease-out); }
.glow .btn:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .glow, .glow::before { animation: none; } .btn-primary { transition: none; } }

/* Список статей */
.blog-hero { padding: 64px 0 32px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.blog-hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 14px; }
.blog-hero p { color: var(--text-2); font-size: 18px; max-width: 640px; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0 32px; }
.cats button {
  min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); cursor: pointer;
}
.cats button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 72px; }
.post-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.post-card h2, .post-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { color: var(--text-2); font-size: 15px; line-height: 1.55; flex: 1; }
.post-card .more { font-size: 14px; font-weight: 600; color: #7c5cff; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px; color: #fff; background: #5b6779; }
.tag-wb { background: linear-gradient(90deg, #cb11ab, #481173); }
.tag-ozon { background: #005bff; }
.tag-tezeris { background: linear-gradient(90deg, #0b7a52, #0f9d58); }
.tag-econ { background: #b45309; }
.tag-ads { background: #d9488f; }
.tag-faq { background: #0f172a; }

/* Статья */
.crumbs { font-size: 14px; color: var(--text-3); padding-top: 32px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.article { max-width: 760px; margin: 0 auto; padding: 16px 0 48px; }
.article header { margin: 16px 0 32px; }
.article h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; margin: 12px 0 14px; }
.article .lead { font-size: 19px; color: var(--text-2); }
.meta { font-size: 14px; color: var(--text-3); margin-top: 14px; }
.content h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 40px 0 14px; }
.content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 10px; }
.content p { margin-bottom: 16px; }
.content ul, .content ol { margin: 0 0 18px 24px; }
.content li { margin-bottom: 8px; }
.content li::marker { color: #7c5cff; font-weight: 700; }
.content strong { font-weight: 700; background: linear-gradient(transparent 58%, rgba(255,216,77,.55) 58%, rgba(255,216,77,.55) 92%, transparent 92%); }
.content a { color: #5b3fd9; text-underline-offset: 3px; }
.content blockquote {
  margin: 24px 0; padding: 18px 22px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); border-left: 4px solid #7c5cff; box-shadow: var(--shadow-sm);
}
.content blockquote p:last-child { margin: 0; }
.content code { font-size: .9em; background: var(--surface3); padding: 2px 6px; border-radius: 6px; }
.formula { font-weight: 600; }

.article-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px; margin: 48px 0 0; }
.article-cta h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,.8); font-size: 16px; }
.article-cta b { color: #ffd84d; }

.related { padding: 8px 0 72px; }
.related h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }
.related .posts { padding: 0; }

footer { padding: 32px 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .posts { grid-template-columns: 1fr; }
  .nav-links li:not(:last-child) { display: none; }
  .article-cta { grid-template-columns: 1fr; padding: 24px; }
  body { font-size: 16px; }
}

/* Обложки и картинки в статьях */
.post-card { overflow: hidden; }
.post-cover { margin: -24px -24px 6px; width: calc(100% + 48px); max-width: none; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-cover { margin-top: 24px; border-radius: 18px; box-shadow: var(--shadow); }
.content figure { margin: 24px 0; }
.content figure img { border-radius: 14px; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.content figcaption { font-size: 14px; color: var(--text-3); margin-top: 8px; text-align: center; }
.tag-cases { background: linear-gradient(90deg, #cb11ab, #7c5cff, #005bff); }
