:root {
  --bg: #ffffff;
  --surface: #f7faf8;
  --surface-strong: #eef5f1;
  --text: #17231f;
  --muted: #60706a;
  --border: #dce6e1;
  --accent: #2f7d5c;
  --accent-dark: #205942;
  --warning: #8a5a1f;
  --max: 1160px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 19px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #cde0d7;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--accent-dark);
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 48px;
  align-items: center;
  padding: 52px 0 40px;
}

.hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  display: flex;
  gap: 10px;
  max-width: 640px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 45px rgba(23, 35, 31, 0.08);
}

.search-panel input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  outline: 0;
}

.button,
.search-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0 16px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

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

.hero-image {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(23, 35, 31, 0.12);
}

.hero-image img {
  width: 100%;
  height: min(48vw, 510px);
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 22px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.trust-strip div {
  padding: 18px;
  background: var(--surface);
}

.trust-strip strong {
  display: block;
  margin-bottom: 4px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 54px 0;
}

.section.soft {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2,
.page-head h1,
.article h1 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-head p,
.page-head p {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

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

.card .meta,
.article-meta {
  color: var(--muted);
  font-size: 13px;
}

.card a:last-child {
  margin-top: auto;
  font-weight: 700;
}

.page-head {
  padding: 48px 0 26px;
}

.page-head h1 {
  max-width: 860px;
  font-size: clamp(36px, 5vw, 58px);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: start;
  padding: 28px 0 68px;
}

.article {
  max-width: 780px;
}

.article h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 54px);
}

.article h2 {
  margin: 36px 0 10px;
  font-size: 27px;
  line-height: 1.2;
}

.article h3 {
  margin: 24px 0 8px;
  font-size: 21px;
}

.article p,
.article li {
  color: #26342f;
  font-size: 17px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.callout {
  border-left: 4px solid var(--accent);
  padding: 16px 18px;
  margin: 24px 0;
  background: var(--surface);
}

.callout.warning {
  border-color: var(--warning);
  background: #fff8eb;
}

.sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.sidebar h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li + li {
  margin-top: 10px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  background: #101816;
  color: #d9e4df;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: #d9e4df;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 18px 45px rgba(23, 35, 31, 0.08);
    z-index: 30;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }

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

  .hero-image img {
    height: 360px;
  }

  .grid,
  .grid.two,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .sidebar {
    position: static;
  }

  .footer .container {
    display: block;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 34px;
  }

  .search-panel {
    display: block;
  }

  .search-panel input,
  .search-panel button {
    width: 100%;
  }

  .search-panel button {
    margin-top: 8px;
  }

  .hero-image img {
    height: 260px;
  }
}
