:root {
  --color-bg: #f7f9fc;
  --color-bg-soft: #eef3f8;
  --color-panel: #ffffff;
  --color-panel-strong: #f3f6fa;
  --color-border: #dde5ee;
  --color-text: #101828;
  --color-text-muted: #667085;
  --color-text-soft: #344054;
  --color-accent: #2563eb;
  --color-accent-soft: rgba(37, 99, 235, 0.1);
  --color-accent-border: rgba(37, 99, 235, 0.28);
  --shadow-card: 0 24px 70px rgba(16, 24, 40, 0.08);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text);
  font-weight: 780;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), #8be06f);
  color: #071106;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--color-text-muted);
}

.site-nav a:hover {
  color: var(--color-accent);
}

.page-main {
  display: block;
}

.hero {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: 48px;
  align-items: center;
}

.hero-narrow {
  max-width: 920px;
  display: block;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--color-accent-border);
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: #2f7f25;
  font-size: 0.9rem;
  font-weight: 760;
}

.hero h1 {
  margin: 24px 0 20px;
  max-width: 900px;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.hero p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: clamp(1.04rem, 2vw, 1.24rem);
  max-width: 720px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 760;
  line-height: 1.2;
}

.button-primary {
  background: var(--color-accent);
  color: #071106;
}

.button-primary:hover {
  color: #071106;
  filter: brightness(1.03);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--color-border);
  color: var(--color-text-soft);
}

.button-secondary:hover {
  border-color: var(--color-accent-border);
}

.panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.section {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0;
}

.section-heading {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.section-lead {
  margin: 0 0 30px;
  max-width: 760px;
  color: var(--color-text-muted);
  font-size: 1.04rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card h2,
.card h3 {
  margin: 0 0 10px;
  line-height: 1.3;
}

.card h2 {
  font-size: 1.35rem;
}

.card h3 {
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
}

.card-link:hover {
  border-color: var(--color-accent-border);
  color: var(--color-text);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag {
  border-radius: 999px;
  border: 1px solid var(--color-accent-border);
  color: #2f7f25;
  background: var(--color-accent-soft);
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 720;
}

.notice {
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.76);
  color: var(--color-text-muted);
}

.text-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 76px;
}

.text-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.text-page h2 {
  margin: 38px 0 12px;
  font-size: 1.45rem;
  line-height: 1.28;
}

.text-page p {
  margin: 0 0 16px;
  color: var(--color-text-muted);
}

.text-page ul {
  margin: 0 0 20px;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.text-page li {
  margin: 6px 0;
}

.text-page strong {
  color: var(--color-text);
}

.meta {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

.site-footer {
  width: min(var(--page-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 52px;
  border-top: 1px solid rgba(17, 21, 17, 0.08);
  color: var(--color-text-muted);
  font-size: 0.92rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding: 54px 0 56px;
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid-two {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section,
  .site-footer,
  .text-page {
    width: min(100% - 28px, var(--page-width));
  }

  .hero h1 {
    letter-spacing: -0.052em;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
