:root {
  color-scheme: light;
  --bg: #f4f6f5;
  --panel: #ffffff;
  --line: #dfe5e2;
  --text: #172126;
  --muted: #607076;
  --accent: #31c48d;
  --accent-strong: #159a67;
  --accent-soft: #e8fbf3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(49, 196, 141, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbfa 0%, var(--bg) 100%);
}

a {
  color: var(--accent-strong);
}

.page {
  min-height: 100vh;
  padding: 36px 16px 56px;
}

.shell {
  max-width: 1080px;
  margin: 0 auto;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 24px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(23, 33, 38, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.hero-link.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #ffffff;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.sidebar,
.content {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(23, 33, 38, 0.08);
}

.sidebar {
  height: fit-content;
  padding: 22px;
  position: sticky;
  top: 20px;
}

.sidebar h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
}

.sidebar-link:hover,
.sidebar-link.active {
  border-color: rgba(49, 196, 141, 0.24);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.sidebar-note {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: #f9fbfa;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.content {
  padding: 30px;
}

.content-header {
  margin-bottom: 24px;
}

.content-header .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.content-header h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.content-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.doc-section + .doc-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #edf1ef;
}

.doc-section h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.doc-section p {
  margin: 0 0 12px;
  line-height: 1.75;
  color: #2d3940;
}

.doc-section ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.doc-section li {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #2d3940;
}

.footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #edf1ef;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 20px 12px 44px;
  }

  .hero,
  .content {
    padding: 22px;
  }

  .content-header h2 {
    font-size: 28px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-link {
    width: 100%;
  }
}
