/* ==========================================================================
   Levin Puskutyöt – uudistettu ilme
   Yksi kirjasinperhe (Archivo, leveysakseli 62–125 %), logon värit,
   suorakulmaiset kuvat, logon puolikaari pienenä merkkinä.
   ========================================================================== */

:root {
  /* Värit */
  --night: #0b1a21;        /* yö – brändin tummansininen */
  --night-deep: #07131a;   /* footer */
  --snow: #f4f3ef;         /* lumi – sivun pohja */
  --gravel: #e6e2d9;       /* sora – toissijainen pohja */
  --cyan: #5bcadb;         /* logon tunturi */
  --cyan-deep: #0d6d7a;    /* syaani tekstinä vaalealla */
  --ink: #0b1a21;
  --ink-2: #2c3943;
  --ink-3: #56616a;
  --line: rgba(11, 26, 33, 0.16);
  --line-strong: rgba(11, 26, 33, 0.85);
  --line-dark: rgba(255, 255, 255, 0.18);
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-2: rgba(255, 255, 255, 0.7);

  /* Typografia */
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Mitat */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2.4vw, 32px);
  --section: clamp(80px, 9.5vw, 144px);
  --header-h: 84px;
  --callbar-h: 0px;
}

/* --------------------------------------------------------------------------
   Perusta
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  padding-bottom: var(--callbar-h);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink-2);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 1.9vw, 1.625rem); line-height: 1.18; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; max-width: 64ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.25rem, 1.6vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink);
}

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--cyan); color: var(--night);
  font-weight: 650; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Rakenne
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--gravel { background: var(--gravel); }
.section--dark { background: var(--night); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.media { position: relative; overflow: hidden; background: var(--gravel); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Pieni yläotsake, edessä logon puolikaari */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
}
.kicker::before {
  content: "";
  flex: none;
  width: 16px; height: 8px;
  border-radius: 16px 16px 0 0;
  background: var(--cyan);
}

/* --------------------------------------------------------------------------
   Painikkeet ja linkit
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 28px;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--cyan { background: var(--cyan); color: var(--night); }
.btn--cyan:hover { background: #fff; }
.btn--dark { background: var(--night); color: #fff; }
.btn--dark:hover { background: var(--cyan-deep); }
.btn--line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: text-underline-offset .2s ease;
}
.link-arrow:hover { text-underline-offset: 10px; }

/* Luettelo: hiusviivat ja puolikaarimerkki */
.list li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.3em;
  width: 12px; height: 6px;
  border-radius: 12px 12px 0 0;
  background: var(--cyan);
}
.section--dark .list li { border-color: var(--line-dark); color: #fff; }

.list--cols { columns: 2; column-gap: var(--gap); border-bottom: 1px solid var(--line); }
.list--cols li { break-inside: avoid; }
.list--cols li:last-child { border-bottom: 0; }
.section--dark .list--cols { border-color: var(--line-dark); }

.list--large li { font-size: clamp(1.125rem, 1.4vw, 1.25rem); color: var(--ink); font-weight: 500; padding-block: 17px; }
.list--large li::before { top: 1.45em; }

/* --------------------------------------------------------------------------
   Ylätunniste
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: #fff;
  transition: background-color .3s ease;
}
.site-header::before {
  /* luettavuus kuvan päällä ennen vierittämistä */
  content: "";
  position: absolute; inset: 0 0 -40px 0;
  background: linear-gradient(to bottom, rgba(7, 19, 26, .55), rgba(7, 19, 26, 0));
  pointer-events: none;
  transition: opacity .3s ease;
}
.site-header.is-solid,
body.menu-open .site-header { background: var(--night); }
.site-header.is-solid::before,
body.menu-open .site-header::before { opacity: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-h);
  transition: height .3s ease;
}
.site-header.is-solid .header-inner { height: 68px; }

.brand { flex: none; display: block; }
.brand img { height: 58px; width: auto; transition: height .3s ease; }
.site-header.is-solid .brand img { height: 46px; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 28px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 1rem;
  font-weight: 550;
  text-decoration: none;
  color: rgba(255, 255, 255, .88);
  transition: color .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 18px; height: 18px; color: var(--cyan); }
.header-phone:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 5px; }
.header-cta { padding: 13px 20px; font-size: 0.9375rem; }

.menu-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 24px; height: 10px; }
.menu-toggle__icon::before, .menu-toggle__icon::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .25s ease, top .25s ease;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--night);
  color: #fff;
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul { border-top: 1px solid var(--line-dark); }
.mobile-menu li { border-bottom: 1px solid var(--line-dark); }
.mobile-menu ul a {
  display: block;
  padding: 18px 0;
  font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-decoration: none;
}
.mobile-menu ul a[aria-current="page"] { color: var(--cyan); }
.mobile-menu__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 12px; }
.mobile-menu__foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7, 19, 26, .5) 0, rgba(7, 19, 26, 0) 180px),
    linear-gradient(to top, rgba(7, 19, 26, .84) 0%, rgba(7, 19, 26, .45) 42%, rgba(7, 19, 26, 0) 70%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(40px, 5.5vw, 80px);
}
.hero h1 { color: #fff; }

.hero--home { min-height: max(600px, min(calc(100svh - var(--callbar-h)), 1000px)); }
.hero--home .hero__img { object-position: 30% 40%; }
.display {
  font-size: clamp(3.25rem, 10vw, 9.5rem);
  font-stretch: 112%;
  font-weight: 820;
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.hero__lead {
  max-width: 30ch;
  margin: 28px 0 36px;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.hero__actions .link-arrow { color: #fff; }

.hero--page { min-height: clamp(460px, 72svh, 760px); }
.page-title {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  font-stretch: 106%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

/* --------------------------------------------------------------------------
   Etusivu
   -------------------------------------------------------------------------- */

/* Esittely */
.intro { row-gap: 40px; align-items: start; }
.intro h2 { grid-column: 1 / 8; }
.intro__text { grid-column: 1 / 7; }
.intro__text .lead { margin-bottom: 1em; }
.intro__media { grid-column: 9 / 13; grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.award { margin-top: 32px; }
.award img { width: 260px; height: auto; }

/* Palvelut korteittain: kolme tavallista palstaa kuten painetussa
   esitteessä – kuva, otsikko, teksti, luettelo ja linkki allekkain.
   Ei laatikkoa, ei korostuspalkkia, ei hover-efektejä. */
.services__title { margin-bottom: clamp(36px, 4vw, 56px); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.card__media { aspect-ratio: 3 / 2; margin-bottom: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 20px; font-size: 1.0625rem; color: var(--on-dark); }
.card .list { margin-bottom: 24px; }
.card .list li { padding: 4px 0 4px 24px; border: 0; font-size: 1rem; }
.card .list li::before { top: 0.78em; }
.card .link-arrow { justify-self: start; align-self: start; color: #fff; }

/* Sitaatti + maisema: pinnat reunasta reunaan, teksti samassa linjassa
   kuin muu sisältö (vasen reuna = sisältöalueen vasen reuna) */
.quote-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(420px, 40vw, 600px);
}
.quote-split__text {
  display: flex;
  align-items: center;
  background: var(--cyan);
  padding-block: clamp(56px, 6vw, 104px);
  padding-left: max(var(--gutter), calc(100% - var(--container) / 2));
  padding-right: clamp(32px, 5vw, 88px);
}
.quote-split .media { min-height: 100%; }
.quote-split .media img { position: absolute; inset: 0; object-position: center 62%; }

.quote { margin: 0; }
.quote p {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(1.9rem, 3.4vw, 3.25rem);
  font-weight: 720;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
  color: var(--night);
}
.quote strong { font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; }

/* Alasivujen sitaattinauha */
.quote-band { background: var(--cyan); color: var(--night); padding-block: clamp(72px, 8vw, 128px); }
.quote--small p { max-width: 30ch; font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.1; }

/* Kaksi laatulupausta porrastettuna */
.duo { row-gap: 64px; align-items: start; }
.duo__item h2 { font-size: clamp(1.75rem, 2.8vw, 2.4rem); margin: 0 0 20px; }
.duo__item .media { margin-bottom: 32px; }
.duo__item:first-child { grid-column: 1 / 8; }
.duo__item:last-child { grid-column: 9 / 13; margin-top: clamp(0px, 14vw, 220px); }
.duo__item:first-child .media { aspect-ratio: 5 / 4; }
.duo__item:last-child .media { aspect-ratio: 1 / 1; }

/* Kalusto */
.fleet { row-gap: 56px; align-items: start; }
.fleet__intro { grid-column: 1 / 6; }
.fleet__intro h2 { font-size: clamp(2.5rem, 5vw, 4.25rem); margin-bottom: 24px; }
.fleet__intro .media { margin-top: 44px; aspect-ratio: 4 / 3; }
.fleet__specs { grid-column: 7 / 13; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-strong);
}
.stat { padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: var(--gap); border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: var(--gap); }
.stat__num {
  display: block;
  font-size: clamp(4.5rem, 9vw, 8.25rem);
  font-stretch: 62%;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.03em;
  color: var(--night);
}
.stat__label {
  display: block;
  margin-top: 14px;
  font-size: 1.125rem;
  font-weight: 550;
  line-height: 1.3;
  color: var(--ink);
}
.fleet__more { margin-top: 44px; }

/* --------------------------------------------------------------------------
   Alasivut
   -------------------------------------------------------------------------- */

.split { row-gap: 48px; align-items: center; }
.split__media { grid-column: 1 / 6; aspect-ratio: 4 / 5; }
.split__text { grid-column: 7 / 13; }
.split--reverse .split__media { grid-column: 8 / 13; grid-row: 1; }
.split--reverse .split__text { grid-column: 1 / 7; grid-row: 1; }
.split__text h2 { margin-bottom: 30px; }

.list-section { row-gap: 56px; align-items: start; }
.list-section__text { grid-column: 1 / 7; }
.list-section__text h2 { margin-bottom: 36px; }
.list-section__media { grid-column: 8 / 13; }
.list-section__media > .media { aspect-ratio: 4 / 5; }
.list-section .btn { margin-top: 44px; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pair .media { aspect-ratio: 3 / 4; }
.pair .media:last-child { margin-top: clamp(0px, 8vw, 120px); }

.statement { row-gap: 32px; }
.statement h2 { grid-column: 1 / 6; }
.statement__text { grid-column: 7 / 13; }

/* Maa-ainekset */
.materials { row-gap: 56px; align-items: start; }
.materials__intro { grid-column: 1 / 5; position: sticky; top: 100px; }
.materials__intro h2 { margin-bottom: 24px; }
.materials__intro .media { margin-top: 40px; aspect-ratio: 4 / 3; }
.materials__table-wrap { grid-column: 6 / 13; }

.mat-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mat-table th {
  padding: 0 16px 14px 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line-strong);
}
.mat-table td {
  padding: 20px 16px 20px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}
.mat-table td:first-child { font-weight: 650; color: var(--ink); width: 32%; }
.mat-table td:nth-child(2) { white-space: nowrap; color: var(--ink); font-weight: 550; width: 18%; }
.mat-table .na { color: var(--ink-3); }

/* Yhteystiedot-sivu */
.contact-main { row-gap: 56px; align-items: start; }
.contact-main__text { grid-column: 1 / 6; }
.contact-main__text h2 { margin-bottom: 30px; }
.contact-card { grid-column: 7 / 13; background: var(--night); color: var(--on-dark); padding: clamp(28px, 4vw, 56px); }
.contact-card .kicker { color: #fff; }
.contact-card__email {
  display: inline-block;
  margin: 4px 0 32px;
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 3px;
  text-underline-offset: 10px;
  overflow-wrap: anywhere;
}
.contact-card__person { padding-top: 24px; border-top: 1px solid var(--line-dark); }
.contact-card__person strong { display: block; color: #fff; font-size: 1.25rem; font-weight: 650; }
.contact-card__person a {
  display: inline-block; margin-top: 4px;
  color: #fff; font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 720; letter-spacing: -0.02em;
  text-decoration: none; font-variant-numeric: tabular-nums;
}
.contact-card__person a:hover { text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 8px; }

.billing { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.billing h3 { color: #fff; font-size: 1.125rem; font-weight: 650; letter-spacing: 0; margin-bottom: 14px; }
.billing dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 28px; margin: 0; font-variant-numeric: tabular-nums; }
.billing dt { color: var(--on-dark-2); }
.billing dd { margin: 0; color: #fff; font-weight: 550; }

/* --------------------------------------------------------------------------
   Alatunniste
   -------------------------------------------------------------------------- */

.site-footer { background: var(--night-deep); color: var(--on-dark); padding-top: clamp(56px, 6vw, 80px); font-size: 1rem; }

.footer-main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 40px;
  padding-bottom: clamp(40px, 4.5vw, 56px);
}
.footer-contact { grid-column: 1 / 5; }
.footer-contact h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(1.5rem, 2.1vw, 1.875rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.footer-direct { margin: 0; font-size: 1.125rem; line-height: 1.8; }
.footer-direct a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; font-variant-numeric: tabular-nums; }
.footer-direct a:hover { color: var(--cyan); }

.footer-aside { grid-column: 6 / 13; }
.footer-people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
.person h3 { margin-bottom: 6px; color: #fff; font-size: 1.0625rem; font-weight: 650; letter-spacing: 0; }
.person a {
  display: block;
  width: fit-content;
  color: var(--on-dark-2);
  text-decoration: none;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.person a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px clamp(24px, 3vw, 48px);
  padding-block: 24px 28px;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}
.footer-logo img { width: 56px; height: auto; }
.footer-company { margin: 0; line-height: 1.45; }
.footer-company strong { color: #fff; font-weight: 650; }
.footer-sitemap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-left: auto; }
.footer-sitemap h3 { color: #fff; font-size: 0.9375rem; font-weight: 650; letter-spacing: 0; }
.footer-sitemap ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-sitemap a { text-decoration: none; }
.footer-sitemap a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dark);
}
.badges img { height: 64px; width: auto; }
.badges .badge-aaa { height: 88px; }

/* Mobiilin soittopalkki */
.callbar { display: none; }

/* --------------------------------------------------------------------------
   Responsiivisuus
   -------------------------------------------------------------------------- */

@media (min-width: 1280px) {
  .header-phone { display: inline-flex; }
}

@media (max-width: 1140px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

@media (max-width: 1060px) {
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card + .card { padding-top: 40px; border-top: 1px solid var(--line-dark); }
  .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto auto auto 1fr; column-gap: var(--gap); }
  .card__media { grid-row: 1 / -1; align-self: start; margin-bottom: 0; }
  .card > :not(.card__media) { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --callbar-h: 72px; }
  .brand img { height: 48px; }

  .grid > * { grid-column: 1 / -1 !important; grid-row: auto !important; }

  .intro__media { max-width: 480px; width: 100%; }


  .quote-split { grid-template-columns: 1fr; min-height: 0; }
  .quote-split__text { padding-inline: var(--gutter); }
  .quote-split .media { min-height: 0; aspect-ratio: 16 / 10; }

  .duo__item:last-child { margin-top: 0; }
  .duo__item .media { max-width: 640px; }

  .materials__intro { position: static; }
  .materials__intro .media { max-width: 560px; }

  .split__media { max-width: 480px; width: 100%; }
  .list-section__media > .media { aspect-ratio: 4 / 3; }

  .footer-contact, .footer-aside { grid-column: 1 / -1; }
  .footer-sitemap { margin-left: 0; }

  .callbar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 45;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
    background: var(--night);
    border-top: 1px solid var(--line-dark);
  }
  .callbar .btn { padding: 15px 12px; }
  body.menu-open .callbar { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1.0625rem; line-height: 1.68; }
  .list--cols { columns: 1; border-bottom: 0; }
  .list--cols li:last-child { border-bottom: 1px solid var(--line); }
  .section--dark .list--cols li:last-child { border-color: var(--line-dark); }

  .hero__actions .btn { width: 100%; }

  .card { display: block; }
  .card__media { margin-bottom: 24px; }

  .stat__num { font-size: clamp(4rem, 22vw, 6rem); }

  .mat-table thead { display: none; }
  .mat-table, .mat-table tbody, .mat-table tr, .mat-table td { display: block; width: auto !important; }
  .mat-table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .mat-table tr:first-child { border-top: 1px solid var(--line-strong); }
  .mat-table td { padding: 0; border: 0; }
  .mat-table td:nth-child(2) { margin: 2px 0 6px; color: var(--cyan-deep); }
  .mat-table td:nth-child(2).na { display: none; }

  .pair .media:last-child { margin-top: 48px; }
  .footer-people { grid-template-columns: 1fr; gap: 24px; }
  .badges { gap: 16px; }
  .badges img { height: 48px; }
  .badges .badge-aaa { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
