/* ═══════════════════════════════════════════════
   AVAIRO OY — Pearl & Stone palette
   Cormorant (headings) + Montserrat (body/UI)
   ═══════════════════════════════════════════════ */

:root {
  --bg:             #FFFFFF;
  --surface:        #EEF2F6;
  --surface2:       #E2E8F0;
  --accent:         #8A9DB0;
  --accent2:        #A89880;
  --dark:           #1C1B18;
  --text:           #1C1B18;
  --muted:          #4A4845;
  --border:         rgba(28,27,24,0.09);
  --border-subtle:  rgba(28,27,24,0.07);
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  background: #0a0a0a;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}


html {
  overflow-x: hidden;
}

/* ─── SCROLL PROGRESS ────────────────────────── */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 300;
  transition: width 80ms linear;
}

/* ─── HERO STAGE (fixed video) ───────────────── */
#hero-stage {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background: #0a0a0a;
}

#hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

#hero-still {
  display: none;
}

@media (max-width: 820px) {
  /* Hero-stage piilotetaan mobiililla */
  #hero-stage { display: none; }
  #hero-panel {
    height: auto;
  }
  #scroll-wrapper {
    position: relative;
    z-index: 2;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,10,0.55) 0%,
    transparent 50%
  );
}

.hero-container {
  position: absolute;
  bottom: 88px;
  left: 0;
  right: 0;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}
.hero-container > * { pointer-events: auto; }

.hero-text {
  max-width: 860px;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.hero-text h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.03;
  color: #FFFFFF;
  letter-spacing: -0.022em;
}

/* Scroll indicator */
.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.hero-scroll span {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  writing-mode: vertical-rl;
}

.hero-scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── NAV ────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  padding: 16px 0;
  transform: translateY(0);
  transition: transform 350ms ease;
  background: transparent;
}

#nav.hidden {
  transform: translateY(-100%);
}

/* Static nav for inner pages */
#nav.nav-static {
  position: relative;
  background: var(--dark);
  padding: 36px 0;
  transform: none !important;
}

.nav-link--active {
  opacity: 1 !important;
  color: #fff !important;
  font-weight: 500 !important;
}

/* page-body: no video scroll wrapper */
.page-body {
  background: var(--bg);
}

/* Logo: invert → white outlines + black bg, screen removes black bg */
.nav-logo {
  height: 100px;
  width: 100px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}


.nav-wordmark {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  transition: color 450ms ease;
}


.nav-inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
}

/* ─── NAV DROPDOWN ───────────────────────────── */
.nav-item--dropdown {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,32,48,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(138,157,176,0.15);
  border-radius: 0px;
  padding: 0;
  min-width: 200px;
  z-index: 200;
  white-space: nowrap;
  overflow: hidden;
}

.nav-item--dropdown.open .nav-dropdown {
  display: block;
}

.nav-item--dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 150ms, background 150ms;
}

.nav-dropdown li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
  opacity: 1;
}

.nav-link--has-dropdown::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,1);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 200ms, opacity 200ms;
}

.nav-links a:hover { opacity: 0.7; }

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  background: #091422;
  padding: 11px 26px;
  border-radius: 0px;
  text-decoration: none;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  transition: opacity 200ms, transform 200ms, background 450ms ease;
}

nav.scrolled .nav-cta {
  background: #091422;
  color: #FFFFFF;
}

.nav-cta:hover { opacity: 0.8; transform: translateY(-1px); }

/* ─── SCROLL WRAPPER ─────────────────────────── */
#scroll-wrapper {
  position: relative;
  z-index: 5;
  margin-top: 0;
}

/* ─── HERO PANEL (läpinäkyvä, scrollaa videon päällä) ── */
#hero-panel {
  height: 100vh;
  position: relative;
  background: transparent;
  pointer-events: none;
}

#hero-panel .hero-text,
#hero-panel .hero-scroll {
  pointer-events: auto;
}

/* ─── CONTAINER ──────────────────────────────── */
.container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 64px;
}

/* ─── SECTION LABEL ──────────────────────────── */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 28px;
  display: block;
}

/* ─── SERVICES ───────────────────────────────── */
#services {
  border-top: 1px solid rgba(138,157,176,0.25);
  background: rgba(24, 32, 44, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  overflow: visible;
  position: relative;
}

.service-card {
  border-right: 1px solid rgba(138,157,176,0.18);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  background: transparent;
  position: relative;
  z-index: 0;
}

.service-card:first-child { border-left: 1px solid rgba(138,157,176,0.18); }

.service-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  height: 2.6em;
  color: rgba(255,255,255,0.92);
  line-height: 1.22;
  margin: 0;
}

.service-card p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  margin-top: 14px;
}

.service-card p {
  flex: 1;
}

.service-card .btn-card {
  margin-top: 20px;
  opacity: 1;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 0px;
  text-decoration: none;
  width: fit-content;
  letter-spacing: 0.03em;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
}

.btn-card:hover {
  background: rgba(255,255,255,0.12);
  color: #FFFFFF;
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

/* btn-card in light sections */
#about .btn-card {
  color: #1a2e45;
  border-color: #1a2e45;
}

#about .btn-card:hover {
  background: #1a2e45;
  color: #FFFFFF;
  border-color: #1a2e45;
}

.pricing-card .btn-card {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.3);
}

.pricing-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(138,157,176,0.2);
}

.pricing-card .btn-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  color: #FFFFFF;
}

/* ─── ABOUT ──────────────────────────────────── */
#about {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

#about h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.07;
  margin-bottom: 32px;
}

.body-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 18px;
  max-width: 500px;
}

.about-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.meta-dot { opacity: 0.4; }

.about-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: 4px;
  object-fit: cover;
  margin-top: 0;
}

/* About logo image */
.about-right {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-img {
  width: 82%;
  height: auto;
  display: block;
}

/* ─── USP CAROUSEL ───────────────────────────── */
.usp-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0 0 4px;
}

.usp-carousel-track {
  position: relative;
  overflow: visible;
  height: 320px;
  border-radius: 4px;
}

.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 32px;
  position: relative;
}

/* Base card style (shared, non-carousel) */
.usp-item {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
}


/* Carousel-only overrides */
.usp-carousel .usp-item {
  position: absolute;
  top: 0;
  width: 64%;
  left: 18%;
  height: 100%;
  transition: transform 560ms cubic-bezier(0.4,0,0.2,1),
              opacity 560ms cubic-bezier(0.4,0,0.2,1),
              filter 560ms cubic-bezier(0.4,0,0.2,1);
  will-change: transform, opacity, filter;
  cursor: default;
  user-select: none;
  box-sizing: border-box;
}

.usp-carousel .usp-item[data-state="active"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
}

.usp-carousel .usp-item[data-state="next"] {
  transform: translateX(88%) scale(0.88);
  opacity: 0.45;
  filter: blur(8px);
  z-index: 2;
}

.usp-carousel .usp-item[data-state="prev"] {
  transform: translateX(-88%) scale(0.88);
  opacity: 0.45;
  filter: blur(8px);
  z-index: 2;
}

.usp-carousel .usp-item[data-state="hidden-right"] {
  transform: translateX(176%) scale(0.88);
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.usp-carousel .usp-item[data-state="hidden-left"] {
  transform: translateX(-176%) scale(0.88);
  opacity: 0;
  filter: blur(8px);
  z-index: 1;
  pointer-events: none;
}

.usp-carousel .usp-item.no-transition {
  transition: none !important;
}

.usp-title {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 12px;
}

.usp-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.8;
}

/* ─── USP NAV ────────────────────────────────── */
.usp-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.usp-nav-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--muted);
  transition: border-color 200ms, color 200ms;
  flex-shrink: 0;
}
.usp-nav-btn:hover { border-color: var(--accent); color: var(--text); }

.usp-dots { display: flex; gap: 8px; align-items: center; }
.usp-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 300ms, transform 300ms;
}
.usp-dot--active {
  background: var(--text);
  transform: scale(1.4);
}

/* ─── PRICING ────────────────────────────────── */
#pricing, #pricing-yllapito, #pricing-ai {
  padding: 96px 0;
  border-top: none;
  background: url('brand_assets/hinnastohero.webp') center center / cover no-repeat fixed;
  position: relative;
}

#pricing::before, #pricing-yllapito::before, #pricing-ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,14,26,0.86);
  pointer-events: none;
}

#pricing .container, #pricing-yllapito .container, #pricing-ai .container {
  position: relative;
  z-index: 1;
}

#pricing .section-label,
#pricing-yllapito .section-label,
#pricing-ai .section-label {
  font-size: 18px;
  letter-spacing: 0.12em;
  margin-bottom: 40px;
  color: rgba(255,255,255,0.45);
}

#faq {
  background: var(--surface);
}

.pricing-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.07;
  margin-bottom: 72px;
  letter-spacing: -0.02em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card-wrap {
  display: flex;
  flex-direction: column;
}

.pricing-card-spacer {
  height: 36px;
}

.pricing-badge-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.pricing-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 6px 18px;
  border-radius: 0px;
}

.pricing-card {
  background: rgba(18, 28, 48, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(138,157,176,0.18);
  border-radius: 4px;
  padding: 52px 44px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(10,18,30,0.25), 0 24px 48px rgba(10,18,30,0.18);
  transition: background 280ms ease, transform 280ms ease, box-shadow 280ms ease;
  flex: 1;
}

.pricing-card:hover {
  background: rgba(24, 36, 58, 0.82);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,18,30,0.35), 0 32px 64px rgba(10,18,30,0.22);
}

/* ─── Featured card: golden orbiting border ─── */
@keyframes pulse-silver {
  0%, 100% { box-shadow: 0 0 6px 1px rgba(160,175,190,0.25), 0 8px 24px rgba(10,18,30,0.18), 0 24px 48px rgba(10,18,30,0.12); }
  50%       { box-shadow: 0 0 20px 6px rgba(180,195,215,0.55), 0 8px 24px rgba(10,18,30,0.18), 0 24px 48px rgba(10,18,30,0.12); }
}

.pricing-card--featured {
  background: rgba(18, 28, 48, 0.72);
  border: 1px solid rgba(160,175,190,0.65);
  position: relative;
  isolation: isolate;
  animation: pulse-silver 3s ease-in-out infinite;
}

.pricing-tier {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}

.pricing-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 88px;
}
.pricing-price span {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-price span {
  font-family: 'Cormorant', serif;
  font-size: 48px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.pricing-ask {
  font-family: 'Cormorant', serif;
  font-size: 36px;
  font-weight: 600;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  display: block;
  line-height: 1.2;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  min-height: 162px;
}

.pricing-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px;
  height: 1px;
  background: rgba(138,157,176,0.6);
}

.pricing-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.7;
  margin-bottom: 40px;
  flex: 1;
}

/* ─── PRICING HOSTING SUB-SECTION ──────────── */
.pricing-hosting {
  margin-top: 20px;
  padding-bottom: 28px;
}

.pricing-hosting-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.pricing-hosting p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ─── HINNASTO OVERVIEW (2-card layout) ────── */
.hinnasto-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.hinnasto-overview-card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 40px;
  text-decoration: none;
  color: var(--text);
  transition: transform 200ms, box-shadow 200ms;
}

.hinnasto-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.hinnasto-overview-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hinnasto-overview-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.hinnasto-overview-arrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ─── PALVELUT OVERVIEW (2-card layout) ─────── */
.palvelut-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}

.palvelut-overview-card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 48px 40px;
  text-decoration: none;
  color: var(--text);
  transition: transform 200ms, box-shadow 200ms;
}

.palvelut-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.palvelut-overview-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 12px;
}

.palvelut-overview-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ─── KTS CARDS ─────────────────────────────── */
.kts-cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 282px; /* 3 × 90px + 2 × 6px gaps — total stays constant */
}

.kts-card {
  display: flex;
  align-items: flex-end;
  filter: none;
  padding: 16px 20px;
  flex: 1;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  transition: flex 400ms cubic-bezier(0.16,1,0.3,1);
}

.kts-card::before, .kts-card::after { display: none; }

.kts-cards:hover .kts-card {
  flex: 0.4;
  align-items: center;
}

.kts-cards:hover .kts-card:hover {
  flex: 3;
  align-items: flex-end;
}

.kts-card:hover::after {
  opacity: 1;
}

.kts-card span {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  letter-spacing: -0.01em;
  text-shadow: none;
  background: rgba(8, 18, 30, 0.74);
  padding: 6px 16px;
  border-radius: 0 4px 0 0;
}

/* ─── KIINTEISTÖALA & DIGITAALISET TEASER ───── */
#digitaaliset-teaser {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

#digitaaliset-teaser .kiinteisto-teaser-inner {
  grid-template-columns: 0.8fr 1.2fr;
  gap: 120px;
}

#digitaaliset-teaser .kiinteisto-teaser-left {
  padding-left: 31%;
}


#digitaaliset-teaser h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

#kiinteisto-teaser {
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}


.kiinteisto-teaser-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

#kiinteisto-teaser h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.kiinteisto-tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}


.kiinteisto-tag {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.12);
  background: #1a2e45;
  padding: 16px 20px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 200ms, color 200ms, background 200ms;
}

.kiinteisto-tag:hover {
  background: #243d58;
  border-color: rgba(255,255,255,0.22);
  color: rgba(255,255,255,1);
}

/* ─── KTS HOVER SLIDER ──────────────────────── */
.kts-slider {
  display: flex;
  align-items: center;
  gap: 48px;
}

.kts-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  flex: 1;
}

.kts-item {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1.3;
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  padding: 2px 0;
  word-break: keep-all;
  hyphens: none;
  overflow-wrap: normal;
}

/* word wrapper — prevents mid-word line breaks */
.kts-item .kts-word {
  display: inline-block;
  white-space: nowrap;
}

/* char wrapper — clips the inner spans */
.kts-item .kts-char {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1.15;
}

/* ghost (faded baseline) */
.kts-item .kts-char-ghost {
  display: inline-block;
  opacity: 0.22;
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 300ms ease;
}

/* real (animates up from below) */
.kts-item .kts-char-real {
  position: absolute;
  top: 0; left: 0;
  display: inline-block;
  transform: translateY(110%);
  transition: transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.kts-images {
  position: relative;
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface2);
}

.kts-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 700ms cubic-bezier(0.33, 1, 0.68, 1);
}

.kts-img.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ─── BEFORE / AFTER SLIDER (embedded in service-expanded-left) ─────── */
.ba-slider {
  position: relative;
  width: 75%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: col-resize;
  border-radius: 4px;
  user-select: none;
  margin-top: 28px;
}

.ba-img-right {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  display: block;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: col-resize;
}

.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255,255,255,0.9);
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.ba-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: relative;
  z-index: 1;
}

.ba-lbl {
  position: absolute;
  bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 3px 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 150ms ease;
}

.ba-lbl--left { left: 10px; }
.ba-lbl--right { right: 10px; }

/* ─── CONTACT HERO (yhteystiedot.html) ──────── */
.contact-hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  overflow: hidden;
  background: #343b41;
}

.contact-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.3) 40%, rgba(10,10,10,0.65) 100%);
}

.contact-hero-text-outer {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
}

.contact-hero-text {
  max-width: 700px;
}

.contact-hero-text h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-top: 12px;
}

/* ─── PAGE HERO (inner pages) ────────────────── */
.page-hero {
  background: #343b41 url('brand_assets/Rantakuva.webp') center center / cover no-repeat;
  min-height: 560px;
  padding: 120px 0 44px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-hero-inner {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
  position: relative;
}

.page-hero--kiinteisto {
  background: #414d58 url('brand_assets/herokiinteisto.webp') center center / cover no-repeat;
}
.page-hero--palvelut {
  background: #38434c url('brand_assets/Digi_palvelu_header.webp') center center / cover no-repeat;
}
.page-hero--hinnasto {
  background: #435258 url('brand_assets/hinnastohero.webp') center center / cover no-repeat fixed;
}

.page-hero--hinnasto::before {
  background: linear-gradient(to bottom, rgba(8,14,26,0.6) 0%, rgba(8,14,26,0.45) 60%, rgba(8,14,26,0.86) 100%) !important;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,18,0.6) 0%, rgba(20,20,18,0.45) 50%, rgba(20,20,18,0.65) 100%);
  pointer-events: none;
}

.page-hero--split .stailaus-split {
  position: absolute;
  right: 180px;
  top: 50%;
  transform: translateY(-40%);
  width: 370px;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}

.page-hero h1 {
  font-family: 'Cormorant', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  max-width: 820px;
}

.page-hero p {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 520px;
}

/* ─── SERVICES EXPANDED (palvelut.html) ──────── */
.service-expanded {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.service-expanded:nth-child(even) {
  background: var(--surface);
}

.service-expanded-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: stretch;
}

.service-expanded--reverse .service-expanded-inner {
  /* same 1fr 1fr — image column stays identical size */
}

.service-expanded-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.service-expanded--reverse .service-expanded-left {
  grid-column: 2;
  grid-row: 1;
}

.service-expanded--reverse .service-expanded-body {
  grid-column: 1;
  grid-row: 1;
}

.service-expanded-body {
  display: flex;
  flex-direction: column;
}

.service-cta-wrap {
  margin-top: auto;
  padding-top: 40px;
}

.service-expanded-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.service-expanded h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
  max-width: 75%;
}

#raataloidyt { padding: 140px 0; }
#raataloidyt .service-expanded-left h2 { max-width: 100%; margin-bottom: 40px; }


.service-expanded-body p,
.service-expanded-left p {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  max-width: 560px;
}

.service-expanded-points {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-expanded-points li {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.service-btn-img-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.service-btns {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.service-img {
  display: block;
  width: 75%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-top: 28px;
  border-radius: 4px;
  overflow: hidden;
}

.service-expanded-points li::before {
  content: '✓';
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.6;
}

/* ─── COMPARE TOGGLE ────────────────────────── */
.compare-toggle-wrap {
  text-align: center;
  margin-top: 48px;
}
.compare-toggle-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  background: rgba(18, 28, 48, 0.72);
  border: 1px solid rgba(138,157,176,0.18);
  border-radius: 0px;
  padding: 13px 28px;
  cursor: pointer;
  transition: background 200ms, color 200ms, border-color 200ms, transform 200ms;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (hover: hover) {
  .compare-toggle-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
  }
}
.compare-toggle-arrow { transition: transform 300ms ease; display: inline-block; }
.compare-toggle-btn[aria-expanded="true"] .compare-toggle-arrow { transform: rotate(180deg); }

/* ─── COMPARE DRAWER ─────────────────────────── */
.compare-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.compare-drawer.compare-open { max-height: 3000px; }
.compare-drawer-inner { padding: 48px 0 48px; }

/* ─── COMPARE TABLE ──────────────────────────── */
.compare-table-wrap {
  overflow: hidden;
  border: 1px solid rgba(138,157,176,0.18);
  border-radius: 12px;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}
.compare-table thead th {
  padding: 20px 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.compare-feature-col { text-align: left !important; width: 34%; }
.compare-table thead th:not(.compare-feature-col),
.compare-table tbody td:not(.compare-feature-col) { width: 22%; }
.compare-featured-col { background: rgba(138,157,176,0.07); }
.compare-table thead .compare-featured-col { color: var(--text); }
.compare-table tbody td {
  padding: 14px 24px;
  color: var(--muted);
  font-weight: 300;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 15px;
}
.compare-table tbody td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 400;
  font-size: 13px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-group-row td {
  padding: 10px 24px !important;
  background: var(--surface) !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted) !important;
  text-align: left !important;
}
.compare-table tbody tr:not(.compare-group-row):hover td { background: rgba(238,242,246,0.6); }
.compare-table tbody tr:not(.compare-group-row):hover td.compare-featured-col {
  background: rgba(138,157,176,0.14);
}

/* ─── YLLÄPITO ───────────────────────────────── */
#yllapito { padding: 96px 0; background: var(--surface); }
#pohjapiirustus { padding: 64px 0; background: var(--surface); }
.yllapito-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.pohja-img {
  object-fit: contain;
}

/* Pohjapiirustus: 2-sarake grid — teksti | (kuva yllä + checklist alla) */
#pohjapiirustus .yllapito-inner {
  grid-template-columns: 0.65fr 1.35fr;
  grid-template-rows: auto 1fr;
  gap: 48px;
  align-items: center;
}
.pohja-left-wrap {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pohja-right { grid-column: 2; grid-row: 1 / 3; }
.pohja-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 88%;
}
.pohja-features {
  display: flex;
  flex-direction: column;
  width: 70%;
  margin-left: 15%;
}
.pohja-feature {
  width: 100%;
}

.pohja-img {
  width: 100%;
  height: auto;
  display: block;
}
.yllapito-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 20px;
}
.yllapito-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 32px;
}
.yllapito-alkaen {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: -8px;
  display: block;
}
.yllapito-price-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex-wrap: wrap;
}
.yllapito-price {
  font-family: 'Cormorant', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text);
}
.yllapito-price small {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}
.yllapito-price-or {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
}
.yllapito-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.yllapito-feature:first-child { border-top: 1px solid var(--border); }
.yllapito-star {
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
  line-height: 1.6;
}
.yllapito-feature strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.yllapito-feature p {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 860px) {
  .yllapito-inner { grid-template-columns: 1fr; gap: 48px; }
  #pohjapiirustus .yllapito-inner { grid-template-columns: 1fr; grid-template-rows: auto; gap: 32px; }
  .pohja-left-wrap   { display: contents; }
  .pohja-left-header { grid-column: 1; grid-row: 1; }
  .pohja-left-body   { grid-column: 1; grid-row: 2; }
  .pohja-right       { display: contents; }
  .pohja-img         { grid-column: 1; grid-row: 3; width: 100%; }
  .pohja-features    { grid-column: 1; grid-row: 4; width: 100%; margin-left: 0; }
  .pohja-features { justify-self: start; width: 100%; margin-left: 0; }
  .pohja-img { width: 100%; }
}

/* ─── FAQ (hinnasto.html) ────────────────────── */
#faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.page-body #faq {
  background: #ffffff;
}

#faq h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 56px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 820px;
}

.faq-item {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.faq-a {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
}

/* ─── KIINTEISTÖ HERO SLIDER ─────────────────── */
.kiinteisto-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
}

.ks-img {
  position: absolute;
  inset: 0;
}

.ks-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ks-img--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.ks-img--after {
  z-index: 1;
}

.ks-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(28,27,24,0.75);
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ks-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1C1B18;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55) 0%, transparent 55%);
  z-index: 5;
  pointer-events: none;
}

.ks-label {
  position: absolute;
  top: 28px;
  z-index: 15;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  pointer-events: none;
}

.ks-label--left  { left: 40px; }
.ks-label--right { right: 40px; }

.ks-center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.ks-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: invert(1);
  mix-blend-mode: screen;
}

.ks-logo-wordmark {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.ks-text {
  position: absolute;
  bottom: 72px;
  left: 64px;
  right: 64px;
  z-index: 15;
  pointer-events: none;
}

/* ─── KIINTEISTÖ SERVICES (kiinteisto.html) ─── */
.kiinteisto-services {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.kiinteisto-services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}
.kiinteisto-services-header-text {
  flex: 1;
}
.kiinteisto-services-header .stailaus-split {
  flex-shrink: 0;
  width: 340px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  margin: 0;
}

.kiinteisto-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.kiinteisto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 44px;
  transition: background 280ms ease, transform 280ms ease;
}

.kiinteisto-card:hover {
  background: var(--surface2);
  transform: translateY(-2px);
}

.kiinteisto-card h3 {
  font-family: 'Cormorant', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.kiinteisto-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.85;
}

.kiinteisto-card--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 48px;
}
.kiinteisto-card--wide .kiinteisto-card-body {
  flex: 1;
}
.kiinteisto-card--wide .stailaus-split {
  flex-shrink: 0;
  width: 340px;
  border-radius: 0px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.kiinteisto-usp {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(rgba(214,228,240,0.55), rgba(214,228,240,0.55)), url('brand_assets/Taivas.webp') center/cover no-repeat;
}
.kiinteisto-usp::before,
.kiinteisto-usp::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.kiinteisto-usp::before {
  top: 0;
  background: linear-gradient(to bottom, #fff 0%, transparent 100%);
}
.kiinteisto-usp::after {
  display: none;
}

.kiinteisto-usp h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 56px;
}

/* ─── TESTIMONIAL ────────────────────────────── */
/* ── Quote card (after about section) ───────── */
#quote-card {
  padding: 0;
  background: var(--surface);
  position: relative;
}

#quote-card .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.quote-card-inner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 40px 56px;
  text-align: center;
}

.quote-card-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.quote-card-quote p {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

/* Magic word-reveal */
.quote-card-quote p .magic-word {
  display: inline;
  opacity: 0.12;
}

.quote-card-cite {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── CTA BANNER ─────────────────────────────── */
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body:not(.page-body) #cta-banner {
  background: #ffffff;
}

#cta-banner {
  background: #EEF2F6;
  padding: 120px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-banner-inner h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.04;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-banner-inner p {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 44px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a2e45;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 52px;
  padding: 0 40px;
  border-radius: 0px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 200ms, transform 200ms;
}

.btn-primary:hover { opacity: 0.82; transform: translateY(-2px); }

/* ─── CONTACT ────────────────────────────────── */
.contact-tagline-quote {
  font-family: 'Cormorant', serif;
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.85;
}

#contact {
  padding: 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 110px;
  align-items: start;
}

.contact-left {
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-right {
  padding-top: 80px;
  padding-bottom: 80px;
}

#contact h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--text);
  line-height: 1.07;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 44px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.contact-info-value {
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 15px 20px;
  outline: none;
  border-radius: 4px;
  transition: border-color 200ms;
  appearance: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 148px;
  resize: vertical;
}

.btn-submit {
  background: #1a2e45;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 40px;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  width: fit-content;
  letter-spacing: 0.03em;
  transition: opacity 200ms, transform 200ms;
}

.btn-submit:hover { opacity: 0.82; transform: translateY(-2px); }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: #1a2e45;
  border-top: 1px solid rgba(138,157,176,0.15);
  padding: 48px 64px;
}

.footer-inner {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  opacity: 1;
  transition: opacity 200ms ease;
}
.footer-brand:hover { opacity: 0.75; }

.footer-logo {
  height: 58px;
  width: 58px;
  object-fit: contain;
  opacity: 0.7;
  filter: invert(1);
  mix-blend-mode: screen;
}

.footer-brand-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.footer-brand-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 200ms;
}

.footer-brand-links a:hover { color: rgba(255,255,255,0.9); }

.footer-wordmark {
  font-family: 'Cormorant', serif;
  font-size: 19px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
}

.footer-nav {
  display: flex;
  gap: 56px;
  margin-left: auto;
  align-items: flex-start;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 150px;
}

.footer-nav-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}

.footer-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 200ms;
  white-space: nowrap;
}

.footer-nav a:hover { color: rgba(255,255,255,0.9); }

.footer-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-copy p {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 8px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 200ms;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:first-child { border-left: none; }
  .service-card:nth-child(2) { border-right: none; }
  .service-card:nth-child(3),
  .service-card:nth-child(4) { border-top: 1px solid var(--border); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .service-card:nth-child(4) { border-right: none; }
}

/* ─── HAMBURGER ──────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  -webkit-appearance: none;
  appearance: none;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 820px) {
  #nav, #nav.scrolled { padding: 20px 0; }
  .nav-inner { padding: 0 24px; }
  .nav-dropdown { display: block !important; position: static; transform: none; background: transparent; border: none; backdrop-filter: none; padding: 0; }
  .nav-dropdown li a { padding: 10px 28px 10px 44px; font-size: 13px; color: rgba(255,255,255,0.55); }
  .nav-link--has-dropdown::after { display: none; }
  .nav-right {
    display: none;
    position: fixed;
    top: 0;
    left: 0; right: 0;
    background: rgba(18, 32, 48, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 112px;
    padding-bottom: 32px;
  }
  .nav-right { z-index: 0; }
  .nav-right.nav-open { display: flex; }
  .nav-brand { position: relative; z-index: 2; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 28px; font-size: 15px; text-align: left; }
  .nav-right { align-items: flex-start; }
  .nav-cta { margin-top: 12px; margin-left: 28px; }
  .nav-hamburger { display: flex; margin-left: auto; position: relative; z-index: 2; }
  .hero-container { top: auto; bottom: 48px; transform: none; padding: 0 28px; pointer-events: auto; }
  .hero-scroll { display: none; }
  body { background: #18202c; }
  #services { background: #18202c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* Hero-panel taustakuva mobiililla — tässä desktop-säännön jälkeen joten voittaa */
  #hero-panel {
    height: 96svh;
    background: url('brand_assets/hero-still-mobile.webp') center/cover no-repeat;
    position: relative;
    pointer-events: auto;
  }
  #hero-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.55) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
  }
  .hero-container { position: absolute; z-index: 1; }
  .break-mobile { display: block; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none; border-top: 1px solid var(--border); border-left: none; }
  .container { padding: 0 24px; }
  #about, #contact, #pricing { padding: 80px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-right { padding-top: 0; }
  .contact-left { padding-top: 8px; padding-bottom: 0; }
  .kiinteisto-teaser-inner { grid-template-columns: 1fr; gap: 48px; }
  .service-expanded-inner { grid-template-columns: 1fr; gap: 48px; }
  .service-expanded--reverse .service-expanded-left { grid-column: 1; grid-row: 1; }
  .service-expanded--reverse .service-expanded-body { grid-column: 1; grid-row: 2; }
  .service-expanded-left, .service-expanded-body { width: 100%; }
  .hinnasto-overview-grid, .palvelut-overview-grid { grid-template-columns: 1fr; }
  .kiinteisto-services-grid { grid-template-columns: 1fr; }
  .kiinteisto-tag-grid { grid-template-columns: 1fr; }
  .kts-slider { flex-direction: column; gap: 32px; }
  .kts-images { width: 100%; aspect-ratio: 16 / 9; }
  .kts-item { font-size: clamp(17px, 5vw, 22px); }
  .page-hero { padding: 120px 0 32px; }
  .page-hero-inner { padding: 0 24px; }
  #kiinteisto-teaser, #digitaaliset-teaser, .kiinteisto-usp { padding: 80px 0; }
  #faq { padding: 72px 0; }
  #quote-card { padding: 24px 0; }
  .quote-card-inner { padding: 32px 24px; }
  #cta-banner { padding: 80px 24px; }
  footer { padding: 36px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-nav { margin-left: 0; }
  .footer-copy { align-items: center; margin-left: 0; padding-bottom: 8px; text-align: center; width: 100%; }

  /* Prevent horizontal overflow */
  .service-img { width: 100%; margin-left: 0; margin-top: 32px; }
  .service-expanded-body { max-width: 100%; }
  .service-expanded-body p { max-width: 100%; }
  .about-image { width: 100%; max-width: 100%; }
  .kiinteisto-teaser-inner { overflow: hidden; }
  .usp-carousel { width: 100%; overflow: hidden; }
  .usp-carousel-track { overflow: hidden; }
  .nav-inner { padding: 0 24px; }

  /* ── Digitaaliset teaser mobile ── */
  #digitaaliset-teaser .kiinteisto-teaser-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #digitaaliset-teaser .kiinteisto-teaser-left {
    padding-left: 0;
    order: 1;
  }
  #digitaaliset-teaser .kiinteisto-teaser-right {
    order: 2;
  }

  /* ── KTS cards mobile ── */
  .kts-cards { height: 318px; } /* 3 × 100px + 2 × 9px gaps */
  .kts-card span { font-size: 18px; }

  /* ── About logo: show below text on mobile ── */
  .about-right { display: flex; padding: 40px 0 8px; background: transparent; }
  .about-logo-img { width: 78%; max-width: 300px; margin: 0 auto; opacity: 1; }
  .about-grid { grid-template-columns: 1fr; }

  /* ── Hero text ── */
  .hero-text h1 { font-size: clamp(32px, 9vw, 52px); }
  .hero-eyebrow { font-size: 11px; }

  /* ── Services cards ── */
  .service-card { padding: 32px 24px; }

  /* ── Kiinteisto teaser text ── */
  #kiinteisto-teaser h2, #digitaaliset-teaser h2 {
    font-size: clamp(28px, 7vw, 40px);
  }

  /* ── BA slider ── */
  .ba-slider { margin-top: 20px; }

  /* ── USP grid ── */
  .usp-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Hinnasto cards stack properly */
  .pricing-grid { grid-template-columns: 1fr !important; }
  .pricing-card { width: 100%; min-width: 0; }

  /* Page hero text wraps */
  .page-hero h1 { word-break: break-word; hyphens: auto; }
  .page-hero p { font-size: 14px; }

  /* Palvelut overview cards */
  .hinnasto-overview-grid, .palvelut-overview-grid { gap: 16px; }
  .hinnasto-card, .palvelut-card { width: 100%; min-width: 0; }

  /* Kiinteisto tags single column */
  .kiinteisto-tag { width: 100%; text-align: center; }

  /* Quote card */
  .quote-card-quote p { font-size: 16px; }

  /* Compare table — allow scroll only within wrapper, not full page */
  .compare-drawer-inner { padding: 24px 0 24px; }

  /* ── Compare table: no scroll on mobile, compressed columns ── */
  .compare-table-wrap { overflow: hidden; }
  .compare-table { min-width: unset; font-size: 10px; }
  .compare-table thead th { font-size: 10px; padding: 10px 5px; }
  .compare-table tbody td { padding: 9px 5px; font-size: 10px; }
  .compare-feature-col { width: 42%; font-size: 9px; text-align: left !important; padding-left: 6px !important; }
  .compare-table tbody td:first-child { text-align: left !important; padding-left: 6px !important; }
  .compare-table thead th:not(.compare-feature-col),
  .compare-table tbody td:not(.compare-feature-col) { width: 19%; text-align: center; }

  /* ── Background-attachment: fixed breaks on iOS Safari ── */
  #pricing, #pricing-yllapito, #pricing-ai { background-attachment: scroll; }
  .page-hero { background-attachment: scroll !important; }


  /* ── BA slider — full width on mobile ── */
  .ba-slider { width: 100%; }

  /* ── Pricing card — tighter padding ── */
  .pricing-card { padding: 36px 24px; }
  .pricing-card--featured { padding: 40px 24px; }
  .pricing-price span { font-size: clamp(28px, 8vw, 48px); }

  /* ── Contact form: stack name/company fields ── */
  .form-row-2 { grid-template-columns: 1fr; }

  /* ── Contact person: smaller photo ── */
  .contact-person-photo { width: 82px; height: 82px; }

  /* ── Contact hero text ── */
  .contact-hero-text-outer { bottom: 44px; padding: 0 24px; }
  .contact-hero-text h1 { font-size: clamp(32px, 9vw, 52px); }

  /* ── Page hero — maintain height for image quality ── */
  .page-hero { min-height: 340px; }
  .page-hero-inner h1 { font-size: clamp(32px, 8vw, 56px); }

  /* ── Footer nav — single column, stacked headings ── */
  .footer-nav { flex-direction: column; flex-wrap: nowrap; gap: 24px; width: 100%; }
  .footer-nav-group { width: 100%; }

  /* ── Service expanded padding ── */
  .service-expanded { padding: 72px 0; }

  /* ── Yllapito section ── */
  .yllapito-inner { grid-template-columns: 1fr; gap: 40px; }

  /* ── FAQ spacing ── */
  .faq-item { padding: 20px 0; }

  /* ── Hinnasto: pienennetään väliä headerin ja korttien välillä ── */
  #pricing, #pricing-ai { padding-top: 28px; }
  #pricing .section-label, #pricing-ai .section-label { margin-bottom: 28px; }
  .pricing-card-spacer { display: none; }

  /* ── Hinnasto hero: lyhennetään tummaa aluetta, sama korkeus molemmilla sivuilla ── */
  .page-hero--hinnasto { min-height: 220px; padding-bottom: 24px; }

  /* ── Pohjapiirustus: vähennetään tyhjää tilaa alla ── */
  #pohjapiirustus { padding: 64px 0 48px; }
}

/* ─── STAILAUS SPLIT ──────────────────────────── */
.stailaus-split {
  position: relative;
  width: 560px;
  max-width: 90%;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark);
}
.stailaus-img {
  width: 100%;
  height: auto;
  display: block;
}
.stailaus-left {
  position: relative;
  clip-path: inset(0 50% 0 0);
}
.stailaus-right {
  position: absolute;
  top: 0; left: 0;
  clip-path: inset(0 0 0 50%);
}
.stailaus-split .stailaus-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,0.35);
}
.stailaus-label {
  position: absolute;
  bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(28,27,24,0.55);
  padding: 5px 14px;
  border-radius: 0px;
  backdrop-filter: blur(6px);
  white-space: nowrap;
}
.stailaus-label--left  { left: 25%; transform: translateX(-50%); }
.stailaus-label--right { left: 75%; transform: translateX(-50%); }
@media (max-width: 820px) {
  .stailaus-split { aspect-ratio: 4 / 3; }
}

/* ─── CONTACT PERSONS ────────────────────────── */
.contact-person {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact-person-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  order: 2;
  margin-left: auto;
  image-rendering: high-quality;
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.1) saturate(1.08) brightness(1.02) blur(0px);
}
.contact-person-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  order: 1;
  flex: 1;
}
.contact-person:first-child { border-top: 1px solid var(--border); }
.contact-person-name {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.contact-person-role {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.contact-person-detail {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms ease;
}
.contact-person-detail:hover { color: var(--text); }

/* ─── COOKIE MODAL ───────────────────────────── */
#cookie-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 300ms ease;
  padding: 24px;
}
#cookie-modal-overlay.cookie-visible { opacity: 1; }
#cookie-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 560px; width: 100%;
  padding: 40px;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal-title {
  font-family: 'Cormorant', serif;
  font-size: 24px; font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.cookie-modal-desc {
  font-size: 13px; font-weight: 300;
  color: var(--muted); line-height: 1.7;
  margin-bottom: 28px;
}
.cookie-modal-desc a { color: var(--accent); }
.cookie-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-toggle-row:first-of-type { border-top: 1px solid var(--border); }
.cookie-toggle-label { font-size: 13px; font-weight: 500; color: var(--text); }
.cookie-toggle-sub { font-size: 11px; font-weight: 300; color: var(--muted); margin-top: 2px; }
.cookie-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-switch-track {
  position: absolute; inset: 0;
  background: #ccc; border-radius: 24px;
  transition: background 200ms ease; cursor: pointer;
}
.cookie-switch-track::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 200ms ease;
}
.cookie-switch input:checked + .cookie-switch-track { background: #1a2e45; }
.cookie-switch input:checked + .cookie-switch-track::after { transform: translateX(20px); }
.cookie-switch input:disabled + .cookie-switch-track { background: #1a2e45; opacity: 0.5; cursor: not-allowed; }
.cookie-modal-btns {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 28px;
}
.cookie-modal-btns button {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 0px; padding: 13px 24px;
  cursor: pointer; border: none; transition: opacity 200ms, transform 200ms;
  box-sizing: border-box;
}
.cookie-modal-btns button:hover { opacity: 0.82; transform: translateY(-1px); }
#cookie-btn-all { background: #1a2e45; color: #fff; }
#cookie-btn-selection { background: transparent; color: #1a2e45; border: 1.5px solid #1a2e45 !important; }
#cookie-btn-necessary { background: transparent; color: #1a2e45; border: 1.5px solid #1a2e45 !important; }
@media (max-width: 600px) {
  #cookie-modal { padding: 28px 20px; }
}

/* ─── SMALL PHONES (≤ 480px) ─────────────────────── */
@media (max-width: 480px) {
  /* Tighter container */
  .container { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }

  /* Hero */
  .hero-container { top: auto; bottom: 48px; transform: none; padding: 0 16px; }
  .hero-text h1 { font-size: clamp(28px, 9vw, 44px); }

  /* Page hero */
  .page-hero { padding: 100px 0 24px; min-height: 280px; }
  .page-hero-inner { padding: 0 16px; }
  .page-hero-inner h1 { font-size: clamp(28px, 8vw, 44px); }
  .page-hero p { font-size: 13px; }

  /* Contact hero */
  .contact-hero-text-outer { padding: 0 16px; }
  .contact-hero-text h1 { font-size: clamp(28px, 9vw, 44px); }
  .contact-hero { min-height: 320px; height: 55vh; }

  /* Compare table — even tighter on small phones */
  .compare-table { min-width: unset; font-size: 9px; }
  .compare-table tbody td { padding: 8px 4px; font-size: 9px; }
  .compare-table thead th { padding: 8px 4px; font-size: 9px; }
  .compare-feature-col { width: 40%; font-size: 8px; text-align: left !important; padding-left: 4px !important; }
  .compare-table tbody td:first-child { font-size: 8px; padding-left: 4px !important; }

  /* Pricing */
  .pricing-card { padding: 28px 18px; }
  .pricing-card--featured { padding: 32px 18px; }
  .pricing-grid { max-width: 100%; }
  .pricing-price span { font-size: 28px; }
  .pricing-list li { font-size: 13px; }

  /* Contact person */
  .contact-person-photo { width: 72px; height: 72px; }
  .contact-person-name { font-size: 17px; }

  /* CTA banner */
  #cta-banner { padding: 64px 16px; }
  .cta-banner-inner h2 { font-size: clamp(26px, 8vw, 40px); }

  /* Footer */
  footer { padding: 32px 16px; }
  .footer-nav { gap: 20px; }
  .footer-inner { gap: 20px; }

  /* USP grid */
  .usp-grid { gap: 20px; }
  .usp-item { padding: 24px 20px; }

  /* Service sections */
  .service-expanded { padding: 56px 0; }
  .service-expanded-body { gap: 20px; }

  /* FAQ */
  h2 + .faq-list { margin-top: 28px; }

  /* Misc */
  .section-label { font-size: 10px; }
  .btn-primary, .btn-card { padding: 14px 24px; font-size: 13px; }
}
