:root {
  --ink: #171717;
  --muted: #55524d;
  --yellow: #ffd84d;
  --yellow-strong: #f5c928;
  --yellow-soft: #fff5c6;
  --warm: #fbfaf7;
  --surface: #ffffff;
  --gray: #f0efeb;
  --line: #dedbd3;
  --dark: #191919;
  --dark-muted: #d6d2ca;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 18px 50px rgba(23, 23, 23, 0.1);
  --max-width: 1180px;
  --font-heading: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-body: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 98px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 6vw, 5.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #9b7300;
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: -60px;
  left: 16px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(23, 23, 23, 0.1);
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: 66px;
}

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

.site-nav > a:not(.btn) {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.96rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav > a:not(.btn):hover {
  background: var(--gray);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-small);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--large {
  min-height: 54px;
  padding-inline: 28px;
  font-size: 1.03rem;
}

.btn--primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--yellow-strong);
}

.btn--ghost {
  border-color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(23, 23, 23, 0.06);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 122px);
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: -12%;
  right: -14%;
  width: 58%;
  height: 125%;
  background: linear-gradient(145deg, var(--yellow-soft), var(--yellow));
  content: "";
  transform: skewX(-10deg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
}

.kicker, .section-kicker {
  margin-bottom: 16px;
  color: #6f5500;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lead {
  max-width: 66ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.brand-panel {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 23, 0.11);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow);
  text-align: center;
}

.brand-panel::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 20px;
  content: "";
}

.brand-panel__accent {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--yellow);
}

.brand-panel img {
  position: relative;
  width: min(100%, 330px);
}

.brand-panel p {
  position: relative;
  margin: -30px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.section {
  padding-block: clamp(72px, 9vw, 118px);
}

.core {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.core__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(40px, 7vw, 96px);
}

.core__lead {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}

.services h2 {
  max-width: 15ch;
  margin-bottom: 46px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 360px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(23, 23, 23, 0.04);
}

.service-card:nth-child(2),
.service-card:nth-child(3) {
  background: var(--yellow-soft);
}

.service-card__number {
  display: block;
  margin-bottom: 30px;
  color: #8b6900;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-card h3 {
  max-width: 21ch;
  margin-bottom: 24px;
}

.service-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.service-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow-strong);
  content: "";
  transform: translateY(-50%);
}

.pricing {
  background: var(--yellow);
}

.pricing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 92px);
}

.pricing__copy h2 {
  max-width: 14ch;
  margin-bottom: 24px;
}

.pricing__copy > p:not(.section-kicker) {
  max-width: 62ch;
  font-size: 1.12rem;
}

.pricing__note {
  color: #514817;
}

.price-list {
  display: grid;
  gap: 12px;
}

.price-item {
  padding: 24px 26px;
  border: 1px solid rgba(23, 23, 23, 0.15);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.82);
}

.price-item span, .price-item strong {
  display: block;
}

.price-item span {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.price-item strong {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.contact {
  background: var(--dark);
  color: #fff;
}

.section-kicker--light {
  color: var(--yellow);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
  align-items: start;
  gap: clamp(42px, 7vw, 92px);
}

.contact h2 {
  max-width: 12ch;
}

.contact .lead {
  color: var(--dark-muted);
}

.contact-links {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.contact-links a {
  width: fit-content;
  color: var(--yellow);
  font-family: var(--font-heading);
  font-size: 1.16rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.form-card {
  padding: clamp(24px, 4vw, 38px);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full,
.form__privacy,
.form-error,
.lead-form > .btn {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 700;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #bdb8ae;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: #8b6900;
  outline: 3px solid rgba(255, 216, 77, 0.38);
}

.form__privacy {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.form__privacy a {
  text-underline-offset: 3px;
}

.form-error {
  margin: 0;
  color: #a31414;
  font-weight: 700;
}

.form-success {
  margin: 0;
  padding: 26px;
  border-radius: var(--radius-small);
  background: var(--yellow-soft);
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  color: #fff;
}

.site-footer__inner {
  display: flex;
  min-height: 118px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand--footer {
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff;
}

.brand--footer .brand__logo {
  height: 54px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer nav a {
  color: #ddd8d0;
  font-size: 0.88rem;
  text-underline-offset: 4px;
}

/* Juridiset sivut */
.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--warm);
}

.legal-header__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.legal-header__back {
  font-weight: 700;
  text-underline-offset: 4px;
}

.legal-main {
  padding-block: 64px 96px;
  background: var(--surface);
}

.legal-content {
  width: min(100% - 40px, 780px);
}

.legal-content h1 {
  max-width: none;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.legal-content h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
}

.legal-content ul {
  padding-left: 22px;
}

.legal-content__updated {
  margin-bottom: 34px;
  color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy {
    animation: fade-up 0.5s ease both;
  }

  .hero__visual {
    animation: fade-up 0.5s ease 0.1s both;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 880px) {
  .site-nav > a:not(.btn) {
    display: none;
  }

  .hero::after {
    top: 48%;
    right: -35%;
    width: 125%;
    height: 62%;
  }

  .hero__grid,
  .core__grid,
  .pricing__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    gap: 54px;
  }

  .brand-panel {
    min-height: 360px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing__grid,
  .contact__grid {
    gap: 44px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header__inner {
    min-height: 76px;
  }

  .brand__logo {
    height: 54px;
  }

  .site-nav .btn {
    min-height: 42px;
    padding: 9px 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-block: 48px 64px;
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .brand-panel {
    min-height: 310px;
    padding: 28px;
  }

  .section {
    padding-block: 64px;
  }

  .service-card {
    padding: 26px 22px;
  }

  .lead-form {
    grid-template-columns: 1fr;
  }

  .field,
  .field--full,
  .form__privacy,
  .form-error,
  .lead-form > .btn {
    grid-column: 1;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 28px;
  }

  .site-footer nav {
    flex-direction: column;
    gap: 9px;
  }
}
