.epg {
    --bg: #f7f2eb;
    --accent: #7a5a34;
    --accent2: #b18a5b;
    --text: #2b241d;
    --muted: #6f655c;

    padding: 76px 20px;
    background: linear-gradient(180deg, #faf7f2 0%, var(--bg) 100%);
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
}

.epg__container {
    max-width: 1240px;
    margin: 0 auto;
}

.epg__head {
    max-width: 920px;
    margin: 0 auto 52px;
    text-align: center;
}

.epg__title {
    margin: 0 0 18px;
    font-size: 42px;
    line-height: 1.12;
    font-weight: 700;
    color: #211a14;
}

.epg__lead {
    margin: 0 auto;
    max-width: 860px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.75;
    color: var(--muted);
}

.epg__lead + .epg__lead {
    margin-top: 1.2rem;
}

/* Сетка 3 колонки — строго 3 в ряд */
.epg__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.epg__grid > * {
    min-width: 0;
}

.epg-tile {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(56, 39, 19, 0.08);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

.epg-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(56, 39, 19, 0.16);
}

.epg-tile__img {
    height: 220px;
    overflow: hidden;
    background: #e8dfd3;
}

.epg-tile__img img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.epg-tile:hover .epg-tile__img img {
    transform: scale(1.08);
}

.epg-tile__content {
    padding: 20px 24px 24px;
    text-align: center;
}

.epg-tile__title {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

/* Адаптивность: на планшете 2 колонки, на мобильном 1 */
@media (max-width: 1024px) {
    .epg__grid {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .epg__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .epg {
        padding: 52px 16px;
    }

    .epg__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .epg__title {
        font-size: 32px;
    }

    .epg__lead {
        font-size: 16px;
        line-height: 1.6;
    }

    .epg-tile__img {
        height: 200px;
    }

    .epg-tile__title {
        font-size: 16px;
    }
}

/* Для очень больших экранов — максимум 3 колонки, не больше */
@media (min-width: 1400px) {
    .epg__container {
        max-width: 1280px;
    }
}

/* Декоративная подпись внизу */
.epg__footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #e0d4c6;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #b7a07e;
}

.epg__about {
    text-align: center;
    margin-bottom: 40px;
}

.epg__about-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.epg-about-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.epg-about-item img {
    width: 42px;
    height: 42px;
    margin-bottom: 8px;
}

.epg-block {
    max-width: 900px;
    margin: 0 auto 48px;
}

.epg-block__title {
    font-size: 28px;
    margin-bottom: 16px;
    text-align: center;
    color: #211a14;
}

.epg-menu {
    margin-top: 20px;
}

.epg-menu__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5ded6;
    font-family: Arial, sans-serif;
    font-size: 16px;
}
.epg-list {
    max-width: 800px;
    margin: 0 auto 24px;
    padding-left: 18px;
    font-family: Arial, sans-serif;
    color: #6f655c;
    line-height: 1.7;
}

.epg-list li {
    margin-bottom: 10px;
}

.epg-table {
    margin-top: 28px;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 16px 40px rgba(56, 39, 19, 0.08);
}

/* сама таблица */
.epg-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

/* шапка */
.epg-table thead {
    background: linear-gradient(135deg, #7a5a34, #b18a5b);
    color: #fff;
}

.epg-table th {
    padding: 16px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* строки */
.epg-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #efe7dd;
    color: #4a4036;
    vertical-align: top;
}

/* зебра */
.epg-table tbody tr:nth-child(even) {
    background: #faf7f2;
}

/* hover */
.epg-table tbody tr {
    transition: all 0.2s ease;
}

.epg-table tbody tr:hover {
    background: #f3ece4;
    transform: scale(1.01);
}

/* первая колонка (номер) */
.epg-table td:first-child {
    font-weight: 600;
    color: #7a5a34;
    width: 50px;
}

/* цена */
.epg-table td:nth-child(3) {
    font-weight: 600;
    color: #2b241d;
    white-space: nowrap;
}

/* "шт" и прочее */
.epg-table td:last-child {
    color: #8a7f73;
    font-size: 13px;
}

/* адаптив */
@media (max-width: 768px) {
    .epg-table table {
        font-size: 13px;
    }

    .epg-table th,
    .epg-table td {
        padding: 10px 12px;
    }
}