* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-green: #2a5934;
    --secondary-green: #4caf50;
    --light-green: #f5f9f5;
    --accent-green: #4a7c42;
    --dark-green: #1e3c1e;
    --text-dark: #333;
    --white: #ffffff;
    --footer-bg: #2c3e50; /* Новый цвет для подвала */
    --footer-accent: #3498db; /* Акцентный цвет для подвала */
    --footer-text: #ffffff; /* Цвет текста в подвале */
    --footer-hover: #bdc3c7; /* Цвет при наведении */
}

body {
    background-color: var(--light-green);
    color: var(--text-dark);
    line-height: 1.6;
}

/* УНИВЕРСАЛЬНОЕ МЕНЮ (одинаковое для всех страниц) */
.navbar {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--primary-green) 100%);
    color: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(30, 60, 30, 0.25);
    border-bottom: 3px solid var(--accent-green);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--white);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.logo-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    padding: 5px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h2 {
    font-size: 1.4rem;
    margin-bottom: 4px;
    font-weight: 700;
    line-height: 1.2;
}

.logo-text p {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.3;
}

/* Меню навигации */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
    padding: 0;
    flex-grow: 1;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 3px solid var(--accent-green);
    font-weight: 600;
}
.nav-menu.show {
    display: flex;
}
.login-btn {
    background: linear-gradient(to right, var(--secondary-green), #3d9440);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(61, 148, 64, 0.3);
    flex-shrink: 0;
}

.login-btn:hover {
    background: linear-gradient(to right, #3d9440, #2e7d32);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 148, 64, 0.4);
}

/* Кнопка мобильного меню */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Основной контент */
.calendar-hero {
    background-size: cover;
    background-position: center;
    color: rgb(3, 167, 85);
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 60px;
}

.calendar-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.calendar-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

.calendar-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.calendar-intro h2 {
    color: #2d5a27;
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.calendar-intro p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}

 /* Карточка месяца */
        .month-item {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border-left: 8px solid #2e7d32;
            transition: transform 0.2s;
        }

        .month-item:hover {
            transform: translateX(5px);
            box-shadow: 0 8px 20px rgba(46, 125, 50, 0.15);
        }

        .month-header {
            padding: 20px 25px;
            background: #f8fff8;
            border-bottom: 2px solid #e8f5e9;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .month-header h3 {
            font-size: 2rem;
            color: #1b5e20;
            min-width: 120px;
        }

        .month-desc {
            color: #546e7a;
            font-style: italic;
        }

        /* События */
        .events {
            padding: 20px 25px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .event-row {
            display: flex;
            align-items: flex-start;
            gap: 20px;
            padding: 15px;
            background: #f5faf5;
            border-radius: 15px;
            transition: all 0.2s;
            cursor: pointer;
        }

        .event-row:hover {
            background: #e8f5e9;
        }

        .event-date {
            background: #2e7d32;
            color: white;
            min-width: 80px;
            height: 80px;
            border-radius: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
        }

        .event-day {
            font-size: 2rem;
            font-weight: bold;
            line-height: 1;
        }

        .event-month {
            font-size: 0.9rem;
            text-transform: uppercase;
            opacity: 0.9;
        }

        .event-info {
            flex: 1;
        }

        .event-info h4 {
            color: #1b5e20;
            font-size: 1.3rem;
            margin-bottom: 5px;
        }

        .event-info p {
            color: #546e7a;
            font-size: 1rem;
        }

        .event-tag {
            display: inline-block;
            background: #e8f5e9;
            color: #2e7d32;
            padding: 4px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 8px;
        }

        /* Футер */
        .footer {
            background: #1b5e20;
            color: white;
            padding: 40px 0 20px;
            margin-top: 60px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-bottom: 30px;
        }

        .footer-section h4 {
            color: #a5d6a7;
            margin-bottom: 15px;
            font-size: 1.2rem;
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .footer-links a:hover {
            opacity: 1;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            color: white;
            font-size: 1.5rem;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .social-links a:hover {
            opacity: 1;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.2);
            opacity: 0.7;
            font-size: 0.9rem;
        }

        /* Модальное окно */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal.show {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-header {
            background: linear-gradient(135deg, #1b5e20, #2e7d32);
            color: white;
            padding: 30px;
            border-radius: 30px 30px 0 0;
        }

        .modal-header h3 {
            font-size: 1.8rem;
            margin-bottom: 10px;
            padding-right: 30px;
        }

        .modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-body {
            padding: 30px;
        }

        .modal-description {
            font-size: 1.1rem;
            color: #2c3e50;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .facts-box {
            background: #f5faf5;
            padding: 20px;
            border-radius: 20px;
        }

        .facts-box h4 {
            color: #1b5e20;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .facts-box ul {
            list-style: none;
        }

        .facts-box li {
            margin-bottom: 12px;
            padding-left: 25px;
            position: relative;
        }

        .facts-box li::before {
            content: "🌿";
            position: absolute;
            left: 0;
        }

        @media (max-width: 768px) {
            .hero h1 { font-size: 2rem; }
            .month-header { flex-direction: column; align-items: flex-start; }
            .month-header h3 { min-width: auto; }
            .event-row { flex-direction: column; align-items: center; text-align: center; }
        }

/* ФУТЕР - НОВЫЙ ЦВЕТ (не зеленый) */
.footer {
    background-color: var(--footer-bg); /* Сине-серый цвет */
    color: var(--footer-text);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    padding: 0 20px;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--footer-accent); /* Голубой акцент */
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--footer-text);
}

.footer-links {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--footer-hover); /* Светло-серый при наведении */
}

.footer-links i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: var(--footer-accent); /* Голубые иконки */
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.contact-info i {
    width: 16px;
    text-align: center;
    color: var(--footer-accent); /* Голубые иконки */
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Более светлая граница */
    font-size: 0.85rem;
    color: #95a5a6; /* Серо-голубой цвет для текста копирайта */
    padding: 20px 20px 0;
}

@media (max-width: 992px) {
    .nav-container {
        flex-direction: row;
        gap: 15px;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        order: 3;
        flex-direction: column;
        margin-top: 15px;
        background: rgba(30, 60, 30, 0.95);
        padding: 15px;
        border-radius: 12px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 8px;
        padding: 12px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .logo-text p {
        display: none;
    }
    
    .calendar-hero h1 {
        font-size: 2.5rem;
    }
    
    .calendar-months {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h2 {
        font-size: 1.2rem;
    }
    
    .login-btn span {
        display: none;
    }
    
    .login-btn {
        padding: 10px 15px;
    }
    
    .calendar-hero {
        padding: 60px 20px;
    }
    
    .calendar-hero h1 {
        font-size: 2rem;
    }
    
    .calendar-intro h2 {
        font-size: 1.8rem;
    }
    
    /* Адаптивность футера */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-links li {
        text-align: center;
    }
    
    .contact-info p {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .logo-text h2 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        display: none;
    }
    
    .month-card {
        margin: 0 10px;
    }
    
    /* Дополнительные адаптивные правки для футера */
    .footer {
        padding: 25px 0 15px;
    }
    
    .footer-content {
        gap: 20px;
        padding: 0 10px;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 15px 10px 0;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 400px) {
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section p {
        font-size: 0.8rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
    }
    
    .contact-info p {
        font-size: 0.8rem;
    }
    
    .copyright {
        font-size: 0.75rem;
    }
}
        /* Социальные иконки в футере */
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: #ecf0f1;
            font-size: 1.2rem;
            transition: var(--transition);
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }

        .social-links a::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: #3498db;
            border-radius: 50%;
            transform: scale(0);
            transition: transform 0.3s;
        }

        .social-links a i {
            position: relative;
            z-index: 1;
        }

        .social-links a:hover {
            color: white;
            transform: translateY(-3px);
        }

        .social-links a:hover::before {
            transform: scale(1);
        }