.mg-aff { --aff-ink: #0b1a3c; --aff-navy: #0b3d9e; }

.mg-aff-bar { position: relative; z-index: 2; background: #fff; box-shadow: 0 6px 14px rgba(11, 26, 60, .07); }
.mg-aff-crumbs { display: flex; align-items: center; gap: 16px; height: 70px; font-size: 20px; color: var(--aff-ink); }
.mg-aff-crumbs a { color: var(--aff-navy); }
.mg-aff-crumbs svg { width: 20px; height: 20px; fill: none; stroke: var(--aff-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mg-aff-hero { position: relative; overflow: hidden; background: #fff; }
.mg-aff-hero::before,
.mg-aff-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.mg-aff-hero::before {
    background: linear-gradient(200deg, rgba(234, 240, 251, .25), rgba(244, 247, 253, .9));
    clip-path: polygon(0 100%, 100% 8%, 100% 100%);
}
.mg-aff-hero::after {
    background: linear-gradient(195deg, #dbe6f8 0%, #e9f0fb 45%, #f3f6fc 100%);
    clip-path: polygon(19% 100%, 100% 15%, 100% 100%);
}

.mg-aff-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 578px; gap: 40px; padding: 46px 0 55px; }
.mg-aff-copy { padding-top: 84px; }
.mg-aff-title { margin: 0; font-size: 68px; line-height: 1.34; font-weight: 700; letter-spacing: -.02em; color: var(--aff-ink); }
.mg-aff-lead { margin: 26px 0 0; max-width: 500px; font-size: 20.5px; line-height: 2.05; color: #2c3446; }

.mg-aff-card { background: #fff; border: 1.5px solid #dbe0e8; border-radius: 12px; padding: 34px 28px 30px; box-shadow: 0 8px 26px rgba(11, 26, 60, .06); }
.mg-aff-head { margin: 0 0 27px; padding: 0 0 18px; border-bottom: 1.5px solid #d6dce6; font-size: 31px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--aff-ink); }

.mg-aff-row { display: flex; align-items: flex-start; gap: 22px; margin: 0 0 33px; cursor: text; }
.mg-aff .mg-aff-ico { width: 88px; height: 88px; }
.mg-aff-ico svg { width: 68%; height: 68%; stroke-width: 1.6; }
.mg-aff-field { flex: 1; display: grid; gap: 9px; padding-top: 8px; }
.mg-aff-lab { font-size: 21px; line-height: 1.25; font-weight: 400; color: var(--aff-ink); }
.mg-aff .mg-aff-field input { width: 100%; height: 63px; padding: 0 18px; border: 1.5px solid #cbd2dd; border-radius: 6px; font-size: 27px; color: var(--aff-ink); background: #fff; }

.mg-aff-result { display: flex; align-items: center; gap: 24px; margin-top: -6px; height: 142px; padding: 0 18px; background: #eef3fb; border: 1.5px solid #c9d6ee; border-radius: 10px; }
.mg-aff-result p { margin: 0; }
.mg-aff-rlab { font-size: 21px; line-height: 1.3; color: var(--aff-ink); }
.mg-aff-fig { font-size: 52px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: var(--aff-ink); }

.mg-aff-btn { width: 100%; height: 86px; margin-top: 27px; gap: 18px; border-radius: 8px; background: #0b4fd0; font-size: 26px; font-weight: 600; }
.mg-aff-btn:hover { background: #0a43b3; }
.mg-aff-btn svg { width: 40px; height: 40px; stroke-width: 1.5; }

@media (max-width: 900px) {
    .mg-aff-in { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 30px 0 40px; }
    .mg-aff-copy { padding-top: 0; }
    .mg-aff-title { font-size: 44px; }
    .mg-aff-lead { font-size: 18px; line-height: 1.7; }
    .mg-aff-card { padding: 24px 18px; }
    .mg-aff .mg-aff-ico { width: 64px; height: 64px; }
    .mg-aff-fig { font-size: 38px; }
    .mg-aff-btn { height: 64px; font-size: 19px; white-space: normal; }
    .mg-aff-btn svg { width: 28px; height: 28px; }
}
