.fv-f {
    --footer-mark-w: min(1560px, 100%);
    --footer-mark-bottom: -6%;
    --footer-top-pad: 16px;
}

.fv-main {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "intro groups" "cities groups" "stores groups";
    gap: 24px 80px;
    align-items: start;
}

.fv-intro {
    grid-area: intro;
    display: grid;
    gap: 24px;
}

.fv-logo {
    --logo-scale: 1.9;
    justify-self: start;
    margin-bottom: 12px;
}

.fv-join {
    display: grid;
    gap: 6px;
}

.site-footer .fv-join__title {
    margin: 0;
    font-size: var(--fs-xl);
    font-weight: var(--fw-semibold);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--footer-text);
}

.fv-join__text {
    margin: 0;
    font-size: var(--fs-md);
    line-height: 1.55;
    color: var(--footer-muted);
}

.fv-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px 32px;
    margin-top: 4px;
}

.fv-choice {
    display: grid;
    justify-items: start;
}

.fv-choice .fv-head {
    display: block;
    margin-bottom: 8px;
}

.fv-switch {
    display: none;
    padding: 3px;
    border: 1px solid var(--footer-line);
    border-radius: 999px;
}

.fv-switch a {
    padding: 8px 22px;
    border-radius: 999px;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: var(--footer-muted);
    transition: background 0.15s ease, color 0.15s ease;
}

.fv-switch a:first-child {
    background: var(--footer-text);
    color: var(--footer-bg);
}

.fv-switch a:not(:first-child):hover {
    background: var(--footer-chip);
    color: var(--footer-text);
}

.fv-stores {
    grid-area: stores;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fv-groups {
    --fv-group-gap: 36px;
    grid-area: groups;
    margin-bottom: calc(-1 * var(--fv-group-gap));
    columns: 3 180px;
    column-gap: 56px;
}

.fv-group {
    display: inline-block;
    width: 100%;
    margin-bottom: var(--fv-group-gap);
    break-inside: avoid;
}

.site-footer .fv-head {
    margin: 0 0 14px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0;
    text-transform: none;
    color: var(--footer-dim);
}

.fv-head a {
    color: inherit;
    transition: color 0.15s ease;
}

.fv-head a:hover {
    color: var(--footer-muted);
}

.fv-group ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fv-link {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--footer-text);
    transition: color 0.15s ease;
}

.fv-link:hover {
    color: var(--footer-muted);
}

.store-badge {
    --badge-bg: #000;
    --badge-fg: #fff;
    --badge-line: color-mix(in srgb, var(--footer-text) 20%, transparent);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 18px 0 12px;
    border: 1px solid var(--badge-line);
    border-radius: 10px;
    background: var(--badge-bg);
    color: var(--badge-fg);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

a.store-badge:hover,
.store-badge.tip:hover {
    border-color: color-mix(in srgb, var(--footer-text) 45%, transparent);
}

.store-badge__logo {
    flex: none;
    width: 26px;
    height: 26px;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
}

.store-badge__line {
    font-size: var(--fs-xs);
}

.store-badge__name {
    font-size: 19px;
    font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
}

.fv-quiet {
    grid-area: cities;
    min-width: 0;
    padding-top: 16px;
    border-top: 1px solid var(--footer-line);
}

.fv-quiet > summary {
    display: flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    font-size: var(--fs-xs);
    color: var(--footer-dim);
    list-style: none;
    cursor: pointer;
}

.fv-quiet > summary::-webkit-details-marker {
    display: none;
}

.fv-quiet > summary .icon {
    transition: transform 0.2s ease;
}

.fv-quiet[open] > summary {
    margin-bottom: 8px;
}

.fv-quiet[open] > summary .icon {
    transform: rotate(180deg);
}

.fv-quiet__rows {
    display: grid;
    gap: 8px;
}

.fv-city {
    font-size: var(--fs-xs);
    line-height: 1.7;
    color: var(--footer-dim);
}

.fv-city__name {
    margin-right: 8px;
    color: var(--footer-dim);
}

.fv-city__name::after {
    content: ":";
}

.fv-city__links {
    display: inline;
    margin: 0;
}

.fv-city__links a {
    margin-right: 12px;
    color: var(--footer-dim);
    transition: color 0.15s ease;
}

.fv-city a:hover {
    color: var(--footer-muted);
}

@media (max-width: 1080px) {
    .fv-main {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-template-areas: "intro" "groups" "cities" "stores";
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .fv-f {
        --footer-mark-w: 160%;
    }

    .fv-main {
        gap: 24px;
    }

    .fv-groups {
        --fv-group-gap: 28px;
        columns: 2;
        column-gap: 24px;
    }

    .fv-link {
        font-size: var(--fs-md);
    }

    .fv-group ul {
        gap: 12px;
    }

    .fv-intro,
    .fv-join,
    .fv-quiet {
        justify-items: center;
        text-align: center;
    }

    .fv-logo {
        justify-self: center;
    }

    .fv-choices {
        display: none;
    }

    .fv-switch {
        display: inline-flex;
        justify-self: center;
    }

    .fv-quiet > summary {
        margin-inline: auto;
    }

    .fv-stores {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .store-badge {
        gap: 7px;
        height: 40px;
        padding: 0 12px 0 9px;
        border-radius: 8px;
    }

    .store-badge__logo {
        width: 20px;
        height: 20px;
    }

    .store-badge__line {
        font-size: 9px;
    }

    .store-badge__name {
        font-size: 15px;
    }
}

.fv-choices.is-split .fv-link__tail {
    display: block;
}
