/* Comparison Table ("З чого складається вартість" / "Комплектація" тощо)
   Figma: Modulex Table design (desktop / mobile with horizontal scroll)
   ──────────────────────────────────────────── */

.comparison-table {
    padding: 24px 0;
}

.comparison-table__scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.comparison-table__scroll::-webkit-scrollbar {
    display: none;
}

.comparison-table__grid {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) repeat(var(--comparison-table-cols), minmax(160px, 1fr));
    gap: 8px;
}

.comparison-table__cell {
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #ffffff;
    font-family: 'FixelDisplay';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 25px;
    /* identical to box height */
    text-align: center;
    color: #000000;



}

.comparison-table__cell--odd {
    background: #ffffff;
}

.comparison-table__cell--even {
    background: #EDEDED;
}

.comparison-table__cell--header:not(.comparison-table__cell--zone) {
    background: #4C8840;
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    font-size: 24px;
}

.comparison-table__cell--zone {
    justify-content: center;
    text-align: center;
    background: #DCEFDC;
    font-weight: 400;
}

.comparison-table__cell.comparison-table__cell--zone.comparison-table__cell--header {
    font-family: 'FixelDisplay';
    font-style: normal;
    font-weight: 500;
    font-size: 24px;
    line-height: 33px;
    color: #000000;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* ── Cell content types ─────────────────────── */

.comparison-table__check svg {
    display: block;
    width: 24px;
    height: 24px;
}

.comparison-table__request {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6B6B6B;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}

a.comparison-table__request:hover {
    opacity: 0.8;
}

.comparison-table__request-icon {
    display: inline-flex;
}

.comparison-table__request-icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

/* ── Scroll progress bar (mobile) ───────────── */

.comparison-table__scrollbar {
    display: none;
}

/* ── Breakpoint: horizontal scroll layout ───── */

@media (max-width: 992px) {
    .comparison-table__grid {
        grid-template-columns: 220px repeat(var(--comparison-table-cols), 200px);
    }

    .comparison-table__cell--zone {
        /*position: sticky;*/
        left: 0;
        z-index: 1;
    }
    
    .comparison-table__scrollbar {
        display: block;
        position: relative;
        height: 4px;
        margin-top: 16px;
        border-radius: 2px;
        background: #E5E5E5;
        overflow: hidden;
    }

    .comparison-table__scrollbar-thumb {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        background: #4C8840;
        border-radius: 2px;
    }

    .comparison-table {
        padding:0px;
    }
    .comparison-table__cell--header:not(.comparison-table__cell--zone){
        font-size: 18px;
    }
    .comparison-table__cell.comparison-table__cell--zone.comparison-table__cell--header {
        font-size: 16px;
    }
    .comparison-table__cell{
        padding: 10px 5px;
    }
}
