/* =============================================
   Table Price Block
   ============================================= */

.table-price__section {
    margin: 60px 0;
}

.table-price__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.table-price__header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.table-price__title {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.2;
    color: var(--black);
}

.table-price__description {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
}

/* Обгортка таблиці з обмеженням висоти */
.table-price__table-wrap {
    position: relative;
    max-height: 340px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}


.table-price__table-wrap.is-open .table-price__fade {
    opacity: 0;
    pointer-events: none;
}

/* Fade знизу */
.table-price__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(241, 241, 241, 0) 0%, #f1f1f1 100%);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Горизонтальний скрол на мобілці */
.table-price__wrapper {
    width: 100%;
    overflow-x: auto;
}

.table-price__table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
}

/* Thead */
.table-price__head-row {
    background-color: var(--black);
}

.table-price__th {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: var(--white);
    padding: 10px;
}

.table-price__th--service {
    text-align: left;
    white-space: nowrap;
}

.table-price__th--price {
    text-align: right;
    white-space: nowrap;
}

/* Рядки */

.table-price__row--even {
    background: #e3e3e3;
}

/* Комірки */
.table-price__cell {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
    padding: 10px;
}

.table-price__cell--price {
    text-align: right;
    white-space: nowrap;
}

.table-price__price--request {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 120%;
    color: var(--black);
    padding: 10px;
}

/* Кнопка */
.table-price__btn-wrap {
    display: flex;
    justify-content: center;
}

.table-price__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-btn);
    border: none;
    border-radius: 100px;
    padding: 15px 30px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    color: var(--black);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.table-price__btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.3);
}

.table-price__btn-icon {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
 
.table-price__btn[aria-expanded="true"] .table-price__btn-icon {
    transform: rotateX(180deg);
}

/* Desktop — two-column layout */
@media (min-width: 992px) {
    .table-price__section {
        margin: 80px 0;
    }

    .table-price__inner {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        gap: 60px;
    }

    /* На десктопі кнопка і таблиця — в правій колонці разом */
    .table-price__table-wrap,
    .table-price__btn-wrap {
        grid-column: 2;
    }

    .table-price__header {
        grid-column: 1;
        grid-row: 1 / 3;
        position: sticky;
        top: 100px;
    }

    .table-price__title {
        font-size: 40px;
    }
}