:root {
  --primary: #1e4e8c;
  --cta: #2f6fed;
  --text: #0f172a;
  --muted: #475569;
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 320px);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.topbar {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
  margin-bottom: 14px;
}

.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.brand__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.topnav {
  display: flex;
  gap: 14px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topnav a:hover {
  color: #0f172a;
}

.topnav__link--active {
  color: #0f172a;
  border-bottom-color: #0f172a;
  font-weight: 600;
}

h1 {
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
}

p,
li {
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

a {
  color: #1d4ed8;
}

.section + .section {
  margin-top: 14px;
}

.back-link {
  display: inline-flex;
  margin-top: 8px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

.button-link {
  margin-top: 14px;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.article-card__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.article-card__icon {
  width: 24px;
  height: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.article-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.article-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: auto;
  background: #0f172a;
  color: #cbd5e1;
  border-radius: 0;
  padding: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.site-footer h4 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.site-footer p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.site-footer .muted {
  color: #94a3b8;
}

.site-footer a {
  color: #93c5fd;
  text-decoration: none;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
  margin-bottom: 12px;
}

.site-footer__legal {
  font-size: 13px;
  color: #94a3b8;
}

.site-footer__logo-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.site-footer__logo {
  height: 24px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.site-footer__contacts {
  justify-self: end;
}

.page > #shared-footer {
  margin-top: auto;
  width: 100%;
}

@media (max-width: 700px) {
  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  h1 {
    font-size: 28px;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__contacts {
    justify-self: start;
  }
}
