/* Approved Novikont services composition */
.desktop-nav a:last-child {
  color: var(--paper);
  background: rgba(6, 24, 39, 0.78);
  border: 1px solid rgba(244, 239, 228, 0.24);
  border-radius: 999px;
  padding: 10px 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.services .section-heading {
  max-width: 780px;
}

.service-grid {
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
}

.service-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  color: var(--paper);
}

.service-card:last-child {
  border-bottom: 0;
}

.service-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.44fr);
  background: var(--paper);
  color: var(--ink);
}

.service-card::before {
  content: "";
  display: block;
  grid-column: 2;
  grid-row: 1 / -1;
  min-height: 360px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.service-card:nth-child(1)::before {
  background-image: url("/media/services-auto.png");
}

.service-card:nth-child(2)::before {
  grid-column: 1;
  background-image: url("/media/services-rail.png");
}

.service-card:nth-child(3)::before {
  background-image: url("/media/services-air.png");
  background-position: center 42%;
}

.service-card > span,
.service-card h3,
.service-card p,
.service-card a {
  grid-column: 1;
  position: relative;
  z-index: 1;
  margin-left: clamp(28px, 4vw, 58px);
  margin-right: clamp(28px, 4vw, 58px);
}

.service-card:nth-child(even) > span,
.service-card:nth-child(even) h3,
.service-card:nth-child(even) p,
.service-card:nth-child(even) a {
  grid-column: 2;
}

.service-card > span {
  align-self: start;
  margin-top: clamp(34px, 4vw, 54px);
  color: var(--orange);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.service-card h3 {
  align-self: end;
  max-width: 430px;
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.04;
}

.service-card p {
  max-width: 430px;
  margin-top: 0;
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.72);
  font-size: 14px;
  line-height: 1.65;
}

.service-card:nth-child(even) p {
  color: var(--muted);
}

.service-card a {
  justify-self: start;
  align-self: end;
  margin-top: 24px;
  margin-bottom: clamp(34px, 4vw, 54px);
}

.service-card:hover {
  background: var(--navy-soft);
}

.service-card:nth-child(even):hover {
  background: #fffaf0;
}

@media (min-width: 821px) {
  .service-card {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .service-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) 42%;
  }
}

@media (max-width: 820px) {
  .desktop-nav a:last-child {
    padding: 8px 12px;
  }

  .service-card,
  .service-card:nth-child(even) {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .service-card::before,
  .service-card:nth-child(even)::before {
    order: -1;
    width: 100%;
    min-height: 0;
    height: clamp(220px, 62vw, 360px);
  }

  .service-card > span,
  .service-card h3,
  .service-card p,
  .service-card a,
  .service-card:nth-child(even) > span,
  .service-card:nth-child(even) h3,
  .service-card:nth-child(even) p,
  .service-card:nth-child(even) a {
    margin-left: 22px;
    margin-right: 22px;
  }

  .service-card > span {
    margin-top: 26px;
    font-size: 17px;
  }

  .service-card h3 {
    margin-top: 34px;
    margin-bottom: 14px;
    font-size: 30px;
  }

  .service-card a {
    margin-top: 24px;
    margin-bottom: 30px;
  }
}

@media (max-width: 700px) {
  .desktop-nav a:last-child {
    background: transparent;
    border: 0;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
