/* =========================================================
   CLDC CepatLulus — stylesheet
   Mobile first. Desktop layout starts at 960px.
   ========================================================= */

:root {
  --navy: #0d1b4c;
  --ink: #1c2950;
  --muted: #56627f;
  --blue: #1a7fe0;
  --blue-num: #1565c0;
  --line: #1aa3ea;
  --yellow: #ffc81e;
  --tile: #e2f0fd;
  --shadow: 0 8px 24px rgba(28, 110, 190, 0.11);
  --gutter: 1.15rem;
  --display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  font-size: clamp(13px, 3.45vw, 16px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.45;
  background:
    radial-gradient(120% 45% at 110% 18%, #dcefff 0%, rgba(220, 239, 255, 0) 60%),
    radial-gradient(90% 40% at -20% 55%, #dbeffc 0%, rgba(219, 239, 252, 0) 60%),
    linear-gradient(180deg, #f5faff 0%, #eef7fe 100%);
  background-attachment: fixed;
}

img { max-width: 100%; }
a { color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ico svg,
.cta svg,
.burger svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-radius: 0 0 1.4rem 1.4rem;
  box-shadow: 0 6px 26px rgba(28, 110, 190, 0.1);
}

.topbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 0 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
}

.brand img {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(30, 170, 225, 0.3);
}

.brand-sep {
  width: 2px;
  height: 2.5rem;
  background: var(--navy);
  border-radius: 2px;
}

.brand-text { line-height: 1.05; }

.brand-text b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.32rem;
  letter-spacing: 0.02em;
}

.brand-text span {
  font-size: 0.95rem;
  font-weight: 500;
}

/* Mobile menu (no JavaScript: native <details>) */
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.8rem;
  color: var(--blue);
  cursor: pointer;
}

.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.burger svg { width: 1.9rem; height: 1.9rem; stroke-width: 2.6; }
.burger .x { display: none; }
.menu[open] .burger .bars { display: none; }
.menu[open] .burger .x { display: block; }

.menu-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: var(--gutter);
  width: min(19rem, calc(100vw - 2 * var(--gutter)));
  padding: 0.5rem;
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(13, 27, 76, 0.18);
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  text-decoration: none;
}

.menu-panel a:hover,
.menu-panel a[aria-current="page"] { background: var(--tile); }

.menu-panel .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.6rem;
  background: var(--tile);
  color: var(--blue);
}

.menu-panel a[aria-current="page"] .ico { background: #fff; }
.menu-panel .ico svg { width: 1.2rem; height: 1.2rem; }

.nav-desktop { display: none; }

/* ---------- Page shell ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.layout {
  display: grid;
  grid-template-areas: "title" "hero" "body";
}

.l-title { grid-area: title; }
.l-hero { grid-area: hero; }
.l-body { grid-area: body; }

/* Sparkle helper — three yellow rays */
.spark-l,
.spark-r { position: relative; }

.spark-l::before,
.spark-r::after {
  content: "";
  position: absolute;
  width: 2.2rem;
  height: 2.2rem;
  background: url("../img/spark.svg") center / contain no-repeat;
  pointer-events: none;
}

.spark-l::before { left: -2.4rem; top: -0.7rem; }
.spark-r::after { right: -2.4rem; top: -0.7rem; transform: scaleX(-1); }

/* ---------- Title block ---------- */
.title {
  text-align: center;
  padding-top: 1.9rem;
}

.title h1,
.display {
  display: inline-block;
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 3.15rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.title h1.spark-l::before { left: -2.6rem; top: -1rem; width: 2.6rem; height: 2.6rem; }
.title h1.spark-r::after { right: -2.6rem; top: -1rem; width: 2.6rem; height: 2.6rem; }

.sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 0.45rem 0 0;
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
}

.sub::before,
.sub::after {
  content: "";
  flex: none;
  width: 2.3rem;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.sub-2 { font-size: 1.3rem; }
.title--md h1 { font-size: 2.75rem; }

/* Service badge used on inner pages */
.badge-row { text-align: center; padding-top: 1.6rem; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 1.7rem 0.5rem 0.55rem;
  background: linear-gradient(180deg, #fff 0%, #f4faff 100%);
  border-radius: 1.15rem;
  box-shadow: var(--shadow);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

.badge .ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2.8rem;
  border-radius: 0.8rem;
  background: var(--tile);
  color: var(--blue);
}

.badge .ico svg { width: 1.8rem; height: 1.8rem; }

.badge--outline {
  position: relative;
  padding: 0.45rem 2rem 0.45rem 0.5rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 1.65rem;
  background: rgba(255, 255, 255, 0.85);
}

.badge--outline .ico { width: 3.6rem; height: 3.1rem; border-radius: 999px; }

.swoosh {
  display: block;
  width: 13rem;
  height: 0.9rem;
  margin: -0.35rem auto 0;
}

/* ---------- Hero illustration ---------- */
.hero {
  margin: 0.6rem calc(-1 * var(--gutter)) 0;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.hero--home img {
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}

.hero--photo { margin-top: 1.1rem; }
.hero--photo img { -webkit-mask-image: none; mask-image: none; }

/* ---------- Home: stats + services ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0.4rem;
  padding: 0.95rem 0;
  background: linear-gradient(180deg, #f4fbff 0%, #e3f2fd 100%);
  border: 1px solid #fff;
  border-radius: 1.1rem;
  box-shadow: 0 6px 18px rgba(28, 110, 190, 0.08);
  text-align: center;
}

.stat + .stat { border-left: 1.5px solid #c5dcee; }

.stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--blue-num);
  line-height: 1.2;
}

.stat span { font-size: 0.95rem; color: var(--muted); }

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 0.85rem;
}

.svc {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(180deg, #fff 0%, #f3f9fe 100%);
  border: 1px solid #fff;
  border-radius: 1rem;
  box-shadow: 0 5px 16px rgba(28, 110, 190, 0.1);
  font-weight: 700;
  font-size: 1.04rem;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.svc:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(28, 110, 190, 0.16); }

.svc .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.2rem;
  height: 2.85rem;
  border-radius: 0.75rem;
  background: var(--tile);
  color: var(--blue);
}

.svc .ico svg { width: 1.75rem; height: 1.75rem; }

/* ---------- CTA ---------- */
.cta-row {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 1.9rem 0 1.6rem;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: min(100%, 22rem);
  height: 3.45rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #2ccbff 0%, #0aa3ee 48%, #0a84d8 100%);
  box-shadow: 0 12px 24px rgba(8, 130, 215, 0.33), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -3px 0 rgba(0, 80, 160, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 1.42rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 28px rgba(8, 130, 215, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35); }
.cta:active { transform: translateY(0); }
.cta:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.cta .chev { width: 1.7rem; height: 1.7rem; stroke-width: 3; }
.cta .wa { width: 2.2rem; height: 2.2rem; fill: #fff; stroke: none; }

.cta::after {
  content: "";
  position: absolute;
  right: -1.3rem;
  top: -1.75rem;
  width: 2.3rem;
  height: 2.3rem;
  background: url("../img/spark.svg") center / contain no-repeat;
  transform: scaleX(-1);
}

/* ---------- Text card ---------- */
.card {
  position: relative;
  padding: 1.35rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(246, 251, 255, 0.9) 100%);
  border: 1px solid #fff;
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(28, 110, 190, 0.1);
  text-align: center;
}

.card .cta-row { margin-bottom: 0.4rem; }

.lead {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--ink);
}

.lead:last-child { margin-bottom: 0; }
.lead--lg { font-size: 1.25rem; }

.brandword {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.01em;
}

.hl {
  display: inline-block;
  margin: 0.15rem 0 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 0.9rem;
  background: linear-gradient(90deg, #ddeffd 0%, #ebf7ff 100%);
  font-weight: 700;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--navy);
  line-height: 1.25;
}

.hl--plain { font-style: normal; font-weight: 500; }
.hl--plain .brandword { margin-right: 0.15rem; }
.hl--wide { display: block; margin-left: 0.4rem; margin-right: 0.4rem; }

.marker {
  padding: 0 0.3rem;
  border-radius: 0.5rem;
  background: linear-gradient(180deg, transparent 18%, #ffe68a 18%, #ffd84a 92%, transparent 92%);
  font-weight: 700;
  font-style: italic;
}

.text-blue { color: var(--blue); }

.quote {
  position: relative;
  margin: 0.4rem 0 1.2rem;
  padding: 0.75rem 1rem 0.95rem;
  border-radius: 1.4rem;
  background: linear-gradient(90deg, #dff0fd 0%, #eef8ff 100%);
  font-weight: 800;
  font-style: italic;
  font-size: 1.55rem;
  color: var(--blue);
  text-align: center;
  line-height: 1.2;
}

.quote .brandword { color: var(--navy); }
.quote q { quotes: "\201C" "\201D"; }
.quote q::before,
.quote q::after { color: var(--navy); }

.quote::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  margin: 0.35rem 0 0 auto;
  margin-right: 20%;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 200, 30, 0) 0%, var(--yellow) 25%, var(--yellow) 85%, rgba(255, 200, 30, 0) 100%);
}

.quote .spark-l::before { left: -1.9rem; top: -1.7rem; }

.punch {
  position: relative;
  margin: 0.6rem 0 0;
  padding: 0.6rem 0;
  font-weight: 800;
  font-style: italic;
  font-size: 1.32rem;
  color: var(--navy);
}

.punch--lined { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin: 0.9rem 0.6rem 0; font-size: 1.2rem; white-space: nowrap; }

.punch span { display: inline-block; }

/* ---------- Sinta / Scopus pill ---------- */
.pubs {
  display: flex;
  justify-content: center;
  margin: 0.6rem 0 1.2rem;
}

.pubs span {
  display: block;
  padding: 0.45rem 1.6rem;
  background: #fff;
  border: 2px solid #d7ecfb;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.7), 0 10px 26px rgba(28, 140, 220, 0.18);
}

.pubs img { display: block; width: 17.5rem; height: auto; mix-blend-mode: multiply; }

/* ---------- Feature trio ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.feat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 7rem;
  padding: 0.9rem 0.35rem;
  background: linear-gradient(180deg, #fff 0%, #f4f9fe 100%);
  border: 1px solid #fff;
  border-radius: 1rem;
  box-shadow: 0 5px 16px rgba(28, 110, 190, 0.1);
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.18;
  color: var(--navy);
}

.feat .ico { color: var(--blue); }
.feat .ico svg { width: 2.7rem; height: 2.7rem; stroke-width: 1.9; }

/* ---------- Testimoni ---------- */
.testi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.phone {
  margin: 0;
  padding: 0.45rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 10px 24px rgba(28, 110, 190, 0.14);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 0.85rem;
}

.phone--bottom img { object-position: bottom; }

/* ---------- Kontak ---------- */
.contacts {
  display: grid;
  gap: 1.5rem;
  margin: 2.6rem 0.6rem 0;
  padding: 0;
  list-style: none;
}

.contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 7.6rem;
  padding: 1rem 1.1rem 1rem 1.3rem;
  background: linear-gradient(180deg, #fff 0%, #f2f8fe 100%);
  border: 1px solid #fff;
  border-radius: 1.8rem;
  box-shadow: 0 12px 28px rgba(28, 110, 190, 0.13);
}

.contact::after {
  content: "";
  position: absolute;
  right: 1.2rem;
  top: -1.2rem;
  width: 2.3rem;
  height: 2.3rem;
  background: url("../img/spark.svg") center / contain no-repeat;
  transform: scaleX(-1);
}

.contact .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, #eef7ff 0%, #e0f0fd 100%);
}

.contact .ico svg { width: 3.4rem; height: 3.4rem; stroke: none; }

.contact .sep {
  flex: none;
  align-self: stretch;
  width: 1.5px;
  margin: 0.6rem 0;
  background: var(--line);
}

.contact ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact a {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.contact a:hover { color: var(--blue); }
.contact--wa a { font-size: 1.55rem; letter-spacing: 0.02em; }

/* ---------- Footer wave ---------- */
.wave {
  display: block;
  width: 100%;
  height: 2.8rem;
  margin-top: 0.4rem;
}

.site-foot {
  margin-top: auto;
  line-height: 0;
}

/* ---------- Mobile & tablet: one screen, no scroll ----------
   Sizes are in rem; rem follows both width and the small viewport height (svh),
   so text and spacing shrink on short phones. The hero illustration then takes
   whatever height is left. If a screen is too short even for that, the hero
   stops at a minimum height and the page scrolls. */
@media (max-width: 959px) {
  html { font-size: min(clamp(12px, 3.45vw, 16px), calc(100vh / 54)); }
  @supports (height: 100svh) {
    html { font-size: min(clamp(12px, 3.45vw, 16px), calc(100svh / 54)); }
    body { min-height: 100svh; }
  }

  main { display: flex; flex-direction: column; flex: 1 0 auto; }

  .layout { display: flex; flex-direction: column; flex: 1 0 auto; }
  .l-title, .l-body { flex: none; }

  .l-hero {
    position: relative;
    flex: 1 1 0;
    min-height: 9rem;
  }

  .l-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* tighter vertical rhythm so the hero keeps most of the screen */
  .title { padding-top: 1.25rem; }
  .badge-row { padding-top: 1.1rem; }
  .hero { margin-top: 0.4rem; }
  .hero--photo { margin-top: 0.7rem; }
  .stats { padding: 0.7rem 0; }
  .cta-row { margin: 1.25rem 0 1rem; }
  .cta { height: 3.25rem; }
  .services { gap: 0.6rem 0.75rem; }
  .svc { min-height: 3.6rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
  .card { padding: 1.05rem 1rem; }
  .card .cta-row { margin: 1rem 0 0.2rem; }
  .lead { margin-bottom: 0.6rem; }
  .hl { margin: 0.1rem 0 0.7rem; }
  .quote { margin: 0.3rem 0 0.9rem; }
  .pubs { margin: 0.4rem 0 0.8rem; }
  .features { margin-top: 0.2rem; }
  .feat { min-height: 5.3rem; padding: 0.6rem 0.3rem; gap: 0.35rem; }
  .feat .ico svg { width: 2.3rem; height: 2.3rem; }
  .lead--lg { font-size: 1.16rem; }
  .quote { font-size: 1.42rem; }
  .wave { height: 2.4rem; margin-top: 0; }

  /* testimoni: the four screenshots share the free height */
  .layout--stack .l-body { display: flex; flex-direction: column; flex: 1 0 auto; }
  .testi {
    flex: 1 1 0;
    min-height: 20rem;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    margin-top: 1.1rem;
    gap: 0.75rem;
  }
  .testi li { position: relative; }
  .phone { position: absolute; inset: 0; display: flex; }
  .phone img { height: 100%; aspect-ratio: auto; }

  /* kontak: cards sit in the middle of the free height */
  .contacts { flex: 1 0 auto; align-content: center; margin-top: 1.2rem; gap: 1.3rem; }
  .contact { min-height: 6.6rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
}

/* ---------- Tablet: framed column ---------- */
@media (min-width: 600px) {
  .hero img {
    -webkit-mask-image:
      linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%),
      linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
            mask-composite: intersect;
  }

  .hero--photo img { -webkit-mask-image: none; mask-image: none; }
  .hero--photo img { border-radius: 1.6rem; }
  .hero--photo { margin-left: 0; margin-right: 0; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  /* Every desktop size is in rem, and rem follows the viewport height,
     so each page fits inside 100vh (full 16px from ~740px tall). */
  html { font-size: clamp(11px, calc(100vh / 46), 16px); }

  :root { --gutter: 2rem; }

  .topbar { border-radius: 0 0 1.6rem 1.6rem; }
  .topbar-inner { height: 4.6rem; padding: 0 2rem; }

  .menu { display: none; }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.2rem;
  }

  .nav-desktop a {
    padding: 0.5rem 0.7rem;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-desktop a:hover { background: var(--tile); }
  .nav-desktop a[aria-current="page"] { color: var(--blue); background: var(--tile); }
  .brand { flex: none; }

  main { max-width: 1200px; padding: 0 2rem; }

  .layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-areas: "hero title" "hero body";
    grid-template-rows: auto 1fr;
    column-gap: 3.5rem;
    align-items: start;
    padding: 2rem 0 0.75rem;
  }

  .l-hero { align-self: center; }
  .l-title { align-self: end; }

  .hero { margin: 0; }
  .hero img {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    margin: 0 auto;
    border-radius: 2rem;
  }
  .hero--home img { border-radius: 0; }

  .title { padding-top: 0; }
  .title h1, .display { font-size: 3.6rem; }
  .badge-row { padding-top: 0; }

  .l-body > .cta-row { margin: 2rem 0 2rem; }
  .l-body > .cta-row:last-child { margin-bottom: 0; }
  .services { gap: 1rem 1.1rem; }
  .svc { min-height: 4.2rem; }

  /* stacked pages (testimoni, kontak) */
  .layout--stack {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "body";
    max-width: 1100px;
    margin: 0 auto;
  }

  /* card height comes from the space left in the viewport; width follows the 10:16 ratio */
  .testi {
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    gap: 1.4rem;
    margin-top: 1.6rem;
  }

  .phone img {
    width: auto;
    height: min(calc(100vh - 26rem), 30rem);
  }

  .contacts {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin: 2.8rem 0 0;
  }

  .contact {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.2rem;
  }

  .contact .sep { align-self: center; width: 3rem; height: 1.5px; margin: 0.2rem 0; }
  .contact a { font-size: 1.05rem; }
  .contact--wa a { font-size: 1.3rem; }

  .wave { height: 4rem; }
}

/* small desktops: 9 links do not fit next to the logo, so tighten the menu
   and drop "Home" (the logo already links home) */
@media (min-width: 960px) and (max-width: 1199px) {
  .nav-desktop { gap: 0; }
  .nav-desktop a { padding: 0.45rem 0.5rem; font-size: 0.82rem; }
  .nav-desktop a[href="index.html"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .svc, .cta { transition: none; }
}
