/* =========================================================
   Andres Trafikskola — shared stylesheet
   Fonts: Poppins (headings) + Open Sans (body) via Google
   ========================================================= */

/* --- Reset & box model ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* --- Custom properties ---------------------------------- */
:root {
  --c-primary:       #363636;
  --c-primary-h:     #4D4D4D;
  --c-primary-dark:  #1A1A1A;
  --c-accent:        #F97316;
  --c-text:          #0F172A;
  --c-text-sec:      #475569;
  --c-bg:            #FFFFFF;
  --c-bg-soft:       #F5F5F5;
  --c-bg-dark:       #0F172A;
  --c-border:        #E2E8F0;
  --c-star:          #F59E0B;

  --f-head: 'Poppins', sans-serif;
  --f-body: 'Open Sans', sans-serif;

  --sh-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --sh-md: 0 4px 12px rgba(0,0,0,.1);
  --sh-lg: 0 8px 32px rgba(0,0,0,.12);

  --r:    8px;
  --r-lg: 16px;
  --mw:   1200px;
  --sp:   clamp(3rem, 6vw, 5rem);
}

/* --- Base typography ------------------------------------ */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { max-width: 65ch; }

/* --- Layout helpers ------------------------------------- */
.container {
  width: min(var(--mw), 100%);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: var(--sp); }
#priser, #kontakt, #recensioner { scroll-margin-top: 64px; }
.section--soft { background: var(--c-bg-soft); }
.section--dark { background: var(--c-primary); color: #fff; }
.section--ink  { background: var(--c-bg-dark); color: #fff; }

.text-center { text-align: center; }
.text-center p { margin-inline: auto; }

/* section label above heading */
.eyebrow {
  display: inline-block;
  font-family: var(--f-head);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .5rem;
}
.section--dark .eyebrow,
.section--ink  .eyebrow { color: #C0C0C0; }

.section-head { margin-bottom: 2.5rem; }
.section-head h2 { margin-top: .25rem; }
.section-head p  { margin-top: .75rem; color: var(--c-text-sec); }
.section--dark .section-head h2,
.section--ink  .section-head h2 { color: #fff; }
.section--dark .section-head p,
.section--ink  .section-head p { color: #CBD5E1; }

/* --- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--r);
  font-family: var(--f-head);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background .18s, color .18s, box-shadow .18s, transform .1s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--c-primary-h); box-shadow: var(--sh-md); }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  box-shadow: inset 0 0 0 2px var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: #fff; }

.btn-white {
  background: #fff;
  color: var(--c-primary);
}
.btn-white:hover { background: #F0F4FF; box-shadow: var(--sh-md); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.7);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); }

.btn-sm { padding: .5rem 1rem; font-size: .875rem; }

/* --- Header / Nav --------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-primary);
  box-shadow: var(--sh-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
  position: relative;
}

.logo img { height: 40px; width: auto; filter: brightness(0) invert(1); }

/* CSS-only mobile nav */
.nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

.main-nav { margin-left: auto; }

.main-nav ul {
  display: flex;
  gap: .25rem;
  align-items: center;
}

.main-nav a {
  padding: .5rem .75rem;
  border-radius: var(--r);
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  transition: background .15s, color .15s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.header-cta { flex-shrink: 0; }

/* Mobile nav */
@media (max-width: 768px) {
  .nav-burger { display: flex; }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--c-primary);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--sh-md);
    margin-left: 0;
    padding: 1rem;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }

  .main-nav ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .main-nav a { display: block; padding: .75rem 1rem; }
  /* logo [space from burger's auto-margin] burger | CTA */
  .header-cta { flex-shrink: 0; }
}

/* --- Hero ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(54, 54, 54, .82) 0%,
    rgba(54, 54, 54, .65) 60%,
    rgba(54, 54, 54, .45) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5rem);
  text-align: center;
}

.hero-content h1 { color: #fff; font-size: clamp(2.25rem, 6vw, 3.5rem); }

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,255,255,.9);
  margin-top: .75rem;
  max-width: 50ch;
  margin-inline: auto;
}

.hero-tagline {
  display: inline-block;
  font-family: var(--f-head);
  font-size: .9375rem;
  font-weight: 600;
  color: #C0C0C0;
  margin-top: .5rem;
  font-style: italic;
}

.hero-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.25rem;
}
.hero-langs span {
  padding: .3rem .75rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: 2rem;
}

/* --- Trust bar ------------------------------------------ */
.trust-bar {
  background: var(--c-primary);
  padding-block: 1.25rem;
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .625rem;
  color: #fff;
}
.trust-item svg { flex-shrink: 0; color: #C0C0C0; }
.trust-item strong { font-family: var(--f-head); font-weight: 600; font-size: .9375rem; }
.trust-item span   { font-size: .875rem; color: rgba(255,255,255,.75); }

/* --- Om oss -------------------------------------------- */
.om-oss-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .om-oss-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.om-oss-text .section-head { margin-bottom: 1.25rem; }
.om-oss-text p + p { margin-top: .875rem; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}
.pill {
  padding: .375rem .875rem;
  background: #EBEBEB;
  color: var(--c-primary);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
  font-family: var(--f-head);
  border: 1px solid #D0D0D0;
}

.om-oss-image { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.om-oss-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.om-oss-image video {
  width: 100%;
  display: block;
}

.om-oss-cta { margin-top: 2rem; }

/* --- Möt André ----------------------------------------- */
.andre-wrap {
  max-width: 680px;
  margin-inline: auto;
}

.andre-title {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 600;
  font-family: var(--f-head);
  color: var(--c-primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding: .375rem .875rem;
  background: #EBEBEB;
  border-radius: 999px;
  border: 1px solid #D0D0D0;
}

.andre-wrap h2 { margin-bottom: 1.25rem; }

.andre-quote {
  border-left: 3px solid var(--c-accent);
  padding: 1rem 1.25rem;
  background: var(--c-bg-soft);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--c-text);
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: none;
}

.andre-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  margin-top: 1.5rem;
  margin-inline: auto;
  border: 3px solid var(--c-border);
  box-shadow: var(--sh-md);
}
.andre-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.andre-name-label {
  font-size: .875rem;
  color: var(--c-text-sec);
  font-family: var(--f-head);
  font-weight: 600;
  text-align: center;
  margin-top: .625rem;
  margin-inline: auto;
}

/* --- Vad skiljer oss ------------------------------------
   Desktop/tablet (>768px): static, no accordion chrome.
   Mobile (≤768px): header becomes a tappable navy bar with
   an orange chevron badge; panel collapses. JS (inline,
   next to the section markup) toggles aria-expanded / the
   .is-collapsed class based on matchMedia(≤768px); CSS ships
   the panel open by default so it fails open without JS. --- */
.skiljer-wrap {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.skiljer-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.skiljer-header h2 { margin: 0; }

.skiljer-chevron {
  display: none;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249, 115, 22, .12);
  color: var(--c-accent);
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}

.skiljer-panel { margin-top: 1.5rem; }
.skiljer-panel p {
  color: var(--c-text-sec);
  line-height: 1.75;
  max-width: none;
  margin-inline: auto;
}
.skiljer-panel p + p { margin-top: 1rem; }
.skiljer-panel .btn { margin-top: 1.75rem; }

@media (max-width: 768px) {
  .skiljer-header {
    justify-content: space-between;
    background: var(--c-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--r-lg);
    cursor: pointer;
  }
  .skiljer-header h2 { color: #fff; font-size: 1.125rem; text-align: left; }

  .skiljer-chevron { display: flex; }
  .skiljer-header[aria-expanded="true"] .skiljer-chevron { transform: rotate(180deg); }

  .skiljer-panel {
    max-height: 1000px;
    overflow: hidden;
    background: var(--c-bg-soft);
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    padding: 1.5rem 1.25rem .25rem;
    transition: max-height .35s ease, padding-block .35s ease, margin-top .35s ease;
  }
  .skiljer-panel.is-collapsed {
    max-height: 0;
    padding-block: 0;
    margin-top: 0;
  }
}

/* --- Välj din utbildning -------------------------------- */
.utbildning-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 1100px;
  margin-inline: auto;
  margin-top: 2.5rem;
}

.utb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 300px;
  padding: 2rem;
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--c-text);
  box-shadow: var(--sh-lg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.utb-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}

.utb-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
}

.utb-card-body {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.utb-card-body h3 { font-size: 1.375rem; color: var(--c-text); }

.utb-card-sub {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-text-sec);
}

.utb-card-link {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-primary);
  margin-top: .375rem;
  transition: gap .15s, color .15s;
}
.utb-card-link:hover {
  gap: .6rem;
  color: var(--c-primary-dark);
}

@media (max-width: 768px) {
  .utbildning-cards { grid-template-columns: 1fr; }
  .utb-card { min-height: 250px; padding: 1.75rem; }
}

/* --- Priser -------------------------------------------- */
.priser-wrapper {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2.5rem;
}

.priser-tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  padding: .875rem .875rem 0;
  gap: .5rem;
}

.priser-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .9375rem;
  color: var(--c-text-sec);
  border-radius: var(--r) var(--r) 0 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.priser-tab:hover  { color: var(--c-text); background: rgba(0,0,0,.03); }
.priser-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.priser-panel {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.priser-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-radius: var(--r);
  margin-bottom: .5rem;
  transition: box-shadow .15s;
}
.priser-row:hover { box-shadow: var(--sh-sm); }

.priser-row-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  min-width: 0;
}

.priser-name {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--c-text);
}

.priser-detail {
  font-size: .875rem;
  color: var(--c-text-sec);
  line-height: 1.4;
}

.priser-save {
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-top: .1rem;
}

.priser-amount {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--c-text);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.priser-amount small {
  font-size: .75rem;
  font-weight: 400;
  color: var(--c-text-sec);
  margin-left: .125rem;
}

.priser-row--featured { border-left: 3px solid var(--c-accent); }

.priser-row--best {
  background: var(--c-primary);
  position: relative;
  padding-top: 2.75rem;
  margin-top: .25rem;
}
.priser-row--best:hover                { box-shadow: var(--sh-md); }
.priser-row--best .priser-name         { color: #fff; }
.priser-row--best .priser-amount       { color: #fff; }
.priser-row--best .priser-amount small { color: rgba(255,255,255,.6); }
.priser-row--best .priser-detail       { color: rgba(255,255,255,.65); }
.priser-row--best .priser-save         { color: #FDBA74; }

.priser-badge {
  position: absolute;
  top: .75rem;
  left: 1.25rem;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--f-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .2rem .625rem;
  border-radius: 999px;
}

.priser-row--addon {
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  padding-block: .75rem;
}
.priser-row--addon:hover                { box-shadow: none; }
.priser-row--addon + .priser-row--addon { border-top: 1px solid var(--c-border); }
.priser-row--addon .priser-name         { font-size: .9375rem; }
.priser-row--addon .priser-amount       { font-size: 1rem; }

.priser-divider {
  position: relative;
  text-align: center;
  margin: 1.25rem 0 .75rem;
}
.priser-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--c-border);
}
.priser-divider span {
  position: relative;
  background: var(--c-bg-soft);
  padding: 0 .75rem;
  font-family: var(--f-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--c-text-sec);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.priser-note {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  padding: .875rem 1rem;
  background: rgba(0,0,0,.04);
  border-radius: var(--r);
  font-size: .8125rem;
  color: var(--c-text-sec);
  margin-top: 1.25rem;
  line-height: 1.5;
}
.priser-note svg { flex-shrink: 0; margin-top: .2rem; }

.priser-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .priser-tabs  { padding: .625rem .625rem 0; gap: .375rem; }
  .priser-tab   { font-size: .875rem; padding: .625rem .625rem; }
  .priser-panel { padding: 1rem; }
  .priser-row   { padding: .875rem 1rem; }
  .priser-row--best { padding-top: 2.5rem; }
  .priser-badge     { left: 50%; transform: translateX(-50%); }
  .priser-amount { font-size: 1rem; }
}

/* --- Recensioner --------------------------------------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  padding: .625rem 1.25rem;
  box-shadow: var(--sh-sm);
  margin-bottom: 2.5rem;
}
.rating-badge .stars { color: var(--c-star); font-size: 1.125rem; letter-spacing: .05em; }
.rating-badge strong { font-family: var(--f-head); font-size: 1.25rem; }
.rating-badge span   { font-size: .875rem; color: var(--c-text-sec); }

/* Carousel */
.carousel {
  max-width: 820px;
  margin-inline: auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-md);
}

.carousel-track {
  display: flex;
  transition: transform .38s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* Each slide fills the viewport width */
.carousel-track .review-card {
  flex-shrink: 0;
  width: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 2rem 2.5rem;
}

@media (max-width: 520px) {
  .carousel-track .review-card { padding: 1.5rem 1.25rem; }
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  flex-shrink: 0;
  transition: background .15s, color .15s, box-shadow .15s;
}
.carousel-btn:hover:not(:disabled) {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--sh-md);
}
.carousel-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }

.carousel-dots {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
  justify-content: center;
}

.carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 4px;
  background: var(--c-border);
  padding: 0;
  transition: background .2s, width .2s;
}
.carousel-dot.active { background: var(--c-primary); width: 24px; }
.carousel-dot:hover:not(.active) { background: var(--c-text-sec); }

.review-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--sh-sm);
}

.review-card .stars { color: var(--c-star); font-size: .875rem; letter-spacing: .05em; }

.review-card blockquote {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--c-text);
  font-style: italic;
  flex: 1;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-top: .25rem;
}
.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-size: .875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-avatar--alt { background: #5C6B7A; font-size: .75rem; }
.reviewer-name { font-weight: 600; font-size: .875rem; font-family: var(--f-head); }
.reviewer-date { font-size: .75rem; color: var(--c-text-sec); }

.reviews-cta { margin-top: 2rem; display: flex; justify-content: center; }

/* --- Digital plattform --------------------------------- */
.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: .5rem;
}

.platform-dots { display: none; }

@media (max-width: 640px) {
  .platform-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
    margin-inline: calc(-1 * clamp(1rem, 4vw, 2rem));
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-bottom: 1.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .platform-grid::-webkit-scrollbar { display: none; }
  .platform-card {
    flex-shrink: 0;
    width: 80vw;
    scroll-snap-align: start;
  }
  .platform-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .375rem;
    margin-top: .875rem;
  }
  .platform-dot {
    height: 8px;
    width: 8px;
    border-radius: 4px;
    background: var(--c-border);
    padding: 0;
    transition: background .2s, width .2s;
    flex-shrink: 0;
  }
  .platform-dot.active { background: var(--c-primary); width: 24px; }
  .platform-dot:hover:not(.active) { background: var(--c-text-sec); }
}

.platform-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s;
}
.platform-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

.platform-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r);
  background: #EBEBEB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  flex-shrink: 0;
}

.platform-card-title { font-size: 1.125rem; }

.platform-card-text {
  font-size: .9375rem;
  color: var(--c-text-sec);
  line-height: 1.65;
  max-width: none;
  flex: 1;
}

.platform-feat-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .25rem;
}

.platform-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  color: var(--c-text-sec);
  line-height: 1.5;
}

.platform-feat-list li svg {
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: .15rem;
}

.platform-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: center;
}

.platform-cta-tagline {
  font-size: 1rem;
  color: var(--c-text-sec);
  max-width: 50ch;
  margin-inline: auto;
}

/* --- Kontakt ------------------------------------------- */
.kontakt-intro { font-size: 1.0625rem; color: var(--c-text-sec); margin-top: .5rem; max-width: none; }
.kontakt-note  { font-size: .9rem; color: var(--c-text-sec); margin-top: .5rem; }

.kontakt-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.75rem;
}

.kontakt-map {
  margin-top: 2.5rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-sm);
  height: 380px;
}
.kontakt-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* --- Footer -------------------------------------------- */
.site-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,.8);
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col--brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col--brand .footer-tagline {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  margin-top: .5rem;
  font-style: italic;
  max-width: 36ch;
}

.footer-logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

.footer-col h4 {
  font-family: var(--f-head);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}

.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  transition: color .15s;
}
.footer-nav a:hover { color: #fff; }

.footer-nap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .9375rem;
  line-height: 1.5;
}
.footer-nap a { color: rgba(255,255,255,.8); transition: color .15s; }
.footer-nap a:hover { color: #fff; }
.footer-nap-item { display: flex; align-items: flex-start; gap: .5rem; }
.footer-nap-item svg { flex-shrink: 0; margin-top: .2rem; color: #C0C0C0; }

.footer-social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--r);
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.2); color: #fff; }

.footer-hours { font-size: .9375rem; }
.footer-hours strong { display: block; color: rgba(255,255,255,.6); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding-top: 1.5rem;
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom a { color: rgba(255,255,255,.55); transition: color .15s; }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-legal { display: flex; gap: 1rem; }

/* --- Cookie banner -------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, calc(100% - 2rem));
  background: var(--c-bg-dark);
  color: rgba(255,255,255,.9);
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--sh-lg), 0 0 0 1px rgba(255,255,255,.08);
  z-index: 9999;
  font-size: .875rem;
}
.cookie-banner p { max-width: none; color: inherit; }
.cookie-banner p a { color: #C0C0C0; text-decoration: underline; }
.cookie-banner button {
  background: #fff;
  color: var(--c-text);
  border-radius: var(--r);
  padding: .5rem 1rem;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: .875rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.cookie-banner button:hover { background: #EBEBEB; }

/* --- Legal pages (Villkor / Integritetspolicy) ---------
   "Navy section headings" uses --c-text (#0F172A, a dark navy-slate
   already used site-wide for body/heading text) — there is no navy
   token in :root, and #1E3A8A was deliberately removed from the
   card/footer treatment earlier, so it isn't reintroduced here. */
.breadcrumb {
  display: flex;
  align-items: center;
  font-size: .875rem;
  color: var(--c-text-sec);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--c-text-sec); transition: color .15s; }
.breadcrumb a:hover { color: var(--c-primary); }
.breadcrumb-sep { margin-inline: .5rem; color: var(--c-border); }
.breadcrumb-current { color: var(--c-text); font-weight: 600; }

.legal-content { max-width: 800px; margin-inline: auto; }

.legal-header { margin-bottom: 2.5rem; }
.legal-header h1 { margin-bottom: .75rem; }
.legal-updated { max-width: none; color: var(--c-text-sec); font-size: 1rem; }

.legal-section { margin-top: 3rem; }
.legal-section:first-of-type { margin-top: 0; }

.legal-section h2 {
  font-size: 1.5rem;
  padding-bottom: .75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.legal-section p { max-width: none; line-height: 1.7; }
.legal-section p + p { margin-top: 1.1rem; }

.legal-section ul {
  margin-top: 1rem;
  padding-left: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.legal-section ul li { list-style: disc; line-height: 1.7; }

.legal-section a {
  color: var(--c-primary);
  background: rgba(249, 115, 22, .12);
  border-radius: 4px;
  padding: .05em .35em;
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, .55);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: background .15s, text-decoration-color .15s;
}
.legal-section a:hover {
  background: rgba(249, 115, 22, .22);
  text-decoration-color: var(--c-accent);
}

.legal-contact {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-lg);
  line-height: 1.8;
}
.legal-contact strong {
  display: block;
  font-family: var(--f-head);
  font-size: 1.0625rem;
  margin-bottom: .25rem;
}

/* --- Privacy cards (Integritetspolicy) ------------------ */
.privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.privacy-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}

.privacy-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--r);
  background: rgba(249, 115, 22, .12);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-card h3 { font-size: 1.0625rem; }

.privacy-card p {
  font-size: .9rem;
  color: var(--c-text-sec);
  line-height: 1.6;
  max-width: none;
}

@media (max-width: 768px) {
  .privacy-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .privacy-cards { grid-template-columns: 1fr; }
}

.legal-note {
  margin-top: 1.5rem;
  padding: .875rem 1.25rem;
  background: var(--c-bg-soft);
  border-radius: var(--r);
  font-size: .9375rem;
  color: var(--c-text-sec);
}

/* --- Utility ------------------------------------------- */
.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

/* arrow inline in links */
.arrow { font-style: normal; }

/* Inline SVGs carried over verbatim from the source page (no
   width/height attributes) — sized via font-size on the parent,
   same mechanism the source relied on. */
.icon {
  height: 1em;
  width: auto;
  fill: currentColor;
  vertical-align: -.125em;
  display: inline-block;
}

/* --- Page hero (category pages: breadcrumb + h1 + CTAs,
   no photo — reusable for B-körkort, MC-körkort, ...).
   Reuses .hero-sub / .hero-ctas / .btn-white / .btn-outline-white
   as-is from the home hero; only the section shell + a
   dark-background breadcrumb variant are new. -------------- */
.page-hero {
  background: var(--c-primary);
  padding-block: clamp(3rem, 7vw, 4.5rem) clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.page-hero h1 { color: #fff; }

.page-hero .breadcrumb { justify-content: center; color: rgba(255, 255, 255, .65); }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .65); }
.page-hero .breadcrumb a:hover { color: var(--c-accent); }
.page-hero .breadcrumb-sep { color: rgba(255, 255, 255, .35); }
.page-hero .breadcrumb-current { color: #fff; }

/* Photo variant (MC-körkort): gradient fallback until a real hero
   image exists; already wired to correctly stack a real .hero-bg
   img + .hero-overlay on top the moment one is added (see the
   TODO comment in mc-korkort.html). */
.page-hero--photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-dark) 100%);
}
.page-hero--photo > .container { position: relative; z-index: 2; }

/* --- B-körkort: long-form intro ------------------------- */
.about-text-block {
  max-width: 800px;
  margin: 0 auto;
}
.about-text-block p {
  color: var(--c-text-sec);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: none;
}
.about-text-block p + p { margin-top: 1.25rem; }

/* --- B-körkort: Så tar du körkort (steps) ---------------
   Desktop/tablet (>768px): single-column accordion, first step
   open by default, one open at a time. Mobile (≤768px): the same
   markup becomes a horizontal snap carousel with pagination dots.
   JS (inline, next to the section markup) drives both states via
   matchMedia(≤768px); scoped to .steps-section throughout. ---- */
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.step-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.step-card.open {
  border-color: var(--c-accent);
  box-shadow: var(--sh-md);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  cursor: pointer;
  transition: background .2s;
  -webkit-tap-highlight-color: transparent;
}
.step-head:hover { background: rgba(249, 115, 22, .04); }
.step-card.open .step-head {
  background: rgba(249, 115, 22, .05);
  border-bottom: 1px solid rgba(249, 115, 22, .18);
}
.step-head:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: -2px;
}

.step-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border-radius: 50%;
  background: rgba(249, 115, 22, .12);
  color: var(--c-accent);
}

.step-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.step-eyebrow {
  font-family: var(--f-head);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-accent);
  line-height: 1;
}
.step-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

.step-chevron {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(249, 115, 22, .1);
  color: var(--c-accent);
  font-size: .72rem;
  margin-left: auto;
  transition: transform .3s, background .3s, color .3s;
}
.step-card.open .step-chevron {
  transform: rotate(180deg);
  background: var(--c-accent);
  color: #fff;
}

.step-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .38s ease, padding .38s ease;
  padding: 0 1.4rem;
}
.step-card.open .step-panel {
  max-height: 500px;
  padding: 1rem 1.4rem 1.3rem;
}
.step-panel p {
  margin: 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--c-text-sec);
  max-width: none;
}
.step-panel a {
  color: var(--c-primary);
  background: rgba(249, 115, 22, .12);
  border-radius: 4px;
  padding: .05em .35em;
  text-decoration: underline;
  text-decoration-color: rgba(249, 115, 22, .55);
  text-underline-offset: 3px;
  font-weight: 600;
  transition: background .15s, text-decoration-color .15s;
}
.step-panel a:hover {
  background: rgba(249, 115, 22, .22);
  text-decoration-color: var(--c-accent);
}

.steps-carousel-dots { display: none; }

@media (max-width: 768px) {
  .steps-grid--carousel {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    max-width: none;
    margin: 1.5rem calc(-1 * clamp(1rem, 4vw, 2rem)) 0;
    padding: 1rem 10vw;
    gap: .75rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .steps-grid--carousel::-webkit-scrollbar { display: none; }

  .steps-grid--carousel > .step-card {
    flex: 0 0 80vw;
    max-width: 80vw;
    scroll-snap-align: center;
    padding: 1.2rem 1.1rem;
  }

  .steps-grid--carousel .step-head {
    padding: 0 0 .85rem;
    cursor: default;
    pointer-events: none;
  }
  .steps-grid--carousel .step-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps-grid--carousel .step-eyebrow { font-size: .68rem; }
  .steps-grid--carousel .step-head h3 { font-size: .95rem; }
  .steps-grid--carousel .step-chevron { display: none; }

  .steps-grid--carousel .step-panel {
    max-height: none;
    overflow: visible;
    padding: .75rem 0 0;
    border-top: 1px solid var(--c-border);
  }
  .steps-grid--carousel .step-panel p { font-size: .93rem; line-height: 1.75; }

  .steps-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    margin-top: .75rem;
  }
  .steps-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(249, 115, 22, .3);
    transition: background .25s, width .25s, border-radius .25s;
    -webkit-tap-highlight-color: transparent;
  }
  .steps-carousel-dot.active {
    background: var(--c-accent);
    width: 20px;
    border-radius: 4px;
  }
}

/* --- B-körkort: Våra tjänster (service cards) -----------
   Purely informational — cards don't link anywhere. Desktop
   (>768px): static cards, 3 cols / 2 cols tablet, full content
   always visible, no interaction. Mobile (≤768px): each card's
   header toggles its own description panel open/closed. ------ */
.svc-section .feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.svc-section .feature-grid > .feature-card {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
}

.feature-card {
  display: block;
  background: #fff;
  border-radius: var(--r-lg);
  border-top: 3px solid var(--c-accent);
  box-shadow: var(--sh-sm);
  color: inherit;
}

.svc-head { padding: 1.75rem 1.75rem 0; }

.feature-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(249, 115, 22, .1);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.svc-head h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: .45rem;
}

.svc-chevron { display: none; }

.svc-panel { padding: 0 1.75rem 1.75rem; }
.svc-panel p {
  font-size: .9rem;
  color: var(--c-text-sec);
  line-height: 1.7;
  max-width: none;
}

@media (max-width: 900px) {
  .svc-section .feature-grid > .feature-card {
    flex: 0 0 calc(50% - .75rem);
    max-width: calc(50% - .75rem);
  }
}

@media (max-width: 768px) {
  .svc-section .feature-grid { flex-direction: column; gap: .6rem; }
  .svc-section .feature-grid > .feature-card {
    flex: 1 1 auto;
    max-width: 100%;
  }
  .feature-card {
    border-top: none;
    border: 1px solid var(--c-border);
  }
  .feature-card.open { border-color: var(--c-accent); }

  .svc-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem 1rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s;
  }
  .feature-card.open .svc-head { background: var(--c-bg-soft); }
  .svc-head:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: -2px;
  }

  .feature-card-icon { width: 40px; height: 40px; margin-bottom: 0; font-size: 1rem; }
  .svc-head h3 { flex: 1; min-width: 0; font-size: .9rem; margin-bottom: 0; }

  .svc-chevron {
    display: flex;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(249, 115, 22, .1);
    color: var(--c-accent);
    font-size: .72rem;
    transition: transform .3s, background .3s, color .3s;
  }
  .feature-card.open .svc-chevron {
    transform: rotate(180deg);
    background: var(--c-accent);
    color: #fff;
  }

  .svc-panel { display: none; padding: 0 1rem 1rem; }
  .feature-card.open .svc-panel { display: block; }
  .svc-panel p { font-size: .82rem; line-height: 1.6; }
}

/* --- MC-körkort: feature stats grid (static, no interaction) --- */
.feature-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.feature-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.feature-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(249, 115, 22, .1);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.feature-stat h3 { font-size: 1.0625rem; }
.feature-stat p { font-size: .9rem; color: var(--c-text-sec); line-height: 1.65; max-width: none; }

@media (max-width: 900px) {
  .feature-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-stats { grid-template-columns: 1fr; }
}

/* --- MC-körkort: steps accordion mobile tightening ------
   The shared .step-card / .step-icon / .step-panel rules above
   are sized for the desktop accordion; MC keeps that same
   accordion at every width (no carousel), so this just nudges
   spacing down slightly on phones, matching the source page. -- */
@media (max-width: 768px) {
  .mc-steps-section .step-head { padding: .95rem 1.05rem; }
  .mc-steps-section .step-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .mc-steps-section .step-eyebrow { font-size: .68rem; }
  .mc-steps-section .step-head h3 { font-size: .95rem; }
  .mc-steps-section .step-panel { padding: 0 1.05rem; }
  .mc-steps-section .step-card.open .step-panel { padding: 1rem 1.05rem 1.1rem; }
}

/* --- MC-körkort: Jämför A1, A2 & A-körkort ---------------
   Table is capped to a min-width so it never squeezes illegibly
   small — on mobile that forces the wrapper's horizontal scroll
   instead. Desktop shows the full table with no scroll. -------- */
.compare-table-wrap { margin-top: 2.5rem; }

.compare-scroll-hint {
  display: none;
  align-items: center;
  gap: .4rem;
  font-size: .8125rem;
  font-weight: 600;
  font-family: var(--f-head);
  color: var(--c-text-sec);
  margin-bottom: .625rem;
  transition: opacity .3s ease;
}

.compare-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.compare-table-scroll:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  font-size: .9375rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-weight: 600;
  border-bottom: none;
  white-space: nowrap;
}

.compare-table tbody th[scope="row"] {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--c-text);
  background: var(--c-bg-soft);
  white-space: nowrap;
}

.compare-table tbody td { color: var(--c-text-sec); }

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 768px) {
  .compare-scroll-hint { display: flex; }
}
