/* --- Сброс и Базовые Настройки --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #F5F2EB; /* Мягкий цвет неокрашенного льна и песка */
    color: #242924; /* Мягкий графитовый */
    overflow-x: hidden;
    line-height: 1.7;
}

/* Элегантные заголовки со шрифтом Lora */
h1, h2, h3, h4, .section-title {
    font-family: 'Lora', serif;
    font-weight: 500;
    color: #122315;
}

.text-forest {
    color: #122315;
}

.text-gold {
    color: #D4AF37;
}

/* --- Навигация --- */
.navbar {
    background: linear-gradient(to bottom, rgba(18, 35, 21, 0.9), rgba(18, 35, 21, 0));
    /* Изменили transition, чтобы плавно менялся не только фон, но и отступы */
    transition: all 0.4s ease; 
    padding: 20px 0;
}

/* НОВЫЙ БЛОК: Стиль шапки при прокрутке сайта вниз */
.navbar.scrolled {
    background: rgba(18, 35, 21, 0.98) !important; /* Плотный темный хвойный цвет */
    padding: 10px 0; /* Делаем шапку чуть тоньше, чтобы не занимала много места на экране */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Добавляем легкую тень, чтобы она визуально оторвалась от контента */
}

.navbar-brand {
    padding: 0;
}

.header-logo {
    text-decoration: none;
}

/* Иконка (Дерево или Рыбка) перед названием */
.logo-icon {
    font-size: 1.3rem;
    color: #D4AF37; /* Золотистый акцент */
    transition: transform 0.4s ease;
}
.logo-text {
    font-family: 'Lora', serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 3px; /* Разрядка букв - признак премиального дизайна */
    text-transform: uppercase; /* Все буквы заглавные */
    color: #FAF6F0;
    transition: color 0.3s ease;
}
/* Эффект при наведении мышкой на логотип */
.header-logo:hover .logo-text {
    color: #D4AF37;
}
.header-logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg); /* Иконка слегка "оживает" при наведении */
}
/* При прокрутке сайта (на темном фоне) логотип остается контрастным */
.navbar.scrolled .logo-text {
    color: #FAF6F0;
}


.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #D4AF37 !important;
}

/* --- Главный экран (Hero) --- */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* Устанавливаем атмосферное фото туманного северного озера */
    background: url('../images/hero_bg.jpg') no-repeat center center;
    background-size: cover; /* Фото растягивается на весь экран без искажений */
    background-attachment: fixed; /* Эффект параллакса (фото слегка застывает при скролле) */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Глубокий темный фильтр с легким сине-сланцевым оттенком, чтобы белый текст читался идеально на фоне воды */
    background: linear-gradient(
        to bottom, 
        rgba(15, 23, 30, 0.4) 0%, 
        rgba(10, 15, 20, 0.8) 100%
    ); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #FAF6F0; /* Очень мягкий белый */
    padding: 0 20px;
    max-width: 900px;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #D4AF37;
    font-weight: 500;
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    
    /* ЭФФЕКТ ТУМАННОЙ ПОДЛОЖКИ: плавное рассеивание от центра к краям */
    background: radial-gradient(
        ellipse at center, 
        rgba(10, 15, 20, 0.6) 0%,     /* Плотный темный цвет в самом центре */
        rgba(10, 15, 20, 0.4) 40%,    /* Мягкое рассеивание под буквами */
        rgba(10, 15, 20, 0) 80%       /* Полное растворение в прозрачность по краям */
    );
    
    /* Увеличенные поля, чтобы градиент плавно "угасал" вокруг надписи */
    padding: 12px 60px; 
}

/* Левая декоративная линия (теперь плавно выходит из дымки) */
.hero-subtitle::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(to left, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0));
}

/* Правая декоративная линия */
.hero-subtitle::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0));
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    line-height: 1.25;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: #FAF6F0 !important; /* Яркий и чистый светлый цвет */
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); /* Тень для идеального контраста */
}

.hero-line {
    width: 50px;
    height: 1px;
    background-color: #D4AF37;
    margin: 30px auto;
}

.hero-desc {
    font-family: 'Manrope', sans-serif; /* Поменяли на чистый современный шрифт */
    font-style: normal; /* Убрали курсив */
    font-size: 1.15rem; /* Сделали чуть компактнее и аккуратнее */
    font-weight: 400; /* Легкое, изящное начертание */
    letter-spacing: 2px; /* Элегантный "воздух" между буквами */
    color: #E2E8F0; /* Приглушенный светлый оттенок */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.arrow-down-btn {
    color: rgba(250, 246, 240, 0.8);
    font-size: 1.6rem;
    animation: bounce 2s infinite;
    display: inline-block;
    transition: color 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.arrow-down-btn:hover {
    color: #D4AF37;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- Общие секции --- */
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-soft-dark {
    background-color: #17241A; /* Мягкий лесной темный тон */
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7E8B75;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.text-success-light {
    color: #A3B899 !important;
}

.section-title {
    font-size: 2.3rem;
    line-height: 1.3;
}

.about-text {
    font-size: 1.05rem;
    font-weight: 400;
    color: #3D443E;
}

.rounded-custom {
    border-radius: 16px;
}

.image-wrapper {
    overflow: hidden;
    border-radius: 16px;
}

.image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-wrapper:hover img {
    transform: scale(1.03);
}

.history-card {
    background-color: #EAE5DC; /* Мягкий песочный бэкграунд */
    border-left: 3px solid #122315;
}

.history-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Цены и Размещение --- */
.spacing-list li {
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 400;
    color: #D4DFD3;
}

.bg-dark-forest {
    background-color: #111A13;
}

.border-forest {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.text-muted-light {
    color: #9FB09B;
    font-size: 0.95rem;
}

.badge.bg-gold {
    background-color: #D4AF37 !important;
}

/* --- Вкладки Галереи --- */
.gallery-tabs .nav-link {
    background: none !important;
    color: #7E8B75 !important;
    border: 1px solid #7E8B75;
    border-radius: 30px;
    padding: 8px 24px;
    margin: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.gallery-tabs .nav-link.active {
    background-color: #122315 !important;
    color: #fff !important;
    border-color: #122315 !important;
}

.gallery-tabs .nav-link:hover:not(.active) {
    background-color: rgba(18, 35, 21, 0.05) !important;
    color: #122315 !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(18, 35, 21, 0.7);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease;
}

.gallery-text {
    color: #fff;
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
    text-align: center;
    padding: 0 15px;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-text {
    transform: translateY(0);
}

/* --- Стих (Эпиграф перед контактами) --- */
.poem-container {
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 40px;
    border-radius: 16px;
}

.quote-icon {
    font-size: 2.2rem;
    color: #D4AF37;
    opacity: 0.6;
}

.poem-text {
    font-family: 'Lora', serif;
    font-style: normal; /* Убрали курсив полностью */
    font-size: 1.5rem; /* Крупный, уверенный размер */
    line-height: 1.8; /* Комфортное расстояние между строками */
    letter-spacing: 0.5px;
    color: #FAF6F0;
    font-weight: 400; /* Прямое, красивое "книжное" начертание */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.poem-text p {
    margin-bottom: 2rem;
}

.poem-text p:last-child {
    margin-bottom: 0;
}

/* --- Контакты --- */
.max-w-600 {
    max-width: 600px;
}

.contact-card {
    background: #EFEBE2; /* Под тон льняного фона, но чуть плотнее */
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid #E3DDD2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(18, 35, 21, 0.05) !important;
}

.contact-icon {
    font-size: 2.2rem;
    color: #7E8B75;
}

.contact-card h5 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    color: #122315;
}

.phone-link {
    color: #122315;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.8;
}

.phone-link:hover {
    color: #D4AF37;
}

.btn-outline-forest {
    color: #122315;
    border-color: #122315;
    font-weight: 500;
}

.btn-outline-forest:hover {
    background-color: #122315;
    color: #fff;
}

.text-muted-dark {
    color: #555E56;
}

footer {
    background-color: #EFEBE2;
    border-top: 1px solid #E3DDD2;
}