@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); }
/* Condensed näkyy vain puhelinnumeroissa ja vaiheiden numeroissa: ladataan vain numerot (6 kt), muut merkit tulevat Barlowsta */
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-700-numerot.woff2') format('woff2'); unicode-range: U+0020, U+002B, U+002D, U+0030-0039; }

/* Päävärit: tummansininen ja valkoinen. Tehosteväri (oranssi) vain tärkeimmissä napeissa. */
:root {
  --navy: #0f2d52; --navy-2: #173d6b; --deep: #0a2040;
  --blue: #1f63b5; --blue-soft: #e8f0fb; --sky: #f4f8fd;
  --amber: #f5a524; --amber-2: #e8940f;
  --paper: #fff; --line: #dde5ee; --line-d: rgba(255,255,255,.15);
  --ink: #13243a; --ink-2: #3a4a5e; --ink-3: #5c6b7e; --on-dark: #c9d7ea;
  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --cond: 'Barlow Condensed', 'Barlow', 'Arial Narrow', sans-serif;
  --r: 10px;
  /* Sivureunus: vähintään 1,25rem, vaakatilassa lovi (safe-area) huomioiden */
  --gx: max(1.25rem, env(safe-area-inset-left), env(safe-area-inset-right));
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2 { font-weight: 700; letter-spacing: -.022em; line-height: 1.06; }
h1 { font-size: clamp(2.6rem, 1.5rem + 4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.3vw, 3rem); max-width: 22ch; }
h3 { font-size: 1.18rem; font-weight: 600; line-height: 1.3; }
p { color: var(--ink-2); max-width: 64ch; }
/* Fokus: sininen vaalealla taustalla, oranssi tummalla (kontrasti vähintään 3:1 molemmissa) */
:focus-visible { outline: 3px solid var(--focus, var(--blue)); outline-offset: 3px; }
.top, .hero, .dark, footer, .callbar, .lb { --focus: var(--amber); }
form { --focus: var(--blue); }
.skip { position: absolute; left: 12px; top: -80px; background: var(--amber); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gx), 1160px); margin-inline: auto; }
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.lead { font-size: 1.25rem; line-height: 1.55; }
.sky { background: var(--sky); }
.dark { background: var(--navy); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--on-dark); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
@media (max-width: 820px) { .head { grid-template-columns: 1fr; } }

/* Napit: oranssi vain tärkeimpiin toimintoihin */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .85rem 1.5rem; border-radius: 8px; border: 2px solid transparent; font: 600 1.05rem/1.2 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(245,165,36,.7); }
.btn-xl { min-height: 62px; padding: 1rem 2rem; font-size: 1.2rem; font-weight: 700; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
/* Hover-tehosteet vain hiirelle: kosketusnäytöllä ne jäisivät napautuksen jälkeen päälle */
@media (hover: hover) {
  .btn-amber:hover { background: var(--amber-2); }
  .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.07); }
  .btn-navy:hover { background: var(--navy-2); }
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: default; }

/* Yläpalkki */
/* Ei backdrop-filteriä: 97 % peittävän taustan alla sumennus ei näy, mutta kuormittaa GPU:ta jokaisella vierityksellä */
.top { position: sticky; top: 0; z-index: 50; background: rgba(15,45,82,.97); border-bottom: 1px solid var(--line-d); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.logo { display: flex; align-items: center; min-height: 44px; gap: .7rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.mark { width: 38px; height: 38px; border-radius: 9px; background: #fff; display: grid; place-items: center; flex: none; }
.mark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 2rem; list-style: none; padding: 0; }
.nav a { display: block; padding: .75rem 0; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 1rem; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav a[aria-current] { text-decoration: underline 2px #fff; text-underline-offset: 8px; }
.actions { display: flex; align-items: center; gap: .5rem; }
.top .btn { min-height: 44px; padding: .55rem 1.1rem; font-size: 1rem; box-shadow: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--line-d); background: transparent; color: #fff; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .x, .top.open .menu-btn .bars { display: none; }
.top.open .menu-btn .x { display: block; }
@media (max-width: 1100px) {
  .menu-btn { display: grid; }
  /* Valikko vierittyy itse, jos se ei mahdu näyttöön (esim. puhelin vaakatilassa) */
  .nav { display: none; position: absolute; left: 0; right: 0; top: 70px; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-d); padding: .25rem var(--gx) 1rem; box-shadow: 0 24px 40px -20px rgba(0,0,0,.5); }
  .top.open .nav { display: flex; }
  .nav a { display: block; padding: .95rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line-d); }
  .nav a[aria-current] { text-decoration: none; }
}
@media (max-width: 480px) { .top .btn span { display: none; } .top .btn { width: 44px; padding: 0; } .logo { font-size: 1.1rem; } }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(86vh, 780px); min-height: min(86svh, 780px); background: var(--navy); color: #fff; }
.hero-text { display: flex; align-items: center; padding: 4.5rem 3rem 4.5rem max(var(--gx), calc((100vw - 1160px) / 2)); }
.hero-text .in { max-width: 34rem; }
.who { color: var(--on-dark); font-weight: 400; margin-bottom: 1.3rem; }
.hero .lead { color: var(--on-dark); margin-top: 1.4rem; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; margin-top: 2.3rem; }
.hero-img { position: relative; margin: 0; min-height: 320px; overflow: hidden; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 58%; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0, rgba(15,45,82,0) 22%); pointer-events: none; }
.hero-img figcaption { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 1; padding: .45rem .8rem; border-radius: 6px; background: rgba(10,32,64,.75); backdrop-filter: blur(6px); color: #fff; font-size: .88rem; }
.hero-text .in > * { animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.hero-text .in > :nth-child(2) { animation-delay: .08s; } .hero-text .in > :nth-child(3) { animation-delay: .16s; } .hero-text .in > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  /* svh: korkeus ei hypi, kun mobiiliselaimen osoitepalkki piiloutuu vierittäessä */
  .hero-img { order: -1; height: 32vh; height: 32svh; min-height: 210px; max-height: 400px; }
  .hero-img::after { background: linear-gradient(0deg, var(--navy) 0, rgba(15,45,82,0) 35%); }
  .hero-img figcaption { top: 1rem; bottom: auto; right: var(--gx); }
  .hero-text { padding: 1rem var(--gx) 3.5rem; }
}
@media (max-width: 520px) { .cta .btn { flex: 1 1 100%; } .lead { font-size: 1.12rem; } }

/* Miten voin auttaa? */
.help { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.help a { display: flex; flex-direction: column; height: 100%; padding: 1.8rem 1.6rem 1.7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
@media (hover: hover) { .help a:hover { border-color: #b9cde6; box-shadow: 0 18px 36px -22px rgba(15,45,82,.45); transform: translateY(-2px); } }
.help a:active { border-color: #b9cde6; }
.help .ic { width: 60px; height: 60px; border-radius: 14px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 1.3rem; }
.help .ic svg { width: 30px; height: 30px; }
.help h3 { font-size: 1.22rem; }
.help p { margin-top: .5rem; font-size: 1.02rem; }
.help .more { margin-top: auto; padding-top: 1.2rem; font-weight: 600; font-size: 1rem; color: var(--blue); }
.also { margin-top: 2rem; padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--sky); font-size: 1.02rem; max-width: none; }
.also b { color: var(--ink); }
.area { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.4rem; color: var(--ink-3); font-size: 1rem; }
.area ul { display: contents; list-style: none; }
.area li { padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-weight: 400; }
@media (max-width: 1000px) { .help { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .help { grid-template-columns: 1fr; gap: .8rem; }
  .help a { display: grid; grid-template-columns: 52px 1fr; gap: 0 1rem; padding: 1.3rem 1.2rem; }
  .help .ic { grid-row: span 3; width: 52px; height: 52px; margin: 0; }
  .help .ic svg { width: 26px; height: 26px; }
  .help p { margin-top: .3rem; }
  .help .more { padding-top: .6rem; }
}

/* Miksi valita */
.badges { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.badges li { padding: 1.6rem 1.5rem; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.badges .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; margin-bottom: 1.1rem; }
.badges .ic svg { width: 26px; height: 26px; }
.badges h3 { font-size: 1.15rem; }
.badges p { margin-top: .45rem; font-size: 1rem; }
.badges a { font-weight: 600; }
.stars { color: var(--amber-2); letter-spacing: .08em; }
.work { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 5vw, 4rem); margin-top: clamp(3.5rem, 7vw, 5rem); align-items: start; }
.work h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
.work .sub { margin-top: .8rem; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 2.4rem; }
.checks li { position: relative; padding-left: 46px; }
.checks h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
.checks p { margin-top: .3rem; font-size: 1rem; }
.checks .ok { position: absolute; left: 0; top: -3px; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.checks .ok svg { width: 16px; height: 16px; }
.quote { margin-top: clamp(3.5rem, 7vw, 5rem); padding: clamp(2rem, 5vw, 3.2rem); border-radius: var(--r); background: var(--navy); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; }
.quote svg { width: 42px; height: 42px; color: #7fb0ea; }
.quote blockquote { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: #fff; max-width: 30ch; }
.quote p { margin-top: 1rem; font-size: 1.08rem; color: var(--on-dark); }
@media (max-width: 1000px) { .badges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .work { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .badges, .checks { grid-template-columns: 1fr; }
  .badges { gap: .8rem; }
  .badges li { display: grid; grid-template-columns: 48px 1fr; gap: 0 1rem; padding: 1.2rem; }
  .badges .ic { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
  .badges .ic svg { width: 22px; height: 22px; }
  .badges p { margin-top: .3rem; }
  .quote { grid-template-columns: 1fr; }
}

/* Saaristo ja kalusto */
.isle .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.isle figure { margin: 0; }
.isle img { width: 100%; height: auto; border-radius: var(--r); }
.isle figcaption { margin-top: .6rem; font-size: .92rem; color: var(--on-dark); }
.isle-main img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.isle-text .lead { margin-top: 1.2rem; }
.isle-text .lead + p { margin-top: 1rem; }
.isle-small { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; max-width: 460px; }
.isle-small img { aspect-ratio: 1; object-fit: cover; }
.isle .btn { margin-top: 2rem; }
@media (max-width: 900px) { .isle .wrap { grid-template-columns: 1fr; } .isle-main { max-width: 480px; } .isle-main img { aspect-ratio: 4 / 3; } }

/* Työnäytteet */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery button { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--navy); cursor: zoom-in; font: inherit; text-align: left; }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.gallery span { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(transparent, rgba(10,32,64,.85)); color: #fff; font-weight: 600; font-size: 1rem; }
.gallery button:focus-visible img { transform: scale(1.06); }
@media (hover: hover) { .gallery button:hover img { transform: scale(1.06); } }
.gallery button:focus-visible { outline-offset: 3px; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; gap: .8rem; } }
@media (max-width: 480px) { .gallery span { font-size: .88rem; padding: 1.6rem .7rem .6rem; } }

/* Kuvan suurennus */
/* margin: auto keskittää modaalin (yleinen * { margin: 0 } -nollaus poisti selaimen oletuksen) */
.lb { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; max-height: 92dvh; overflow: visible; touch-action: pan-y pinch-zoom; }
.lb::backdrop { background: rgba(6,18,36,.88); }
.lb[open] { animation: lb-in .3s cubic-bezier(.2,.8,.2,1); }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } }
.lb figure { margin: 0; }
.lb img { display: block; max-width: min(92vw, 900px); max-height: 82vh; max-height: 82dvh; width: auto; height: auto; border-radius: var(--r); }
.lb figcaption { margin-top: .7rem; color: #fff; font-weight: 600; text-align: center; }
.lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.lb button svg { width: 22px; height: 22px; }
.lb-close { top: -16px; right: -16px; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: -24px; } .lb-next { right: -24px; }
@media (max-width: 600px) { .lb-close { top: 8px; right: 8px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

/* Tekijä */
.maker .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; border-radius: var(--r); }
.shot figcaption { margin-top: .75rem; font-size: .92rem; color: var(--ink-3); }

.maker .shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 20%; box-shadow: 0 30px 60px -34px rgba(15,45,82,.55); }
.letter .lead { margin-top: 1.3rem; }
.letter .lead + p { margin-top: 1rem; }
.motto { margin-top: 1.6rem; padding-left: 1.1rem; border-left: 4px solid var(--blue); font-size: 1.3rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.sign { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.6rem; }
.sign svg { width: 150px; height: auto; color: var(--navy); flex: none; }
.sign path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.js .sign path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .sign.in path { animation: draw .6s var(--s, 0s) ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sign p { font-size: .98rem; line-height: 1.4; color: var(--ink-3); }
.sign b { color: var(--ink); font-weight: 600; }
.letter .btn { margin-top: 2rem; }
@media (max-width: 900px) { .maker .wrap { grid-template-columns: 1fr; } .maker .shot { max-width: 480px; } }

/* Turvallisuus */
.safety .lead { margin-top: 1.2rem; }
.warn { padding: 1.5rem 1.6rem; border-radius: var(--r); background: var(--navy-2); border-left: 4px solid #7fb0ea; }
.warn p { margin-top: .5rem; font-size: 1.02rem; }
.warn b { color: #fff; font-weight: 600; }
.risks { list-style: none; padding: 2.4rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.2rem; border-top: 1px solid var(--line-d); }
.risks li { position: relative; padding-left: 42px; }
.risks svg { position: absolute; left: 0; top: 0; width: 26px; height: 26px; color: #7fb0ea; }
.risks p { margin-top: .3rem; font-size: 1rem; }
@media (max-width: 1000px) { .risks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .risks { grid-template-columns: 1fr; } }

/* Työn kulku */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 24px; right: 12%; top: 23px; height: 2px; background: var(--line); }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.2rem; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.35rem/1 var(--cond); box-shadow: 0 0 0 6px var(--paper); }
.steps p { margin-top: .4rem; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .steps::before { left: 23px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto; }
  .steps li { display: grid; grid-template-columns: 48px 1fr; gap: 0 1.1rem; }
  .steps li::before { margin: 0; grid-row: span 2; }
}

/* Usein kysyttyä */
.faq .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-lead { margin-top: 1.2rem; }
.faq-lead a { color: var(--ink); font-weight: 600; white-space: nowrap; }
.qa { background: var(--paper); border-radius: var(--r); padding: .4rem 1.6rem; border: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:last-child { border-bottom: 0; }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(var(--blue), var(--blue)) center / 12px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 12px no-repeat, var(--blue-soft); }
.qa details[open] summary::after { background: linear-gradient(#fff, #fff) center / 12px 2px no-repeat, var(--blue); }
@media (hover: hover) { .qa summary:hover { color: var(--blue); } }
.qa details p { padding: 0 2.5rem 1.3rem 0; font-size: 1.02rem; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; } .qa { padding: .2rem 1.1rem; } }

/* Yhteydenotto */
.contact .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact .lead { margin-top: 1.2rem; }
.big-contact { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.big-contact small { display: block; color: var(--on-dark); font-size: .95rem; margin-bottom: .1rem; }
.big-contact a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 700; overflow-wrap: anywhere; }
.big-contact a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.big-contact .tel { font: 700 clamp(2.3rem, 1.6rem + 2.6vw, 3.3rem)/1 var(--cond); letter-spacing: .01em; }
.big-contact .mail { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
.big-contact span { color: #fff; font-weight: 600; }
.big-contact li + li { padding-top: 1.1rem; border-top: 1px solid var(--line-d); }
form { background: var(--paper); color: var(--ink); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; gap: 1.1rem; align-self: start; box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
form .form-title { font-size: 1.4rem; font-weight: 700; color: var(--ink); }
form .form-sub { margin-top: -.6rem; font-size: 1rem; color: var(--ink-3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .98rem; color: var(--ink); }
label small { font-weight: 400; color: var(--ink-3); }
input, textarea { font: 400 1rem/1.4 var(--sans); min-height: 52px; padding: .8rem .95rem; border: 1px solid #c2cedb; border-radius: 8px; background: var(--paper); color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: 3px solid rgba(31,99,181,.35); outline-offset: 0; border-color: var(--blue); }
textarea { min-height: 130px; resize: vertical; }
/* Virhetila näkyy vasta, kun käyttäjä on koskenut kenttään (ei heti sivun latautuessa) */
input:user-invalid, textarea:user-invalid { border-color: #c62828; outline-color: rgba(198,40,40,.3); background: #fff8f8; }
textarea.picked { border-color: var(--blue); outline: 3px solid rgba(31,99,181,.25); }
form .btn { justify-self: start; }
form .small { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } form .btn { justify-self: stretch; } }

/* Yhteystiedot-sivu */
.page-head { background: var(--navy); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.page-head p { color: var(--on-dark); margin-top: 1rem; }
.contact-page .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.cards { list-style: none; padding: 0; display: grid; gap: 1rem; }
.cards li { display: grid; grid-template-columns: 52px 1fr; gap: 0 1rem; align-items: center; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.cards .ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.cards .ic svg { width: 24px; height: 24px; }
.cards small { color: var(--ink-3); font-size: .95rem; }
.cards a, .cards span { color: var(--ink); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.cards a { display: inline-flex; align-items: center; min-height: 44px; }
.cards a:hover { color: var(--blue); }
.cards .tel { font: 700 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1.05 var(--cond); }
.cards .mail { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.biz { margin-top: 1.6rem; font-size: 1rem; line-height: 1.7; }
.contact-page form { border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15,45,82,.45); }
@media (max-width: 900px) { .contact-page .wrap { grid-template-columns: 1fr; } }

/* Alaosa */
footer { background: var(--deep); color: var(--on-dark); font-size: 1rem; padding-top: 4rem; }
footer p { color: var(--on-dark); }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.fgrid > * { min-width: 0; }
footer h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: .8rem; }
footer ul { list-style: none; padding: 0; }
footer li { padding: .3rem 0; }
footer li:has(> a) { padding: 0; }
footer li a, .fbottom a { display: inline-flex; align-items: center; min-height: 44px; }
footer a { color: #e3ebf5; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .logo { margin-bottom: 1.1rem; }
.fbiz { margin-top: 1rem; line-height: 1.7; font-size: .95rem; }
.fbiz b { color: #fff; font-weight: 600; }
footer .fcall { font: 700 1.6rem/1.1 var(--cond); color: #fff; }
.fbottom { margin-top: 3rem; padding: 1rem 0 calc(1.6rem + env(safe-area-inset-bottom)); align-items: center; border-top: 1px solid var(--line-d); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } }

/* Mobiilin alapalkki (etusivu): soitto ja viesti peukalon ulottuvilla */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .6rem var(--gx) calc(.6rem + env(safe-area-inset-bottom)); background: rgba(15,45,82,.97); border-top: 1px solid var(--line-d); box-shadow: 0 -10px 30px -12px rgba(0,0,0,.45); }
  .callbar .btn { min-height: 50px; padding: .6rem 1rem; box-shadow: none; }
  /* JS piilottaa palkin, kun hero, yhteydenotto-osio tai alaosa on näkyvissä */
  .js .callbar { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .js .callbar.show { transform: none; visibility: visible; transition: transform .25s ease; }
}
html:not(.js) .callbar { display: none; }

/* Animaatiot */
.top { transition: box-shadow .25s, background .25s; }
.top.scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }

/* Hero: kuva liikkuu hitaasti, pääkehotukseen välähtää kiilto, puhelin "soi" */
.hero-img img { animation: drift 26s ease-in-out infinite alternate; transform-origin: 30% 60%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero .btn-xl { position: relative; overflow: hidden; isolation: isolate; }
.hero .btn-xl::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.6) 50%, transparent 65%); transform: translateX(-130%); animation: shine 5.5s ease-in-out 1.8s infinite; }
@keyframes shine { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
.top .btn-amber svg { animation: ring 9s ease-in-out 4s infinite; }
@keyframes ring { 0%, 88%, 100% { transform: none; } 89%, 91%, 93%, 95% { transform: rotate(-15deg); } 90%, 92%, 94% { transform: rotate(15deg); } }

/* Ilmestyminen vierittäessä */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-img img { clip-path: inset(0 0 100% 0 round var(--r)); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1) .1s; }
.js .rv-img.in img { clip-path: inset(0 0 0 0 round var(--r)); }

/* Palvelulaatikon ikoni reagoi */
.help .ic { transition: transform .3s cubic-bezier(.3,1.5,.5,1), background .2s, color .2s; }
.help a:focus-visible .ic { transform: translateY(-3px) rotate(-6deg); background: var(--blue); color: #fff; }
@media (hover: hover) { .help a:hover .ic { transform: translateY(-3px) rotate(-6deg); background: var(--blue); color: #fff; } }

/* Luottamusmerkit: ikoni ponnahtaa, tähdet täyttyvät */
.js .badges .ic { transform: scale(.5); transition: transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .15s); }
.js .badges li.in .ic { transform: none; }
.stars { background: linear-gradient(90deg, var(--amber-2) 50%, #cdd7e3 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .stars { transition: background-position 1.2s ease-out .6s; }
.js .in .stars, html:not(.js) .stars { background-position: 0 0; }

/* Rastit piirtyvät */
.js .checks .ok { transform: scale(.4); transition: transform .45s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .1s); }
.js .checks .ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .45s ease-out calc(var(--d, 0s) + .35s); }
.js .checks li.in .ok { transform: none; }
.js .checks li.in .ok path { stroke-dashoffset: 0; }

/* Työn kulku: viiva piirtyy, numerot ponnahtavat */
.js .steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.6,0,.2,1) .2s; }
.js .steps.in::before { transform: none; }
.js .steps li::before { transform: scale(.4); transition: transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0s) + .2s); }
.js .steps li.in::before { transform: none; }
@media (max-width: 900px) { .js .steps::before { transform: scaleY(0); transform-origin: top; } }

/* Usein kysyttyä: vastaus aukeaa pehmeästi */
.qa summary::after { transition: background .2s; }
.qa details[open] p { animation: open .35s ease-out; }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .sign path, .js .checks .ok path { stroke-dashoffset: 0; }
  .js .rv, .js .badges .ic, .js .checks .ok, .js .steps::before, .js .steps li::before { opacity: 1; transform: none; }
  .js .rv-img img { clip-path: none; }
  .stars { background-position: 0 0; }
}
