:root {
  --forest: #2f5d50;
  --moss: #648a64;
  --sage: #a8bf8a;
  --sand: #e8dcc3;
  --clay: #c78c5c;
  --ink: #182321;
  --mist: #f7f4ee;
  --paper: #fffdf8;
  --line: rgba(24, 35, 33, 0.14);
  --shadow: 0 14px 38px rgba(24, 35, 33, 0.11);
  --radius-lg: 26px;
  --radius-md: 16px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 10% 8%, rgba(168, 191, 138, 0.30), transparent 29%),
    radial-gradient(circle at 95% 2%, rgba(199, 140, 92, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f6ef 0%, #f2ecdf 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  line-height: 1.1;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.section-space {
  padding-top: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(255, 253, 248, 0.86);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  max-width: 200px;
  display: inline-flex;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--forest);
  font-size: 0.92rem;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(100, 138, 100, 0.12);
  outline: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
  padding: 42px;
  border-radius: 34px;
  color: var(--paper);
  box-shadow: var(--shadow);
  background:
    linear-gradient(135deg, rgba(24, 35, 33, 0.88), rgba(47, 93, 80, 0.84)),
    linear-gradient(180deg, #223531, #3f675a);
}

.kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--moss);
}

.hero .kicker {
  color: rgba(255, 253, 248, 0.78);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 60ch;
}

.image-prompt-card,
.image-prompt,
.panel,
.impact-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.image-prompt-card {
  padding: 22px;
  background: rgba(255, 253, 248, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

.image-prompt-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.generated-image {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(24, 35, 33, 0.2);
}

.generated-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.panel {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 8px 22px rgba(24, 35, 33, 0.05);
}

.panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.panel p {
  margin-bottom: 10px;
}

.panel ul,
.panel ol {
  margin-bottom: 8px;
}

.panel-alt {
  background: linear-gradient(180deg, rgba(168, 191, 138, 0.17), rgba(255, 253, 248, 0.9));
}

.panel-impact {
  background: linear-gradient(180deg, rgba(232, 220, 195, 0.72), rgba(255, 253, 248, 0.92));
}

.panel-cta {
  background: linear-gradient(150deg, #f6efe4, #fffdf8);
}

.benefits-list {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.section-image {
  margin-top: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(24, 35, 33, 0.08);
}

.impact-block {
  margin: 16px 0;
  padding: 18px;
  background: var(--paper);
}

.impact-block h3 {
  color: var(--forest);
  margin-bottom: 10px;
}

.image-prompt {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(200, 140, 93, 0.09);
  border-left: 4px solid var(--clay);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.image-prompt strong {
  display: block;
  margin-bottom: 6px;
  color: var(--forest);
}

.image-prompt p {
  margin: 0;
  font-size: 0.95rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.btn-primary {
  color: var(--paper);
  background: var(--clay);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #b97a4a;
  outline: none;
}

.btn-secondary {
  color: var(--forest);
  background: rgba(255, 253, 248, 0.7);
  border-color: rgba(47, 93, 80, 0.36);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(168, 191, 138, 0.2);
  outline: none;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.contact-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  display: grid;
  gap: 8px;
}

.contact-form h3 {
  margin-bottom: 8px;
  color: var(--forest);
}

.contact-form label {
  font-size: 0.93rem;
  color: var(--forest);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid rgba(24, 35, 33, 0.24);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fffefb;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 93, 80, 0.28);
  border-color: var(--forest);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 35, 33, 0.56);
}

.modal-dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px rgba(24, 35, 33, 0.28);
  background: linear-gradient(160deg, #f5efe4, #fffdf8);
  border: 1px solid rgba(255, 255, 255, 0.74);
  padding: 18px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(24, 35, 33, 0.2);
  background: var(--paper);
  color: var(--forest);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(168, 191, 138, 0.2);
  outline: none;
}

.site-footer {
  margin-top: 30px;
  padding: 30px 0 36px;
  background:
    linear-gradient(140deg, rgba(31, 61, 53, 0.95), rgba(61, 101, 88, 0.95)),
    linear-gradient(180deg, #253834, #365e52);
  color: rgba(247, 244, 238, 0.94);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-logo {
  width: 74px;
  margin-bottom: 10px;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 8px;
  color: var(--paper);
}

.site-footer p,
.site-footer li {
  margin-bottom: 6px;
}

.footer-prompt {
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 14px;
}

.footer-image {
  border-color: rgba(255, 255, 255, 0.28);
  margin-bottom: 10px;
}

.footer-prompt strong {
  display: block;
  margin-bottom: 6px;
}

.extra-note {
  color: rgba(247, 244, 238, 0.82);
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    padding: 30px 24px;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 18px), var(--max));
  }

  .panel {
    padding: 22px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
