.mg {
    --mg-canvas: #F4F6F8;
    --mg-line: #e3e8ee;
    --mg-muted: #3d4b5c;
    background: var(--mg-canvas);
    color: var(--brand-navy);
    font-family: inherit;
}
.mg-wrap { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.mg-hero { background: var(--brand-navy); color: var(--brand-white); position: relative; overflow: hidden; }
.mg-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(81, 200, 214, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(81, 200, 214, .14) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    pointer-events: none;
}
.mg-hero .mg-wrap { position: relative; padding: 1.6rem 0 1.85rem; }
.mg-crumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; color: #c9d4df; margin: 0 0 .85rem; }
.mg-crumb a { color: var(--brand-white); text-decoration: none; }
.mg-crumb a:hover { text-decoration: underline; }
.mg-kicker { margin: 0 0 .35rem; color: var(--brand-cyan); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.mg-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.25; }
.mg-lead { max-width: 46rem; margin: .75rem 0 0; color: #d5dee7; line-height: 1.75; }
.mg-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.mg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: .65rem 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
.mg-btn-solid { background: var(--brand-cyan); color: var(--brand-navy); }
.mg-btn-line { background: transparent; color: var(--brand-white); border-color: rgba(255, 255, 255, .5); }
.mg-btn:focus-visible, .mg-field input:focus-visible, .mg-field select:focus-visible, .mg-field textarea:focus-visible, .mg a:focus-visible {
    outline: 2px solid var(--brand-cyan);
    outline-offset: 2px;
}
.mg-block { padding: 1.75rem 0 0; }
.mg-block h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.mg-block > .mg-wrap > p, .mg-card p, .mg-form-lead { margin: 0; color: var(--mg-muted); line-height: 1.7; }
.mg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
.mg-card {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    background: var(--brand-white);
    border: 1px solid var(--mg-line);
    border-radius: 12px;
    padding: 1rem;
}
.mg-ico {
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e7f6f8;
    color: var(--brand-deep);
}
.mg-card h3 { margin: .2rem 0 0; font-size: 1.05rem; }
.mg-card .mg-card-btn { margin-top: auto; width: 100%; color: var(--brand-navy); background: var(--brand-cyan); }
.mg-card .mg-card-btn:hover { color: var(--brand-navy); background: var(--brand-cyan); box-shadow: inset 0 0 0 2px var(--brand-navy); }
.mg-panel {
    margin-top: 1rem;
    background: var(--brand-white);
    border: 1px solid var(--mg-line);
    border-radius: 12px;
    padding: 1.15rem;
}
.mg-form { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem 1rem; }
.mg-span { grid-column: 1 / -1; }
.mg-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.mg-field label { font-weight: 700; font-size: .92rem; }
.mg-field input, .mg-field select, .mg-field textarea {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: .65rem .75rem;
    color: var(--brand-navy);
    background: var(--brand-white);
    font: inherit;
}
.mg-field textarea { min-height: 8.5rem; resize: vertical; }
.mg-phone { display: flex; gap: .5rem; }
.mg-phone select { max-width: 9.5rem; }
.mg-error { color: #9f1239; font-size: .82rem; }
.mg-alert { grid-column: 1 / -1; border-radius: 8px; padding: .75rem .9rem; background: #fff7ed; color: var(--brand-navy); border: 1px solid #fed7aa; }
.mg-check { display: flex; align-items: flex-start; gap: .55rem; font-size: .92rem; }
.mg-check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--brand-deep); }
.mg-check a { color: var(--brand-navy); }
.mg-submit {
    width: 100%;
    background: var(--brand-navy);
    color: var(--brand-white);
    border: 0;
    font: inherit;
    font-weight: 700;
}
.mg-submit:disabled { opacity: .7; cursor: progress; }
.mg-meet {
    margin-top: 1.75rem;
    background: var(--brand-navy);
    color: var(--brand-white);
    border-radius: 12px;
    padding: 1.25rem 1.3rem;
}
.mg-meet h2 { margin: 0 0 .4rem; color: var(--brand-white); }
.mg-meet p { margin: 0 0 1rem; color: #d5dee7; line-height: 1.7; max-width: 42rem; }
.mg-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 1.75rem; }
.mg-links a {
    background: var(--brand-white);
    border: 1px solid var(--mg-line);
    border-radius: 10px;
    padding: .85rem 1rem;
    color: var(--brand-navy);
    font-weight: 700;
    text-decoration: none;
}
.mg-links a:hover { text-decoration: underline; }
.mg-success .mg-crumb, .mg-success .mg-crumb a { color: var(--brand-navy); }
.mg-success .mg-kicker { color: var(--brand-navy); }
.mg-success-card {
    background: var(--brand-white);
    border: 1px solid var(--mg-line);
    border-radius: 12px;
    padding: 1.4rem 1.3rem;
    max-width: 40rem;
}
.mg-success-card h1 { margin: .2rem 0 .5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.mg-meta { margin: 1rem 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.mg-meta li { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--mg-line); padding-top: .45rem; }
.mg-meta span { color: var(--mg-muted); }
.mg-meta a, .mg-meta strong { color: var(--brand-navy); }
@media (max-width: 1024px) {
    .mg-grid, .mg-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .mg-grid, .mg-links, .mg-form { grid-template-columns: 1fr; }
    .mg-phone { flex-direction: column; }
    .mg-phone select { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mg * { scroll-behavior: auto !important; transition: none !important; }
}
