.block-video__wrap-img {
  border-radius: 30px;
  overflow: hidden;
}

.modal-card__img-arrows {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}
.modal-card__img-prev,
.modal-card__img-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: all;
  margin-right: 0;
  background-color: rgba(255, 255, 255, 0.9);
}
.modal-card__img-prev {
  left: 12px;
}
.modal-card__img-next {
  right: 12px;
}

.block-video__wrapper {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.thanks-page {
  min-height: 620px;
}

.documentation-page {
  min-height: 620px;
}

.documentation-section {
  position: relative;
  z-index: 1;
  padding: 156px 0 110px;
}

.documentation-section__wrapper {
  max-width: 1060px;
  margin: 0 auto;
}

.documentation-section__content {
  max-width: 860px;
  margin-bottom: 42px;
}

.documentation-section__title {
  margin-bottom: 22px;
}

.documentation-section__text {
  display: block;
  max-width: 790px;
}

.documentation-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.documentation-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 18px 22px;
  border: 1px solid rgba(212, 175, 94, 0.36);
  border-radius: 18px;
  color: #2f2f2f;
  text-decoration: none;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.documentation-list__name {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.documentation-list__action {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
  background-color: #d4af5e;
}

@media (hover: hover) {
  .documentation-list__link:hover {
    border-color: #d4af5e;
    box-shadow: 0 12px 32px rgba(47, 47, 47, 0.08);
  }
}

.thanks-hero {
  position: relative;
  z-index: 1;
  padding: 156px 0 110px;
}

.thanks-hero__wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 36%);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.thanks-hero__content {
  min-width: 0;
  max-width: 680px;
}

.thanks-hero__eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: #d4af5e;
  text-transform: uppercase;
}

.thanks-hero__title {
  margin-bottom: 22px;
}

.thanks-hero__subtitle {
  display: block;
  max-width: 610px;
  margin-bottom: 34px;
}

.thanks-hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.thanks-hero__phone {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #5b5b5b;
  text-decoration: none;
}

.thanks-hero__media {
  position: relative;
  width: 100%;
  max-width: 420px;
  justify-self: end;
}

.thanks-hero__media::before {
  content: "";
  position: absolute;
  inset: 32px 0 0 36px;
  border-radius: 30px;
  background-color: #d4af5e;
}

.thanks-hero__media img {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 30px;
}

@media screen and (max-width: 1024px) {
  .documentation-section {
    padding: 132px 0 80px;
  }

  .thanks-hero {
    padding: 132px 0 80px;
  }

  .thanks-hero__wrapper {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    gap: 28px;
  }

  .thanks-hero__title {
    max-width: 560px;
  }
}

@media screen and (max-width: 900px) {
  .documentation-section {
    padding: 120px 0 72px;
  }

  .thanks-hero {
    padding: 120px 0 72px;
  }

  .thanks-hero__wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .thanks-hero__content {
    max-width: none;
    text-align: center;
  }

  .thanks-hero__eyebrow {
    text-align: center;
  }

  .thanks-hero__title,
  .thanks-hero__subtitle {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .thanks-hero__actions {
    justify-content: center;
  }

  .thanks-hero__media {
    width: min(100%, 360px);
    order: -1;
    justify-self: center;
  }
}

@media screen and (max-width: 767px) {
  .documentation-section {
    padding: 108px 0 54px;
  }

  .documentation-section__wrapper {
    padding: 28px 18px 32px;
    margin: 0;
    border-radius: 24px;
  }

  .documentation-section__content {
    margin-bottom: 28px;
  }

  .documentation-list__link {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }

  .documentation-list__name {
    font-size: 16px;
  }

  .thanks-hero {
    padding: 108px 0 54px;
  }

  .thanks-hero__wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 18px 32px;
    margin: 0;
    border-radius: 24px;
  }

  .thanks-hero__content {
    max-width: none;
  }

  .thanks-hero__actions {
    gap: 18px;
  }

  .thanks-hero__media {
    width: 100%;
    max-width: 330px;
  }

  .thanks-hero__media::before {
    inset: 22px 0 0 22px;
    border-radius: 24px;
  }

  .thanks-hero__media img {
    border-radius: 24px;
  }
}
