:root {
    --comp-text: #646970;
    --comp-text-gray:#94a3b8;
    --comp-btn: #0073aa;
    --comp-btn-dark: #1e5a77;
    --comp-border: #dcdcde;
    --comp-stars: #facc15;
    --comp-stars-gray: #e5e7eb;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: 
      background-color 0.2s ease, 
      color 0.2s ease, 
      border-color 0.2s ease, 
      transform 0.1s ease;
    border: 1px solid transparent; 
}

.button:focus-visible {
    outline: 2px solid var(--comp-btn);
    outline-offset: 2px;
}

.button--primary { 
    background-color: var(--comp-btn); 
    color: #fff; 
}

.button--primary:hover { 
    background-color: var(--comp-btn-dark); 
    filter: brightness(0.9); 
}

.button--secondary { 
    background-color: transparent;
    border-color: var(--comp-btn); 
    color: var(--comp-btn); 
}

.button--secondary:hover { 
    background-color: var(--comp-btn); 
    color: #fff; 
}

.button:active {
    transform: translateY(1px);
}

.company-comparison {
    margin: 2rem 0;
}

.comp-table {
    display: flex;
    flex-direction: column;
    overflow: visible;
    font-size: 1rem;
}

.comp-table__header,
.comp-table__row {
    display: grid;
    grid-template-columns: 3fr 2fr 1.3fr 1fr minmax(160px, 1.5fr);
}

.comp-table__header {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--comp-text);
    text-transform: uppercase;
    padding: 1rem;
    border-bottom: 2px solid var(--comp-border);
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
}

.comp-table__row {
    align-items: center;
    border-bottom: 1px solid var(--comp-border);
    padding: 2rem 1rem;
    transition: 
      transform 0.2s ease, 
      box-shadow 0.2s ease, 
      background 0.2s ease;
}

.comp-table__row:hover { 
    background: #fff;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    transform: translateY(-1px); 
}

.comp-table__row:focus-within {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.comp-table__cell,
.comp-table__title {
    padding-right: 0.5rem;
}

.comp-table__cell--brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.comp-table__logo {
    width: 100%;
    max-width: 80px;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: var(--comp-text);
}

.comp-table__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comp-table__title strong {
    display: block;
    line-height: 1.2;
    margin-bottom: 4px;
}

.comp-table__tag {
    display: block;
    font-size: 0.85rem;
    color: var(--comp-text);
}

.comp-table__cell--rating {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; 
}

.comp-table__stars-container {
    position: relative;
    display: inline-block;
    line-height: 1;
    color: var(--comp-stars-gray);
}

.comp-table__stars-outer span {
    color: var(--comp-stars-gray);
}

.comp-table__stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--comp-stars); 
}

.comp-table__stars-inner span {
    color: var(--comp-stars);
}

.comp-table__rating-value {
    font-weight: 700;
    font-size: 0.95rem;
}

.comp-table__reviews-count,
.comp-table__no-rating {
    color: var(--comp-text);
    font-size: 0.85rem;
}

.comp-table__cell--price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.comp-table__cell--no-price strong {
    white-space: normal;
    line-height: 1.2;
    color: var(--comp-text);
    font-size: 0.85rem;
}

.comp-table__cell.comp-table__cell--action {
    display: flex;
    justify-content: center;
    padding: 0;
}

@media (max-width: 768px) {
    .button {
        width: 100%;
    }

    .comp-table__header { 
        display: none; 
    }

    .comp-table__row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .comp-table__cell--brand { 
        flex-direction: column; 
    }

    .comp-table__cell--rating {
        justify-content: center;
    }

    .comp-table__cell--price::before { 
        content: "Price"; 
    }
    .comp-table__cell--exp::before { 
        content: "Experience"; 
    }

    .comp-table__cell::before {
        display: block;
        font-size: 0.7rem;
        text-transform: uppercase;
        color: var(--comp-text-gray);
        letter-spacing: 0.05em;
        margin-bottom: 4px;
        font-weight: 600;
    }

    .comp-table__cell--price,
    .comp-table__cell--exp {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 0.5rem;
    }

    .comp-table__cell--brand::before,
    .comp-table__cell--action::before {
        content: none;
    }
}