.section h1 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 3.2rem;
    color: var(--text-primary);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.offer-block {
    padding: 0;
}

.offer-block h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.offer-block p {
    font-size: 1em;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.offer-block ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.offer-block li {
    font-size: 0.95em;
    margin-bottom: 8px;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.offer-block li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--text-links);
    font-weight: 600;
}

.table-section {
    margin-bottom: 80px;
    padding: 0 15px;
    box-sizing: border-box;
}

.table-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid var(--text-secondary);
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-main);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.table-header-desktop,
.table-row {
    display: flex;
    border-bottom: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.table-header-desktop {
    background-color: var(--bg-main);
    font-weight: 700;
    color: var(--text-links);
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background-color: rgba(var(--text-primary-rgb, 34, 34, 34), 0.05);
}

.header-cell,
.row-product-name,
.price-item {
    padding: 1rem 1.5rem;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.row-product-name {
    flex: 1.5;
    font-weight: 600;
}

.table-header-desktop .header-cell:first-child {
    flex: 1.5;
}

.price-label {
    display: none;
}

.row-prices {
    display: flex;
    flex: 3;
}

body.dark-mode .price-table-container,
body.dark-mode .table-header-desktop,
body.dark-mode .table-row {
    background-color: var(--bg-main);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

body.dark-mode .table-header-desktop {
    color: var(--text-links);
}

body.dark-mode .table-row:hover {
    background-color: rgba(var(--text-primary-rgb, 224, 224, 224), 0.05);
}

@media (max-width: 768px) {
    .table-section {
        margin-bottom: 50px;
        padding: 0 10px;
    }

    .price-table-container {
        border: none;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
        max-width: 100%;
    }

    .table-header-desktop {
        display: none;
    }

    .table-row {
        flex-direction: column;
        margin-bottom: 1.5rem;
        border: 1px solid var(--text-secondary);
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        background-color: var(--bg-main);
        padding: 1rem;
    }

    .table-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        border-bottom: 1px solid var(--text-secondary);
    }

    .table-row:hover {
        background-color: var(--bg-main);
    }

    .row-product-name {
        font-weight: 700;
        margin-bottom: 0.8rem;
        color: var(--text-primary);
        padding: 0;
        border-bottom: 1px solid var(--text-secondary);
        padding-bottom: 0.8rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .row-prices {
        flex-direction: column;
        padding: 0;
        margin-top: 0.8rem;
    }

    .price-item {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px dashed var(--text-secondary);
        white-space: normal;
        color: var(--text-primary);
    }

    .price-item:last-child {
        border-bottom: none;
    }

    .price-label {
        display: inline-block;
        font-weight: 600;
        color: var(--text-secondary);
    }

    .price-value {
        font-weight: 700;
        color: var(--text-primary);
    }

    body.dark-mode .price-table-row {
        background-color: var(--bg-main);
        border-color: var(--text-secondary);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    body.dark-mode .row-product-name {
        border-color: var(--text-secondary);
    }

    body.dark-mode .price-item {
        border-color: var(--text-secondary);
    }
}
