/* Jääkärihirsi Oy – jaakarihirsi.com. Vaalea ja selkeä: valkoinen + viileä harmaa, logon metsänvihreä korosteena. */
:root {
  /* Lämmin vaalea: luonnonvalkoinen pohja, hiekansävyiset paneelit, logon metsänvihreä korosteena */
  --ink: #1f1b16;
  --tx: #3a342c;
  --mut: #726a5e;
  --line: #e7e0d4;
  --bg: #faf7f2;
  --card: #fffdf9;
  --alt: #f2ece2;
  --g: #31714b;
  --g-d: #24573a;
  --g-t: #e6efe4;
  --wood: #b98a55;
  --r: 16px;
  --sh: 0 1px 2px rgba(48, 36, 20, .05), 0 8px 28px rgba(48, 36, 20, .08);
  --hd: "Schibsted Grotesk", "Inter", system-ui, sans-serif;
  --bd: "Inter", system-ui, -apple-system, sans-serif;
  --hh: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hh) + 32px); }
html.lock { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 400 17px/1.65 var(--bd); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--hd); color: var(--ink); margin: 0; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.03; letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: normal; color: var(--g); }
p { margin: 0 0 1em; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--mut); }
.small { font-size: 15px; }
.link { color: var(--g); text-decoration: underline; text-underline-offset: 3px; }
.big { font-size: 20px; line-height: 1.55; color: var(--ink); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--mut); margin: 20px 0 0; max-width: 620px; }

/* Painikkeet */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px var(--bd); border: 1.5px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ic:last-child:not(:first-child) { transform: translateX(3px); }
.btn-primary { background: var(--g); color: #fff; }
.btn-primary:hover { background: var(--g-d); }
.btn-line { border-color: #d9cfbf; color: var(--ink); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-white { background: var(--card); color: var(--ink); }
.btn-white:hover { background: #f3ece0; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Header: kelluva pilleri */
.hdr { position: sticky; top: 12px; z-index: 50; padding: 0 16px; height: var(--hh); }
.hdr-in { position: relative; display: flex; align-items: center; gap: 18px; height: 100%; width: min(1200px, 100%); margin-inline: auto; padding: 0 12px 0 24px;
  background: rgba(255, 253, 249, .96); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 999px; box-shadow: 0 1px 2px rgba(48, 36, 20, .06), 0 10px 30px rgba(48, 36, 20, .09); border: 1px solid rgba(48, 36, 20, .05); }
body.home .hdr-in { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.brand { display: inline-flex; flex: none; }
.wm { display: inline-flex; flex-direction: column; align-items: stretch; line-height: 1; }
.wm b { font: 800 21px/1 var(--hd); color: var(--ink); letter-spacing: .02em; }
.wm small { position: relative; background: var(--g); color: #fff; font: 600 7.5px/1 var(--bd); letter-spacing: .34em; padding: 3px 0 2px .34em; margin: 4px 6px 0; text-align: center; }
.wm small::before, .wm small::after { content: ""; position: absolute; top: -2px; bottom: -2px; width: 6px; background: var(--g); border-radius: 1px; }
.wm small::before { left: -6px; } .wm small::after { right: -6px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .dd > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 13px; border-radius: 999px; font-weight: 500; font-size: 15.5px; color: var(--tx); transition: background .2s; }
.nav > a:hover, .dd > a:hover, .nav a[aria-current] { background: var(--alt); color: var(--ink); }
.dd > a .ic { width: 16px; height: 16px; }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: -24px; width: 400px; display: grid; gap: 2px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.dd-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; }
.dd-menu a:hover, .dd-menu a[aria-current] { background: var(--alt); }
.dd-menu img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.dd-menu b { display: block; font: 600 15.5px/1.3 var(--hd); color: var(--ink); }
.dd-menu small { display: block; color: var(--mut); font-size: 13.5px; line-height: 1.35; }
.lang { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--mut); }
.lang:hover { background: var(--alt); color: var(--ink); }
.lang .ic { width: 18px; height: 18px; }
.burger { display: none; width: 46px; height: 46px; border: 0; background: var(--alt); border-radius: 50%; cursor: pointer; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.mnav { display: none; }

/* Osiot */
.sec { padding: 96px 0; }
.sec.alt { background: var(--alt); }
.sec.pt0 { padding-top: 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.sec-head h2 { max-width: 640px; }
.sec-head p { max-width: 420px; color: var(--mut); margin: 0; }
.h-sm { font-size: 24px; margin-bottom: 20px; }
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.rv.in, .no-js .rv, .shot .rv { opacity: 1; transform: none; }

/* Etusivun hero */
.xhero { padding: 0 16px; margin-top: calc(var(--hh) * -.5 - 12px); }
.xhero-in { position: relative; width: min(1400px, 100%); margin-inline: auto; min-height: min(88vh, 820px); border-radius: 28px; overflow: hidden; display: flex; align-items: flex-end; color: #fff; background: #1c241f; }
.xhero-img, .xhero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xhero-img img { animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.07); } to { transform: scale(1); } }
.shot .xhero-img img { animation: none; }
.xhero-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 15, 9, .8) 0%, rgba(20, 15, 9, .3) 40%, rgba(20, 15, 9, 0) 64%), linear-gradient(90deg, rgba(20, 15, 9, .35), rgba(20, 15, 9, 0) 55%); }
.xhero-b { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; padding: 0 clamp(24px, 5vw, 72px) clamp(32px, 5vw, 64px); }
.xhero h1 { color: #fff; font-size: clamp(40px, 5.6vw, 78px); line-height: 1.01; max-width: 820px; }
.xhero h1 em { color: #b5dcc2; }
.xhero-side p { color: rgba(255, 255, 255, .9); font-size: 18px; line-height: 1.55; margin: 0; max-width: 470px; }
.xhero-side .btns { margin-top: 24px; }

/* Alasivun hero */
.shero { padding: 0 16px; margin-top: calc(var(--hh) * -.5 - 12px); }
.shero-in { width: min(1400px, 100%); margin-inline: auto; display: grid; grid-template-columns: 1fr 1.2fr; min-height: 580px; border-radius: 28px; overflow: hidden; background: var(--alt); }
.shero-txt { padding: calc(var(--hh) + 64px) clamp(28px, 4.5vw, 64px) 56px; display: flex; flex-direction: column; justify-content: center; }
.shero h1 { font-size: clamp(36px, 4.2vw, 58px); }
.shero .lead { margin-top: 18px; }
.shero-img { margin: 0; position: relative; min-height: 320px; }
.shero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-price { margin-top: 22px; }
.phero { padding-top: calc(var(--hh) * .5 + 56px); padding-bottom: 48px; }
.phero .lead { max-width: 720px; }

/* Hinta */
.price { display: inline-flex; align-items: baseline; gap: 6px; font: 700 18px/1.2 var(--hd); color: var(--ink); white-space: nowrap; }
.price small { font: 500 14px var(--bd); color: var(--mut); }
.price.ask { font: 500 15px var(--bd); color: var(--mut); }
.price.big { font-size: 26px; }
.hero-price.price { font-size: 26px; }

/* Tuotetiilet */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
.tile:hover { box-shadow: var(--sh); transform: translateY(-3px); border-color: transparent; }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover .tile-img img { transform: scale(1.04); }
.tile-b { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tile-b h3 { font-size: 19px; }
.tile-b p { color: var(--mut); font-size: 15px; line-height: 1.5; margin: 6px 0 14px; }
.tile-b .price { margin-top: auto; }
.tiles-sm { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tiles-sm .tile-b { padding: 12px 14px 14px; }
.tiles-sm .tile-b h3 { font-size: 15px; }
.tiles-sm .tile-b p, .tiles-sm .price { display: none; }

/* Miksi + kartta */
.why-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.why { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 26px; }
.why li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.why-ic { width: 52px; height: 52px; padding: 13px; border-radius: 14px; background: var(--card); color: var(--g); stroke-width: 1.7; box-shadow: 0 1px 2px rgba(48, 36, 20, .06); }
.why h3 { font-size: 19px; margin: 2px 0 4px; }
.why p { margin: 0; color: var(--mut); }
.map { margin: 0; position: relative; max-width: 380px; justify-self: center; width: 100%; }
.map svg { width: 100%; height: auto; display: block; }
.map .land { fill: #e4dccd; stroke: var(--bg); stroke-width: 1; }
.map .radius { stroke: var(--g); stroke-width: 1.5; stroke-dasharray: 5 4; }
.map .city circle { fill: #a89d8c; }
.map .city.in circle { fill: var(--g-d); }
.map .city text { font: 500 11px var(--bd); fill: #7a7064; }
.map .city.in text { fill: var(--ink); }
.map .hq circle { fill: var(--g); }
.map .hq .halo { fill: rgba(49, 113, 75, .25); animation: pulse 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.map .hq text { font: 700 14px var(--hd); fill: var(--ink); }
.map figcaption { position: absolute; left: 0; bottom: 8%; background: var(--card); border-radius: 14px; padding: 14px 18px; box-shadow: var(--sh); max-width: 230px; }
.map figcaption b { display: block; font: 700 16px/1.3 var(--hd); color: var(--ink); }
.map figcaption span { display: block; font-size: 14px; color: var(--mut); line-height: 1.45; margin-top: 4px; }

/* Prosessi */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.process-img { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.process-img img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--g-t); color: var(--g-d); display: grid; place-items: center; font: 700 16px var(--hd); }
.steps h3 { font-size: 18px; }
.steps p { margin: 4px 0 0; color: var(--mut); font-size: 16px; }

/* Split ja listat */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: start; }
.split-txt h2 { margin-bottom: 22px; }
.split-img { margin: 0; border-radius: 22px; overflow: hidden; }
.split-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.listbox { background: var(--alt); border-radius: 22px; padding: 34px 36px; }
.listbox h3 { margin-bottom: 18px; }
.listbox.wide { margin-top: 28px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; line-height: 1.5; }
.checks .ic { color: var(--g); width: 20px; height: 20px; margin-top: 2px; stroke-width: 2.2; }
.checks.cols { grid-template-columns: 1fr 1fr; column-gap: 32px; }
.mat { width: 100%; border-collapse: collapse; }
.mat th, .mat td { text-align: left; padding: 11px 0; border-bottom: 1px solid #e2d9ca; vertical-align: top; font-size: 15.5px; }
.mat th { font: 600 15.5px var(--hd); color: var(--ink); padding-right: 18px; white-space: nowrap; }
.mat td { color: var(--mut); }
.mat tr:last-child th, .mat tr:last-child td { border-bottom: 0; }

/* Mallit */
.models { display: grid; gap: 28px; }
.model { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.model-gal .main { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); cursor: zoom-in; }
.model-gal .main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.model-gal .main:hover img { transform: scale(1.03); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.th { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: zoom-in; }
.th img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.th:hover img { opacity: .85; }
.model-b h3 { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 12px; }
.model-b > p { color: var(--tx); }
.model-b .checks { margin: 18px 0 26px; }
.model-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); }
.vat { margin-top: 16px; }
.model-foot .btn { margin-left: auto; }

/* Kuvabändi */
.band { position: relative; display: flex; align-items: flex-end; min-height: 440px; border-radius: 26px; overflow: hidden; color: #fff; }
.band-img, .band-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-img img { transition: transform 1s ease; }
.band:hover .band-img img { transform: scale(1.03); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 15, 9, .78), rgba(20, 15, 9, .15) 70%); }
.band-b { position: relative; z-index: 1; padding: clamp(28px, 5vw, 64px); max-width: 620px; }
.band-b h2 { color: #fff; }
.band-b p { color: rgba(255, 255, 255, .88); font-size: 18px; margin: 12px 0 26px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font: 600 18px/1.4 var(--hd); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .2s; color: var(--mut); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: -6px 0 22px; color: var(--tx); max-width: 680px; }

/* Palvelurivit (koontisivu) */
.srows { display: grid; gap: 16px; }
.srow { display: grid; grid-template-columns: 300px 1fr auto; gap: 36px; align-items: center; padding: 16px 28px 16px 16px; border: 1px solid var(--line); border-radius: 22px; transition: box-shadow .25s, border-color .25s; }
.srow:hover { box-shadow: var(--sh); border-color: transparent; }
.srow-img { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; }
.srow-img img { width: 100%; height: 100%; object-fit: cover; }
.srow-b h2 { font-size: clamp(22px, 2.2vw, 28px); }
.srow-b p { color: var(--mut); margin: 8px 0 12px; max-width: 640px; }
.srow-go { width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #d9cfbf; display: grid; place-items: center; transition: .2s; }
.srow:hover .srow-go { background: var(--g); border-color: var(--g); color: #fff; }

/* Yhteys + lomakkeet */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.big-tel { display: inline-flex; align-items: center; gap: 14px; font: 700 clamp(28px, 3vw, 36px)/1.1 var(--hd); color: var(--ink); margin: 18px 0 14px; letter-spacing: -.01em; }
.big-tel .ic { width: 28px; height: 28px; color: var(--g); }
.mail, .addr { display: flex; align-items: flex-start; gap: 12px; color: var(--tx); margin: 0 0 12px; }
.mail .ic, .addr .ic { margin-top: 3px; color: var(--mut); }
.panel { background: var(--card); border-radius: 22px; padding: 34px; box-shadow: var(--sh); }
.form h3, .form h2 { margin-bottom: 20px; }
.form h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: grid; gap: 7px; font-weight: 500; font-size: 15px; color: var(--ink); }
.f.full { grid-column: 1 / -1; }
.f input, .f select, .f textarea { width: 100%; font: 400 16px var(--bd); color: var(--ink); background: var(--card); border: 1.5px solid #dcd2c2; border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 4px rgba(49, 113, 75, .12); }
.f textarea { resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 22px; font-size: 15px; color: var(--mut); }
.check input { width: 20px; height: 20px; accent-color: var(--g); margin-top: 1px; flex: none; }
.err { display: none; background: #fdecec; color: #8a1f1f; padding: 12px 16px; border-radius: 12px; font-size: 15px; }
.err.show { display: block; }
.bad, .f .bad { border-color: #c0392b !important; }
.qplan.qplan-m, .qprice-m { display: none; }

/* Tarjousvelho */
.qwrap { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.qform { display: grid; gap: 20px; }
.qstep { padding: 32px; }
.qh { display: flex; align-items: center; gap: 14px; font-size: 22px; margin-bottom: 22px; }
.qh span { width: 34px; height: 34px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; font-size: 16px; flex: none; }
.pcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pc input { position: absolute; opacity: 0; pointer-events: none; }
.pc-in { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 8px 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.pc-in img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; margin-bottom: 6px; }
.pc-in b { font: 600 15px/1.3 var(--hd); color: var(--ink); padding: 0 4px; }
.pc-in .price { font-size: 14px; padding: 0 4px; }
.pc-in .price small { font-size: 12.5px; }
.pc input:checked + .pc-in { border-color: var(--g); background: var(--g-t); box-shadow: 0 0 0 3px rgba(49, 113, 75, .15); }
.pc input:focus-visible + .pc-in { outline: 2px solid var(--g); outline-offset: 2px; }
.lbl { font: 600 15px var(--hd); color: var(--ink); margin: 22px 0 10px; }
.q-models .lbl { margin-top: 0; }
.q-models { margin-bottom: 22px; }
.q-models:empty, .q-models.hide { display: none; }
.q-dims [hidden] { display: none; }
.chs { display: flex; flex-wrap: wrap; gap: 8px; }
.ch { position: relative; }
.ch input { position: absolute; opacity: 0; pointer-events: none; }
.ch span { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #dcd2c2; font-size: 15px; cursor: pointer; transition: .15s; background: var(--card); }
.ch span:hover { border-color: #bfb29d; }
.ch input:checked + span { background: var(--g); border-color: var(--g); color: #fff; }
.ch input:focus-visible + span { outline: 2px solid var(--g); outline-offset: 2px; }
.qstep .fgrid { margin-top: 20px; }
.qside { position: sticky; top: calc(var(--hh) + 32px); }
.qsum { padding: 28px; }
.qsum h3 { margin-bottom: 14px; }
.qplan { background: var(--alt); border-radius: 14px; padding: 14px; min-height: 160px; display: grid; place-items: center; }
.qplan svg { width: 100%; height: auto; display: block; max-height: 300px; }
.qplan img { width: 100%; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.qplan .wall { fill: var(--card); stroke: var(--ink); stroke-width: 3; }
.qplan .room { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.qplan .terr { fill: url(#hatch); stroke: #9a8e7c; stroke-width: 1.5; stroke-dasharray: 5 4; }
.qplan .dim { stroke: #9a8e7c; stroke-width: 1; }
.qplan text { font: 600 12px var(--bd); fill: #5b645f; }
.qplan .rl { font: 600 12.5px var(--hd); fill: var(--g-d); }
.qplan .bin { fill: var(--g-t); stroke: var(--g); stroke-width: 1.2; }
.qdl { margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.qdl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.qdl dt { color: var(--mut); }
.qdl dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.qprice { font: 700 24px/1.2 var(--hd); color: var(--ink); margin: 16px 0 6px; }
.qprice small { font: 500 14px var(--bd); color: var(--mut); }
.qsum .big-tel { font-size: 24px; margin: 14px 0 0; }
.qsum .big-tel .ic { width: 22px; height: 22px; }

/* Proosa */
.prose h2 { font-size: 22px; margin: 34px 0 10px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 12, 10, .92); display: grid; place-items: center; padding: 40px 72px; }
.lb[hidden] { display: none; }
.lb figure { margin: 0; max-width: min(1200px, 100%); max-height: 100%; display: grid; gap: 10px; justify-items: center; }
.lb img { max-height: 82vh; width: auto; border-radius: 10px; }
.lb figcaption { color: #fff; font-size: 15px; }
.lb button { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .24); }
.lb-x { top: 18px; right: 18px; } .lb-p { left: 14px; top: 50%; } .lb-n { right: 14px; top: 50%; }

/* Footer */
.ftr { background: #1d1913; color: rgba(255, 255, 255, .72); padding: 80px 0 32px; font-size: 15.5px; }
.ftr .wm b { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.ftr-brand p { margin: 20px 0 22px; max-width: 320px; }
.ftr h3 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a:hover { color: #fff; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 56px; padding-top: 24px; font-size: 14px; }
.demo-note { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.mbar { display: none; }

/* Responsiivisuus */
@media (max-width: 1180px) {
  .nav > a, .dd > a { padding: 10px 9px; font-size: 15px; }
  .tiles-sm { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1040px) {
  .nav, .hdr-q { display: none; }
  .burger { display: block; margin-left: 0; }
  .lang { margin-left: auto; }
  .mnav { display: grid; position: absolute; top: calc(100% + 8px); left: 16px; right: 16px; background: var(--card); border-radius: 22px; padding: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); max-height: calc(100dvh - 100px); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; }
  .hdr.open .mnav { opacity: 1; visibility: visible; transform: none; }
  .mnav > a { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; font: 600 18px var(--hd); color: var(--ink); border-radius: 12px; }
  .mnav > a .ic { color: var(--mut); }
  .msubs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px; }
  .msub { font-size: 14px; padding: 6px 12px; background: var(--alt); border-radius: 999px; }
  .mnav .mlang { justify-content: flex-start; gap: 10px; font: 500 16px var(--bd); color: var(--mut); }
  .mnav-foot { display: grid; gap: 10px; padding: 10px 4px 4px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .why-grid, .process, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-img { aspect-ratio: 16 / 10; }
  .qwrap { grid-template-columns: 1fr; }
  .qside { display: none; }
  .qplan.qplan-m { display: grid; margin-top: 22px; }
  .qprice-m { display: block; }
  .model { grid-template-columns: 1fr; gap: 26px; }
  .xhero-b { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 900px) {
  .shero-in { grid-template-columns: 1fr; min-height: 0; }
  .shero-txt { padding: calc(var(--hh) + 44px) 24px 32px; }
  .shero-img { aspect-ratio: 4 / 3; min-height: 0; }
  .srow { grid-template-columns: 160px 1fr; gap: 20px; padding: 12px; }
  .srow-go { display: none; }
  .pcs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .hdr { padding: 0 10px; top: 8px; }
  .hdr-in { padding: 0 8px 0 18px; gap: 6px; }
  .wm b { font-size: 18px; }
  .sec { padding: 64px 0; }
  .sec-head { flex-direction: column; align-items: start; gap: 12px; margin-bottom: 28px; }
  .xhero { padding: 0 8px; }
  .xhero-in { min-height: 86svh; border-radius: 22px; }
  .xhero h1 { font-size: 40px; }
  .xhero-side p { font-size: 17px; }
  .shero { padding: 0 8px; }
  .shero-in { border-radius: 22px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile-b { padding: 12px 14px 14px; }
  .tile-b h3 { font-size: 16px; }
  .tile-b p { display: none; }
  .tile-b .price { margin-top: 6px; font-size: 15px; }
  .tiles-sm { grid-template-columns: repeat(2, 1fr); }
  .map figcaption { position: static; margin-top: 12px; max-width: none; }
  .model { padding: 14px; border-radius: 20px; }
  .model-foot .btn { width: 100%; }
  .listbox { padding: 26px 22px; }
  .checks.cols { grid-template-columns: 1fr; }
  .srow { grid-template-columns: 1fr; }
  .band { min-height: 380px; }
  .band::after { background: linear-gradient(0deg, rgba(20, 15, 9, .82), rgba(20, 15, 9, .1) 80%); }
  .panel, .qstep { padding: 24px 18px; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid.q-dims { grid-template-columns: 1fr 1fr; }
  .pcs { grid-template-columns: 1fr 1fr; }
  .btns .btn { flex: 1 1 auto; }
  .ftr-grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr-bottom { flex-direction: column; }
  .mbar { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .mbar .btn { height: 48px; }
  .lb { padding: 20px 8px; }
  .lb-p, .lb-n { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* Kuvagalleria (toteutuksia) */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gal .g { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt); cursor: zoom-in; }
.gal .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal .g:hover img { transform: scale(1.04); }
.why-img img { aspect-ratio: 4 / 3.4; }
@media (max-width: 700px) { .gal { grid-template-columns: 1fr 1fr; gap: 8px; } }

@media (max-width: 700px) { body.home .xhero-img img { object-position: 74% 62% !important; } }

/* Groweon upotukset: tyhjä osio ei vie tilaa ennen kuin skripti täyttää sen */
.gw:not(:has(#gw-inpage-flow > *, #gw-inpage-chat > *)) { padding: 0; }
.gw > .wrap > div { width: 100%; }
