﻿/*
Theme Name: Metrius Blog
Theme URI: https://metrius.pro/
Author: Metrius
Author URI: https://metrius.pro/
Description: WordPress theme for the Metrius blog.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: metrius-blog
*/
/* ============================================================
   Metrius Blog — Design System
   Fonts: Manrope (headings) + Inter (body)
   Brand: #5FD83B (green), #25BFC4 (teal), #0D1117 (dark)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600;700;800&display=swap');

/* Sticky header offset for anchor/TOC links */
html { scroll-padding-top: calc(var(--header-h) + 24px); }

/* ── Custom Properties ────────────────────────────────────── */
:root {
  /* Brand */
  --green:        #5FD83B;
  --green-dark:   #46C424;
  --green-deep:   #16a34a;
  --green-light:  #ecfdf5;
  --teal:         #25BFC4;
  --teal-light:   #e0f7f8;

  /* Neutrals */
  --text:         #0D1117;
  --text-2:       #374151;
  --text-muted:   #6B7280;
  --text-subtle:  #9CA3AF;
  --border:       #E5E7EB;
  --border-2:     #D1D5DB;
  --surface:      #F9FAFB;
  --bg:           #FFFFFF;

  /* Dark (footer + newsletter) */
  --dark:         #0D1117;
  --dark-2:       #111827;
  --dark-3:       #1f2937;
  --dark-text:    #9CA3AF;
  --dark-text-2:  #D1D5DB;
  --dark-border:  #1f2937;

  /* Category accents */
  --cat-analytics: #5FD83B;
  --cat-analytics-bg: #ecfdf5;
  --cat-marketing: #25BFC4;
  --cat-marketing-bg: #e0f7f8;
  --cat-seo:      #a78bfa;
  --cat-seo-bg:   #f5f3ff;
  --cat-cases:    #f97316;
  --cat-cases-bg: #fff7ed;
  --cat-product:  #3b82f6;
  --cat-product-bg: #eff6ff;

  /* Layout */
  --container:    1200px;
  --header-h:     66px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    6px;
  --radius-pill:  100px;
  --pad:          clamp(16px, 4vw, 32px);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:       0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ── Layout Helpers ───────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section { padding: 56px 0; }

/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 200;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.logo__img {
  height: 28px;
  width: auto;
  display: block;
}
.logo__img--full {
  height: 32px;
  min-width: 112px;
  object-fit: contain;
}
.logo--footer { color: #fff; }
.logo--footer span { color: #fff; }
.logo__blog {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  letter-spacing: .02em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-xs);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface); }
.site-nav a.active { color: var(--green-deep); font-weight: 600; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  transition: all .15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn--primary {
  background: linear-gradient(90deg, #5ED83D 0%, #25BFC4 100%);
  border-radius: 13px;
  box-shadow: 0 3px 12px 0 rgba(24,201,93,0.35);
  color: #fff;
}
.btn--primary:hover {
  opacity: .9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px 0 rgba(24,201,93,0.45);
}
.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: 35px;
}
.btn-arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  margin-left: 10px;
  flex-shrink: 0;
}
.btn--ghost {
  border: 1.5px solid var(--border);
  color: var(--text-2);
}
.btn--ghost:hover {
  border-color: var(--border-2);
  background: var(--surface);
}
.btn--white {
  background: #fff;
  color: var(--text);
  font-weight: 700;
}
.btn--white:hover {
  background: #f0fdf4;
}
.btn--sm { padding: 7px 14px; font-size: 0.875rem; }

/* ══════════════════════════════════════════════════════════
   BADGES / CATEGORY TAGS
   ══════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge--analytics { background: var(--cat-analytics-bg); color: var(--green-deep); }
.badge--marketing { background: var(--cat-marketing-bg); color: #0e7490; }
.badge--seo       { background: var(--cat-seo-bg);       color: #6d28d9; }
.badge--cases     { background: var(--cat-cases-bg);     color: #c2410c; }
.badge--product   { background: var(--cat-product-bg);   color: #1d4ed8; }

/* ══════════════════════════════════════════════════════════
   POST META
   ══════════════════════════════════════════════════════════ */
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-subtle);
}
.post-meta__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.post-meta__author { font-weight: 600; color: var(--text-2); }
.post-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   FEATURED POST (homepage hero)
   ══════════════════════════════════════════════════════════ */
.featured { padding: 52px 0 40px; }

.featured-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 52px;
  align-items: start;
}

.featured-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--surface);
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.featured-media:hover img { transform: scale(1.03); }

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 0;
}
.featured-label {
  font-size: 0.6875rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-subtle);
}
.featured-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-top: 0;
}
.featured-title a:hover { color: var(--green-deep); }

.featured-excerpt {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.65;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--green-deep);
  transition: gap .15s;
}
.read-more:hover { gap: 10px; }
.read-more svg { width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════════════════ */
.divider { border: none; border-top: 1px solid var(--border); }

/* ══════════════════════════════════════════════════════════
   CATEGORY FILTER
   ══════════════════════════════════════════════════════════ */
.filter { padding: 28px 0; }
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin-right: 8px;
}
.pill {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  transition: all .15s;
}
.pill:hover {
  border-color: var(--green);
  color: var(--green-deep);
  background: var(--green-light);
}
.pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ══════════════════════════════════════════════════════════
   POSTS GRID
   ══════════════════════════════════════════════════════════ */
.posts { padding-bottom: 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Post Card ────────────────────────────────────────────── */
.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  color: inherit;
}
.post-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.post-card__media {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card__media img { transform: scale(1.05); }

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  flex: 1;
}
.post-card__title {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  transition: color .15s;
}
.post-card:hover .post-card__title { color: var(--green-deep); }
.post-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card__footer { margin-top: 8px; }

/* ══════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 48px 0 56px;
}
.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  color: var(--text-2);
  transition: all .15s;
}
.pagination__item:hover { border-color: var(--green); color: var(--green-deep); }
.pagination__item.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.pagination__item--dots { border-color: transparent; cursor: default; }
.pagination__item--dots:hover { border-color: transparent; color: var(--text-2); }

/* ══════════════════════════════════════════════════════════
   CTA PANEL + NEWSLETTER
   ══════════════════════════════════════════════════════════ */
.newsletter {
  padding: 0 0 56px;
  margin-top: 56px;
}

.cta-panel {
  border-radius: 32px;
  background:
    radial-gradient(ellipse 110% 90% at 50% -5%, rgba(95,216,59,0.22) 0%, rgba(37,191,196,0.12) 42%, transparent 68%),
    #0c1a11;
  overflow: hidden;
}

/* — Newsletter variant (two-column with form) — */
.cta-panel--newsletter { padding: 52px 60px; }

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.nl-heading {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}
.nl-heading .highlight { color: var(--green); }
.nl-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.nl-form {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.nl-input-wrap {
  flex: 1;
  position: relative;
}
.nl-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .15s;
}
.nl-input-wrap input::placeholder { color: var(--text-subtle); }
.nl-input-wrap input:focus { border-color: var(--green); }
.nl-input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}
.newsletter-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}
.newsletter-note a { color: rgba(255,255,255,0.55); text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   ARTICLE PROMO BLOCK (optional, per-post)
   ══════════════════════════════════════════════════════════ */
.article-promo { padding: 0 0 48px; }
.article-promo__card {
  background: #0d1117;
  border-radius: 20px;
  padding: 40px 40px 36px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.article-promo__text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 22px;
  font-family: 'Inter', sans-serif;
}
.article-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  font-family: 'Manrope', sans-serif;
  margin-bottom: 22px;
}
.article-promo__badge strong { color: #fff; }

@media (max-width: 768px) {
  .cta-panel--newsletter { padding: 36px 24px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 28px; }
  .nl-form { flex-direction: column; }
  .newsletter { padding: 0 0 40px; }
  .article-promo__card { padding: 32px 24px 28px; border-radius: 16px; }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-border);
  padding: 52px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-border);
  margin-bottom: 28px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; color: var(--dark-text); line-height: 1.65; max-width: 240px; }

.footer-col h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark-text-2);
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--dark-text);
  transition: color .15s;
}
.footer-col ul li a:hover { color: var(--dark-text-2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--dark-text);
}
.footer-bottom a { color: var(--dark-text); transition: color .15s; }
.footer-bottom a:hover { color: var(--dark-text-2); }
.footer-bottom-links { display: flex; gap: 20px; }

/* ══════════════════════════════════════════════════════════
   SINGLE POST PAGE
   ══════════════════════════════════════════════════════════ */

/* Post Hero */
.post-hero { padding: 44px 0 0; }
.post-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.post-hero__breadcrumb a { color: var(--text-muted); transition: color .15s; }
.post-hero__breadcrumb a:hover { color: var(--green-deep); }
.post-hero__breadcrumb svg { width: 14px; height: 14px; opacity: .5; }

.post-hero__title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  max-width: 820px;
  margin: 16px 0 20px;
}
.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.post-hero__author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-hero__author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.post-hero__author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}
.post-hero__author-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.post-hero__stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.post-hero__stats span { display: flex; align-items: center; gap: 5px; }

.post-featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
  margin-bottom: 48px;
  background: var(--surface);
}
.post-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Post Layout */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
}

/* Article Content */
.post-article { min-width: 0; }

.post-article h2,
.post-article h3,
.post-article h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 2em 0 .75em;
  scroll-margin-top: 90px;
}
.post-article h2 { font-size: 1.625rem; }
.post-article h3 { font-size: 1.25rem; }
.post-article h4 { font-size: 1.0625rem; }

.post-article p { font-size: 1.0625rem; line-height: 1.8; color: var(--text-2); margin-bottom: 1.25em; }
.post-article a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.post-article a:hover { color: var(--green-dark); }

.post-article ul,
.post-article ol {
  margin: 1em 0 1.5em 1.25em;
  list-style: revert;
}
.post-article li { font-size: 1.0625rem; line-height: 1.75; color: var(--text-2); margin-bottom: .4em; }

.post-article blockquote {
  margin: 2em 0;
  padding: 20px 24px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(95,216,59,0.25);
}
.post-article blockquote p {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
}

.post-article code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .875em;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}
.post-article pre {
  background: var(--dark);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-article pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--dark-text-2);
  font-size: 0.9rem;
}

.post-article img {
  border-radius: var(--radius-sm);
  margin: 1.5em 0;
  border: 1px solid var(--border);
}

.post-article .callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  margin: 1.5em 0;
}
.post-article .callout--green {
  background: var(--green-light);
  border-color: #bbf7d0;
}
.post-article .callout__icon { font-size: 1.25rem; flex-shrink: 0; line-height: 1.5; }
.post-article .callout p { margin: 0; font-size: 1rem; }

/* Post Sidebar */
.post-sidebar { position: sticky; top: calc(var(--header-h) + 24px); }

.toc {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.toc__title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.toc__list { display: flex; flex-direction: column; gap: 2px; }
.toc__item a {
  display: block;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all .15s;
  line-height: 1.4;
}
.toc__item a:hover {
  color: var(--text-2);
  background: var(--surface);
}
.toc__item.active a {
  color: var(--green-deep);
  background: var(--green-light);
  font-weight: 600;
}
.toc__item--h3 a { padding-left: 22px; font-size: 0.8125rem; }

/* Sidebar CTA — «7 дней бесплатно» card */
.sidebar-cta {
  background: linear-gradient(124.52deg, rgba(95,216,59,0.1) 14.78%, rgba(37,191,196,0.1) 90.49%);
  border: 1px solid rgba(95,216,59,0.2);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}
.sidebar-cta__title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #15311C;
  margin-bottom: 6px;
}
.sidebar-cta__text {
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.55;
  color: #0F4724;
  margin-bottom: 14px;
}
.sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 28px;
  border-radius: 100px;
  background: #6BC63F;
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  transition: background .15s, transform .15s;
}
.sidebar-cta__btn:hover { background: #5DB835; transform: translateY(-1px); }

/* Post Footer */
.post-footer {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.post-tag {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all .15s;
}
.post-tag:hover { border-color: var(--green); color: var(--green-deep); background: var(--green-light); }

/* Share */
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.post-share__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all .15s;
}
.share-btn:hover { border-color: var(--border-2); background: var(--surface); }
.share-btn svg { width: 16px; height: 16px; }

/* Author Card */
.author-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 56px;
  background: var(--surface);
}
.author-card__img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.author-card__name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.author-card__role { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 10px; }
.author-card__bio { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }

/* Related Posts */
.related { padding: 0 0 72px; }
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  :root { --header-h: 58px; }
  .featured-inner { grid-template-columns: 1fr; gap: 28px; }
  .featured-media { aspect-ratio: 16/9; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .post-sidebar { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .burger { display: flex; }
  .post-hero__stats { margin-left: 0; width: 100%; }
  .post-featured-img { aspect-ratio: 16/9; }
  .author-card { flex-direction: column; }
  .header-actions .btn--ghost { display: none; }
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .posts-grid { gap: 16px; }
  .pagination { flex-wrap: wrap; }
}

/* Mobile Nav (open state) */
.site-header.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 16px;
  gap: 4px;
  box-shadow: var(--shadow);
}
.site-header.nav-open .site-nav a { padding: 10px 14px; }

/* WordPress integration */
.site-nav__menu,
.footer-col .menu {
  display: contents;
  list-style: none;
}
.site-nav li,
.footer-col li {
  list-style: none;
}
.post-card .avatar,
.post-hero__author .avatar,
.post-meta__avatar,
.author-card .avatar {
  border-radius: 50%;
  object-fit: cover;
}
.page-links,
.comments-area {
  max-width: var(--container);
  margin: 32px auto;
  padding: 0 var(--pad);
}

.post-article .cta-block {
  background: var(--dark);
  border-radius: 16px;
  padding: 32px;
  margin: 52px 0 0;
  text-align: center;
}

.post-article .cta-block p {
  color: rgba(255,255,255,.72);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  margin: 0 auto 20px;
  max-width: 620px;
}

.post-article .cta-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 100px;
  color: var(--green);
  font-family: 'Manrope', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 22px;
  padding: 10px 20px;
}

.post-article .cta-promo strong {
  color: #fff;
}

.post-article .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #5ED83D 0%, #25BFC4 100%);
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(24,201,93,.35);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 13px 22px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
}

.post-article .cta-btn:hover {
  color: #fff;
  opacity: .95;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(24,201,93,.42);
}

/* Forced cleanup for the article template */
.comments-area,
.comment-respond,
#comments {
  display: none !important;
}

.author-card__bio {
  display: none !important;
}

.footer-brand .logo span {
  display: none !important;
}

@media (max-width: 540px) {
  .post-article .cta-block {
    padding: 28px 20px;
  }

  .post-article .cta-promo {
    border-radius: 16px;
  }
}

