/* Тема pro — полноценный информационный сайт */
:root {
  --bg: #f8f9fa;
  --card: #fff;
  --text: #212529;
  --text-muted: #6c757d;
  --primary: #0d6efd;
  --primary-hover: #0b5ed7;
  --border: #dee2e6;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --width: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--primary); }

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-main a:hover { color: var(--text); }

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.btn-outline {
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}

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

/* Main */
.site-main {
  flex: 1;
  max-width: var(--width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Home */
.page-home {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.intro-block {
  padding: 2rem 2rem 1.5rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.intro-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.intro-text p { margin: 0 0 0.5rem; }

.articles-block {
  padding: 1.5rem 2rem 2rem;
  border-top: 1px solid var(--border);
}

.block-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.card {
  border-bottom: 1px solid var(--border);
}

.card:last-child { border-bottom: none; }

.card-link {
  display: block;
  padding: 0.75rem 0;
  color: var(--primary);
  text-decoration: none;
  font-size: 1rem;
  transition: color .2s, padding-left .2s;
}

.card-link:hover {
  color: var(--primary-hover);
  padding-left: 0.5rem;
}

/* Article */
.article-page {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

.breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 0.35rem; }

.article-figure {
  margin: 0 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.75;
}

.content p {
  margin: 0 0 1.25rem;
}

.content p:last-child { margin-bottom: 0; }

.content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
}

.content h2:first-child { margin-top: 0; }

.content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.content ul, .content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.content li { margin-bottom: 0.35rem; }

.content a {
  color: var(--primary);
  text-decoration: none;
}

.content a:hover { text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-wrap {
  max-width: var(--width);
  margin: 0 auto;
  padding: 2rem 1.5rem 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col .footer-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-col a:hover { color: var(--primary); }

.footer-col p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
