:root {
    --dark-green: #033311;
    --white: #ffffff;
    --teal-accent: #1e463a;
    --light-green: #f2f7f4;
    --text-dark: #1a2e20;
    --text-muted: #5a7563;
    --serif-font: 'Times New Roman', Times, serif;
    --sans-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --wa-color: #25D366;
    --tg-color: #0088cc;
    --phone-color: #033311;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --max-color: #005bd1;
}

* { box-sizing: border-box; margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: var(--sans-font); background-color: var(--light-green); color: var(--text-dark); display: flex; flex-direction: column; min-height: 100vh; line-height: 1.6; }

/* НОВЫЙ ПЕРВЫЙ ЭКРАН (HERO) С ЛОГОТИПОМ */
.hero { 
    min-height: 100vh;
    background: linear-gradient(180deg, #02240c 0%, var(--dark-green) 100%); 
    color: white; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}

/* Круглый логотип */
.logo-circle {
    width: 320px; height: 320px; background-color: var(--white); border-radius: 50%;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 20px; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5); position: relative; margin-bottom: 50px;
}
.logo-circle::before, .logo-circle::after {
    content: ''; position: absolute; width: 25px; height: 160px;
    border: 2px solid var(--dark-green); border-radius: 50%; top: 80px;
}
.logo-circle::before { left: 18px; border-right: none; border-top: none; border-bottom: none; }
.logo-circle::after { right: 18px; border-left: none; border-top: none; border-bottom: none; }

.logo-title {
    font-family: var(--serif-font); color: var(--text-dark); font-size: 2.2em;
    letter-spacing: 3px; text-transform: uppercase; line-height: 1.2; margin-bottom: 5px; text-align: center;
}
.logo-icon-placeholder {
    width: 80px; height: 45px; border-bottom: 2px solid var(--dark-green); margin: 15px 0; position: relative;
}
.logo-icon-placeholder::before {
    content: ''; position: absolute; width: 40px; height: 40px;
    border: 2px solid var(--dark-green); border-radius: 50%; top: 5px; left: 20px; border-bottom: none;
}
.logo-subtitle { font-family: var(--serif-font); color: var(--teal-accent); font-size: 1.1em; letter-spacing: 2px; text-transform: uppercase; margin-top: 5px; }

/* Навигация под логотипом */
.hero-nav {
    display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; align-items: center;
    background: rgba(255, 255, 255, 0.1); padding: 15px 40px; border-radius: 40px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero-nav a { color: var(--white); text-decoration: none; font-size: 1.1em; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); }
.hero-nav a:hover { color: #a4c9b8; transform: translateY(-2px); }
.hero-phone { background: var(--white); color: var(--dark-green) !important; padding: 10px 25px; border-radius: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.hero-phone:hover { background: var(--teal-accent) !important; color: var(--white) !important; }

/* ОБЩИЕ СЕКЦИИ И КАРТОЧКИ */
section { padding: 90px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-family: var(--serif-font); font-size: 2.8em; color: var(--dark-green); margin-bottom: 50px; text-transform: uppercase; letter-spacing: 1px; }

/* About Section */
.about-section { background: var(--white); border-radius: 40px; margin: -40px 20px 0; position: relative; z-index: 10; box-shadow: 0 10px 40px rgba(0,0,0,0.05); padding: 80px 40px; }
.about-text { font-size: 1.2em; color: var(--text-muted); text-align: center; max-width: 900px; margin: 0 auto 50px; line-height: 1.8; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.feature-card { background: var(--light-green); padding: 40px 30px; border-radius: var(--border-radius); text-align: center; transition: var(--transition); border: 1px solid transparent; }
.feature-card:hover { transform: translateY(-10px); background: var(--white); box-shadow: 0 20px 40px rgba(3, 51, 17, 0.08); border-color: rgba(3, 51, 17, 0.1); }
.feature-icon { font-size: 3em; margin-bottom: 20px; display: block; }
.feature-card h3 { color: var(--dark-green); font-size: 1.4em; margin-bottom: 15px; }
.feature-card p { color: var(--text-muted); font-size: 1em; }

/* Catalog */
.houses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 40px; }
.house-card { background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); display: flex; flex-direction: column; transition: var(--transition); text-decoration: none; border: 1px solid rgba(0,0,0,0.02); }
.house-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.img-wrapper { position: relative; width: 100%; height: 260px; overflow: hidden; background: #dce6e1; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.house-card:hover .img-wrapper img { transform: scale(1.05); }
.price-badge { position: absolute; bottom: 15px; right: 15px; background: rgba(3, 51, 17, 0.9); color: white; padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9em; backdrop-filter: blur(5px); }
.house-info { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.house-info h3 { font-family: var(--serif-font); font-size: 1.6em; color: var(--dark-green); margin-bottom: 15px; }
.house-info p { color: var(--text-muted); margin-bottom: 20px; flex-grow: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #e6f0eb; color: var(--teal-accent); padding: 6px 14px; border-radius: 20px; font-size: 0.85em; font-weight: 600; border: 1px solid rgba(30, 70, 58, 0.1); }

/* ВИДЖЕТЫ (УВЕЛИЧЕННЫЕ ОТСТУПЫ) */
.widgets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 992px) { .widgets-grid { grid-template-columns: 1fr; gap: 60px; } }
.widget-box { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 10px 40px rgba(0,0,0,0.06); padding: 30px; border: 1px solid rgba(3, 51, 17, 0.05); }
.widget-box h3 { color: var(--dark-green); font-size: 1.5em; margin-bottom: 25px; text-align: center; font-family: var(--serif-font); }
.iframe-container { width: 100%; height: 500px; border-radius: 12px; overflow: hidden; }

/* СТРАНИЦА КОНКРЕТНОГО ДОМИКА */
header.house-header { background-color: rgba(3, 51, 17, 0.95); backdrop-filter: blur(10px); padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.logo-mini { color: var(--white); font-family: var(--serif-font); font-size: 1.6em; text-decoration: none; font-weight: bold; letter-spacing: 2px; }

.house-detail-container { max-width: 1100px; margin: 60px auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 380px; gap: 50px; flex-grow: 1; }
.house-desc h1 { font-family: var(--serif-font); font-size: 3em; color: var(--dark-green); margin-bottom: 20px; line-height: 1.2; }
.house-desc p { color: var(--text-dark); font-size: 1.15em; margin-bottom: 15px; }
.features-list { list-style: none; margin-bottom: 20px; }
.features-list li { margin-bottom: 10px; padding-left: 25px; position: relative; }
.features-list li::before { content: '✓'; position: absolute; left: 0; color: var(--teal-accent); font-weight: bold; }

/* ГАЛЕРЕЯ ДОМИКА */
.house-gallery { display: grid; gap: 10px; margin-bottom: 30px; border-radius: 24px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.main-img { width: 100%; height: 400px; object-fit: cover; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb-img { width: 100%; height: 120px; object-fit: cover; cursor: pointer; transition: opacity 0.3s; }
.thumb-img:hover { opacity: 0.8; }

.booking-widget { background: var(--white); padding: 35px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); position: sticky; top: 100px; border: 1px solid rgba(0,0,0,0.03); }
.booking-widget h3 { color: var(--dark-green); margin-bottom: 25px; font-size: 1.6em; text-align: center; font-family: var(--serif-font); }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.95em; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.input-group input { width: 100%; padding: 14px; border: 2px solid #e0ece5; border-radius: 12px; font-family: inherit; font-size: 1em; transition: var(--transition); outline: none; color: var(--text-dark); }
.input-group input:focus { border-color: var(--teal-accent); background: #f8fcf9; }

.btn { display: flex; justify-content: center; align-items: center; width: 100%; padding: 16px; margin-bottom: 12px; border: none; border-radius: 12px; font-size: 1.05em; font-weight: 700; color: white; cursor: pointer; text-decoration: none; transition: var(--transition); gap: 10px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(0,0,0,0.15); }
.btn-wa { background-color: var(--wa-color); }
.btn-tg { background-color: var(--tg-color); }
.btn-max { background-color: var(--max-color); }
.btn-call { background-color: var(--phone-color); }

footer { background-color: var(--dark-green); color: rgba(255,255,255,0.7); padding: 50px 20px; text-align: center; margin-top: auto; }
.footer-logo { font-family: var(--serif-font); font-size: 2em; color: var(--white); margin-bottom: 15px; display: block; text-decoration: none;}

@media (max-width: 992px) {
    .house-detail-container { grid-template-columns: 1fr; }
    .hero { min-height: auto; padding: 100px 20px 60px; }
    .logo-circle { width: 260px; height: 260px; }
    .hero-nav { flex-direction: column; gap: 15px; padding: 25px; width: 100%; max-width: 300px; }
    .thumb-grid { grid-template-columns: repeat(2, 1fr); }
}
/* ------------------------------------ */
/* МОДАЛЬНОЕ ОКНО ДЛЯ ПРИБЛИЖЕНИЯ И ЛИСТАНИЯ */
/* ------------------------------------ */
.image-lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    
    /* ФОН: Сейчас стоит чистый черный. 
       Если нужен белый: background-color: rgba(255, 255, 255, 0.98);
       Если нужен прозрачный черный: background-color: rgba(0, 0, 0, 0.7); */
    background-color: rgb(0, 0, 0); 
    
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.image-lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

/* Кнопка закрытия (крестик) */
.close-lightbox {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    z-index: 10002;
}
.close-lightbox:hover { color: #ccc; }

/* СТРЕЛОЧКИ НАВИГАЦИИ */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-size: 60px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    padding: 0 20px;
    z-index: 10001;
}
.lightbox-arrow:hover { color: #ccc; }

.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

/* Меняем курсор на лупу при наведении на главное фото */
.main-img { cursor: zoom-in; }