:root {
  --ink: #e5e9e8;
  --muted: rgba(229, 233, 232, 0.72);
  --paper: #284238;
  --card: rgba(16, 43, 29, 0.56);
  --accent: #7fe8e0;
  --accent-dark: #102b1d;
  --hero-accent: #7fe8e0;
  --hero-accent-dark: #102b1d;
  --deep: #102b1d;
  --green: #7fe8e0;
  --soft: rgba(127, 232, 224, 0.1);
  --yellow: #d9d84a;
  --negative: #dc906b;
  --forest: #244b3f;
  --sage: #4a6057;
  --stone: #6b8479;
  --mist: #6e8178;
  --creative: #466d62;
  --line: rgba(229, 233, 232, 0.16);
  --radius: 22px;
  --shadow: 0 20px 60px rgba(16, 43, 29, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-header,
.site-footer,
main {
  width: min(1140px, calc(100% - 72px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: max(36px, calc((100% - 1140px) / 2));
  color: var(--ink);
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(16, 43, 29, 0.3), rgba(16, 43, 29, 0.9)),
    url("assets/header-pattern.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: auto, 160px auto;
  box-shadow: 0 8px 24px rgba(16, 43, 29, 0.28);
}

.site-header--compact {
  min-height: 80px;
}

.logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--ink);
  background: var(--deep);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a,
.back-link {
  color: var(--yellow);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav a:hover,
.back-link:hover {
  color: var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: stretch;
  gap: clamp(40px, 8vw, 100px);
  min-height: auto;
  padding: 34px 0 68px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--hero-accent);
}

.hero__eyebrow--mobile {
  display: none;
}

.eyebrow--light {
  color: var(--yellow);
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 700;
}

h1 span {
  color: var(--hero-accent);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

.button--primary {
  color: var(--deep);
  background: var(--yellow);
}

.button--primary:hover {
  background: var(--accent);
}

.button--secondary {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.button--secondary:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.portrait-wrap {
  position: relative;
  display: flex;
  height: auto;
  min-height: 100%;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: var(--yellow);
}

.portrait-wrap::before {
  display: none;
}

.portrait {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: var(--shadow);
}

@media (min-width: 821px) {
  .portrait-wrap {
    border-radius: 11px;
  }

  .portrait {
    border-radius: 7px 22px 11px 7px;
    transform: translate(13px, -13px);
  }
}

.section {
  padding: 86px 0;
}

.approach-section {
  padding: 76px 0;
  background: var(--forest);
  box-shadow: 0 0 0 100vmax var(--forest);
  clip-path: inset(0 -100vmax);
}

.approach-section__heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1.3fr);
  column-gap: clamp(40px, 8vw, 100px);
}

.approach-section__heading .eyebrow,
.approach-section__heading h2 {
  grid-column: 1;
}

.approach-section__intro {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 7vw, 90px);
  margin-top: 46px;
}

.approach-item {
  padding-top: 24px;
  border-top: 2px solid var(--accent);
}

.approach-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.section__heading {
  margin-bottom: 28px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 260px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--creative);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 42px;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__icon .icon-accent {
  stroke: var(--accent);
}

.service-card__icon .icon-dot {
  fill: var(--accent);
}

.service-card__icon .earth-orbit {
  stroke: var(--green);
}

.service-card__icon .earth-shape {
  fill: var(--mist);
  stroke: var(--deep);
}

.service-card__icon .earth-lines {
  stroke-width: 1.15;
  stroke: var(--deep);
}

.service-card__icon .prism-shape {
  fill: rgba(229, 233, 232, 0.14);
  stroke-width: 2.25;
}

.service-card__icon .prism-light {
  stroke: var(--green);
  stroke-width: 1.95;
}

.service-card__icon .prism-light--inside {
  stroke: rgba(127, 232, 224, 0.7);
  stroke-width: 1.45;
}

.service-card__icon .prism-ray {
  stroke-width: 1.8;
}

.service-card__icon .prism-ray--red {
  stroke: var(--negative);
}

.service-card__icon .prism-ray--orange {
  stroke: var(--negative);
}

.service-card__icon .prism-ray--yellow {
  stroke: var(--yellow);
}

.service-card__icon .prism-ray--green {
  stroke: var(--accent);
}

.service-card__icon .prism-ray--blue {
  stroke: var(--accent);
}

.service-card__icon .prism-ray--violet {
  stroke: var(--ink);
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink);
}

.service-card h3 {
  color: var(--accent);
}

.service-card .service-card__note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  padding: clamp(34px, 7vw, 78px);
  border-radius: 30px;
  color: var(--ink);
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(16, 43, 29, 0.3), rgba(16, 43, 29, 0.9)),
    url("assets/header-pattern.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: auto, 384px auto;
}

.contact-section__text {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 550;
}

.contact-list {
  display: grid;
}

.contact-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-list span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-list strong {
  text-align: right;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-link-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.legal-page {
  padding: 70px 0 110px;
}

.legal-intro {
  max-width: 850px;
  margin-bottom: 56px;
}

.legal-form-page .legal-intro {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.legal-intro h1 {
  font-size: clamp(1.47rem, 3vw, 2.64rem);
}

.legal-intro > p:last-child {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.1rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
  gap: 28px;
}

.form-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: 28px;
}

.form-page-layout--single {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}

.form-aside {
  position: sticky;
  top: 28px;
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--sage);
}

.form-aside h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.form-aside > p:not(.eyebrow) {
  color: var(--muted);
}

.form-aside .notice {
  border-left-color: var(--yellow);
  color: var(--ink);
  background: rgba(217, 216, 74, 0.1);
}

.legal-document {
  max-width: 900px;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--forest);
}

.document-page .legal-document {
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.pdf-viewer {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  min-height: 60vh;
}

.pdf-viewer canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: var(--ink);
  box-shadow: 0 8px 30px rgba(16, 43, 29, 0.28);
}

.pdf-viewer__status {
  align-self: start;
  margin: 20px 0;
  color: var(--muted);
  text-align: center;
}

.legal-document section + section {
  margin-top: 42px;
}

.legal-document h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-document p,
.legal-document li {
  color: var(--muted);
}

.legal-document li + li {
  margin-top: 8px;
}

.consent-copy,
.consent-form-wrap {
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--forest);
}

.consent-form-wrap {
  width: 100%;
  padding: clamp(34px, 6vw, 64px);
  background-image:
    linear-gradient(rgba(16, 43, 29, 0.1), rgba(16, 43, 29, 0.1)),
    url("assets/form-pattern-sharp.jpg");
  background-position: center;
  background-repeat: repeat;
  background-size: auto, 384px auto;
}

.consent-copy h2,
.consent-form-wrap h2 {
  font-size: 1.6rem;
}

.consent-copy p {
  color: var(--muted);
}

.notice {
  margin-top: 28px;
  padding: 18px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(110, 129, 120, 0.25);
  color: var(--ink);
  font-size: 0.92rem;
}

.consent-form {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(229, 233, 232, 0.14);
  border-radius: 14px;
  background: rgba(16, 43, 29, 0.62);
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.consent-form label:not(.checkbox-label) {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

.consent-form input[type="text"],
.consent-form input[type="email"],
.consent-form input[type="tel"],
.consent-form select,
.consent-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--deep);
  background: var(--ink);
  font: inherit;
}

.consent-form textarea {
  min-height: 140px;
  padding-block: 14px;
  resize: vertical;
}

.consent-form input:focus {
  outline: 3px solid rgba(127, 232, 224, 0.24);
  border-color: var(--accent);
}

.consent-form select:focus,
.consent-form textarea:focus {
  outline: 3px solid rgba(127, 232, 224, 0.24);
  border-color: var(--accent);
}

.input-error {
  color: var(--negative);
  font-size: 0.82rem;
  font-weight: 650;
}

.input-error[hidden] {
  display: none;
}

.consent-form input[aria-invalid="true"] {
  border-color: var(--negative);
}

.checkbox-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--accent);
}

.consent-form .button {
  width: 100%;
}

.submit-wrap {
  position: relative;
}

.form-tooltip {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(340px, 100%);
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--deep);
  background: var(--negative);
  box-shadow: 0 12px 30px rgba(16, 43, 29, 0.32);
  font-size: 0.88rem;
  font-weight: 650;
}

.form-tooltip::after {
  position: absolute;
  right: 24px;
  top: 100%;
  border: 7px solid transparent;
  border-top-color: var(--negative);
  content: "";
}

.form-tooltip[hidden] {
  display: none;
}

.consent-form .button:disabled {
  color: rgba(229, 233, 232, 0.5);
  background: rgba(16, 43, 29, 0.7);
  cursor: not-allowed;
  transform: none;
}

.submit-button {
  position: relative;
  overflow: hidden;
}

.submit-button__content {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.submit-button__indicator {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
}

.submit-button[data-state="loading"]:disabled {
  color: var(--deep);
  background: var(--yellow);
  cursor: wait;
}

.submit-button[data-state="loading"] .submit-button__indicator {
  border: 2px solid rgba(16, 43, 29, 0.28);
  border-top-color: var(--deep);
  border-radius: 50%;
  opacity: 1;
  transform: translateY(-50%) scale(1);
  animation: submit-button-spin 720ms linear infinite;
}

.submit-button[data-state="success"]:disabled {
  color: var(--deep);
  background: var(--accent);
  border-color: rgba(229, 233, 232, 0.5);
  cursor: default;
  animation: submit-button-success 520ms ease-out;
}

.submit-button[data-state="success"] .submit-button__indicator {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.submit-button[data-state="success"] .submit-button__indicator::before {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  content: "✓";
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  animation: submit-button-check 420ms ease-out;
}

@keyframes submit-button-spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes submit-button-success {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.015);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes submit-button-check {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.6);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(16, 43, 29, 0.98);
  box-shadow: 0 18px 60px rgba(16, 25, 21, 0.28);
}

.cookie-banner__content {
  width: min(1120px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cookie-banner p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--accent);
}

.cookie-banner__button {
  flex: 0 0 auto;
  min-width: 130px;
}

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

@media (max-width: 820px) {
  .hero,
  .contact-section,
  .legal-layout,
  .form-page-layout {
    grid-template-columns: 1fr;
  }

  .approach-section__heading,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-section__intro {
    grid-column: 1;
    grid-row: auto;
  }

  .form-aside {
    position: static;
  }

  .hero {
    padding-top: 48px;
  }

  .hero__eyebrow--desktop {
    display: none;
  }

  .hero__eyebrow--mobile {
    display: block;
    margin-bottom: -21px;
    text-align: center;
  }

  .hero__content {
    order: 2;
  }

  .portrait-wrap {
    width: min(100%, 480px);
    margin-inline: auto;
    height: auto;
    min-height: 0;
    padding: 8px;
  }

  .portrait {
    height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-card__icon {
    margin-bottom: 36px;
  }
}

@media (max-width: 600px) {
  .site-footer,
  main {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    width: 100%;
    padding-inline: 14px;
  }

  .nav {
    gap: 14px;
  }

  .nav a:nth-child(-n + 2) {
    display: none;
  }

  .hero {
    gap: 44px;
    padding-top: 29px;
    padding-bottom: 51px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 2.1rem;
  }

  .section {
    padding: 61px 0;
  }

  .approach-section {
    padding: 61px 0;
  }

  .contact-section {
    gap: 30px;
    margin-bottom: 35px;
  }

  .contact-list a {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .contact-list strong {
    text-align: left;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }

  .footer-links {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .cookie-banner__content {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .back-link {
    font-size: 0.85rem;
  }

  .legal-page {
    padding-top: 50px;
  }
}

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

  .button {
    transition: none;
  }

  .submit-button,
  .submit-button__indicator,
  .submit-button__indicator::before {
    animation: none !important;
  }
}
