:root {
  --bg: #f4f7f4;
  --bg-soft: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --text: #1a2a22;
  --text-muted: #4d5d55;
  --line: #d6dfd8;
  --brand-700: #0e7a52;
  --brand-600: #1e8a62;
  --brand-500: #319b74;
  --teal-500: #319b74;
  --accent: #d90b2f;
  --ok: #136f44;
  --error: #a11630;
  --shadow-lg: 0 24px 56px rgba(20, 47, 34, 0.16);
  --shadow-md: 0 14px 30px rgba(20, 47, 34, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: min(1120px, 92vw);
  --header-height: 64px;
  --transition: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(14, 122, 82, 0.18), transparent 32%),
    radial-gradient(circle at 110% 10%, rgba(217, 11, 47, 0.08), transparent 24%),
    linear-gradient(180deg, #f9fbf8 0%, #edf1ed 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-600);
}

a:hover {
  color: var(--brand-700);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  color: var(--brand-700);
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 2px solid var(--brand-700);
}

.skip-link:focus {
  left: 1rem;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(26, 52, 40, 0.14);
  backdrop-filter: blur(12px);
  background: rgba(247, 250, 247, 0.92);
}

.header-bar {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand lang menu"
    "nav nav nav";
  align-items: center;
  column-gap: 0.6rem;
  row-gap: 0;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 50px;
  height: auto;
  flex: 0 0 auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(20, 47, 34, 0.16));
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  display: none;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.menu-toggle {
  grid-area: menu;
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-700);
  border-radius: 10px;
  padding: 0.4rem 0.65rem;
  font-size: 1.1rem;
  justify-self: end;
}

.primary-nav {
  grid-area: nav;
  width: 100%;
  display: none;
}

.primary-nav.is-open {
  display: block;
  margin-top: 0.45rem;
  padding-bottom: 0.4rem;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.4rem;
}

.primary-nav a {
  display: block;
  width: 100%;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  transition: background var(--transition), color var(--transition);
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(14, 122, 82, 0.14);
  color: var(--brand-700);
}

.header-actions {
  grid-area: lang;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.45rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  background: #fff;
}

.lang-switch strong {
  color: var(--brand-700);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.header-actions .button.primary {
  display: none;
}

.button,
button.button,
input.button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  padding: 0.72rem 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button.primary {
  background: linear-gradient(125deg, var(--brand-700), var(--brand-500));
  color: #fff;
  box-shadow: 0 10px 28px rgba(14, 122, 82, 0.33);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(14, 122, 82, 0.42);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-700);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
}

main {
  flex: 1;
}

.section {
  padding: 2.4rem 0;
}

.section.tight {
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
}

.hero {
  padding-top: 1.6rem;
  padding-bottom: 2.4rem;
}

main > .section:first-child {
  padding-top: 1.35rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  align-items: center;
}

.eyebrow {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-500);
  margin: 0 0 0.9rem;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Segoe UI", sans-serif;
  line-height: 1.17;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 {
  font-size: clamp(1.95rem, 4vw, 3.35rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  margin-bottom: 0.6rem;
}

p {
  margin: 0;
}

.lead {
  color: var(--text-muted);
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-actions .button {
  width: 100%;
}

.hero-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  background: linear-gradient(170deg, #ffffff 0%, #eff7f1 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% auto;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217, 11, 47, 0.16), rgba(217, 11, 47, 0));
  pointer-events: none;
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(14, 122, 82, 0.24);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.stat-card strong {
  display: block;
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 1.1rem;
  color: var(--brand-700);
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.panel-note {
  margin-top: 0.95rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.card {
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(14, 122, 82, 0.16);
  box-shadow: var(--shadow-md);
  padding: 1.2rem;
}

.card p {
  color: var(--text-muted);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  background: linear-gradient(140deg, rgba(14, 122, 82, 0.2), rgba(217, 11, 47, 0.14));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-muted);
  padding: 0.33rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.callout {
  border-radius: var(--radius-lg);
  background: linear-gradient(130deg, rgba(14, 122, 82, 0.96), rgba(28, 49, 38, 0.96));
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.callout::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -140px;
  top: -160px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
}

.callout h2,
.callout p {
  position: relative;
}

.callout p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 58ch;
  margin-bottom: 1.2rem;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  position: relative;
  padding-left: 1.1rem;
  margin-top: 0.45rem;
}

.list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal-500);
  position: absolute;
  left: 0;
  top: 0.62rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 66ch;
}

.kpi-strip {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.kpi {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem 1rem;
}

.kpi strong {
  display: block;
  color: var(--brand-700);
  font-family: "Sora", "Segoe UI", sans-serif;
}

.kpi span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

form.card {
  padding: 1.4rem;
}

.form-field {
  margin-bottom: 0.95rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(14, 122, 82, 0.16);
  outline: 0;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form-error {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.83rem;
  color: var(--error);
  min-height: 1.1em;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}

.checkbox input {
  margin-top: 0.2rem;
}

.checkbox label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-status {
  min-height: 1.2em;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.8rem;
}

.form-status.ok {
  color: var(--ok);
}

.form-status.error {
  color: var(--error);
}

.notice {
  border-left: 4px solid var(--brand-500);
  background: rgba(14, 122, 82, 0.08);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: var(--text-muted);
}

.legal article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.legal h2 {
  margin-top: 1.8rem;
}

.legal h2:first-of-type {
  margin-top: 0;
}

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

.legal ul {
  padding-left: 1.2rem;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(26, 52, 40, 0.18);
  background: #edf2ee;
}

.footer-grid {
  padding: 2rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.footer-grid h2 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.45rem;
}

.footer-grid a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-grid a:hover {
  color: var(--brand-700);
}

.footer-bottom {
  border-top: 1px solid rgba(26, 52, 40, 0.12);
  padding: 1rem 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: rgba(20, 47, 34, 0.96);
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  z-index: 80;
  box-shadow: var(--shadow-lg);
}

.cookie-banner p {
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions button {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  padding: 0.48rem 0.92rem;
  cursor: pointer;
  font-weight: 700;
}

.cookie-actions .accept {
  border-color: transparent;
  background: linear-gradient(125deg, #35b36b, #1e7d48);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(6, 26, 44, 0.66);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal[hidden],
.cookie-banner[hidden] {
  display: none !important;
}

.cookie-panel {
  width: min(520px, 96vw);
  background: #fff;
  border-radius: 18px;
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem;
  margin-top: 0.9rem;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cookie-modal-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 650ms ease, transform 650ms ease;
}

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

.focus-ring:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(14, 122, 82, 0.38);
  outline-offset: 2px;
}

/* ── Success modal ─────────────────────────────────────── */
.contact-success-panel {
  text-align: center;
  padding: 2rem 1.6rem 1.6rem;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 auto 1.2rem;
  line-height: 1;
}

.contact-success-panel h2 {
  margin-bottom: 0.5rem;
}

.contact-success-panel p {
  color: var(--text-muted);
  max-width: 38ch;
  margin: 0 auto;
}

.contact-success-panel .cookie-modal-actions {
  justify-content: center;
  margin-top: 1.4rem;
}

@media (min-width: 621px) {
  :root {
    --header-height: 72px;
  }

  .brand-mark {
    width: 56px;
  }

  .brand-text strong {
    font-size: 0.94rem;
  }

  .brand-text span {
    display: block;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-actions .button {
    width: auto;
  }

  .cookie-actions,
  .cookie-modal-actions {
    flex-direction: row;
  }

  .grid-2,
  .kpi-strip,
  .stat-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 861px) {
  .header-bar {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav actions";
    gap: 1rem;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    grid-area: nav;
    width: auto;
    display: block;
    padding-bottom: 0;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }

  .primary-nav a {
    width: auto;
  }

  .header-actions {
    grid-area: actions;
    gap: 0.6rem;
  }

  .header-actions .button.primary {
    display: inline-flex;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-wrap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.2rem;
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .section {
    padding: 3.4rem 0;
  }

  .hero {
    padding-top: 2.2rem;
    padding-bottom: 3.4rem;
  }

  main > .section:first-child {
    padding-top: 2.2rem;
  }
}
