:root {
    --primary-color: #003b88;
    --secondary-color: #051c3f;
    --accent-color: #15a8ff;
    --light-color: #ffffff;
    --muted-color: #f4f8fd;
    --text-color: #15233f;
    --body-color: #5b6680;
    --border-color: #dbe6f2;
    --shadow: 0 18px 42px rgba(5, 28, 63, .10);
    --font-main: 'Montserrat', Arial, sans-serif;
    --container-width: 1540px;
    --radius: 18px;
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    font-size: clamp(15px, .83vw, 18px);
    line-height: 1.7;
    background: #fff
}

a {
    text-decoration: none;
    color: inherit
}

img {
    max-width: 100%;
    display: block
}

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

.topbar {
    background: var(--secondary-color);
    color: #fff;
    font-size: clamp(12px, .73vw, 14px)
}

.topbar__inner {
    height: 44px;
    display: flex;
    align-items: center;
    gap: 34px
}

.topbar__inner span {
    margin-left: auto
}

.navbar {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    position: sticky;
    top: 0;
    z-index: 20
}

.navbar__inner {
    height: 112px;
    display: flex;
    align-items: center;
    gap: 36px
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-color);
    font-weight: 900
}

.brand__mark {
    width: 72px;
    height: 72px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px
}

.brand strong {
    display: block;
    font-size: clamp(26px, 1.9vw, 38px);
    line-height: 1
}

.brand small {
    display: block;
    font-size: clamp(11px, .78vw, 15px);
    letter-spacing: .04em
}

.brand em {
    display: block;
    font-size: clamp(10px, .68vw, 13px);
    font-style: normal;
    color: var(--secondary-color)
}

.nav-menu {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase
}

.nav-menu a {
    padding: 14px 0
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--accent-color)
}

.nav-toggle,
.nav-toggle-label {
    display: none
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    border: 2px solid transparent
}

.btn--primary {
    background: var(--primary-color);
    color: #fff
}

.btn--accent {
    background: var(--accent-color);
    color: #fff
}

.btn--outline {
    border-color: var(--primary-color);
    color: var(--primary-color)
}

.btn--light {
    background: #fff;
    color: var(--primary-color)
}

.hero {
    padding: clamp(70px, 5.2vw, 100px) 0;
    background: linear-gradient(90deg, #f7fbff 0%, #fff 55%)
}

.hero__inner,
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.eyebrow,
.subtitle {
    color: var(--accent-color);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 12px
}

.hero h1 {
    font-size: clamp(54px, 4.6vw, 88px);
    line-height: 1.03;
    margin: 0 0 24px;
    text-transform: uppercase;
    color: var(--secondary-color)
}

.hero h1 span {
    color: var(--accent-color)
}

.section-title {
    font-size: clamp(34px, 2.55vw, 52px);
    line-height: 1.12;
    margin: 0 0 22px;
    color: var(--secondary-color);
    text-transform: uppercase
}

.description {
    font-size: clamp(16px, 1.04vw, 20px);
    color: var(--body-color);
    margin: 0 0 30px
}

.hero__actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 38px
}

.feature-row div,
.card,
.highlight-box,
.faq,
.contact-form {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow)
}

.feature-row strong,
.feature-row small {
    display: block
}

.hero__image {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.section-padding {
    padding: clamp(80px, 6.25vw, 120px) 0
}

.muted {
    background: var(--muted-color)
}

.section-head {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 50px
}

.card-grid {
    display: grid;
    gap: 28px
}

.card-grid.three {
    grid-template-columns: repeat(3, 1fr)
}

.card h3 {
    font-size: 22px;
    margin: 0 0 12px;
    color: var(--primary-color)
}

.card p {
    margin: 0;
    color: var(--body-color)
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 20px
}

.cta {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: #fff;
    padding: 46px 0
}

.cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.cta h2 {
    font-size: clamp(30px, 2.1vw, 42px);
    margin: 0;
    text-transform: uppercase
}

.page-hero {
    padding: 90px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff
}

.page-hero .section-title,
.page-hero .subtitle {
    color: #fff
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px
}

.pill-row span {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 800
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px
}

.gallery-card {
    min-height: 210px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #eaf6ff, #fff);
    border: 1px solid var(--border-color);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: var(--shadow)
}

.gallery-card strong {
    color: var(--primary-color);
    font-size: 24px
}

.timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px
}

.timeline article {
    padding: 30px;
    border-left: 5px solid var(--accent-color);
    background: #fff;
    box-shadow: var(--shadow);
    border-radius: var(--radius)
}

.timeline span {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-color)
}

.faq-wrap {
    max-width: 980px
}

.faq {
    margin-bottom: 18px
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--primary-color);
    font-size: 20px
}

.contact-list a,
.footer a {
    display: block
}

.contact-list {
    font-weight: 800;
    color: var(--primary-color)
}

.contact-form {
    display: grid;
    gap: 18px
}

.contact-form label {
    font-weight: 800
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    font: inherit
}

.contact-form textarea {
    height: 140px
}

.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 70px 0 0
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px
}

.footer h3 {
    margin-top: 0
}

.footer a,
.footer p {
    color: #dcecff;
    margin: 8px 0
}

.brand--footer .brand__mark {
    border-color: #fff
}

.brand--footer {
    color: #fff
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .18);
    padding: 24px;
    margin-top: 50px;
    color: #dcecff
}

.hero__image {
  width: 100%;
}

/* Before/after component */
.before-after {
  --slider-position: 50%;

  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #e7e7e7;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  isolation: isolate;
}

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

.before-after__image--after {
  z-index: 1;
}

.before-after__before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: var(--slider-position);
  overflow: hidden;
}

.before-after__image--before {
  /* Keep the image at the full container width while its parent clips it */
  width: 100vw;
  max-width: none;
}

/*
  Modern browsers can use this more accurate container-relative width.
*/
@supports (width: 100cqw) {
  .before-after {
    container-type: inline-size;
  }

  .before-after__image--before {
    width: 100cqw;
  }
}

.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--slider-position);
  z-index: 5;
  width: 52px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: ew-resize;
  transform: translateX(-50%);
  touch-action: none;
}

.before-after__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #ffffff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.24);
  transform: translateX(-50%);
}

.before-after__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #111111;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  transition:
    transform 180ms ease,
    background-color 180ms ease;
}

.before-after__arrow svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.before-after:hover .before-after__arrow,
.before-after.is-dragging .before-after__arrow,
.before-after__handle:focus-visible .before-after__arrow {
  background: #000000;
  transform: translate(-50%, -50%) scale(1.08);
}

.before-after__handle:focus-visible {
  outline: none;
}

.before-after__handle:focus-visible .before-after__arrow {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.55),
    0 5px 20px rgba(0, 0, 0, 0.28);
}

.before-after__label {
  position: absolute;
  top: 20px;
  z-index: 4;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(5px);
}

.before-after__label--before {
  left: 20px;
}

.before-after__label--after {
  right: 20px;
}

@media (max-width: 767px) {
  .before-after {
    border-radius: 16px;
  }

  .before-after__arrow {
    width: 46px;
    height: 46px;
  }

  .before-after__arrow svg {
    width: 27px;
    height: 27px;
  }

  .before-after__label {
    top: 14px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .before-after__label--before {
    left: 14px;
  }

  .before-after__label--after {
    right: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .before-after__arrow {
    transition: none;
  }
}