:root {
  --green: #1f5b3a;
  --green-dark: #143d27;
  --green-mid: #2f7a4e;
  --leaf: #3d9a62;
  --cream: #f6f3ea;
  --paper: #fffcf6;
  --ink: #1c241e;
  --muted: #4d5b52;
  --line: #d7e0d4;
  --warn: #9a3412;
  --radius: 16px;
  --max: 920px;
  --shadow: 0 14px 40px rgba(20, 61, 39, 0.12);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Heebo, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 100% -10%, rgba(61, 154, 98, 0.18), transparent 55%),
    linear-gradient(180deg, #eef6ee 0%, var(--cream) 220px);
  line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--green-mid); }

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  background: linear-gradient(180deg, var(--green-dark), var(--green));
  color: #fff;
  padding: 28px 0 34px;
  box-shadow: 0 8px 24px rgba(20, 61, 39, 0.22);
}

.kicker {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.82;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
}

.site-header .who {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 16px;
  font-size: 14px;
  opacity: 0.92;
}

.subject {
  margin: -22px auto 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}

.subject .label {
  color: var(--green);
  font-weight: 800;
  margin: 0 0 8px;
  font-size: 15px;
}

.subject h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
  font-weight: 700;
}

.subject p {
  margin: 12px 0 0;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.facts div {
  background: #f3f8f3;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.facts b {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
}

.gallery {
  background: #0f2418;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  direction: ltr;
  transition: transform 0.45s ease;
}

.slides figure {
  min-width: 100%;
  margin: 0;
  position: relative;
  direction: rtl;
}

.slides img {
  width: 100%;
  height: min(58vw, 460px);
  object-fit: cover;
  object-position: center;
}

.slides figcaption {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 28px 18px 14px;
  background: linear-gradient(transparent, rgba(8, 20, 12, 0.78));
  color: #fff;
  font-size: 14px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.nav-btn.prev { left: 12px; }
.nav-btn.next { right: 12px; }

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 14px;
  background: #0f2418;
}

.dots button {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.dots button.active {
  background: #fff;
  width: 22px;
  border-radius: 99px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover { background: var(--green-dark); }

.btn-ghost {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--line);
}

.sign-card, .list-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(20, 61, 39, 0.06);
}

.sign-card h2, .list-card h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.hint {
  color: var(--muted);
  margin: 0 0 18px;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.full { grid-column: 1 / -1; }

label {
  font-weight: 600;
  font-size: 14px;
}

input, select {
  min-height: 46px;
  border: 1px solid #cfd8cc;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  background: #fff;
}

input:focus, select:focus {
  outline: 2px solid rgba(47, 122, 78, 0.35);
  border-color: var(--green-mid);
}

.hidden { display: none !important; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status {
  min-height: 22px;
  margin: 10px 0 0;
  font-weight: 600;
}

.status.error { color: var(--warn); }
.status.ok { color: var(--green); }

.count {
  font-weight: 500;
  color: var(--muted);
}

.sign-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sign-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.sign-list li:last-child { border-bottom: 0; }

.cluster-pill {
  background: #e8f3ea;
  color: var(--green-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.empty {
  color: var(--muted);
}

footer {
  padding: 18px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 720px) {
  .facts, .grid { grid-template-columns: 1fr; }
  .slides img { height: 52vw; min-height: 220px; }
}
