:root {
  color-scheme: light;
  --bg: #f5f7f4;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --text: #1f2a25;
  --muted: #62716a;
  --line: #d7e1dc;
  --green: #2f6c52;
  --green-dark: #1f4b3b;
  --amber: #9b6a2c;
  --shadow: 0 18px 50px rgba(31, 42, 37, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: inherit; text-decoration: none; }

.site-header,
.hero,
.content-band,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
}

.brand,
.language-switcher {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--green-dark);
  font-size: 0.78rem;
}

.language-switcher {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.language-switcher button.active,
.language-switcher button:hover,
.language-switcher button:focus-visible {
  background: var(--green-dark);
  color: #fff;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: 540px;
  padding: clamp(36px, 7vw, 92px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.26rem);
}

.safety-box {
  max-width: 760px;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid #ead7b5;
  border-radius: 8px;
  background: #fff8eb;
  color: #65491e;
  font-size: 0.95rem;
}

.planner-preview {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px 14px;
  min-height: 78px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbf9;
}

.preview-card.strong {
  border-color: #bed9ca;
  background: #e9f5ef;
}

.preview-card span {
  color: var(--green-dark);
  font-weight: 900;
}

.preview-card strong {
  font-size: 1.1rem;
}

.preview-card small {
  grid-column: 2;
  color: var(--muted);
}

.content-band {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.content-band.muted {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1160px) / 2));
  background: var(--surface);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.name-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.name-grid article,
.feature-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-grid article {
  background: #fff;
}

.step {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
}

.rule-list {
  display: grid;
  gap: 10px;
  max-width: 920px;
}

.rule-list p {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.brief-link {
  display: inline-flex;
  margin-top: 20px;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 850;
}

.brief-link:hover,
.brief-link:focus-visible {
  background: var(--green-dark);
  color: #fff;
  outline: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 38px;
  color: var(--muted);
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
