@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow+Condensed:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&display=swap');
:root {
  --gold: #ffc50a;
  --gold-dim: rgba(255,197,10,0.15);
  --gold-border: rgba(255,197,10,0.25);
  --bg: #0d0f14;
  --bg2: #13161e;
  --bg3: #1a1e2a;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #ffc50a;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 0; }
.nav-links a {
  color: #000; text-decoration: none; font-size: 0.95rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; padding: 8px 16px; border-radius: 6px;
  transition: all 0.2s; letter-spacing: 0.1em; text-transform: uppercase;
}
.nav-links a:hover { background: rgba(0,0,0,0.1); }
.nav-links a.active { background: rgba(0,0,0,0.15); }
.nav-badge {
  background: #000; color: #ffc50a; font-size: 0.7rem;
  font-weight: 700; padding: 2px 8px; border-radius: 20px;
  letter-spacing: 0.05em;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: #000; border-radius: 2px; transition: 0.3s; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg2); border-bottom: 1px solid var(--gold-border);
  padding: 1rem; z-index: 99; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  padding: 10px 14px; border-radius: 8px; transition: 0.2s;
}
.mobile-menu a:hover { color: var(--gold); background: var(--gold-dim); }

/* HERO */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 2rem 4rem;
  text-align: center;
  background-image:
    linear-gradient(rgba(13,15,20,0.72), rgba(13,15,20,0.72)),
    url('assets/hero-bg.avif');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { from { transform: translateY(0); } to { transform: translateY(60px); } }
.hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,197,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500; line-height: 0.95; letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  color: #fff;
  transition: font-family 0.2s, font-weight 0.2s, font-size 0.2s;
}
.hero-title span { color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); max-width: 520px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-bottom: 2.5rem; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3.5rem, 7vw, 5rem); font-weight: 400; color: var(--gold);
  display: block; line-height: 1; letter-spacing: 0.01em;
}
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 6px; font-weight: 600; }
.hero-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #000; font-weight: 700;
  font-size: 1rem; padding: 14px 32px; border-radius: 8px;
  text-decoration: none; transition: all 0.2s; letter-spacing: 0.02em;
}
.hero-btn:hover { background: #ffcf2e; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.35); }
.hero-btn svg { width: 18px; height: 18px; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.75rem;
}
.scroll-hint-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--gold-border), transparent); animation: scrollAnim 2s ease-in-out infinite; }
@keyframes scrollAnim { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }

/* SECTION COMMON */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-tag {
  display: inline-block; border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 0.75rem;
  position: relative; overflow: hidden;
  background: linear-gradient(90deg,
    rgba(255,197,10,0.08) 0%,
    rgba(255,197,10,0.22) 40%,
    rgba(255,197,10,0.08) 100%);
  background-size: 300% auto;
  animation: shimmer 4s linear infinite;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.95;
}
.section-sub { color: var(--text-dim); font-size: 1rem; max-width: 560px; }
.divider { height: 1px; background: linear-gradient(90deg, var(--gold-border), transparent); margin: 5rem 0; }

/* MODULE SECTION ACCENT LINE */
.module-section { position: relative; overflow: hidden; }
.module-section::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 2px; height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(255,197,10,0.9) 50%, transparent 100%);
  pointer-events: none; z-index: 2;
  animation: borderBeam 5s linear infinite;
}
@keyframes borderBeam {
  0%   { transform: translateY(-80px); }
  100% { transform: translateY(110vh); }
}
.module-section > .section { position: relative; z-index: 1; }

/* SECTION ICONS */
.section-icon { display: block; width: 80px; height: 80px; object-fit: contain; margin-bottom: 1rem; }

/* SECTION BACKGROUND ICON (dekoratiivinen) */
.section-header { margin-bottom: 3rem; position: relative; }
.section-icon-bg {
  position: absolute; top: -1rem; right: -1rem;
  width: 160px; height: 160px; object-fit: contain;
  opacity: 0.05; pointer-events: none; z-index: 0;
}

/* ACCORDION ICONS */
.acc-icon { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.acc-icon img { width: 48px; height: 48px; object-fit: contain; }
.acc-icon img[src*="koulukuljetus"] { width: 51px; height: 51px; }

/* ACCORDION NUMBER BADGE */
.acc-num-small {
  width: 26px; flex-shrink: 0;
  color: var(--text); opacity: 0.5; font-size: 0.85rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ACCORDION LEFT ACCENT */
.acc-item { border-left: 2px solid rgba(255,197,10,0.12); transition: border-left-color 0.2s; }
.acc-item:hover { border-left-color: rgba(255,197,10,0.35); }
.acc-item.open { border-left-color: var(--gold); }

/* ANIMAATIOT */
@keyframes iconEntrance {
  from { transform: scale(0.6) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes floatUp {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1.0; }
}
@keyframes shimmer {
  0%   { background-position: -300% center; }
  100% { background-position: 300% center; }
}
@keyframes particleFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0; }
  20%       { opacity: 1; }
  80%       { opacity: 0.6; }
  50%       { transform: translateY(-40px) scale(1.15); }
}
@keyframes scanLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
@keyframes slideInLeft {
  from { transform: translateX(-16px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
.section-header.visible .section-icon {
  animation: iconEntrance 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hero-stats .stat:nth-child(1) { animation: floatUp 4s ease-in-out infinite; }
.hero-stats .stat:nth-child(2) { animation: floatUp 4s ease-in-out 0.8s infinite; }
.hero-stats .stat:nth-child(3) { animation: floatUp 4s ease-in-out 1.6s infinite; }
.hero-stats .stat:nth-child(4) { animation: floatUp 4s ease-in-out 2.4s infinite; }
.module-section::before { animation: glowPulse 4s ease-in-out infinite; }
.acc-item.open .acc-icon { animation: slideInLeft 0.3s ease both; }

/* TOLPPA */
.tolppa-item { display: flex; align-items: stretch; }
.tolppa-num {
  min-width: 52px; display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 2rem;
  color: #000; background: var(--gold); border-radius: 6px;
  flex-shrink: 0; padding: 6px 10px; margin-right: 12px;
  line-height: 1; letter-spacing: -0.03em; align-self: stretch;
}
.tolppa-card {
  flex: 1; background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 2px solid rgba(255,197,10,0.2);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  display: flex; align-items: flex-start; gap: 12px;
  transition: border-color 0.2s, border-left-color 0.2s, transform 0.2s;
}
.tolppa-item:hover .tolppa-card { border-left-color: var(--gold); transform: translateY(-2px); }

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ACCORDION */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s;
}
.acc-item:hover { border-color: var(--gold-border); }
.acc-item.open { border-color: var(--gold-border); }
.acc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.4rem; cursor: pointer; user-select: none;
  gap: 1rem;
}
.acc-left { display: flex; align-items: center; gap: 14px; }
.acc-num {
  width: 44px; height: 44px; border-radius: 6px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 1.5rem; font-weight: 400;
  font-family: 'Barlow Condensed', sans-serif;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; line-height: 1; letter-spacing: -0.02em;
}
.acc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 500; font-size: 1.2rem; color: var(--text);
  letter-spacing: 0.04em; text-transform: uppercase;
}
.acc-chevron {
  width: 18px; height: 18px; color: var(--text-muted);
  transition: transform 0.3s; flex-shrink: 0;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); color: var(--gold); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 1.4rem;
}
.acc-item.open .acc-body { max-height: 2000px; padding-bottom: 1.4rem; }
.acc-content { padding-top: 0.5rem; color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; }
.acc-content ul { padding-left: 1.2rem; }
.acc-content li { margin-bottom: 6px; }
.acc-content strong { color: var(--text); }
.acc-content .highlight-box {
  background: var(--gold-dim); border-left: 3px solid var(--gold);
  border-radius: 0 6px 6px 0; padding: 10px 14px; margin: 10px 0;
  color: var(--text); font-size: 0.875rem;
}

/* TABS */
.tab-nav {
  display: flex; gap: 4px; margin-bottom: 1.5rem;
  background: var(--bg2); border-radius: 10px; padding: 4px;
  flex-wrap: wrap;
}
.tab-btn {
  flex: 1; min-width: 100px; padding: 8px 14px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim); font-size: 0.9rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; border-radius: 7px; transition: all 0.2s;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.tab-btn:hover { color: var(--text); background: var(--bg3); }
.tab-btn.active { background: var(--gold); color: #000; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeTab 0.3s ease; }
@keyframes fadeTab { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

/* ROUTE CARDS */
.route-list { display: flex; flex-direction: column; gap: 10px; }
.route-card {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.route-card:hover { border-color: var(--gold-border); transform: translateX(4px); }
.route-from-to {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400; font-size: 1.05rem; color: var(--text); letter-spacing: 0.04em; text-transform: uppercase;
}
.route-arrow { color: var(--gold); font-size: 1rem; }
.route-options { font-size: 0.82rem; color: var(--text-dim); }
.route-option { padding: 3px 0; display: flex; align-items: flex-start; gap: 6px; }
.route-option::before { content: '›'; color: var(--gold); flex-shrink: 0; }

/* PUISTIKOT */
.puistikko-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.puistikko-card {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.1rem;
  text-align: center; transition: border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.puistikko-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
}
.puistikko-card:hover { border-color: var(--gold-border); transform: translateY(-3px); }
.puistikko-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.puistikko-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 1.2rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.puistikko-desc { font-size: 0.8rem; color: var(--text-dim); margin-top: 4px; }

/* ALUE-TEEMAT */
.alue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.alue-card {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  transition: border-color 0.2s;
}
.alue-card:hover { border-color: var(--gold-border); }
.alue-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 1.1rem; color: var(--text); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.02em; }
.alue-teema { font-size: 0.78rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.alue-kadut { font-size: 0.8rem; color: var(--text-dim); }

/* TOLPAT */
.tolppa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tolppa-info {}
.tolppa-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 1.1rem; color: var(--text); letter-spacing: 0.02em; text-transform: uppercase; }
.tolppa-loc { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* PAIKALLISTIETO TABLE */
.paikka-category { margin-bottom: 2rem; }
.paikka-cat-title {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.paikka-cat-title::after { content: ''; flex: 1; height: 1px; background: var(--gold-border); }
.paikka-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px;
}
.paikka-item {
  background: var(--bg2); border-radius: 7px; padding: 8px 12px;
  display: flex; flex-direction: column; gap: 1px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.paikka-item:hover {
  border-color: var(--gold-border);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.paikka-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.paikka-addr { font-size: 0.78rem; color: var(--text-muted); }

/* HARJOITTELU */
.harjoittelu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.harjoittelu-card {
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius); padding: 1.5rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.harjoittelu-card:hover {
  border-color: rgba(255,197,10,0.45);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.harjoittelu-icon {
  width: 56px; height: 56px; background: var(--gold-dim); border: 1px solid var(--gold-border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}
.harjoittelu-icon img { width: 38px; height: 38px; object-fit: contain; }
.harjoittelu-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 1.4rem; color: var(--text); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.02em; }
.harjoittelu-desc { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1.2rem; line-height: 1.6; }
.harjoittelu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: #000; font-weight: 700; font-size: 0.85rem;
  padding: 9px 18px; border-radius: 7px; text-decoration: none;
  transition: all 0.2s;
}
.harjoittelu-btn:hover { background: #ffcf2e; transform: translateY(-1px); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--gold-border); margin-top: 1rem; }
.map-embed iframe { width: 100%; height: 340px; border: none; display: block; }

/* LEAFLET */
.leaflet-container { background: #0d0f14 !important; font-family: 'Barlow', sans-serif; }
.leaflet-tile-pane { filter: brightness(0.85) saturate(0.6); }
.route-card { cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.route-card:hover { border-color: rgba(255,197,10,0.4); }
.route-card.active-route { border-color: var(--gold); background: rgba(255,197,10,0.06); }

/* NAVIGOINTI BOX */
.nav-tip {
  background: var(--bg2); border: 1px solid var(--gold-border); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 1.5rem;
}
.nav-tip-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; color: var(--gold); font-size: 1rem; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.nav-tip-content { font-size: 0.88rem; color: var(--text-dim); line-height: 1.7; }
.nav-tip-content strong { color: var(--text); }

/* HAMAHAKKIKARTTA */
.hamahakki {
  background: var(--bg2); border: 1px solid var(--gold-border);
  border-radius: var(--radius); padding: 2rem; text-align: center; margin: 1.5rem 0;
  max-width: 400px; margin-left: auto; margin-right: auto;
}
.hamahakki-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr; gap: 8px;
}
.hh-cell {
  background: var(--bg3); border-radius: 8px; padding: 10px 6px;
  font-size: 0.78rem; font-weight: 600; color: var(--text-dim);
  border: 1px solid rgba(255,255,255,0.06);
}
.hh-cell.center {
  background: var(--gold); color: #000; font-weight: 800; font-size: 0.9rem;
  border: none;
}
.hh-cell.active { color: var(--gold); border-color: var(--gold-border); font-weight: 700; }
.hh-cell.empty { background: transparent; border: none; }

/* FOOTER */
footer {
  background: var(--bg); border-top: 3px solid var(--gold);
  padding: 3rem 2rem 2rem; text-align: center;
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
.footer-logo-wrap {
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-logo-wrap img {
  height: 56px; width: auto; display: block;
  filter: invert(1);
  mix-blend-mode: screen;
}
.footer-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.footer-divider {
  width: 60px; height: 2px; background: var(--gold-border);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem;
  font-size: 0.78rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }
.footer-copy { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #hero { padding: 90px 1.2rem 3rem; background-position: 60% center; }
  .hero-title { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .hero-sub { font-size: 1rem; margin-bottom: 2rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-bottom: 2rem; }
  .stat-num { font-size: clamp(2.6rem, 9vw, 3.8rem); }
  .hero-btn { width: 100%; justify-content: center; padding: 16px 24px; font-size: 1.05rem; }
  .scroll-hint { display: none; }
  .section { padding: 3rem 1.2rem; }
  .section-title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .section-sub { max-width: 100%; }
  .acc-header { padding: 14px 16px; min-height: 58px; }
  .acc-icon { width: 44px; height: 44px; }
  .acc-icon img { width: 40px; height: 40px; }
  .tabs { gap: 4px; }
  .tab-btn { font-size: 0.75rem; padding: 8px 10px; }
  .puistikko-grid { grid-template-columns: 1fr 1fr; }
  .tolppa-grid { grid-template-columns: 1fr; }
  .harjoittelu-grid { grid-template-columns: 1fr; }
  .paikka-list { grid-template-columns: 1fr; }
  .hh-cell { padding: 8px 4px; font-size: 0.7rem; }
  .hh-cell.center { font-size: 0.8rem; }
  .tolppa-num { min-width: 44px; font-size: 1.7rem; }
  .footer-bottom { gap: 0.8rem 1.4rem; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .hero-stats { gap: 1.2rem 1.5rem; }
  .stat-num { font-size: 2.6rem; }
  .stat-label { font-size: 0.65rem; }
  .section { padding: 2.5rem 1rem; }
  .section-tag { font-size: 0.68rem; padding: 4px 12px; }
  .section-title { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .acc-num-small { width: 22px; height: 22px; font-size: 0.65rem; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }
  footer { padding: 2rem 1rem 1.5rem; }
  .footer-logo-wrap img { height: 44px; }
}

/* FLOATING MAP PANEL */
#map-panel {
  position: fixed; top: 64px; right: 0; bottom: 0; width: 420px;
  background: #0d0f14; border-left: 1px solid rgba(255,197,10,0.2);
  z-index: 500; transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,0.6);
}
#map-panel.open { transform: translateX(0); }
#map-panel-header {
  padding: 1rem 1.2rem 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
#map-panel-title { font-family: 'Anton', sans-serif; font-size: 1.1rem; color: var(--gold); line-height: 1.2; }
#map-panel-sub { font-size: 0.78rem; color: var(--text-dim); margin-top: 3px; line-height: 1.4; }
#map-panel-close {
  background: none; border: 1px solid rgba(255,255,255,0.12); color: var(--text-dim);
  cursor: pointer; font-size: 0.85rem; padding: 4px 10px; border-radius: 5px;
  line-height: 1; transition: all 0.15s; flex-shrink: 0; margin-top: 2px;
}
#map-panel-close:hover { border-color: var(--gold); color: var(--gold); }
#map-panel-map { flex: 1; min-height: 0; }
#map-panel-map .leaflet-tile-pane {
  filter: grayscale(100%) invert(100%) brightness(72%) contrast(115%) sepia(15%);
}
#map-panel-status {
  padding: 6px 1.2rem; font-size: 0.75rem; color: var(--text-dim);
  border-top: 1px solid rgba(255,255,255,0.04); flex-shrink: 0;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.05em; text-transform: uppercase;
  min-height: 28px; display: flex; align-items: center;
}
.card-clickable { cursor: pointer; }
.card-clickable:hover { border-color: rgba(255,197,10,0.4) !important; }
@media (max-width: 768px) {
  #map-panel {
    width: 100%; top: auto; height: 55vh; transform: translateY(100%);
    border-left: none; border-top: 1px solid rgba(255,197,10,0.2);
  }
  #map-panel.open { transform: translateY(0); }
}

/* QUIZ */
.quiz-wrap { max-width: 560px; }
.quiz-counter { font-family: 'Barlow Condensed',sans-serif; font-size: 0.78rem; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.7rem; }
.quiz-q { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 1.2rem; line-height: 1.5; }
.quiz-q strong { color: var(--gold); }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; }
.quiz-opt { background: var(--bg2); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 0.72rem 1rem; text-align: left; cursor: pointer; color: var(--text); font-size: 0.9rem; transition: border-color 0.15s, background 0.15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--gold-border); background: rgba(255,197,10,0.05); }
.quiz-opt.correct { border-color: #22c55e !important; background: rgba(34,197,94,0.1) !important; color: #4ade80; }
.quiz-opt.wrong   { border-color: #ef4444 !important; background: rgba(239,68,68,0.08) !important; color: #f87171; }
.quiz-opt:disabled { cursor: default; }
.quiz-feedback { background: var(--bg3); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; padding: 0.7rem 1rem; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 1rem; line-height: 1.6; }
.quiz-feedback strong { color: var(--text); }
.quiz-next-btn { background: var(--gold); color: #111; border: none; border-radius: 8px; padding: 0.6rem 1.5rem; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: opacity 0.15s; }
.quiz-next-btn:hover { opacity: 0.88; }
.quiz-result { text-align: center; padding: 2rem 0; }
.quiz-score-num { font-size: 2.4rem; font-weight: 700; color: var(--gold); font-family: 'Barlow Condensed',sans-serif; letter-spacing: 0.04em; }
.quiz-score-msg { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.4rem; margin-bottom: 1.6rem; }
.quiz-restart-btn { background: var(--bg2); border: 1px solid var(--gold-border); color: var(--gold); border-radius: 8px; padding: 0.6rem 1.5rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; }

/* NEW: MODULE NAV BACK BUTTON */
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: #000; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  text-decoration: none; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px; transition: background 0.2s;
}
.nav-back:hover { background: rgba(0,0,0,0.1); }

/* NEW: MODULE BREADCRUMB */
.module-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  padding: 1rem 2rem 0;
  max-width: 1100px; margin: 0 auto;
  font-size: 0.8rem; color: var(--text-muted);
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none; border: none; position: static;
  height: auto;
}
.module-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.module-breadcrumb a:hover { color: var(--gold); }

/* NEW: PROGRESS TOAST */
.prog-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200;
  background: var(--bg2); border: 1px solid var(--gold-border);
  border-radius: 10px; padding: 0.75rem 1.25rem;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--text-dim);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
}
.prog-toast.show { opacity: 1; transform: translateY(0); }
.prog-toast-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* NEW: MARK COMPLETE BUTTON */
.btn-complete {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: #000; font-weight: 700;
  font-size: 0.9rem; padding: 12px 24px; border-radius: 8px;
  border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s; margin-top: 2rem;
}
.btn-complete:hover { background: #ffcf2e; transform: translateY(-2px); }
.btn-complete.done { background: #1a3d1a; color: #4ade80; cursor: default; transform: none; }

/* NEW: MODULE NAV LINKS (bottom of module page) */
.module-nav-links {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem;
}
.module-nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-dim); font-size: 0.85rem;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  transition: color 0.2s, border-color 0.2s;
}
.module-nav-link:hover { color: var(--gold); border-color: var(--gold-border); }

/* NEW: PAASIVU */
.modules-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; padding: 2.5rem 2rem 4rem;
  max-width: 1200px; margin: 0 auto;
}
.module-card {
  display: flex; flex-direction: column;
  background: var(--bg2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.module-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-border);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,197,10,0.15);
}
.card-cover {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.card-cover-bg { position: absolute; inset: 0; }
.card-cover-icon {
  position: relative; z-index: 2; width: 68px; height: 68px;
  object-fit: contain; opacity: 0.88;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.7));
}
.card-num-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,197,10,0.4);
  color: var(--gold); font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
}
.card-video-count {
  position: absolute; bottom: 10px; right: 12px; z-index: 3;
  color: rgba(255,255,255,0.45); font-size: 0.7rem;
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.06em;
}
.card-body {
  padding: 1.1rem 1.25rem 1rem;
  display: flex; flex-direction: column; gap: 5px; flex: 1;
}
.card-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 1.2rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text); line-height: 1.1;
}
.card-tagline { font-size: 0.8rem; color: var(--text-dim); line-height: 1.5; }
.card-progress { margin-top: auto; padding-top: 0.7rem; }
.progress-track {
  height: 3px; background: rgba(255,255,255,0.07);
  border-radius: 2px; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.6s ease; }
.progress-label { font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* NEW: PAGE HEADER (paasivu) */
.page-header { padding: 3.5rem 2rem 0; max-width: 1200px; margin: 0 auto; }
.page-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-border);
  color: var(--gold); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 1rem;
}
.page-eyebrow::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; }
.page-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.03em;
  line-height: 1; color: var(--text); margin-bottom: 0.5rem;
}
.page-sub { color: var(--text-dim); font-size: 1rem; max-width: 480px; }

/* NEW: RESPONSIVE */
@media (max-width: 900px) { .modules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 1rem 3rem; }
  .page-header { padding: 2rem 1rem 0; }
}
