/**
 * Статьи (SEO-статичные и SEO-блог)
 * Документ: светлый фон, контейнер как «лист», читаемость 3–5 мин.
 * Ширина 680–760px, типографика ≥16px / line-height ≥1.6.
 */

body.article-page {
  background: #f7f7f7;
  box-sizing: border-box;
}

.article-page .article-outer {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.article-page .article-outer h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.article-page .article-breadcrumbs {
  font-size: 0.875rem;
  color: #64748b;
  margin: 1rem 0 0.75rem;
}

.article-page .article-breadcrumbs a {
  color: #6366f1;
  text-decoration: none;
}

.article-page .article-breadcrumbs a:hover {
  text-decoration: underline;
}

.article-page .article-breadcrumbs span[aria-hidden="true"] {
  margin: 0 0.35rem;
}

.article-page .article-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: #1e293b;
  margin: 0.5rem 0 1.5rem;
}

.article-page .article-toc {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3px solid #6366f1;
}

.article-page .article-toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin: 0 0 0.75rem;
}

.article-page .article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-page .article-toc a {
  color: #334155;
  text-decoration: none;
  font-size: 0.9375rem;
  line-height: 1.5;
  display: block;
  padding: 0.25rem 0;
}

.article-page .article-toc a:hover {
  color: #6366f1;
}

.article-page .article-body {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
}

.article-page .article-body h2 {
  font-size: 1.35rem;
  margin: 2.5rem 0 0.75rem;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.01em;
  scroll-margin-top: 4rem;
}

.article-page .article-body h2:first-child {
  margin-top: 0;
}

.article-page .article-body h3 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.5rem;
  color: #1e293b;
  font-weight: 600;
  scroll-margin-top: 4rem;
}

.article-page .article-body p {
  margin: 0 0 1rem;
}

.article-page .article-body ul,
.article-page .article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-page .article-figure {
  margin: 2.25rem 0;
}

.article-page .article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.article-page .article-figure figcaption {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.article-page .article-figure figcaption:empty {
  display: none;
}

/* Слот под картинку: явный визуальный якорь (иконка + подсказка) */
.article-page .article-figure-placeholder {
  min-height: 220px;
  height: 220px;
  background: #e2e8f0;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2.25rem 0;
  gap: 0.5rem;
  box-sizing: border-box;
}

.article-page .article-figure-placeholder figcaption {
  display: none;
}

.article-page .article-figure-placeholder::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  flex-shrink: 0;
}

.article-page .article-figure-placeholder::after {
  content: "Здесь будет схема / пример";
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.3;
}

.article-page .article-cta {
  margin: 2.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.article-page .article-cta p {
  margin: 0 0 0.75rem;
}

.article-page .article-cta a {
  color: #6366f1;
  font-weight: 600;
  text-decoration: none;
}

.article-page .article-cta a:hover {
  text-decoration: underline;
}

.article-page .article-related {
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.article-page .article-related-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 1rem;
}

.article-page .article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-page .article-related li {
  margin: 0.5rem 0;
  line-height: 1.5;
}

.article-page .article-related a {
  color: #334155;
  text-decoration: none;
}

.article-page .article-related a:hover {
  color: #6366f1;
  text-decoration: underline;
}

.article-page .article-faq {
  margin: 2rem 0;
}

.article-page .article-faq-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem;
}

.article-page .article-faq-placeholder {
  font-size: 0.9375rem;
  color: #64748b;
}

/* SEO-блоки статей (без inline-стилей) */
.article-page .expert-summary {
  background: #f8f9fa;
  padding: 20px;
  border-left: 4px solid #007bff;
  margin-bottom: 30px;
}

.article-page .expert-summary p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.article-page .expert-summary ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.article-page .expert-summary li {
  margin-bottom: 8px;
}

.article-page .article-faq details {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.article-page .article-faq summary {
  font-weight: bold;
  cursor: pointer;
}

.article-page .article-faq details p {
  margin-top: 10px;
}

.article-page .article-figure img,
.article-page .article-preview,
.article-page img.img-responsive {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 25px auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Блог-шаблон: блок «Что делать» списком */
.article-page .article-what-do {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.article-page .article-what-do li {
  margin: 0.5rem 0;
}
