/* ══════════════════════════════════════════════════════════════
   НефроСфера — Base Styles
   ══════════════════════════════════════════════════════════════ */

:root {
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --bg: #f0f9ff;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -2px rgba(0,0,0,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  padding: 20px;
}

a { color: inherit; }

/* ── Центровка-обёртка (для карточных страниц) ─────────────── */
.center-wrap {
  min-height: calc(100vh - 40px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Основная карточка ─────────────────────────────────────── */
.container {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  text-align: center;
  border-top: 6px solid var(--primary);
}

.container--wide {
  max-width: 920px;
  text-align: left;
}

.logo-area {
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-size: 3rem;
  text-align: center;
}

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .5rem;
  text-align: center;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-size: .95rem;
  text-align: center;
}

/* ── Кнопки ────────────────────────────────────────────────── */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 1rem;
  border-radius: .5rem;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}

.btn-tg {
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}
.btn-tg:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(14,165,233,.3);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: #f0f9ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(14,165,233,.15);
}

.btn-nav {
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-main);
}
.btn-nav:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* ── Разделитель ───────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: .5rem 0;
  color: var(--text-muted);
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Футер ─────────────────────────────────────────────────── */
.footer {
  margin-top: 1.8rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  line-height: 1.6;
  text-align: center;
}

/* ── About: highlight box ──────────────────────────────────── */
.highlight-box {
  background: #f0f9ff;
  padding: 15px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: left;
  border-left: 4px solid var(--primary);
}
.highlight-box h3 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-main);
}
.highlight-box p {
  margin-bottom: 0;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ── Ссылка «назад» ───────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: .9rem;
  margin-top: 1rem;
  padding: 10px 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  transition: all .2s;
}
.back-link:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
}

/* ── About: текстовые параграфы ────────────────────────────── */
.about-text {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

/* ══════════════════════════════════════════════════════════════
   Страницы статей
   ══════════════════════════════════════════════════════════════ */
.article-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
  transition: box-shadow .2s, transform .2s;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(15,23,42,.1);
  transform: translateY(-2px);
}

.article-card h2 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.35;
  text-align: left;
}
.article-card h2 a {
  text-decoration: none;
  color: inherit;
}
.article-card h2 a:hover {
  color: var(--primary);
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .82rem;
  margin-bottom: 10px;
}

.article-card p {
  color: var(--text-main);
  opacity: .85;
  line-height: 1.6;
  margin-bottom: 12px;
  text-align: left;
}

.article-actions {
  display: flex;
  justify-content: flex-end;
}

/* ── Типографика статьи (paper) ────────────────────────────── */
.paper {
  margin-top: 10px;
}

.paper h1 {
  text-align: left;
  margin-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.3;
}
.paper h2 {
  text-align: left;
  margin: 22px 0 10px;
  font-size: 1.25rem;
}
.paper h3 {
  text-align: left;
  margin: 16px 0 8px;
  font-size: 1.05rem;
}
.paper p {
  color: #1f2937;
  line-height: 1.75;
  margin: 10px 0;
  text-align: left;
}
.paper ul, .paper ol {
  margin: 10px 0 14px 20px;
  line-height: 1.75;
  text-align: left;
}
.paper li {
  margin: 6px 0;
}
.paper strong {
  font-weight: 700;
}
.paper em {
  font-style: italic;
}
.paper hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.disclaimer {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--primary);
  background: #f0f9ff;
  border-radius: 10px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: .9rem;
}
