/* ========== Subscribe form (рассылка) ========== */

.subscribe-form-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.subscribe-form-section__inner.trv-container {
  box-sizing: border-box;
}

.sub-form {
  width: 100%;
}

.sub-form__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(29, 29, 27, 0.08);
}

.sub-form__media {
  position: relative;
  min-height: 280px;
  background: #1d1d1b;
}

.sub-form__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-form__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 40px;
  box-sizing: border-box;
}

.sub-form__title {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.sub-form__title-line {
  display: block;
  color: #1d1d1b;
}

.sub-form__title-accent {
  display: block;
  color: #e73039;
}

.sub-form__intro {
  margin: 0 0 22px;
  color: #4e5459;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.sub-form__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #fdecee;
  color: #e73039;
  font-size: 14px;
  line-height: 1.35;
}

.sub-form__success {
  margin-top: 4px;
  padding: 18px 16px;
  border-radius: 8px;
  background: #f3faf4;
  border: 1px solid #cfe8d3;
}

.sub-form__success-title {
  margin: 0 0 6px;
  color: #1d1d1b;
  font-size: 18px;
  font-weight: 700;
}

.sub-form__success-text {
  margin: 0;
  color: #4e5459;
  font-size: 15px;
  line-height: 1.45;
}

.sub-form__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.sub-form__field {
  display: block;
  margin: 0;
}

.sub-form__field input {
  width: 100%;
  box-sizing: border-box;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #1d1d1b;
  font-size: 15px;
  outline: none;
}

.sub-form__field input::placeholder {
  color: #9aa0a6;
}

.sub-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.sub-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.sub-form__note {
  margin: 0;
  color: #9aa0a6;
  font-size: 12px;
  line-height: 1.4;
}

.sub-form__note a {
  color: #e73039;
  text-decoration: underline;
}

.sub-form__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sub-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sub-form-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.sub-form-popup.is-open {
  display: flex;
}

.sub-form-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 27, 0.45);
}

.sub-form-popup__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 28px 24px 22px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.sub-form-popup__dialog--ok {
  border-top: 4px solid #fecc0f;
}

.sub-form-popup__dialog--err {
  border-top: 4px solid #e73039;
}

.sub-form-popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9aa0a6;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.sub-form-popup__title {
  margin: 0 0 10px;
  color: #1d1d1b;
  font-size: 22px;
  font-weight: 700;
}

.sub-form-popup__text {
  margin: 0 0 20px;
  color: #4e5459;
  font-size: 15px;
  line-height: 1.45;
}

.sub-form-popup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: #fecc0f;
  color: #1d1d1b;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.sub-form-popup__dialog--err .sub-form-popup__btn {
  background: #e73039;
  color: #fff;
}

@media screen and (max-width: 991px) {
  .subscribe-form-section {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .sub-form__card {
    grid-template-columns: 1fr;
  }

  .sub-form__media {
    min-height: 200px;
  }

  .sub-form__body {
    padding: 28px 24px;
  }

  .sub-form__title {
    font-size: 26px;
  }
}

@media screen and (max-width: 575px) {
  .sub-form__row {
    grid-template-columns: 1fr;
  }

  .sub-form__submit {
    width: 100%;
  }

  .sub-form__body {
    padding: 24px 18px;
  }

  .sub-form__title {
    font-size: 22px;
  }
}
