/**
 * /tools/amp-request — публичная форма заявки на AMP
 * Hero cream как у mail-tester; форма слева в wrap.
 */
.mg-amp {
  --mg-amp-line: #d8d2cd;
  --mg-amp-ok: #1e7f4f;
  --mg-amp-fail: #b3261e;
  --mg-amp-muted: #6b6b6b;
  font-family: var(--mg-font, 'RF Dewi', system-ui, sans-serif);
  font-weight: 600;
  color: #000;
}

.mg-amp__hero.mg2-hero {
  background-color: var(--mg-cream, #f2eeeb);
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  padding-bottom: 64px;
}

@media (min-width: 720px) {
  .mg-amp__hero .mg2-hero__title {
    white-space: nowrap;
  }
}

.mg-amp__hero .mg2-hero__lead {
  max-width: 36ch;
}

.mg-amp__panel {
  margin: 28px 0 0;
  max-width: 640px;
  padding: 28px 28px 32px;
  border: 2px solid #000;
  border-radius: 3px;
  background: #fff;
}

.mg-amp__field {
  margin: 0 0 22px;
}

.mg-amp__field label {
  display: block;
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
}

.mg-amp__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #000;
  border-radius: 3px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  background: #fff;
  color: #000;
}

.mg-amp__input:focus {
  outline: 2px solid #0062ad;
  outline-offset: 1px;
}

.mg-amp__domain-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.mg-amp__domain-row .mg-amp__input {
  flex: 1 1 220px;
}

.mg-amp__domain-row .mg2-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.mg-amp__upload {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 2px dashed #000;
  border-radius: 3px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #0062ad;
}

.mg-amp__upload:hover {
  background: var(--mg-cream, #f2eeeb);
}

.mg-amp__dmarc-result {
  margin: 10px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.mg-amp__dmarc-result.is-ok {
  color: var(--mg-amp-ok);
}

.mg-amp__dmarc-result.is-fail {
  color: var(--mg-amp-fail);
}

.mg-amp__gate {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--mg-amp-muted);
}

.mg-amp__gate.is-ok {
  color: var(--mg-amp-ok);
}

.mg-amp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.mg-amp__actions .mg2-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.mg-amp__error {
  margin: 14px 0 0;
  color: var(--mg-amp-fail);
  font-size: 15px;
}

.mg-amp__success {
  margin-top: 28px;
  max-width: 640px;
  padding: 28px;
  border: 2px solid #000;
  border-radius: 3px;
  background: #fff;
}

.mg-amp__success h2 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
}

.mg-amp__success > p {
  margin: 0 0 20px;
  max-width: 52ch;
}

.mg-amp__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mg-amp__pre {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--mg-amp-line);
  border-radius: 3px;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  background: #f8f6f4;
}

/* —— после формы: DMARC callout —— */
.mg-amp__after {
  padding: 56px 0 40px;
}

.mg-amp__callout {
  position: relative;
  width: 100%;
  padding: 36px 88px 36px 36px;
  border: 2px solid #0062ad;
  border-radius: 3px;
  background: #fff;
}

.mg-amp__callout-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
}

.mg-amp__callout-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

@media (min-width: 720px) {
  .mg-amp__callout-title {
    white-space: nowrap;
  }
}

.mg-amp__callout-text {
  margin: 0;
  max-width: none;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.45;
}

.mg-amp__callout-text strong {
  font-weight: 700;
}

.mg-amp__callout-more {
  margin: 16px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

/* —— promo —— */
.mg-amp__promo {
  padding: 72px 0 56px;
}

.mg-amp__promo-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.mg-amp__promo-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.mg-amp__promo-title {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.mg-amp__promo-lead {
  margin: 16px 0 0;
  max-width: 42ch;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}

.mg-amp__promo-anim {
  display: block;
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
}

/* —— webinar —— */
.mg-amp__webinar {
  padding: 8px 0 72px;
}

.mg-amp__webinar .mg2-section-head {
  max-width: none;
}

.mg-amp__video {
  position: relative;
  width: 100%;
  margin-top: 28px;
  aspect-ratio: 16 / 9;
  background: #111;
}

.mg-amp__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 720px) {
  .mg-amp__panel {
    padding: 20px;
  }

  .mg-amp__domain-row .mg2-btn {
    width: 100%;
  }

  .mg-amp__callout {
    padding: 24px;
  }

  .mg-amp__callout-icon {
    position: static;
    margin: 0 0 12px;
  }

  .mg-amp__promo-row {
    flex-direction: column-reverse;
    gap: 16px;
  }

  .mg-amp__promo-anim {
    width: 96px;
    height: 96px;
  }
}

.t-body .mg-amp__input {
  color: #000;
}

body.mg-site--v2b .mg-amp a.mg2-btn--fill,
body.mg-site--v2b .mg-amp button.mg2-btn--fill {
  color: #fff;
}
