:root {
  --brand-green: #389848;
  --brand-green-dark: #1f6f31;
  --ink: #080c09;
  --muted: #667069;
  --line: #d6ded8;
  --page: #f3f7f4;
  --surface: #ffffff;
  --surface-soft: #e8f1ea;
  --shadow: 0 24px 70px rgba(8, 12, 9, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background-color: #fbfcfb;
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 6v8M6 10h8' stroke='%23e8ece9' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: 0 0;
  background-size: 30px 30px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  display: grid;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  place-items: center;
}

.hero {
  display: grid;
  width: min(100%, 56rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 5vw, 5rem);
  align-content: center;
  justify-items: center;
  gap: 0.7rem;
}

.brand-wrap {
  display: grid;
  width: min(100%, clamp(12rem, 22vw, 18rem));
  aspect-ratio: 529 / 395;
  place-items: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 42px rgba(8, 12, 9, 0.12));
}

.hero-content {
  display: grid;
  width: min(100%, 52rem);
  justify-items: center;
  gap: clamp(1.5rem, 4vw, 2.25rem);
  text-align: center;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 5.5vw, 4.6rem);
  font-weight: 760;
  line-height: 0.96;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.45rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(56, 152, 72, 0.28);
  outline-offset: 3px;
}

.button-primary {
  color: #ffffff;
  background: var(--brand-green);
  box-shadow: 0 16px 34px rgba(56, 152, 72, 0.26);
}

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

.button-secondary {
  color: var(--ink);
  border-color: rgba(8, 12, 9, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(8, 12, 9, 0.08);
}

.button-secondary:hover {
  border-color: rgba(56, 152, 72, 0.42);
  background: var(--surface);
}

.modal {
  width: min(100% - 2rem, 32rem);
  max-height: min(92svh, 42rem);
  padding: 0;
  border: 1px solid rgba(8, 12, 9, 0.1);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: var(--shadow);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(8, 12, 9, 0.22);
  backdrop-filter: blur(6px);
}

.modal .lead-form {
  max-height: min(92svh, 42rem);
  overflow: auto;
}

.lead-form {
  width: 100%;
  padding: clamp(1.2rem, 4vw, 1.8rem);
  border-radius: var(--radius);
  background: var(--surface);
}

.modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.lead-form h2 {
  max-width: 100%;
  color: var(--ink);
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  font-weight: 760;
  line-height: 1.02;
}

.modal-close {
  display: inline-grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fbfdfb;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--ink);
  border-color: rgba(56, 152, 72, 0.45);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fbfdfb;
  font-size: 1rem;
  line-height: 1.3;
}

input {
  min-height: 3rem;
  padding: 0 1rem;
}

textarea {
  min-height: 7rem;
  padding: 0.95rem 1rem;
  resize: vertical;
}

input:hover,
textarea:hover {
  border-color: rgba(56, 152, 72, 0.5);
}

.lead-form.was-validated input:invalid,
.lead-form.was-validated textarea:invalid {
  border-color: #b84545;
}

.form-footer {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.form-status {
  min-height: 1.35rem;
  color: var(--brand-green-dark);
  font-size: 0.95rem;
  font-weight: 650;
  text-align: center;
}

.form-status.is-error {
  color: #b84545;
}

.form-status.is-success {
  color: var(--brand-green-dark);
}

.success-notice {
  display: none;
  align-items: center;
  gap: 0.8rem;
  width: min(100%, 23rem);
  min-height: 4.35rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(56, 152, 72, 0.18);
  border-radius: var(--radius);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(8, 12, 9, 0.16);
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.2;
  text-align: left;
}

.success-notice.is-visible {
  display: inline-flex;
}

.success-check {
  position: relative;
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-green);
  box-shadow: 0 10px 22px rgba(56, 152, 72, 0.24);
}

.success-check::after {
  content: "";
  width: 0.72rem;
  height: 0.42rem;
  border-bottom: 0.16rem solid #ffffff;
  border-left: 0.16rem solid #ffffff;
  transform: translateY(-0.06rem) rotate(-45deg);
}

@media (max-width: 760px) {
  .hero {
    gap: 0.6rem;
  }

  .brand-wrap {
    width: min(100%, 17rem);
  }

  h1 {
    max-width: 9ch;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .lead-form h2 {
    max-width: 13ch;
  }
}

@media (min-width: 761px) {
  .hero {
    transform: translateY(-4vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
