:root {
  --bg: #f5f2e9;
  --ink: #172018;
  --muted: #5f6b5f;
  --green: #2f6f3e;
  --green-dark: #1f4f2b;
  --blue: #1d4f73;
  --blue-dark: #14364f;
  --cream: #fffaf0;
  --line: rgba(23, 32, 24, 0.12);
  --shadow: 0 24px 70px rgba(23, 32, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 111, 62, 0.18), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(29, 79, 115, 0.14), transparent 30rem),
    var(--bg);
}

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

.page {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  display: flex;
  min-height: calc(100vh - 80px);
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 48px;
}

.badge {
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.72);
  color: var(--green-dark);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(23, 32, 24, 0.08);
  backdrop-filter: blur(10px);
}

h1 {
  max-width: 820px;
  margin: 28px 0 18px;
  font-size: clamp(2.6rem, 8vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.intro {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  opacity: 0.14;
}

.card-green::after {
  background: var(--green);
}

.card-blue::after {
  background: var(--blue);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(23, 32, 24, 0.22);
  box-shadow: 0 32px 90px rgba(23, 32, 24, 0.22);
}

.icon {
  display: block;
  margin-bottom: 42px;
  font-size: 2.6rem;
}

.label {
  display: block;
  max-width: 420px;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.desc {
  display: block;
  max-width: 430px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.cta {
  display: inline-flex;
  margin-top: 28px;
  font-weight: 800;
}

.card-green .cta {
  color: var(--green-dark);
}

.card-blue .cta {
  color: var(--blue-dark);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  color: rgba(23, 32, 24, 0.62);
  font-size: 0.95rem;
}

.seed {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-top: 42px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 34px;
  }

  .card {
    min-height: 230px;
    padding: 24px;
    border-radius: 24px;
  }

  .icon {
    margin-bottom: 34px;
  }

  footer {
    flex-direction: column;
  }
}

.logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  margin-bottom: 34px;
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.82);
  border: 1px solid var(--line);
  overflow: hidden;
}

.project-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

@media (max-width: 760px) {
  .logo-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 28px;
    border-radius: 22px;
  }
}

.contact-box {
  margin-top: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: 0 18px 50px rgba(23, 32, 24, 0.10);
}

.contact-box p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--cream);
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(23, 32, 24, 0.18);
}

.contact-link {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
}

.contact-box {
  margin-top: 38px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 24px 70px rgba(23, 32, 24, 0.13);
  backdrop-filter: blur(10px);
}

.contact-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.contact-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.contact-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form label span {
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 32, 24, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 14px 16px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(47, 111, 62, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(47, 111, 62, 0.12);
}

.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--green-dark);
  color: var(--cream);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(23, 32, 24, 0.20);
}

.contact-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.contact-status.is-error {
  color: #8b2f2f;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-bottom {
    align-items: stretch;
  }

  .contact-submit {
    width: 100%;
  }
}
