:root {
  --bg: #f6f4ef;
  --text: #1f2a24;
  --muted: #5d6b62;
  --accent: #2f6b4f;
  --card: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121714; --text: #e8efe9; --muted: #9fb0a5; --accent: #6fbf95; --card: #1b221e; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

.hero {
  min-height: 80vh; display: grid; place-items: center; text-align: center; color: #fff;
  background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,.45)),
              url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=2000&q=80") center/cover;
  padding: 2rem 1rem;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: .02em; }
.hero p { font-size: clamp(1rem, 2.5vw, 1.35rem); opacity: .9; margin: .5rem 0 1.5rem; }
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 999px; background: #fff; color: #1f2a24; text-decoration: none; font-weight: 600; transition: transform .2s; }
.btn:hover { transform: translateY(-2px); }

main { max-width: 1200px; margin: 0 auto; padding: 3rem 1rem; }
h2 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--accent); }
.about, .contacts { max-width: 700px; margin: 0 auto 3rem; text-align: center; color: var(--muted); }
.contacts { margin-top: 3rem; }
a { color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.gallery figure { background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; cursor: zoom-in; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { padding: .8rem 1rem; font-weight: 500; }

footer { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .9rem; }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: grid; place-items: center; z-index: 10; cursor: zoom-out; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
