/* Fixaline. Arvot: UI/UX-kitti (pen/fixaline-ui-ux-ohjeisto.pen). */
:root {
  --page: #080808;
  --surface: #161616;
  --ink: #ffffff;
  --muted: #bdbdbd;
  --dark: #222222;
  --line: rgba(255, 255, 255, .2);
  --orange: #fe8402;
  --blue: #00a0e1;
  --cta-bg: var(--blue);
  --cta-ink: var(--dark);
  --cta-hover: #33b3e7;
  --send-bg: var(--orange);
  --send-ink: var(--dark);
  --bar-bg: var(--orange);
  --bar-ink: var(--dark);
  --float-bg: var(--blue);
  --float-ink: var(--dark);
  --focus: #ffffff;
  --radius: 5px;
  --tap: 48px;
  --head: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 4.5vw, 64px);
}

/* Inter 400 ja 500 (latin, woff2, Inter 4.001 kuten 600/700): ilman niitä selain lihavoi 400-tekstin 600-tiedostosta (T5.2.1). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-600.ttf") format("truetype"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Inter-700.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap; src: url("/assets/fonts/Roboto-400.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Roboto-600.ttf") format("truetype"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Roboto-700.ttf") format("truetype"); }

@property --w { syntax: "*"; inherits: false; }
@property --jc { syntax: "*"; inherits: false; }
@property --ai { syntax: "*"; inherits: false; }
@property --mh { syntax: "*"; inherits: false; }
@property --mhm { syntax: "*"; inherits: false; }
@property --bgi { syntax: "*"; inherits: false; }
@property --bgc { syntax: "*"; inherits: false; }
@property --fs { syntax: "*"; inherits: false; }
@property --fsm { syntax: "*"; inherits: false; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.55 var(--body); overflow-x: hidden; }
img, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding-left: 1.25em; }
hr { border: 0; height: 12px; width: 120px; margin: 0 auto 8px; background: var(--orange); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #000; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 0 var(--gutter); background: #000; }
.logo img { width: 176px; height: auto; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav__list > li { position: relative; display: flex; align-items: center; }
.nav__list > li > a { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 12px; font: 600 16px var(--head); text-decoration: none; }
.nav__list > li > a:hover { color: var(--orange); }
.nav__list > li > a.is-current, .nav__list > li > a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); }
.mega a[aria-current="page"], .drop a[aria-current="page"] { color: var(--orange); }
.ext { color: var(--blue); }
.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: var(--tap); margin-left: -8px; background: none; border: 0; color: inherit; cursor: pointer; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.mega, .drop { position: absolute; top: 100%; display: none; background: #111; padding: 24px; border-top: 3px solid var(--orange); }
.has-sub:hover > .mega, .has-sub:hover > .drop, .sub-toggle[aria-expanded="true"] ~ .mega, .sub-toggle[aria-expanded="true"] ~ .drop { display: flex; }
.mega { left: -120px; gap: 40px; width: max-content; }
.drop { right: 0; width: max-content; }
.mega ul, .drop ul { list-style: none; margin: 0; padding: 0; }
.mega li a, .drop li a { display: block; padding: 7px 0; text-decoration: none; }
.mega li a:hover, .drop li a:hover, .mega__title a:hover { color: var(--orange); }
.mega__title { margin: 0 0 8px; font: 700 17px var(--head); color: var(--orange); }
.mega__title a { text-decoration: none; }
.menu-toggle { display: none; width: var(--tap); height: var(--tap); padding: 12px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

/* Osiot: Elementorin säiliöt ilman sen kuorta */
.sec { position: relative; display: flex; gap: 32px; min-height: var(--mh, 0); padding: 56px max(var(--gutter), calc((100% - 1180px) / 2)); background-color: var(--bgc, transparent); overflow: hidden; }
.sec.col { flex-direction: column; }
/* --ov periytyy ::before-elementille. Oletus 0 estää sisäkkäisiä osioita perimästä ulomman tummennusta. */
.has-bg { --ov: 0; background-image: var(--bgi, none); background-size: cover; background-position: center; }
.has-bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #000; opacity: var(--ov, 0); pointer-events: none; }
.has-bg > * { position: relative; z-index: 2; }
.has-bg > .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.row, .col { display: flex; gap: 24px; min-width: 0; justify-content: var(--jc, flex-start); align-items: var(--ai, stretch); }
.row { flex-direction: row; }
.col { flex-direction: column; }
.row > .row, .row > .col { flex: 1 1 var(--w, 0); max-width: var(--w, none); min-width: 0; }
.row > figure, .row > .card { flex: 1 1 0; min-width: 0; }
.on-light { color: var(--dark); }

/* Teksti */
.h a { text-decoration: none; }
.h a:hover { color: var(--orange); }
.h { margin: 0; font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.015em; font-size: var(--fs, 28px); }
h1.h, .h--1 { font-size: var(--fs, 56px); }
h2.h { font-size: var(--fs, 36px); }
h3.h, h4.h { font-size: var(--fs, 24px); }
p.h { font-weight: 600; font-size: var(--fs, 20px); line-height: 1.4; letter-spacing: 0; }
.prose { font-size: var(--fs, 17px); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose a { color: var(--orange); }
.t-orange { color: var(--orange); }
.t-blue { color: var(--blue); }
.t-dark { color: var(--dark); }
.a-center { text-align: center; }
.a-right { text-align: right; }
.checks, .plain { margin: 0; padding: 0; list-style: none; }
.plain li { padding: 3px 0; }
.plain a { display: inline-block; padding: 8px 0; text-decoration: none; }
.plain a:hover { color: var(--orange); }
.checks li { padding: 6px 0 6px 34px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; background: url("/assets/fixaline-kaari.svg") center / contain no-repeat; }

/* CTA */
.cta { margin: 8px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 28px; border: 0; border-radius: var(--radius); background: var(--cta-bg); color: var(--cta-ink); font: 600 16px var(--head); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--cta-hover); }
.btn--send { min-width: 25%; background: var(--send-bg); color: var(--send-ink); border-radius: 0; }
.btn--send:hover { background: #ff9a33; }
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: 24px; background: var(--float-bg); color: var(--float-ink); font: 600 16px var(--head); text-decoration: none; }

/* Kuvat ja tuotteet */
.pic, .video, .map, .spots { margin: 0; }
.pic img { width: 100%; }
.video { border: 4px solid var(--blue); width: 100%; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.map iframe { width: 100%; height: 420px; border: 0; }
.embed { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 9; padding: 16px; background: #111 url("/assets/fixaline-kaari.svg") center 30% / 56px no-repeat; color: var(--ink); font: 600 16px var(--head); text-align: center; text-decoration: underline; }
.map .embed { aspect-ratio: auto; height: 220px; }
.spots { position: relative; }
.spots img { width: 100%; }
.spot { position: absolute; width: 20px; height: 20px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--blue); cursor: pointer; }
.spot span { display: block; position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 8px 12px; background: #fff; color: #111; font: 400 14px/1.4 var(--body); text-align: left; z-index: 3; }
/* The label stays in the accessibility tree (it is the button's name, WCAG 4.1.2) and is only shown on hover or focus. */
.spot:not(:hover):not(:focus) span { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.card { min-width: 0; }
.card__link { display: block; text-decoration: none; }
.card img { width: 100%; }
.card__name { margin: 12px 0 0; font: 700 20px/1.2 var(--head); text-align: center; }
.card__link:hover .card__name { color: var(--orange); }
.card__text { margin: 8px 0 0; text-align: center; }
.specs { margin: 0; width: 100%; }
.specs > div { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 16px/1.4 var(--head); }
.specs dd { margin: 0; color: var(--muted); }
.carousel-wrap { position: relative; width: 100%; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.slide img { max-height: 480px; width: auto; margin: 0 auto; }
.car-btn { position: absolute; top: 45%; width: var(--tap); height: var(--tap); background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; z-index: 2; }
.car-btn--prev { left: 0; }
.car-btn--next { right: 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery img { width: 100%; }
.icon svg { width: 40px; height: 40px; fill: currentColor; }

/* Lomake */
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 40px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--wide { grid-column: span 2; }
.field label { font: 600 14px var(--head); }
.field input, .field textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; background: #101010; border: 0; border-bottom: 1.5px solid var(--muted); color: var(--ink); font: 400 16px var(--body); }
.field input:focus, .field textarea:focus { outline: 0; border-bottom: 3px solid var(--blue); }
.form .cta { grid-column: 1 / -1; }

/* Vanha WordPressin alapalkki (koti, kauppa, puhelin) peitti sisältöä, eikä pen.devin mallissa ole sitä (T5.2.1).
   Sisältö jää EmDashiin, mutta palkkia ei näytetä millään leveydellä. */
.bottom-panel { display: none !important; }
.page-text .prose { max-width: 760px; }
.page-text .prose h2 { font: 700 24px/1.2 var(--head); margin: 32px 0 8px; }

/* Footer */
.site-footer { background: #000; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 64px var(--gutter); }
.foot__intro img { width: 176px; height: auto; margin-bottom: 20px; }
.foot__intro p { margin: 0 0 12px; }
.foot__social { display: flex; gap: 4px; }
.foot__social a { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); }
.foot__col h2 { margin: 0 0 12px; color: var(--orange); font: 600 20px var(--head); }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col li a { display: block; padding: 5px 0; text-decoration: none; }
.foot__col li a:hover { color: var(--orange); }
.foot__col p { margin: 12px 0 0; }
.foot__powered a { display: inline-block; padding: 12px 6px; margin: -12px -6px; }
.foot__bar { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 24px; padding: 14px var(--gutter); background: var(--bar-bg); color: var(--bar-ink); font-size: 15px; }

/* Laitekohtaiset näkyvyydet: nykysivun Elementor-rajat */
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .site-header { min-height: 72px; flex-wrap: wrap; }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); }
  .nav__list > li > a { min-height: 56px; font-size: 18px; flex: 1; padding: 0; }
  .sub-toggle { width: 56px; height: 56px; margin: 0; }
  .has-sub:hover > .mega, .has-sub:hover > .drop { display: none; }
  .mega, .drop { position: static; width: 100%; padding: 8px 0 16px; border-top: 0; background: none; }
  .sub-toggle[aria-expanded="true"] ~ .mega, .sub-toggle[aria-expanded="true"] ~ .drop { display: block; }
  .mega__col + .mega__col { margin-top: 16px; }
}
@media (max-width: 1024px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__intro { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .sec { padding: 48px var(--gutter); gap: 24px; min-height: var(--mhm, 0); }
  .row:not(.m-row) { flex-direction: column; }
  .m-row { flex-wrap: wrap; }
  .m-row > * { min-width: 40%; }
  .row > .row, .row > .col { flex: 0 0 auto; max-width: none; width: 100%; }
  .h { font-size: var(--fsm, min(var(--fs, 26px), 26px)); }
  h1.h, .h--1 { font-size: var(--fsm, min(var(--fs, 40px), clamp(30px, 9vw, 40px))); }
  h2.h { font-size: var(--fsm, min(var(--fs, 30px), clamp(26px, 7.7vw, 30px))); }
  h3.h, h4.h { font-size: var(--fsm, min(var(--fs, 20px), 20px)); }
  p.h { font-size: var(--fsm, min(var(--fs, 18px), 18px)); }
  .prose { font-size: var(--fsm, 16px); }
  .btn { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .map iframe { height: 300px; }
  .foot { grid-template-columns: 1fr; gap: 32px; padding: 48px var(--gutter); }
  .float-contact { right: 12px; bottom: 68px; }
  .site-footer { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  * { scroll-behavior: auto !important; }
}

/* Kelluva yhteyspainike ei saa peittää footer-palkin tekstiä tai linkkiä. */
@media (max-width: 1024px) {
  .foot__bar { flex-direction: column; padding-bottom: 76px; }
}

/* UI/UX-korjaukset 10.11.2026 (ledger T4.1). */

/* Elementorin kiinteät korkeudet jättivät osioiden väliin tyhjää. Taustakuvalliset osiot säilyttävät korkeutensa. */
@media (min-width: 768px) {
  .sec:not(.has-bg) { min-height: 0; }
}

/* Valikkopainike näyttää tilansa, ja auki oleva valikko vierittyy puhelimella. */
.menu-toggle span { transition: transform .15s ease, opacity .15s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 767px) {
  .site-header:has(.nav.is-open) { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}

/* Kelluva yhteyspainike ei peitä tekstiä puhelimella: pelkkä kuvake, teksti ruudunlukijalle. */
.float-contact:hover { background: var(--cta-hover); }
@media (max-width: 767px) {
  .float-contact { bottom: 16px; width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .float-contact svg { width: 24px; height: 24px; }
  .float-contact__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-footer { padding-bottom: 0; }
  .foot__bar { padding-bottom: 84px; }
}

/* Tuotekortit: kuva nousee ja nimi oranssiksi osoittimen alla. */
.card img { transition: transform .2s ease; }
.card__link:hover img, .card__link:focus-visible img { transform: translateY(-6px); }

/* Karusellin painikkeet näkyvät kuvan päällä ja täyttävät kosketusalan. */
.car-btn { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(0, 0, 0, .55); font-size: 28px; }
.car-btn:hover { border-color: var(--orange); color: var(--orange); }

/* Video ladataan vasta klikkauksesta: selvä toistopainike logon kaaren värissä. */
.embed { flex-direction: column; gap: 16px; background-image: none; text-decoration: none; }
.embed::before { content: ""; width: 76px; height: 76px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23222'/%3E%3C/svg%3E") 56% 50% / 34px no-repeat; transition: transform .15s ease; }
.embed:hover::before, .embed:focus-visible::before { transform: scale(1.06); }
.embed:hover { text-decoration: underline; }

/* FIXER-vertailu ja putkikokovalitsin (src/lib/compare.ts). */
.fit { gap: 28px; padding-top: 16px; }
.fit__head { max-width: 760px; }
.fit__head .h { position: relative; padding-top: 30px; }
.fit__head .h::before { content: ""; position: absolute; left: 0; top: 0; width: 44px; height: 22px; background: url("/assets/fixaline-kaari.svg") left top / contain no-repeat; }
.fit__intro { margin: 12px 0 0; color: var(--muted); }
.fit__pick { flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.fit__pick:not([hidden]) { display: flex; }
.fit__pick label { font: 600 16px var(--head); }
.fit__pick select { min-height: var(--tap); min-width: 180px; padding: 0 40px 0 14px; background: #101010 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") right 12px center / 18px no-repeat; border: 0; border-bottom: 1.5px solid var(--muted); border-radius: 0; color: var(--ink); font: 600 17px var(--head); appearance: none; cursor: pointer; }
.fit__pick select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-bottom-color: var(--blue); }
.fit__result { flex-basis: 100%; margin: 0; min-height: 1.55em; color: var(--ink); font-weight: 600; }
.fit__chart { margin: 0; padding: 24px; background: var(--surface); }
.fit__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fit__bar, .fit__axis { display: grid; grid-template-columns: 128px 1fr 112px; align-items: center; gap: 16px; }
.fit__name { font: 700 16px var(--head); text-decoration: none; }
.fit__name:hover { color: var(--orange); text-decoration: underline; }
.fit__track { position: relative; height: 14px; background: #262626; }
.fit__range { position: absolute; top: 0; bottom: 0; background: var(--blue); border-radius: 4px; transition: background-color .15s ease, opacity .15s ease; }
.fit__value { color: var(--muted); font: 600 15px var(--head); font-variant-numeric: tabular-nums; }
.fit__axis { margin-top: 10px; color: var(--muted); font-size: 13px; }
.fit__scale { grid-column: 1; }
.fit__ticks { position: relative; height: 18px; }
.fit__ticks span { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.fit__track::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: var(--sel, 0); width: 2px; margin-left: -1px; background: var(--orange); opacity: 0; }
.fit[data-dn] .fit__track::after { opacity: 1; }
.fit[data-dn] .fit__bar:not(.is-fit) .fit__range { opacity: .3; }
.fit[data-dn] .fit__bar.is-fit .fit__range { background: var(--orange); }
.fit[data-dn] .fit__bar:not(.is-fit) .fit__name, .fit[data-dn] .fit__bar:not(.is-fit) .fit__value { color: #8a8a8a; }
.fit__scroll { width: 100%; overflow-x: auto; }
.fit__scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fit__table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.fit__table th, .fit__table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fit__table thead th { border-bottom: 2px solid var(--line); font: 700 16px var(--head); }
.fit__table thead a { text-decoration: none; }
.fit__table thead a:hover { color: var(--orange); }
.fit__table tbody th { width: 170px; font: 600 14px/1.4 var(--head); color: var(--muted); }
.fit__table td { color: var(--ink); }
.fit__table tbody th, .fit__table thead th:first-child { position: sticky; left: 0; background: var(--page); }
.fit[data-dn] .fit__table .is-out { opacity: .4; }
.fit[data-dn] .fit__table thead th.is-in { box-shadow: inset 0 3px 0 var(--orange); }
@media (max-width: 767px) {
  .fit__chart { padding: 16px; }
  .fit__bar { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .fit__track { grid-column: 1 / -1; grid-row: 2; }
  .fit__axis { grid-template-columns: 1fr; }
  .fit__scale { display: none; }
  .fit__table tbody th { width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle span, .card img, .embed::before, .fit__range { transition: none; }
  .card__link:hover img, .card__link:focus-visible img { transform: none; }
}

/* Yhteydenottosivu: yhteystavat korteiksi, lomake omaksi osiokseen, karttapainikkeeseen sijaintikuvake. */
.contact { gap: 32px; }
.contact__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
.contact__card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px; background: var(--surface); }
.contact__icon { width: 28px; height: 28px; margin-bottom: 10px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linejoin: round; }
.contact__label { margin: 0; color: var(--muted); font: 600 15px var(--head); }
.contact__value { display: inline-flex; align-items: center; min-height: var(--tap); font: 700 clamp(20px, 2vw, 24px)/1.2 var(--head); text-decoration: none; overflow-wrap: anywhere; }
.contact__value:hover { color: var(--orange); text-decoration: underline; }
.contact__address { margin: 6px 0 0; font: 600 18px/1.5 var(--head); font-style: normal; }
.contact__dir { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--blue); font: 600 16px var(--head); }
.contact__dir:hover { color: var(--cta-hover); }
.contact__copy { min-height: 40px; margin-top: auto; padding: 0 14px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: 600 14px var(--head); cursor: pointer; }
.contact__copy:hover { border-color: var(--orange); color: var(--orange); }
.contact__copy.is-done { border-color: var(--orange); color: var(--orange); }
.contact-form { gap: 24px; padding-top: 0; }
.map .embed::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z' fill='none' stroke='%23222' stroke-width='2'/%3E%3Ccircle cx='12' cy='10' r='2.5' fill='%23222'/%3E%3C/svg%3E"); background-position: center; background-size: 32px; }
@media (max-width: 900px) {
  .contact__cards { grid-template-columns: 1fr; gap: 12px; }
  .contact__card { display: grid; grid-template-columns: 26px 1fr; column-gap: 14px; row-gap: 0; align-items: center; padding: 16px 18px; }
  .contact__icon { width: 26px; height: 26px; margin: 0; }
  .contact__card > :not(.contact__icon) { grid-column: 2; justify-self: start; }
  .contact__value { font-size: 20px; }
  .contact__address { margin: 0; font-size: 17px; }
  .contact__copy { margin-top: 2px; }
}

/* Liikesivujen galleria: tasaiset esikatselukuvat ja katseluikkuna (site.js). */
.gallery { width: 100%; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.gallery__item { display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr 1fr; gap: 6px; } }
.viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .94); color: var(--ink); }
.viewer::backdrop { background: rgba(0, 0, 0, .7); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
.viewer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); }
.viewer__count { font: 600 15px var(--head); color: var(--muted); font-variant-numeric: tabular-nums; }
.viewer__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 var(--gutter); }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__caption { margin: 0; padding: 12px var(--gutter) 20px; text-align: center; color: var(--muted); }
.viewer__nav { display: flex; gap: 8px; }
.viewer button { display: inline-flex; align-items: center; justify-content: center; width: var(--tap); height: var(--tap); border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.viewer button:hover { border-color: var(--orange); color: var(--orange); }
@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
  .gallery__item:hover img, .gallery__item:focus-visible img { transform: none; }
}

/* Lomakkeen tilaviesti ja uutislista. */
.form-note { margin: 0 0 16px; padding: 12px 16px; background: var(--surface); border-left: 4px solid var(--orange); }
.news-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; width: 100%; }
.news-list a { text-decoration: none; }
.news-list a:hover { color: var(--orange); }

/* Yhteystiedot-sivu (pen: Yhteystiedot · 1440 ja · 390). */
.reach { align-items: flex-start; gap: 64px; padding-top: 88px; padding-bottom: 88px; border-bottom: 1px solid var(--line); }
.reach__main { flex: 1 1 0; display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.reach__title, .people__title { position: relative; padding-top: 28px; }
.reach__title::before, .people__title::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 8px; background: var(--orange); }
.reach__title { font-size: clamp(40px, 5vw, 64px); }
.reach__sales { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.reach__label { margin: 0 0 8px; color: var(--muted); font: 400 16px var(--body); }
.reach__big { display: inline-flex; align-items: center; gap: 16px; min-height: 56px; font: 700 clamp(24px, 3vw, 36px)/1.15 var(--head); letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; }
.reach__big:hover { color: var(--orange); }
.reach__icon { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linejoin: round; }
.reach__links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; }
.reach__links a, .reach__dir { display: inline-flex; align-items: center; min-height: var(--tap); font: 600 16px var(--head); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.reach__links a:hover, .reach__dir:hover { color: var(--orange); }
.reach__store { flex: 0 0 min(440px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px; background: var(--surface); border-radius: var(--radius); }
.reach__store-title { margin: 0; font: 700 28px/1.2 var(--head); letter-spacing: -.015em; }
.reach__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.reach__rows li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; align-items: start; }
.reach__rows address, .reach__rows p { margin: 0; font: 400 17px/1.5 var(--body); font-style: normal; }
.reach__rows a { font-weight: 600; text-decoration: none; }
.reach__rows a:hover { color: var(--orange); text-decoration: underline; }
.reach__row-icon { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.reach__muted { color: var(--muted); }
.open { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px; font: 400 15px var(--body); }
.open[hidden] { display: none; }
.open__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.open.is-open .open__dot { background: var(--orange); }
.people { gap: 40px; padding-top: 88px; padding-bottom: 96px; }
.people__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; }
.person { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.person__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%; }
.person__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; }
.person__name { margin: 0; font: 700 22px/1.2 var(--head); letter-spacing: -.01em; }
.person__role { margin: 0; font: 400 16px/1.4 var(--body); }
.person__edu { margin: 0; color: var(--muted); font: 400 14px/1.4 var(--body); }
.person__links { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; }
.person__links a { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; font: 600 16px var(--body); text-decoration: none; overflow-wrap: anywhere; }
.person__links a:hover { color: var(--orange); text-decoration: underline; }
.person__icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 1.8; stroke-linejoin: round; }
.person__alt { align-self: flex-start; color: var(--muted); font: 400 13px/1.4 var(--body); text-decoration: none; overflow-wrap: anywhere; }
.person__alt:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 1100px) {
  .people__list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .person { flex-direction: row; }
  .person__img { flex: 0 0 120px; width: 120px; aspect-ratio: auto; align-self: stretch; min-height: 176px; }
  .person__body { padding: 16px 16px 16px 18px; gap: 2px; min-width: 0; }
  .person__name { font-size: 19px; }
  .person__role, .person__edu { font-size: 14px; }
  .person__links { margin-top: 6px; padding-top: 4px; border-top: 0; }
  .person__links a { font-size: 15px; }
}
@media (max-width: 900px) {
  .reach { flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
  .reach__store { flex-basis: auto; width: 100%; padding: 24px; }
  .people { gap: 24px; padding-top: 48px; padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .people__list { grid-template-columns: 1fr; }
  .person__img { flex-basis: 104px; width: 104px; min-height: 156px; }
  .person__body { padding: 14px 14px 14px 16px; }
  .person__name { font-size: 18px; }
}
