/* frontend/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600&display=swap');

:root {
    --pink: #d880a6; 
    --gold: #d4af37;
    --white: #ffffff;
    --dark: #2c2c2c;
    --light-pink: #fdf5f8;
    --gray: #e0e0e0;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    color: var(--dark);
    box-sizing: border-box;
}

*, *:before, *:after { box-sizing: inherit; }

/* --- ШАПКА --- */
header {
    background-color: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link img {
    height: 50px; /* Размер логотипа Logo1.png */
    object-fit: contain;
}

nav { display: flex; flex-wrap: wrap; gap: 20px; }
nav a { text-decoration: none; color: var(--dark); font-weight: 600; transition: color 0.3s; }
nav a:hover { color: var(--pink); }

/* --- ГЛАВНАЯ СТРАНИЦА --- */
/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    position: relative;
    height: 100vh; /* Занимает 100% высоты экрана при открытии */
    min-height: 600px; /* Защита, чтобы блок не сплющился */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* СЮДА ВСТАВЬТЕ НАЗВАНИЕ ВАШЕЙ КАРТИНКИ */
    background-image: url('../assets/design/hero-image.jpg'); 
    
    background-size: cover; /* Картинка всегда заполняет экран без пустот */
    background-position: center center; /* На ПК смотрим ровно в центр */
    background-repeat: no-repeat;
}

/* Накладываем элегантное затемнение (40%), чтобы логотип и кнопка не сливались с фоном */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

/* Поднимаем кнопку и логотип над затемнением */
.hero-logo, .hero .btn-gold {
    position: relative;
    z-index: 2;
}

/* --- МАГИЯ ДЛЯ ТЕЛЕФОНОВ --- */
@media (max-width: 768px) {
    .hero {
        /* Сдвигаем фокус на 20% от левого края */
        background-position: 67% center; 
    }
}

.hero-logo { max-width: 80%; width: 500px; margin-bottom: 30px; }
.hero-logo img { width: 100%; height: auto; }

.btn-gold {
    background-color: var(--gold); color: var(--white); padding: 15px 40px;
    text-decoration: none; font-size: 1.1em; border-radius: 30px;
    font-weight: 600; transition: background 0.3s, transform 0.2s; border: none; cursor: pointer;
}
.btn-gold:hover { background-color: #b5952f; transform: scale(1.05); }

/* --- СЕКЦИИ --- */
.section { padding: 80px 5%; text-align: center; }
.section-bg { background-color: var(--light-pink); }
.section h2 { color: var(--pink); font-size: 2.5em; margin-bottom: 50px; text-transform: uppercase; }

/* --- КАРТОЧКИ ЗАЛОВ --- */
.halls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; max-width: 1200px; margin: 0 auto;
}

.hall-card {
    background: var(--white); border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 20px rgba(216, 128, 166, 0.1); transition: transform 0.3s;
    text-align: left; display: flex; flex-direction: column; /* Делаем карточку flex-контейнером */
}
.hall-card:hover { transform: translateY(-10px); }

.hall-image {
    height: 250px; background-color: #eee; background-size: cover;
    background-position: center; cursor: pointer; position: relative;
}
.hall-image::after {
    content: '📷 Смотреть фото'; position: absolute; bottom: 10px; right: 10px;
    background: rgba(255,255,255,0.8); padding: 5px 10px; border-radius: 20px; font-size: 0.8em; font-weight: 600;
}

.hall-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.hall-info h3 { color: var(--dark); margin-top: 0; font-size: 1.5em; text-transform: uppercase; }
.hall-info ul { padding-left: 20px; color: #666; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }

/* Прижимаем цену и кнопку к низу карточки */
.price-and-btn { margin-top: auto; }
.price { font-size: 1.2em; color: var(--pink); font-weight: bold; margin-bottom: 15px; }

.book-btn {
    display: block; text-align: center; background-color: var(--pink); color: var(--white);
    text-decoration: none; padding: 12px; border-radius: 5px; transition: 0.3s; font-weight: 600;
}
.book-btn:hover { background-color: #c0698e; }

/* --- ПЛАШКИ УСЛУГ И ПРАВИЛ --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto 40px; }
.service-card { background: var(--white); padding: 25px; border-radius: 15px; border: 1px solid var(--pink); font-weight: 600; font-size: 1.1em; display: flex; align-items: center; justify-content: center; }

.info-text { max-width: 800px; margin: 0 auto; font-size: 1.1em; line-height: 1.6; color: var(--dark); }
.warning-text { color: var(--pink); font-weight: bold; margin-top: 15px; }

.rules-card { background: var(--white); padding: 40px; border-radius: 20px; text-align: left; max-width: 900px; margin: 0 auto; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.rules-card ul { line-height: 1.8; color: var(--dark); font-size: 1.1em; }
.rules-card li { margin-bottom: 10px; }

/* --- ФУТЕР --- */
/* --- НОВАЯ КРАСИВАЯ КНОПКА MAX С КАРТИНКОЙ --- */
.btn-max { 
    position: relative;  /* ДОБАВЛЕНО: Говорим кнопке стать "якорем" для картинки */
    display: inline-block;
    width: 140px;        
    height: 45px;        
    border-radius: 30px; 
    border: 2px solid #fff; 
    overflow: hidden;    
    transition: 0.3s;    
    padding: 0;
}

.btn-max:hover { 
    border-color: var(--pink); 
    transform: scale(1.05);    
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2); 
}

/* Стили для картинки внутри кнопки */
.btn-max-img {
    position: absolute;  /* ДОБАВЛЕНО: Отрываем картинку от текста */
    top: 0;              /* Прибиваем к верхнему краю */
    left: 0;             /* Прибиваем к левому краю */
    width: 100%;         /* ЖЕСТКО: 100% ширины кнопки */
    height: 100%;        /* ЖЕСТКО: 100% высоты кнопки */
    object-fit: cover;   /* Идеально заполняет форму без искажений */
}
/* --- СТИЛИ ДЛЯ ПОДВАЛА (FOOTER) --- */
#footer {
    background-color: #2b2b2b; /* Темный фон подвала */
    padding: 50px 20px 20px;
    color: #999;
}

.footer-content {
    display: flex;
    justify-content: space-between; /* Раскидываем колонки по краям */
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px; /* Чтобы на мобилках колонки не сжимались, а падали вниз */
}

/* Левая колонка (Реквизиты) */
.footer-requisites {
    text-align: left;
    font-size: 0.85em;
    line-height: 1.6;
}
.footer-requisites strong { color: #fff; }

/* Центральная колонка (Документы) */
.footer-legal-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 0.9em;
}
.footer-legal-links a { color: var(--pink); text-decoration: none; transition: 0.2s; }
.footer-legal-links a:hover { color: #fff; }

/* Правая колонка (Контакты) */
.footer-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Прижимаем к правому краю */
    gap: 15px;
}
.footer-phone {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffffff; /* Делаем телефон белым! */
    text-decoration: none;
    transition: 0.2s;
}
.footer-phone:hover { color: var(--pink); }

/* Копирайт */
.footer-copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85em;
    color: #666;
    line-height: 1.8;
}
.author-link {
    color: var(--pink);
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1em;
    letter-spacing: 1px;
}

/* Адаптация для мобильных телефонов */
@media (max-width: 768px) {
    .footer-content { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    .footer-requisites, .footer-contacts { 
        text-align: center; 
        align-items: center; 
    }
}
/* --- МОДАЛЬНОЕ ОКНО ДЛЯ ФОТО --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
.modal-content { max-width: 90%; max-height: 80vh; border-radius: 10px; }
.close-modal { position: absolute; top: 20px; right: 30px; color: white; font-size: 40px; font-weight: bold; cursor: pointer; }
.modal-nav { position: absolute; top: 50%; transform: translateY(-50%); color: white; font-size: 50px; cursor: pointer; user-select: none; padding: 20px; }
#modal-prev { left: 10px; }
#modal-next { right: 10px; }

/* --- АДАПТИВНОСТЬ МЕНЮ И ШРИФТОВ --- */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    nav { justify-content: center; }
    nav a { margin: 0; }
    .hero h1 { font-size: 2em; }
    .section h2 { font-size: 2em; }
    .modal-nav { padding: 5px; font-size: 30px; }
}
/* --- ПЛАШКА ВЫБРАННОГО ЗАЛА НА 2 ШАГЕ --- */
.selected-hall-banner {
    background-color: var(--light-pink);
    color: var(--dark);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px dashed var(--pink);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.1em;
}
.selected-hall-banner strong {
    color: var(--pink);
    font-size: 1.2em;
    text-transform: uppercase;
}