:root {
  color-scheme: light;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-muted: #ecefe8;
  --text: #161815;
  --muted: #5c6258;
  --line: #d8ddd2;
  --accent: #0f6b5f;
  --accent-dark: #0a4d45;
  --focus: #b36b00;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
  overflow-wrap: break-word;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, 0.96);
}

.brand {
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
}

.section {
  padding: 72px 0;
  scroll-margin-top: 96px;
}

.section-muted {
  background: var(--surface-muted);
  border-block: 1px solid var(--line);
}

.section-inner {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.hero {
  padding-top: 84px;
}

.hero-layout,
.split,
.two-column,
.contact-layout,
.fit-layout,
.footer-layout {
  display: grid;
  gap: 32px;
}

.hero-layout > *,
.split > *,
.two-column > *,
.contact-layout > *,
.fit-layout > * {
  min-width: 0;
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 7vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: 1.2rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
}

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: transparent;
  color: var(--accent-dark);
}

.button-secondary:hover {
  background: #e1e9e2;
}

.hero-panel,
.questions {
  align-self: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.panel-label {
  margin-bottom: 8px;
  color: var(--accent-dark);
  font-weight: 760;
}

.content-block {
  max-width: 680px;
}

.content-block p:last-child,
.hero-panel p:last-child,
.questions ol,
.contact-layout p:last-of-type {
  margin-bottom: 0;
}

.check-list,
.tag-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--text);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "/";
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 760;
  content: counter(process, decimal-leading-zero);
}

.process-list p {
  margin-bottom: 0;
}

.lead-sentence {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 720;
}

.quality-grid,
.change-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.quality-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
}

.change-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.quality-grid div,
.change-grid div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.change-grid h3 {
  overflow-wrap: anywhere;
}

.quality-grid p,
.change-grid p {
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.3;
}

.fit-section {
  padding-block: 64px;
}

.fit-layout {
  gap: 20px;
}

.fit-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.fit-card h2 {
  max-width: 560px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4.8vw, 2.7rem);
  line-height: 1.08;
}

.fit-card p {
  max-width: 58ch;
}

.fit-card-negative {
  background: rgba(255, 255, 255, 0.34);
}

.fit-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fit-list li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.4;
}

.fit-list li::before {
  position: absolute;
  left: 0;
  color: var(--accent);
  content: "/";
}

.about-copy p {
  max-width: 64ch;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-section {
  background: var(--accent-dark);
  color: #ffffff;
}

.contact-section p,
.contact-section .eyebrow {
  color: #dce9e5;
}

.contact-section .button-primary {
  margin-top: 14px;
  border-color: #ffffff;
  background: #ffffff;
  color: var(--accent-dark);
}

.contact-section .button-primary:hover {
  background: #e8efec;
}

.contact-mail {
  margin-top: 14px;
  color: #dce9e5;
  font-weight: 720;
}

.questions {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.questions ol {
  padding-left: 20px;
  color: #edf5f2;
}

.questions li + li {
  margin-top: 8px;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.footer-layout {
  gap: 6px;
}

.site-footer p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.legal-section {
  min-height: calc(100vh - 210px);
}

.legal-layout {
  display: grid;
  gap: 32px;
}

.legal-content {
  max-width: 760px;
}

.legal-content section + section {
  margin-top: 34px;
}

.legal-content h2 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.18;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

@media (min-width: 720px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding-top: 112px;
  }

  .split,
  .two-column,
  .contact-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .contact-section h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    line-height: 1.12;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list li {
    min-height: 168px;
  }

  .legal-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}

@media (min-width: 1080px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    align-items: end;
  }
}

@media (min-width: 980px) {
  .fit-section {
    padding-block: 82px;
  }

  .fit-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
  }

  .fit-card {
    padding: 34px;
  }

  .fit-card h2 {
    font-size: clamp(2.1rem, 3.4vw, 3rem);
  }

  .process-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .site-header {
    position: static;
  }

  .site-nav {
    width: 100%;
  }

  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .section {
    padding: 56px 0;
    scroll-margin-top: 24px;
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.2rem);
    line-height: 1.08;
  }

  .hero-panel,
  .questions,
  .fit-card {
    padding: 20px;
  }

  .button {
    width: 100%;
  }
}
