/* Общие стили для всего тела документа */
body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #fcfcfc, #f5f5f5);
    background-attachment: fixed;
    color: #333333;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Стили для верхнего колонтитула (шапки) */
header {
    background-color: #ffffff;
    color: #333333;
    padding: 1.5em 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid #e0e0e0;
}

header .header-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 20px;
}

header .logo-container {
    margin-right: 20px;
}

header .logo-container img {
    height: 70px;
    vertical-align: middle;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #735647;
    line-height: 1.2;
}

/* ------------------------------------------------------------------- */
/* НОВЫЙ БЛОК: Стили для кнопки гамбургер-меню (по умолчанию скрыта на ПК) */
.menu-toggle {
    display: none; /* Скрываем кнопку на больших экранах по умолчанию */
    background: none;
    border: none;
    font-size: 1.8em;
    color: #735647;
    cursor: pointer;
    padding: 10px;
    position: absolute; /* Позиционируем относительно header-content */
    top: 50%; /* Выравниваем по центру по вертикали */
    right: 20px;
    transform: translateY(-50%); /* Точная центровка */
    z-index: 101; /* Поверх всего */
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #84B047; /* При наведении меняем цвет */
}

/* ------------------------------------------------------------------- */
/* Базовые стили для навигационного меню (для ПК) */
.main-nav ul { /* Используем .main-nav для специфичности */
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex; /* На ПК элементы расположены горизонтально */
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

nav ul li a {
    color: #735647;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    display: block;
    position: relative;
}

/* Стили для иконок в навигации (для ПК) */
nav ul li a i {
    margin-right: 8px; /* Отступ справа от иконки */
    color: #84B047; /* Цвет иконки в навигации */
    transition: color 0.3s ease;
}

/* При наведении на ссылку, иконка тоже меняет цвет (для ПК) */
nav ul li a:hover i,
nav ul li a.active i {
    color: #6a953a; /* Чуть темнее зеленый */
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #84B047;
    transition: width 0.3s ease;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: calc(100% - 20px);
}

nav ul li a:hover,
nav ul li a.active {
    color: #84B047;
    transform: translateY(-2px);
}

/* Стили для основного содержимого страниц */
main {
    padding: 40px;
    max-width: 1000px;
    margin: 40px auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* Стили для секций */
section {
    margin-bottom: 50px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

h2 {
    color: #735647;
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #84B047;
    margin: 10px auto 0;
    border-radius: 3px;
}

h3 {
    color: #777777;
    font-size: 1.8em;
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
    font-weight: 600;
}

h3 i { /* Иконки в h3 заголовках */
    margin-right: 10px;
}

p {
    margin-bottom: 18px;
}

/* Стили для таблицы (меню) */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
}

table thead tr {
    background-color: #f0f0f0;
    color: #333333;
    font-weight: 600;
}

table th,
table td {
    padding: 18px;
    text-align: left;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

table th:last-child,
table td:last-child {
    border-right: none;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:nth-child(even) {
    background-color: #fcfcfc;
}

table tr:hover {
    background-color: #f0f0f0;
}

/* Стили для списков (буфет) */
.price-list { /* Используем более специфичный класс */
    list-style: none;
    padding: 0;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.price-list li {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eef0f2;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li:nth-child(even) {
    background-color: #fcfcfc;
}

.price-list li:hover {
    background-color: #f0f0f0;
}

.price-list li .price {
    font-weight: bold;
    color: #84B047;
}

/* Стили для ссылок */
a {
    color: #84B047;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6a953a;
}

/* Стили для футера */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: #f0f0f0;
    color: #777777;
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    border-top: 1px solid #e0e0e0;
}

/* Стили для полоски прогресса */
.progress-bar-container {
    margin-top: 50px;
    background-color: #f0f0f0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.08);
}

.progress-bar {
    width: 100%;
    background-color: #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 40px;
    background: linear-gradient(to right, #84B047, #AED581);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 8px;
    transition: width 0.7s ease-in-out;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
    font-size: 1.1em;
}

.goal-text {
    text-align: center;
    font-size: 1.1em;
    color: #777777;
    margin-top: 12px;
    font-weight: 600;
}

/* Стили для секции приветствия на главной странице */
.welcome-section {
    text-align: center;
    padding: 50px 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.welcome-section h2 {
    color: #735647;
    font-size: 2.8em;
    margin-bottom: 20px;
}
.welcome-section p {
    font-size: 1.2em;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.welcome-section img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Стили для фото автора */
.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    display: block;
    border: 5px solid #84B047;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Стили для списка опций поддержки */
.support-options {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.support-options li {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: flex-start;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.support-options li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.support-options .option-icon {
    flex-shrink: 0;
    margin-right: 20px;
}

.support-options .option-icon i {
    font-size: 2.8em;
    color: #84B047;
    margin-top: 5px;
}

.support-options .option-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #735647;
    font-size: 1.4em;
}

.support-options .option-content p {
    margin-bottom: 15px;
    color: #555;
}

.support-options .support-link {
    display: inline-block;
    padding: 10px 18px;
    background-color: #84B047;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.support-options .support-link:hover {
    background-color: #6a953a;
}

.support-options .support-link i {
    margin-right: 8px;
}

/* =================================================================== */
/* Адаптивность для маленьких экранов (смартфоны и планшеты в портретном режиме) */
@media (max-width: 768px) {
    /* Общие отступы и размеры */
    body {
        font-size: 0.9em;
    }

    header {
        padding: 1em 0;
    }

    /* ------------------------------------------------------------------- */
    /* ИЗМЕНЕННЫЙ БЛОК: Стили для header-content на мобильных */
    header .header-content {
        flex-direction: row; /* Элементы в строку: логотип, заголовок, гамбургер */
        justify-content: space-between; /* Распределяем элементы по краям */
        padding: 0 20px; /* Отступы по бокам */
        align-items: center; /* Выравниваем по центру вертикали */
        flex-wrap: nowrap; /* Важно: чтобы не переносились */
    }

    header .logo-container {
        margin-right: 10px; /* Уменьшим отступ */
        margin-bottom: 0;
    }

    header .logo-container img {
        height: 50px; /* Чуть уменьшим логотип на мобильных */
    }

    header h1 {
        font-size: 1.5em; /* Ещё меньше размер заголовка на мобильных */
        margin-bottom: 0;
        text-align: left; /* Заголовок слева */
        flex-grow: 1; /* Позволяем заголовку занимать доступное место */
    }
    /* ------------------------------------------------------------------- */

    /* НОВЫЙ БЛОК: Показываем кнопку гамбургер-меню на мобильных */
    .menu-toggle {
        display: block; /* Показываем кнопку только на мобильных */
        position: static; /* Возвращаем в обычный поток Flexbox */
        transform: none; /* Убираем трансформации */
        margin-left: 10px; /* Небольшой отступ от заголовка */
        font-size: 2.2em; /* Чуть крупнее для легкого нажатия */
    }

    /* Скрываем навигацию по умолчанию на мобильных (и делаем ее полноэкранной) */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.98); /* Почти белый с легкой прозрачностью */
        z-index: 999; /* Очень высокий z-index, чтобы перекрыть все */
        transform: translateX(100%); /* Сдвигаем меню за пределы экрана справа */
        transition: transform 0.3s ease-out; /* Анимация выезда/заезда */
        padding-top: 80px; /* Отступ сверху, чтобы меню не перекрывало шапку, но было под ней */
        box-shadow: 0 0 20px rgba(0,0,0,0.2);
        overflow-y: auto;
        
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    /* Когда меню активно, оно выезжает на экран */
    .main-nav.active {
        transform: translateX(0);
    }

    /* Скрываем обычную навигацию, когда меню скрыто на мобильных */
    nav ul { /* Этот блок должен быть внутри @media и относиться к .main-nav ul */
        flex-direction: column;
        gap: 15px;
        margin-top: 0;
        width: 80%;
        max-width: 300px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 1.3em;
        padding: 15px 20px;
        background-color: #f0f0f0;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    nav ul li a:hover,
    nav ul li a.active {
        background-color: #84B047;
        color: white;
    }

    /* ИЗМЕНЕННЫЙ БЛОК: Иконки в мобильном меню */
    nav ul li a i {
        margin-right: 15px; /* Увеличим отступ для иконки */
        font-size: 1.2em; /* Чуть крупнее иконки в меню */
        color: inherit; /* Иконка наследует цвет текста (будет белой при active) */
    }
    
    /* Убираем подчеркивание::after на мобильных, так как оно мешает */
    nav ul li a::after {
        display: none; 
    }
    /* ------------------------------------------------------------------- */

    main {
        padding: 20px 15px;
        margin: 20px auto;
        border-radius: 8px;
        min-height: calc(100vh - 200px); /* Добавлено ранее, убедимся, что здесь */
        box-sizing: border-box;
        display: block;
        width: auto;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 25px;
    }

    h2::after {
        width: 60px;
        height: 3px;
    }

    h3 {
        font-size: 1.5em;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    p {
        font-size: 0.95em;
    }

    /* Стили для таблицы (меню и цены) - ОЧЕНЬ ВАЖНО для мобильных */
    table {
        border-radius: 0;
        border: none;
        box-shadow: none;
        background-color: transparent;
    }

    table thead {
        display: none;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        display: block;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        background-color: #ffffff;
    }

    table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: right;
        padding-left: 45%;
        position: relative;
        font-size: 0.9em;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    table td:last-child {
        border-bottom: none;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 40%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        text-align: left;
        color: #555;
    }

    /* Стили для списков цен на мобильных */
    .price-list {
        border: none;
        box-shadow: none;
    }

    .price-list li {
        border: 1px solid #e0e0e0;
        margin-bottom: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        padding: 15px;
    }

    .price-list li:last-child {
        margin-bottom: 0;
    }

    /* Секция приветствия */
    .welcome-section {
        padding: 30px 15px;
    }
    .welcome-section h2 {
        font-size: 2.2em;
    }
    .welcome-section p {
        font-size: 1em;
    }
    .welcome-section img {
        margin-top: 30px;
    }

    /* ИЗМЕНЕННЫЙ БЛОК: features-icons (возможно, ты их удалил из кода, но пусть будут) */
    .features-icons {
        display: flex; /* Убедимся, что это flexbox на мобильных */
        flex-direction: column; /* Элементы в столбец */
        gap: 20px; /* Уменьшим промежуток между иконками на главной */
        align-items: center; /* Центрируем */
    }
    .features-icons .feature-item { /* Если у тебя есть обертка для каждой иконки */
        text-align: center;
        width: 100%; /* Занимает всю ширину */
    }
    .features-icons i {
        font-size: 2.5em;
        margin-bottom: 10px; /* Отступ под иконкой */
    }
    .features-icons p {
        font-size: 0.9em;
    }
    /* ------------------------------------------------------------------- */

    /* Фото автора */
    .author-photo {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    /* Иконки социальных сетей */
    .contact-icons a {
        font-size: 2em !important;
        margin: 0 10px !important;
    }

    /* Опции поддержки */
    .support-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .support-options li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .support-options .option-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .support-options .option-icon i {
        font-size: 2.5em;
    }
    .support-options .option-content h4 {
        font-size: 1.2em;
    }
    .support-options .support-link {
        padding: 8px 15px;
        font-size: 0.9em;
    }

    /* Прогресс-бар */
    .progress-bar-container {
        padding: 20px;
    }
    .progress-fill {
        height: 35px;
        font-size: 1em;
    }
    .goal-text {
        font-size: 0.9em;
    }

    footer {
        padding: 20px;
        font-size: 0.85em;
    }
}
/* --- НОВЫЕ СТИЛИ ДЛЯ ТАБЛИЦЫ МЕНЮ --- */

/* Улучшение внешнего вида заголовков таблицы */
table th {
    background-color: #84B047; /* Более насыщенный цвет для шапки */
    color: #ffffff; /* Белый текст на зеленом фоне */
    font-weight: 700;
    text-transform: uppercase; /* Заголовки заглавными буквами */
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255, 255, 255, 0.2); /* Светлая разделительная линия */
    position: sticky; /* Делает шапку таблицы "липкой" при скролле */
    top: 0; /* Прилипает к верху контейнера (или viewport) */
    z-index: 10; /* Убедимся, что шапка находится поверх содержимого */
}

table th:first-child {
    border-top-left-radius: 10px; /* Закругляем углы шапки таблицы */
}

table th:last-child {
    border-top-right-radius: 10px; /* Закругляем углы шапки таблицы */
    border-right: none;
}

/* Стили для каждой ячейки данных (td) */
table td {
    vertical-align: top; /* Выравнивание содержимого ячеек по верхнему краю */
    line-height: 1.8; /* Увеличиваем межстрочный интервал для лучшей читаемости */
    color: #444; /* Чуть темнее текст */
}

/* Стиль для дня недели и даты */
table td[data-label="День Недели / Дата"] {
    font-weight: 600; /* День недели жирнее */
    color: #735647; /* Цвет заголовка для дня недели */
    background-color: #f8f8f8; /* Легкий фон для столбца дней */
    text-align: center; /* Центрируем текст дня недели */
    padding-top: 25px; /* Немного больше отступ сверху */
    padding-bottom: 25px; /* Немного больше отступ снизу */
}

/* Стиль для самой даты внутри ячейки (05.08.2025) */
.menu-date {
    display: block; /* Отображаем дату на новой строке */
    font-size: 0.85em; /* Меньший размер шрифта для даты */
    font-weight: 400; /* Не такой жирный */
    color: #888; /* Более светлый цвет для даты */
    margin-top: 5px; /* Небольшой отступ сверху от дня недели */
}

/* Улучшение стилей строк таблицы при наведении и чередовании */
table tr:nth-child(even) {
    background-color: #fcfcfc; /* Сохраняем светлый фон для четных строк */
}

table tr:hover {
    background-color: #e6f7e6; /* Легкий зеленый фон при наведении на всю строку */
}

/* Стили для ячеек с "Выходной" */
table td:contains("Выходной") {
    font-style: italic; /* Курсив для "Выходной" */
    color: #999; /* Серый цвет для "Выходной" */
    text-align: center; /* Центрируем текст "Выходной" */
    background-color: #fcfcfc; /* Светлый фон для выходных дней */
}

/* Адаптивность для мобильных устройств (уже есть, но добавляем специфику) */
@media (max-width: 768px) {
    /* Чтобы метки data-label были более выразительными */
    table td::before {
        color: #735647; /* Цвет как у заголовков */
        font-weight: 700; /* Более жирный */
        padding-top: 0; /* Убираем лишний отступ */
        padding-bottom: 0; /* Убираем лишний отступ */
    }

    /* Убираем верхний border-top-left-radius и border-top-right-radius на мобильных
       Так как строка становится блочной */
    table tr {
        border-radius: 8px; /* Добавляем общий border-radius для каждой строки */
    }

    table th:first-child,
    table th:last-child {
        border-radius: 0; /* Убираем радиусы из заголовков, т.к. они скрыты */
    }

    /* Стили для ячеек, содержащих дату, на мобильных */
    table td[data-label="День Недели / Дата"] {
        background-color: #e6f0e6; /* Фон для дня недели на мобильных */
        color: #735647; /* Цвет текста */
        text-align: left; /* Выравнивание слева для дня недели */
        font-size: 1.1em; /* Чуть крупнее */
        padding-left: 15px; /* Стандартный отступ */
        border-bottom: 1px solid #e0e0e0; /* Разделитель */
    }

    table td[data-label="День Недели / Дата"]::before {
        display: none; /* Скрываем data-label для дня недели, т.к. он не нужен */
    }

    .menu-date {
        margin-top: 3px; /* Небольшой отступ сверху */
        font-size: 0.9em; /* Меньший размер шрифта для даты */
        font-weight: 500;
        color: #555; /* Чуть темнее для читаемости */
    }
}
/* --- СТИЛИ ДЛЯ ВЫДЕЛЕНИЯ ТЕКУЩЕГО ДНЯ В МЕНЮ --- */
table tr.today {
    background-color: #d8ead8; /* Светлый зеленый фон */
    border: 2px solid #84B047; /* Более выраженная рамка */
    box-shadow: 0 4px 12px rgba(132, 176, 71, 0.2); /* Легкая тень для выделения */
    transform: scale(1.005); /* Немного увеличиваем строку при наведении */
    transition: all 0.3s ease-in-out; /* Плавный переход */
}

table tr.today td {
    color: #333333; /* Более темный цвет текста для лучшей читаемости */
    font-weight: 500; /* Чуть жирнее текст */
    border-bottom: 1px solid #c7dfc7; /* Светлее разделители внутри выделенной строки */
}

table tr.today td:first-child {
    background-color: #aed581; /* Более темный фон для ячейки "День недели / Дата" текущего дня */
    color: #ffffff; /* Белый текст на темном фоне */
    font-weight: 700;
}

/* На мобильных устройствах */
@media (max-width: 768px) {
    table tr.today {
        border-radius: 8px; /* Сохраняем радиус на мобильных */
        margin-bottom: 20px; /* Немного больше отступа */
    }

    table tr.today td[data-label="День Недели / Дата"] {
        background-color: #aed581; /* Тот же фон для заголовка на мобильных */
        color: #ffffff;
        border-bottom: 1px solid #c7dfc7; /* Разделитель */
    }
}