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

.main {
  background-image: url('./img/background1.png');
  background-repeat: no-repeat;
  background-position: top right;
}

.about-section {
  padding: 38px 30px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.first-text-block {
  display: flex;
}

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

.first-text-block-column {
  padding-top: 253px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.white-line.l1 {
  background-color: rgba(255, 255, 255, 0.2);
  height: 1px;
  max-width: 613px;
  width: 100%;
  padding-left: 67px;
  box-sizing: border-box;
  position: relative;
}

.white-line.l1:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: -46px;
  height: 46px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.text-row.r1 {
  display: flex;
  margin-top: 56px;
}

.row-name {
  font-size: 50px;
  color: white;
  font-family: HelveticaNeueCyr-UltraLight;
  font-weight: 100;
}

.row-text-column {
  max-width: 417px;
  margin-left: 33px;
  margin-right: 32px;
}

.row-text {
  color: white;
  font-size: 14px;
  font-family: HelveticaNeueCyr-Roman;
  line-height: 24px;
  padding: 0 24px 0 37px;
}

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

.white-line.l2 {
  background-color: rgba(255, 255, 255, 0.2);
  height: 1px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 34px;
  position: relative;
}

.white-line.l2:before {
  position: absolute;
  content: '';
  left: 0;
  bottom: 0px;
  height: 23px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.white-line.l2:after {
  position: absolute;
  content: '';
  right: 0;
  bottom: 0px;
  height: 23px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.white-line.l3 {
  background-color: rgba(255, 255, 255, 0.2);
  height: 46px;
  width: 1px;
  box-sizing: border-box;
  margin-left: 39px;
}

.second-text-block {
  display: flex;
  padding-right: 70px;
  align-items: center;
}

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

.second-text-block-image-box {
  position: relative;
}

.second-text-block-image-box:before {
  position: absolute;
  content: '';
  right: -54px;
  top: 50%;
  height: 1px;
  width: 46px;
  background-color: rgba(255, 255, 255, 0.2);
}

.second-text-block-image-box:after {
  position: absolute;
  content: '';
  left: 50%;
  bottom: -45px;
  height: 46px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.text-row.r2 {
  display: flex;
  margin-left: 55px;
}

.white-line.l4 {
  background-color: rgba(255, 255, 255, 0.2);
  height: 100%;
  width: 1px;
  box-sizing: border-box;
}

.row-text-column.t2 {
  padding: 44px 0 39px 47px;
  max-width: 491px;
  margin: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

.row-text-column.t2:before {
  position: absolute;
  content: '';
  left:0;
  top: 0;
  height: 1px;
  width: 23px;
  background-color: rgba(255, 255, 255, 0.2);
}

.row-text-column.t2::after {
  position: absolute;
  content: '';
  left:0;
  bottom: 0;
  height: 1px;
  width: 23px;
  background-color: rgba(255, 255, 255, 0.2);
}

.row-text.t2 {
  padding: 0;
}

.third-text-block {
  padding: 45px 0 0 212px;
  display: flex;
  flex-direction: column;
}

.row-text.t3 {
  max-width: 417px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 50px 26px 0 37px;
  box-sizing: border-box;
  position: relative;
}

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

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


.row-text.t4 {
  padding-left: 37px;
  max-width: 814px;
  font-size: 24px;
  line-height: 32px;
  margin-top: 65px;
}

.fourth-text-block {
  margin-top: 33px;
  display: flex;
  align-items: center;
  padding-left: 37px;
}

.row-text-column.t3 {
  min-height: 417px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  padding: 88px 72px 50px 0;
  box-sizing: border-box;
  position: relative;
  margin-right: 45px;
  margin-left: 0;
  max-width: 369px;
}

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

.row-text-column.t3:before {
  position: absolute;
  content: '';
  right: 0;
  top: 0;
  height: 1px;
  width: 23px;
  background-color: rgba(255, 255, 255, 0.2);
}

.row-text-column.t3:after {
  position: absolute;
  content: '';
  right: 0;
  bottom: 0;
  height: 1px;
  width: 23px;
  background-color: rgba(255, 255, 255, 0.2);
}

.fourth-text-block-image-box {
  position: relative;
}

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

.row-text.t5 {
  padding: 0;
}

.our-cards-box {
  max-width: 1280px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 142px;
}

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

.card-title {
  font-size: 50px;
  color: white;
  font-family: HelveticaNeueCyr-UltraLight;
  font-weight: 100;
  text-transform: uppercase;
  text-align: center;
}

.card-box {
  background-color: #BEB1AE;
  max-width: 411px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
  padding: 95px 34px 62px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  min-height: 622px;
}

.card-img {
  align-self: center;
}

.card-description {
  font-size: 16px;
  font-family: HelveticaNeueCyr-Bold;
  margin-top: 80px;
}

.card-text {
  font-family: HelveticaNeueCyr-Roman;
  font-size: 14px;
  margin-top: 25px;
  line-height: 17px;
}

.card-list {
  margin-top: 38px;
  list-style: none;
}

.card-list li {
  padding: 20px 20px 20px 70px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  position: relative;
  font-family: HelveticaNeueCyr-Roman;
  font-size: 14px;
}

.card-list li:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.card-list li:before {
  width: 20px;
  height: 17px;
  position: absolute;
  content: '';
  left: 25px;
  background-image: url('./img/checkmark.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.main-button {
  max-width: 578px;
  width: 100%;
  min-height: 71px;
  margin-top: 101px;
  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;
}

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

@media (max-width: 1380px) {
  .our-cards-box {
    max-width: 943px;
    justify-content: space-around;
  }

  .our-card:nth-child(3) {
    margin-top: 30px;
  }
}

@media (max-width: 1200px) {
  .first-text-block {
    flex-direction: column-reverse;
    align-items: center;
  }

  .first-text-block-column {
    padding-top: 45px;
  }

  .first-text-block-image-box {
    position: relative;
  }

  .first-text-block-image-box:after {
    position: absolute;
    content: '';
    left: 50%;
    bottom: -45px;
    height: 45px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }

  .white-line.l1:after {
    position: absolute;
    content: '';
    right: 0;
    bottom: -46px;
    height: 46px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.2);
  }

  .second-text-block {
    flex-direction: column;
  }

  .row-text-column.t2 {
    margin-top: 45px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: none;
    padding: 44px 47px 39px 47px;
  }

  .row-text-column.t2:before {
    left: 0;
    top: 0;
    height: 23px;
    width: 1px;
  }

  .row-text-column.t2:after {
    left: initial;
    right: 0;
    top: 0;
    height: 23px;
    width: 1px;
  }

  .third-text-block {
    padding: 45px 0 0;
    align-self: flex-end;
  }

  .second-text-block-image-box:before {
    display: none;
  }
}

@media (max-width: 1000px) {
  .our-cards-box {
    flex-direction: column;
  }

  .our-card:nth-child(2) {
    margin-top: 30px;
  }
}

@media (max-width: 925px) {
  .fourth-text-block {
    flex-direction: column-reverse;
    margin-top: 40px;
    padding-left: 0;
  }

  .third-text-block {
    align-items: center;
    align-self: center;
  }

  .row-text-column.t3 {
    margin-top: 43px;
    padding: 45px 35px 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    margin-right: 0;
  }

  .fourth-text-block-image-box:before {
    left: 50%;
    top: initial;
    bottom: -43px;
    height: 43px;
    width: 1px;
  }

  .row-text-column.t3:before {
    left: 0;
    top: 0;
    height: 23px;
    width: 1px;
  }

  .row-text-column.t3:after {
    right: 0;
    top: 0;
    height: 23px;
    width: 1px;
  }

  .second-text-block {
    padding-right: 0;
  }

  .text-row.r2 {
    margin-left: 0px;
  }
}

@media (max-width: 620px) {
  .first-text-block-image, .second-text-block-image, 
  .fourth-text-block-image {
    box-sizing: border-box;
    width: 100%;
    height: auto;
  }

}

@media (max-width: 600px) {
  .text-row.r1 {
    flex-direction: column;
    align-items: center;
  }

  .row-name {
    margin-bottom: 30px;
  }

  .page-name {
    font-size: 60px;
  }

  .row-text {
    padding: 0 10px;
  }

  .row-text-column.t2 {
    padding: 44px 10px 39px;
  }

  .row-text-column {
    margin-left: 0;
    margin-right: 0;
  }

  .row-text.t3 {
    padding: 50px 10px 0;
    box-sizing: border-box;
    position: relative;
  }

  .row-text.t4 {
    padding: 0;
  }

  .row-text-column.t3 {
    padding: 45px 10px 50px;
  }
}