:root {
  --bg: #fbfcf8;
  --surface: #ffffff;
  --surface-soft: #eef8ef;
  --ink: #171917;
  --muted: #5c635e;
  --line: #e2e8df;
  --brand: #0f8f6e;
  --brand-dark: #0b6b54;
  --lime: #d4f36a;
  --sun: #f4c84a;
  --coral: #ef705d;
  --shadow: 0 18px 50px rgba(23, 25, 23, 0.1);
  --radius: 8px;
  --max: 1160px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 243, 106, 0.28), transparent 34rem),
    linear-gradient(180deg, #fbfcf8 0%, #f4f7ef 100%);
}

body.locked {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(226, 232, 223, 0.9);
  background: rgba(251, 252, 248, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #06281f;
  background: linear-gradient(135deg, var(--lime), var(--sun));
  box-shadow: 0 8px 24px rgba(15, 143, 110, 0.18);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--surface-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span {
  opacity: 0;
}

.menu-toggle.open::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #ffffff;
  background: var(--brand);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(15, 143, 110, 0.2);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--surface);
}

.btn.secondary:hover {
  border-color: rgba(15, 143, 110, 0.38);
  background: var(--surface-soft);
  box-shadow: none;
}

.btn.sun {
  color: #151712;
  background: var(--lime);
}

.btn.sun:hover {
  background: var(--sun);
}

.site-main {
  min-height: 60vh;
}

.section {
  padding: clamp(58px, 8vw, 104px) 0;
}

.section.alt {
  background: rgba(238, 248, 239, 0.72);
}

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

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

.kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 143, 110, 0.18);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(212, 243, 106, 0.42);
  font-size: 13px;
  font-weight: 820;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.2;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
  background: #171917;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero::before {
  z-index: 0;
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
}

.hero::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 16, 14, 0.86) 0%, rgba(12, 16, 14, 0.56) 50%, rgba(12, 16, 14, 0.18) 100%),
    linear-gradient(0deg, rgba(12, 16, 14, 0.78) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 124px) 0;
}

.hero .kicker {
  color: #103227;
  background: var(--lime);
  border-color: transparent;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

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

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

.section-head p {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 143, 110, 0.32);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 22px;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 780;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.stat-card {
  padding: 26px;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-block {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.rich-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.78;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.form-band {
  background:
    linear-gradient(135deg, rgba(15, 143, 110, 0.1), rgba(212, 243, 106, 0.3)),
    var(--surface-soft);
}

.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(23, 25, 23, 0.08);
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(15, 143, 110, 0.7);
  box-shadow: 0 0 0 4px rgba(15, 143, 110, 0.12);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.success {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #0b4d3d;
  background: rgba(212, 243, 106, 0.48);
  font-weight: 760;
}

.success.show {
  display: block;
}

.detail-hero {
  background: var(--surface-soft);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-panel {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

.check-list li,
.steps-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--brand);
}

.steps-list {
  counter-reset: step;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #103227;
  background: var(--lime);
  font-size: 13px;
  font-weight: 840;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.contact-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.contact-item strong {
  overflow-wrap: anywhere;
}

.cta-band {
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(15, 143, 110, 0.94), rgba(11, 107, 84, 0.98)),
    #0f8f6e;
}

.cta-band .lead {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  padding: 44px 0 30px;
  color: rgba(255, 255, 255, 0.78);
  background: #171917;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(0, 180px));
  gap: 28px;
}

.site-footer h3 {
  color: #ffffff;
  font-size: 17px;
}

.site-footer a {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.floating-lead {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  box-shadow: 0 16px 36px rgba(15, 143, 110, 0.28);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 25, 23, 0.62);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(620px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  margin: 20px auto;
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.26);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 24px 0;
}

.modal-head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 22px;
}

.modal .lead-form {
  margin: 20px 24px 24px;
  box-shadow: none;
}

.empty-state {
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.not-found {
  min-height: 58vh;
  display: grid;
  align-items: center;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 13px 14px;
  }

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

  .split,
  .lead-layout,
  .detail-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .wrap,
  .narrow,
  .hero-content {
    width: min(100% - 24px, var(--max));
  }

  .hero {
    min-height: 640px;
  }

  h1 {
    font-size: clamp(36px, 12vw, 54px);
  }

  h2 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .section-head {
    display: block;
  }

  .section-head p {
    margin-top: 10px;
  }

  .grid.three,
  .grid.two,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .lead-form .btn {
    width: 100%;
  }

  .split-media img {
    min-height: 250px;
  }

  .floating-lead {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .floating-lead .btn {
    width: 100%;
  }

  .site-footer {
    padding-bottom: 82px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
