:root {
  --ink: #1d1a26;
  --muted: #4f4a5c;
  --p: #4b22b0;
  --pd: #33157f;
  --tint: #f1ecfc;
  --line: #e3ddef;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(40, 20, 90, .06), 0 8px 24px rgba(40, 20, 90, .06);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background:
    linear-gradient(180deg, rgba(250, 248, 253, .86), rgba(248, 246, 252, .80) 50%, #f6f4f8) fixed,
    #f6f4f8 url("../img/lake-bg.webp") center 60% / cover no-repeat fixed;
}

body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  position: relative;
  min-height: 100vh;
}

.nw { white-space: nowrap; }

img { display: block; max-width: 100%; height: auto; }
img:not([src]), img[src=""] { display: none; }

a { color: var(--p); }
a:hover { color: var(--pd); }
:focus-visible { outline: 3px solid #8f6ef0; outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: 0;
  transform: translateY(-120%);
  background: var(--p); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { transform: none; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 22px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-header .brand { min-width: 0; white-space: normal; line-height: 1.15; }
.brand:hover { color: var(--ink); }
.brand-mark {
  position: relative; width: 42px; aspect-ratio: 800 / 635; flex: none;
  overflow: hidden; mix-blend-mode: multiply;
}
.brand-mark img {
  position: absolute; width: 117%; max-width: none; height: auto;
  left: -14%; top: -14.5%;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--p); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mobile-menu { display: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.nav-toggle {
  display: grid; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); cursor: pointer; list-style: none;
}
.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle:hover { border-color: var(--p); color: var(--p); }
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.mobile-menu[open] .bars { background: transparent; }
.mobile-menu[open] .bars::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu[open] .bars::after { transform: translateY(-6px) rotate(-45deg); }

[id] { scroll-margin-top: 88px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 2px solid var(--p);
  background: var(--p); color: #fff;
  font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--pd); border-color: var(--pd); color: #fff; }
.btn.ghost { background: #fff; color: var(--p); }
.btn.ghost:hover { background: var(--tint); color: var(--pd); }
.btn.light { background: #fff; border-color: #fff; color: var(--pd); }
.btn.light:hover { background: var(--tint); border-color: var(--tint); color: var(--pd); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.header-call {
  min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  color: var(--p); font-weight: 650; white-space: nowrap; text-decoration: none;
}
.header-call:hover { text-decoration: underline; }
.header-call svg { width: 19px; height: 19px; flex: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; min-width: 0; }
.hero .wrap > * { min-width: 0; }
.hero-text {
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 44px 40px; box-shadow: var(--shadow);
}
.eyebrow { margin: 0 0 14px; color: var(--p); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 750; }
.hero-text p { margin: 0 0 24px; color: var(--muted); max-width: 560px; }
.price-card {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--tint);
  border: 1px solid #dcd1f6; border-radius: var(--radius);
  padding: 40px 36px; box-shadow: var(--shadow);
}
.price-big { font-size: clamp(64px, 8vw, 104px); font-weight: 800; line-height: 1; color: var(--p); letter-spacing: -.04em; margin: 0; }
.price-big small { font-size: .5em; font-weight: 700; letter-spacing: -.02em; }
.price-vat { margin: 10px 0 4px; font-weight: 600; font-size: 18px; }
.price-note { margin: 0 0 26px; color: var(--muted); }
.price-card .ticks + .price-note { margin: 18px 0 0; font-size: 15px; }
.home-hero { padding: clamp(26px, 5vw, 68px) 0 36px; }
.home-hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 5vw, 68px); align-items: center; }
.home-hero .hero-text, .subpage-hero .hero-text {
  background: none; border: 0; padding: 0; box-shadow: none;
}
.home-hero h1 { margin-bottom: 22px; font-size: clamp(35px, 3.5vw, 46px); line-height: 1.06; letter-spacing: -.035em; }
.hero-text .hero-lead { margin: 16px 0 24px; font-size: clamp(17px, 2vw, 20px); line-height: 1.48; }
.hero-rate {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px 14px;
  margin: 0 0 8px;
}
.hero-rate > a {
  color: var(--pd); font-weight: 750; font-size: 32px; line-height: 1.05;
  text-decoration-thickness: 1px; text-underline-offset: 5px; letter-spacing: -.03em;
}
.hero-text .hero-inclusions { margin: 0 0 20px; }
.hero-action p { max-width: 25ch; }
.hero-rate p, .hero-action p { margin: 0; font-size: 14px; line-height: 1.35; }
.hero-action { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.home-hero-visual { display: block; min-width: 0; }
.home-hero-photo {
  width: 100%; aspect-ratio: 6 / 5; object-fit: cover; object-position: 58% center;
  border-radius: calc(var(--radius) + 4px);
}
.subpage-hero { padding: clamp(24px, 5vw, 56px) 0 30px; }
.subpage-hero .wrap { align-items: center; }
.subpage-hero .price-card { box-shadow: none; }
.subpage-hero .price-big { font-size: clamp(44px, 6vw, 72px); }
.mobile-service-rate { display: none; }
.contact-hero .wrap { grid-template-columns: 1fr; }
.contact-hero .hero-text {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px;
}
.contact-hero .contact-list { margin: 0; padding: 0 0 0 24px; border-left: 1px solid var(--line); }
.contact-list a { overflow-wrap: anywhere; }

/* Sections */
.section { padding: 28px 0; }
.panel {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow);
}
h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

.services h2 { margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; min-width: 0; }
.cards > * { min-width: 0; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
}
.card .icon { width: 44px; height: 44px; color: var(--p); }
.card h3 { font-size: 20px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.price-band {
  background: var(--tint); border: 1px solid #dcd1f6; border-radius: var(--radius);
}
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.price-band.ticks { padding: 24px 28px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks svg { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; color: var(--p); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--p); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.cta-band {
  background: linear-gradient(135deg, var(--p), var(--pd));
  color: #fff; border-radius: var(--radius); padding: 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  min-width: 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; opacity: .92; }

.faq-layout { display: grid; grid-template-columns: minmax(190px, .65fr) 1.35fr; gap: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: grid; grid-template-columns: 1fr 20px; gap: 12px; align-items: center;
  min-height: 56px; padding: 12px 0;
  list-style: none; cursor: pointer; font-size: 17px; font-weight: 650; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border: solid var(--p); border-width: 0 2px 2px 0; transform: rotate(45deg); justify-self: center; }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq p { margin: 0 32px 16px 0; max-width: 65ch; color: var(--muted); }

.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; font-size: 19px; }
.contact-list svg { width: 26px; height: 26px; color: var(--p); flex: none; }
.contact-list .label { display: block; font-size: 14px; color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration: none; }

.quote-form { max-width: 720px; margin: 0 auto; min-width: 0; position: relative; }
.quote-form .lede { margin-bottom: 22px; }
.field { display: grid; gap: 6px; margin: 0 0 16px; min-width: 0; }
.field label { font-weight: 600; }
.field input,
.field textarea {
  width: 100%; max-width: 100%; min-width: 0;
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #cfc6e4; border-radius: 10px; padding: 12px 14px;
}
.field input { min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--p); }
.quote-form .btn { margin-top: 4px; }
.quote-form .hint { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.hp {
  position: absolute; left: 0; top: 0; width: 1px; height: 1px;
  margin: 0; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.notice { margin: 0 0 18px; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

.crumbs { font-size: 15px; color: var(--muted); padding-top: 24px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: clamp(28px, 5vw, 54px); padding: clamp(34px, 5vw, 60px) 0 14px;
  background: #241b37; color: #f8f4ff; font-size: 15px;
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px) clamp(18px, 5vw, 64px);
}
.site-footer h2 { margin: 3px 0 12px; font-size: 17px; }
.site-footer p { max-width: 26ch; margin: 12px 0 0; color: #d8cde7; }
.site-footer a, .site-footer .cookie-link { color: #f8f4ff; }
.site-footer a:hover, .site-footer .cookie-link:hover { color: #e0ceff; }
.footer-brand { width: fit-content; max-width: 100%; font-size: clamp(17px, 2vw, 21px); }
.footer-logo {
  display: grid; place-items: center; width: 39px; height: 36px; flex: none; overflow: hidden;
}
.footer-logo img { width: 100%; }
.footer-links { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.footer-links li { min-width: 0; }
.footer-links a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 18px;
  margin-top: 28px; padding-top: 9px; border-top: 1px solid #514461;
}
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.footer-meta a { text-underline-offset: 3px; }
.footer-bottom small { color: #d8cde7; font-size: 13px; }
.site-footer .cookie-link { min-height: 44px; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .footer-intro { grid-column: 1 / -1; }
  .footer-links a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; }
}

@media (max-width: 900px) {
  .site-header .wrap { gap: 12px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; flex: none; }
  .header-call { margin-left: auto; }
  .mobile-nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    display: grid; gap: 0; padding: 6px 24px 12px;
    max-height: calc(100dvh - 72px); overflow: auto;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .mobile-nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border: 0; }
  body:has(.mobile-menu[open]) .site-header { z-index: 70; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  html { background: #f6f4f8; }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(246, 244, 248, .64), rgba(246, 244, 248, .72) 58%, rgba(246, 244, 248, .82)),
      url("../img/lake-bg.webp") center 60% / cover no-repeat;
  }

  #palvelut > .wrap {
    margin-inline: 16px;
    padding: 18px 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .home-hero .wrap, .hero .wrap { grid-template-columns: 1fr; gap: 22px; }
  .home-hero { padding: 26px 0 24px; }
  .home-hero-photo { aspect-ratio: 2 / 1; }
  .hero-text .hero-lead { margin: 12px 0 18px; }
  .hero-rate { margin-bottom: 8px; }
  .faq-layout, .contact-hero .hero-text { grid-template-columns: 1fr; gap: 16px; }
  .contact-hero .contact-list { padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); }
  .subpage-hero .mobile-service-rate { display: block; margin-bottom: 14px; }
  .subpage-hero .price-card > :is(.eyebrow, .price-big, .price-vat) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 60px; gap: 8px; }
  .brand { font-size: clamp(15px, 4.3vw, 18px); gap: 6px; }
  .brand-mark { width: 33px; }
  .home-hero h1 { font-size: clamp(30px, 8vw, 40px); margin-bottom: 16px; hyphens: auto; }
  .header-call {
    width: 44px; flex: none; justify-content: center;
    border: 1px solid var(--line); border-radius: 10px;
  }
  .header-call span { display: none; }
  .mobile-nav { padding-inline: 16px; }
  .hero:not(.home-hero) { padding: 22px 0 16px; }
  .hero-text, .panel, .price-card, .price-band.ticks, .cta-band { padding: 24px 18px; }
  .section { padding: 18px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .cards { gap: 0; border-top: 1px solid var(--line); }
  .card {
    display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; align-items: center;
    padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  }
  .card .icon { width: 30px; height: 30px; }
  .card h3 { font-size: 18px; }
  .card p, .card .more { grid-column: 2; }
  .contact-list li { font-size: 17px; }
  .quote-form .btn { width: 100%; }
  .crumbs { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.service-area { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
.service-area h3 { margin-top: 1.5rem; }
.service-map { margin: 0; min-width: 0; }
.service-map img { display: block; width: 100%; height: auto; border-radius: 12px; }
.service-map figcaption { margin-top: .5rem; font-size: .8rem; }
@media (max-width: 760px) { .service-area { grid-template-columns: 1fr; gap: 1rem; } }

.error-page { max-width: 720px; margin: clamp(18px, 7vh, 80px) auto; }
.error-page h1 { margin-bottom: 16px; }
.error-page p:not(.eyebrow) { max-width: 48ch; margin: 0 0 24px; color: var(--muted); }

.quote-feedback {
  margin: 0 0 18px; padding: 12px 16px;
  border: 1px solid #ebc2ce; border-radius: 10px;
  background: #fff4f7; color: #7b253e;
}
.quote-feedback a { display: inline-block; margin-left: 4px; }
.quote-feedback a[hidden] { display: none; }
.field [aria-invalid="true"] { border-color: #a73850; }
.field-error { margin: 0; color: #8d2943; font-size: 15px; }
.quote-form .btn:disabled { cursor: wait; opacity: .75; }
