/* /features/coupon-feed — купоны из CPA-фида (native WP, эталон industry/igaming) */

.mg-cf-native-wrap .mg2-hero::after {
  display: none;
}

.mg-page-features-coupon-feed .mgig__section {
  padding: clamp(40px, 6vw, 72px) 0;
  background: var(--mg-white);
}

.mg-page-features-coupon-feed .mgig__section--cream {
  background: var(--mg-cream);
}

.mg-page-features-coupon-feed .mgig__hero {
  padding-bottom: clamp(48px, 6vw, 64px);
}

.mg-page-features-coupon-feed .mgig__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
}

.mg-page-features-coupon-feed .mg2-hero__lead {
  max-width: 36ch;
}

.mg-page-features-coupon-feed .mgig__crumbs {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mg-muted);
}

.mg-page-features-coupon-feed .mgig__crumbs span {
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__hero-visual {
  padding: 0;
  background: transparent;
  border: none;
  text-align: left;
  min-width: 0;
}

/* Hero-иллюстрация: skill hero-landing-illustration / motif email-coupons */
.mgcf__hero-art {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mgcf__hero-art-svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-left: auto;
}

.mg-page-features-coupon-feed .mgig__pains {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.mg-page-features-coupon-feed .mgig__pain {
  padding: 28px 24px 32px;
  background: var(--mg-white);
}

.mg-page-features-coupon-feed .mgig__pain-title {
  margin: 0 0 16px;
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__pain-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--mg-muted);
}

.mg-page-features-coupon-feed .mgig__pain-text {
  margin: 0 0 16px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__pain-solution {
  padding-top: 16px;
  border-top: 2px solid var(--mg-border);
}

.mgcf__feed-example {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.mgcf__feed-code {
  margin: 0;
  padding: clamp(16px, 2.2vw, 24px);
  border: 3px solid var(--mg-black);
  background: var(--mg-cream);
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(12px, 1.35vw, 14px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--mg-black);
}

.mgcf__feed-code code {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  white-space: pre;
  color: inherit;
}

.mgcf__feed-code .token.prolog {
  color: color-mix(in srgb, var(--mg-black) 55%, transparent);
  font-weight: 500;
}

.mgcf__feed-code .token.punctuation {
  color: color-mix(in srgb, var(--mg-black) 55%, transparent);
  font-weight: 500;
}

.mgcf__feed-code .token.tag .token.name {
  color: var(--mg-blue-link);
  font-weight: 700;
}

.mgcf__feed-code .token.attr-name {
  color: #6f42c1;
  font-weight: 700;
}

.mgcf__feed-code .token.attr-value {
  color: var(--mg-black);
  font-weight: 600;
}

.mgcf__feed-code .token.plain {
  color: var(--mg-black);
  font-weight: 600;
}

html[data-theme="dark"] .mgcf__feed-code .token.attr-name {
  color: #c4a3ff;
}

.mgcf__feed-fields {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.mgcf__feed-fields li {
  display: grid;
  gap: 4px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--mg-cream);
}

.mgcf__feed-fields li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.mgcf__feed-fields code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--mg-blue-link);
}

.mgcf__feed-fields span {
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--mg-black);
}

.mgcf__how-list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 48px);
}

.mgcf__how-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  margin: 0;
}

.mgcf__how-lead--flip .mgcf__how-lead-copy {
  order: 2;
}

.mgcf__how-lead--flip > .mgcf__mock {
  order: 1;
}

.mgcf__how-lead-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  background: var(--mg-cream);
}

.mgcf__how-lead-copy .mgcf__step-n {
  grid-row: auto;
}

.mgcf__how-lead-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--mg-black);
}

.mgcf__how-lead-text {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--mg-black);
}

.mgcf__how-lead-link {
  margin: 4px 0 0;
}

/* рамку и скругления несёт сам PNG — вторая обводка давала двойные дуги в углах */
.mgcf__mock {
  margin: 0;
  min-width: 0;
  width: min(100%, 780px);
  justify-self: end;
  background: var(--mg-white);
}

.mgcf__how-lead--flip .mgcf__mock {
  justify-self: start;
}

.mgcf__mock-img {
  display: block;
  width: 100%;
  height: auto;
}


.mg-page-features-coupon-feed .mgig__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.mg-page-features-coupon-feed .mgig__feature-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__feature-text {
  margin: 0 0 12px;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__cta {
  max-width: 720px;
}

.mg-page-features-coupon-feed .mgig__cta-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.mg-page-features-coupon-feed .mgig__cta-lead {
  margin: 0 0 8px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--mg-black);
}

.mg-page-features-coupon-feed .mgig__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.mg-page-features-coupon-feed .mgig-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 60px;
  padding: 0 48px;
  border: none;
  border-radius: 3px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.7px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.mg-page-features-coupon-feed .mgig-btn::before,
.mg-page-features-coupon-feed .mgig-btn::after {
  content: none;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-btn--primary,
body.mg-site--v2b.mg-page-features-coupon-feed .mgig button.mgig-btn--primary {
  background: #0062ad;
  color: #fff;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-btn--primary:hover,
body.mg-site--v2b.mg-page-features-coupon-feed .mgig button.mgig-btn--primary:hover {
  background: #2b8ed9;
  color: #fff;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-btn--secondary,
body.mg-site--v2b.mg-page-features-coupon-feed .mgig button.mgig-btn--secondary {
  background: #f2eeeb;
  color: #000;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-btn--secondary:hover,
body.mg-site--v2b.mg-page-features-coupon-feed .mgig button.mgig-btn--secondary:hover {
  background: #e8d7ca;
  color: #000;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-link {
  color: #0062ad;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

body.mg-site--v2b.mg-page-features-coupon-feed .mgig a.mgig-link:hover {
  color: #2b8ed9;
}

.mg-page-features-coupon-feed .mgig__crumbs .mgig-link {
  font-size: inherit;
  font-weight: inherit;
}

.mgcf__step-n {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mg-blue-link);
  color: var(--mg-white);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .mg-page-features-coupon-feed .mgig__hero-grid,
  .mg-page-features-coupon-feed .mgig__pains,
  .mg-page-features-coupon-feed .mgig__features,
  .mgcf__feed-example,
  .mgcf__how-lead {
    grid-template-columns: 1fr;
  }

  .mgcf__how-lead--flip .mgcf__how-lead-copy,
  .mgcf__how-lead--flip > .mgcf__mock {
    order: unset;
  }

  .mgcf__mock {
    width: 100%;
    justify-self: stretch;
  }

  .mg-page-features-coupon-feed .mgig-btn {
    font-size: 22px;
    min-height: 52px;
    padding: 0 28px;
  }
}
