/* --- Основные переменные и настройки --- */
:root {
    --brand-blue: #0b3954; 
    --brand-gold: #c19b76; 
    --text-main: #333;
    --bg-light: #f7f9fa;
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body { 
    color: var(--text-main); 
    line-height: 1.6; 
}

h1, h2, h3, .logo-title {
    font-family: 'Playfair Display', serif;
    color: var(--brand-blue);
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
}

a { 
    text-decoration: none; 
}

.text-center { text-align: center; }
.bg-white { background: #fff; }

/* --- Верхняя панель (Top Bar) --- */
.top-bar { 
    background: #222; 
    color: #ccc; 
    font-size: 0.85rem; 
    padding: 10px 0; 
}

.top-bar-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.languages a { 
    color: #ccc; 
    margin: 0 5px; 
}

.languages a.active { 
    color: var(--brand-gold); 
    font-weight: bold; 
}

.btn-small { 
    background: var(--brand-gold); 
    color: #fff; 
    padding: 6px 15px; 
    border-radius: 3px; 
    font-weight: bold; 
    transition: 0.3s;
}

.btn-small:hover {
    background: #a98561;
}

/* --- Шапка (Header) --- */
.main-header { 
    background: #fff; 
    padding: 25px 0; 
    border-bottom: 1px solid #eee; 
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-title { 
    font-size: 2.2rem; 
    line-height: 1; 
}

.logo-subtitle { 
    font-size: 0.75rem; 
    letter-spacing: 2px; 
    color: #777; 
    display: block;
}

.main-nav ul { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
}

.main-nav a { 
    color: var(--brand-blue); 
    font-weight: 600; 
    text-transform: uppercase; 
    font-size: 0.9rem; 
    transition: 0.3s;
}

.main-nav a:hover {
    color: var(--brand-gold);
}

/* --- Главный экран (Hero) --- */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(11, 57, 84, 0.5), rgba(11, 57, 84, 0.5)), 
                url('IMG_4372.jpg') center/cover no-repeat;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff;
}

.hero-text h1 { 
    color: #fff; 
    font-size: 3rem; 
    margin-bottom: 15px; 
}

.hero-text p {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* --- Блок описания (Intro) --- */
.intro {
    text-align: center;
    padding: 80px 20px;
    max-width: 800px;
}

.intro h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* --- Блок жилья (Showcase) --- */
.bg-light { 
    background: var(--bg-light); 
    padding: 80px 0; 
}

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

.single-room-showcase {
    background: #fff;
    display: flex;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Слайдер */
.slider-container {
    position: relative;
    flex: 1;
    min-height: 450px;
    background: #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(11, 57, 84, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    transition: 0.3s;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-btn:hover { background: var(--brand-gold); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* Текстовая часть карточки */
.room-details { flex: 1; padding: 40px; }
.room-details h3 { font-size: 2rem; margin-bottom: 20px; }

/* ИСПРАВЛЕННЫЕ ТЕГИ */
.room-features { 
    margin-bottom: 20px; 
    display: flex; 
    flex-wrap: wrap; /* Позволяет тегам переноситься на новую строку */
    gap: 10px; 
}
.room-features span {
    background: #f0f4f7; 
    padding: 5px 15px; 
    border-radius: 20px;
    font-size: 0.85rem; 
    color: var(--brand-blue); 
    font-weight: 600;
    white-space: nowrap; /* Текст внутри тега не будет разрываться */
}

.pricing-box {
    margin: 30px 0; padding: 20px; background: var(--bg-light); border-left: 5px solid var(--brand-gold);
}
.price-item .value { font-size: 1.8rem; font-weight: bold; color: var(--brand-blue); display: block; }

/* --- Форма Бронирования --- */
.calculator-box {
    max-width: 450px; 
    margin: 30px auto 0; 
    padding: 30px; 
    background: #fff;
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0, 27, 76, 0.08); 
    border-top: 4px solid var(--brand-gold); 
    text-align: left;
}

/* --- ИНТЕРАКТИВНАЯ КАРТА ДОМИКОВ --- */
.cabin-map-container {
    margin-bottom: 30px;
    text-align: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}

.lake-header {
    background: var(--brand-blue);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.cabin-map {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cabin-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cabin-item {
    background: #fff;
    border: 2px solid var(--brand-blue);
    color: var(--brand-blue);
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    min-width: 100px;
}

.cabin-item.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
    transform: scale(1.05);
}

.cabin-item.disabled {
    opacity: 0.5;
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #64748b;
    pointer-events: none;
    cursor: not-allowed;
}

.cabin-path {
    width: 40px;
    background: repeating-linear-gradient(0deg, #e0e0e0, #e0e0e0 10px, transparent 10px, transparent 20px);
}

#selected-cabin-text {
    margin-top: 15px;
    font-weight: bold;
    color: var(--brand-gold);
}

/* Элементы формы */
.calc-group { margin-bottom: 20px; }
.calc-row { display: flex; justify-content: space-between; }
.calc-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--brand-blue); font-size: 0.95rem; }
.calc-group input, .calc-group select {
    width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; outline: none; transition: 0.3s;
}
.calc-group input:focus, .calc-group select:focus { border-color: var(--brand-blue); }
.calc-total { font-size: 1.2rem; color: var(--text-main); text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
#total-price { font-weight: bold; color: var(--brand-blue); }

.btn-primary { 
    background: var(--brand-blue); color: #fff; padding: 12px; border-radius: 4px; 
    font-weight: 600; transition: 0.3s; 
}
.btn-primary:hover { background: var(--brand-gold); }

/* --- FAQ Аккордеон --- */
.faq-section { padding: 40px 0 80px; }
.accordion { max-width: 800px; margin: 0 auto; text-align: left; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-header {
    width: 100%; padding: 20px; background: none; border: none;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; font-size: 1.1rem; color: var(--brand-blue); font-weight: 700; transition: 0.3s;
}
.accordion-header:hover { color: var(--brand-gold); }
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
}
.accordion-content p { padding: 0 20px 20px; font-size: 0.95rem; color: #555; }
.accordion-item.active .accordion-content { max-height: 200px; }
.accordion-item.active .icon-plus { transform: rotate(45deg); color: var(--brand-gold); }
.icon-plus { font-size: 1.5rem; transition: 0.3s; display: inline-block; }

/* --- Футер (Подвал) --- */
footer { background: var(--brand-blue); color: #fff; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: var(--brand-gold); margin-bottom: 20px; }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.85rem; opacity: 0.6; }

/* --- ИСПРАВЛЕННАЯ АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
    /* Ровняем верхнюю полосу */
    .top-bar-content { flex-direction: column; gap: 10px; text-align: center; }
    
    /* Ровняем логотип и меню по центру */
    .nav-wrapper { flex-direction: column; gap: 15px; text-align: center; }
    .logo { display: flex; flex-direction: column; align-items: center; width: 100%; }
    .main-nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    .hero-text h1 { font-size: 2.2rem; }
    
    .single-room-showcase { flex-direction: column; }
    .slider-container { min-height: 250px; height: 300px; }
    
    /* Центрируем текст внутри карточки жилья */
    .room-details { padding: 25px 15px; text-align: center; }
    .room-details h3 { font-size: 1.6rem; }
    .room-features { justify-content: center; } /* Теги теперь по центру */
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .top-contacts span { display: none; }
}

@media (max-width: 480px) {
    .calc-row { flex-direction: column; }
    .calc-row .calc-group { margin-right: 0 !important; }
    .cabin-map { gap: 10px; }
    .cabin-item { min-width: 80px; padding: 10px 5px; font-size: 0.85rem; }
}