.vg-footer {
    --vg-footer-muted: #c1c2c5;
    --vg-footer-accent: #ebc788;
    --vg-footer-line: #ffffff19;
    --vg-footer-inset: clamp(14px, 2.8vw, 36px);
    margin-block-start: clamp(42px, 5.5vw, 72px);
    border: 1px solid var(--vg-footer-line);
    border-radius: clamp(18px, 2.2vw, 28px);
    overflow: hidden;
    background: #222326;
    color: #f3efe6;
}

.vg-footer a { color: inherit; text-decoration: none; }
.vg-footer a:focus-visible { outline: 2px solid var(--vg-footer-accent); outline-offset: -2px; }

.vg-footer-support,
.vg-footer-commerce,
.vg-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px 24px;
    padding-inline: var(--vg-footer-inset);
}

.vg-footer-support {
    padding-block: clamp(18px, 2.8vw, 34px);
    border-block-end: 1px solid #ebc78829;
    background:
        radial-gradient(ellipse at 98% -45%, #ebc78827, transparent 62%),
        linear-gradient(110deg, #29282a, #3c3327);
}

.vg-footer-support-intro { display: flex; align-items: center; gap: clamp(10px, 1.3vw, 16px); }
.vg-footer-support h2 { margin: 0; font-size: clamp(.98rem, 1.65vw, 1.3rem); line-height: 1.55; }
.vg-footer-support p { margin: 3px 0 0; color: #d7d0c3; font-size: .79rem; }
.vg-footer-support-icon,
.vg-footer-shortcut-icon {
    display: grid;
    place-items: center;
    flex: none;
    color: var(--vg-footer-accent);
    background: #ebc78814;
    border: 1px solid #ebc78826;
}
.vg-footer-support-icon {
    --icon-box: clamp(36px, 4.5vw, 54px);
    inline-size: var(--icon-box);
    block-size: var(--icon-box);
    border-radius: 14px;
}
.vg-footer-support-icon svg { inline-size: 53%; block-size: 53%; }

.vg-footer-support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vg-footer-support-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-block-size: 42px;
    padding: 6px clamp(8px, 1.5vw, 16px);
    border: 1px solid #ebc78848;
    border-radius: 10px;
    color: #f3efe6;
    font-size: .77rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background-color 200ms ease, border-color 200ms ease;
}
.vg-footer-support-actions a:hover { background: #ebc78816; border-color: var(--vg-footer-accent); }
.vg-footer-support-actions .vg-footer-primary { background: var(--vg-footer-accent); color: #261e14; }
.vg-footer-support-actions .vg-footer-primary:hover { background: #f4d8a4; }
.vg-footer-support-actions .vg-footer-primary:focus-visible { outline-color: #261e14; }
.vg-footer-support-actions svg,
.vg-footer-payments svg { inline-size: 16px; block-size: 16px; flex: none; }

.vg-footer-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(8px, 1vw, 16px);
    padding: clamp(14px, 2vw, 24px) var(--vg-footer-inset);
}
.vg-footer-nav a {
    display: flex;
    align-items: center;
    gap: clamp(7px, 1vw, 12px);
    min-inline-size: 0;
    min-block-size: 63px;
    padding: 9px clamp(8px, 1.25vw, 14px);
    border: 1px solid var(--vg-footer-line);
    border-radius: 13px;
    background: #292a2d;
    transition: background-color 200ms ease, border-color 200ms ease;
}
.vg-footer-nav a:hover { background: #303033; border-color: #ebc78848; }
.vg-footer-shortcut-icon {
    --icon-box: clamp(30px, 3.2vw, 38px);
    inline-size: var(--icon-box);
    block-size: var(--icon-box);
    border-radius: 9px;
}
.vg-footer-shortcut-icon svg { inline-size: 52%; block-size: 52%; }
.vg-footer-shortcut-copy { display: grid; min-inline-size: 0; gap: 2px; line-height: 1.55; }
.vg-footer-shortcut-copy strong { font-size: .79rem; }
.vg-footer-shortcut-copy small { color: var(--vg-footer-muted); font-size: .68rem; }

.vg-footer-commerce {
    padding-block: 12px;
    border-block-start: 1px solid var(--vg-footer-line);
}
.vg-footer-payments,
.vg-footer-payments ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
}
.vg-footer-payments h2 { margin: 0; font-size: .76rem; }
.vg-footer-payments li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border: 1px solid var(--vg-footer-line);
    border-radius: 8px;
    color: var(--vg-footer-muted);
    font-size: .69rem;
}
.vg-footer-payments svg { color: var(--vg-footer-accent); }
.vg-footer-payments li small {
    padding-inline-start: 5px;
    border-inline-start: 1px solid var(--vg-footer-line);
    color: var(--vg-footer-muted);
    font-size: .62rem;
}
.vg-footer-seal a { display: block; border-radius: 8px; }
.vg-footer-seal a:hover { filter: brightness(1.16); }
.vg-footer-seal img { inline-size: 64px; block-size: 46px; }
.vg-footer-seal-official { background: #f3efe6; padding: 5px; }
.vg-footer-seal-official img { inline-size: 70px; block-size: 66px; object-fit: contain; }
.vg-footer-bottom a:hover { color: var(--vg-footer-accent); }

.vg-enamad {
    display: grid;
    justify-items: center;
    gap: 18px;
    max-inline-size: 580px;
    margin-inline: auto;
    text-align: center;
}
.vg-enamad h1 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.65rem); }
.vg-enamad p { margin: 0; color: var(--muted); font-size: .86rem; }
.vg-enamad-logo {
    display: grid;
    place-items: center;
    min-inline-size: 126px;
    min-block-size: 108px;
    padding: 12px;
    border-radius: 12px;
    background: #f3efe6;
}
.vg-enamad-logo img { max-inline-size: 150px; max-block-size: 132px; object-fit: contain; }

.vg-footer-bottom {
    padding-block: 3px;
    border-block-start: 1px solid var(--vg-footer-line);
    background: #1e1f22;
    color: var(--vg-footer-muted);
    font-size: .71rem;
}
.vg-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 13px; }
.vg-footer-bottom a { display: inline-flex; align-items: center; padding-inline: 3px; min-block-size: 42px; }
.vg-footer-bottom .vg-footer-wordmark { font-size: .99rem; min-block-size: 42px; }

@media (max-width: 860px) {
    .vg-footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .vg-footer-support { padding-block: 15px; }
    .vg-footer-support-actions { inline-size: 100%; gap: 5px; }
    .vg-footer-support-actions a { flex: 1 1 auto; gap: 4px; padding-inline: 6px; }
    .vg-footer-support-actions svg { inline-size: 14px; block-size: 14px; }
    .vg-footer-nav a { min-block-size: 50px; }
    .vg-footer-shortcut-copy strong { font-size: .75rem; }
    .vg-footer-shortcut-copy small { display: none; }
    .vg-footer-commerce {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "heading seal" "methods methods";
        justify-content: stretch;
        gap: 7px 10px;
    }
    .vg-footer-payments { display: contents; }
    .vg-footer-payments h2 { grid-area: heading; }
    .vg-footer-payments ul { grid-area: methods; gap: 5px; }
    .vg-footer-payments li { padding-inline: 6px; }
    .vg-footer-seal { grid-area: seal; }
    .vg-footer-bottom { gap: 0 10px; }
}

@media (max-width: 360px) {
    .vg-footer { --vg-footer-inset: 12px; }
    .vg-footer-nav a { gap: 5px; padding-inline: 6px; }
    .vg-footer-shortcut-icon { --icon-box: 24px; }
}
