:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2620;
  --muted: #6b6255;
  --accent: #8a6d4a;
  --accent-ink: #ffffff;
  --border: #e8e1d6;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1a17;
    --surface: #262320;
    --text: #efe9df;
    --muted: #a99e8c;
    --accent: #c9a06a;
    --accent-ink: #201b12;
    --border: #383430;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  background: linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: 56px 0 40px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin: 0 0 8px;
}

.hero-sub {
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-facts {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-facts div {
  display: flex;
  flex-direction: column;
}

.hero-facts strong {
  font-size: 1.3rem;
}

.hero-facts span {
  font-size: .8rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

main {
  padding: 32px 20px 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

.muted {
  color: var(--muted);
  font-size: .92rem;
}

.terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0 0 16px;
  padding: 0;
}

.terms > div {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.terms dt {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 2px;
}

.terms dd {
  margin: 0;
}

@media (max-width: 560px) {
  .terms { grid-template-columns: 1fr; }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  display: block;
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .88rem;
  color: var(--muted);
}

input, textarea {
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

#form-status {
  font-size: .88rem;
  min-height: 1.2em;
  margin: 0;
}

#form-status[data-state="ok"] { color: #3a7d44; }
#form-status[data-state="error"] { color: #b3453a; }

footer {
  text-align: center;
  padding: 20px 20px 48px;
  color: var(--muted);
  font-size: .85rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
}

.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
