:root {
    --primary: #2C4A3E;
    --secondary: #8FA08C;
    --dark: #1A2621;
    --light: #F4F6F4;
    --accent: #D4A373;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
}

header {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('./../img/forest2.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.logo {
    font-size: 2.5rem;
    font-family: 'Sulphur Point', sans-serif;
    /*font-family: 'Courier New', Courier, monospace;*/
    /*text-transform: uppercase;*/
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--secondary);
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    max-width: 800px;
}

header p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    max-width: 600px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: var(--dark);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: background 0.3s;
}

    .btn:hover {
        background-color: #c59262;
    }

section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 50px;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background-color: var(--accent);
        margin: 15px auto 0;
    }

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

    .feature-card .icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
        display: block;
    }

    .feature-card h3 {
        margin-bottom: 15px;
        color: var(--primary);
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    height: 380px;
    overflow: hidden;
    border-radius: 8px;
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

        .gallery-item img:hover {
            transform: scale(1.05);
        }

.cta-section {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

    .cta-section h2 {
        margin-bottom: 20px;
        font-size: 2rem;
    }

    .cta-section p {
        margin-bottom: 30px;
        font-size: 1.2rem;
        opacity: 0.9;
    }

    .cta-section .btn {
        background-color: white;
        color: var(--primary);
    }

        .cta-section .btn:hover {
            background-color: var(--light);
        }

footer {
    background-color: var(--dark);
    color: #7a8a82;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}


/*Model img*/
/* Базовые стили для картинок в галерее */
.zoom-img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    transition: 0.3s;
}

    .zoom-img:hover {
        opacity: 0.7;
    }

/* Модальное окно (задний фон) */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100vw; /* На всю ширину экрана */
    height: 100vh; /* На всю высоту экрана */
    background-color: rgba(0, 0, 0, 0.95);
}

/* Картинка внутри окна — жесткое центрирование */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Сдвигает картинку ровно в центр */

    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

/* Кнопка закрытия */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100000; /* Чтобы крестик всегда был поверх картинки */
}


/* Анимация появления */
@keyframes zoom {
    from {
        transform: scale(0.1)
    }

    to {
        transform: scale(1)
    }
}
