/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary: #2C5F2D; /* Глубокий зеленый */
    --primary-light: #97BC62; /* Светлая зелень */
    --secondary: #D4AF37; /* Золотой акцент */
    --dark: #2C3E50; /* Темно-синий для текста */
    --light: #F8F9F5; /* Светлый, почти белый с оттенком зелени */
    --white: #FFFFFF;
    --gray: #E8ECF0;
    --shadow: 0 10px 30px rgba(0, 20, 10, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    font-weight: 300;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; margin-bottom: 2rem; position: relative; }
h3 { font-size: 2rem; }

/* Декоративный элемент для заголовков */
h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), transparent);
    margin-top: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 15px 0;
    transition: all 0.3s ease;
    height: 80px;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
}

.logo span {
    color: var(--secondary);
    font-size: 1rem;
    display: block;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}

.nav a:hover:after,
.nav a.active:after {
    width: 100%;
}

/* Герой-секция (для главной) */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(44, 62, 80, 0.3), rgba(44, 95, 45, 0.4)), url('../images/park-bg.jpg') center/cover fixed;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    margin-top: -80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 5rem;
    color: white;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Основной контент */
.main-content {
    padding: 0 0 100px 0;
    min-height: 60vh;
    background: var(--white);
}

.page-title {
    text-align: center;
    margin-bottom: 60px;
}

.page-title h1 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.page-title .subtitle {
    font-size: 1.2rem;
    color: var(--primary-light);
}

/* Карточки (для публикаций) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s;
    border: 1px solid rgba(151, 188, 98, 0.1);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(44, 95, 45, 0.15);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-img:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.card-meta {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.card-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.btn:hover {
    background-color: #d4af37;
    color: #fff;
    border-color: #d4af37;
}

.btn-gold {
    background-color: #d4af37;
    color: #fff;
}

.btn-gold:hover {
    background-color: #b8960c;
    color: #fff;
}

/* Информационные блоки */
.info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.info-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.info-text {
    padding: 30px;
}

/* Класс для реверсивного блока (картинка справа) */
.info-section-reverse {
    direction: ltr;
}

.info-section-reverse .info-image {
    order: 2;
}

.info-section-reverse .info-text {
    order: 1;
}

/* Стили для сетки характеристик */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--light);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.feature-item p {
    color: #666;
    font-size: 1rem;
}

/* Стили для списков */
.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.feature-list li:before {
    content: '🌳';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* Подвал */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer h4:after {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contacts p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9rem;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.burger-menu.active span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Затемнение фона при открытом мобильном меню */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .header {
        height: 70px;
        padding: 10px 0;
    }

    .burger-menu {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex !important;
    }

    .nav.active {
        right: 0;
    }

    .nav a {
        color: var(--dark) !important;
        font-size: 1.2rem !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        display: inline-block !important;
        width: fit-content !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: transparent !important;
        padding: 5px 0 !important;
    }

    .nav a.active {
        color: var(--primary) !important;
    }

    .nav a:after {
        bottom: -2px;
    }

    .header .container {
        padding: 0 20px;
    }

    .logo a {
        font-size: 1.5rem;
    }

    .logo span {
        font-size: 0.8rem;
    }

    .hero {
        margin-top: -70px;
        height: 100vh;
        min-height: 600px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .info-text {
        padding: 0 15px;
    }

    .info-image {
        margin: 0 15px;
        width: calc(100% - 30px);
        height: 250px;
        border-radius: 10px;
    }

    .info-section-reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        padding: 0 15px;
    }

    .feature-item {
        padding: 20px 10px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-item h3 {
        font-size: 1.5rem;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

    .page-title h1 {
        font-size: 2.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-about,
    .footer-links,
    .footer-contacts {
        padding: 0 15px;
    }

    /* Жесткий отступ для контента на мобильных */
    .main-content {
        padding-top: 70px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }

    .card-content {
        padding: 20px;
    }
    
    .nav {
        width: 100%;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}


