.ebook-gate {
  padding: 110px 6vw;
  background: #f4efe5;
}

.ebook-gate__inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.ebook-gate__cover-wrap {
  max-width: 380px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 38, 51, 0.18);
  transform: rotate(-1.2deg);
}

.ebook-gate__cover {
  display: block;
  width: 100%;
  height: auto;
}

.ebook-gate__eyebrow {
  margin-bottom: 14px;
  color: #a78745;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ebook-gate__title {
  margin: 0 0 18px;
  color: #00394c;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.ebook-gate__desc {
  max-width: 650px;
  margin: 0 0 30px;
  color: #5f6c72;
  font-size: 15px;
  line-height: 1.85;
}

.ebook-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ebook-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ebook-form__field label {
  color: #22343d;
  font-size: 12px;
  font-weight: 800;
}

.ebook-form__field input {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid rgba(0, 57, 76, 0.2);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.78);
  color: #14262f;
  font: inherit;
  outline: none;
}

.ebook-form__field input:focus {
  border-color: #a78745;
  box-shadow: 0 0 0 3px rgba(167, 135, 69, 0.12);
}

.ebook-form__consent,
.ebook-form__actions,
.ebook-form__status {
  grid-column: 1 / -1;
}

.ebook-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #58676e;
  font-size: 12px;
  line-height: 1.65;
}

.ebook-form__consent input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #00394c;
}

.ebook-form__submit,
.ebook-form__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 2px;
  background: #00394c;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.ebook-form__submit:disabled {
  cursor: wait;
  opacity: 0.6;
}

.ebook-form__download {
  background: #a78745;
  text-decoration: none;
}

.ebook-form__status {
  min-height: 22px;
  margin: 0;
  color: #5f6c72;
  font-size: 13px;
  line-height: 1.6;
}

.ebook-form__status.is-error { color: #a53b31; }
.ebook-form__status.is-success { color: #276848; }

@media (max-width: 820px) {
  .ebook-gate { padding: 78px 6vw; }
  .ebook-gate__inner { grid-template-columns: 1fr; }
  .ebook-gate__cover-wrap { width: min(72vw, 320px); }
}

@media (max-width: 560px) {
  .ebook-form { grid-template-columns: 1fr; }
  .ebook-form__field,
  .ebook-form__consent,
  .ebook-form__actions,
  .ebook-form__status { grid-column: 1; }
}
