:root {
  --forest: #2f3e2f;
  --forest-dark: #1c2620;
  --wood: #6b4f3a;
  --cream: #f7f3ec;
  --ink: #26241f;
  --muted: #6b6558;
  --accent: #a9764f;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Jost', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0 0 16px; color: var(--forest-dark); }
p { margin: 0 0 16px; color: var(--muted); }
a { color: inherit; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s ease;
}
.btn:hover { background: #8f5f3d; }
.btn-dark { background: var(--forest-dark); }
.btn-dark:hover { background: #10160f; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28, 38, 32, 0.85);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 32px; }
.nav a {
  color: #f0ece2;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.nav a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/domek-01.jpg');
  background-image: image-set(url('img/domek-01.webp') type('image/webp'), url('img/domek-01.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,26,20,0.55) 0%, rgba(20,26,20,0.35) 45%, rgba(20,26,20,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: #e8d9c5;
  margin-bottom: 12px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 12px;
  line-height: 1.1;
}
.hero-sub {
  color: #f0ece2;
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* Features */
.features { background: #fff; padding: 72px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature h3 {
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 600;
}

/* About */
.about { padding: 96px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-text h2 { font-size: 2.2rem; }
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  max-height: 460px;
}

/* Offer */
.offer { background: var(--forest-dark); padding: 96px 0; color: #fff; }
.offer h2, .offer .section-label { color: #fff; }
.offer .section-label { color: var(--accent); }
.offer-intro, .offer-outro {
  max-width: 680px;
  color: #d8d4c8;
  margin-bottom: 48px;
}
.offer-outro { margin-top: 48px; margin-bottom: 0; }
.cabins {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.cabin {
  background: #232f26;
  border-radius: 4px;
  overflow: hidden;
}
.cabin img { width: 100%; height: 260px; object-fit: cover; display: block; }
.cabin-body { padding: 28px; }
.cabin-body h3 { color: #fff; margin-bottom: 12px; }
.cabin-body p { color: #cfcabd; }
.cabin-body ul { margin: 0; padding-left: 20px; color: #cfcabd; }
.cabin-body li { margin-bottom: 6px; }

/* Attractions */
.attractions { padding: 96px 0; background: #fff; }
.attractions-intro { max-width: 680px; margin-bottom: 48px; }
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.attraction-item {
  text-align: center;
  padding: 24px 16px;
  border: 1px solid #e6e0d3;
  border-radius: 4px;
}
.attraction-item h4 { font-size: 1.05rem; margin-bottom: 8px; }
.attraction-item p { margin: 0; font-size: 0.92rem; }

/* Gallery */
.gallery { padding: 96px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  transition: transform 0.3s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

/* Contact */
.contact { background: var(--wood); color: #fff; padding: 96px 0; }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.contact h2, .contact .section-label { color: #fff; }
.contact .section-label { color: #f3e6d8; }
.tagline { font-style: italic; margin-bottom: 24px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 32px; }
.contact-list li { margin-bottom: 10px; }
.contact-list a { text-decoration: underline; }
.contact-map { min-height: 320px; border-radius: 4px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #c9c4b8; padding: 24px 0; text-align: center; font-size: 0.85rem; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 26, 20, 0.92);
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: var(--accent); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #e8e4d9;
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--forest-dark); flex-direction: column; padding: 16px 24px; gap: 16px; }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .features-grid, .about-inner, .cabins, .contact-inner { grid-template-columns: 1fr; }
  .attractions-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox { padding: 16px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.1rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}
