/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn--primary {
    background-color: #1B5E20;
    color: white;
}
.btn--primary:hover {
    background-color: #2E7D32;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.btn--secondary {
    background-color: transparent;
    color: #1B5E20;
    border: 2px solid #1B5E20;
}
.btn--secondary:hover {
    background-color: #1B5E20;
    color: white;
}
.btn--block {
    display: block;
    width: 100%;
}
.btn--small {
    padding: 8px 16px;
    font-size: 0.9rem;
}
/* Шапка */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.header__logo {
    display: flex;
    align-items: center;
    font-family: 'Roboto Slab', serif;
    font-weight: 700;
    font-size: 24px;
    color: #1B5E20;
}
.header__logo i {
    margin-right: 10px;
    font-size: 28px;
}
.nav__list {
    display: flex;
    list-style: none;
}
.nav__link {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav__link:hover,
.nav__link.active {
    color: #1B5E20;
}
.header__social {
    display: flex;
    gap: 15px;
}
.social__link {
    color: #1B5E20;
    font-size: 20px;
    transition: color 0.3s ease;
}
.social__link:hover {
    color: #2E7D32;
}
.header__burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.header__burger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}
/* Главная секция */
.hero {
    height: 60vh; /* Уменьшаем высоту */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
    display: flex;
    align-items: center;
    margin-top: 70px;
}
.hero__content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}
.hero__title {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero__subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}
.hero__buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}
/* Футер */
.footer {
    background-color: #1B5E20;
    color: white;
    padding: 40px 0 20px;
}
.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer__logo {
    display: flex;
    align-items: center;
    font-family: 'Roboto Slab', serif;
    font-size: 1.5rem;
    font-weight: 700;
}
.footer__logo i {
    margin-right: 10px;
    font-size: 24px;
}
.footer__info p {
    margin-bottom: 5px;
}
.footer__social a {
    color: white;
    font-size: 24px;
    margin-left: 15px;
    transition: color 0.3s ease;
}
.footer__social a:hover {
    color: #c8e6c9;
}
.footer-bottom {
    border-top: 1px solid #4CAF50;
    padding-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.footer-bottom a {
    color: white;
    text-decoration: none;
    font-size: 1.5em; /* Увеличиваем размер иконки */
}
.footer-bottom a:hover {
    color: #c8e6c9;
}
/* Формы */
.form__group {
    margin-bottom: 20px;
}
.form__group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: #1B5E20;
}
/* Адаптивность */
@media (max-width: 992px) {
    .hero__title {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .header__nav.nav--active {
        display: block;
    }
    .nav__list {
        flex-direction: column;
    }
    .nav__link {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    .header__burger {
        display: flex;
    }
    .hero {
        height: 50vh;
    }
    .hero__title {
        font-size: 1.8rem;
    }
    .hero__subtitle {
        font-size: 1.1rem;
    }
    .hero__buttons {
        flex-direction: column;
        gap: 15px;
    }
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .footer__social a {
        margin: 0 10px;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .hero {
        margin-top: 60px;
    }
    .hero__title {
        font-size: 1.6rem;
    }
    .stat__number {
        font-size: 2rem;
    }
}
/* Анимация появления (fade-in) */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}
/* Центрирование заголовков и текста в hero секции */
.hero__content {
    text-align: center;
}
.hero__title {
    text-align: center;
}
.hero__subtitle {
    text-align: center;
}
/* Статистика */
.stats {
    padding: 60px 0;
    background-color: white;
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.stat__card {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.stat__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.stat__icon {
    font-size: 48px;
    color: #1B5E20;
    margin-bottom: 15px;
}
.stat__number {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1B5E20;
    margin-bottom: 10px;
}
.stat__text {
    font-size: 1.1rem;
    color: #666;
}
/* О СНТ */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.section__title {
    font-family: 'Roboto Slab', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #1B5E20;
    position: relative;
}
.section__title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background-color: #1B5E20;
    margin: 15px auto;
}
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about__text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}
.about__features {
    margin-top: 30px;
}
.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.feature i {
    color: #1B5E20;
    margin-right: 10px;
    font-size: 20px;
    min-width: 24px;
}
.about__image {
    background: linear-gradient(45deg, #4CAF50, #81C784);
    height: 300px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}
.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
/* Главная секция на всю ширину */
.hero {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}
/* Карта СНТ */
.map-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
}
/* Расписание автобуса */
#busSchedule {
    margin-top: 30px;
}
#busSchedule table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
#busSchedule th, #busSchedule td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}
#busSchedule thead tr {
    background-color: #e0e0e0;
}
/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}
.close:hover,
.close:focus {
    color: black;
}
/* Стили для административной панели */
.admin-page {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.admin-page__content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.admin-tabs {
    display: flex;
    background-color: #1B5E20;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.admin-tab {
    flex: 1;
    text-align: center;
    padding: 20px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.admin-tab:hover,
.admin-tab.active {
    background-color: #2E7D32;
}
.admin-tab-content {
    display: none;
    padding: 30px 0;
}
.admin-tab-content.active {
    display: block;
}
.admin-form {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.admin-form h3 {
    color: #1B5E20;
    margin-top: 0;
    margin-bottom: 20px;
}
.admin-list {
    list-style: none;
    padding: 0;
}
.admin-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-list li:last-child {
    border-bottom: none;
}
.admin-list li:hover {
    background-color: #f0f0f0;
}
.admin-actions {
    display: flex;
    gap: 10px;
}
.btn--danger {
    background-color: #f44336;
    color: white;
}
.btn--danger:hover {
    background-color: #d32f2f;
}
.btn--warning {
    background-color: #ff9800;
    color: white;
}
.btn--warning:hover {
    background-color: #f57c00;
}
/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
    }
    .admin-tab {
        width: 100%;
    }
    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
    .btn--small {
        width: 100%;
        text-align: center;
    }
}