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

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

.page-frontend--project-page .site-header__content-wrapper {
  border-color: transparent;
}

.project-image {
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 1440/330;
  object-fit: cover;
}

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

.hero {
  padding-top: 52px;
  padding-bottom: 90px;
}

.hero__breadcrumbs {
  margin-bottom: 53px;
}

.hero .hero__section-title {
  font-size: 34px;
  line-height: 1.2;
}

.hero__cards {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  margin-top: 35px;
}

.hero-card {
  flex: 1;
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  gap: 65px;
  padding: 30px;
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -0.5px;
  right: -0.5px;
  background-size: 100% 100%;
  background-position: top right;
  background-repeat: no-repeat;
  background-image: url(../img/corner-small-t-r.svg);
  width: 94px;
  height: 95px;
}

.hero-card__header {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.hero-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.5;
}

.hero-card__description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .project-image {
    aspect-ratio: 640/220;
  }
  
  .hero {
    padding-top: 25px;
  }
  
  .hero__breadcrumbs {
    margin-bottom: 25px;
  }

  .hero .hero__section-title {
    font-size: 24px;
    line-height: 1.25;
  }

  .hero__cards {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin-top: 25px;
  }

  .hero-card {
    width: 100%;
    height: 210px;
    min-height: 210px;
  }
  .hero-card::before {
    width: 66px;
    height: 67px;
  }

  .hero-card__title {
    font-size: 14px;
  }

  .hero-card__description {
    font-size: 16px;
  }
}

@media (max-width: 639px) {
  .project-image {
    aspect-ratio: 320/220;
  }

  .hero .hero__section-title {
    font-size: 16px;
  }

  .hero__cards {
    gap: 10px;
  }

  .hero-card {
    height: fit-content;
    min-height: auto;
    gap: 35px;
  }
  .hero-card::before {
    display: none;
  }
}

/* ===== Этапы работ ===== */

.stages {
  position: relative;
  padding: 90px 0;
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
}

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

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

.stages__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}

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

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

.stages__item-text {
  font-size: 34px;
  font-weight: 400;
  line-height: 54px;
  margin: 0 0 10px 0;
}

.stages__item-description {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

.text-wrapping--mobile {
  display: none;
}

@media (max-width: 1000px) {
  .text-wrapping--mobile {
    display: inline;
  }

  .stages::before {
    background-image: url(../img/corner-small-t-r.svg);
    width: 67px;
    height: 67px;
    top: -0.5px;
    right: -1px;
  }

  .stages__list {
    margin-top: 25px;
  }

  .stages__item-num {
    line-height: 38px;
  }

  .stages__item-text {
    font-size: 24px;
    line-height: 38px;
  }

  .stages__item-description {
    font-size: 14px;
  }
}

@media (max-width: 639px) {
  .stages::before {
    right: -0.5px;
  }

  .stages__list {
    margin-top: 25px;
  }

  .stages__item-text {
    font-size: 20px;
    line-height: 32px;
  }

  .stages__item-num {
    line-height: 32px;
  }
}

/* ===== Слайдер ===== */

.slider-section {
  display: flex;
  gap: 20px;
  overflow: hidden;
  margin-bottom: 90px;
}

.slider-left {
  position: relative;
  width: 615px;
  height: 742px;
}

.slider-left::after {
  content: "";
  position: absolute;
  top: -2px;
  right: -2px;
  width: 152px;
  height: 153px;
  background-image: url('../img/corner-dark.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: top right;
  pointer-events: none;
  transform: rotate(90deg);
  z-index: 3;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero__slider-controls {
  position: absolute;
  bottom: 37px;
  right: 40px;
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-section .swiper-button-next,
.slider-section .swiper-button-prev {
  position: static;
  margin-top: 0;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-shrink: 0;
  background-color: transparent;
  backdrop-filter: blur(5.1692304611206055px);
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
  opacity: .9;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.slider-section .hero__slider-btn svg {
  width: 10px;
  height: 10px;
}

.hero__slider-btn--next svg {
  transform: rotate(180deg);
}

.slider-left .swiper-slide {
  width: 100%;
  height: 100%;
}

.slider-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 615 / 742;
  border-radius: 3px;
  border-top-left-radius: 0;
}

.slider-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 145px;
}

.slider-text {
  margin-left: 45px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
}

.slider-section__slider-pagination {
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  right: auto;
  width: 80px;
  height: 40px;
  margin-left: 65px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 5px;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

.slider-thumbs {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin: 0 20px 0 0;
}

.slider-thumbs img {
  width: calc((100% - 20px) / 4 - 10px);
  height: auto;
  flex: 1;
  aspect-ratio: 1/1;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.slider-thumbs img.active {
  display: none;
}

@media (max-width: 1200px) {
  .slider-section {
    flex-direction: column;
    margin-bottom: 0;
  }

  .slider-left {
    width: 100%;
    height: 500px;
    margin-bottom: 15px;
  }

  .slider-left::after {
    display: none;
  }

  .slider-right {
    width: 100%;
    padding: 90px 30px;
    display: flex;
    flex-direction: column;
  }

  .slider-section__slider-pagination {
    margin-left: 0;
    margin-bottom: 25px;
  }

  .slider-text {
    font-size: 14px;
    margin: 0 0 25px 0;
    height: 80px;
  }

  .slider-left img {
    height: 500px;
    aspect-ratio: auto;
    border-top-left-radius: 3px;
  }

  .slider-thumbs {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
  }

  .slider-section .swiper-button-next, 
  .slider-section .swiper-button-prev {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 900px) {
  .slider-text {
    height: 135px;
  }

  .slider-left {
    height: 360px;
  }

  .slider-left img {
    height: 360px;
  }
}

@media (max-width: 639px) {
  .slider-right {
    padding: 90px 10px;
  }

  .slider-text {
    height: 160px;
  }

  .slider-left {
    height: 300px;
  }

  .slider-left img {
    height: 300px;
  }

  .hero__slider-controls {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 460px) {
  .slider-text {
    height: 220px;
  }
}

@media (max-width: 400px) {
  .slider-text {
    height: 243px;
  }
}