:root {
  --background: #f6efe5;
  --background-deep: #ebddcd;
  --paper: #fffdf9;
  --ink: #2d2a27;
  --muted: #665f58;
  --accent: #985023;
  --accent-dark: #713817;
  --accent-soft: #ead2bd;
  --line: #ded1c3;
  --shadow: 0 18px 50px rgba(61, 46, 34, 0.09);
  --radius: 18px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--background);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1769d2;
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  line-height: 1.18;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.7vw, 4.65rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 1000;
  padding: 9px 13px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(113, 56, 23, 0.12);
  background: rgba(246, 239, 229, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: block;
  text-decoration: none;
}

.brand img {
  width: 112px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-dark);
  background: rgba(152, 80, 35, 0.08);
}

.site-nav .nav-contact {
  margin-left: 8px;
  padding-inline: 17px;
  color: #fff;
  background: var(--accent);
}

.site-nav .nav-contact:hover {
  color: #fff;
  background: var(--accent-dark);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  width: 21px;
  height: 2px;
  display: block;
  border-radius: 10px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
}

.menu-toggle span {
  margin-block: 5px;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: clamp(32px, 5vw, 62px) 0 clamp(48px, 6vw, 72px);
}

.hero-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  align-items: center;
  gap: clamp(30px, 5vw, 58px);
  padding: clamp(34px, 6vw, 70px);
}

.hero-copy h1 {
  max-width: 680px;
  font-size: clamp(2.25rem, 4.4vw, 3.8rem);
}

.hero-copy > p {
  max-width: 650px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-copy .hero-summary {
  max-width: 580px;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 21px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  color: #fff;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.button-light {
  color: var(--ink);
  border-color: var(--line);
  background: var(--paper);
}

.button-light:hover {
  color: var(--ink);
  border-color: #c9b7a5;
  background: #fff;
}

.hero-logo {
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.hero-logo img {
  width: min(100%, 390px);
  height: auto;
}

.section {
  padding: clamp(74px, 9vw, 112px) 0;
}

#palvelut {
  padding-top: 0;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin: 10px 0 0;
  color: var(--muted);
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  align-items: start;
}

.services-grid > .service-card {
  min-width: 0;
  flex: 0 1 calc((100% - 32px) / 3);
}

.service-card {
  overflow: hidden;
  scroll-margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(61, 46, 34, 0.06);
}

.service-card summary {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 25px;
  cursor: pointer;
  list-style: none;
}

.service-card summary::-webkit-details-marker {
  display: none;
}

.service-card summary h3 {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  margin: 0;
  font-size: 1.28rem;
}

.service-card summary:focus-visible {
  outline-offset: -4px;
}

.service-toggle {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-toggle::before {
  content: "Lue lisää +";
}

.service-card[open] .service-toggle::before {
  content: "Sulje −";
}

.service-card[open] summary {
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.service-card summary:hover {
  background: #fbf6ef;
}

.service-copy {
  max-width: none;
  padding: 24px 25px 26px;
  color: var(--muted);
}

.service-copy p:last-child {
  margin-bottom: 0;
}

.section-tinted {
  border-top: 1px solid rgba(152, 80, 35, 0.08);
  border-bottom: 1px solid rgba(152, 80, 35, 0.08);
  background: var(--background-deep);
}

.pricing-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hourly-price {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 52px);
  color: #fff;
  background: var(--ink);
}

.hourly-price p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.hourly-price > p:first-child {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hourly-price .hourly-vat {
  width: fit-content;
  margin-bottom: 12px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.hourly-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 10px 0 12px !important;
}

.hourly-amount strong {
  color: #fff;
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.hourly-amount span {
  color: var(--accent-soft);
  font-size: 1.35rem;
  font-weight: 700;
}

.additional-prices {
  display: grid;
  align-content: center;
  margin: 0;
  padding: clamp(24px, 4vw, 42px);
}

.additional-prices > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1.25fr);
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.additional-prices > div:last-child {
  border-bottom: 0;
}

.additional-prices dt {
  color: var(--muted);
  font-weight: 700;
}

.additional-prices dd {
  margin: 0;
}

.additional-prices strong,
.additional-prices span {
  display: block;
}

.additional-prices strong {
  color: var(--accent-dark);
  font-size: 1.25rem;
}

.additional-prices span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
}

.pricing-terms-link {
  margin: 12px 4px 0;
  text-align: right;
  font-size: 0.92rem;
}

.pricing-terms-link a {
  font-weight: 800;
}

.example-prices {
  margin-top: 30px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(61, 46, 34, 0.05);
}

.example-prices h3 {
  margin-bottom: 18px;
}

.example-prices table {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll-hint {
  display: none;
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.fine-print,
.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.transport-example-note {
  margin-top: 7px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  color: var(--ink);
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 19px;
  right: 4px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent-dark);
  font-family: system-ui, sans-serif;
  content: "+";
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -4px 0 22px;
  padding-right: 30px;
  color: var(--muted);
}

.about-section {
  border-top: 1px solid rgba(152, 80, 35, 0.08);
  border-bottom: 1px solid rgba(152, 80, 35, 0.08);
  background: var(--paper);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 7vw, 88px);
}

.about-title h2 {
  margin-bottom: 0;
}

.about-copy {
  max-width: 720px;
  color: var(--muted);
}

.about-copy .about-intro {
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 700;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.contact-section {
  padding-bottom: clamp(84px, 10vw, 126px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.contact-copy > p {
  max-width: 550px;
  color: var(--muted);
}

.form-card {
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-card h3 {
  margin-bottom: 24px;
  font-size: 1.65rem;
}

.contact-form {
  display: grid;
  gap: 9px;
}

.form-required-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-form label {
  margin-top: 7px;
  color: var(--ink);
  font-weight: 700;
}

.contact-form label span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cdbdaa;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(152, 80, 35, 0.13);
}

.contact-form .button {
  justify-self: start;
  margin-top: 12px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-info-section {
  padding: clamp(64px, 8vw, 92px) 0;
  border-top: 1px solid rgba(152, 80, 35, 0.08);
  background: var(--paper);
}

.contact-info-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.contact-info-title h2 {
  margin-bottom: 0;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 5vw, 58px);
}

.contact-info-item {
  min-width: 0;
  min-height: 102px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.contact-info-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-info-item strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

a.contact-info-item:hover strong {
  color: var(--accent-dark);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 30px;
}

.footer-inner strong {
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  font-size: 1.2rem;
}

.footer-inner p {
  max-width: 560px;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: flex-end;
  gap: 10px 18px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  color: var(--accent-dark);
  background: none;
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 500;
  width: min(calc(100% - 36px), 420px);
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin-bottom: 12px;
}

.cookie-title {
  margin-bottom: 5px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cookie-actions button {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions #decline-cookies {
  color: var(--ink);
  border-color: var(--line);
  background: var(--background);
}

.cookie-actions a {
  margin-left: 4px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* Tietosuoja, toimitusehdot ja virhesivut */
.simple-header .header-inner {
  min-height: 78px;
}

.back-link {
  font-weight: 700;
}

.legal-main {
  width: min(calc(100% - 40px), 880px);
  margin-inline: auto;
  padding: clamp(58px, 8vw, 92px) 0;
}

.legal-card {
  padding: clamp(26px, 6vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.legal-updated {
  margin-top: -12px;
  font-size: 0.9rem;
}

.legal-card h2 {
  margin-top: 38px;
  margin-bottom: 10px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-card li,
.legal-card p {
  color: var(--muted);
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.status-page,
.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-card,
.not-found-card {
  width: min(100%, 580px);
  padding: clamp(30px, 7vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.status-card img,
.not-found-card img {
  width: 170px;
  height: auto;
  margin: 0 auto 22px;
}

.status-card h1,
.not-found-card h1 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 6vw, 3rem);
}

.status-card p,
.not-found-card p {
  color: var(--muted);
}

@media (max-width: 920px) {
  .header-inner {
    position: relative;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    max-height: calc(100vh - 79px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px 20px 18px;
    overflow-y: auto;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 18px 30px rgba(61, 46, 34, 0.1);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .site-nav .nav-contact {
    margin: 4px 0 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.65fr);
    gap: 25px;
  }

  .hero-logo img {
    width: min(100%, 360px);
  }

  .services-grid > .service-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .faq-layout,
  .about-grid,
  .contact-grid,
  .contact-info-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout,
  .about-grid,
  .contact-grid,
  .contact-info-layout {
    gap: 34px;
  }

  .faq-layout .section-heading {
    margin-bottom: 0;
  }

  .contact-copy {
    max-width: 720px;
  }
}

@media (max-width: 800px) {
  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .additional-prices > div {
    grid-template-columns: minmax(120px, 0.75fr) minmax(180px, 1.25fr);
  }
}

@media (max-width: 700px) {
  .container,
  .legal-main {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .brand img {
    width: 100px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-shell {
    border-radius: 22px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .hero-logo {
    width: min(100%, 350px);
    margin: 4px auto 0;
  }

  .services-grid > .service-card {
    flex-basis: 100%;
  }

  .service-card summary {
    min-height: 0;
  }

  .pricing-panel {
    grid-template-columns: 1fr;
  }

  .additional-prices > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  table {
    min-width: 720px;
  }

  .table-scroll-hint {
    display: block;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .copyright {
    grid-column: 1;
  }

  .simple-header .back-link {
    font-size: 0.86rem;
  }
}

@media (max-width: 480px) {
  .hero-copy h1 {
    font-size: 2.15rem;
  }

  .button-row,
  .button-row .button {
    width: 100%;
  }

  .button-row .button {
    text-align: center;
  }

  .form-card {
    padding-inline: 20px;
  }

  .cookie-actions button {
    flex: 1 1 auto;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
