/* ==========================================================================
   Section: Services (Услуги компании)
   ========================================================================== */

.section-services {
  padding-block: var(--gap-3xl);
}

.section-services__title {
  margin-left: calc(50% + 20px);
  margin-bottom: 62px;
  max-width: 365px;
  font-size: var(--fs-h2);
  font-weight: var(--fw-h2);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---- Grid ---- */

.section-services__grid {
  display: flex;
  gap: var(--gap-md);
}

/* ---- Card ---- */

.section-services__card {
  display: flex;
  width: calc(50% - var(--gap-md) / 2);
  min-height: 700px;
  background-color: rgba(224, 231, 235, 0.4);
  overflow: hidden;
}

.section-services__card-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 50%;
  padding: 60px;
}

/* ---- Number ---- */

.section-services__number {
  display: block;
  margin-bottom: var(--gap-lg);
  font-size: var(--fs-body);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--color-primary-dark);
  opacity: 0.4;
}

/* ---- Card Title ---- */

.section-services__card-title {
  margin-bottom: auto;
  font-size: var(--fs-h3);
  font-weight: var(--fw-h3);
  line-height: var(--lh-h3);
  letter-spacing: var(--ls-h3);
  color: var(--color-primary);
  text-transform: uppercase;
}

/* ---- Links ---- */

.section-services__links {
  display: flex;
  flex-direction: column;
  gap: var(--gap-md);
  width: 315px;
}

.section-services__links .link-arrow {
  width: 100%;
}

/* ---- Image ---- */

.section-services__image {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.section-services__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-services__image--multiply img {
  mix-blend-mode: multiply;
}

/* ---- Tablet ---- */

@media (max-width: 1199px) {
  .section-services__title {
    margin-left: 0;
    margin-bottom: var(--gap-xl);
  }

  .section-services__grid {
    flex-direction: column;
  }

  .section-services__card {
    width: 100%;
    min-height: 500px;
  }

  .section-services__card-content {
    width: 50%;
    padding: var(--gap-xl);
  }
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
  .section-services {
    padding-block: var(--gap-xl) 0;
  }

  .section-services__title {
    margin-left: 0;
    max-width: none;
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    letter-spacing: var(--ls-h3);
    text-align: left;
    margin-bottom: 24px;
  }

  .section-services__grid {
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
  }

  .section-services__card {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  .section-services__card-content {
    width: 100%;
    padding: 24px;
  }

  .section-services__number {
    font-size: 12px;
  }

  .section-services__links {
    width: 100%;
  }

  .section-services__card-title {
    font-size: var(--fs-h4);
    margin-bottom: var(--gap-md);
  }

  .section-services__image {
    height: 250px;
    flex: none;
  }

  .section-services__card {
    min-height: auto;
  }
}
