.success {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 196px auto 220px;
  max-width: 580px;
  text-align: center;
}
.success .h2 {
  margin: 16px 0 24px;
}

.success-text {
  color: #7A7C83;
  line-height: 1.5;
  margin-bottom: 48px;
}

@media (max-width: 768px) {
  .success {
    padding: 0 16px;
    margin: 96px 0;
  }
  .success .h2 {
    margin: 16px 0;
  }
  .success-text {
    margin-bottom: 24px;
  }
}
.offer-wrap {
  max-width: 900px;
  margin: 148px auto 160px;
  padding: 0 32px;
}

.offer-title {
  font-size: 54px;
  font-family: Semi;
  line-height: 1.2;
  margin-bottom: 64px;
}

strong {
  font-family: Semi;
  color: #4D5159;
}

h2 {
  margin: 64px 0 24px;
  font-size: 42px;
  font-family: Semi;
  color: #212530;
}

h3 {
  margin: 48px 0 24px;
  font-size: 32px;
  font-family: Semi;
  color: #212530;
  line-height: 1.5;
}

h4 {
  margin: 32px 0 16px;
  font-size: 24px;
  font-family: Semi;
  color: #212530;
  line-height: 1.3;
}

p {
  line-height: 1.5;
  color: #64666E;
  margin-bottom: 24px;
}

.success-btn {
  text-decoration: none;
  transition: ease 0.3s;
}

.success-btn:visited {
  text-decoration: none;
}

.success-btn:hover {
  background: #E8F2FD;
  color: #1582E7;
}
.success-btn:hover .brand-btn-icon {
  background: #D0E6FA;
}
.success-btn:hover .brand-btn-icon svg {
  fill: #1582E7;
}

ul {
  margin-left: 32px;
  color: #64666E;
  list-style-type: disc;
}
ul li {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .offer-wrap {
    padding: 0 16px;
    margin: 64px auto 48px;
  }
  .offer-title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  h2 {
    font-size: 24px;
    margin: 32px 0 16px;
  }
  h3 {
    font-size: 20px;
    margin: 24px 0 12px;
  }
  h4 {
    font-size: 18px;
    margin: 16px 0 8px;
  }
  p {
    margin-bottom: 12px;
  }
  ul {
    margin-left: 24px;
  }
  ul li {
    margin-bottom: 12px;
  }
}
.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 196px auto 220px;
  max-width: 580px;
  text-align: center;
}

.error-code {
  margin-bottom: 24px;
  color: #D3D3D6;
  font-size: 114px;
  font-family: Semi;
  line-height: 1;
}

.error-text {
  color: #7A7C83;
  line-height: 1.5;
  margin: 24px 0 48px;
}

@media (max-width: 768px) {
  .error {
    padding: 0 16px;
    margin: 96px 0;
  }
  .error-code {
    font-size: 54px;
    margin-bottom: 16px;
  }
  .error-text {
    margin: 8px 0 24px;
    max-width: 280px;
  }
}