:root {
  --paper: #f5f0ea;
  --paper-soft: #eee6dd;
  --green: #587267;
  --green-deep: #486357;
  --rose: #c26772;
  --ink: #46424a;
  --muted: #7d877f;
  --white: #fffaf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
}

.language-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 10;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 8px 24px rgba(70, 66, 74, 0.12);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  min-width: 38px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.language-switcher button.is-active {
  background: var(--green);
  color: white;
}

main {
  width: min(1120px, calc(100% - 36px));
  max-width: 100%;
  margin: 0 auto;
  padding: 52px 0 34px;
}

.hero {
  min-height: min(860px, 96vh);
  display: grid;
  align-content: center;
  gap: 42px;
}

.hero__copy {
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 18px;
  color: var(--green);
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.96;
  text-transform: uppercase;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.lead {
  margin: 0 auto;
  max-width: 760px;
  color: var(--green);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--rose);
  color: white;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.button--soft {
  background: transparent;
  color: var(--green-deep);
  box-shadow: inset 0 0 0 2px rgba(88, 114, 103, 0.28);
}

.photo-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  align-items: center;
}

.photo-pair img,
.contact img {
  min-width: 0;
  width: 100%;
  display: block;
  object-fit: cover;
}

.photo-pair img {
  aspect-ratio: 10 / 7;
  border-radius: 28px;
}

section {
  margin: 92px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
  color: var(--green);
  text-align: center;
}

h2 {
  max-width: 100%;
  margin: 0;
  color: var(--green);
  font-size: clamp(1.85rem, 4.6vw, 3.55rem);
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sketch {
  color: var(--rose);
  font-size: 2.5rem;
  line-height: 1;
}

.leaf {
  width: 34px;
  height: 50px;
  border: 3px solid var(--green);
  border-radius: 60% 0 60% 40%;
  transform: rotate(35deg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  min-height: 220px;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.58);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 800;
}

.steps article:nth-child(even) span {
  background: var(--rose);
}

h3 {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 1.38rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.steps article:nth-child(even) h3 {
  color: var(--rose);
}

.explain,
.basis,
.note {
  max-width: 930px;
  margin-left: auto;
  margin-right: auto;
}

.explain p,
.basis p,
.help p,
.note p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.basis h2 {
  margin-bottom: 14px;
}

.help {
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background: var(--paper-soft);
}

.help strong {
  display: block;
  margin-top: 24px;
  color: var(--rose);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.45;
}

.note {
  color: var(--muted);
}

.note p:first-child {
  padding-left: 22px;
  border-left: 4px solid var(--green);
}

.evidence {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.evidence__intro {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  text-align: center;
}

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

.evidence-card {
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.68);
  box-shadow: inset 0 0 0 1px rgba(88, 114, 103, 0.16);
}

.evidence-card summary {
  position: relative;
  min-height: 64px;
  padding: 20px 52px 20px 20px;
  color: var(--green-deep);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.evidence-card summary::-webkit-details-marker {
  display: none;
}

.evidence-card summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--paper-soft);
  color: var(--rose);
  font-size: 1.25rem;
}

.evidence-card[open] summary::after {
  content: "-";
}

.evidence-card p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--ink);
  font-size: 1rem;
}

.references {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}

.references a {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(88, 114, 103, 0.12);
  color: var(--green-deep);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 68px;
  padding: 30px;
  border-radius: 28px;
  background: var(--rose);
  color: white;
}

.contact img {
  aspect-ratio: 1;
  border-radius: 50%;
}

.contact h2 {
  color: white;
  text-transform: none;
}

.contact p {
  margin-bottom: 14px;
  font-size: 1.4rem;
}

.contact a {
  display: block;
  max-width: 100%;
  color: white;
  font-size: 1.45rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px max(18px, calc((100vw - 1120px) / 2));
  background: var(--green);
  color: #fff7f0;
  text-align: center;
}

footer span {
  min-width: 0;
  font-size: 1rem;
}

@media (max-width: 840px) {
  .language-switcher {
    position: sticky;
    top: 0;
    right: auto;
    justify-content: center;
    width: 100%;
    border-radius: 0;
    background: rgba(245, 240, 234, 0.92);
  }

  main {
    width: min(100% - 28px, 680px);
    padding-top: 32px;
  }

  .hero {
    min-height: 0;
    gap: 28px;
  }

  .photo-pair,
  .steps,
  .evidence__grid,
  .contact,
  footer {
    grid-template-columns: 1fr;
  }

  .photo-pair {
    gap: 18px;
  }

  .steps article {
    min-height: 0;
  }

  section {
    margin: 64px 0;
  }

  .contact {
    text-align: center;
    padding: 24px 18px;
  }

  .contact img {
    width: 170px;
    margin: 0 auto;
  }

  .contact a {
    font-size: 1.12rem;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 20px, 420px);
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 3.2rem);
  }

  .lead {
    font-size: 1.18rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .photo-pair img {
    border-radius: 20px;
  }

  section {
    margin: 48px 0;
  }

  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .sketch {
    font-size: 2rem;
  }

  .leaf {
    flex: 0 0 auto;
    width: 24px;
    height: 36px;
  }

  h2 {
    font-size: clamp(1.55rem, 10vw, 2.35rem);
  }

  .steps article,
  .help {
    padding: 20px;
    border-radius: 18px;
  }

  footer {
    gap: 10px;
  }
}
