/* Takoraudan Autohuolto - uudistusdemo v2 (19.10.2026)
 * Suunta: vaalea, ilmava ja siisti huoltamo. Yksi tumma kuvahero, valkoiset kortit,
 * punainen vain toiminnoissa. Switzer (otsikot ja leipa), Onest kyrillisille.
 * Lahteen ►-merkit pysyvat DOMissa (.tri), mutta naytetaan nuolena tai pisteena.
 */

/* ------------------------------------------------------------------ tokenit */
:root {
  --bg: #F6F5F2;
  --white: #FFFFFF;
  --sand: #EDEAE4;
  --ink: #16140F;
  --ink-2: #221F19;
  --text: #1A1814;
  --muted: #5F594F;
  --muted-lt: rgba(255, 255, 255, .72);
  --line: rgba(22, 20, 15, .10);
  --line-2: rgba(22, 20, 15, .18);
  --line-dk: rgba(255, 255, 255, .14);
  --red: #B5171E;
  --red-dk: #951219;
  --red-lt: #FF7A70;

  --f: 'Switzer', 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --fs-h1-sub: clamp(1.875rem, 1.45rem + 1.7vw, 3rem);
  --fs-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  --fs-h3: clamp(1.125rem, 1.08rem + .2vw, 1.25rem);
  --fs-lead: clamp(1rem, .97rem + .15vw, 1.0625rem);
  --fs-body: 1rem;
  --z: 1;

  --pad: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --gap: clamp(16px, 2vw, 24px);
  --sec: clamp(72px, 8.5vw, 136px);
  --hdr: 76px;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --pill: 999px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: 220ms;
}
@media (max-width: 1023px) { :root { --hdr: 64px; } }

/* ------------------------------------------------------------------ perusta */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
p, ul, ol { margin: 0; }
ul[role="list"], .contact-rows, .meta-rows, .cta-rows, .ft-grid ul, .ft-contact, .nav-list, .sub { list-style: none; padding: 0; margin: 0; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; }
main { display: block; outline: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--f);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
  overflow-wrap: break-word;
  color: inherit;
}
h2 { font-size: var(--fs-h2); line-height: 1.06; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.018em; }
p { text-wrap: pretty; }
p + p { margin-top: .85em; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; transition: color var(--t), text-decoration-color var(--t); }
a:hover { color: var(--red); text-decoration-color: currentColor; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
.s-ink :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible, .eco :focus-visible, .cta-card :focus-visible { outline-color: #fff; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--white); color: var(--text); padding: 12px 18px; font-weight: 600;
  text-decoration: none; border-radius: var(--r-sm); box-shadow: 0 0 0 1px var(--line-2);
}
.skip:focus { top: 12px; }

/* ►: nuoli (napit, linkit), piste (listat), piilossa (otsikoiden alku) */
.tri { font-family: 'Segoe UI Symbol', 'Apple Symbols', sans-serif; font-variant-emoji: text; }
.tri--a {
  display: inline-block; position: relative;
  font-size: 0; color: inherit;
  width: .85rem; height: .85rem;
  margin-left: .5rem;
  vertical-align: -.1em;
  transition: transform var(--t) var(--ease);
}
.tri--a::before { content: ""; position: absolute; left: 0; right: 1px; top: calc(50% - .8px); height: 1.6px; border-radius: 1px; background: currentColor; }
.tri--a::after { content: ""; position: absolute; right: 1px; top: 50%; width: .42rem; height: .42rem; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; border-radius: 0 1px 0 0; transform: translateY(-50%) rotate(45deg); transform-origin: center; }
a:hover > .tri--a, button:hover > .tri--a { transform: translateX(3px); }
.tri--b { display: none; }
.tri:not(.tri--a):not(.tri--b) { font-size: .75em; }

.price { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.maxw-20 { max-width: 20ch; }

/* ------------------------------------------------------------------ layout */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--sec); }
.sec--lg { padding-block: calc(var(--sec) * 1.15); }
.sec--top0 { padding-top: 0; }
.s-bone { background: var(--bg); }
.s-sand { background: var(--sand); }
.s-white { background: var(--white); }
.s-ink, .s-ink2 { background: var(--ink-2); color: #fff; }

.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.g12 > * { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
  .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
  .start-5 { grid-column: 5 / -1; } .start-6 { grid-column: 6 / -1; } .start-7 { grid-column: 7 / -1; }
}

.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { max-width: 18ch; }
.head-block { margin-bottom: clamp(28px, 3.5vw, 48px); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.link-arrow { font-weight: 600; font-size: 1rem; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.link-arrow:hover { color: var(--red); }

/* ------------------------------------------------------------------ napit */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--f); font-size: .875rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t), transform var(--t) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .8125rem; }
.btn--lg { min-height: 50px; padding: 0 24px; font-size: .9375rem; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dk); color: #fff; }
.btn--secondary { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--text); color: var(--text); background: var(--white); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--glass:hover { background: #fff; color: var(--text); border-color: #fff; }
.s-ink .btn--secondary, .s-ink .btn--ghost, .eco .btn--ghost, .eco .btn--secondary, .cta-card .btn--secondary, .nosto .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .4); }
.s-ink .btn--secondary:hover, .s-ink .btn--ghost:hover, .eco .btn--ghost:hover, .eco .btn--secondary:hover, .nosto .btn--secondary:hover { background: #fff; color: var(--text); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 32px; }

.tel-link { font-weight: 600; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel-link:hover { color: var(--red); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: background-color 300ms, border-color 300ms, color 300ms;
}
.hdr { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-logo { height: 34px; width: auto; }
.brand-logo--light { display: none; }
.brand-name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.02em; line-height: 1.1; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--pill);
  background: none; border: 0; cursor: pointer;
  font-size: .9375rem; font-weight: 500; color: inherit; text-decoration: none;
  transition: background-color var(--t), color var(--t);
}
.nav-link:hover { color: inherit; background: rgba(22, 20, 15, .06); }
.nav-link.is-active, .nav-link[aria-current="page"] { color: var(--red); }
.chev-btn { background: none; border: 0; padding: 10px 8px 10px 0; margin-left: -8px; cursor: pointer; display: inline-flex; color: inherit; }
.chev { display: inline-block; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease); opacity: .7; }
.has-sub.open .chev { transform: translateY(1px) rotate(225deg); }

.sub {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: var(--white); color: var(--text);
  border-radius: var(--r); padding: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(22, 20, 15, .22);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 180ms, transform 220ms var(--ease), visibility 0s 220ms;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.sub--wide { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; column-gap: 4px; }
.has-sub.open > .sub { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms, transform 220ms var(--ease); }
.sub a { display: block; padding: 10px 14px; border-radius: var(--r-sm); font-size: .9375rem; text-decoration: none; color: var(--text); line-height: 1.3; }
.sub a:hover, .sub a:focus-visible { background: var(--bg); color: var(--text); }
.sub a[aria-current="page"] { color: var(--red); }

.nav-extra { display: none; }
.hdr-actions { display: flex; align-items: center; gap: 20px; }
.hdr-tel { font-weight: 600; font-size: .9375rem; text-decoration: none; font-variant-numeric: tabular-nums; color: inherit; white-space: nowrap; }
.hdr-tel:hover { color: var(--red); }
.burger { display: none; }

/* Etusivu: lapinakyva header heron paalla, kiintea kun vieritetaan */
body[data-page="index"] .site-header { position: fixed; left: 0; right: 0; }
body[data-page="index"] .site-header:not(.is-solid) { background: transparent; border-bottom-color: transparent; color: #fff; }
body[data-page="index"] .site-header:not(.is-solid) .brand { color: #fff; }
body[data-page="index"] .site-header:not(.is-solid) .brand-logo--dark { display: none; }
body[data-page="index"] .site-header:not(.is-solid) .brand-logo--light { display: block; }
body[data-page="index"] .site-header:not(.is-solid) .nav-link:hover { background: rgba(255, 255, 255, .12); }
body[data-page="index"] .site-header:not(.is-solid) .hdr-tel:hover { color: #fff; opacity: .8; }

@media (max-width: 1180px) and (min-width: 1024px) {
  .hdr-tel { display: none; }
  .nav-link { padding-inline: 10px; }
}

@media (max-width: 1023px) {
  .brand-logo { height: 28px; }
  .brand-name { font-size: .9375rem; max-width: 7.5em; }
  .hdr { gap: 12px; }
  .hdr-actions { margin-left: auto; gap: 8px; }
  .hdr-tel { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
    width: 44px; height: 44px; border: 0; border-radius: var(--pill); background: transparent; cursor: pointer; color: inherit;
  }
  .burger span { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform 260ms var(--ease); }
  .nav-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--hdr) 0 0 0; z-index: 49;
    background: var(--white); color: var(--text);
    padding: 16px var(--pad) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms, transform 260ms var(--ease), visibility 0s 260ms;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 220ms, transform 260ms var(--ease); }
  .nav-open body { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; padding: 16px 0; border-radius: 0; flex: 1; justify-content: space-between; }
  .nav-link:hover { background: none; }
  .chev-btn { padding: 16px 4px; margin: 0; width: 48px; justify-content: flex-end; }
  .sub, .sub--wide {
    position: static; display: none; min-width: 0; width: 100%; grid-template-columns: 1fr;
    box-shadow: none; padding: 0 0 12px; opacity: 1; visibility: visible; transform: none; background: transparent;
  }
  .has-sub.open > .sub { display: block; }
  .sub a { padding: 10px 0; font-size: 1.0625rem; color: var(--muted); }
  .sub a:hover { background: none; color: var(--text); }
  .nav-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
  .nav-extra .tel-link { font-size: 1.5rem; }
  .nav-open .site-header { background: var(--white) !important; color: var(--text) !important; border-bottom-color: var(--line) !important; }
  .nav-open .site-header .brand { color: var(--text) !important; }
  .nav-open .site-header .brand-logo--dark { display: block !important; }
  .nav-open .site-header .brand-logo--light { display: none !important; }
}
@media (max-width: 400px) {
  .hdr-actions .btn--sm { padding: 0 12px; }
  .hdr-actions .btn--sm .tri--a { display: none; }
}

/* ------------------------------------------------------------------ hero (etusivu) */
.hero {
  position: relative; isolation: isolate;
  min-height: max(560px, min(calc(100svh / var(--z)), 980px));
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 9, .62) 0%, rgba(14, 12, 9, .12) 22%, rgba(14, 12, 9, .18) 48%, rgba(14, 12, 9, .86) 100%),
    linear-gradient(90deg, rgba(14, 12, 9, .55) 0%, rgba(14, 12, 9, 0) 65%);
}
.hero-inner {
  padding-top: calc(var(--hdr) + 48px);
  padding-bottom: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: end;
}
.hero-title { font-size: var(--fs-h1); line-height: .98; letter-spacing: -0.038em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { margin-top: clamp(20px, 2.4vw, 28px); max-width: 34rem; font-size: var(--fs-lead); line-height: 1.55; color: rgba(255, 255, 255, .86); }
.hero-lead a { color: #fff; text-decoration-color: rgba(255, 255, 255, .5); }
.hero-lead a:hover { color: #fff; text-decoration-color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
.hero-call { display: flex; flex-direction: column; gap: 2px; margin-left: auto; text-align: right; align-items: flex-end; padding-left: 24px; }
.hero-call-h { font-size: .9375rem; color: rgba(255, 255, 255, .72); }
.hero-phone { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-phone a { text-decoration: none; color: #fff; }
.hero-phone a:hover { color: #fff; opacity: .8; }

.hero-strip { border-top: 1px solid rgba(255, 255, 255, .16); background: rgba(14, 12, 9, .35); }
.hero-services.wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--pad); margin-inline: auto; }
.hero-services li {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 20px 22px 0;
  font-size: .9375rem; font-weight: 500; line-height: 1.3; color: rgba(255, 255, 255, .9);
}
.hero-services li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .16); }
.hero-services .tri--b, .tri-rows .tri--b, .tri-list .tri--b {
  display: inline-block; flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); color: transparent; overflow: hidden;
}
.hero-services .tri--b { background: var(--red-lt); }

@media (max-width: 1023px) {
  .hero-services.wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-call { display: none; }
  .hero-services li { padding: 16px 12px 16px 0; font-size: .875rem; }
  .hero-services li + li { padding-left: 0; border-left: 0; }
  .hero-services li:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
  .hero-services li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .16); }
}
@media (max-width: 639px) {
  .hero { min-height: calc(100svh - 68px - env(safe-area-inset-bottom)); }
  .hero-inner { padding-top: calc(var(--hdr) + 32px); padding-bottom: 24px; gap: 20px; }
  .hero-lead { font-size: .9375rem; line-height: 1.5; margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
  .hero-services li { padding: 11px 10px 11px 0; font-size: .8125rem; gap: 9px; }
  .hero-services li:nth-child(even) { padding-left: 12px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-call { display: none; }
}
@media (max-height: 820px) and (min-width: 1024px) {
  .hero-inner { padding-top: calc(var(--hdr) + 32px); padding-bottom: 32px; }
  .hero-title { font-size: clamp(2.5rem, 1rem + 4.2vw, 4.5rem); }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .hero-services li { padding-block: 18px; }
}

/* Heron latausanimaatio: alkutila jo ennen ensimmaista piirtoa (.js asetetaan headissa) */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-img { transform: scale(1.06); animation: heroZoom 1600ms var(--ease) forwards; }
  .js .hero-title .line > span { transform: translateY(105%); animation: lineUp 900ms var(--ease) forwards; }
  .js .hero-title .line:nth-child(2) > span { animation-delay: 90ms; }
  .js .hero-lead, .js .hero-actions, .js .hero-call, .js .hero-strip { opacity: 0; animation: fadeUp 800ms var(--ease) forwards; }
  .js .hero-lead { animation-delay: 260ms; }
  .js .hero-actions { animation-delay: 340ms; }
  .js .hero-call { animation-delay: 420ms; }
  .js .hero-strip { animation-delay: 500ms; }
}
@keyframes heroZoom { to { transform: scale(1); } }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ infobar */
.infobar { background: var(--white); border-bottom: 1px solid var(--line); }
.infobar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ib-item { display: flex; flex-direction: column; gap: 2px; padding: 26px 24px 26px 0; min-width: 0; }
.ib-item + .ib-item { padding-left: 32px; border-left: 1px solid var(--line); }
.ib-label { font-size: .8125rem; color: var(--muted); font-weight: 500; }
.ib-val { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
a.ib-val:hover { color: var(--red); }
.ib-link { font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-top: 4px; display: inline-flex; align-items: center; }
.ib-link:hover { color: var(--red); }
@media (max-width: 899px) {
  .infobar-grid { grid-template-columns: 1fr; }
  .ib-item { padding: 18px 0; }
  .ib-item + .ib-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ palvelukortit (etusivu) */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.svc {
  background: var(--white); border-radius: var(--r); overflow: hidden;
  display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 300ms, transform 300ms var(--ease);
}
.svc-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.svc-body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; }
.svc-title { margin-bottom: 12px; }
.svc-body > p { color: var(--muted); font-size: .9375rem; }
.svc-body .price { display: block; margin-top: 12px; font-size: 1rem; }
.svc-actions { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (hover: hover) {
  .svc:hover { box-shadow: 0 0 0 1px var(--line-2), 0 24px 48px -28px rgba(22, 20, 15, .35); transform: translateY(-2px); }
  .svc:hover .svc-media img { transform: scale(1.03); }
}
@media (min-width: 1200px) {
  .svc { grid-template-rows: none; grid-template-columns: 42% minmax(0, 1fr); }
  .svc-media { aspect-ratio: auto; min-height: 100%; }
}
@media (max-width: 639px) { .svc-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ huoltopaketit */
.pk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.pk-intro h2 { max-width: 12ch; }
.pk-intro .btn-row { margin-top: 28px; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pcard { background: var(--white); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.pcard-media { aspect-ratio: 16 / 10; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; flex: 1; }
.pcard-title { margin-bottom: 12px; font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
.pcard p { color: var(--muted); font-size: .9375rem; }
.pcard .price { display: block; margin: 14px 0 2px; font-size: 1.125rem; letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  .pk-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .pk-intro { position: sticky; top: calc(var(--hdr) + 32px); align-self: start; }
}
@media (max-width: 699px) { .pcards { grid-template-columns: 1fr; } }

/* palvelupaketit- ja PureTech-sivun kortit ilman kuvaa */
.packages--page .pcard, .packages--pt .pcard { padding: clamp(24px, 3vw, 40px); }
.pcards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .pcards--3 { grid-template-columns: 1fr; } }
.pcard-list { list-style: none; padding: 0; margin: 12px 0 0; color: var(--muted); font-size: 1rem; }
.pcard-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.pcard-price { margin-top: 18px; font-weight: 600; font-size: 1.25rem; color: var(--text) !important; }
.pcard-actions { margin-top: auto; padding-top: 24px; }
.pcard > .btn-row.pcard-actions { margin-top: auto; }

/* ------------------------------------------------------------------ EcoBoost */
.eco-sec { padding-top: 0; }
.eco {
  background: var(--ink-2); color: #fff; border-radius: var(--r-lg); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.eco-media { aspect-ratio: 16 / 10; }
.eco-img { width: 100%; height: 100%; object-fit: cover; }
.eco-text { padding: clamp(28px, 5vw, 72px); }
.eco-title { max-width: 16ch; }
.eco .price-rows { margin-top: 32px; border-top: 1px solid var(--line-dk); }
.price-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-dk); font-size: 1rem; }
.pr-model { color: var(--muted-lt); }
.pr-price { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.eco-copy { margin-top: 24px; color: var(--muted-lt); font-size: .9375rem; }
.eco a:hover { color: #fff; }
@media (min-width: 1024px) {
  .eco { grid-template-columns: 1fr 1fr; }
  .eco-media { aspect-ratio: auto; }
}

/* ------------------------------------------------------------------ suositus */
.quote { background: var(--white); }
.quote-fig { max-width: 920px; margin-inline: auto; text-align: center; }
.quote-stars { font-size: 1.125rem; letter-spacing: .25em; color: transparent; text-shadow: 0 0 0 #E2A31A; margin-bottom: 24px; }
.quote-text { margin: 0; }
.quote-text p { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 500; letter-spacing: -0.022em; line-height: 1.3; text-wrap: balance; }
.quote-name { margin-top: 28px; font-weight: 600; font-size: 1rem; }

/* ------------------------------------------------------------------ arvot */
.values-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.values-title { max-width: 16ch; margin-bottom: 28px; }
.values-media .frame img { width: 100%; }
.tri-rows { border-top: 1px solid var(--line); }
.tri-rows li { border-bottom: 1px solid var(--line); padding: 20px 0; }
.tri-rows .tri-p, .tri-list .tri-p { position: relative; padding-left: 22px; }
.tri-rows .tri--b, .tri-list .tri--b { position: absolute; left: 0; top: calc(.5lh - 3.5px); }
.tri-rows p { color: var(--muted); }
.tri-rows a { color: var(--text); }
.values-logos { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.logo-autofit { width: 52px; height: auto; }
.logo-flag { width: 104px; height: auto; border-radius: 6px; }
@media (min-width: 1024px) {
  .values-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px); }
  .values-media { position: sticky; top: calc(var(--hdr) + 32px); }
}

/* ------------------------------------------------------------------ kehykset ja kuvat */
.frame { border-radius: var(--r); overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: auto; }
.frame--white { background: var(--white); box-shadow: 0 0 0 1px var(--line); padding: 12px; }
.frame--white img { border-radius: 8px; }
.frame--logos { margin-top: 12px; }
.frame--fill img { height: 100%; object-fit: cover; }
.frame--sand { background: var(--white); box-shadow: 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ blogikortit */
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) var(--gap); }
.bcard { display: flex; flex-direction: column; min-width: 0; }
.bcard-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--sand); margin-bottom: 18px; }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.bcard:hover .bcard-media img { transform: scale(1.03); }
.bcard-meta { display: flex; gap: 14px; font-size: .8125rem; color: var(--muted); margin-bottom: 8px; }
.bcard-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: 14px; vertical-align: middle; }
.bcard-title { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.018em; }
.bcard-title a { text-decoration: none; }
.bcard-title a:hover { color: var(--red); }
.bcard-excerpt { margin-top: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
@media (max-width: 1023px) { .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .bgrid { grid-template-columns: 1fr; } }

.lcard a { display: block; text-decoration: none; }
.lcard-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; margin-bottom: 14px; background: var(--sand); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.lcard a:hover img { transform: scale(1.03); }
.lcard-title { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.015em; display: inline-flex; align-items: center; }
.lcard a:hover .lcard-title { color: var(--red); }

/* ------------------------------------------------------------------ yhteydenotto + lomake (etusivu) */
.contact { background: var(--ink-2); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-title { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); letter-spacing: -0.036em; }
.contact-title a, .cta-title a { text-decoration: none; color: inherit; }
.contact-title a:hover, .cta-title a:hover { color: inherit; opacity: .85; }
.contact-phone { display: inline-block; margin-top: 20px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }
.contact-phone:hover { color: #fff; opacity: .8; }
.contact .contact-rows { margin-top: 32px; border-top: 1px solid var(--line-dk); }
.contact .contact-rows li { border-bottom: 1px solid var(--line-dk); padding: 16px 0; color: var(--muted-lt); }
.contact .contact-rows a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.contact .contact-rows a:hover { color: #fff; text-decoration: underline; }
.contact-form { background: var(--white); color: var(--text); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); }
.form-title { font-size: 1.3125rem; letter-spacing: -0.022em; margin-bottom: 24px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 5fr 6fr; gap: clamp(48px, 6vw, 96px); }
}

.form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 559px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .875rem; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t), box-shadow var(--t), background-color var(--t);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8C857A; }
.field input:hover, .field textarea:hover { border-color: rgba(22, 20, 15, .32); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); background: var(--white); box-shadow: 0 0 0 3px rgba(22, 20, 15, .08); }
.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-foot { margin-top: 8px; }
.form-foot .btn { width: 100%; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red); font-weight: 500; }
.form-thanks { background: var(--bg); border-radius: var(--r); padding: 32px; font-size: 1.25rem; font-weight: 600; outline: none; }

/* ------------------------------------------------------------------ CTA-kaista (alasivut) */
.cta-band { padding-block: var(--sec); }
.cta-card { background: var(--ink-2); color: #fff; border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); }
.cta-text { padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.cta-title { font-size: clamp(1.875rem, 1.45rem + 1.7vw, 3rem); letter-spacing: -0.035em; }
.cta-rows { margin-top: 24px; display: grid; gap: 6px; color: var(--muted-lt); }
.cta-rows a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.cta-rows a:hover { color: #fff; text-decoration: underline; }
.cta-media { min-height: 260px; }
.cta-img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
@media (min-width: 1024px) { .cta-card { grid-template-columns: 1.05fr .95fr; } .cta-media { min-height: 440px; } }

/* ------------------------------------------------------------------ alasivun paa */
.page-head { padding-top: clamp(40px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); background: var(--bg); }
.ph-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.ph-title { font-size: var(--fs-h1-sub); letter-spacing: -0.036em; line-height: 1.02; }
.ph-lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--muted); max-width: 38rem; }
.ph-lead a { color: var(--text); }
.ph-lead .price { color: var(--text); }
.ph-text > .contact-rows { margin-top: 28px; }
.ph-media .frame { box-shadow: none; }
@media (min-width: 1024px) {
  .ph-grid { align-items: stretch; }
  .ph-text { align-self: center; }
  .ph-media { display: flex; flex-direction: column; justify-content: center; min-height: clamp(360px, 30vw, 460px); }
  .ph-media .frame:not(.frame--white) { flex: 1; min-height: 0; position: relative; }
  .ph-media .frame:not(.frame--white) img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none !important; object-fit: cover; }
  .ph-halves { grid-template-columns: 1fr 1fr; gap: clamp(48px, 6vw, 96px); }
  .ph-7-5 { grid-template-columns: 7fr 5fr; gap: clamp(48px, 6vw, 96px); }
  .ph-5-7 { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); }
}
.page-head--slim { padding-bottom: clamp(28px, 3vw, 48px); }
@media (max-width: 1023px) { .ph-media .frame:not(.frame--white) img { width: 100%; max-width: none !important; aspect-ratio: 16 / 10; object-fit: cover; } }

.contact-rows { border-top: 1px solid var(--line); }
.contact-rows li { border-bottom: 1px solid var(--line); padding: 14px 0; }
.contact-rows a { text-decoration: none; overflow-wrap: anywhere; }
.contact-rows a:hover { color: var(--red); }

/* ------------------------------------------------------------------ hinnasto (palvelut, uslugi) */
.ledger-sec { padding-top: 0; }
.side-sticky { align-self: start; }
@media (min-width: 1024px) { .side-sticky { position: sticky; top: calc(var(--hdr) + 32px); } }
.side-statement { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.022em; }
.side-statement--long { font-size: 1.25rem; }
.contact-rows--side { margin-top: 24px; }
.side-tel { margin-top: 20px; font-weight: 600; }
.side-tel a { text-decoration: none; }
.side-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.ledger { display: grid; gap: 16px; list-style: none; padding: 0; }
.ledger-row {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px;
  background: var(--white); border-radius: var(--r); padding: 16px; padding-right: clamp(20px, 2.4vw, 32px);
  box-shadow: 0 0 0 1px var(--line);
  scroll-margin-top: calc(var(--hdr) + 16px);
}
.ledger-thumb { border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sand); align-self: start; }
.ledger-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ledger-body { padding-block: 8px; min-width: 0; }
.ledger-body h3 { margin-bottom: 10px; }
.ledger-body p { color: var(--muted); font-size: .9375rem; }
.ledger-body a { color: var(--text); }
.ledger-body .price { display: block; margin-top: 10px; }
.price-line { color: var(--text) !important; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-line + .price-line { margin-top: 4px; }
.ledger-link { margin-top: 10px; }
.ledger-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.ledger-actions:empty { display: none; }
.ledger-after { margin-top: 28px; }
@media (max-width: 639px) {
  .ledger-row { grid-template-columns: 1fr; gap: 16px; padding: 12px 12px 20px; }
  .ledger-thumb { aspect-ratio: 16 / 9; }
  .ledger-body { padding: 0 8px; }
}

/* ------------------------------------------------------------------ statement (palvelupaketit) */
.statement-title { max-width: 22ch; font-size: var(--fs-h2); }
.statement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin-top: 40px; border-top: 1px solid var(--line-2); padding-top: 24px; }
.statement-cols p { margin: 0 !important; overflow-wrap: anywhere; }
.statement-cols a { text-decoration: none; font-weight: 600; }
@media (max-width: 767px) { .statement-cols { grid-template-columns: 1fr; gap: 12px; } }

/* ------------------------------------------------------------------ palvelusivujen osiot */
.qa { padding-block: clamp(48px, 6vw, 88px); background: var(--bg); }
.qa + .qa .wrap { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 88px); }
.qa + .qa { padding-top: 0; }
.qa.s-sand { background: var(--bg); }
.qa-head h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); max-width: 18ch; }
.qa-body { color: var(--muted); }
.qa-body a { color: var(--text); }
.qa-body .btn-row { margin-top: 24px; }

.nosto { padding-block: clamp(16px, 2vw, 24px); background: var(--bg); color: var(--text); }
.nosto > .wrap {
  background: var(--ink-2); color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 72px); max-width: calc(var(--maxw) + 2 * var(--pad));
  width: calc(100% - 2 * var(--pad));
}
.nosto h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); }
.nosto-body { color: var(--muted-lt); }
.nosto-body a { color: #fff; }
.nosto .head-block { margin-bottom: 0; }

/* ------------------------------------------------------------------ teksti (blogi, tietosuoja) */
.prose { font-size: 1rem; line-height: 1.72; color: #2F2B25; }
.prose > * + * { margin-top: 1.1em; }
.prose p + p { margin-top: 1.1em; }
.prose-head { margin-top: 2.2em !important; }
.prose-head h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.025em; color: var(--text); }
.prose .list { padding-left: 1.2em; }
.prose .list li + li { margin-top: .4em; }
.prose .list li::marker { color: var(--red); }
.prose a { color: var(--text); text-decoration-color: var(--red); }
.prose .tri-list { display: grid; gap: .8em; }
.prose .contact-rows { margin-top: 1.4em; }
.prose .btn-row { margin-top: 1.6em; }
.tags { font-size: .9375rem; color: var(--muted); }
.tags a { display: inline-block; margin: 4px 6px 0 0; padding: 4px 12px; border-radius: var(--pill); background: var(--white); box-shadow: 0 0 0 1px var(--line); text-decoration: none; color: var(--text); }
.prose--legal { max-width: 46rem; }
.legal-side { align-self: start; }
@media (min-width: 1024px) { .legal-side { position: sticky; top: calc(var(--hdr) + 32px); } }

/* blogikirjoitus */
.post-head { padding-top: clamp(32px, 5vw, 72px); background: var(--bg); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none; margin-bottom: 20px; }
.back-link::before { content: ""; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.back-link:hover { color: var(--red); }
.post-title { max-width: 22ch; }
.post-figure { margin-top: clamp(28px, 4vw, 48px); background: transparent; }
.post-img { width: 100%; border-radius: var(--r); }
.post-grid { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 96px); }
.post-side { align-self: start; }
@media (min-width: 1024px) { .post-side { position: sticky; top: calc(var(--hdr) + 32px); } }
.meta-rows { border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.meta-rows li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.meta-rows li:first-child { color: var(--text); font-weight: 600; }

/* vinkit */
.feat { margin-bottom: clamp(48px, 6vw, 88px); }
.feat-media { display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; background: var(--sand); }
.feat-media img { width: 100%; height: 100%; max-width: none !important; object-fit: cover; }
.feat-body { margin-top: 28px; }
.feat-title { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2.25rem); }
.feat-title a { text-decoration: none; }
.feat-title a:hover { color: var(--red); }
.feat-excerpt { color: var(--muted); }
.feat-side .btn { margin-top: 20px; }
@media (max-width: 639px) { .feat-media { aspect-ratio: 16 / 10; } }

/* 404 */
.page-ink { background: var(--ink-2); }
.nf { min-height: 70vh; display: flex; align-items: center; color: #fff; }
.nf-inner { padding-block: 96px; }
.nf-text { margin-top: 20px; color: var(--muted-lt); font-size: var(--fs-lead); }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-top: clamp(56px, 7vw, 96px); font-size: .9375rem; }
.site-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.ft-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid var(--line-dk); }
.brand--ft { color: #fff !important; text-decoration: none !important; }
.brand--ft .brand-logo { height: 40px; }
.brand--ft .brand-name { font-size: 1.25rem; }
.ft-phone { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.75rem); font-weight: 600; letter-spacing: -0.025em; color: #fff !important; font-variant-numeric: tabular-nums; }
.ft-grid { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: 40px var(--gap); padding-block: 48px; }
.ft-label { color: #fff; font-weight: 600; margin-bottom: 14px; font-size: .9375rem; }
.ft-label a { color: #fff !important; }
.ft-col ul li + li { margin-top: 8px; }
.ft-col--palv ul { columns: 2; column-gap: var(--gap); }
.ft-col--palv ul li { break-inside: avoid; }
.ft-contact li { overflow-wrap: anywhere; }
.ft-contact .tel-link { color: #fff; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line-dk); font-size: .8125rem; color: rgba(255, 255, 255, .55); }
.ft-bottom a { text-decoration: underline; }
.ft-logos { display: flex; align-items: center; gap: 16px; }
.ft-autofit { width: 40px; height: auto; }
.ft-flag { width: 80px; height: auto; border-radius: 4px; }
@media (max-width: 899px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .ft-col--palv { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 479px) {
  .ft-grid { grid-template-columns: 1fr; }
  .ft-col--palv ul { columns: 1; }
}

/* ------------------------------------------------------------------ mobiilin soittopalkki */
.callbar { display: none; }
@media (max-width: 899px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .98); border-top: 1px solid var(--line);
  }
  .callbar .btn { min-height: 46px; padding: 0 12px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* Revdot-kupla soittopalkin ylapuolelle (vain pienennettyna; avattuna top:0 ja korkeus 100vh voittavat) */
  #revdot-widget-iframe { bottom: calc(66px + env(safe-area-inset-bottom)) !important; }
}

/* ------------------------------------------------------------------ reveal */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* blogikuvan korkeus maltilliseksi isoilla ruuduilla */
.post-figure { max-width: none !important; }
.post-img { aspect-ratio: 16 / 8; object-fit: cover; max-height: 600px; }
@media (max-width: 639px) { .post-img { aspect-ratio: 4 / 3; } }

/* ------------------------------------------------------------------ breakpoint-korjaukset */
/* leveä alavalikko ei saa levittää sivua kapealla desktopilla */
@media (min-width: 1024px) { .sub--wide { left: auto; right: -64px; } }

/* 360 px: header mahtuu */
@media (max-width: 400px) {
  .hdr { gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { height: 24px; }
  .brand-name { font-size: .875rem; max-width: 7em; }
  .hdr-actions { gap: 2px; }
  .burger { width: 40px; }
}

/* pitkät otsikot pysyvät max 3 rivissä puhelimella */
@media (max-width: 639px) {
  :root { --fs-h1-sub: clamp(1.875rem, 1.2rem + 3vw, 2.5rem); }
  .statement-title { font-size: clamp(1.5rem, 1.1rem + 2vw, 2rem); }
}
.side-statement--long { font-size: 1.0625rem; line-height: 1.45; font-weight: 600; }

/* puhelin vaakatasossa: hero tiiviiksi, napit ensimmäiseen näkymään */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-inner { padding-top: calc(var(--hdr) + 20px); padding-bottom: 24px; }
  .hero-title { font-size: 2.125rem; }
  .hero-lead { margin-top: 12px; font-size: .9375rem; line-height: 1.45; max-width: 46rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn--lg { min-height: 46px; }
}

/* isot näytöt: maltillinen skaalaus */
@media (min-width: 2400px) { :root { --z: 1.35; } body { zoom: 1.35; } }
@media (min-width: 3200px) { :root { --z: 1.9; } body { zoom: 1.9; } }
@media (max-width: 639px) { .post-title { font-size: 1.75rem; } }
@media (max-width: 400px) { .post-title { font-size: 1.625rem; } }
/* zoomatuilla isoilla ruuduilla pienet kuvat eivät veny yli natiivikoon */
@media (min-width: 2400px) { img[style*="--w"] { max-width: min(100%, calc(var(--w) / 1.35)) !important; } }
@media (min-width: 3200px) { img[style*="--w"] { max-width: min(100%, calc(var(--w) / 1.9)) !important; } }
@media (max-width: 1023px) { .values-logos { display: none; } }

/* mobiilin soittopalkki: etusivulla piilossa heron ajan, liukuu esiin kun hero on ohitettu (Alex 21.10.2026) */
@media (max-width: 899px) {
  .callbar { transition: transform 360ms var(--ease), visibility 0s; }
  .js body[data-page="index"]:not(.callbar-on) .callbar { transform: translateY(105%); visibility: hidden; transition: transform 360ms var(--ease), visibility 0s 360ms; }
  .js body[data-page="index"]:not(.callbar-on) #revdot-widget-iframe { bottom: env(safe-area-inset-bottom) !important; }
}
@media (max-width: 639px) {
  .js body[data-page="index"] .hero { min-height: 100svh; }
}
.visit .contact-rows { margin-top: 4px; }
/* mobiilin yläpalkissa vain logo ja valikko; Varaa aika on alapalkissa ja avatussa valikossa (Alex 21.10.2026) */
@media (max-width: 1023px) { .hdr-actions .btn--sm { display: none; } }
.values-media .frame { background: transparent; }
.values-media .frame img { margin-inline: auto; border-radius: var(--r); }

/* Evästekäytäntö: taulukot (go live 2026-11-02) */
.table-scroll { overflow-x: auto; margin-block: 12px 28px; -webkit-overflow-scrolling: touch; }
.prose--legal table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .875rem; line-height: 1.45; }
.prose--legal th, .prose--legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line, rgba(0, 0, 0, .1)); }
.prose--legal th { font-weight: 600; }
.prose--legal code { font-size: .8125rem; overflow-wrap: anywhere; }

/* Footerin lakilinkit ja evästeasetukset */
.ft-legal { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-left: 12px; }
.ft-legal a { color: rgba(255, 255, 255, .7); }
