/* ZERK TOOL — SEO-статьи */
.articles-page #zerk-header,
.article-page #zerk-header {
  min-height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

.articles-page #zerk-header .site-header,
.article-page #zerk-header .site-header {
  position: sticky;
  top: 0;
}

.articles-page main,
.article-page main {
  max-width: var(--max-w);
  margin: 0 auto;
  /* шапка уже в потоке в #zerk-header — без двойного отступа */
  padding: 28px 24px 80px;
}

.articles-page .breadcrumbs,
.article-page .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 32px;
  line-height: 1.5;
}

.article-page .breadcrumbs [aria-current="page"] {
  flex: 1 1 100%;
  margin-top: 4px;
  max-width: 100%;
}

.article-header {
  clear: both;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.2s, transform 0.2s;
}

.article-card:hover {
  border-color: rgba(142, 181, 232, 0.35);
  transform: translateY(-2px);
}

.article-card__img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.article-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.article-card__title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.article-card__title a {
  color: inherit;
  text-decoration: none;
}

.article-card__title a:hover {
  color: #8eb5e8;
}

.article-card__excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.article-card__link {
  font-size: 14px;
  color: #8eb5e8;
  text-decoration: none;
  font-weight: 500;
}

.article-card__link:hover {
  text-decoration: underline;
}

/* Single article */
.article-page .article-header {
  margin-top: 0;
  margin-bottom: 32px;
}

.article-header h1 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg, 16px);
  margin-bottom: 32px;
}

.article-body {
  max-width: 760px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.article-body h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

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

.article-body a {
  color: #8eb5e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.article-links-box {
  margin: 36px 0;
  padding: 24px;
  border-radius: var(--radius-lg, 16px);
  background: rgba(142, 181, 232, 0.08);
  border: 1px solid rgba(142, 181, 232, 0.2);
}

.article-links-box h2 {
  font-size: 18px;
  line-height: 1.4;
  margin: 0 0 16px !important;
  padding: 0;
  position: static;
}

.article-links-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-links-box li {
  margin-bottom: 10px;
}

.article-faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.article-faq h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.article-faq details {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.article-faq summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
  list-style: none;
}

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

.article-faq .article-faq__answer {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-cta {
  margin-top: 40px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg, 16px);
  background: linear-gradient(135deg, rgba(142, 181, 232, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-cta h2 {
  font-size: 20px;
  margin: 0 0 12px !important;
  color: var(--text-primary);
}

.article-cta p {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.article-cta .btn-primary,
.article-cta .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.article-cta .btn-primary {
  background: #8eb5e8;
  color: #0a0a0f;
}

.article-cta .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .articles-page main,
  .article-page main {
    padding: 20px 16px calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .articles-page .breadcrumbs,
  .article-page .breadcrumbs {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .article-page .breadcrumbs [aria-current="page"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .article-header h1 {
    margin-top: 0;
  }

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