:root {
  --seo-bg: #f8fafc;
  --seo-surface: #ffffff;
  --seo-text: #0f172a;
  --seo-muted: #475569;
  --seo-border: #dbe3ec;
  --seo-primary: #0f766e;
  --seo-primary-dark: #115e59;
  --seo-sky: #0369a1;
  --seo-amber: #b45309;
  --seo-soft: #ecfdf5;
  --seo-radius: 8px;
  --seo-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--seo-text);
  background: var(--seo-bg);
  font-family: "Manrope", "Inter", "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--seo-primary-dark);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--seo-sky);
}

img {
  display: block;
  max-width: 100%;
}

.seo-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.seo-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--seo-border);
  background: #ffffff;
}

.seo-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.seo-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.seo-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.seo-nav a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.seo-nav a[aria-current="page"] {
  color: var(--seo-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.seo-main {
  min-height: calc(100vh - 220px);
}

.seo-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--seo-border);
  background: var(--seo-surface);
}

.seo-kicker {
  margin: 0 0 10px;
  color: var(--seo-primary-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.seo-hero h1,
.seo-article h1 {
  max-width: 880px;
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-lead {
  max-width: 780px;
  margin: 18px 0 0;
  color: #334155;
  font-size: 20px;
  line-height: 1.55;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.seo-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--seo-primary);
  border-radius: var(--seo-radius);
  background: var(--seo-primary);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.seo-button:hover {
  background: var(--seo-primary-dark);
  color: #ffffff;
}

.seo-button-secondary {
  border-color: var(--seo-border);
  background: #ffffff;
  color: var(--seo-text);
}

.seo-button-secondary:hover {
  background: #f1f5f9;
  color: var(--seo-primary-dark);
}

.seo-section {
  padding: 52px 0;
}

.seo-section + .seo-section {
  border-top: 1px solid var(--seo-border);
}

.seo-section h2,
.seo-article h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: 0;
}

.seo-section-intro {
  max-width: 760px;
  margin: 0 0 26px;
  color: var(--seo-muted);
}

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

.seo-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--seo-border);
  border-radius: var(--seo-radius);
  background: var(--seo-surface);
  box-shadow: var(--seo-shadow);
}

.seo-card h2,
.seo-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
  letter-spacing: 0;
}

.seo-card p {
  margin: 10px 0 0;
  color: var(--seo-muted);
}

.seo-card-link {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
}

.seo-facts,
.seo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.seo-facts li,
.seo-tags li {
  padding: 6px 10px;
  border: 1px solid var(--seo-border);
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.seo-breadcrumbs {
  padding: 20px 0 0;
  color: var(--seo-muted);
  font-size: 14px;
}

.seo-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #94a3b8;
}

.seo-article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.seo-article > p,
.seo-article > ul,
.seo-article > ol {
  color: #334155;
}

.seo-article h2 {
  margin-top: 42px;
}

.seo-route {
  margin: 30px 0 36px;
  padding: 0;
  list-style: none;
  counter-reset: route-stop;
}

.seo-route li {
  position: relative;
  min-height: 58px;
  padding: 0 0 26px 52px;
  color: #334155;
}

.seo-route li::before {
  counter-increment: route-stop;
  content: counter(route-stop);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--seo-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.seo-route li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 2px;
  left: 16px;
  width: 2px;
  background: #99f6e4;
}

.seo-route b {
  display: block;
  color: var(--seo-text);
  font-size: 18px;
}

.seo-note {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--seo-amber);
  background: #fffbeb;
  color: #713f12;
}

.seo-callout {
  margin-top: 44px;
  padding: 28px;
  border: 1px solid #a7f3d0;
  border-radius: var(--seo-radius);
  background: var(--seo-soft);
}

.seo-callout h2 {
  margin-top: 0;
}

.seo-footer {
  padding: 34px 0;
  border-top: 1px solid var(--seo-border);
  background: #ffffff;
  color: var(--seo-muted);
  font-size: 14px;
}

.seo-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.seo-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.seo-footer p {
  max-width: 560px;
  margin: 0;
}

@media (max-width: 760px) {
  .seo-shell {
    width: min(100% - 24px, 1120px);
  }

  .seo-header-inner {
    min-height: 64px;
    align-items: flex-start;
    padding: 10px 0;
  }

  .seo-brand span {
    display: none;
  }

  .seo-nav {
    justify-content: flex-end;
    gap: 6px 14px;
  }

  .seo-nav a {
    font-size: 13px;
  }

  .seo-hero {
    padding: 42px 0 34px;
  }

  .seo-hero h1,
  .seo-article h1 {
    font-size: 34px;
  }

  .seo-lead {
    font-size: 18px;
  }

  .seo-section {
    padding: 38px 0;
  }

  .seo-section h2,
  .seo-article h2 {
    font-size: 25px;
  }

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

  .seo-card {
    padding: 18px;
  }

  .seo-article {
    width: min(100% - 24px, 820px);
    padding-top: 30px;
  }

  .seo-footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
