:root {
  --ink: #2e2e2e;
  --muted: #283a58;
  --line: #dce9fd;
  --paper: #fafcff;
  --white: #fefefe;
  --blue: #2a77f1;
  --blue-dark: #283a58;
  --blue-soft: #e7f0fd;
  --red-soft: #fce3e4;
  --shadow: 0 2px 5px rgba(42, 119, 241, .15);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

.container {
  width: min(1240px, calc(100% - 200px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  box-shadow: 0 2px 5px rgba(42, 119, 241, .15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  color: var(--blue);
  font-family: Unbounded, "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.nav-links a:first-child {
  color: var(--blue);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  min-height: 640px;
  display: grid;
  align-items: start;
  padding: 176px 0 148px;
  color: var(--blue-dark);
  background: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background: url("../images/hero-lines.svg") center / contain no-repeat;
  opacity: 1;
}

.hero::before {
  left: max(0px, calc((100vw - 1240px) / 2 - 150px));
  top: 98px;
  width: 520px;
  height: 310px;
  background-position: left center;
  clip-path: inset(0 52% 0 0);
  transform: scale(1.34);
  transform-origin: left center;
}

.hero::after {
  right: max(0px, calc((100vw - 1240px) / 2 - 150px));
  top: 12px;
  width: 560px;
  height: 290px;
  background-position: right center;
  clip-path: inset(0 0 0 45%);
  transform: scale(1.28);
  transform-origin: right center;
}

.hero-inner {
  max-width: 100%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-logo {
  margin: 0 0 9px;
  color: var(--blue);
  font-family: Unbounded, "DM Sans", sans-serif;
  font-size: clamp(58px, 8.45vw, 116px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: "DM Sans", Arial, sans-serif;
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 450px;
  margin: 0 auto;
  color: var(--ink);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.14;
}

h2 {
  color: var(--blue-dark);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

h3 {
  color: var(--blue);
  font-size: 24px;
  font-weight: 800;
}

.lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  gap: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.button:hover,
.button:focus-visible {
  background: var(--blue-dark);
}

.button.secondary {
  border-color: var(--blue);
  background: var(--paper);
  color: var(--blue);
}

.button.light {
  background: var(--white);
  color: var(--blue);
}

.section {
  padding: 48px 0;
}

.section.alt {
  background: var(--paper);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 26px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 500px;
  font-size: 16px;
  line-height: 1.5;
}

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

.about-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.about-section {
  padding-top: 8px;
  padding-bottom: 62px;
}

.about-section h2 {
  margin-bottom: 14px;
}

.why-section {
  padding-top: 48px;
  border-top: 1px solid rgba(42, 119, 241, .15);
}

.why-section h2 {
  margin-bottom: 14px;
}

.section-copy {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 92px;
  row-gap: 64px;
  max-width: none;
  margin-top: 68px;
}

.feature,
.card,
.service-row,
.contact-panel,
.detail-card {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.feature {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 0;
  align-items: start;
  padding: 0;
}

.icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
}

.icon img {
  width: 32px;
  height: 32px;
}

.feature h3 {
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 26px;
  line-height: 1.15;
}

.feature p,
.card p,
.service-row p,
.detail-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 14px 0 0;
}

.card-body h3 {
  min-height: 64px;
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--blue-dark);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  min-width: 45%;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.text-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  font-size: 16px;
  font-weight: 400;
}

.services {
  display: grid;
  gap: 56px;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: center;
  padding: 0;
}

.service-text {
  display: block;
  padding: 0;
}

.number {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 8px;
  background: transparent;
  color: var(--blue-soft);
  font-family: Unbounded, "DM Sans", sans-serif;
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
}

.service-text h3 {
  margin-bottom: 12px;
  font-size: 32px;
  line-height: 1.05;
}

.service-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.contact {
  color: var(--white);
  background: var(--paper);
}

.contact .section-head p,
.contact .accent {
  color: var(--blue);
}

.contact h2 {
  color: var(--ink);
}

.contact .section-head p {
  color: var(--muted);
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  padding: 0;
  background: transparent;
  border-color: transparent;
}

.contact-panel .contact-button {
  min-width: 336px;
  min-height: 66px;
  justify-content: center;
  padding: 18px 34px;
  background: var(--blue);
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.contact-panel .contact-button img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.footer {
  padding: 78px 0 42px;
  background: var(--blue);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  color: var(--white);
}

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

.footer p {
  margin: 8px 0;
  color: rgba(255, 255, 255, .78);
}

.footer a:hover { color: var(--blue-soft); }

.footer-brand {
  color: #fefefe;
  font-family: Unbounded, "DM Sans", sans-serif;
}

.subhero {
  padding: 104px 0 62px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -1px 0 rgba(42, 119, 241, .08);
  color: var(--white);
}

.subhero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.subhero h1 {
  color: var(--blue-dark);
}

.detail-page {
  padding: 70px 0 56px;
}

.back-button {
  margin-bottom: 42px;
}

.detail-page .detail-card {
  max-width: 760px;
  padding: 0;
}

.detail-page h1 {
  max-width: 900px;
  margin: 0 0 24px;
  color: var(--blue-dark);
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

.detail-page .detail-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 42px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.other-services-section {
  padding-top: 36px;
}

.other-services-section h2 {
  margin-bottom: 28px;
}

.other-services-grid {
  display: grid;
  gap: 18px;
}

.other-service-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.other-service-row strong {
  color: var(--blue-dark);
  font-size: 24px;
  line-height: 1.35;
}

.subpage-contact {
  padding-top: 36px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 34px;
  align-items: start;
}

.detail-card {
  padding: 28px;
}

.detail-card p:first-of-type {
  margin-top: 0;
}

.detail-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.other-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.other-list a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  font-weight: 800;
}

.other-list a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 40px, 1240px);
  }

  .hero {
    background-size: auto;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
  }

  .section-head,
  .footer-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .features,
  .grid-3,
  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-row {
    grid-template-columns: 1fr;
  }

  .other-service-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    min-height: 620px;
    padding-top: 80px;
  }

  .section {
    padding: 62px 0;
  }

  .features,
  .grid-3,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .service-text {
    grid-template-columns: 1fr;
  }

  .actions,
  .contact-panel {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
