.page {
  background: linear-gradient(180deg, rgba(209,201,184,1) 0%, rgba(75,64,61,1) 25%);
  background-repeat: no-repeat;
}

.container {
  background-image: url('./img/background4.png');
  background-repeat: no-repeat;
  background-position: center top;
}

.page-name {
  max-width: 880px;
}

.header-text {
  max-width: 865px;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mastermind-section {
  max-width: 1540px;
  width: 100%;
  padding: 470px 30px 0;
  box-sizing: border-box;
  margin-top: 15px;
}

.mastermind-row {
  display: flex;
}

.mastermind-image {
  border-radius: 50%;
  border: 23px solid rgba(255, 255, 255, 0.1);
}

.mastermind-image-box {
  position: relative;
}

.mastermind-image-box::before {
  position: absolute;
  content: '';
  left: 50%;
  top: -470px;
  height: 470px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.mastermind-text-box {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 38px 57px 0 90px;
  margin-top: 252px;
  position: relative;
}

.mastermind-text {
  color: white;
  font-family: HelveticaNeueCyr-Roman;
  font-size: 14px;
  line-height: 20px;
}

.mastermind-text:nth-child(n+2) {
  margin-top: 25px;
}

.mastermind-text-box:after {
  position: absolute;
  content: '';
  right: 0;
  top: 0;
  height: 46px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.mastermind-row:nth-child(2) {
  margin-top: 75px;
}

.mastermind-image-block {
  background-color: rgba(255, 255, 255, 0.1);
  min-width: 505px;
  height: 505px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.mastermind-text-box.b2 {
  padding-top: 0;
  border-top: none;
  margin-top: 0;
}

.mastermind-text-box.b2:after {
  display: none;
}

.mastermind-description {
  font-family: HelveticaNeueCyr-UltraLight;
  font-size: 50px;
  color: white;
  max-width: 695px;
}

.mastermind-info-text {
  font-size: 24px;
  font-family: HelveticaNeueCyr-Roman;
  color: white;
  line-height: 33px;
  margin-top: 33px;
}

.mastermind-text:last-child {
  max-width: 500px;
}

.main-button {
  max-width: 580px;
  width: 100%;
  min-height: 71px;
  margin-top: 45px;
  background-color: rgba(176, 36, 8, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #CEBE80;
  border-radius: 35px;
  color: white;
  text-transform: uppercase;
  font-family: HelveticaNeueCyr-Roman;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: 8px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  cursor: pointer;
  align-self: flex-end;
}

.main-button:hover {
  background-color: #8d1d06;
}

@media (min-width: 1920px) {
  .container {
    background-size: 100% auto;
  }
}

@media (max-width: 1110px) {
  .page-name {
    font-size: 50px;
  }

  .mastermind-row {
    flex-direction: column;
    align-items: center;
  }

  .mastermind-text-box {
    padding-right: 25px;
    padding-left: 25px;
    margin-top: 50px !important;
  }

  .mastermind-text-box:before {
    position: absolute;
    content: '';
    left: 0;
    top: 0;
    height: 46px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }

  .mastermind-text-box.b2:before {
    display: none;
  }
}

@media (max-width: 700px) {
  .container {
    background-position-x: right;
  }
}

@media (max-width: 620px) {
  .mastermind-image {
    box-sizing: border-box;
    width: 100%;
    height: auto;
  }

  .mastermind-image-block {
    min-width: initial;
    width: calc(100vw - 60px);
    height: calc(100vw - 60px);
  }

  .mastermind-image-block img {
    width: 90%;
    height: auto;
  }
}

@media (max-width: 400px) {
  .page-name {
    font-size: 40px;
  }

  .mastermind-description {
    font-size: 40px;
  }

  .main-button {
    font-size: 14px;
  }
}

.footer {
  padding: 0 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 110px;
}