.page-frontend--services-page .site-main {
  margin-top: 90px;
}

@media (max-width: 1200px) {
  .page-frontend--services-page .site-main {
    margin-top: 60px;
  }
}

/* ===== Hero ===== */

.hero {
  padding-top: 50px;
  margin-bottom: 35px;
}

.hero .section-header {
  padding-bottom: 20px;
}

.section-header svg {
  flex-shrink: 0;
}

.hero__breadcrumbs {
  margin-bottom: 37px;
}

.section-header__description {
  margin: 0 0 0 190px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
}

.hero-description__text-wrapping {
  display: none;
}

@media (max-width: 1425px) {
  .section-header__description {
    margin-left: auto;
  }

  .hero-description__text-wrapping {
    display: inline;
  }
}

@media (max-width: 1200px) {
  .hero .section-header {
    flex-flow: row wrap;
    padding-bottom: 0;
    border-bottom: none;
  }

  .section-header__description {
    width: 100%;
    flex-shrink: 0;
    margin: 15px 0 0 0;
    padding-top: 25px;
    text-align: left;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
  }

  .hero-description__text-wrapping {
    display: none;
  }
}

@media (max-width: 639px) {
  .hero {
    padding-top: 25px;
    margin-bottom: 25px;
  }

  .hero__breadcrumbs {
    margin-bottom: 25px;
  }
}

/* ===== Услуги ===== */

.services-container {
  overflow: hidden;
}

.services {
  position: relative;
  padding-bottom: 90px;
}

.services::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 938px;
  height: 427px;
  background-image: url(../img/services-list-grid.svg);
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.services::after {
  content: "";
  z-index:-1;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 320px;
  height: 320px;
  background: linear-gradient(365deg, rgba(241, 135, 0, 1), rgba(241, 135, 0, 0));
  filter: blur(110px);
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
}

.services__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  z-index: 3;
}

.services__grid:not(:last-child) {
  margin-bottom: 20px;
}

.services__card {
  position: relative;
  width: calc(50% - 10px);
  height: 440px;
  text-decoration: none;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}
.services__card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('/img/grid.svg'); 
  z-index: 2;
}
.services__card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: 2;
}

.services__card-bg {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.services__card-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 23px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  z-index: 3;
}

.services__card-text {
  color: var(--color-text);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

.services__card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  flex-grow: 0;
  width: 46px;
  height: 46px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.services__card:hover .services__card-icon {
  background-color: var(--color-primary);
}

.services .show-more-btn {
  position: relative;
  z-index: 3;
}

@media (max-width: 1000px) {
  .services::before {
    bottom: 0;
    left: -30px;
    right: -30px;
    width: auto;
    height: auto;
    aspect-ratio: 640/308;
    transform: none;
  }

  .services__grid {
    gap: 10px;
  }

  .services__card {
    width: 100%;
    height: auto;
    aspect-ratio: 580/220;
  }

  .services__card-content {
    bottom: 20px;
    left: 20px;
    right: 20px;
    align-items: center;
  }

  .services__card-text {
    font-size: 14px;
  }

  .services__card-icon {
    width: 26px;
    height: 26px;
  }

  .services__card-icon svg {
    width: 11px;
    height: 11px;
  }

  .services-card__corner {
    width: 50px;
    height: 50px;
  }

  .services__card-icon--top {
    width: 42px;
    height: 42px;
  }

  .services__card--all .services__card-content {
    gap: 10px;
  }
}

@media (max-width: 639px) {
  .services::before {
    left: 50%;
    right: -0;
    width: 640px;
    height: 308px;
    transform: translateX(-50%);
  }

  .services__card {
    aspect-ratio: 300/220;
  }

  .services__card-icon--top {
    width: 42px;
    height: 42px;
  }
}

/* ===== структура ===== */

.structure {
  position: relative;
  padding: 90px 0;
  margin-bottom: 90px;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  z-index: 3;
}

.structure::before {
  content: "";
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 183px;
  height: 153px;
  background-image: url('../img/corner-bottom-right.svg');
  background-position: bottom right;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 4;
}

.structure .section-header {
  padding-bottom: 20px;
}

.structure-header__description {
  width: 337px;
  margin-left: auto;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  text-align: right;
  color: var(--color-text-dark);
}

.structure__list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--color-text-dark);
}

.structure__item {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 20px;
}

.structure__item:not(:last-child) {
  border-bottom: 2px solid rgba(36, 37, 39, 0.1);
}

.structure__item-num {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.structure__item-text {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .structure::before {
    background-image: url(../img/corner-small-b-r.svg);
    width: 67px;
    height: 67px;
    bottom: -1px;
    right: -1px;
  }

  .structure .section-header {
    flex-flow: row wrap;
    padding-bottom: 0;
    border-bottom: none;
  }

  .structure-header__description {
    width: 100%;
    flex-shrink: 0;
    margin: 15px 0 0 0;
    padding-top: 25px;
    text-align: left;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
  }

  .structure__list {
    margin-top: 31px;
  }

  .structure__item-text {
    font-size: 24px;
  }
}

@media (max-width: 639px) {
  .structure__list {
    margin-top: 21px;
  }

  .structure__item-text {
    font-size: 20px;
  }
}