.pergola {
  margin-bottom: 140px;
  margin-top: 40px;
}

.pergola__header .steps{
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: nowrap;
  gap: 15px;
}

.pergola__header .steps span {
  width: 100%;
  height: 10px;
  background-color: #D2D2D2;
}

.pergola__header .steps span.active {
  background-color: #0A253D;
}

.pergola__info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  align-items: center;
}

.pergola__info a {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 16px;
  color: #393939;
  opacity: 0;
  visibility: hidden;
}

.pergola__info a.active {
  opacity: 1;
  visibility: visible;
}

.pergola__header .steps-name {
  display: flex;
  justify-content: flex-end;
  font-size: 16px;
  font-weight: 700;
}

.pergola__header .steps-name em {
  font-style: normal;
  font-weight: 700;
  display: inline-block;
  padding: 0 3px;
}

.pergola__steps article {
  display: none;
}

.pergola__steps article#step-1 {
  display: block;
}

.pergola__steps h2 {
  margin-bottom: 24px;
}

.pergola__steps h3 {
  margin-bottom: 24px;
  font-size: 18px;
  font-weight: 500;
}

.pergola__steps h4 {
  margin-bottom: 16px;
  margin-top: -20px;
  font-size: 16px;
  font-weight: 400;
}

.pergola__steps #step-1 img {
  width: 100%;
  height: 288px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 24px;
}

.pergola__steps button {
  width: 100%;
  text-align: center;
  background-color: transparent;
  transition: .3s;
}

.pergola__steps #step-5 button {
  width: auto;
  margin: 0 auto;
}
.pergola__steps #step-5 {
  text-align: center;
}

.pergola__steps #step-5 p,
.pergola__steps #step-5 h2 {
  text-align: left;
}
.pergola__steps button:hover {
  color: #ffffff;
  background-color: #0A253D;
}

.pergola__steps .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

.pergola__steps #step-2 img,
.pergola__steps #step-4 img {
  width: 100%;
  height: 302px;
  object-fit: contain;
  margin-bottom: 24px;
}

.pergola__steps #step-3 img {
  width: 80%;
  height: auto;
  margin-bottom: 50px;
  margin-left: 10%;
}

.pergola__steps #step-3 .dosciany img {
  width: 100%;
  height: 330px;
  margin-bottom: 50px;
  object-fit: contain;
}

.pergola__steps #step-5 img {
  width: 100%;
  height: 175px;
  margin-bottom: 24px;
  object-fit: contain;
}

.pergola__steps #step-5 h3 {
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  text-align: center;
  margin-bottom: 24px;
}

.pergola__steps #step-5 .price {
  display: none;
}

.pergola__steps #step-5 .wall {
  border: 2px solid #ffffff;
  border-radius: 4px;
  cursor: pointer;
  transition: .3s;
  margin-bottom: 12px;
}

.pergola__steps #step-5 .wall.active {
  border-color: #0A253D;
}

#endpicture {
  display: none;
}

#endpicture.visable-for-admin {
  display: block;
  text-align: center;
  margin-bottom: 24px;
  padding: 25px;
  background-color: #D2D2D2;
  border-radius: 4px;
}

.endphoto {
  width: 100%;
  height: auto;
  margin-bottom: 50px;
}

.pergola__steps #step-6 table {
  width: 100%;
  margin-bottom: 50px;
}

.pergola__steps #step-6 table td:nth-of-type(even){
  background-color: #F8F8F8;
}

.pergola__steps #step-6 table th:nth-of-type(even){
  background-color: #F8F8F8;
  border-radius: 10px 10px 0 0;
}

.pergola__steps #step-6 table th{
  font-weight: 700;
  font-size: 20px;
  padding: 18px 10;
  border-bottom: 1px solid #07182B;
  text-align: center;
}

.pergola__steps #step-6 table td{
  font-weight: 400;
  font-size: 16px;
  padding: 20px 10px;
  border-bottom: 1px solid #C7C7C7;
  text-align: center;
}

.pergola__steps #step-6 table td:first-of-type,
.pergola__steps #step-6 table th:first-of-type{
  width: 70%;
  text-align: left;
}

.pergola__steps #step-6 table tr:last-of-type td:nth-of-type(even){
  border-bottom: 0;
  border-radius: 0 0 10px 10px;
}

.pergola__steps #step-6 table tr:last-of-type td{
  border-bottom: 0;
}

.pergola__steps .sum{
  display: flex;
  justify-content: flex-end;
  gap: 30px;
  border-top: 1px solid #C7C7C7;
  padding-top: 20px;
  margin-bottom: 80px;
  font-size: 30px;
  font-weight: 500;
  align-items: center;
  line-height: 60px;
}

.pergola__steps .sum span#sum {
  font-size: 60px;
  line-height: 60px;
}

.pergola__steps .sum span#sum strong{
  font-weight: 500;
}

.pergola__steps .sum span#sum strong{
  font-weight: 500;
}

.perg-buy-now {
  background-color: #0A253D;
  color: #ffffff;
  display: none;
}

.perg-buy-now:hover {
  color: #ffffff;
  background-color: #000000;
}


.pergola__steps #step-6 .buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pergola__steps #step-6 .buttons-form {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  margin-top: 40px;
}

.pergola__steps #step-6 .buttons-form .wpcf7-spinner {
  position: absolute;
}

.pergola__steps #step-6 form p {
  margin: 0;
}

.pergola__steps #step-6 form p.form-description {
  margin: 0 0 24px 0;
}

.pergola__steps #step-6 form .half-wrapper {
  display: flex;
  gap: 0 24px;
  flex-wrap: wrap;
  width: calc(100% + 24px);
}

.pergola__steps #step-6 form .half {
  width: calc(50% - 24px);
}

.pergola__steps #step-6 form input,
.pergola__steps #step-6 form textarea {
  border-color: #37B1FF;
  margin-bottom: 24px;
}

.pergola__steps #step-6 form .wpcf7-submit {
  margin-top: 0;
  background-color: #0A253D;
  color: #ffffff;
}

.pergola__steps #step-6 form h3 {
  font-size: 30px;
  text-align: center;
}

.pergola__steps #step-6 form .wpcf7-acceptance button {
  width: auto;
}

.pergola__steps #step-6 form .wpcf7-acceptance button:hover {
  background-color: transparent;
  color: #0A253D;
}
@media (max-width: 1024px) {
  #step-1 .col-12,
  #step-2 .col-12,
  #step-4 .col-12,
  #step-5 .col-12 {
    margin-bottom: 40px;
  }

  .pergola__steps #step-3 img {
    width: 100%;
    margin-left: 0;
  }

  .pergola__steps #step-5 img {
    height: 100px;
  }

  .pergola__steps .sum {
    font-size: 16px;
  }

  .pergola__steps .sum span#sum {
    font-size: 30px;
  }

  .pergola__steps #step-6 form .half-wrapper {
    width: 100%;
  }

  .pergola__steps #step-6 form .half {
    width: 100%;
  }

  .pergola__steps #step-6 .buttons-form {
    flex-direction: column;
    gap: 24px;
  }

  .pergola__steps #step-6 .buttons-form a {
    width: 100%;
    text-align: center;
  }

  .pergola__steps #step-6 .buttons-form input[type=submit] {
    height: auto;
    line-height: 1;
  }

  .pergola__steps #step-6 .buttons {
    flex-direction: column;
    gap: 20px;
  }

  .pergola__steps #step-6 a {
    width: 100%;
    text-align: center;
  }
}