.main-header-blocks {
  display: flex;
  flex-wrap: wrap;
  margin: -10px;
}
.main-header-blocks > div {
  margin: 10px;
  position: relative;
}
.main-header-blocks > div:first-child {
  flex-basis: calc(66.6666666667% - 20px);
  display: flex;
  align-items: center;
}
.main-header-blocks > div:nth-child(n+2) {
  position: relative;
  z-index: 0;
  background: var(--black);
  color: var(--white);
  border-radius: 40px;
  padding: 40px;
  box-sizing: border-box;
  overflow: hidden;
  transition: all 0.5s ease-out;
}
.main-header-blocks > div:nth-child(n+2):hover {
  transform: scale(1.05);
}
.main-header-blocks > div:nth-child(n+2):after {
  content: "";
  position: absolute;
  top: 82px;
  left: 40px;
  width: 32px;
  height: 32px;
  background: url(images/star.svg) 50% 50%/contain no-repeat;
}
.main-header-blocks > div:nth-child(n+2) img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 1280px;
  z-index: -1;
  opacity: 0.2;
  object-fit: cover;
}
.main-header-blocks > div:nth-child(2) {
  flex-basis: calc(33.3333333333% - 20px);
  text-align: right;
  padding-bottom: 29px;
}
.main-header-blocks > div:nth-child(2) img {
  opacity: 1;
  height: auto;
  width: auto;
  object-position: 0 50%;
}
.main-header-blocks > div:nth-child(2) .main-header-blocks-title {
  margin-bottom: 8px;
}
.main-header-blocks > div:nth-child(3) {
  flex-basis: calc((100% - 60px) / 1240 * 317);
  /*flex-basis: calc(100% / 4 - 20px);*/
  min-height: 252px;
}
.main-header-blocks > div:nth-child(3):after {
  content: "";
  position: absolute;
  top: unset;
  left: unset;
  bottom: 0;
  right: 0;
  width: 161px;
  height: 139px;
  background: url(images/decor3.svg) 50% 50%/contain no-repeat;
}
.main-header-blocks > div:nth-child(4) {
  flex-basis: calc((100% - 60px) / 1240 * 317);
  background: var(--main-color);
}
.main-header-blocks > div:nth-child(4):after {
  content: "";
  position: absolute;
  top: unset;
  left: unset;
  bottom: 0;
  right: 0;
  width: 157px;
  height: 143px;
  background: url(images/decor4.svg) 50% 50%/contain no-repeat;
}
.main-header-blocks > div:nth-child(4) .main-header-blocks-title {
  font-size: 20px;
}
.main-header-blocks > div:nth-child(4) img {
  left: calc(-100% - 20px);
}
.main-header-blocks > div:nth-child(5) {
  flex-basis: calc((100% - 60px) / 1240 * 606);
}
.main-header-blocks > div:nth-child(5):after {
  left: unset;
  right: 40px;
  top: 102px;
}
.main-header-blocks > div:nth-child(5) img {
  left: auto;
  right: 0;
}
.main-header-blocks > div:nth-child(5) .main-header-blocks-links {
  margin-bottom: 32px;
}
.main-header-blocks > div:nth-child(5) .main-header-blocks-text {
  max-width: 469px;
}
.main-header-blocks > div > a {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.main-header-blocks-title {
  font-family: "Druk Text Wide Cyr", sans-serif;
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.main-header-blocks-text {
  font-size: 14px;
}
.main-header-blocks-links {
  position: relative;
  z-index: 2;
  display: flex;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.main-header-blocks-links > div {
  margin-right: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.main-header-blocks-links > div a {
  display: inline-block;
  border: solid 1px var(--white);
  border-radius: 50px;
  padding: 4px 16px;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 12px;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.main-header-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 -8px;
}
.main-header-title > div {
  margin: 10px 8px;
  font-family: "Druk Text Wide Cyr", sans-serif;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  text-transform: uppercase;
}
.main-header-title > div:first-child {
  font-size: 36px;
}
.main-header-title > div:nth-child(2) {
  font-size: 16px;
}
.main-header-title > div:nth-child(3) {
  font-size: 40px;
  color: var(--black);
  flex-basis: 100%;
  background: var(--white);
  border-radius: 120px;
  box-sizing: border-box;
  padding: 0 0 8px;
  text-align: center;
  max-width: 804px;
}
.main-header-title > div:nth-child(4) {
  font-size: 40px;
  margin-bottom: 5px;
}

@media screen and (max-width: 1279px) {
  .main-header-blocks > div:nth-child(2):after {
    left: unset;
    right: 23px;
    top: 49px;
  }
  .main-header-blocks > div:nth-child(5):after {
    left: unset;
    right: 23px;
    top: 81px;
  }
  .main-header-title {
    justify-content: center;
  }
}
@media screen and (max-width: 1100px) {
  .main-header-blocks > div:first-child {
    flex-basis: calc(100% - 20px);
  }
  .main-header-blocks > div:nth-child(2) {
    flex-basis: calc(50% - 20px);
    text-align: left;
    order: 2;
  }
  .main-header-blocks > div:nth-child(3) {
    flex-basis: calc(50% - 20px);
    order: 3;
  }
  .main-header-blocks > div:nth-child(4) {
    flex-basis: calc(50% - 20px);
    order: 4;
  }
  .main-header-blocks > div:nth-child(5) {
    flex-basis: calc(50% - 20px);
    order: 1;
  }
}
@media screen and (max-width: 800px) {
  .main-header-blocks-title {
    font-size: 18px;
  }
  .main-header-blocks > div:nth-child(2) {
    flex-basis: calc(100% - 20px);
  }
  .main-header-blocks > div:nth-child(4) .main-header-blocks-title {
    font-size: 18px;
  }
  .main-header-blocks > div:nth-child(5) {
    flex-basis: calc(100% - 20px);
  }
  .main-header-blocks > div:nth-child(5) .main-header-blocks-links {
    margin-bottom: 20px;
  }
  .main-header-title > div:first-child {
    flex-basis: 100%;
    text-align: center;
    font-size: 18px;
  }
  .main-header-title > div:nth-child(2) {
    font-size: 12px;
  }
  .main-header-title > div:nth-child(3) {
    font-size: 18px;
  }
  .main-header-title > div:nth-child(4) {
    font-size: 16px;
  }
}
@media screen and (max-width: 600px) {
  .main-header-blocks > div:nth-child(3):after {
    width: 49px;
    height: 50px;
    background: url(images/decor3_m.svg) 50% 50%/contain no-repeat;
  }
  .main-header-blocks > div:nth-child(4):after {
    width: 49px;
    height: 50px;
    background: url(images/decor4_m.svg) 50% 50%/contain no-repeat;
  }
  .main-header-blocks-links > div {
    flex-basis: 100%;
    margin-right: 0;
  }
  .main-header-blocks > div:nth-child(n+2) {
    border-radius: 20px;
    padding: 20px;
  }
  .main-header-blocks > div:nth-child(3) {
    padding: 20px 12px;
    min-height: 120px;
  }
  .main-header-blocks > div:nth-child(3) .main-header-blocks-title {
    font-size: 10px;
  }
  .main-header-blocks > div:nth-child(4) {
    padding: 20px 12px;
  }
  .main-header-blocks > div:nth-child(4) .main-header-blocks-title {
    font-size: 10px;
  }
}

/*# sourceMappingURL=style.css.map */
