:root {
  --navy: #0b2948;
  --navy-dark: #071c32;
  --navy-light: #173f67;
  --red: #d51f2a;
  --red-dark: #ab111a;
  --text: #14283d;
  --muted: #607286;
  --light: #f4f7f9;
  --border: #dfe6eb;
  --white: #ffffff;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(10,35,60,.08);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-heart {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 45px;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.03;
}

.logo-text strong {
  color: var(--navy);
  font-size: 21px;
  white-space: nowrap;
}

.logo-text em {
  color: var(--red);
  font-style: normal;
}

.logo-text small {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}

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

.main-nav a {
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--red);
}

.nav-button {
  padding: 12px 17px;
  border-radius: 4px;
  background: var(--red);
  color: #fff !important;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px;
  background: var(--navy);
}


/* HERO */

.hero {
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      #fff 0%,
      #fff 49%,
      #eef3f6 49%,
      #e7edf1 100%
    );
}

.hero-grid {
  min-height: 520px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  gap: 52px;
}

.hero-content {
  align-self: center;
  padding: 62px 0;
}

.hero-markdown h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(52px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.045em;
  text-transform: none;
}

.hero-markdown p {
  max-width: 580px;
  margin: 0;
  color: #42586e;
  font-size: 18px;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  background: var(--red-dark);
}

.secondary-link {
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.hero-image {
  position: relative;
  min-height: 520px;
  background-color: #dce5ea;
  background-image:
    linear-gradient(90deg, rgba(7,28,50,.08), rgba(7,28,50,.02)),
    url("/images/hero.webp");
  background-size: cover;
  background-position: center;
}

.image-note {
  position: absolute;
  left: 26px;
  bottom: 24px;
  max-width: 280px;
  padding: 13px 16px;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: rgba(7,28,50,.88);
  color: #fff;
  box-shadow: 0 12px 30px rgba(7,28,50,.18);
}

.image-note strong {
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.image-note span {
  margin-top: 3px;
  color: rgba(255,255,255,.8);
  font-size: 12px;
}


/* GENERAL MARKDOWN */

.markdown-content h1 {
  display: block;
  margin: 0 0 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.markdown-content h2 {
  margin: 4px 0 18px;
  color: var(--navy);
  font-size: clamp(29px, 3.5vw, 41px);
  line-height: 1.08;
  letter-spacing: -.025em;
}

.markdown-content h3 {
  margin: 23px 0 10px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.markdown-content p {
  margin: 0 0 14px;
  color: #43576c;
}

.markdown-content ul {
  margin: 10px 0 17px;
  padding: 0;
  list-style: none;
}

.markdown-content li {
  position: relative;
  margin: 7px 0;
  padding-left: 28px;
}

.markdown-content li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.markdown-content strong {
  color: var(--navy);
}

.markdown-content blockquote {
  margin: 20px 0;
  padding: 13px 18px;
  border-left: 4px solid var(--red);
  background: #f3f6f8;
  color: var(--navy);
  font-size: 19px;
}


/* TRAINING OVERVIEW */

.training-overview {
  padding: 70px 0 74px;
}

.dynamic-heading {
  max-width: 690px;
  margin: 0 auto 40px;
  text-align: center;
}

.dynamic-heading h1 {
  color: var(--red);
}

.dynamic-heading h2 {
  margin-bottom: 12px;
  font-size: 34px;
  text-transform: uppercase;
}

.dynamic-heading h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--red);
}

.dynamic-heading p {
  color: var(--muted);
}

.training-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.training-card {
  padding: 9px 28px 21px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--border);
}

.training-card:last-child {
  border-right: 0;
}

.training-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0f3f5;
  color: var(--red);
  font-size: 39px;
  font-weight: 900;
}

.training-card h3 {
  min-height: 45px;
  margin: 0;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  text-transform: uppercase;
}

.training-card p {
  min-height: 59px;
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 13px;
}

.training-card strong {
  color: var(--red);
  font-size: 11px;
  text-transform: uppercase;
}


/* BENEFITS */

.benefits {
  padding: 38px 0 42px;
  background:
    linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff;
  text-align: center;
}

.benefits-content h2 {
  margin: 0 0 23px;
  font-size: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit-item {
  padding: 7px 24px;
  border-right: 1px solid rgba(255,255,255,.17);
}

.benefit-item:last-child {
  border-right: 0;
}

.benefit-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 32px;
  line-height: 1;
}

.benefit-item p {
  margin: 0;
  color: rgba(255,255,255,.93);
  font-size: 14px;
}


/* COURSE SECTIONS */

.content-section {
  padding: 70px 0;
}

.content-section.alternate {
  background: var(--light);
}

.content-grid {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 66px;
  align-items: center;
}

.content-grid.reverse {
  grid-template-columns: 1.38fr .62fr;
}

.content-grid.reverse .section-photo {
  order: 2;
}

.content-grid.reverse .markdown-content {
  order: 1;
}

.section-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 300px;
  border-radius: 18px;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 38px rgba(7,28,50,.12);
}

.photo-hlr {
  background-image:
    linear-gradient(rgba(213,31,42,.18), rgba(7,28,50,.10)),
    url("/images/hlr-vuxna.webp");
}

.photo-aed {
  background-image:
    linear-gradient(rgba(7,28,50,.13), rgba(7,28,50,.13)),
    url("/images/hjartstartare.webp");
}

.photo-first-aid {
  background-image:
    linear-gradient(rgba(213,31,42,.15), rgba(7,28,50,.08)),
    url("/images/forsta-hjalpen.webp");
}

.photo-company {
  background-image:
    linear-gradient(rgba(7,28,50,.14), rgba(7,28,50,.14)),
    url("/images/foretag.webp");
}


/* ABOUT */

.about-section {
  padding: 74px 0;
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 68px;
  align-items: center;
}

.about-photo {
  position: relative;
  min-height: 410px;
  border-radius: 18px;
  background-color: #e3eaee;
  background-image:
    linear-gradient(rgba(7,28,50,.06), rgba(7,28,50,.06)),
    url("/images/mimmi-elin.webp");
  background-size: cover;
  background-position: center;
}


/* CONTACT */

.contact-section {
  padding: 62px 0;
  background:
    linear-gradient(120deg, var(--navy-dark), var(--navy-light));
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 65px;
  align-items: center;
}

.contact-content h1 {
  color: #ff7b82;
}

.contact-content h2,
.contact-content h3,
.contact-content strong {
  color: #fff;
}

.contact-content p {
  color: rgba(255,255,255,.82);
}

.contact-cta {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 14px;
  background: rgba(255,255,255,.07);
}

.contact-heart {
  display: block;
  margin-bottom: 10px;
  color: #ff5b65;
  font-size: 37px;
}

.contact-cta strong {
  display: block;
  font-size: 19px;
}

.contact-cta p {
  margin: 9px 0 0;
  color: rgba(255,255,255,.78);
}


/* FOOTER */

footer {
  padding: 42px 0 17px;
  background: #06182b;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 21px;
}

.footer-logo span {
  color: var(--red);
}

.footer-grid a {
  margin: 3px 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-decoration: none;
}

.footer-grid p {
  color: rgba(255,255,255,.65);
}

.copyright {
  margin-top: 31px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.57);
  font-size: 11px;
}


/* RESPONSIVE */

@media (max-width: 950px) {
  .menu-button {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    box-shadow: 0 12px 25px rgba(7,28,50,.08);
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    background: #fff;
  }

  .hero-grid,
  .content-grid,
  .content-grid.reverse,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .content-grid.reverse .section-photo,
  .content-grid.reverse .markdown-content {
    order: initial;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-content {
    padding-bottom: 35px;
  }

  .hero-image {
    min-height: 430px;
    margin-inline: -20px;
  }

  .training-cards {
    grid-template-columns: 1fr 1fr;
  }

  .training-card:nth-child(2) {
    border-right: 0;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .benefit-item:nth-child(2) {
    border-right: 0;
  }

  .section-photo {
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .logo-heart {
    width: 42px;
    height: 42px;
    font-size: 37px;
  }

  .logo-text strong {
    font-size: 17px;
  }

  .logo-text small {
    font-size: 7px;
  }

  .hero-content {
    padding: 48px 0 31px;
  }

  .hero-markdown h1 {
    font-size: 49px;
  }

  .hero-image {
    min-height: 340px;
    margin-inline: -14px;
  }

  .hero-buttons {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .training-cards,
  .benefit-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .training-card {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .benefit-item {
    padding: 18px 8px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.15);
  }

  .content-section {
    padding: 55px 0;
  }

  .content-grid,
  .about-grid {
    gap: 38px;
  }

  .section-photo {
    min-height: 280px;
  }

  .about-photo {
    min-height: 350px;
  }
}
