/* ============================================
   FiveBBC Blog Stylesheet
   Мигрирован с fivebbc.com (PHP/Twig)
   Включает: Blog listing (featured/secondary/grid),
   Blog post (sidebar, share, CTA banner),
   Article.css (post-body внутренние стили),
   Money page overrides, Responsive
   ============================================ */

/* ============================================
   BLOG PAGE STYLES (for non-authenticated users)
   ============================================ */

.blog-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* NOT_AUTH: Add top padding to compensate for fixed header */
body.not-auth .blog-page {
  padding-top: 104px; /* 64px header + 40px spacing */
}

/* Blog Header */
.blog-header {
  text-align: center;
  margin-bottom: 48px;
}

.blog-header h1 {
  font-size: 42px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.blog-header p {
  font-size: 18px;
  color: var(--gray-600);
  margin: 0;
  max-width: 500px;
  margin: 0 auto;
}

/* Featured Post */
.featured-post {
  margin-bottom: 48px;
}

.featured-link {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.featured-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.featured-link:hover .featured-image img {
  transform: scale(1.05);
}

.featured-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-content {
  padding: 40px 40px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.post-date {
  color: var(--gray-500);
  font-size: 13px;
}

.featured-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.featured-excerpt {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s ease;
}

.featured-link:hover .read-more {
  gap: 12px;
}

/* Secondary Posts (2 columns) */
.secondary-posts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.secondary-post {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.secondary-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.secondary-post:hover .post-image img {
  transform: scale(1.05);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.post-content {
  padding: 24px;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 12px;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 16px;
}

.read-more-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
}

.post-link:hover .read-more-link {
  color: var(--primary-hover);
}

/* Posts Grid (3 columns) */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.post-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 10px;
  line-height: 1.4;
}

.card-excerpt {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 14px;
}

.read-time {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 24px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--gray-900);
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-number:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.pagination-number.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.blog-empty svg {
  color: var(--gray-400);
  margin-bottom: 20px;
}

.blog-empty h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 8px;
}

.blog-empty p {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0;
}

/* Blog Page Responsive */
@media (max-width: 1024px) {
  .featured-link {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 32px;
  }

  .featured-title {
    font-size: 24px;
  }

  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-page {
    padding: 32px 16px 60px;
  }

  /* NOT_AUTH: Compensate for fixed header on mobile */
  body.not-auth .blog-page {
    padding-top: 96px; /* 64px header + 32px spacing */
  }

  .blog-header h1 {
    font-size: 32px;
  }

  .blog-header p {
    font-size: 16px;
  }

  .secondary-posts {
    grid-template-columns: 1fr;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 24px;
  }

  .featured-title {
    font-size: 20px;
  }

  .featured-excerpt {
    font-size: 14px;
  }

  .pagination-btn span {
    display: none;
  }

  .pagination-btn {
    padding: 10px 14px;
  }
}

/* ============================================
   BLOG POST PAGE STYLES
   ============================================ */

.blog-post-page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px 0; /* Extra top padding for fixed header */
  /* Flex layout: sidebar renders outside .blog-post-container on server */
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

/* Убираем ограничение .container внутри blog-post-page */
.blog-post-page > .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.blog-post-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  /* Grow to fill available width next to sidebar */
  flex: 1;
  min-width: 0;
}

/* White card container for article content */
.blog-post-card {
  flex: 1;
  min-width: 0;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.blog-post-sidebar {
  width: 300px;
  flex-shrink: 0;
  align-self: start;
  position: sticky;
  top: 90px;
}

/* Back Link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%; /* Force own flex line in .blog-post-page wrap layout */
  color: var(--gray-600);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  transition: color 0.2s ease;
  /* Full width so it stays above the two-column layout */
  width: 100%;
}

.back-to-blog:hover {
  color: var(--primary);
}

/* Post Header */
.post-header {
  margin-bottom: 32px;
}

.blog-post-card .post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-post-card .post-category {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.meta-separator {
  color: var(--gray-300);
}

.blog-post-card .post-date {
  color: var(--gray-500);
  font-size: 14px;
}

.post-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Featured Image */
.post-featured-image {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Post Body */
.post-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
}

.post-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 40px 0 16px;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 32px 0 12px;
}

.post-body p {
  margin: 0 0 20px;
}

.post-body a {
  color: var(--primary);
  text-decoration: underline;
}

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

.post-body ul,
.post-body ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 24px 0;
}

.post-body blockquote {
  border-left: 4px solid var(--primary);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--gray-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--gray-600);
}

.post-body strong,
.post-body b {
  font-weight: 600;
  color: var(--gray-900);
}

/* Post Footer */
.post-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.post-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Facebook Comments */
.post-comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 24px;
}

.comments-title svg {
  color: var(--primary);
}

.fb-comments {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 20px;
}

.fb-comments iframe {
  width: 100% !important;
}

/* Sticky Sidebar */
.sidebar-sticky {
  position: sticky;
  top: 90px; /* Account for fixed header height */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-block {
  background: var(--white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Share Block */
.share-block {
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.share-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.share-header svg {
  color: var(--primary);
}

.share-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.share-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 16px;
}

.share-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: 10px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-facebook {
  background: linear-gradient(135deg, #4267B2 0%, #3b5998 100%);
}

.share-linkedin {
  background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.share-twitter {
  background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
}

.share-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.copy-link-wrapper {
  display: flex;
  gap: 8px;
  padding: 8px;
  background: var(--gray-100);
  border-radius: 10px;
}

.copy-link-input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  color: var(--gray-600);
  background: var(--white);
}

.copy-link-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.copy-link-btn:hover {
  background: var(--primary-dark);
}

.copy-link-btn.copied {
  background: var(--green);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(145deg, var(--primary) 0%, #0052cc 50%, #003d99 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  margin-bottom: 16px;
}

.cta-icon svg {
  color: white;
}

.cta-banner h4 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.cta-description {
  font-size: 13px;
  opacity: 0.85;
  margin: 0 0 20px;
  line-height: 1.5;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  background: white;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
  padding: 64px 24px;
  margin-top: 64px;
  width: 100%; /* Force own flex line in .blog-post-page wrap layout */
}

.related-posts-container {
  max-width: 1200px;
  margin: 0 auto;
}

.related-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 32px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.related-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.related-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
  transform: scale(1.05);
}

.related-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
}

.related-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.related-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.related-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.4;
  margin: 0 0 8px;
}

.related-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.related-read-more {
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.related-card:hover .related-read-more {
  text-decoration: underline;
}

/* ============================================
   POST FAQ — Аккордеон FAQ на странице поста
   ============================================ */
.post-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #e2e8f0;
}

.post-faq > h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 24px;
  border-left: 4px solid #0ea5e9;
  padding-left: 12px;
}

.post-faq > h2::after {
  display: none;
}

.post-faq .faq-item {
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s;
}

.post-faq .faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #bae6fd;
}

.post-faq .faq-item .q {
  padding: 16px 48px 16px 20px;
  background: #f8fafc;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.25s;
}

.post-faq .faq-item .q::after {
  content: '\FF0B';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #0ea5e9;
  font-weight: 700;
  font-size: 1.3em;
  transition: transform 0.3s;
}

.post-faq .faq-item.active .q {
  background: #e0f2fe;
  color: #0c4a6e;
}

.post-faq .faq-item.active .q::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
  color: #0284c7;
}

.post-faq .faq-item .a {
  display: none;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.7;
  background: #ffffff;
}

.post-faq .faq-item .a p {
  margin: 0;
  text-align: left;
}

.post-faq .faq-item.active .a {
  display: block;
  animation: blogPostFadeInDown 0.3s ease;
}

/* Tags под автором */
.post-tags {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Author Box */
.author-box {
  margin-top: 48px;
  padding: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.author-box-photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-info h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.author-box-info h3 a {
  color: var(--primary, #0284c7);
  text-decoration: none;
}

.author-box-info h3 a:hover {
  text-decoration: underline;
}

.author-box-title {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.author-box-bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.author-box-social {
  margin-top: 12px;
  display: flex;
  gap: 12px;
}

.author-box-social a {
  font-size: 0.85rem;
  color: var(--primary, #0284c7);
  text-decoration: none;
}

.author-box-social a:hover {
  text-decoration: underline;
}

/* Blog Post Responsive */
@media (max-width: 1024px) {
  .blog-post-page {
    flex-direction: column;
  }

  .blog-post-container {
    flex-direction: column;
  }

  .blog-post-card {
    padding: 32px;
  }

  .blog-post-sidebar {
    width: 100%;
    position: static;
    order: 1;
  }

  .sidebar-sticky {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-block {
    flex: 1;
    min-width: 280px;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-post-page {
    padding: 80px 16px 0;
  }

  .blog-post-card {
    padding: 20px;
  }

  .post-title {
    font-size: 28px;
  }

  .post-body {
    font-size: 16px;
  }

  .sidebar-sticky {
    flex-direction: column;
  }

  .sidebar-block {
    min-width: 100%;
  }

  .related-posts {
    padding: 48px 16px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-title {
    font-size: 24px;
  }

  /* FAQ мобильные стили */
  .post-faq .faq-item .q {
    padding: 14px 42px 14px 16px;
    font-size: 0.98rem;
  }

  .post-faq .faq-item .a {
    padding: 14px 16px;
  }

  /* TOC мобильные стили */
  .blog-post-card .toc {
    margin: 1.5rem 0;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   ARTICLE CSS — Blog post & simple-page content styles
   Scoped to: :is(.blog-post-page .post-body, .simple-page-content)
   Merged from article.css
   ══════════════════════════════════════════════════════════════════════ */

/* ==========================================================================
   ARTICLE CSS - Scoped to blog posts AND custom simple pages
   Targets: :is(.blog-post-page .post-body, .simple-page-content)  |  .simple-page-content
   Uses :is() selector for shared styles across both page types.
   ========================================================================== */


/* ============================================
   POST BODY - Main article content container
   Replaces .prose / .article from original
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #334155;
}

/* Force left alignment for all post-body text */
:is(.blog-post-page .post-body, .simple-page-content),
:is(.blog-post-page .post-body, .simple-page-content) p,
:is(.blog-post-page .post-body, .simple-page-content) li,
:is(.blog-post-page .post-body, .simple-page-content) td,
:is(.blog-post-page .post-body, .simple-page-content) th,
:is(.blog-post-page .post-body, .simple-page-content) h1,
:is(.blog-post-page .post-body, .simple-page-content) h2,
:is(.blog-post-page .post-body, .simple-page-content) h3,
:is(.blog-post-page .post-body, .simple-page-content) h4,
:is(.blog-post-page .post-body, .simple-page-content) h5,
:is(.blog-post-page .post-body, .simple-page-content) h6 {
  text-align: left !important;
}

/* Reset first/last margins */
:is(.blog-post-page .post-body, .simple-page-content) > *:first-child {
  margin-top: 0 !important;
}

:is(.blog-post-page .post-body, .simple-page-content) > *:last-child {
  margin-bottom: 0 !important;
}

/* Default spacing for block elements */
:is(.blog-post-page .post-body, .simple-page-content) p,
:is(.blog-post-page .post-body, .simple-page-content) ul:not(.checklist),
:is(.blog-post-page .post-body, .simple-page-content) ol,
:is(.blog-post-page .post-body, .simple-page-content) blockquote,
:is(.blog-post-page .post-body, .simple-page-content) pre,
:is(.blog-post-page .post-body, .simple-page-content) figure,
:is(.blog-post-page .post-body, .simple-page-content) .callout,
:is(.blog-post-page .post-body, .simple-page-content) .toc,
:is(.blog-post-page .post-body, .simple-page-content) details,
:is(.blog-post-page .post-body, .simple-page-content) hr,
:is(.blog-post-page .post-body, .simple-page-content) .table-wrap {
  margin-top: 1.4em;
  margin-bottom: 1.4em;
}


/* ============================================
   BREADCRUMBS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .breadcrumbs {
  font-size: 0.9rem;
  margin: 1.25rem 0 2.5rem;
  color: #64748b;
}

:is(.blog-post-page .post-body, .simple-page-content) .breadcrumbs a {
  color: #0ea5e9;
  text-decoration: none;
  transition: color 0.2s;
}

:is(.blog-post-page .post-body, .simple-page-content) .breadcrumbs a:hover {
  color: #0284c7;
  text-decoration: underline;
}

:is(.blog-post-page .post-body, .simple-page-content) .breadcrumbs .sep {
  opacity: 0.5;
  margin: 0 0.5em;
}


/* ============================================
   HEADER - Article title and meta inside content
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) header {
  margin-bottom: 2.5rem;
}

:is(.blog-post-page .post-body, .simple-page-content) header h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: #0c4a6e;
  margin: 0.5em 0;
  font-weight: 700;
  line-height: 1.2;
}

:is(.blog-post-page .post-body, .simple-page-content) header p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0.5rem 0;
}

:is(.blog-post-page .post-body, .simple-page-content) header time {
  color: #64748b;
}


/* ============================================
   HEADINGS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) h2 {
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

:is(.blog-post-page .post-body, .simple-page-content) h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.5em;
  background: linear-gradient(90deg, #0ea5e9, transparent);
  border-radius: 2px;
}

:is(.blog-post-page .post-body, .simple-page-content) h3 {
  font-size: clamp(1.4rem, 2vw, 1.6rem);
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

:is(.blog-post-page .post-body, .simple-page-content) h3::after {
  content: '';
  display: block;
  width: 45px;
  height: 2px;
  margin-top: 0.4em;
  background: linear-gradient(90deg, #0ea5e9, transparent);
  border-radius: 2px;
}

:is(.blog-post-page .post-body, .simple-page-content) h4 {
  font-size: 1.2rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
}

:is(.blog-post-page .post-body, .simple-page-content) h5 {
  font-size: 1rem;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

:is(.blog-post-page .post-body, .simple-page-content) h6 {
  font-size: 0.95rem;
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
  color: #64748b;
}

/* Anchor links in headings */
:is(.blog-post-page .post-body, .simple-page-content) .h-anchor {
  margin-left: 0.5em;
  text-decoration: none;
  color: #0ea5e9;
  opacity: 0;
  font-weight: 400;
  transition: opacity 0.2s;
}

:is(.blog-post-page .post-body, .simple-page-content) h2:hover .h-anchor,
:is(.blog-post-page .post-body, .simple-page-content) h3:hover .h-anchor,
:is(.blog-post-page .post-body, .simple-page-content) h4:hover .h-anchor {
  opacity: 0.7;
}

:is(.blog-post-page .post-body, .simple-page-content) .h-anchor:hover {
  opacity: 1 !important;
}


/* ============================================
   PARAGRAPHS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) p {
  color: #334155;
  line-height: 1.75;
  margin-top: 1em;
  margin-bottom: 1em;
}

:is(.blog-post-page .post-body, .simple-page-content) strong {
  color: #1e293b;
  font-weight: 600;
}

:is(.blog-post-page .post-body, .simple-page-content) em {
  color: #475569;
  font-style: italic;
}

:is(.blog-post-page .post-body, .simple-page-content) mark {
  background: #e0f2fe;
  color: #0c4a6e;
  padding: 0.15em 0.4em;
  border-radius: 0.25em;
  font-weight: 500;
}


/* ============================================
   LINKS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) a {
  color: #0ea5e9;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 3px;
  transition: all 0.2s;
}

:is(.blog-post-page .post-body, .simple-page-content) a:hover {
  color: #0284c7;
  text-decoration-thickness: 0.14em;
}


/* ============================================
   LISTS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) ul:not(.checklist),
:is(.blog-post-page .post-body, .simple-page-content) ol {
  padding-left: 2rem;
}

:is(.blog-post-page .post-body, .simple-page-content) ul:not(.checklist) {
  list-style: disc;
}

:is(.blog-post-page .post-body, .simple-page-content) ol {
  list-style: decimal;
}

:is(.blog-post-page .post-body, .simple-page-content) li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  color: #334155;
  line-height: 1.7;
}

:is(.blog-post-page .post-body, .simple-page-content) li::marker {
  color: #0ea5e9;
}

/* Nested lists */
:is(.blog-post-page .post-body, .simple-page-content) ul:not(.checklist) ul:not(.checklist),
:is(.blog-post-page .post-body, .simple-page-content) ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* Checklist style */
:is(.blog-post-page .post-body, .simple-page-content) ul.checklist {
  list-style: none;
  padding-left: 0;
  margin-top: 1.2em;
  margin-bottom: 1.2em;
}

:is(.blog-post-page .post-body, .simple-page-content) ul.checklist li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.7em;
}

:is(.blog-post-page .post-body, .simple-page-content) ul.checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.15em;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  font-size: 0.75em;
  width: 1.4em;
  height: 1.4em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}


/* ============================================
   TABLES - .table-wrap variant (prose-style)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:is(.blog-post-page .post-body, .simple-page-content) table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 0.97rem;
}

:is(.blog-post-page .post-body, .simple-page-content) thead {
  background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
}

:is(.blog-post-page .post-body, .simple-page-content) th {
  padding: 14px 16px;
  text-align: left !important;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #93c5fd;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

:is(.blog-post-page .post-body, .simple-page-content) td {
  padding: 14px 16px;
  text-align: left !important;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

:is(.blog-post-page .post-body, .simple-page-content) tbody tr:nth-child(even) {
  background: #f9fafb;
}

:is(.blog-post-page .post-body, .simple-page-content) tbody tr:hover {
  background: #eff6ff;
}

/* Table cell colors */
:is(.blog-post-page .post-body, .simple-page-content) .td-good {
  color: #16a34a;
  font-weight: 600;
}

:is(.blog-post-page .post-body, .simple-page-content) .td-bad {
  color: #dc2626;
  font-weight: 600;
}

:is(.blog-post-page .post-body, .simple-page-content) .td-neutral {
  color: #64748b;
  font-weight: 600;
}

/* .table-wrapper variant (article-style) */
:is(.blog-post-page .post-body, .simple-page-content) .table-wrapper {
  overflow-x: auto;
  margin: 36px 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* .quality-table variant */
:is(.blog-post-page .post-body, .simple-page-content) .quality-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

:is(.blog-post-page .post-body, .simple-page-content) .quality-table thead {
  background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
}

:is(.blog-post-page .post-body, .simple-page-content) .quality-table th {
  padding: 14px 16px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 2px solid #93c5fd;
  font-size: 0.9rem;
  text-transform: uppercase;
}

:is(.blog-post-page .post-body, .simple-page-content) .quality-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

:is(.blog-post-page .post-body, .simple-page-content) .quality-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

:is(.blog-post-page .post-body, .simple-page-content) .quality-table tbody tr:hover {
  background: #eff6ff;
}

/* Table interpretation note */
:is(.blog-post-page .post-body, .simple-page-content) .table-interpretation {
  margin-top: 18px;
  background: #f8fafc;
  border-left: 4px solid #0ea5e9;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.96rem;
  color: #475569;
}


/* ============================================
   TABLE OF CONTENTS
   ============================================ */
/* TOC — как на исходнике fivebbc.com (.in-article-nav) */
:is(.blog-post-page .post-body, .simple-page-content) .toc,
.blog-post-card .toc {
  max-width: none;
  margin: 2rem 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc-title,
.blog-post-card .toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.8rem;
  padding-bottom: 0;
  padding-left: 12px;
  border-bottom: none;
  border-left: 4px solid #0ea5e9;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc ol,
.blog-post-card .toc ol {
  list-style: decimal;
  margin: 0;
  padding-left: 1.4rem;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc li,
.blog-post-card .toc li {
  margin: 0.5rem 0;
  text-align: left !important;
  color: #334155;
  line-height: 1.6;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc li::before,
.blog-post-card .toc li::before {
  display: none;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc li::marker,
.blog-post-card .toc li::marker {
  color: #0ea5e9;
  font-weight: 600;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc a,
.blog-post-card .toc a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc a:hover,
.blog-post-card .toc a:hover {
  color: #0284c7;
  text-decoration: underline;
}

/* Вложенные TOC элементы */
:is(.blog-post-page .post-body, .simple-page-content) .toc ol ol,
.blog-post-card .toc ol ol {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  padding-left: 1.4rem;
  border-left: 2px dashed #dbeafe;
  list-style: decimal;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc ol ol li,
.blog-post-card .toc ol ol li {
  margin: 0.3rem 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc ol ol a,
.blog-post-card .toc ol ol a {
  font-size: 0.95rem;
  color: #38bdf8;
  font-weight: 500;
}

/* TOC clean-list variant */
:is(.blog-post-page .post-body, .simple-page-content) .toc-list-clean {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc-list-clean li {
  padding-left: 14px;
  border-left: 3px solid rgba(59, 130, 246, 0.15);
  transition: all 0.25s ease;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc-list-clean li:hover {
  border-left-color: #3b82f6;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc-list-clean a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

:is(.blog-post-page .post-body, .simple-page-content) .toc-list-clean a:hover {
  color: #1d4ed8;
  transform: translateX(3px);
}


/* ============================================
   BLOCKQUOTES
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) blockquote {
  margin: 2rem 0;
  padding: 1em 1.4em;
  border-left: 4px solid #0ea5e9;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.08), transparent 60%);
  border-radius: 0 12px 12px 0;
  color: #0f172a;
  font-style: italic;
}

:is(.blog-post-page .post-body, .simple-page-content) blockquote p {
  margin: 0.5em 0;
}


/* ============================================
   CODE
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) code {
  font-family: 'SFMono-Regular', 'Consolas', 'Monaco', monospace;
  font-size: 0.9em;
  background: rgba(14, 165, 233, 0.08);
  padding: 0.2em 0.4em;
  border-radius: 0.3em;
  color: #0369a1;
}

:is(.blog-post-page .post-body, .simple-page-content) pre {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  background: #0b1022;
  color: #f8fafc;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

:is(.blog-post-page .post-body, .simple-page-content) pre code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 0.9rem;
}


/* ============================================
   IMAGES & FIGURES
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) figure {
  margin: 0;
  text-align: center;
  max-width: 100% !important;
}

:is(.blog-post-page .post-body, .simple-page-content) figure img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: block;
  margin: 0 auto;
}

:is(.blog-post-page .post-body, .simple-page-content) figcaption {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: #64748b;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

:is(.blog-post-page .post-body, .simple-page-content) img:not(figure img) {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}

/* Additional image style (block-centered with shadow) */
:is(.blog-post-page .post-body, .simple-page-content) img {
  display: block;
  margin: 30px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

/* Floating figures */
:is(.blog-post-page .post-body, .simple-page-content) figure.fig-left,
:is(.blog-post-page .post-body, .simple-page-content) figure.float-left {
  float: left;
  width: 45%;
  max-width: 420px;
  margin: 1rem 2rem 1.5rem 0;
}

:is(.blog-post-page .post-body, .simple-page-content) figure.fig-right,
:is(.blog-post-page .post-body, .simple-page-content) figure.float-right {
  float: right;
  width: 45%;
  max-width: 420px;
  margin: 1rem 0 1.5rem 2rem;
}


/* ============================================
   CALLOUTS (.callout)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .callout {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 5px solid #0ea5e9;
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:is(.blog-post-page .post-body, .simple-page-content) .callout p {
  margin: 0.5em 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .callout.info {
  background: #e5f1f9;
  border-left-color: #0ea5e9;
}

:is(.blog-post-page .post-body, .simple-page-content) .callout.tip {
  background: #e9f9f1;
  border-left-color: #16a34a;
}

:is(.blog-post-page .post-body, .simple-page-content) .callout.warn {
  background: #fffbe9;
  border-left-color: #f59e0b;
}


/* ============================================
   NOTE / TIP / WARN BLOCKS (standalone classes)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .note,
:is(.blog-post-page .post-body, .simple-page-content) .tip,
:is(.blog-post-page .post-body, .simple-page-content) .warn {
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem 1.2rem 1.2rem;
  border-radius: 12px;
  position: relative;
  line-height: 1.7;
  font-size: 0.98rem;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Icon base for note/tip/warn */
:is(.blog-post-page .post-body, .simple-page-content) .note::before,
:is(.blog-post-page .post-body, .simple-page-content) .tip::before,
:is(.blog-post-page .post-body, .simple-page-content) .warn::before {
  position: absolute;
  left: 1.1rem;
  top: 2.2rem;
  font-size: 1.1rem;
  line-height: 1;
}

/* NOTE (info) */
:is(.blog-post-page .post-body, .simple-page-content) .note {
  background: #f0f9ff;
  border-left: 5px solid #0ea5e9;
}

:is(.blog-post-page .post-body, .simple-page-content) .note strong {
  color: #0c4a6e;
}

/* TIP (success) */
:is(.blog-post-page .post-body, .simple-page-content) .tip {
  background: #ecfdf5;
  border-left: 5px solid #10b981;
}

:is(.blog-post-page .post-body, .simple-page-content) .tip strong {
  color: #065f46;
}

/* WARN (warning) */
:is(.blog-post-page .post-body, .simple-page-content) .warn {
  background: #fffbeb;
  border-left: 5px solid #f59e0b;
}

:is(.blog-post-page .post-body, .simple-page-content) .warn strong {
  color: #92400e;
}

/* Inner text cleanup for note/tip/warn */
:is(.blog-post-page .post-body, .simple-page-content) .note p,
:is(.blog-post-page .post-body, .simple-page-content) .tip p,
:is(.blog-post-page .post-body, .simple-page-content) .warn p {
  margin: 0.4em 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .note p:first-child,
:is(.blog-post-page .post-body, .simple-page-content) .tip p:first-child,
:is(.blog-post-page .post-body, .simple-page-content) .warn p:first-child {
  margin-top: 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .note p:last-child,
:is(.blog-post-page .post-body, .simple-page-content) .tip p:last-child,
:is(.blog-post-page .post-body, .simple-page-content) .warn p:last-child {
  margin-bottom: 0;
}


/* ============================================
   COLORFUL TIP BLOCKS (.tip-block)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .tip-block {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 16px 0;
  font-weight: 500;
  color: #0f172a;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

:is(.blog-post-page .post-body, .simple-page-content) .tip-blue {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
}

:is(.blog-post-page .post-body, .simple-page-content) .tip-purple {
  background: #f5f3ff;
  border-left: 4px solid #6366f1;
}

:is(.blog-post-page .post-body, .simple-page-content) .tip-green {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
}

:is(.blog-post-page .post-body, .simple-page-content) .tip-yellow {
  background: #fffbeb;
  border-left: 4px solid #facc15;
}

:is(.blog-post-page .post-body, .simple-page-content) .tip-pink {
  background: #fdf2f8;
  border-left: 4px solid #f472b6;
}


/* ============================================
   DETAILS / SUMMARY (accordion)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) details {
  margin: 1.8rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f9fafb;
}

:is(.blog-post-page .post-body, .simple-page-content) details[open] {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

:is(.blog-post-page .post-body, .simple-page-content) details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
  user-select: none;
}

:is(.blog-post-page .post-body, .simple-page-content) details summary::-webkit-details-marker {
  display: none;
}

:is(.blog-post-page .post-body, .simple-page-content) details summary::before {
  content: '\25B8';
  display: inline-block;
  margin-right: 0.6em;
  color: #0ea5e9;
  transition: transform 0.2s;
}

:is(.blog-post-page .post-body, .simple-page-content) details[open] summary::before {
  transform: rotate(90deg);
}

:is(.blog-post-page .post-body, .simple-page-content) details > *:not(summary) {
  margin-top: 1em;
}


/* ============================================
   FAQ - div-based variant (.faq / .faq-item)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .faq {
  max-width: 1320px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item {
  margin-bottom: 1.2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #bae6fd;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item .q {
  padding: 1.1rem 3.5rem 1.1rem 1.5rem;
  background: #f8fafc;
  font-weight: 600;
  font-size: 1.05rem;
  color: #111827;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.25s;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item .q::after {
  content: '\FF0B';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: #0ea5e9;
  font-weight: 700;
  font-size: 1.3em;
  transition: transform 0.3s;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item.active .q {
  background: #e0f2fe;
  color: #0c4a6e;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item.active .q::after {
  content: '\2212';
  transform: translateY(-50%) rotate(180deg);
  color: #0284c7;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item .a {
  display: none;
  padding: 1.3rem 1.7rem;
  border-top: 1px solid #e2e8f0;
  color: #334155;
  line-height: 1.7;
  background: #ffffff;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item .a p {
  margin: 0;
  text-align: left;
}

:is(.blog-post-page .post-body, .simple-page-content) .faq-item.active .a {
  display: block;
  animation: blogPostFadeInDown 0.3s ease;
}

/* Scoped animation name to avoid global conflicts */
@keyframes blogPostFadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ============================================
   FAQ - details/summary variant (#faq)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) #faq {
  margin: 40px 0;
  padding: 20px;
  border-radius: 12px;
}

:is(.blog-post-page .post-body, .simple-page-content) #faq h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #0f172a;
  border-left: 4px solid #0ea5e9;
  padding-left: 10px;
}

:is(.blog-post-page .post-body, .simple-page-content) #faq details {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin: 12px 0;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

:is(.blog-post-page .post-body, .simple-page-content) #faq details:hover {
  border-color: #38bdf8;
  box-shadow: 0 2px 6px rgba(56, 189, 248, 0.1);
}

:is(.blog-post-page .post-body, .simple-page-content) #faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

:is(.blog-post-page .post-body, .simple-page-content) #faq summary::after {
  content: "\25BA";
  font-size: 1.2rem;
  transform: rotate(90deg);
  color: #0ea5e9;
  transition: transform 0.2s ease;
}

:is(.blog-post-page .post-body, .simple-page-content) #faq details[open] summary::after {
  transform: rotate(270deg);
}

:is(.blog-post-page .post-body, .simple-page-content) #faq .faq-body {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
  color: #334155;
  line-height: 1.6;
}


/* ============================================
   PROMO BLOCK
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .promo-block {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 100%);
  border-left: 4px solid #0ea5e9;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 28px 0 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

:is(.blog-post-page .post-body, .simple-page-content) .promo-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.07);
}

:is(.blog-post-page .post-body, .simple-page-content) .promo-icon {
  font-size: 1.8rem;
  line-height: 1;
}

:is(.blog-post-page .post-body, .simple-page-content) .promo-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f172a;
}

:is(.blog-post-page .post-body, .simple-page-content) .promo-text a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

:is(.blog-post-page .post-body, .simple-page-content) .promo-text a:hover {
  text-decoration: underline;
  color: #0369a1;
}


/* ============================================
   VIDEO EMBED
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .video-embed {
  background: linear-gradient(90deg, #f9fafb 0%, #f0f9ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 40px 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}

:is(.blog-post-page .post-body, .simple-page-content) .video-embed__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 16px;
}

:is(.blog-post-page .post-body, .simple-page-content) .video-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

:is(.blog-post-page .post-body, .simple-page-content) .video-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

:is(.blog-post-page .post-body, .simple-page-content) .video-caption {
  margin-top: 14px;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.6;
}

:is(.blog-post-page .post-body, .simple-page-content) .video-caption a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

:is(.blog-post-page .post-body, .simple-page-content) .video-caption a:hover {
  text-decoration: underline;
  color: #0369a1;
}


/* ============================================
   IFRAME / VIDEO EMBEDS (generic)
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) iframe {
  max-width: 100%;
  margin: 2rem auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

:is(.blog-post-page .post-body, .simple-page-content) div > iframe {
  margin: 2rem auto;
}


/* ============================================
   HR
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 3rem 0;
}


/* ============================================
   SECTIONS
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) section {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

:is(.blog-post-page .post-body, .simple-page-content) section:first-of-type {
  margin-top: 0;
}


/* ============================================
   REFERENCES & FOOTNOTES
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .references {
  margin-top: 4rem;
  padding: 2rem 2.5rem;
  background: #f9fafb;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

:is(.blog-post-page .post-body, .simple-page-content) .references h2 {
  font-size: 1.4rem;
  margin-top: 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .references ul {
  list-style: none;
  padding-left: 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .references li {
  margin-bottom: 0.75rem;
  padding-left: 1.2rem;
  position: relative;
}

:is(.blog-post-page .post-body, .simple-page-content) .references li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: #0ea5e9;
}

:is(.blog-post-page .post-body, .simple-page-content) .footnotes {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

:is(.blog-post-page .post-body, .simple-page-content) .footnotes h2 {
  font-size: 1.2rem;
  margin-top: 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .footnotes ol {
  font-size: 0.9rem;
  color: #64748b;
}

:is(.blog-post-page .post-body, .simple-page-content) sup {
  font-size: 0.75em;
  line-height: 0;
}

:is(.blog-post-page .post-body, .simple-page-content) .backref {
  text-decoration: none;
  margin-left: 0.4em;
  opacity: 0.7;
}


/* ============================================
   CHEAT SHEET
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .cheat-sheet .table-note {
  margin: 1rem;
}


/* ============================================
   SCREEN READER ONLY
   ============================================ */
:is(.blog-post-page .post-body, .simple-page-content) .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================
   RESPONSIVE - Mobile adjustments
   ============================================ */
@media (max-width: 768px) {
  :is(.blog-post-page .post-body, .simple-page-content) {
    font-size: 1rem;
    padding: 0 1rem 2.5rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) header h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  :is(.blog-post-page .post-body, .simple-page-content) h2 {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    margin-top: 2em;
  }

  :is(.blog-post-page .post-body, .simple-page-content) h3 {
    font-size: clamp(1.25rem, 4vw, 1.4rem);
    margin-top: 1.6em;
  }

  :is(.blog-post-page .post-body, .simple-page-content) ul:not(.checklist),
  :is(.blog-post-page .post-body, .simple-page-content) ol {
    padding-left: 1.5rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .toc {
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
  }

  :is(.blog-post-page .post-body, .simple-page-content) table {
    font-size: 0.9rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) th,
  :is(.blog-post-page .post-body, .simple-page-content) td {
    padding: 10px 12px;
  }

  :is(.blog-post-page .post-body, .simple-page-content) figure.fig-left,
  :is(.blog-post-page .post-body, .simple-page-content) figure.fig-right,
  :is(.blog-post-page .post-body, .simple-page-content) figure.float-left,
  :is(.blog-post-page .post-body, .simple-page-content) figure.float-right {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .callout {
    padding: 1rem 1.2rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) blockquote {
    padding: 0.8em 1em;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .faq {
    padding: 0 1rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .faq-item .q {
    padding: 1rem 3rem 1rem 1.2rem;
    font-size: 1rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .faq-item .a {
    padding: 1rem 1.2rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .promo-block {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .promo-icon {
    font-size: 1.6rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .video-embed {
    padding: 16px;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .video-embed__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  :is(.blog-post-page .post-body, .simple-page-content) {
    padding: 0 0.75rem 2rem;
  }

  :is(.blog-post-page .post-body, .simple-page-content) h2::after,
  :is(.blog-post-page .post-body, .simple-page-content) h3::after {
    width: 40px;
  }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  :is(.blog-post-page .post-body, .simple-page-content) {
    max-width: 100%;
    padding: 0;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .breadcrumbs,
  :is(.blog-post-page .post-body, .simple-page-content) .toc,
  :is(.blog-post-page .post-body, .simple-page-content) .faq {
    page-break-inside: avoid;
  }

  :is(.blog-post-page .post-body, .simple-page-content) img,
  :is(.blog-post-page .post-body, .simple-page-content) table,
  :is(.blog-post-page .post-body, .simple-page-content) pre,
  :is(.blog-post-page .post-body, .simple-page-content) blockquote {
    page-break-inside: avoid;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .h-anchor {
    display: none;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .faq-item .q::after {
    display: none;
  }

  :is(.blog-post-page .post-body, .simple-page-content) .faq-item .a {
    display: block !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   MONEY PAGE CONTENT OVERRIDES
   ══════════════════════════════════════════════════════════════════════
   On money pages (.simple-page-page), .simple-page-content is a
   full-width SECTION wrapper (for alternating backgrounds), with
   .container inside for content width constraint.

   article.css treats .simple-page-content as a content container
   (like .post-body), setting max-width: 1320px and padding on it.
   These overrides fix that for money pages without touching blog posts.
   ══════════════════════════════════════════════════════════════════════ */


/* ─── 1. Reset article.css base container styles on section wrappers ─── */
.simple-page-page .simple-page-content {
  max-width: none;
  padding: 0;
}


/* ─── 2. Content section spacing (card layout) ─── */
.page-card .simple-page-content .simple-page-content {
  padding: 20px 0;
  background: transparent;
}
.page-card .simple-page-content .simple-page-content:nth-of-type(odd),
.page-card .simple-page-content .simple-page-content:nth-of-type(even) {
  background: transparent;
}


/* ─── 3. H2: no top margin, no gradient underline in content sections ─── */
.simple-page-content .container > h2 {
  margin-top: 0;
}
.simple-page-content .container > h2::after {
  display: none;
}


/* ─── 4. Last paragraph: no bottom margin before callout/checklist ─── */
.simple-page-content .container > p:last-of-type {
  margin-bottom: 0;
}


/* ─── 5. Checklist: 2-column grid for money pages ─── */
.simple-page-content .container ul.checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding-left: 0;
}
.simple-page-content .container ul.checklist li {
  background: transparent !important;
  margin: 0 !important;
  padding: 4px 8px 4px 28px !important;
  border-radius: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.simple-page-content .container ul.checklist li::before {
  background: transparent;
  border: none;
  font-size: 1rem;
  width: auto;
  height: auto;
  border-radius: 0;
  display: block;
  top: 4px !important;
  left: 4px !important;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .simple-page-content .container ul.checklist {
    grid-template-columns: 1fr;
  }
}


/* ─── 6. Table: dark headers for money pages ─── */
.simple-page-content .container .table-wrap thead {
  background: none;
}
.simple-page-content .container .table-wrap th {
  background: #111827;
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  border-bottom: none;
}
.simple-page-content .container .table-wrap td {
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.simple-page-content .container .table-wrap tr:last-child td {
  border-bottom: none;
}
.simple-page-content .container .table-wrap tbody tr:nth-child(even) {
  background: transparent;
}
.simple-page-content .container .table-wrap tbody tr:hover {
  background: transparent;
}
.simple-page-content .container .table-wrap .td-good {
  color: #059669;
  font-weight: 500;
}
.simple-page-content .container .table-wrap .td-neutral {
  color: #6b7280;
  font-weight: 500;
}


/* ─── 7. Reset article.css link styles on buttons ─── */
.simple-page-content a.btn {
  text-decoration: none;
}
.simple-page-content a.btn.btn-primary {
  color: #fff;
}
.simple-page-content a.btn.btn-secondary {
  color: #0f172a;
}
.simple-page-content a.btn:hover {
  text-decoration: none;
}


/* ─── 8. Seamless section flow — remove default landing margins ─── */
.simple-page-page .hero,
.simple-page-page .hero-stats,
.simple-page-page .why-us,
.simple-page-page .how-it-works,
.simple-page-page .cta-section,
.simple-page-page .faq-section {
  margin: 0 !important;
}


/* ─── 9. Gray page background for landing-style card contrast ─── */
.simple-page-page .page-card {
  background: #f5f7fb;
}


/* ─── 10. Card-style content containers ─── */
.page-card .simple-page-content .simple-page-content > .container {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .page-card .simple-page-content .simple-page-content > .container {
    padding: 28px 20px;
    border-radius: 12px;
  }
}


/* ─── 11. Landing-style H2 with accent bar ─── */
.page-card .simple-page-content .simple-page-content > .container > h2::before {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #0ea5e9);
  border-radius: 2px;
  margin-bottom: 16px;
}


/* ─── 12. Lead paragraph — first p after H2 is larger ─── */
.page-card .simple-page-content .simple-page-content > .container > h2 + p {
  font-size: 1.125rem;
  color: #1e293b;
  line-height: 1.8;
}


/* ─── 13. Enhanced callout & table shadows ─── */
.page-card .simple-page-content .simple-page-content .callout {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.page-card .simple-page-content .simple-page-content .table-wrap {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}


/* ─── 14. Checklist items — clean style (no pill background) ─── */
.page-card .simple-page-content .simple-page-content .checklist li {
  background: transparent;
  border-radius: 0;
  padding: 4px 8px 4px 28px;
}


/* ─── 15. CTA sections — dark gradient card ─── */
.simple-page-page .cta-section {
  padding: 20px 0;
}
.simple-page-page .cta-section .container {
  background: linear-gradient(135deg, #1e3a5f 0%, #111827 100%);
  border-radius: 16px;
  padding: 64px 40px;
}
.simple-page-page .cta-section h2 {
  color: #fff;
  text-align: center !important;
}
.simple-page-page .cta-section p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center !important;
}

@media (max-width: 768px) {
  .simple-page-page .cta-section .container {
    padding: 40px 24px;
    border-radius: 12px;
  }
}

.simple-page-content .hero-stats {
  border: none !important;
  padding-bottom: 50px;
}


/* ─── 16. Reset article.css styles on dark landing sections ─── */
.simple-page-page .why-us h2,
.simple-page-page .how-it-works h2 {
  color: inherit !important;
  text-align: inherit !important;
  margin-top: 0 !important;
}
.simple-page-page .why-us h2::after,
.simple-page-page .why-us .feature-card h3::after,
.simple-page-page .how-it-works h2::after,
.simple-page-page .how-it-works .step-card h3::after {
  display: none !important;
}
.simple-page-page .why-us .feature-card h3 {
  color: #fff !important;
  font-size: 0.9375rem !important;
}
.simple-page-page .why-us .feature-card p {
  color: #9ca3af !important;
  font-size: 0.8125rem !important;
}
.simple-page-page .why-us .section-header p {
  color: #9ca3af !important;
  text-align: center !important;
}
.simple-page-page .how-it-works .step-card h3 {
  color: inherit !important;
  font-size: 0.9375rem !important;
}

/* ─── 17. FAQ section — padding and decoration reset ─── */
.simple-page-page .faq-section .faq-item {
  padding: 0 20px !important;
}
.simple-page-page .faq-section h2::after,
.simple-page-page .faq-section h2::before {
  display: none !important;
}
.simple-page-page .faq-section h2 {
  text-align: center !important;
  border-top: none !important;
  padding-top: 0 !important;
}
.simple-page-page .faq-section .section-header p {
  text-align: center !important;
}

.simple-page-page .page-card.simple-page-card {
  border: none !important;
}

.how-it-works .section-header p {
  text-align: center !important;
}

.cta-section a.btn-primary {
  margin-top: 30px;
}


/* ============================================
   TAXONOMY HERO (Категории / Теги)
   ============================================ */

.taxonomy-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 56px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1d4ed8 100%);
  text-align: center;
  color: #fff;
}

/* NOT_AUTH: учитываем фиксированный header */
body.not-auth .taxonomy-hero {
  padding-top: 140px;
}

/* Фоновое изображение категории */
.taxonomy-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

/* Градиентный overlay поверх фона */
.taxonomy-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 50%, rgba(29, 78, 216, 0.85) 100%);
  z-index: 1;
}

/* Если нет bg-картинки, overlay не нужен — прозрачный */
.taxonomy-hero:not(:has(.taxonomy-hero__bg)) .taxonomy-hero__overlay {
  display: none;
}

/* Декоративные круги */
.taxonomy-hero__decor {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.taxonomy-hero__circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.taxonomy-hero__circle--1 {
  width: 400px;
  height: 400px;
  top: -120px;
  right: -80px;
}

.taxonomy-hero__circle--2 {
  width: 250px;
  height: 250px;
  bottom: -60px;
  left: -40px;
}

.taxonomy-hero__circle--3 {
  width: 150px;
  height: 150px;
  top: 40%;
  left: 15%;
  background: rgba(255, 255, 255, 0.02);
}

/* Контент hero */
.taxonomy-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs на тёмном фоне */
.breadcrumbs--light {
  margin-bottom: 24px;
}

.breadcrumbs--light,
.breadcrumbs--light ol {
  padding: 0;
  margin: 0 0 24px;
}

.breadcrumbs--light ol li,
.breadcrumbs--light a {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumbs--light a:hover {
  color: #fff;
}

.breadcrumbs--light ol li::after {
  color: rgba(255, 255, 255, 0.3);
}

/* Иконка */
.taxonomy-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 20px;
  color: #fff;
  font-size: 24px;
}

.taxonomy-hero__icon svg {
  width: 24px;
  height: 24px;
}

/* Заголовок */
.taxonomy-hero__title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Описание */
.taxonomy-hero__desc {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Мета-информация (badge счётчик) */
.taxonomy-hero__meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

.taxonomy-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.taxonomy-hero__badge svg {
  opacity: 0.7;
}

/* Тег-hero: другой оттенок градиента */
.tag-hero {
  background: linear-gradient(135deg, #0f172a 0%, #312e81 50%, #6366f1 100%);
}

.tag-hero .taxonomy-hero__overlay {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(49, 46, 129, 0.88) 50%, rgba(99, 102, 241, 0.85) 100%);
}

/* Убираем hero-padding у блока постов, когда hero уже есть */
.blog-page--no-hero-pad {
  padding-top: 48px !important;
}

body.not-auth .blog-page--no-hero-pad {
  padding-top: 48px !important;
}


/* ─── Taxonomy Hero Responsive ─── */

@media (max-width: 768px) {
  .taxonomy-hero {
    padding: 100px 0 40px;
  }

  body.not-auth .taxonomy-hero {
    padding-top: 110px;
  }

  .taxonomy-hero__title {
    font-size: 2rem;
  }

  .taxonomy-hero__desc {
    font-size: 1rem;
  }

  .taxonomy-hero__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .taxonomy-hero__circle--1 {
    width: 250px;
    height: 250px;
  }

  .taxonomy-hero__circle--2 {
    width: 150px;
    height: 150px;
  }

  .taxonomy-hero__circle--3 {
    display: none;
  }
}

@media (max-width: 480px) {
  .taxonomy-hero {
    padding: 90px 0 32px;
  }

  body.not-auth .taxonomy-hero {
    padding-top: 100px;
  }

  .taxonomy-hero__title {
    font-size: 1.75rem;
  }

  .taxonomy-hero__desc {
    font-size: 0.9375rem;
  }
}
