.mg-footer {
    --mg-ink: #052f3a;
    --mg-orange: #ffa610;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #f6f9fa;
    background: radial-gradient(ellipse at 15% 0%, #104953 0%, var(--mg-ink) 66%);
    padding: clamp(64px, 7vw, 112px) 24px 88px;
    text-align: start;
    font-family: inherit;
}
.mg-footer *, .mg-language-button { box-sizing: border-box; }
.mg-footer::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-inline: -6%;
    bottom: -56px;
    height: 100px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(110deg, #ffb829, #f99b0b);
    transform: rotate(-4deg);
}
.mg-footer[dir="rtl"]::after { transform: rotate(4deg); }
.mg-footer__inner { max-width: 1200px; margin-inline: auto; position: relative; }
.mg-footer__watermark {
    position: absolute;
    inset-block-start: -100px;
    inset-inline-end: 3%;
    width: 380px;
    height: 380px;
    color: #fff;
    opacity: .035;
    pointer-events: none;
}
.mg-footer__watermark svg { width: 100%; height: 100%; stroke-width: 1; }
.mg-footer__grid { display: grid; grid-template-columns: 1.35fr .8fr 1.1fr 1.25fr; gap: 28px; }
.mg-footer__grid > * { min-width: 0; }
.mg-footer__column { border-inline-start: 1px solid #ffffff1f; padding-inline-start: 24px; }
.mg-footer .mg-footer__logo {
    display: inline-flex;
    width: 260px;
    max-width: 100%;
    background: #f9faf7;
    border-radius: 8px;
    padding: 12px;
    margin-block-end: 20px;
}
.mg-footer__logo img { display: block; width: 100%; height: auto; object-fit: contain; }
.mg-footer p { color: #d8e5e8; font-size: 14px; line-height: 1.75; margin: 0 0 20px; }
.mg-footer h2 { color: #fff; font-size: 18px; line-height: 1.5; font-weight: 700; margin: 0 0 22px; }
.mg-footer h2::after { content: ""; display: block; width: 34px; height: 3px; background: var(--mg-orange); border-radius: 3px; margin-block-start: 10px; }
.mg-footer ul { list-style: none; margin: 0; padding: 0; }
.mg-footer li { margin: 0; padding: 0; }
.mg-footer__column li + li { margin-block-start: 8px; }
.mg-footer a { color: #e8f0f2; text-decoration: none; overflow-wrap: anywhere; }
.mg-footer__column a { display: inline-flex; align-items: start; padding-block: 4px; min-height: 30px; font-size: 14px; line-height: 1.6; }
.mg-footer a:hover { color: var(--mg-orange); }
.mg-footer a:focus-visible { outline: 3px solid var(--mg-orange); outline-offset: 4px; border-radius: 3px; }
.mg-footer__icon-list a { gap: 12px; }
.mg-footer__icon-list svg { width: 22px; height: 22px; flex: 0 0 22px; margin-block-start: 1px; color: var(--mg-orange); }
.mg-footer .mg-footer__consultation {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(#ffb72b, #ffa610);
    color: #052f3a;
    border-radius: 9px;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin-block-end: 18px;
}
.mg-footer .mg-footer__consultation:hover { background: #ffc655; color: #052f3a; }
.mg-footer__consultation svg { width: 22px; height: 22px; flex-shrink: 0; }
.mg-footer[dir="rtl"] .mg-footer__consultation svg { transform: scaleX(-1); }
.mg-footer .mg-footer__socials {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 284px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.mg-footer .mg-footer__socials li { min-width: 0; margin: 0; padding: 0; }
.mg-footer .mg-footer__socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    background: #ffffff12;
    border-radius: 7px;
    line-height: 1;
}
.mg-footer .mg-footer__socials svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.mg-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #ffffff38; padding-block-start: 20px; margin-block-start: 40px; }
.mg-footer__bottom p, .mg-footer__bottom a { margin: 0; font-size: 12px; }
.mg-footer__bottom a { padding-block: 8px; }
.mg-language-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid #d2dfe1;
    border-radius: 10px;
    background: #fff;
    color: #052f3a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}
a.mg-language-button:hover { background: #fff7e5; border-color: #d58300; color: #052f3a; }
.mg-language-button:focus-visible { outline: 3px solid #a15f00; outline-offset: 3px; }
.mg-language-button svg { width: 18px; height: 18px; }
.mg-language-button--unavailable { color: #52666a; border-style: dashed; cursor: default; }
.mg-header-actions { display: flex; align-items: center; gap: 10px; }
.mg-header-actions a { box-sizing: border-box; }
.mg-header-actions .mg-header-consultation { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; background: #ffa610; color: #052f3a; font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.mg-header-actions .mg-header-consultation:hover { background: #ffc655; color: #052f3a; }
.mg-header-actions .mg-header-consultation:focus-visible { outline: 3px solid #a15f00; outline-offset: 3px; }
.mg-label-short { display: none; }
.mg-visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1000px) {
    .mg-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
    .mg-footer__column { border: 0; padding: 0; }
}
@media (max-width: 560px) {
    .mg-footer { padding: 52px 22px 72px; }
    .mg-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .mg-footer__column { border-top: 1px solid #ffffff1f; padding-block-start: 24px; }
    .mg-footer__bottom { align-items: start; flex-direction: column; gap: 8px; margin-block-start: 30px; }
    .mg-footer__watermark { width: 260px; height: 260px; }
    .mg-language-button { padding-inline: 10px; font-size: 13px; }
    .mg-header-actions { gap: 6px; }
    .mg-header-actions .mg-header-consultation { padding-inline: 10px; font-size: 13px; }
    .mg-header-actions .mg-label-long { display: none; }
    .mg-header-actions .mg-label-short { display: inline; }
}
