/*
Theme Name: Gotovye Raciony
Theme URI: https://gotovye-raciony.ru
Author: Ваше Имя
Description: Тема для сервиса доставки готовых рационов здорового питания
Version: 1.0
License: GPL v2 or later
Text Domain: gotovye-raciony
*/

/* ===== Базовые стили ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fcfcf7;
    color: #1e2a2f;
    line-height: 1.5;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Шапка ===== */
header {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    position: relative; /* добавляем, если отсутствует */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: #2e7d32;
}
.logo a {
    color: inherit;
}
.logo span {
    color: #1e2a2f;
}
.main-nav {
    display: flex;
    gap: 28px;
    font-weight: 500;
    align-items: center;
}
.main-nav a {
    color: #1e2a2f;
    transition: color 0.2s;
}
.main-nav a:hover {
    color: #2e7d32;
}
.header-cta {
    background: #2e7d32;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.2s;
}
.header-cta:hover {
    background: #1b5e20;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: #1e2a2f;
    border-radius: 3px;
    transition: 0.3s;
}
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
.mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #fff;
    padding: 16px 0;
    gap: 12px;
    border-top: 1px solid #edf2ed;
}
.mobile-nav a {
    padding: 8px 0;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
}
.mobile-nav a:last-child {
    border-bottom: none;
}
.mobile-nav.open {
    display: flex;
}

/* ===== Hero ===== */
.hero {
    padding: 60px 0 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}
.hero-content {
    flex: 1 1 50%;
}
.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.2rem;
    color: #4a5b62;
    max-width: 500px;
    margin-bottom: 30px;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.btn-primary {
    background: #2e7d32;
    color: #fff;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.btn-primary:hover {
    background: #1b5e20;
}
.btn-outline {
    background: transparent;
    color: #2e7d32;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid #2e7d32;
    display: inline-block;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: #2e7d32;
    color: #fff;
}
.partner-link {
    background: #ffb300;
    color: #1e2a2f;
    padding: 14px 36px;
    border-radius: 40px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.2s;
}
.partner-link:hover {
    background: #ffa000;
}
.hero-image {
    flex: 1 1 40%;
    background: #e8f0e8;
    border-radius: 24px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #4a5b62;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 24 24" fill="none" stroke="%234a5b62" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="2.18"/><line x1="8" y1="2" x2="8" y2="22"/><line x1="16" y1="2" x2="16" y2="22"/><line x1="2" y1="8" x2="22" y2="8"/><line x1="2" y1="16" x2="22" y2="16"/></svg>');
    background-repeat: no-repeat;
    background-position: center 40%;
    background-size: 80px;
    padding-top: 120px;
    text-align: center;
}

/* ===== Секции ===== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #1e2a2f;
}
.section-subtitle {
    font-size: 1.1rem;
    color: #4a5b62;
    margin-bottom: 40px;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}
.program-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.2s;
    border: 1px solid #edf2ed;
}
.program-card:hover {
    transform: translateY(-4px);
}
.program-card .icon-placeholder {
    width: 60px;
    height: 60px;
    background: #e8f0e8;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #2e7d32;
}
.program-card .icon-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.program-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.program-card p {
    color: #4a5b62;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.program-card .btn-small {
    background: #2e7d32;
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    font-size: 0.9rem;
}
.program-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
}
.program-actions .btn-outline {
    min-width: 180px;
    text-align: center;
}

.advantages {
    background: #ffffff;
    padding: 60px 0;
    border-radius: 32px;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.adv-item .icon-placeholder {
    width: 56px;
    height: 56px;
    background: #e8f0e8;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #2e7d32;
}
.adv-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.adv-item p {
    color: #4a5b62;
    font-size: 0.9rem;
}

.blog-preview {
    padding: 40px 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.blog-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2ed;
    transition: transform 0.2s;
}
.blog-card:hover {
    transform: translateY(-4px);
}
.blog-card .image-placeholder {
    height: 140px;
    background: #e8f0e8;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5b62;
    font-size: 0.9rem;
    text-transform: uppercase;
    overflow: hidden;
}
.blog-card .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-card h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
.blog-card p {
    color: #4a5b62;
    font-size: 0.9rem;
}
.blog-card .btn-small {
    margin-top: 12px;
}

.testimonials {
    padding: 40px 0;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #edf2ed;
}
.testimonial-card .avatar-placeholder {
    width: 48px;
    height: 48px;
    background: #d4e0d4;
    border-radius: 50%;
    margin-bottom: 12px;
}
.testimonial-card .stars {
    color: #ffb300;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.testimonial-card p {
    color: #1e2a2f;
    font-size: 0.95rem;
}
.testimonial-card .author {
    margin-top: 12px;
    font-weight: 500;
    color: #4a5b62;
    font-size: 0.9rem;
}

.global-cta {
    background: #2e7d32;
    color: #fff;
    padding: 60px 20px;
    border-radius: 32px;
    text-align: center;
    margin: 40px 0;
}
.global-cta h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.global-cta p {
    font-size: 1.2rem;
    margin-bottom: 28px;
    opacity: 0.9;
}
.global-cta .btn-primary {
    background: #fff;
    color: #2e7d32;
    padding: 14px 48px;
    font-weight: 700;
}
.global-cta .btn-primary:hover {
    background: #f0f7f0;
}

.page-content {
    padding: 20px 0 40px;
}
.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}
.page-content h2, .page-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}
.page-content ul, .page-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}
.page-content li {
    margin-bottom: 8px;
}

.pagination {
    text-align: center;
    margin: 40px 0;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid #edf2ed;
    color: #1e2a2f;
}
.pagination .current {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}
.pagination a:hover {
    background: #e8f0e8;
}

footer {
    background: #1e2a2f;
    color: #b0c4c9;
    padding: 40px 0 24px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}
.footer-grid h5 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 12px;
}
.footer-grid a {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-grid a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid #3a4a4f;
    padding-top: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* ===== Стили для single.php ===== */
.single-post {
    /* Убираем ограничение ширины, чтобы страница записи занимала всю ширину */
    max-width: 100%;
    margin: 0 auto;
}
.program-single-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}
.program-icon-large {
    width: 80px;
    height: 80px;
    background: #e8f0e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
    overflow: hidden;
}
.program-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.program-meta, .blog-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #4a5b62;
    font-size: 0.95rem;
    margin-bottom: 20px;
    background: #f5f8f5;
    padding: 12px 20px;
    border-radius: 30px;
}
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #edf2ed;
}
.post-navigation a {
    color: #2e7d32;
    font-weight: 500;
}

/* ===== Дополнительно: увеличиваем ширину контейнера на больших экранах ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: nowrap;
    }
    .main-nav {
        display: none;
    }
    .burger {
        display: flex;
        order: 3;
        margin-left: auto;
    }
    .header-cta {
        order: 2;
        margin-left: 0;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .logo {
        order: 1;
        font-size: 1.4rem;
        flex-shrink: 0; /* чтобы логотип не сжимался */
    }

    /* Ключевое изменение: мобильное меню становится выпадающим */
    .mobile-nav {
        display: none; /* скрыто по умолчанию */
        position: absolute;
        top: 100%; /* прилипает к низу шапки */
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        padding: 16px 20px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #edf2ed;
        z-index: 100;
        flex-direction: column;
        gap: 12px;
        box-sizing: border-box;
    }
    .mobile-nav.open {
        display: flex; /* показываем при открытии */
        margin-top:10px;
    }
    .mobile-nav a {
        padding: 10px 0;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
        color: #1e2a2f;
        font-size: 1rem;
    }
    .mobile-nav a:last-child {
        border-bottom: none;
    }
    /* Если внутри mobile-nav есть кнопка "Заказать", её можно стилизовать отдельно */
    .mobile-nav .partner-link {
        display: block;
        background: #ffb300;
        padding: 12px;
        border-radius: 30px;
        text-align: center;
        font-weight: 700;
        margin-top: 8px;
        border: none;
    }

    /* Остальные стили для мобильных (hero, сетки и т.д.) остаются без изменений */
}
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image {
        min-height: 200px;
        background-size: 60px;
        padding-top: 100px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .global-cta h2 {
        font-size: 1.8rem;
    }
    .global-cta p {
        font-size: 1rem;
    }
    .programs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .program-actions {
        flex-direction: column;
        align-items: center;
    }
    .program-actions .btn-outline {
        width: 100%;
        max-width: 280px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Дополнительные стили для карточек программ и страницы ===== */

/* Метки ACF в карточках (главная, архив) */
.program-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 0.85rem;
    color: #4a5b62;
}
.program-meta-list .meta-item {
    background: #f0f5f0;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Отступ сверху на странице записи */
.single-post {
    /* padding-top: 30px; */
}

/* Иконка программы 200×200 */
.program-icon-large {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background: #e8f0e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.program-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Заголовок + иконка в строку */
.program-single-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

/* Адаптив для маленьких экранов */
@media (max-width: 600px) {
    .program-single-header {
        flex-direction: column;
        text-align: center;
    }
    .program-icon-large {
        width: 150px;
        height: 150px;
    }
}
/* ===== Стили для карточек и фильтра (префикс gm-) ===== */
.gm-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 32px;
    padding: 16px 0;
    border-bottom: 1px solid #edf2ed;
}
.gm-filter-btn {
    padding: 8px 18px;
    border-radius: 30px;
    background: #f5f8f5;
    border: 1px solid #e0e8e0;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e2a2f;
    transition: all 0.2s;
}
.gm-filter-btn:hover { background: #e8f0e8; }
.gm-filter-btn.active { background: #2e7d32; color: #fff; border-color: #2e7d32; }

.gm-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.gm-program-card-catalog {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #edf2ed;
    transition: transform 0.2s, box-shadow 0.2s;
}
.gm-program-card-catalog:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.gm-program-card-catalog .gm-icon { font-size: 28px; margin-bottom: 8px; }
.gm-program-card-catalog h3 { font-size: 1.1rem; margin-bottom: 6px; }
.gm-program-card-catalog p { color: #4a5b62; font-size: 0.92rem; margin-bottom: 10px; }
.gm-program-card-catalog .gm-tag {
    display: inline-block;
    background: #e8f0e8;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #2e7d32;
    margin-right: 6px;
    margin-bottom: 4px;
}
.gm-program-card-catalog .gm-price {
    font-weight: 700;
    color: #2e7d32;
    font-size: 1rem;
    margin: 6px 0;
}
.gm-program-card-catalog .gm-link {
    color: #2e7d32;
    font-weight: 500;
    font-size: 0.9rem;
}
.gm-program-card-catalog .gm-link:hover { text-decoration: underline; }

.gm-category-head {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 2px solid #f0f4f0;
}
.gm-category-head:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }

.gm-disclaimer {
    background: #fff8e6;
    border-left: 4px solid #ffb300;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    color: #5d4a1a;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .gm-filter { gap: 6px; }
    .gm-filter-btn { padding: 6px 14px; font-size: 0.8rem; }
    .gm-cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .gm-cards-grid { grid-template-columns: 1fr; }
    .gm-filter-btn { width: 100%; text-align: center; }
}

/* ===== Контейнер и общие стили для страниц с программами ===== */
.gm-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e2a2f;
    line-height: 1.6;
}
.gm-container h1, .gm-container h2, .gm-container h3 {
    font-weight: 700;
    color: #1e2a2f;
}
.gm-container h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 8px;
}
.gm-container h2 {
    font-size: 2rem;
    margin-top: 48px;
    margin-bottom: 16px;
}
.gm-container h3 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 8px;
}
.gm-container p {
    margin-bottom: 16px;
    color: #3d4f58;
}
.gm-container ul, .gm-container ol {
    margin: 12px 0 20px 24px;
}
.gm-container li {
    margin-bottom: 8px;
}

/* Блок "Как выбрать" */
.gm-how-to-choose {
    background: #f8faf8;
    padding: 24px 28px;
    border-radius: 16px;
    margin: 32px 0;
}
.gm-how-to-choose h3 {
    margin-top: 0;
}
.gm-how-to-choose ul {
    margin: 8px 0 0 20px;
}

/* FAQ */
.gm-faq-item {
    border-bottom: 1px solid #edf2ed;
    padding: 12px 0;
}
.gm-faq-item .gm-question {
    font-weight: 600;
    cursor: pointer;
}
.gm-faq-item .gm-answer {
    padding-top: 6px;
    color: #4a5b62;
}

/* CTA-блок */
.gm-cta {
    background: #2e7d32;
    color: #fff;
    padding: 40px 20px;
    border-radius: 32px;
    text-align: center;
    margin: 40px 0;
}
.gm-cta h2 {
    color: #fff;
    margin-top: 0;
}
.gm-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.gm-btn-primary {
    background: #fff;
    color: #2e7d32;
    padding: 14px 40px;
    border-radius: 40px;
    font-weight: 700;
    display: inline-block;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}
.gm-btn-primary:hover {
    background: #f0f7f0;
}

/* Кнопка-ссылка для главной "Все программы" и "Сравнить" */
.gm-btn-outline {
    background: transparent;
    color: #2e7d32;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    border: 2px solid #2e7d32;
    display: inline-block;
    transition: all 0.2s;
}
.gm-btn-outline:hover {
    background: #2e7d32;
    color: #fff;
}

/* Адаптив для контейнера */
@media (max-width: 768px) {
    .gm-container h1 {
        font-size: 2rem;
    }
    .gm-container h2 {
        font-size: 1.6rem;
    }
}
@media (max-width: 480px) {
    .gm-container h1 {
        font-size: 1.6rem;
    }
    .gm-btn-primary, .gm-btn-outline {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }
}

/* ===== Адаптивные таблицы ===== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

.table-wrap table {
    width: 100%;
    min-width: 600px; /* Минимальная ширина, при которой появляется прокрутка */
    border-collapse: collapse;
}

/* Если таблицы уже вставлены через Gutenberg или HTML без обёртки */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.wp-block-table table {
    min-width: 600px;
}

/* Для таблиц, которые вставлены через блок "Таблица" в Gutenberg */
.wp-block-table.is-style-stripes {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Дополнительно: красивое оформление таблиц на мобильных */
@media (max-width: 768px) {
    .wp-block-table table,
    .table-wrap table {
        min-width: 500px;
        font-size: 0.85rem;
    }
    
    .wp-block-table th,
    .wp-block-table td,
    .table-wrap th,
    .table-wrap td {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .wp-block-table table,
    .table-wrap table {
        min-width: 400px;
        font-size: 0.75rem;
    }
    
    .wp-block-table th,
    .wp-block-table td,
    .table-wrap th,
    .table-wrap td {
        padding: 6px 8px;
    }
}
/* Стили для изображений в карточках программ */
.gm-program-thumb {
    width: 100%;
    /* height: 300px; */
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: #e8f0e8;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gm-program-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gm-thumb-placeholder {
    font-size: 3rem;
    color: #2e7d32;
}
.gm-program-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 12px;
    font-size: 0.9rem;
}
.gm-meta-item {
    background: #f0f5f0;
    padding: 2px 12px;
    border-radius: 20px;
}
.gm-meta-item strong {
    font-weight: 600;
}
.meta-item {
    background: #f0f5f0;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #1e2a2f;
}

/* Убираем маркеры списков в меню */
.main-nav ul,
.main-nav ul li,
.mobile-nav ul,
.mobile-nav ul li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Если используется стандартный wp_nav_menu, то у него могут быть классы .menu, .menu-item */
.menu,
.menu-item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}