:root{
  --bg:#f7faf8;
  --bg2:#ffffff;
  --card:#ffffff;
  --text:#173022;
  --muted:#5e7a69;
  --brand:#2ea866;
  --brand-dark:#23824f;
  --line:#d7e7dc;
}
*{box-sizing:border-box}
html{scroll-padding-top:220px}
body{
  margin:0;
  font-family:Inter,system-ui,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.55;
}
a{color:inherit}
.container{max-width:1060px;margin:0 auto;padding:0 18px}

.topbar{
  position:sticky;top:0;z-index:20;
  background:#ffffffee;
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{display:grid;grid-template-columns:1fr;justify-items:center;align-items:center;padding:12px 0;gap:10px}
.logo{display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;color:var(--text);text-decoration:none;letter-spacing:.2px;width:100%}
.logo img{height:120px;width:auto;border-radius:12px;background:#fff;padding:2px;display:block;margin:0 auto}
.logo span{display:none}

nav{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
nav a{color:var(--muted);text-decoration:none;padding:8px 10px;border-radius:8px}
nav a:hover{color:var(--text);background:#edf6f0}
.menu-toggle{display:none;border:1px solid var(--line);background:#fff;border-radius:10px;padding:10px;cursor:pointer}
.menu-toggle span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px}
.menu-toggle span + span{margin-top:4px}
.fb-btn{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
}
.fb-btn img{
  width:44px;
  height:44px;
  display:block;
}
.fb-btn:hover{filter:brightness(0.95)}

.messenger-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#0084ff;
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  z-index:50;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.messenger-float img{
  width:64px;
  height:64px;
  display:block;
  border-radius:999px;
}
.messenger-float:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 30px rgba(0,0,0,.26);
  filter:brightness(1.03);
}

.hero{
  padding:96px 0 90px;
  background:linear-gradient(180deg,#eef8f1 0,#ffffff 100%);
  border-bottom:1px solid var(--line);
}
.hero-inner{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);align-items:center;gap:32px}
.hero-media img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:22px;box-shadow:0 12px 28px rgba(0,0,0,.10)}
.hero-copy{max-width:760px}
.hero h1{font-size:48px;line-height:1.06;margin:0 0 12px}
.hero p{max-width:680px;color:#365847;font-size:18px;margin:0}

.cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.btn{
  display:inline-block;
  background:linear-gradient(180deg,var(--brand),var(--brand-dark));
  color:#fff;
  padding:11px 16px;
  border-radius:11px;
  font-weight:800;
  text-decoration:none;
  border:none;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.06)}
.btn.ghost{
  background:#fff;
  border:1px solid #b7d3c2;
  color:#25553b;
}

.section{padding:58px 0}
.section[id]{scroll-margin-top:220px}
.section h2{margin:0 0 18px;font-size:30px}
.alt{background:#ffffff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}

.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.card{background:var(--card);border:1px solid #d7e7dc;border-radius:14px;padding:15px;box-shadow:0 4px 14px rgba(0,0,0,.04)}
.card h3{margin:0 0 8px}
.card p{margin:0;color:#486853}
.prose p + p{margin-top:12px}
.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:12px}
.gallery img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;border-radius:12px;border:1px solid #d7e7dc;background:#fff}
.map-card{padding:18px;background:#e9e9e9}
.estonia-map-image{display:block;width:100%;height:auto}
.map-note{margin-top:12px}
.route-list{display:grid;gap:16px;margin-top:18px}
.route-list > .route-card{width:100%;max-width:100%;min-width:0}
.route-card-split{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:18px;align-items:start}
.route-card-copy{min-width:0}
.route-card-media{min-width:0}
.route-card-media img{display:block;width:100%;max-width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px}
.route-card h3{margin-bottom:10px;overflow-wrap:anywhere}
.route-anchor{color:var(--text);text-decoration:none;font-weight:inherit}
.route-anchor:hover{text-decoration:underline}
.events-intro{margin:0 0 18px;color:#486853;font-size:16px;line-height:1.6}
.events-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.event-card{background:#fff;border:1px solid #d7e7dc;border-radius:18px;overflow:hidden;box-shadow:0 10px 24px rgba(0,0,0,.06);display:flex;flex-direction:column}
.event-card img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:#eef8f1}
.event-body{padding:16px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.event-body h3{margin:0;font-size:19px;line-height:1.25}
.event-link{color:var(--text);font-weight:800;text-decoration:none}
.event-link:hover{text-decoration:underline}
.event-meta{margin:0 !important;color:var(--text) !important;font-size:16px}
.route-card p + p{margin-top:10px}
.route-meta{margin:12px 0 0;padding-left:18px}
.route-meta li{margin:6px 0}
.subroutes{display:grid;gap:12px;margin-top:14px}
.subroutes h4{margin:0 0 6px}
.price-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:14px}
.price-list{margin:0;padding-left:18px}
.price-list li{margin:8px 0}
.extra-info{margin-top:12px}
.highlight-card{margin-top:16px}
.intro{max-width:760px}
.muted{color:var(--muted)}

.contact{display:grid;gap:10px;max-width:620px}
.contact label{display:grid;gap:6px;font-size:14px;color:#486853}
input,textarea{
  background:#fff;
  border:1px solid #c7ddcf;
  color:#173022;
  border-radius:10px;
  padding:11px;
}
input:focus,textarea:focus{outline:2px solid rgba(46,168,102,.25);border-color:#58bb86}

.footer{padding:20px 0;color:#6f8a79}
.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}

@media (max-width:700px){
  .container{padding:0 28px}
  .messenger-float{
    right:14px;
    bottom:14px;
    width:58px;
    height:58px;
  }
  .messenger-float img{
    width:58px;
    height:58px;
  }
  .nav{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:12px;
    justify-items:stretch;
  }
  .logo{
    width:auto;
    display:flex;
    justify-content:flex-start;
    align-items:center;
    margin:0;
  }
  .logo span{display:none}
  .logo img{height:64px;width:auto;max-width:none;display:block;margin:0}
  .menu-toggle{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;justify-self:end;margin-right:0}
  nav{
    display:none;
    grid-column:1 / -1;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    padding-top:6px;
  }
  .topbar.menu-open nav{display:flex}
  nav a{padding:10px 12px}
  .hero{padding:40px 0 52px}
  .hero-inner{grid-template-columns:1fr;gap:18px}
  .hero-media{order:-1}
  .hero-media img{width:100%;max-width:100%;aspect-ratio:1/1;border-radius:16px;object-position:center}
  .hero-copy{max-width:100%}
  .hero h1{font-size:36px}
  .hero p{max-width:100%;font-size:17px}

  .topbar.scrolled .logo img{
    height:52px;
  }
  #kontakt{margin-top:18px}
  #retked{padding-bottom:58px}
  #marsruudid{padding-top:58px;margin-top:26px}
  .route-list > .route-card{overflow:hidden}
  .route-card-split{grid-template-columns:minmax(0,1fr);gap:14px}
  .route-card-copy{width:100%;max-width:100%}
  .route-card-media{order:-1;width:100%;max-width:100%}
  .route-meta{padding-left:20px}
  .events-grid{grid-template-columns:1fr}
}
