/* Секция «Услуги»: фон bg-2, чередование картинка слева / справа */

.services {
  position: relative;
  padding: clamp(3rem, 8vw, 5.25rem) 1.25rem;
  overflow: hidden;
}

.services__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/bg-2.jpg") center top / cover no-repeat;
}

.services__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(230, 248, 255, 0.35) 45%,
      rgba(255, 255, 255, 0.28) 100%
    ),
    radial-gradient(
      90% 70% at 50% 35%,
      rgba(255, 255, 255, 0.25) 0%,
      transparent 65%
    );
}

.services__inner {
  position: relative;
  z-index: 2;
  max-width: var(--header-max-width);
  margin: 0 auto;
}

.services__title {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-align: center;
  color: var(--color-navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.services__rows {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* Ряд: две колонки; --media-end = картинка справа */
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  align-items: center;
}

.service-row--media-end .service-row__figure {
  order: 2;
}

.service-row--media-end .service-row__text {
  order: 1;
}

.service-row__figure {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  background: rgba(26, 59, 93, 0.08);
  box-shadow: 0 16px 40px rgba(26, 59, 93, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.service-row__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.service-row__text {
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.1rem, 2.5vw, 1.5rem);
  border-radius: 22px;
  background: var(--services-glass-bg);
  border: 1px solid var(--services-glass-border);
  box-shadow: 0 10px 36px rgba(26, 59, 93, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-row__heading {
  margin: 0 0 0.85rem;
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.service-row__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: #2c3d4f;
}

.service-row__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: #3a4a5a;
}

.service-row__list li {
  margin-bottom: 0.4rem;
}

.service-row__list li:last-child {
  margin-bottom: 0;
}

.service-row__body p {
  margin: 0 0 0.65rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: #3a4a5a;
}

.service-row__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .service-row {
    grid-template-columns: 1fr;
  }

  .service-row--media-end .service-row__figure,
  .service-row--media-end .service-row__text {
    order: 0;
  }

  .service-row__figure {
    order: -1;
  }
}

@media (max-width: 560px) {
  .service-row__figure {
    border-radius: 22px;
  }
}
