:root {
  --wood: #2a1a10;
  --wood2: #3a2416;
  --plate: #46301e;
  --edge: #28180e;
  --gold: #f0c850;
  --gold2: #ffdb6b;
  --cream: #f2dcb4;
  --ink: #fff8ec;
  --sky: #8fd0ff;
  --grass: #5f9a42;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 46px),
    linear-gradient(180deg, var(--wood2), var(--wood));
  background-color: var(--wood);
}
img { image-rendering: pixelated; max-width: 100%; height: auto; display: block; }
a { color: var(--gold2); }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: rgba(30, 18, 11, 0.92); border-bottom: 4px solid var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold2); font-weight: 900; text-decoration: none; letter-spacing: 0.02em; }
.top nav { display: flex; gap: 16px; flex-wrap: wrap; }
.top nav a { color: var(--cream); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: var(--gold2); }

.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 16px 64px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("img/varos.png") center / cover no-repeat;
  filter: blur(6px) brightness(0.55);
  transform: scale(1.08);
  image-rendering: auto;
}
.logo { margin: 0 auto; width: min(92%, 860px); animation: bob 2.4s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.tagline { font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 800; color: var(--cream); margin: 8px 0 26px; text-shadow: 0 2px 0 #000; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 900; color: var(--edge);
  background: var(--gold); border: 6px solid var(--edge); border-radius: 22px;
  padding: 16px 38px; font-size: clamp(1.2rem, 4vw, 1.7rem);
  box-shadow: 0 6px 0 var(--edge);
}
.btn:hover { background: var(--gold2); transform: translateY(-2px); box-shadow: 0 8px 0 var(--edge); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--edge); }
.hint { color: var(--cream); font-size: 0.95rem; margin-top: 18px; text-shadow: 0 1px 0 #000; }

.panel {
  max-width: 1080px; margin: 28px auto; padding: 28px 24px;
  background: var(--plate); border: 6px solid var(--edge); border-radius: 26px;
}
.panel h2 { margin: 0 0 12px; color: var(--gold2); font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.02em; }
.lead { color: var(--cream); font-size: 1.08rem; max-width: 70ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 22px 0; }
.card { background: var(--edge); border-radius: 18px; overflow: hidden; border: 4px solid #5a3a22; }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card h3 { margin: 12px 14px 4px; color: var(--gold2); }
.card p { margin: 0 14px 16px; color: var(--cream); font-size: 0.95rem; }

.features { margin: 8px 0 0; padding-left: 20px; color: var(--cream); }
.features li { margin: 6px 0; }
.features b { color: var(--ink); }

.town { margin: 0; }
.town img { width: 100%; border-radius: 16px; border: 4px solid var(--edge); }
.town figcaption { color: var(--cream); margin-top: 10px; }

.video-wrap { display: flex; justify-content: center; }
.video-wrap video { width: min(100%, 360px); height: auto; border-radius: 18px; border: 4px solid var(--edge); background: #000; }

.house { text-align: center; background: linear-gradient(180deg, #4e7a34, #3b5d27); }
.house-ico { margin: 0 auto 6px; }
.house p { font-size: 1.15rem; margin: 6px 0; }
.handle { color: #fff; font-size: 1.5rem; }
.ask { color: var(--edge); background: var(--gold); padding: 2px 12px; border-radius: 12px; border: 3px solid var(--edge); }
.small { font-size: 0.95rem !important; color: #e6f2d8; }

footer { text-align: center; padding: 26px 16px 40px; color: var(--cream); }

.page { max-width: 820px; margin: 32px auto; }
.page h1 { color: var(--gold2); }
.page p, .page li { color: var(--cream); }

@media (max-width: 560px) {
  .top { flex-direction: column; align-items: flex-start; }
  .top nav { gap: 12px; }
  .panel { margin: 18px 10px; padding: 20px 16px; border-radius: 20px; }
}
