.apb-footer {
    position: relative;
    isolation: isolate;
    margin-top: 80px;
    padding: 60px 0 0;
    background:
            radial-gradient(640px 320px at 92% 0%, rgba(45, 127, 255, 0.18), transparent 70%), radial-gradient(560px 320px at 0% 100%, rgba(1, 46, 205, 0.22), transparent 70%), #1d1d1d;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7dde5;
    font-size: 14px;
    line-height: 1.55;
}

/* контент всегда поверх декора */
.apb-footer > .container {
    position: relative;
    z-index: 1;
}

/* ── Декоративный фон ── */
.apb-footer__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Точки: концентрируются справа сверху и растворяются */
.apb-footer__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(120, 170, 255, 0.35) 1.3px, transparent 1.7px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 65% 85% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 75%);
    mask-image: radial-gradient(ellipse 65% 85% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 40%, transparent 75%);
}

/* Тонкая сетка линий: слева снизу */
.apb-footer__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
            linear-gradient(to right,  rgba(120, 170, 255, 0.10) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(120, 170, 255, 0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
    mask-image: radial-gradient(ellipse 60% 80% at 0% 100%, #000 0%, rgba(0, 0, 0, 0.3) 45%, transparent 75%);
}

@media (max-width: 767px) {
    .apb-footer__bg::before {
        background-size: 18px 18px;
        -webkit-mask-image: radial-gradient(ellipse 90% 40% at 100% 0%, #000 0%, transparent 75%);
        mask-image: radial-gradient(ellipse 90% 40% at 100% 0%, #000 0%, transparent 75%);
    }
    .apb-footer__bg::after {
        background-size: 36px 36px;
        opacity: 0.7;
    }
}

.apb-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2D7FFF 0%, #012ECD 50%, #2D7FFF 100%);
    opacity: 0.9;
}

.apb-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 2px;
}

.apb-footer__col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.apb-footer__col--brand {
    gap: 24px;
}

.apb-footer__brand-link {
    display: inline-block;
    text-decoration: none;
    width: fit-content;
}

.apb-footer__logo {
    display: block;
    height: auto;
    max-width: 90px;
    transition: transform 0.25s ease;
}

.apb-footer__brand-link:hover .apb-footer__logo {
    transform: scale(1.04);
}

.apb-footer__slogan {
    font-size: 14px;
    line-height: 1.55;
    color: #a9b3c0;
    margin: 0;
    max-width: 320px;
}

.apb-footer__ya-widget {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    text-decoration: none;
    color: #e7ecf3;
    width: fit-content;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.apb-footer__ya-widget:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.10);
    border-color: #2D7FFF;
    box-shadow: 0 10px 24px rgba(1, 46, 205, 0.35);
}

.apb-footer__ya-widget img {
    display: block;
    height: auto;
    filter: brightness(1.05);
}

.apb-footer__ya-label {
    font-size: 12px;
    font-weight: 600;
    color: #a9b3c0;
    white-space: nowrap;
}

.apb-footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apb-footer__social-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b95a3;
}

.apb-footer__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.apb-footer__soc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #e7ecf3;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.apb-footer__soc-btn:hover {
    transform: translateY(-2px);
    border-color: transparent;
    color: #fff;
}

.apb-footer__soc-btn--vk:hover {
    background: #0077FF;
}

.apb-footer__soc-btn--yt:hover {
    background: #FF0000;
}

.apb-footer__nav-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apb-footer__nav-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b95a3;
    margin: 0 0 8px;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.apb-footer__open-block {
    margin-top: 8px;
}

.apb-footer__open-block .open-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2D7FFF 0%, #012ECD 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(1, 46, 205, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apb-footer__open-block .open-footer:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(1, 46, 205, 0.6);
}

.apb-footer__fuel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.apb-footer__fuel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.apb-footer__fuel-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.apb-footer__fuel-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: #2D7FFF;
    box-shadow: 0 8px 20px rgba(1, 46, 205, 0.30);
}

.apb-footer__fuel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.apb-footer__fuel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    background: rgba(255, 255, 255, 0.08);
}

.apb-footer__fuel-item--gasoline .apb-footer__fuel-icon {
    background: rgba(255, 92, 92, 0.22);
}

.apb-footer__fuel-item--diesel .apb-footer__fuel-icon {
    background: rgba(160, 170, 180, 0.22);
}

.apb-footer__fuel-item--propane .apb-footer__fuel-icon {
    background: rgba(0, 179, 104, 0.22);
}

.apb-footer__fuel-item--methane .apb-footer__fuel-icon {
    background: rgba(45, 127, 255, 0.22);
}

.apb-footer__fuel-name {
    font-size: 14px;
    font-weight: 700;
    color: #eef2f7;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.apb-footer__fuel-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.apb-footer__fuel-price strong {
    font-size: 20px;
    font-weight: 800;
    color: #6ea8ff;
    line-height: 1;
}

.apb-footer__fuel-unit {
    font-size: 12px;
    color: #8b95a3;
    font-weight: 600;
}

.apb-footer__fuel-note {
    font-size: 11px;
    color: #8b95a3;
    margin: 0;
    line-height: 1.4;
}

.apb-footer__fuel-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #2D7FFF 0%, #012ECD 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(1, 46, 205, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.apb-footer__fuel-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -40%;
    width: 30px;
    height: 200%;
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(20deg);
    transition: left 0.5s ease;
}

.apb-footer__fuel-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(1, 46, 205, 0.6);
    color: #fff;
}

.apb-footer__fuel-cta:hover::before {
    left: 120%;
}

.apb-footer__fuel-cta-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.apb-footer__fuel-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
    min-width: 0;
}

.apb-footer__fuel-cta-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.apb-footer__fuel-cta-sub {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apb-footer__fuel-cta-arrow {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.apb-footer__fuel-cta:hover .apb-footer__fuel-cta-arrow {
    transform: translateX(4px);
}

.apb-footer__bottom {
    padding: 22px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    text-align: center;
}

.apb-footer__copyright {
    font-size: 13px;
    color: #8b95a3;
    margin: 0;
}

.apb-footer__fuel-wrap {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    margin-bottom: 8px;
}

.apb-footer__fuel-details {
    display: block;
}

.apb-footer__fuel-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 4px 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b95a3;
    user-select: none;
}

.apb-footer__fuel-summary::-webkit-details-marker {
    display: none;
}

.apb-footer__fuel-summary-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b95a3;
}

.apb-footer__fuel-summary-icon {
    display: none;
}

@media (min-width: 768px) {
    .apb-footer__m-accordion-icon,
    .apb-footer__fuel-summary-icon {
        display: none !important;
    }

    .apb-footer__m-accordion-head,
    .apb-footer__fuel-summary {
        cursor: default;
        pointer-events: none;
    }
}

.apb-footer__m-accordion {
    display: block;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    margin: 0 0 20px;
}

.apb-footer__m-accordion-head {
    display: block;
    cursor: default;
    list-style: none;
    padding: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8b95a3;
    user-select: none;
    background: transparent;
    border: none;
}

.apb-footer__m-accordion-head::-webkit-details-marker {
    display: none;
}

.apb-footer__m-accordion-icon {
    display: none;
}

.apb-footer__m-accordion-body {
    padding: 0;
    border: none;
    animation: none;
}

.apb-footer__m-accordion-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apb-footer__m-accordion-body li {
    margin: 0;
    padding: 0;
}

.apb-footer__m-accordion-body li a {
    display: inline-block;
    color: #d7dde5;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s ease, transform 0.2s ease;
}

.apb-footer__m-accordion-body li a:hover {
    color: #6ea8ff;
    transform: translateX(2px);
}

@media (max-width: 767px) {

    .apb-footer {
        margin-top: 48px;
        padding: 40px 0 0;
    }

    .apb-footer .container {
        padding: 0 16px;
    }

    .apb-footer__grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding-bottom: 20px;
    }

    .apb-footer__col {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .apb-footer__col--brand {
        gap: 14px;
        align-items: flex-start;
    }

    .apb-footer__logo {
        max-width: 120px;
    }

    .apb-footer__slogan {
        max-width: none;
        font-size: 13px;
        color: #a9b3c0;
    }

    .apb-footer__social {
        width: 100%;
    }

    .apb-footer__social-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .apb-footer__soc-btn {
        justify-content: center;
        padding: 12px;
        font-size: 13px;
    }

    .apb-footer__m-accordion {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        overflow: hidden;
        margin-bottom: 10px;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    }

    .apb-footer__m-accordion[open] {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(45, 127, 255, 0.55);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
    }

    .apb-footer__m-accordion-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 18px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: normal;
        text-transform: none;
        color: #eef2f7;
        transition: background 0.2s ease, color 0.2s ease;
        pointer-events: auto;
    }

    .apb-footer__m-accordion-head:active {
        background: rgba(255, 255, 255, 0.06);
    }

    .apb-footer__m-accordion[open] .apb-footer__m-accordion-head {
        color: #6ea8ff;
    }

    .apb-footer__m-accordion-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(45, 127, 255, 0.18);
        color: #6ea8ff;
        transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
    }

    .apb-footer__m-accordion[open] .apb-footer__m-accordion-icon {
        transform: rotate(180deg);
        background: #012ECD;
        color: #fff;
    }

    .apb-footer__m-accordion-body {
        padding: 0 18px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        animation: apb-acc-in 0.25s ease;
    }

    @keyframes apb-acc-in {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .apb-footer__m-accordion-body ul {
        gap: 0;
        padding-top: 12px;
    }

    .apb-footer__m-accordion-body li a {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        font-size: 14px;
        color: #d7dde5;
    }

    .apb-footer__m-accordion-body li:last-child a {
        border-bottom: none;
    }

    .apb-footer__m-accordion-body li a:active {
        color: #6ea8ff;
        padding-left: 4px;
    }

    .apb-footer__open-block {
        margin-top: 4px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .apb-footer__open-block .open-footer {
        width: 100%;
        justify-content: center;
        padding: 14px 18px;
        font-size: 14px;
    }

    .apb-footer__fuel-wrap {
        padding-bottom: 16px;
        border-bottom: none;
        margin-bottom: 0;
    }

    .apb-footer__fuel-summary {
        padding: 16px 18px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: normal;
        text-transform: none;
        color: #eef2f7;
        transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.2s ease, background 0.25s ease;
        pointer-events: auto;
    }

    .apb-footer__fuel-summary-title {
        font-size: 15px;
        font-weight: 700;
        letter-spacing: normal;
        text-transform: none;
        color: inherit;
    }

    .apb-footer__fuel-summary-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: rgba(45, 127, 255, 0.18);
        color: #6ea8ff;
        transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
    }

    .apb-footer__fuel-details[open] > .apb-footer__fuel-summary {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(45, 127, 255, 0.55);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        color: #6ea8ff;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-bottom-color: transparent;
    }

    .apb-footer__fuel-details[open] .apb-footer__fuel-summary-icon {
        transform: rotate(180deg);
        background: #012ECD;
        color: #fff;
    }

    .apb-footer__fuel-content {
        padding: 16px 18px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(45, 127, 255, 0.55);
        border-top: none;
        border-bottom-left-radius: 14px;
        border-bottom-right-radius: 14px;
        animation: apb-acc-in 0.25s ease;
    }

    .apb-footer__fuel-content .apb-footer__fuel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .apb-footer__fuel-content .apb-footer__fuel-item {
        padding: 10px;
    }

    .apb-footer__fuel-content .apb-footer__fuel-price strong {
        font-size: 16px;
    }

    .apb-footer__fuel-content .apb-footer__fuel-cta {
        margin-top: 12px;
        padding: 12px 14px;
    }

    .apb-footer__bottom {
        padding: 18px 0 20px;
    }

    .apb-footer__copyright {
        font-size: 12px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .apb-footer {
        margin-top: 60px;
        padding-top: 48px;
    }

    .apb-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .apb-footer__col--brand {
        grid-column: 1 / -1;
    }
}

.apb-footer__disclaimer {
    max-width: 780px;
    margin: 10px auto 0;
    font-size: 12px;
    line-height: 1.55;
    color: #969ba5;
    text-align: center;
}

.apb-footer__disclaimer strong {
    color: #5b6673;
    font-weight: 700;
}

.apb-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 12px;
}

.apb-footer__legal-links a {
    color: #969ba5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.apb-footer__legal-links a:hover {
    color: #012ECD;
    border-bottom-color: #012ECD;
}

.apb-footer__legal-sep {
    color: #d0d4da;
    user-select: none;
}

@media (max-width: 575px) {
    .apb-footer__disclaimer {
        font-size: 11px;
    }
    .apb-footer__legal-links {
        font-size: 11px;
    }
}