/* style.css */

/* :root - это переменные. Если захотите поменять цвет, достаточно изменить его в одном месте. */
:root {
    --bg-color: #fcfaf7; /* Очень светлый, теплый фон */
    --card-bg: #ffffff;
    --text-color: #3d405b; /* Темно-серый, не черный */
    --primary-color: #588157; /* Основной зеленый */
    --secondary-color: #a3b18a; /* Второстепенный, более светлый зеленый */
    --accent-color: #e07a5f; /* Акцентный, теплый оранжевый */
    --border-color: #e8e8e8;
    --shadow-color: rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    line-height: 1.7;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    color: #fff;
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, #588157 0%, #3a5a40 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(88, 129, 87, 0.3);
}

.site-brand {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}
.site-brand__link {
    color: rgba(255,255,255,0.95);
    text-decoration: none;
}
.site-brand__link:hover { color: #fff; text-decoration: none; }

.page-h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 5px;
}

@media (max-width: 780px) {
    .page-h1 { font-size: 1.75rem; }
}

.city-header {
    text-align: center;
    margin-bottom: 30px;
}
.city-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
}
.update-time {
    color: #888;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 25px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.card h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.2rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Стили для табло */
.scoreboard-main {
    text-align: center;
    padding: 20px 0;
}
.activity-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    border: 6px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0,0,0,0.1) inset, 0 5px 15px rgba(0,0,0,0.1);
}
.activity-none { background: linear-gradient(145deg, #95a5a6, #7f8c8d); }
.activity-low { background: linear-gradient(145deg, #e74c3c, #c0392b); }
.activity-medium { background: linear-gradient(145deg, #f39c12, #e67e22); }
.activity-high { background: linear-gradient(145deg, #2ecc71, #27ae60); }
.activity-excellent { background: linear-gradient(145deg, #3498db, #2980b9); }
.scoreboard-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}
.detail-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}
.detail-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}
.detail-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

/* Пояснение */
.explanation ul {
    list-style: none;
    padding-left: 0;
}
.explanation li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 0.95rem;
}
.explanation li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2rem;
}
.explanation li:nth-child(1)::before { content: '🌦️'; }
.explanation li:nth-child(2)::before { content: '🗓️'; }
.explanation li:nth-child(3)::before { content: '🗣️'; }


/* Форма отчета */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 129, 87, 0.1);
}
.activity-scale {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}
.scale-option {
    text-align: center;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.scale-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}
.scale-option.selected {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border-color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}
.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
    width: 100%;
    margin-top: 15px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 122, 95, 0.3);
}

/* Отчеты пользователей */
.recent-reports-container h3 {
    color: var(--primary-color);
}
.report-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    border-left: 5px solid var(--secondary-color);
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.report-user {
    font-weight: 700;
}
.report-date {
    font-size: 0.85rem;
    color: #888;
}
.report-comment {
    margin-top: 8px;
    font-style: italic;
    color: #555;
    padding-left: 10px;
    border-left: 3px solid #eee;
}

/* Уведомления */
.success, .error { padding: 15px; margin-bottom: 20px; border-radius: 8px; font-weight: 500; }
.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.message { text-align: center; color: #888; padding: 20px; background-color: #f8f9fa; border-radius: 12px;}

/* Список городов на главной */
.city-list {
    columns: 4;
    column-gap: 30px;
}
.city-list h3 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    break-before: column; /* Начинаем регион с новой колонки */
}
.city-list ul {
    list-style-type: none;
    padding-left: 0;
}
.city-list li {
    margin-bottom: 8px;
}
.city-list li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
}
.city-list li a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .city-list { columns: 3; }
}
@media (max-width: 768px) {
    .main-content { grid-template-columns: 1fr; }
    .city-list { columns: 2; }
    h1 { font-size: 2.2rem; }
}
@media (max-width: 576px) {
    .activity-scale { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .city-list { columns: 1; }
    .card { padding: 20px; }
}
.scoreboard-details.four-cols {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 576px) {
    .scoreboard-details.four-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}
.scoreboard-details.five-cols {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
    .scoreboard-details.five-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .scoreboard-details.five-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Добавить в конец файла style.css */

/* Стили для заголовка региона на главной */
.region-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Стили для маленького кружка */
.activity-circle.small {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    font-weight: 700;
    border-width: 3px;
    margin: 0; /* Убираем отступы */
}

/* Адаптивность для 5 колонок */
.scoreboard-details.five-cols {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 768px) {
    .scoreboard-details.five-cols {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .scoreboard-details.five-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- СТИЛИ ДЛЯ SEO-БЛОКОВ --- */

.summary-card {
    background: #e8f5e9; /* Светло-зеленый фон для позитива */
    border-left: 5px solid var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.faq-card {
    margin-top: 30px;
}
.faq-container details {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding-bottom: 10px;
}
.faq-container details:last-child {
    border-bottom: none;
}
.faq-container summary {
    font-weight: 600;
    cursor: pointer;
    padding: 10px 0;
    position: relative;
    padding-right: 25px; /* Место для стрелки */
}
.faq-container summary:hover {
    color: var(--primary-color);
}
.faq-container summary::after {
    content: '▼';
    position: absolute;
    right: 5px;
    transition: transform 0.2s;
    font-size: 0.8em;
}
.faq-container details[open] summary::after {
    transform: rotate(180deg);
}
.faq-container p {
    padding: 10px 0 0 10px;
    color: #555;
}

/* --- Стили для страницы региона --- */
.region-link {
    font-size: 1rem;
    margin-top: -15px;
    margin-bottom: 15px;
}
.region-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.region-link a:hover {
    text-decoration: underline;
}

.region-cities-card h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.region-cities-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}
.city-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}
.city-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
    border-color: var(--secondary-color);
}
.city-item-name {
    font-weight: 500;
    font-size: 1.1rem;
}

/* --- Стили для главной страницы (ссылки на регионы) --- */
.region-title a {
    text-decoration: none;
    color: inherit;
}
.region-title a:hover span {
    color: var(--accent-color);
}


.subscribe-block {
    text-align: center;
    margin: 20px 0;
}
.btn-subscribe {
    background: var(--accent-color);
    display: inline-block;
    width: auto;
    padding: 12px 25px;
}
.btn-subscribe .icon {
    margin-right: 8px;
    display: inline-block;
    animation: bell-ring 2s ease-in-out infinite;
}
@keyframes bell-ring {
    0%, 50%, 100% { transform: rotate(0); }
    5%, 15%, 25%, 35%, 45% { transform: rotate(10deg); }
    10%, 20%, 30%, 40% { transform: rotate(-10deg); }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    z-index: 1000;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}
.modal-window {
    background: white;
    padding: 30px 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-window {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}
.modal-window h2 { margin-top: 0; margin-bottom: 15px; }
.modal-window p { margin-bottom: 20px; }
.form-group select { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 1rem; background-color: #fff; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-label input { width: auto; }

/* --- Стили для графиков истории (Улучшенная версия) --- */

#history-charts-container h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 15px;
    margin-top: 10px;
}

.charts-wrapper {
    display: grid;
    /* По умолчанию одна колонка для мобильных устройств */
    grid-template-columns: 1fr; 
    gap: 40px;
}

/* Общие стили для контейнера одного графика */
.charts-wrapper > div {
    position: relative;
    /* Адаптивное соотношение сторон */
    aspect-ratio: 1.8 / 1; 
    /* Ограничение высоты на маленьких экранах */
    max-height: 280px;
}

/* На больших экранах (планшеты и десктопы от 768px) */
@media (min-width: 768px) {
    /* Если графика два, выводим их в две колонки */
    .charts-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .charts-wrapper > div {
        /* На больших экранах можно сделать графики чуть менее высокими */
        aspect-ratio: 2.2 / 1;
        max-height: 350px;
    }
    
    /* 
     * ВАЖНОЕ ИЗМЕНЕНИЕ: Если график только один (есть класс .single-chart-mode),
     * то заставляем его занять всю ширину родительского контейнера.
     * Это правило переопределяет "grid-template-columns: 1fr 1fr" выше.
    */
    .charts-wrapper.single-chart-mode {
        grid-template-columns: 1fr; /* Одна колонка во всю ширину */
    }

    .charts-wrapper.single-chart-mode > div {
        /* 
         * В режиме одного графика делаем его более вытянутым по горизонтали,
         * чтобы он не выглядел слишком высоким на широком экране.
         * Равнозначные отступы слева и справа обеспечиваются padding'ом родителя .card
        */
        aspect-ratio: 2.8 / 1; 
        max-width: 100%; /* Убедимся, что он занимает всю колонку */
    }
}

      
/* --- Стили для блока анализа ТВП (Температурных Шоков) --- */
.tvp-analysis-card {
    background-color: #f0f8ff; /* AliceBlue - холодный оттенок */
    border-left: 5px solid #4682b4; /* SteelBlue */
}

.tvp-analysis-card h2 {
    color: #2e608b;
    border-bottom-color: #a2c4df;
}

.tvp-events-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tvp-event-item {
    background: var(--card-bg);
    border: 1px solid #dbe9f5;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tvp-event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #dbe9f5;
    font-size: 0.95rem;
}

.tvp-event-date strong {
    color: var(--primary-color);
}

.tvp-event-strength {
    background-color: #e7f3fe;
    color: #31708f;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tvp-event-body p {
    margin: 0 0 8px 0;
}

.tvp-event-forecast {
    font-size: 1.1rem;
    font-weight: 500;
}
.tvp-event-forecast strong {
    color: #333;
}

.tvp-event-details {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* ======================================================= */
/* === СТИЛИ ДЛЯ СТРАНИЦЫ ПОЖЕРТВОВАНИЙ (ВЕРСИЯ 2.0) === */
/* ======================================================= */

.header-nav {
    margin-top: 10px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-weight: 600;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    user-select: none;
}
.nav-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}
.nav-link:active {
    transform: translateY(0);
}
.nav-link--primary {
    background: rgba(224, 122, 95, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.nav-link--primary:hover {
    background: rgba(224, 122, 95, 1);
}

/* ======================================================= */
/* === ПРОМО-БЛОК "ТОЧЕЧНЫЙ ПРОГНОЗ" НА ГЛАВНОЙ === */
/* ======================================================= */

.home-feature-callout {
    margin-top: 18px;
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 16px;
    border: 1px solid rgba(224, 122, 95, 0.22);
    background:
        radial-gradient(900px 260px at 20% 0%, rgba(224, 122, 95, 0.14), transparent 60%),
        radial-gradient(700px 260px at 90% 30%, rgba(88, 129, 87, 0.18), transparent 60%),
        #fff;
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 18px;
    align-items: start;
}
.home-feature-callout__kicker {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: #7b3f32;
    background: rgba(224, 122, 95, 0.16);
    border: 1px solid rgba(224, 122, 95, 0.22);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.home-feature-callout__title {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    line-height: 1.25;
}
.home-feature-callout__text {
    margin: 0 0 10px 0;
    color: #4b4f68;
}
.home-feature-callout__list {
    margin: 0;
    padding-left: 18px;
    color: #4b4f68;
}
.home-feature-callout__list li {
    margin: 6px 0;
}
.home-feature-callout__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}
.home-feature-callout__hint {
    font-size: 0.9rem;
    color: #6a6f86;
    text-align: center;
}

/* Кнопка-акцент (используем на главной) */
.btn.btn-primary {
    background: var(--primary-color);
}
.btn.btn-primary:hover {
    background: #4c724b;
}

@media (max-width: 780px) {
    .home-feature-callout {
        grid-template-columns: 1fr;
        padding: 18px;
    }
    .home-feature-callout__cta {
        padding: 12px;
    }
    .nav-link {
        width: 100%;
        max-width: 380px;
    }
}

.donation-page-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: flex-start;
}
.donation-visual-card {
    position: sticky;
    top: 20px;
}
.donation-intro {
    text-align: center;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}

.mushroom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
    margin: 20px 0;
    position: relative; /* Для позиционирования тултипа */
}

.mushroom-visual {
    position: relative; /* Для позиционирования пятен */
    display: inline-block;
    transform-origin: bottom center;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#donation-mushroom {
    width: 250px; /* Сделаем базовый гриб чуть больше */
    height: auto;
    display: block;
}

/* Стили для пятен-донатов */
.donor-spot {
    position: absolute;
    background-color: rgba(88, 129, 87, 0.4); /* Полупрозрачный зеленый */
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0); /* Центрируем и прячем */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: spot-appear 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
    backdrop-filter: blur(2px); /* Эффект "матового стекла" */
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.donor-spot:hover {
    transform: translate(-50%, -50%) scale(1.15); /* Увеличиваем при наведении */
    background-color: rgba(224, 122, 95, 0.6); /* Меняем цвет на акцентный */
}

@keyframes spot-appear {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Стили для всплывающей подсказки (тултипа) */
.donor-tooltip {
    position: absolute;
    display: none;
    background-color: #3d405b;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 10;
    text-align: center;
    pointer-events: none; /* Чтобы тултип не перехватывал события мыши */
    transition: opacity 0.2s;
}
.tooltip-name {
    font-weight: 700;
    font-size: 1.1rem;
}
.tooltip-amount {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Остальные стили для правой колонки */
.progress-info { text-align: center; }
.progress-info p { margin: 10px 0; }
.progress-info strong { font-size: 1.4rem; color: var(--primary-color); }
.goal-text { font-size: 0.9rem; color: #777; }
.progress-bar { width: 100%; height: 20px; background-color: #e9ecef; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; }
.progress-bar .progress { height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%); border-radius: 10px; transition: width 0.8s ease-in-out; }

.donation-actions-column { display: flex; flex-direction: column; gap: 30px; }
.donation-buttons { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.btn-donate { background: var(--primary-color); text-align: center; padding: 12px; }
.btn-donate:hover { background: #3a5a40; box-shadow: 0 5px 15px rgba(88, 129, 87, 0.3); }

.donor-list { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
.donor-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.donor-item:last-child { border-bottom: none; }
.donor-name { font-weight: 500; }
.donor-amount { font-weight: 700; color: var(--accent-color); background-color: #fff8f5; padding: 3px 8px; border-radius: 6px; }

/* Адаптивность */
@media (max-width: 992px) {
    .donation-page-grid { grid-template-columns: 1fr; }
    .donation-visual-card { position: static; top: auto; }
}
@media (max-width: 576px) {
    .donation-buttons { grid-template-columns: 1fr; }
}

/* Стили для блока с сообщениями донатов */
.messages-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}
.message-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.message-item:last-child {
    border-bottom: none;
}
.message-author {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}
.message-text {
    margin: 0;
    font-style: italic;
    color: #555;
    line-height: 1.5;
}

.support-block {
    text-align: center;
    margin: -5px 0 30px;
}

.btn-support {
    background-color: #3498db;
    display: inline-block;
    width: auto;
    padding: 12px 25px;
    margin-top: 0;
    text-decoration: none;
}

.btn-support:hover {
    background-color: #2980b9;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-support .icon {
    margin-right: 8px;
    display: inline-block;
    animation: heart-beat 1.5s ease-in-out infinite;
}

@keyframes heart-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.top-regions-card { margin-bottom: 30px; }
.top-regions-list { display: flex; flex-wrap: wrap; gap: 20px; }
.top-region-item { flex: 1 1 200px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; text-align: center; text-decoration: none; color: #333; }
.top-region-item:hover { background: #f9f9f9; }
.region-name { font-weight: bold; font-size: 1.2em; }
.region-index { display: inline-block; margin: 10px 0; }

.tips-card { margin-bottom: 30px; }
.tips-list { display: grid; gap: 10px; }
.tip-item { padding: 5px; }
.tip-item h3 { margin-bottom: 10px; font-size: 1.1em; }
.btn-more { display: inline-block; margin-top: 20px; }

.recent-reports-home { margin-bottom: 30px; }
.recent-reports-list { display: grid; gap: 15px; }
.report-item { padding: 15px; border: 1px solid #ddd; border-radius: 8px; }
.report-location a { color: #588157; text-decoration: none; }
.report-location a:hover { text-decoration: underline; }

/* --- Стили для блока пользовательских намерений --- */
#intent-block h2 {
    text-align: center;
    border-bottom: none;
    margin-bottom: 5px;
}
.intent-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.intent-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* <<< ИЗМЕНЕНИЕ ЗДЕСЬ */
    gap: 15px;
}
.btn-intent {
    padding: 15px 10px;
    font-size: 1rem;
    background-color: var(--primary-color);
}
.btn-intent.btn-wait {
    background-color: #7f8c8d; /* Серый для кнопки "Жду" */
    grid-column: 1 / -1; /* Растягиваем на всю ширину */
}
.btn-intent:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.intent-thanks-message {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.intent-stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.intent-stats-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
}
.intent-stats-list li:last-child {
    border-bottom: none;
}
.intent-label {
    color: #333;
}
.intent-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-color);
    background-color: #fff8f5;
    padding: 4px 10px;
    border-radius: 8px;
}

/* Адаптивность для блока */
@media (max-width: 576px) {
    .intent-actions {
        grid-template-columns: 1fr;
    }
}
/* --- Стили для блока анализа активности VK --- */
.vk-analysis-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}
.vk-badge {
    font-size: 0.7em;
    font-weight: bold;
    color: #fff;
    background-color: var(--accent-color);
    padding: 2px 7px;
    border-radius: 5px;
    vertical-align: middle;
}
.group-analysis {
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 20px;
}
.activity-index-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    flex-shrink: 0;
    font-weight: bold;
    text-align: center;
}
.activity-index-circle .index-value {
    font-size: 28px;
    line-height: 1;
}
.activity-index-circle .index-label {
    font-size: 10px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Цвета для индекса */
.index-low { background-color: #6c757d; }
.index-normal { background-color: #28a745; }
.index-high { background-color: #ffc107; color: #333; }
.index-spike { background-color: #dc3545; }

.analysis-summary { flex-grow: 1; }
.analysis-summary p { margin: 0; font-size: 15px; }

.analysis-info {
    font-size: 13px;
    color: #6c757d;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    text-align: center;
}
.chart-container {
    height: 300px;
    position: relative;
}
.map-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}
.yandex-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background-color: #e9ecef;
}
/* --- Стили для промо-блока VK на странице региона --- */

/* Плавная прокрутка для всех якорных ссылок на сайте */
html {
    scroll-behavior: smooth;
}

.vk-promo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f0f8ff; /* Светло-голубой, ассоциируется с VK */
    border: 1px solid #dbe9f5;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.vk-promo-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    border-color: #4682b4; /* SteelBlue */
}

.vk-promo-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #0077FF; /* Официальный цвет VK */
    border-radius: 50%;
    background-image: url("/vk-vk-svgrepo-com.svg");    
    background-position: center;
    background-repeat: no-repeat;
    background-size: 24px 24px;
}

.vk-promo-text {
    flex-grow: 1;
}

.vk-promo-text strong {
    display: block;
    font-size: 1.1rem;
    color: #333;
}

.vk-promo-text span {
    font-size: 0.9rem;
    color: #555;
}

.vk-promo-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0077FF;
}

/* --- Стили для фильтра на главной --- */
.filter-card {
    margin-bottom: 30px;
    padding: 25px;
}

.filter-card label {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

#city-filter-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}
#city-filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(88, 129, 87, 0.15);
}
.city-list > div {
    -webkit-break-inside: avoid; /* Для совместимости со старыми браузерами Safari/Chrome */
    page-break-inside: avoid;    /* Для совместимости со старыми браузерами Firefox */
    break-inside: avoid-column;  /* Стандартное свойство */
}

/* ============================================================
   Блок активных грибов в карточке города
   ============================================================ */
.active-mushrooms-card h2 {
    color: var(--primary-color);
}

.mushrooms-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.mushrooms-grid {
    display: grid;
    /* На полной ширине при minmax(260px, 1fr) получается:
       - на десктопе (~1100px) — 4 колонки
       - на планшете (~760px)   — 2 колонки
       - на мобилке            — 1 колонка (перекрывается media-query ниже) */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 15px;
}

.mushroom-item {
    background: linear-gradient(135deg, #f8f6f0 0%, #ffffff 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    border-radius: 10px;
    padding: 14px 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mushroom-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.mushroom-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mushroom-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-color);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: help;
}

.badge-conditional {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-warning {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    font-size: 0.9rem;
    padding: 1px 8px;
}

.mushroom-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background-color: #f4f1ea;
    border: 1px solid #e8e0cf;
    border-radius: 12px;
    font-size: 0.78rem;
    color: #5a5648;
    line-height: 1.4;
    cursor: help;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chip-trees { background-color: #e8efe4; border-color: #cfdcc6; color: #3d5a3a; }
.chip-temp  { background-color: #fdeadf; border-color: #f5c9ae; color: #7a4528; }
.chip-wave  { background-color: #e8e4f0; border-color: #cfc8df; color: #4a3e6b; }

.mushroom-activity {
    margin-top: 10px;
}

.activity-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}

.activity-label strong {
    font-weight: 700;
    color: var(--primary-color);
}

.activity-track {
    position: relative;
    height: 8px;
    background-color: #f0ede4;
    border-radius: 4px;
    overflow: hidden;
}

.activity-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.activity-bar.activity-high {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.activity-bar.activity-mid {
    background: linear-gradient(90deg, #e8d7a7, var(--accent-color));
}

.activity-bar.activity-low {
    background: linear-gradient(90deg, #e8e8e8, #bdb7a4);
}

.mushroom-safety {
    margin-top: 10px;
    padding: 6px 10px;
    background-color: #fff8e1;
    border-left: 3px solid var(--accent-color);
    border-radius: 4px;
    font-size: 0.82rem;
    color: #5d4e37;
    line-height: 1.4;
}

.mushrooms-footer {
    margin-top: 16px;
    text-align: center;
    color: #999;
    font-style: italic;
}

@media (max-width: 600px) {
    .mushrooms-grid {
        grid-template-columns: 1fr;
    }
    .mushroom-item {
        padding: 12px;
    }
}


/* ============================================================
   Рейтинг грибов на сегодня (главная страница)
   ============================================================ */
.top-mushrooms-card h2 {
    color: var(--primary-color);
}

.top-mushrooms-subtitle {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.top-mushrooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.top-mushroom-item {
    position: relative;
}

.mushroom-rank {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    margin-right: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Первая тройка — золото/серебро/бронза */
.top-mushrooms-grid .top-mushroom-item:nth-child(1) .mushroom-rank {
    background: linear-gradient(135deg, #e8b44c, #c48a1e);
}
.top-mushrooms-grid .top-mushroom-item:nth-child(2) .mushroom-rank {
    background: linear-gradient(135deg, #c8c8c8, #9b9b9b);
}
.top-mushrooms-grid .top-mushroom-item:nth-child(3) .mushroom-rank {
    background: linear-gradient(135deg, #cc8b5c, #8f5a30);
}

.chip-coverage {
    background-color: #eaf3f8;
    border-color: #c7dde8;
    color: #2e5a72;
}


/* ============================================================
   Недельный прогноз (спарклайн внутри карточки табло)
   ============================================================ */
.weekly-forecast {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.weekly-forecast-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.weekly-forecast-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.weekly-trend {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
}

.weekly-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    align-items: end;
}

.weekly-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 2px;
    border-radius: 8px;
    cursor: help;
    transition: background-color 0.2s, transform 0.2s;
    position: relative;
}

.weekly-day:hover {
    background-color: #f4f1ea;
    transform: translateY(-2px);
}

.weekly-day.is-today {
    background-color: #eaf3ea;
    border: 1px solid var(--secondary-color);
}

.weekly-day.is-best {
    background-color: #fff8e1;
    border: 1px solid var(--accent-color);
}

.weekly-day.is-today.is-best {
    background: linear-gradient(135deg, #fff8e1 0%, #eaf3ea 100%);
}

.weekly-day-weekday {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.weekly-day-date {
    font-size: 0.72rem;
    color: #888;
}

.weekly-day-bar-track {
    width: 18px;
    height: 80px;
    background-color: #f0ede4;
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 4px 0;
}

.weekly-day-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}

.weekly-day-bar.bar-high { background: linear-gradient(180deg, var(--primary-color), var(--secondary-color)); }
.weekly-day-bar.bar-mid  { background: linear-gradient(180deg, var(--accent-color), #e8d7a7); }
.weekly-day-bar.bar-low  { background: linear-gradient(180deg, #bdb7a4, #e8e8e8); }

.weekly-day-value {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
}

.weekly-day-crown {
    position: absolute;
    top: -8px;
    font-size: 1.1rem;
}

.weekly-summary {
    margin-top: 16px;
    padding: 10px 14px;
    background-color: #fff8e1;
    border-left: 3px solid var(--accent-color);
    border-radius: 6px;
    font-size: 0.92rem;
    color: #5d4e37;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .weekly-days {
        gap: 3px;
    }
    .weekly-day {
        padding: 6px 1px;
    }
    .weekly-day-bar-track {
        width: 14px;
        height: 60px;
    }
    .weekly-day-weekday, .weekly-day-value {
        font-size: 0.7rem;
    }
    .weekly-day-date {
        font-size: 0.65rem;
    }
}
/* --- Стили для кнопки Telegram --- */
.nav-link--tg {
    background: rgba(42, 171, 238, 0.95); /* Фирменный цвет Telegram */
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.nav-link--tg:hover {
    background: rgba(42, 171, 238, 1);
}