/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
========================================= */
:root {
    --primary-dark: #3b2a1a; /* Коньячный (темный дуб) */
    --accent-gold: #c8a97e;  /* Золотой */
    --bg-cream: #f9f7f2;     /* Кремовый фон сайта */
    --text-dark: #333333;
    --text-light: #ffffff;
}

html {
    scroll-behavior: smooth; /* Плавная прокрутка для якорей */
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-cream);
    line-height: 1.6;
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Общие стили для кнопок (используются в шапке и формах) */
.btn-primary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-gold);
    color: var(--primary-dark) !important;
    border: 1px solid var(--accent-gold);
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-weight: bold;
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold) !important;
}

/* =========================================
   2. ШАПКА САЙТА (БЕЛАЯ И ЭЛЕГАНТНАЯ)
========================================= */
header.container-header {
    background-image: none !important;
    background-color: #ffffff !important; /* Чистый белый фон */
    border-bottom: 1px solid #eaeaea !important; /* Тонкая разделительная линия */
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Легкая тень */
    position: sticky; 
    top: 0;
    z-index: 1000;
    width: 100%;
}

.container-header .mod-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%; /* Чуть уменьшили отступы для компактности */
    width: 100%;
}

/* Логотип (Цвет темного дуба) */
.container-header .mod-custom .logo {
    color: var(--primary-dark) !important; 
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.container-header .mod-custom nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

/* Ссылки меню (Темные) */
.container-header .mod-custom nav a {
    color: var(--primary-dark) !important; 
    text-decoration: none !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.container-header .mod-custom nav a:hover {
    color: var(--accent-gold) !important; /* Золотой при наведении */
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Переключатель языков (Темный) */
.container-header .mod-custom .lang-switcher {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.container-header .mod-custom .lang-switcher a {
    color: var(--primary-dark) !important; 
    text-decoration: none !important;
    margin: 0 0.3rem;
    opacity: 0.7 !important;
    transition: opacity 0.3s ease;
}

.container-header .mod-custom .lang-switcher a:hover {
    opacity: 1 !important;
    color: var(--accent-gold) !important;
}

.container-header .mod-custom .lang-switcher span.active {
    color: var(--accent-gold) !important; /* Активный язык золотой */
    margin: 0 0.3rem;
}

/* =========================================
   3. ПОДВАЛ (ФУТЕР) - ТЕМНЫЙ КОНЬЯЧНЫЙ
========================================= */
footer.container-footer {
    background-color: #3b2a1a !important; /* Темный фон */
    background-image: none !important;
    border-top: 3px solid #c8a97e !important; /* Золотая линия сверху */
    padding: 0 !important;
    margin: 0 !important;
}

.container-footer .mod-custom .footer-content {
    padding: 4rem 5% 2rem !important;
    text-align: left !important; 
    max-width: 1400px !important; 
    margin: 0 auto !important;    
    width: 100% !important;
    box-sizing: border-box !important;
}

.container-footer .mod-custom .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    gap: 2rem !important;
    margin-bottom: 3rem !important;
    width: 100% !important;
}

.container-footer .mod-custom .footer-col h3 {
    color: #c8a97e !important; /* Золотой заголовок */
    font-family: 'Playfair Display', serif !important;
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(200, 169, 126, 0.3) !important; 
    padding-bottom: 0.5rem !important;
    display: block !important;
}

.container-footer .mod-custom .footer-col p {
    color: #e0e0e0 !important; /* Светло-серый текст */
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.8rem !important;
}

.container-footer .mod-custom .footer-menu ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.container-footer .mod-custom .footer-menu ul li {
    margin-bottom: 0.8rem !important;
}

.container-footer .mod-custom .footer-col a {
    color: #c8a97e !important; /* Золотые ссылки */
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.container-footer .mod-custom .footer-col a:hover {
    color: #ffffff !important; /* Белый при наведении */
}

.container-footer .mod-custom .map-container iframe {
    width: 100% !important;
    height: 200px !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

.container-footer .mod-custom .footer-bottom {
    text-align: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
    padding-top: 2rem !important;
}

.container-footer .mod-custom .footer-bottom p {
    font-size: 0.9rem !important;
    color: #888888 !important;
    margin: 0 !important;
}

/* =========================================
   4. МОДАЛЬНЫЕ ОКНА
========================================= */
.modal { 
    z-index: 99999 !important; 
    display: none; /* Управление через JS */
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content { 
    background-color: #f9f7f2 !important; /* Кремовый фон окон */
    padding: 3rem;
    border-radius: 4px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-content h2 {
    color: var(--primary-dark) !important;
    margin-bottom: 1.5rem;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover { color: var(--primary-dark); }

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.price-table th, .price-table td {
    padding: 1rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
    color: #555;
}

.price-table th {
    background-color: var(--primary-dark);
    color: var(--accent-gold);
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.booking-form input {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
}

/* =========================================
   5. МОБИЛЬНАЯ АДАПТИВНОСТЬ
========================================= */
/* Планшеты (горизонтально) */
@media (max-width: 1024px) {
    .container-footer .mod-custom .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
    }
}

/* Большие телефоны (Верстка шапки друг под друга) */
@media (max-width: 768px) {
    .container-header .mod-custom {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    .container-header .mod-custom nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Маленькие телефоны (Колонки футера в один ряд) */
@media (max-width: 600px) {
    .container-footer .mod-custom .footer-grid {
        grid-template-columns: 1fr !important; 
    }
}
/* =========================================
   ГЛАВНЫЙ КОНТЕНТ: ОБЛОЖКА (HERO)
========================================= */
.hero-section {
    height: 85vh;
    min-height: 600px;
    background: linear-gradient(rgba(59, 42, 26, 0.4), rgba(59, 42, 26, 0.6)), 
                url('images/foto12.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 5%;
    
    /* Хак, чтобы обложка растянулась на весь экран в Joomla */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

.hero-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* =========================================
   ГЛАВНЫЙ КОНТЕНТ: О ДОМЕ И ГАЛЕРЕЯ
========================================= */
.about-section {
    display: flex;
    padding: 6rem 5%;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text { flex: 1; }

.subtitle {
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
}

.about-section h2 {
    font-size: 2.8rem;
    color: var(--primary-dark) !important;
    margin: 1rem 0 1.5rem;
    font-family: 'Playfair Display', serif;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.6;
}

.about-images {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.about-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-images img:hover { transform: scale(1.03); }

/* =========================================
   ГЛАВНЫЙ КОНТЕНТ: ВПЕЧАТЛЕНИЯ
========================================= */
.features-section {
    display: flex;
    justify-content: space-between;
    padding: 5rem 5%;
    background-color: #ffffff;
    text-align: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    flex: 1;
    padding: 2rem;
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--primary-dark) !important;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-family: 'Playfair Display', serif;
}

.feature-item p {
    color: #666666;
    line-height: 1.6;
}

/* =========================================
   ГЛАВНЫЙ КОНТЕНТ: ИСТОРИЯ
========================================= */
.history-section {
    padding: 6rem 5%;
    background-color: #eeebe3; /* Светло-бежевый фон */
    text-align: center;
    
    /* Хак для растягивания на весь экран */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
}

.history-content {
    max-width: 800px;
    margin: 0 auto;
}

.history-section h2 {
    font-size: 2.8rem;
    color: var(--primary-dark) !important;
    margin: 1rem 0 1.5rem;
    font-family: 'Playfair Display', serif;
}

.history-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555555;
    line-height: 1.6;
    text-align: left;
    text-indent: 1.5rem;
}

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛА САЙТА
========================================= */
@media (max-width: 900px) {
    .about-section {
        flex-direction: column;
    }
    .about-images img {
        height: 200px;
    }
    .features-section {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .about-images {
        grid-template-columns: 1fr; 
    }
    .about-images img {
        height: 250px;
    }
}
/* =========================================
   ГЛАВНЫЙ ЭКРАН (HERO) С ФОНОМ
========================================= */
.hero-section {
    /* Высота секции */
    height: 85vh;
    min-height: 600px;

    /* ФОНОВОЕ ИЗОБРАЖЕНИЕ */
    /* Мы добавляем градиент (затемнение), чтобы белый текст был виден на фоне фото */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), 
                url('/images/foto7.jpeg') center center / cover no-repeat !important;

    /* Центрирование контента внутри */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;

    /* Хак для растягивания на всю ширину в Cassiopeia */
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    
    /* Убираем возможный отступ сверху от Joomla */
    margin-top: 0 !important; 
    position: relative;
}

.hero-content {
    max-width: 750px;
    padding: 0 20px;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3); /* Тень для букв */
}

.hero-section p {
    font-size: 1.4rem;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    opacity: 1 !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}
/* Общие настройки секции */
.about-section {
    padding: 100px 5%;
    background-color: #fdfcf9; /* Очень светлый бежевый */
}

.about-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
    align-items: center;
}

/* Стилизация текста */
.about-text-content {
    flex: 1;
}

.subtitle-elegant {
    display: block;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #c8a97e;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.title-premium {
    font-family: 'Playfair Display', serif;
    font-size: 4rem !important; /* Большой и красивый */
    line-height: 1.1;
    color: #3b2a1a;
    margin-bottom: 35px !important;
}

.description-premium p {
    font-size: 1.25rem !important;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
}

.amenities-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.amenities-list li {
    font-size: 1.1rem;
    color: #3b2a1a;
    font-weight: 400;
}

.amenities-list li span {
    color: #c8a97e;
    margin-right: 10px;
}

/* Стилизация сетки фото */
.about-gallery-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Эффект "Посмотреть все" на последнем фото */
.overlay-more {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(59, 42, 26, 0.6);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.overlay-more span {
    color: #fff;
    font-family: 'Lato', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    border: 1px solid #fff;
    padding: 10px 20px;
}

.gallery-item:hover .overlay-more {
    background: rgba(59, 42, 26, 0.4);
}

/* Адаптивность */
@media (max-width: 1100px) {
    .about-container { flex-direction: column; gap: 50px; }
    .title-premium { font-size: 3rem !important; }
}
.features-text-only {
    padding: 100px 5%;
    background-color: #fdfcf9;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.features-grid-simple {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px; /* Больше пространства между текстом */
}

.feature-item-simple {
    text-align: left; /* Выравнивание по левому краю выглядит более премиально для чистого текста */
    position: relative;
    padding-top: 30px;
    border-top: 1px solid #eaeaea; /* Тонкая линия разделения */
    transition: border-color 0.4s ease;
}

.feature-item-simple:hover {
    border-top-color: #c8a97e; /* Линия становится золотой при наведении */
}

.feature-number {
    display: block;
    font-family: 'Lato', sans-serif;
    color: #c8a97e;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.feature-item-simple h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem !important;
    color: #3b2a1a;
    margin-bottom: 20px !important;
    font-weight: 700;
}

.feature-item-simple p {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem !important;
    color: #666;
    line-height: 1.8;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .features-grid-simple {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
.features-text-only {
    padding: 120px 5%;
    /* Используем чуть более глубокий бежевый цвет для контраста */
    background-color: #f4f1ea !important; 
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    /* Добавляем легкую разделительную линию сверху и снизу */
    border-top: 1px solid #e0ddd5;
    border-bottom: 1px solid #e0ddd5;
    position: relative;
}

/* Декоративный элемент: легкое свечение в центре, чтобы блок не был плоским */
.features-text-only::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

.features-grid-simple {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    position: relative;
    z-index: 2;
}

.feature-item-simple {
    text-align: left;
    position: relative;
    padding-top: 40px;
    /* Линия теперь темнее, чтобы её было видно на бежевом фоне */
    border-top: 1px solid #d1cdbc; 
    transition: all 0.5s ease;
}

.feature-item-simple:hover {
    border-top-color: #c8a97e;
    transform: translateY(-5px); /* Легкое всплытие при наведении */
}

.feature-number {
    display: block;
    font-family: 'Lato', sans-serif;
    color: #c8a97e;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.feature-item-simple h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem !important; /* Сделали чуть крупнее */
    color: #3b2a1a;
    margin-bottom: 25px !important;
    font-weight: 700;
}

.feature-item-simple p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem !important;
    color: #5a5752; /* Цвет текста чуть мягче черного */
    line-height: 1.8;
    margin: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .features-grid-simple {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .features-text-only {
        padding: 80px 10%;
    }
}
.history-premium-section {
    padding: 120px 5%;
    background-color: #ffffff; /* Возвращаемся к чистому фону после бежевого блока */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.history-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.history-text { flex: 1.2; }
.history-visual { flex: 1; }

/* Буквица (Drop Cap) */
.dropcap::first-letter {
    font-family: 'Playfair Display', serif;
    float: left;
    font-size: 5rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 12px;
    color: #c8a97e;
}

.history-description p {
    font-size: 1.15rem !important;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 25px;
    text-align: justify;
}

/* Оформление фотографии */
.history-image-wrapper {
    position: relative;
    padding: 15px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0,0,0,0.08);
    transform: rotate(2deg); /* Легкий наклон как у старого фото */
    transition: transform 0.5s ease;
}

.history-image-wrapper:hover {
    transform: rotate(0deg);
}

.history-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%); /* Легкий эффект старины */
}

.image-caption {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-top: 15px;
    text-align: right;
}

/* Адаптивность */
@media (max-width: 992px) {
    .history-container { flex-direction: column-reverse; gap: 50px; }
    .history-image-wrapper { transform: rotate(0deg); }
    .title-premium { font-size: 2.8rem !important; }
}
/* =========================================
   ИСПРАВЛЕННЫЙ БЛОК ПАРАМЕТРОВ ПОМЕСТЬЯ
========================================= */
.estate-details-section {
    padding: 80px 5% !important;
    background-color: #fdfcf9 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    box-sizing: border-box !important;
    overflow: hidden;
}

.estate-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important; /* Позволяет блокам переноситься на мобильных */
    gap: 40px !important;
    align-items: flex-start !important;
}

/* Левая часть с текстом */
.estate-info {
    flex: 1 1 600px !important; /* Базовая ширина 600px */
    min-width: 300px;
}

/* Сетка параметров */
.estate-specs-premium {
    display: flex !important;
    flex-direction: row !important;
    gap: 40px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

.spec-group {
    flex: 1 !important;
    min-width: 250px !important;
}

/* Исправляем строчки параметров */
.spec-item {
    display: flex !important;
    justify-content: flex-start !important; /* Прижимаем всё влево */
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee !important;
    gap: 15px !important; /* Фиксированный отступ между названием и описанием */
}

.spec-item span {
    font-family: 'Lato', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    color: #3b2a1a !important;
    text-transform: uppercase !important;
    min-width: 100px !important; /* Название спальни всегда одной ширины */
    flex-shrink: 0 !important;
}

.spec-item p {
    font-family: 'Lato', sans-serif !important;
    font-size: 0.95rem !important;
    color: #777 !important;
    margin: 0 !important;
    text-align: left !important; /* Выравнивание по левому краю для аккуратности */
}

/* Правая часть с фото */
.estate-visuals {
    flex: 1 1 400px !important;
    position: relative !important;
    min-height: 500px !important;
}

.visual-stack {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

.visual-stack img {
    position: absolute !important;
    width: 280px !important; /* Фиксированный размер, чтобы не "ломали" верстку */
    height: 200px !important;
    object-fit: cover !important;
    border: 6px solid #fff !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    border-radius: 2px !important;
}

.img-top { top: 0; right: 20px; z-index: 3; transform: rotate(-2deg); }
.img-mid { top: 130px; left: 20px; z-index: 2; transform: rotate(3deg); }
.img-bot { top: 260px; right: 40px; z-index: 1; transform: rotate(-1deg); }

/* Адаптивность для телефонов */
@media (max-width: 768px) {
    .estate-specs-premium {
        flex-direction: column !important;
    }
    .estate-visuals {
        min-height: 400px !important;
        margin-top: 40px !important;
    }
    .visual-stack img {
        width: 220px !important;
        height: 160px !important;
    }
}
.reviews-section {
    padding: 100px 5%;
    background-color: #fdfcf9;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
}

.reviews-container {
    max-width: 1300px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 60px;
}

.booking-score-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.b-logo {
    font-weight: 900;
    color: #003580;
    font-size: 1.5rem;
    letter-spacing: -1px;
}

.b-score {
    font-size: 1.1rem;
    color: #3b2a1a;
}

.b-score span {
    background: #003580;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    margin-right: 5px;
    font-weight: bold;
}

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

.review-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 3px solid #c8a97e; /* Золотой акцент сверху */
    display: flex;
    flex-direction: column;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.guest-info strong {
    display: block;
    font-size: 1.1rem;
    color: #3b2a1a;
}

.guest-info span {
    font-size: 0.85rem;
    color: #888;
}

.rating-circle {
    background: #f4f1ea;
    color: #3b2a1a;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid #c8a97e;
}

.review-text {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    line-height: 1.7;
    color: #555;
    margin: 0;
    font-size: 1rem;
}

.reviews-cta {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .reviews-grid { grid-template-columns: 1fr; }
}
/* Базовые настройки шапки */
.main-header {
    width: 100%;
    background: #ffffff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Распределяет: Лево - Центр - Право */
    align-items: center;
    padding: 0 5%;
}

/* Логотип */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b2a1a;
    flex: 0 0 auto;
}

/* Меню по центру */
.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.main-nav a {
    text-decoration: none;
    color: #3b2a1a;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: color 0.3s;
}

.main-nav a:hover { color: #c8a97e; }

/* Правый блок управления */
.header-controls {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 0 0 auto;
}

/* Стили выпадающего списка (исправлено) */
.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    color: #3b2a1a;
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    list-style: none;
    padding: 10px 0;
    margin: 15px 0 0 0;
    border: 1px solid #eee;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 4px;
    width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list li a {
    display: block;
    padding: 8px 20px;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
}

.lang-list li a:hover, .lang-list li a.active {
    background: #fdfcf9;
    color: #c8a97e;
}
/* =========================================
   БЛОК ОТЗЫВОВ: 4 В РЯД + СЛАЙДЕР
========================================= */

/* 1. Общая секция */
.reviews-section {
    padding: 100px 0 !important;
    background-color: #fdfcf9 !important;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    overflow: hidden; /* Важно: скрывает лишние слайды */
}

/* 2. Контейнер-ограничитель для центровки контента */
.reviews-container {
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

/* 3. Оболочка слайдера с местом под стрелки по бокам */
.reviews-slider-wrapper {
    position: relative;
    padding: 0 70px; /* Коридор для кнопок */
    margin-top: 40px;
}

/* 4. Сам Swiper контейнер */
.reviewsSwiper {
    width: 100% !important;
    overflow: hidden !important; /* Обрезает 5-й и 6-й слайды */
    position: relative;
    padding-bottom: 60px !important; /* Место для точек внизу */
}

/* 5. Ряд слайдов */
.reviewsSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* Одинаковая высота карточек */
}

/* 6. Слайд (одна четвертая часть ряда) */
.reviewsSwiper .swiper-slide {
    height: auto !important;
    display: flex !important;
    flex-shrink: 0 !important;
    box-sizing: border-box;
    /* Swiper сам задаст ширину 25%, но мы добавим внутренние отступы */
    padding: 0 12px; 
}

/* 7. Карточка отзыва (визуал) */
.review-card {
    background: #ffffff !important;
    padding: 35px 25px !important;
    border-radius: 4px !important;
    border-top: 3px solid #c8a97e !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    width: 100% !important;
    min-height: 380px; 
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    box-sizing: border-box;
}

.review-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.guest-info strong {
    display: block;
    color: #3b2a1a;
    font-size: 1.1rem;
}

.guest-info span {
    font-size: 0.8rem;
    color: #999;
}

.rating-circle {
    width: 40px;
    height: 40px;
    border: 1px solid #c8a97e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: #3b2a1a;
    flex-shrink: 0;
}

.review-text {
    font-family: 'Lato', sans-serif !important;
    font-style: italic !important;
    line-height: 1.6 !important;
    color: #555 !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

/* 8. ВНЕШНИЕ СТРЕЛКИ НАВИГАЦИИ */
.custom-prev, .custom-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-100%) !important; /* Центровка по карточкам */
    width: 48px !important;
    height: 48px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    color: #c8a97e !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.custom-prev:hover, .custom-next:hover {
    background: #c8a97e !important;
    color: #fff !important;
}

.custom-prev { left: 5px !important; }
.custom-next { right: 5px !important; }

/* Рисуем стрелки через контент */
.custom-prev::after, .custom-next::after {
    font-family: swiper-icons;
    font-size: 20px;
    font-weight: bold;
}
.custom-prev::after { content: 'prev'; }
.custom-next::after { content: 'next'; }

/* 9. Точки пагинации */
.reviewsSwiper .swiper-pagination {
    bottom: 10px !important;
}

.reviewsSwiper .swiper-pagination-bullet-active {
    background: #c8a97e !important;
}

/* 10. Адаптивность */
@media (max-width: 1200px) {
    .reviews-slider-wrapper { padding: 0 50px; }
}

@media (max-width: 768px) {
    .reviews-slider-wrapper { padding: 0 10px; }
    .custom-prev, .custom-next { display: none !important; } /* На мобайле листаем пальцем */
    .review-card { min-height: auto; }
}
/* Контейнер слайдера */
.reviewsSwiper {
    width: 100% !important;
    overflow: hidden !important; 
    position: relative;
}

/* Принудительно выстраиваем слайды в ряд */
.reviewsSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Запрещаем перенос на новую строку */
}

/* Жёстко задаем ширину слайда для 4-х колонок */
.reviewsSwiper .swiper-slide {
    /* 100% / 4 = 25%. Вычитаем отступы. */
    width: 25% !important; 
    flex: 0 0 25% !important; 
    box-sizing: border-box;
    padding: 0 10px; /* Зазор между карточками */
}

/* Сама карточка */
.review-card {
    background: #ffffff !important;
    padding: 25px !important;
    border-radius: 4px !important;
    border-top: 3px solid #c8a97e !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    min-height: 350px;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Позиционирование стрелок, чтобы не перекрывали текст */
.custom-prev, .custom-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 100 !important;
}

.custom-prev { left: -10px !important; }
.custom-next { right: -10px !important; }

/* Адаптивность: меняем количество колонок на лету */
@media (max-width: 1100px) {
    .reviewsSwiper .swiper-slide {
        width: 33.33% !important;
        flex: 0 0 33.33% !important;
    }
}

@media (max-width: 768px) {
    .reviewsSwiper .swiper-slide {
        width: 50% !important;
        flex: 0 0 50% !important;
    }
    .hero-section p {
    font-size: 1.2rem;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    opacity: 1 !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}
.hero-section h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    font-family: 'Playfair Display', serif;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}
}

@media (max-width: 480px) {
    .reviewsSwiper .swiper-slide {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}
body{
    overflow-x: hidden;
}
.gallery-hidden {
    display: none !important;
}

.about-gallery-grid .gallery-item {
    display: block;
    cursor: pointer;
}

.about-gallery-grid .gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-header {
    position: relative;
    z-index: 1000;

}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
}

.logo {
    position: relative;
    z-index: 1002;
    text-decoration: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    text-decoration: none;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.lang-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 14px 35px rgba(0,0,0,0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 0.25s ease;
}

.lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list li a {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: #333;
}

.lang-list li a:hover {
    background: #f5f5f5;
}

.burger-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1002;
}

.burger-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    margin: 5px auto;
    transition: 0.3s ease;
}

@media (max-width: 991px) {
    .header-wrapper {
        min-height: 72px;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 12px;
    }

    .logo {
        font-size: 28px;
        line-height: 1.1;
        max-width: 100%;
    }

    .header-controls {
        gap: 10px;
    }

    .header-controls .btn-primary {
        display: none;
    }

    .burger-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #f6f3ec;
        border-top: 1px solid rgba(0,0,0,0.08);
        box-shadow: 0 14px 30px rgba(0,0,0,0.08);
        padding: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: 0.3s ease;
        z-index: 1001;
    }

    .main-header.menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-nav ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 0;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        color: #222;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .main-nav li:last-child a {
        border-bottom: 0;
    }

    .lang-dropdown {
        position: relative;
        z-index: 1003;
    }

    .lang-current {
        min-height: 40px;
        padding: 0 8px;
        font-size: 14px;
    }

    .lang-list {
        right: 0;
        top: calc(100% + 8px);
        min-width: 160px;
    }

    .main-header.menu-open .burger-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .main-header.menu-open .burger-toggle span:nth-child(2) {
        opacity: 0;
    }

    .main-header.menu-open .burger-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 640px) {
    .header-wrapper {
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 8px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .logo {
        font-size: 18px;
        line-height: 1.15;
        max-width: 180px;
        white-space: normal;
    }

    .lang-current {
        font-size: 13px;
        gap: 4px;
        padding: 0 6px;
    }

    .burger-toggle {
        width: 42px;
        height: 42px;
    }

    .main-nav a {
        padding: 13px 16px;
        font-size: 15px;
    }

    .lang-list {
        min-width: 145px;
    }
}
.container-header nav{
    margin-top: 0px !important;
}