/* Desktop home redesign — Figma Главная 1440 (Drive-Bit--Copy-) */

.drivebit-filter-btn {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    min-width: 141px !important;
    min-height: 60px !important;
    padding: 10px 12px !important;
}

.drivebit-filter-btn img,
.drivebit-filter-icon {
    width: auto;
    height: 22px;
    max-width: 56px;
    display: block;
    object-fit: contain;
}

/* White-on-transparent PNGs: idle stays white; selected → dark */
.drivebit-filter-btn[aria-pressed="true"] img,
.drivebit-filter-btn.is-selected img {
    filter: brightness(0);
}

.drivebit-filter-btn:not([aria-pressed="true"]):not(.is-selected) img {
    filter: none;
}

.drivebit-filter-label {
    font-family: var(--db-btn-font, "Roboto", sans-serif) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

/* Hide travel chips from hero categories (they live in destinations) */
.drivebit-filter-btn[data-filter-title="Все"],
.drivebit-filter-btn[data-filter-title="В Крым"],
.drivebit-filter-btn[data-filter-title="Беларусь"],
.drivebit-filter-btn[data-filter-title="Абхазия"] {
    display: none !important;
}

body:has(#drivebit-hero-static) .drivebit-main-promo {
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

body:has(#drivebit-hero-static) .drivebit-promo-card {
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

body:has(#drivebit-hero-static) .drivebit-promo-card--why {
    background: #fff;
    padding: 100px;
}

body:has(#drivebit-hero-static) .drivebit-promo-why-layout {
    max-width: 1240px;
    margin: 0 auto;
    flex-direction: column;
    gap: 40px;
}

body:has(#drivebit-hero-static) .drivebit-promo-why-left {
    align-items: center;
    text-align: center;
    min-width: 0;
}

body:has(#drivebit-hero-static) .drivebit-promo-heading-title {
    margin: 0 0 8px;
    font-family: var(--db-font-display, "Inter Tight", Inter, sans-serif);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--db-gray-main, #152032);
}

body:has(#drivebit-hero-static) .drivebit-promo-heading-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--db-gray-main, #152032);
}

body:has(#drivebit-hero-static) .drivebit-promo-why-left .drivebit-promo-btn {
    display: none;
}

body:has(#drivebit-hero-static) .drivebit-promo-advantages {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1240px;
    row-gap: 24px;
    column-gap: 24px;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip {
    height: auto;
    max-width: none;
    perspective: none;
    cursor: default;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-inner {
    transform: none !important;
    position: static;
    height: auto;
    min-height: 268px;
    background: #f5f5f5;
    border-radius: 50px;
    padding: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-face {
    position: static !important;
    transform: none !important;
    backface-visibility: visible !important;
    height: auto !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-face--front {
    font-size: 20px !important;
    font-weight: 500 !important;
    color: var(--db-gray-main, #152032) !important;
    line-height: 1.4 !important;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-face--back {
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--db-gray-4, #737984) !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-icon {
    width: 64px;
    height: 60px;
    border-radius: 16px;
    background: var(--db-blue-main, #2080fa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body:has(#drivebit-hero-static) .drivebit-promo-chip-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

body:has(#drivebit-hero-static) .drivebit-promo-card--earn {
    display: none;
}

body:has(#drivebit-hero-static) .drivebit-seo-shell {
    display: none;
}

@media (max-width: 1100px) {
    body:has(#drivebit-hero-static) .drivebit-promo-card--why {
        padding: 60px 40px;
    }

    body:has(#drivebit-hero-static) .drivebit-promo-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body:has(#drivebit-hero-static) .drivebit-promo-card--why {
        padding: 40px 20px;
    }

    body:has(#drivebit-hero-static) .drivebit-promo-advantages {
        grid-template-columns: 1fr;
    }

    .drivebit-filter-btn {
        min-width: auto !important;
        min-height: auto !important;
        flex-direction: row !important;
        padding: 8px 13px !important;
    }

    .drivebit-filter-btn img {
        display: none;
    }
}
