/* ===== CONTENT PAGES — formaty, baza-znaniy, keisy, uslugi ===== */
.content-prose {
  color: var(--text-secondary);
}
.content-prose h1,
.content-prose h2,
.content-prose h3,
.content-prose .project-section__title {
  color: var(--text);
}
.content-prose p,
.content-prose li {
  color: var(--text-secondary);
}
.content-prose strong {
  color: var(--text);
}

.content-page { padding-top: calc(var(--topbar-h) + var(--header-h)); }
.content-page .header { top: var(--topbar-h); }

.content-hero {
  padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.content-hero--compact { padding-bottom: 24px; }
.content-hero__inner { max-width: 780px; }
.content-hero h1 {
  font-family: 'Oswald', sans-serif; font-size: clamp(30px, 5.5vw, 46px);
  font-weight: 700; line-height: 1.12; margin: 14px 0 16px; letter-spacing: -0.02em;
}
.content-hero__lead { font-size: 18px; color: var(--muted); line-height: 1.6; max-width: 640px; }
.content-hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px;
  font-size: 13px; color: var(--text-tertiary);
}
.content-hero__meta span { display: flex; align-items: center; gap: 6px; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  font-size: 13px; color: var(--text-tertiary); margin-bottom: 12px;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs__sep { opacity: 0.4; }

.content-body { padding: clamp(40px, 6vw, 64px) 0; }
.content-body__grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 48px);
  align-items: start;
}
.content-main { min-width: 0; }
.content-main h2 {
  font-family: 'Oswald', sans-serif; font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; margin: 36px 0 14px; letter-spacing: -0.02em;
}
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.content-main p { font-size: 16px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 16px; }
.content-main ul, .content-main ol { margin: 0 0 20px 1.2em; color: var(--text-secondary); line-height: 1.65; }
.content-main li { margin-bottom: 8px; font-size: 16px; }
.content-main strong { color: var(--text); font-weight: 600; }

.content-callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; margin: 28px 0;
}
.content-callout--warn { border-left-color: #ff6b6b; background: rgba(255, 107, 107, 0.06); }
.content-callout--info { border-left-color: var(--eng-blue); background: var(--eng-blue-dim); }
.content-callout p:last-child { margin-bottom: 0; }

.checklist { list-style: none; margin: 0 0 24px; padding: 0; }
.checklist li {
  position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--text-secondary);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--call); font-weight: 700;
}

.risk-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 24px 0;
}
.risk-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.risk-card__label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.risk-card h3 { font-size: 16px; margin: 0 0 8px; }
.risk-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.risk-card__cost { margin-top: 10px; font-size: 14px; font-weight: 600; color: #ff8a8a; }

.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0;
}
.stat-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.stat-box b {
  display: block; font-family: 'Oswald', sans-serif; font-size: 28px;
  color: var(--accent); margin-bottom: 4px;
}
.stat-box span { font-size: 13px; color: var(--muted); }

.content-sidebar { position: sticky; top: calc(var(--topbar-h) + var(--header-h) + 20px); }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px;
}
.sidebar-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 12px; }
.sidebar-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.sidebar-card ul { list-style: none; margin: 0; padding: 0; }
.sidebar-card li { margin-bottom: 8px; }
.sidebar-card a { font-size: 14px; color: var(--text-secondary); }
.sidebar-card a:hover { color: var(--accent); }

.content-cta {
  background: var(--grad-accent); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 48px); text-align: center; margin: 48px 0 0;
  color: #fff;
}
.content-cta h2 {
  font-family: 'Oswald', sans-serif; font-size: clamp(24px, 4vw, 32px);
  font-weight: 700; margin-bottom: 12px; color: #fff;
}
.content-cta p { font-size: 16px; opacity: 0.92; margin-bottom: 24px; color: #fff; }
.content-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.content-cta .btn--ghost { border-color: rgba(255,255,255,0.4); color: #fff; }

.hub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.hub-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.2s, transform 0.2s;
}
.hub-card:hover { border-color: rgba(255, 107, 44, 0.4); transform: translateY(-2px); }
.hub-card__icon { font-size: 28px; }
.hub-card h2 { font-size: 18px; font-weight: 700; margin: 0; }
.hub-card h2 a { color: inherit; }
.hub-card p { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.hub-card__link { font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 4px; }

.article-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s;
}
.article-card:hover { border-color: rgba(74, 158, 255, 0.35); }
.article-card__tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--eng-blue);
}
.article-card h2 { font-size: 17px; font-weight: 700; margin: 0; line-height: 1.35; }
.article-card h2 a { color: inherit; }
.article-card p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.article-card__meta { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

.case-hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px;
}
.case-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px; text-align: center;
}
.case-stat b { display: block; font-size: 22px; color: var(--call); margin-bottom: 2px; }
.case-stat span { font-size: 12px; color: var(--muted); }

.content-faq { margin-top: 40px; }
.content-faq h2 { margin-bottom: 16px; }

.kb-search { margin-top: 24px; max-width: 520px; }
.kb-search input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-size: 15px;
}
.kb-search__results { margin-top: 10px; display: grid; gap: 8px; }
.kb-search__item {
  display: block; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  text-decoration: none; color: inherit;
}
.kb-search__item strong { display: block; font-size: 14px; margin-bottom: 4px; }
.kb-search__item span { font-size: 13px; color: var(--muted); }
.kb-search__empty { font-size: 14px; color: var(--muted); margin: 0; }

@media (max-width: 1024px) {
  .content-body__grid { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .case-hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .risk-grid, .stats-row, .hub-grid { grid-template-columns: 1fr; }
  .case-hero-stats { grid-template-columns: 1fr 1fr; }
}
