:root {
  --green: #2f4a3a;
  --red: #79423d;
  --ink: #26302a;
  --muted: #5d6860;
  --line: #e4e1da;
  --bg: #fbfaf7;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
h1, h2, h3 { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; color: var(--green); line-height: 1.2; font-weight: 600; }
h1 { font-size: 2.1rem; margin: 1.5rem 0 .4rem; }
h2 { font-size: 1.6rem; margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 .35rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.25rem; }
section.wrap { padding-top: 3.25rem; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 1rem;
  padding: .6rem 1.25rem;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: Georgia, serif; font-weight: 600; color: var(--green); text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 1rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.top nav a:hover { color: var(--green); }
.brand .short { display: none; }
.nav-cta { background: var(--green); color: #fff !important; padding: .35rem .9rem; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: var(--red); }
@media (max-width: 30rem) {
  .top nav a:nth-child(3), .top nav a:nth-child(4) { display: none; }
  .brand .long { display: none; }
  .brand .short { display: inline; }
  .top nav { gap: .9rem; }
}

.hero img { width: 100%; height: min(52vh, 30rem); object-fit: cover; object-position: 50% 62%; }
.lead { font-size: 1.2rem; color: var(--red); margin-bottom: 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .8rem 1.3rem;
  border: 1.5px solid var(--green); border-radius: 999px;
  color: var(--green); text-decoration: none; font-weight: 600;
}
.btn-primary { background: var(--green); color: #fff; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }

.cards { display: grid; gap: 1rem; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  transition: border-color .2s, box-shadow .2s;
}
.card.on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.card h3 { margin-top: 0; }
.hole {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: calc(var(--d) * .0125rem * 4); /* suhteellinen koko: 28, 32 ja 46 mm */
  aspect-ratio: 1; border-radius: 50%;
  background: #2a2f2c; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5);
}
.spec { color: var(--red); font-weight: 600; margin-bottom: .35rem; }
.for { margin-bottom: .75rem; }
.facts { margin: 0 0 .75rem; padding-left: 1.1rem; color: var(--muted); font-size: .98rem; }
.note { font-size: .95rem; color: var(--muted); }
.price { font-family: Georgia, serif; font-size: 1.6rem; color: var(--green); margin: .5rem 0 0; }
.small { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.chips button {
  font: inherit; font-size: .98rem;
  padding: .55rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.result { min-height: 1.6em; font-weight: 600; color: var(--red); }
.sub { font-size: 1.05rem; margin: 1.5rem 0 0; }

.swatches { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.swatches li { margin: 0; }
.swatches img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.swatches span { display: block; margin-top: .35rem; font-weight: 600; }
@media (min-width: 34rem) { .swatches { grid-template-columns: repeat(3, 1fr); } }

figure { margin: 0 0 1.25rem; }
figure img { width: 100%; border-radius: 12px; }
figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; }
.plain { padding-left: 1.1rem; }
.plain li { margin-bottom: .6rem; }

.sign { color: var(--muted); font-size: .95rem; margin-top: 1.25rem; }
.event { }
.event[hidden] { display: none; }
.order { padding-bottom: 3.25rem; }

footer { background: var(--green); color: #e9efe9; margin-top: 2rem; padding: 2.25rem 0 2.5rem; font-size: .95rem; }
footer a { color: #fff; }
footer .small { color: #c4d1c8; }
footer p:last-child { margin-bottom: 0; }

@media (min-width: 48rem) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 66rem; margin: 0 auto; gap: 2rem; padding: 2rem 1.25rem 0; }
  .hero img { border-radius: 14px; height: auto; max-height: 38rem; object-position: 50% 50%; }
  .hero .wrap { padding: 0; margin: 0; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  section.wrap { max-width: 66rem; }
  #valitse, #rakenne, #hoito, #tapahtuma, #tilaa { max-width: 40rem; }
}

/* Hero: toimintapainikkeet, hyödyt */
.hero .actions { flex-wrap: nowrap; margin: 1rem 0 1.1rem; }
.hero .actions .btn { flex: 1; text-align: center; padding: .8rem .6rem; }
.hero h1 { margin-top: 1.1rem; }
.perks { list-style: none; margin: 0; padding: 0; font-size: .98rem; color: var(--muted); }
.perks li { position: relative; padding-left: 1.4rem; margin-bottom: .35rem; }
.perks li::before { content: ""; position: absolute; left: .15rem; top: .62em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--red); }

/* Mallikortit kuvilla */
.card { padding: 0; overflow: hidden; }
.card .body { padding: 1.1rem 1.25rem 1.1rem; }
.cardfig { position: relative; margin: 0; }
.cardfig img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 38%; border-radius: 0; }
.cardfig figcaption { position: absolute; left: .7rem; bottom: .7rem; margin: 0; padding: .15rem .65rem; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; font-size: .8rem; }
.card h3 { margin-top: 0; }

/* Alapalkki puhelimessa */
.dock { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: 4.6rem; }
  .dock {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px rgba(0, 0, 0, .06);
  }
  .dock a {
    text-align: center; padding: .65rem .25rem; border-radius: 999px;
    border: 1.5px solid var(--green); color: var(--green);
    text-decoration: none; font-weight: 600; font-size: .95rem;
  }
  .dock .dock-main { background: var(--green); color: #fff; }
  .dock a:last-child { font-weight: 500; border-color: var(--line); color: var(--muted); }
}

.ship { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .6rem; }
.ship li { padding-left: 1rem; border-left: 3px solid var(--green); }

.result:not(:empty) { background: #fff; border: 1px solid #ddd6c8; border-left: 4px solid var(--red); border-radius: .5rem; padding: .9rem 1rem; margin-top: 1rem; }

.top nav a.lang { font-size: .8rem; letter-spacing: .04em; border: 1px solid var(--muted); border-radius: 4px; padding: .1rem .4rem; }
