.services-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 382px;
  overflow: hidden;
  background: #eef9fd;
}

.services-hero-photo {
  position: absolute;
  inset: 0;
  background: url('../assets/images/services-hero.webp?v=20261019.6') center 50% / cover no-repeat;
}

.services-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-fade-desktop);
}

.services-hero-inner {
  position: relative;
  z-index: 1;
}

.services-hero .section-label {
  color: #172f8a;
  margin-bottom: 26px;
}

.services-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  color: #061c5b;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

.services-hero h1 em,
.services-catalogue h2 em {
  color: #079ce9;
  font-style: normal;
}

.services-hero p {
  margin: 0;
  color: #11277b;
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.35;
}

.services-hero-button {
  margin-top: 24px;
}

.services-catalogue {
  background: #fff;
  scroll-margin-top: 70px;
}

.services-catalogue .section-label {
  margin-bottom: 15px;
}

.services-catalogue h2 {
  margin: 0 0 40px;
  color: #081f5d;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalogue-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 225px;
  padding: 20px 36px 18px 16px;
  color: #08166b;
  transition: background .2s ease;
}

.catalogue-card:nth-child(3n + 2),
.catalogue-card:nth-child(3n + 3) {
  border-left: 1px solid #a8def7;
  padding-left: 43px;
}

.catalogue-card:nth-child(n + 4) {
  border-top: 1px solid #a8def7;
  padding-top: 26px;
}

.catalogue-card:hover,
.catalogue-card:focus-visible {
  background: #f0faff;
}

.catalogue-icon {
  display: block;
  width: 47px;
  height: 47px;
  margin-bottom: 20px;
  stroke-width: 1.7;
}

.catalogue-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.catalogue-card p {
  margin: 0 0 12px;
  color: #1769d1;
  line-height: 1.4;
}

.card-arrow {
  display: block;
  width: 96px;
  margin-top: auto;
  padding-top: 5px;
}

.card-arrow svg {
  width: 28px;
  height: 28px;
  color: #0715a0;
}

.services-contact {
  background: linear-gradient(110deg, #062a61 0%, #0755b2 59%, #0099e5 100%);
}

.services-contact h2 {
  max-width: 660px;
  font-weight: 700;
}

.services-contact .button-white {
  min-width: 190px;
}

@media (max-width: 900px) {
  .services-hero {
    min-height: 460px;
  }

  .services-hero h1 {
    max-width: 610px;
    font-size: clamp(43px, 6vw, 56px);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalogue-card {
    min-height: 245px;
    padding: 22px 28px 20px 16px;
    border: 0;
  }

  .catalogue-card:nth-child(3n + 2),
  .catalogue-card:nth-child(3n + 3) {
    border-left: 0;
    padding-left: 16px;
  }

  .catalogue-card:nth-child(2n) {
    border-left: 1px solid #a8def7;
    padding-left: 30px;
  }

  .catalogue-card:nth-child(n + 3) {
    border-top: 1px solid #a8def7;
    padding-top: 22px;
  }
}

@media (max-width: 650px) {
  .services-hero {
    align-items: flex-start;
    min-height: clamp(610px, 150vw, 720px);
  }

  .services-hero-photo {
    background-image: url('../assets/images/services-hero-mobile.webp?v=20261019.6');
    background-position: center bottom;
  }

  .services-hero-photo::after {
    background: var(--hero-fade-mobile);
  }

  .services-hero .section-label {
    margin-bottom: 22px;
  }

  .services-hero h1 {
    max-width: 500px;
    margin-bottom: 16px;
    font-size: clamp(38px, 9vw, 52px);
  }

  .services-hero p {
    max-width: 400px;
    font-size: 17px;
  }

  .desktop-break {
    display: none;
  }

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

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

  .catalogue-card,
  .catalogue-card:nth-child(3n + 2),
  .catalogue-card:nth-child(3n + 3),
  .catalogue-card:nth-child(2n) {
    min-height: 0;
    padding: 24px 4px;
    border-left: 0;
  }

  .catalogue-card:first-child {
    padding-top: 0;
  }

  .catalogue-card:nth-child(n + 2) {
    border-top: 1px solid #a8def7;
  }

  .catalogue-card h3 br {
    display: none;
  }

  .catalogue-card p br {
    display: none;
  }

  .card-arrow {
    margin-top: 14px;
  }

  .services-contact h2 br {
    display: none;
  }
}
