:root {
  --ink: #073f3d;
  --ink-soft: #52605e;
  --green: #008e61;
  --green-bright: #63ba35;
  --surface: #f6f8f4;
  --paper: #ffffff;
  --line: rgba(7, 63, 61, 0.14);
  --shadow: 0 36px 100px rgba(7, 63, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(99, 186, 53, 0.09), transparent 28rem),
    linear-gradient(145deg, #f9faf7 0%, #eff4ef 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 0 5vw;
  overflow: hidden;
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.brand-word {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-word span {
  color: var(--green-bright);
}

.nav-link,
.text-link,
.site-footer a {
  position: relative;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-link::after,
.site-footer a::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.site-footer a:hover::after,
.site-footer a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
  padding: 7vh 0;
}

.hero-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  width: min(1050px, 94vw);
  min-height: 500px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.logo-wrap {
  display: grid;
  place-items: center;
  padding: 38px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 50% 30%, rgba(99, 186, 53, 0.16), transparent 60%);
  border-right: 1px solid var(--line);
}

.main-logo {
  display: block;
  width: min(100%, 330px);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(44px, 7vw, 92px);
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow i {
  width: 8px;
  height: 8px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(99, 186, 53, 0.12);
}

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

.hero h1,
.contact-intro h1 {
  max-width: 690px;
  margin-bottom: 34px;
  font-size: clamp(3.2rem, 7.4vw, 7.4rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.hero h1 {
  font-size: clamp(3rem, 6.3vw, 6.5rem);
}

.text-link {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
}

.text-link span,
.submit-button span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span,
.submit-button:hover span,
.submit-button:focus-visible span {
  transform: translate(3px, -3px);
}

.ambient {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.ambient-one {
  top: 4%;
  right: 1%;
  width: 270px;
  height: 270px;
  background: linear-gradient(145deg, rgba(99, 186, 53, 0.38), rgba(0, 142, 97, 0.08));
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient-two {
  bottom: 2%;
  left: 2%;
  width: 190px;
  height: 190px;
  background: linear-gradient(145deg, rgba(0, 142, 97, 0.2), rgba(255, 255, 255, 0));
  animation: drift 15s ease-in-out infinite alternate-reverse;
}

.edition {
  position: absolute;
  right: 0;
  bottom: 24px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
}

.site-footer {
  min-height: 76px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
}

.site-footer a {
  font-size: 0.66rem;
}

.inner-shell {
  overflow: visible;
}

.contact-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(70px, 10vw, 140px) 0;
}

.contact-intro {
  max-width: 850px;
  margin-bottom: clamp(54px, 8vw, 96px);
}

.contact-intro h1 {
  margin-bottom: 24px;
}

.contact-intro p {
  max-width: 570px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.form-card {
  padding: clamp(28px, 5vw, 62px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 32px;
  box-shadow: 0 26px 80px rgba(7, 63, 61, 0.08);
  backdrop-filter: blur(18px);
}

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

.field {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.field > span {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  color: var(--ink);
  background: rgba(246, 248, 244, 0.72);
  border: 1px solid var(--line);
  border-radius: 16px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.field input {
  min-height: 56px;
  padding: 0 18px;
}

.field textarea {
  min-height: 150px;
  padding: 17px 18px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  background: var(--paper);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 142, 97, 0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8c9895;
}

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  max-width: 720px;
  margin: 6px 0 30px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.6;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.submit-button {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  color: white;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: var(--green);
  box-shadow: 0 12px 30px rgba(0, 142, 97, 0.24);
  transform: translateY(-2px);
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 700;
}

.privacy-link {
  padding: 2px 0 3px;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.73rem;
  line-height: 1.4;
  transition: color 160ms ease;
}

.privacy-link:hover,
.privacy-link:focus-visible {
  color: var(--green);
}

.privacy-dialog {
  width: min(610px, calc(100vw - 36px));
  max-height: calc(100svh - 36px);
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 30px;
  outline: none;
  box-shadow: 0 34px 110px rgba(7, 63, 61, 0.3);
}

.privacy-dialog::backdrop {
  background: rgba(7, 39, 38, 0.58);
  backdrop-filter: blur(8px);
}

.privacy-dialog-panel {
  padding: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(circle at 96% 6%, rgba(99, 186, 53, 0.14), transparent 15rem),
    var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: inherit;
}

.privacy-dialog-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0 0 4px;
  color: var(--ink);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  color: var(--green);
  border-color: var(--green);
  transform: rotate(4deg);
}

.section-index {
  display: block;
  margin-bottom: 12px;
  color: var(--green-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.privacy-dialog h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

.privacy-copy {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

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

.dialog-confirm {
  min-height: 48px;
  margin-top: 30px;
  padding: 0 24px;
  color: white;
  cursor: pointer;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.dialog-confirm:hover,
.dialog-confirm:focus-visible {
  background: var(--green);
  transform: translateY(-1px);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) rotate(-8deg);
  }
  to {
    transform: translate3d(-34px, 28px, 0) rotate(8deg);
  }
}

@media (max-width: 780px) {
  .site-shell {
    padding: 0 20px;
  }

  .site-header {
    min-height: 72px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 70px;
  }

  .hero-card {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    border-radius: 28px;
  }

  .logo-wrap {
    min-height: 330px;
    padding: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-logo {
    width: min(100%, 250px);
  }

  .hero-copy {
    min-height: 310px;
    padding: 42px 30px;
  }

  .hero h1 {
    margin-bottom: 28px;
    font-size: clamp(3.15rem, 15vw, 5.5rem);
  }

  .edition {
    display: none;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    padding: 64px 0 90px;
  }

  .contact-intro h1 {
    font-size: clamp(3.7rem, 17vw, 6rem);
  }

  .form-card {
    border-radius: 24px;
  }

  .privacy-dialog {
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .logo-wrap {
    min-height: 290px;
  }

  .hero-copy {
    min-height: 280px;
  }

  .site-footer {
    min-height: 72px;
  }
}

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

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