/* ============================================================
   PALVELUIDEN HINNAT: sisällysluettelo, ryhmät ja hintarivien lisätiedot
   ============================================================ */

/* body { overflow-x: hidden } tekee bodysta vierityssäiliön, jolloin position: sticky ei kiinnity.
   clip estää vaakavierityksen samoin mutta ei luo vierityssäiliötä. */
body { overflow-x: clip; }
.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 72px;
  align-items: start;
}
.price-main { grid-column: 1; grid-row: 1; min-width: 0; }
.price-main .price-list,
.price-main .price-note,
.price-main .price-group-note { max-width: none; }

/* Sisällysluettelo kulkee mukana koko hintaosion ajan. */
.price-toc {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 128px;
  padding: 30px 26px 26px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--sh-lg);
}
.price-toc-title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  padding: 0 0 16px 18px;
  border-bottom: 1px solid var(--border);
}
.price-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.price-toc-list a {
  position: relative;
  display: block;
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--navy-dark);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.price-toc-list a span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}
.price-toc-list a::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 4px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.2s;
}
.price-toc-list a:hover { background: var(--surface); }
.price-toc-list a[aria-current="true"] { background: var(--navy-50); }
.price-toc-list a[aria-current="true"]::before { opacity: 1; }
.price-toc-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  padding: 15px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.price-toc-cta:hover { transform: translateY(-1px); box-shadow: var(--sh-md); }

/* Matalalla työpöytänäytöllä tiiviimpi, jotta koko palkki mahtuu ruutuun. */
@media (min-width: 1041px) and (max-height: 820px) {
  .price-toc { top: 104px; padding: 22px 22px 20px; }
  .price-toc-title { margin-bottom: 12px; padding-bottom: 12px; }
  .price-toc-list { gap: 2px; }
  .price-toc-list a { padding-top: 9px; padding-bottom: 9px; }
  .price-toc-list a span { margin-top: 2px; }
  .price-toc-cta { margin-top: 16px; padding: 12px 16px; }
}

.price-group { scroll-margin-top: 110px; }
.price-group + .price-group { margin-top: 96px; }
#ukk { scroll-margin-top: 90px; }

.price-body h3 a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.25s, color 0.2s;
}
.price-body h3 a:hover,
.price-body h3 a:focus-visible {
  color: var(--orange);
  background-size: 100% 2px;
}

.price-tag .from {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--text-muted);
}
.price-tag .extra {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

/* Rivin oma kehote avaa tarjouslomakkeen palvelu valittuna. Ääriviivapilleri, jotta parikymmentä
   kehotetta ei kilpaile sivun täytettyjen pääkehotteiden kanssa; rivin hover nostaa sen esiin. */
.price-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 15px;
  border: 1.5px solid rgba(45, 58, 125, 0.22);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, gap 0.2s;
}
button.price-cta {
  font-family: inherit;
  background: none;
  cursor: pointer;
}
.price-item:hover .price-cta {
  border-color: var(--orange);
  color: var(--orange);
}
.price-cta:hover,
.price-cta:focus-visible,
.price-item:hover .price-cta:hover {
  gap: 9px;
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.price-group-note {
  max-width: 940px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}
.price-group-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price-group-note a:hover { color: var(--orange); }

.price-note-cta {
  margin-top: 88px;
  align-items: center;
}
.price-note-cta p { flex: 1; }
.price-note-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pink);
  text-decoration: none;
  transition: gap 0.2s;
}
.price-note-link:hover { gap: 12px; }

/* Kapealla näytöllä sisällysluettelo on yläreunaan kiinnittyvä vaakapalkki. */
@media (max-width: 1040px) {
  .price-layout { display: block; }
  .price-toc {
    top: var(--price-toc-top, 72px);
    z-index: 40;
    margin: 0 -32px 56px;
    padding: 10px 0;
    border-radius: 0;
    border-width: 1px 0;
    box-shadow: 0 10px 24px -18px rgba(35, 46, 102, 0.35);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
  }
  .price-toc-title,
  .price-toc-cta,
  .price-toc-list a span,
  .price-toc-list a::before { display: none; }
  .price-toc-list {
    flex-direction: row;
    gap: 8px;
    padding: 0 32px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .price-toc-list::-webkit-scrollbar { display: none; }
  .price-toc-list a {
    white-space: nowrap;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
  }
  .price-toc-list a[aria-current="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
  }
  .price-group { scroll-margin-top: 150px; }
}
@media (max-width: 860px) {
  .price-tag .from { font-size: 14px; }
}
@media (max-width: 700px) {
  .price-group + .price-group { margin-top: 72px; }
  .price-note-cta { margin-top: 64px; flex-direction: column; align-items: flex-start; }
}
