:root {
  --bg: #f4f1ee;
  --panel: #ffffff;
  --panel-soft: #faf7f4;
  --line: #ddd6d0;
  --line-strong: #cfc4bc;
  --text: #121212;
  --muted: #4f4a46;
  --muted-soft: #6a635d;
  --accent: #1e90ff;
  --accent-strong: #0b74d8;
  --shadow: 0 12px 28px rgba(18, 18, 18, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

section[id],
article[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 241, 238, 0.95);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
}

.nav.nav-no-brand {
  justify-content: flex-end;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--accent);
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.96rem;
}

.main-nav a {
  color: var(--muted);
  font-weight: 600;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--accent);
}

.hero {
  padding: 88px 0 56px;
}

.hero .container {
  width: min(1320px, calc(100% - 32px));
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

.hero-copy {
  max-width: 1180px;
}

.hero-logo-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.hero-logo {
  width: min(100%, 330px);
  height: auto;
}

.eyebrow,
.section-tag {
  margin: 0 0 18px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
  font-weight: 800;
}

.lede {
  margin: 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-benefits {
  margin: 18px 0 0;
  padding-left: 20px;
  max-width: 1060px;
  color: var(--muted);
}

.hero-benefits li + li {
  margin-top: 6px;
}

.hero-git-block {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  max-width: 1060px;
}

.hero-git-header {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-git-intro {
  margin: 8px 0 0;
  text-align: left;
  color: var(--text);
  font-weight: 600;
}

.hero-git-benefits {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 500;
}

.hero-git-benefits li + li {
  margin-top: 5px;
}

.hero-cta-line {
  margin: 14px 0 0;
  max-width: 1040px;
  padding: 10px 0 10px 14px;
  border-left: 3px solid var(--accent);
  color: var(--text);
  font-weight: 600;
  line-height: 1.5;
}

.hero-cta-line strong {
  color: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.doc-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.sidebar-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.sidebar-title {
  margin: 0 0 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
  font-weight: 700;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 0.95rem;
}

.side-nav a:hover {
  background: var(--panel-soft);
  color: var(--accent);
}

.content {
  background: transparent;
}

.content-section,
.info-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px 28px 20px;
  margin-bottom: 22px;
}

.content-section h2,
.info-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.content-section p,
.content-section li,
.info-panel p {
  color: var(--muted);
}

.content-section ul,
.content-section ol {
  padding-left: 18px;
  margin: 18px 0 0;
}

.content-section li + li,
.content-section p + p {
  margin-top: 12px;
}

blockquote {
  margin: 20px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--accent);
  background: var(--panel-soft);
  color: var(--text);
  font-size: 1.02rem;
  border-radius: 0 12px 12px 0;
}

.info-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 22px;
}

.muted-panel {
  background: var(--panel-soft);
}

.narrow-card {
  max-width: 920px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-logo-panel {
    justify-content: flex-start;
    padding-top: 0;
  }

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

  .sidebar {
    position: static;
  }

  .sidebar-inner {
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .nav,
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    min-height: auto;
    padding: 16px 0;
  }

  .main-nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-logo {
    width: clamp(150px, 56vw, 250px);
  }

  .content-section,
  .info-panel {
    padding: 22px 18px 18px;
  }
}
