/* Переменные и сброс */
:root {
    --primary: #2a9d8f;
    --dark: #264653;
    --light: #f4f4f9;
    --accent: #e9c46a;
    --text: #333;
}

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

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
}

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

/* Навигация */
.navbar { background: var(--dark); padding: 1.2rem 0; position: sticky; top: 0; z-index: 1000; }
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; text-decoration: none; color: var(--accent); text-transform: uppercase; }
.nav-links { list-style: none; display: flex; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: white; text-decoration: none; font-weight: 500; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

/* --- ФОТОРЕГИСТР (Ссылки в CSS) --- */

/* Главный баннер */
.hero-bg-main {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                url('img/girl.jpg');
}

/* Проект: Вода */
.img-water {
    background-image: url('img/ocean.jpg');
}

/* Проект: Мангры */
.img-mangrove {
    background-image: url('img/tree.jpg');
}

/* Офис/Контакты */
.office-img {
    height: 250px;
    margin-top: 20px;
    border-radius: 10px;
    background-image: url('img/tablecoffi.jpg');
}

/* Общие стили для блоков с изображениями */
.hero, .project-img, .office-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Стили контента */
.hero { height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 60px 0; }
.card { padding: 40px; background: var(--light); border-radius: 15px; text-align: center; }

.section-title { text-align: center; margin: 60px 0 40px; font-size: 2.5rem; }

.project-item { display: flex; align-items: center; gap: 50px; margin-bottom: 60px; }
.project-img { width: 50%; height: 350px; border-radius: 20px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.project-text { width: 50%; }
.project-item.reverse { flex-direction: row-reverse; }

.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 5px; }

.btn { 
    display: inline-block; background: var(--primary); color: white; padding: 12px 30px; 
    text-decoration: none; border-radius: 25px; transition: 0.3s; border: none; cursor: pointer;
}
.btn:hover { background: #23867a; transform: translateY(-2px); }

footer { background: var(--dark); color: white; text-align: center; padding: 30px 0; }

@media (max-width: 768px) {
    .project-item, .project-item.reverse, .contact-wrapper { flex-direction: column; }
    .project-img, .project-text { width: 100%; }
    .hero-content h1 { font-size: 2.2rem; }
}