.boxes-hero {
  padding-top: 67px;
  padding-bottom: 50px;
  overflow: hidden;
  background: url("../img/boxes-hero-bg.webp") 100px 0 no-repeat;
}

.boxes-hero__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin-bottom: 100px;
  position: relative;
}

.boxes-hero__content {
  -webkit-box-flex: 0;
  -ms-flex: 0 0 68.75%;
  flex: 0 0 68.75%;
}

.boxes-hero__title {
  font-weight: 500;
  font-size: 86px;
  line-height: 110%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #1d1d1d;
  margin-bottom: 27px;
}

.boxes-hero__title span {
  color: #ff3627;
}

.boxes-hero__text {
  font-weight: 400;
  font-size: 25px;
  line-height: 138%;
  color: #1d1d1d;
  font-family: "Roboto Flex";
  max-width: 570px;
  margin-bottom: 40px;
}

.boxes-hero__link {
  font-weight: 600;
  font-size: 17px;
  line-height: 130%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background-color: #ff3627;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  width: 220px;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 220px;
  flex: 0 0 220px;
  height: 220px;
  border-radius: 50%;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.boxes-hero__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.boxes-hero__media {
  margin-right: -130px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.boxes-hero__media_tablet {
  display: none;
}

.boxes-hero__image:last-child {
  margin-top: -200px;
  margin-left: -20px;
}

.boxes-hero__desc {
  font-weight: 500;
  font-size: 19px;
  line-height: 141%;
  color: #1d1d1d;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 70px;
}

.boxes-advantages {
  padding: 50px 0;
  overflow: hidden;
}

.boxes-advantages__title {
  font-weight: 400;
  font-size: 78px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #3f3f3f;
  position: relative;
  text-align: center;
  margin-bottom: 120px;
}

.boxes-advantages__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
  background: #ff3527;
  height: 10px;
  width: 188px;
}

.boxes-advantages__body {
  display: -ms-grid;
  display: grid;
  gap: 40px;
}

.boxes-advantages__item {
  background: #f8f8f8;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 30px;
  min-height: 465px;
}

.boxes-advantages__content {
  padding-top: 45px;
  padding-left: 70px;
  padding-bottom: 20px;
}

.boxes-advantages__value {
  font-weight: 700;
  font-size: 31px;
  letter-spacing: 0.02em;
  color: #3f3f3f;
  border: 1px solid #3f3f3f;
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  width: 52px;
  height: 52px;
}

.boxes-advantages__caption {
  font-weight: 700;
  font-size: 31px;
  line-height: 110%;
  letter-spacing: 0.02em;
  color: #3f3f3f;
  margin-bottom: 15px;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
  margin-top: 0;
}

.boxes-advantages__text {
  font-weight: 400;
  font-size: 25px;
  line-height: 138%;
  letter-spacing: 0.02em;
  color: #3f3f3f;
}

.boxes-advantages__image {
  -ms-flex-item-align: end;
  align-self: flex-end;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 46.171875%;
  flex: 0 0 46.171875%;
  position: relative;
  height: 365px;
  border-radius: 15px 0 0 15px;
  overflow: hidden;
  width: 100%;
}

.boxes-advantages__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: 0 0;
  object-position: 0 0;
}

.boxes-cost {
  padding: 50px 0;
  overflow: hidden;
}

.boxes-cost__title {
  font-weight: 400;
  font-size: 78px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #3f3f3f;
  position: relative;
  text-align: center;
  margin-bottom: 65px;
}

.boxes-cost__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
  background: #ff3527;
  height: 10px;
  width: 188px;
}

.boxes-cost__body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.boxes-cost__list {
  margin-bottom: 60px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.boxes-cost__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 11px;
  font-weight: 400;
  font-size: 23px;
  line-height: 150%;
  color: #3f3f3f;
}

.boxes-cost__item:not(:last-child) {
  margin-bottom: 15px;
}

.boxes-cost__item::before {
  content: "";
  -webkit-box-flex: 0;
  -ms-flex: 0 0 6px;
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #ff3527;
}

.boxes-cost__row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 95px;
  position: relative;
}

.boxes-cost__price {
  font-weight: 700;
  font-size: 39px;
  line-height: 112%;
  color: #3f3f3f;
}

.boxes-cost__price span {
  font-size: 31px;
}

.boxes-cost__link {
  font-weight: 400;
  font-size: 25px;
  line-height: 130%;
  letter-spacing: 0.02em;
  color: #fcfcfc;
  background-color: #ff3627;
  border-radius: 16px;
  padding: 9px 30px;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
  text-align: center;
  white-space: nowrap;
}

.boxes-cost__arrow {
  position: absolute;
  bottom: 60%;
  left: 50%;
}

.boxes-works {
  padding-top: 50px;
  padding-bottom: 100px;
  overflow: hidden;
}

.boxes-works__title {
  font-weight: 400;
  font-size: 78px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #3f3f3f;
  position: relative;
  text-align: center;
  margin-bottom: 70px;
}

.boxes-works__title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  -webkit-transform: translate(-50%, 0%);
  -ms-transform: translate(-50%, 0%);
  transform: translate(-50%, 0%);
  background: #ff3527;
  height: 10px;
  width: 188px;
}

.boxes-works__body {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 50px 23px;
  margin-bottom: 80px;
}

.boxes-works__image {
  position: relative;
  aspect-ratio: 627/439;
  display: block;
  margin-bottom: 23px;
  overflow: hidden;
}

.boxes-works__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  -o-object-fit: cover;
  object-fit: cover;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

.boxes-works__caption {
  margin: 0;
}

.boxes-works__caption a {
  font-weight: 600;
  font-size: 27px;
  line-height: 133%;
  text-transform: uppercase;
  color: #4c4c4c;
}

.boxes-works__text {
  font-weight: 400;
  font-size: 23px;
  line-height: 133%;
  color: #696969;
}

.boxes-works__link {
  margin: 0 auto 100px;
  font-weight: 400;
  font-size: 24px;
  line-height: 130%;
  letter-spacing: 0.02em;
  color: #fcfcfc;
  max-width: 230px;
  min-height: 49px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  padding: 5px 10px;
  width: 100%;
  background-color: #ff3627;
  border-radius: 16px;
  -webkit-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.boxes-works__desc {
  font-weight: 500;
  font-size: 19px;
  line-height: 141%;
  color: #1d1d1d;
}

.boxes-works__more {
  font-weight: 500;
  font-size: 16px;
  line-height: 141%;
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
  color: #e83e33;
  padding: 0;
  display: none;
}

.boxes-works__more span:last-child {
  display: none;
}

._showmore-active .boxes-works__more span {
  display: none;
}

._showmore-active .boxes-works__more span:last-child {
  display: block;
}

@media (max-width: 1550px) {
  .boxes-hero__media {
    margin-right: -20px;
  }
}

@media (max-width: 1280px) {
  .boxes-hero {
    padding-top: 100px;
    padding-bottom: 40px;
    background: url("../img/boxes-hero-bg.webp") 0 0/100% no-repeat;
  }

  .boxes-hero__content {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
  }

  .boxes-hero__media_pc {
    display: none;
  }

  .boxes-hero__media_tablet {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .boxes-hero__media {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: reverse;
    -ms-flex-direction: row-reverse;
    flex-direction: row-reverse;
    margin: 0;
  }

  .boxes-hero__image:first-child {
    margin-top: -40px;
  }

  .boxes-hero__image:last-child {
    margin-top: 0;
    margin-left: 0;
    margin-right: -160px;
    position: relative;
    z-index: 2;
  }

  .boxes-advantages__content {
    padding-top: 20px;
    padding-left: 20px;
  }

  .boxes-advantages__value {
    margin-bottom: 24px;
  }
}

@media (max-width: 992px) {
  .boxes-hero__body {
    margin-bottom: 55px;
  }

  .boxes-hero__title {
    font-size: 50px;
    margin-bottom: 20px;
  }

  .boxes-hero__text {
    font-size: 24px;
  }

  .boxes-hero__link {
    width: 150px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 150px;
    flex: 0 0 150px;
    height: 150px;
    font-size: 16px;
  }

  .boxes-hero__image {
    max-width: 400px;
  }

  .boxes-hero__desc {
    font-size: 18px;
    border: none;
    padding: 0;
  }

  .boxes-advantages {
    padding: 40px 0;
  }

  .boxes-advantages__title {
    font-size: 48px;
    margin-bottom: 56px;
  }

  .boxes-advantages__title::after {
    width: 100px;
    height: 6px;
    bottom: -5px;
  }

  .boxes-advantages__body {
    gap: 24px;
  }

  .boxes-advantages__item {
    min-height: 290px;
  }

  .boxes-advantages__value {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }

  .boxes-advantages__caption {
    font-size: 28px;
  }

  .boxes-advantages__text {
    font-size: 18px;
  }

  .boxes-advantages__image {
    height: 250px;
  }

  .boxes-cost {
    padding: 40px 0;
  }

  .boxes-cost__title {
    font-size: 48px;
    margin-bottom: 38px;
  }

  .boxes-cost__title::after {
    width: 100px;
    height: 6px;
    bottom: -5px;
  }

  .boxes-cost__item {
    font-size: 20px;
  }

  .boxes-cost__item:not(:last-child) {
    margin-bottom: 12px;
  }

  .boxes-cost__price {
    font-size: 32px;
  }

  .boxes-cost__price span {
    font-size: 24px;
  }

  .boxes-cost__arrow {
    left: 47%;
  }

  .boxes-works {
    padding-top: 40px;
    padding-bottom: 80px;
  }

  .boxes-works__title {
    font-size: 48px;
    margin-bottom: 45px;
  }

  .boxes-works__title::after {
    width: 100px;
    height: 6px;
    bottom: -5px;
  }

  .boxes-works__body {
    margin-bottom: 50px;
    gap: 40px 20px;
  }

  .boxes-works__image {
    margin-bottom: 20px;
  }

  .boxes-works__caption a {
    font-size: 24px;
  }

  .boxes-works__text {
    font-size: 20px;
  }

  .boxes-works__link {
    font-size: 20px;
    max-width: 178px;
    min-height: 46px;
    margin: 0 auto 75px;
  }

  .boxes-works__desc {
    font-size: 16px;
  }

  .boxes-works__more {
    display: block;
  }
}

@media (max-width: 768px) {
  .boxes-hero {
    padding: 25px 0;
  }

  .boxes-hero__title {
    font-size: 26px;
    margin-bottom: 16px;
  }

  .boxes-hero__text {
    font-size: 20px;
    margin-bottom: 30px;
  }

  .boxes-hero__link {
    width: 120px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 120px;
    flex: 0 0 120px;
    height: 120px;
  }

  .boxes-hero__media {
    display: none;
  }

  .boxes-hero__desc {
    font-size: 16px;
  }

  .boxes-advantages {
    padding: 25px 0;
  }

  .boxes-advantages__title {
    font-size: 36px;
    margin-bottom: 34px;
  }

  .boxes-advantages__title::after {
    width: 100px;
    height: 4px;
  }

  .boxes-advantages__body {
    gap: 20px;
  }

  .boxes-advantages__item {
    gap: 20px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .boxes-advantages__content {
    padding: 0;
  }

  .boxes-advantages__value {
    width: 30px;
    height: 30px;
    margin-bottom: 14px;
    font-size: 18px;
  }

  .boxes-advantages__caption {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .boxes-advantages__text {
    font-size: 16px;
  }

  .boxes-advantages__image {
    border-radius: 15px 15px 0 0;
    aspect-ratio: 279/130;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    height: auto;
  }

  .boxes-cost {
    padding: 25px 0;
  }

  .boxes-cost__title {
    font-size: 36px;
    margin-bottom: 34px;
  }

  .boxes-cost__title::after {
    width: 100px;
    height: 4px;
  }

  .boxes-cost__list {
    margin-bottom: 24px;
  }

  .boxes-cost__item {
    font-size: 16px;
  }

  .boxes-cost__row {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
  }

  .boxes-cost__price {
    font-size: 25px;
  }

  .boxes-cost__price span {
    font-size: 20px;
  }

  .boxes-cost__link {
    font-size: 16px;
    border-radius: 10px;
    padding: 9px 14px;
  }

  .boxes-cost__arrow {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
    left: auto;
    right: -10%;
    bottom: 6%;
  }

  .boxes-cost__arrow svg {
    width: 80px;
  }

  .boxes-works {
    padding-top: 25px;
    padding-bottom: 50px;
  }

  .boxes-works__title {
    font-size: 36px;
    margin-bottom: 34px;
  }

  .boxes-works__title::after {
    width: 100px;
    height: 4px;
  }

  .boxes-works__body {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    margin-bottom: 30px;
    gap: 20px;
  }

  .boxes-works__item_hidden-mobile {
    display: none;
  }

  .boxes-works__image {
    margin-bottom: 14px;
  }

  .boxes-works__caption a {
    font-size: 18px;
  }

  .boxes-works__text {
    font-size: 16px;
  }

  .boxes-works__link {
    font-size: 16px;
    max-width: 140px;
    min-height: 35px;
    margin: 0 auto 50px;
  }
}

@media (max-width: 768px) and (max-width: 768px) {
  .boxes-advantages__item {
    padding: 12px 12px 0 12px;
  }
}

@media (max-width: 576px) {
  .boxes-hero {
    background: url("../img/boxes-hero-bg.webp") center 0/150% no-repeat;
  }
}

@media (any-hover: hover) {
  .boxes-hero__link:hover {
    background-color: #F13F25;
    color: #fff;
  }

  .boxes-advantages__item:hover .boxes-advantages__caption {
    color: #e83e33;
  }

  .boxes-cost__link:hover {
    background-color: #F13F25;
    color: #fff;
  }

  .boxes-works__image:hover img {
    -webkit-transform: scale(1.07);
    -ms-transform: scale(1.07);
    transform: scale(1.07);
  }

  .boxes-works__caption a:hover {
    color: #ff3627;
  }

  .boxes-works__link:hover {
    background-color: #F13F25;
    color: #fff;
  }
}