:root {
  --brand: #508539;
  --brand-dark: #3f6c2d;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --footer: #b0b0b0;
  --field-bg: #f3f3f3;
  --field-border: #e4e4e4;
  --white: #ffffff;
  --radius: 8px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(80, 133, 57, 0.08), transparent 60%),
    linear-gradient(180deg, #fafcfa 0%, var(--white) 38%, var(--white) 100%);
  line-height: 1.5;
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo {
  width: min(100%, 360px);
  height: auto;
  display: block;
}

.animation {
  width: min(100%, 360px);
}

.lottie {
  width: 100%;
  aspect-ratio: 1;
}

.message {
  width: 100%;
}

.message h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.message p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
}

.contact {
  width: 100%;
}

.contact h2 {
  margin: 0 0 1.25rem;
  color: var(--brand);
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 700;
}

.contact-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  appearance: none;
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out);
}

.field input::placeholder {
  color: #9a9a9a;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(80, 133, 57, 0.18);
}

.field input.is-invalid {
  border-color: #c0392b;
}

.topics {
  border: 0;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.topic {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.topic input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  background: var(--white);
  flex-shrink: 0;
  display: grid;
  place-content: center;
  transition: border-color 0.2s var(--ease-out);
}

.topic input::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  transform: scale(0);
  background: var(--brand);
  transition: transform 0.18s var(--ease-out);
}

.topic input:checked {
  border-color: var(--brand);
}

.topic input:checked::before {
  transform: scale(1);
}

.topic input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.captcha-wrap {
  display: flex;
  justify-content: flex-start;
  min-height: 78px;
  overflow: hidden;
}

.send {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.send:hover:not(:disabled) {
  background: var(--brand-dark);
}

.send:active:not(:disabled) {
  transform: translateY(1px);
}

.send:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin: 0;
  min-height: 1.35rem;
  font-size: 0.92rem;
  color: var(--muted);
}

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

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

.footer {
  margin-top: 0.75rem;
  padding: 0.75rem 0 0.25rem;
}

.footer p {
  margin: 0;
  color: var(--footer);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  will-change: opacity, transform;
}

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

.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
.reveal:nth-child(3) {
  transition-delay: 0.2s;
}
.reveal:nth-child(4) {
  transition-delay: 0.28s;
}
.reveal:nth-child(5) {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .send,
  .field input,
  .topic input,
  .topic input::before {
    transition: none;
  }
}

@media (min-width: 768px) {
  .page {
    gap: 2rem;
    padding: 3.25rem 0 2.5rem;
  }

  .logo {
    width: min(100%, 420px);
  }

  .animation {
    width: min(100%, 420px);
  }
}
