/* БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ */
:root {
    --bg-dark: #0a0a0a; /* Основной черный фон */
    --bg-card: #141414; /* Фон для карточек */
    --bg-darker: #050505; /* Темный фон для чередования секций */
    --gold-primary: #d4af37; /* Основной золотой */
    --gold-hover: #f3e5ab; /* Золотой при наведении */
    --text-main: #ffffff; /* Белый текст */
    --text-muted: #a0a0a0; /* Серый текст */
    --border-color: rgba(212, 175, 55, 0.2); /* Золотая полупрозрачная рамка */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* УНИВЕРСАЛЬНЫЕ КНОПКИ */
.btn-gold {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 10px 20px;
    font-size: 12px;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-gold:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.btn-gold-filled {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: 1px solid var(--gold-primary);
    padding: 12px 24px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-gold-filled:hover {
    background: var(--gold-hover);
    border-color: var(--gold-hover);
}

.w-100 {
    width: 100%;
}

/* ШАПКА */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-symbol {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 2px 8px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 600;
}

.logo-subtitle {
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--gold-primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.phone-link:hover {
    color: var(--gold-primary);
}

/* ГЛАВНАЯ СЕКЦИЯ (HERO) */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    display: flex;
    align-items: center;
    padding-left: 5%;
    padding-right: 5%;
    /* Временно ставим черный градиент, потом Codex поможет добавить фото фона */
    background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(20,20,20,0.8) 100%);
    position: relative;
}

.hero-content {
    max-width: 650px;
}

.hero-subtitle {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 54px;
    line-height: 1.1;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--gold-primary);
    font-style: italic;
}

.hero-description {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* БЛОК ПРЕИМУЩЕСТВ В HERO */
.features-bar {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    color: var(--gold-primary);
    font-size: 18px;
    line-height: 1;
}

.feature-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.feature-text strong {
    color: var(--text-main);
    font-weight: 500;
}

/* УНИВЕРСАЛЬНЫЕ СЕКЦИИ */
.section {
    padding: 80px 0;
}
.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 14px;
}

.diamond-divider {
    font-size: 12px;
    margin-top: 15px;
}

/* СЕТКА ТОВАРОВ (JS генерирует карточки сюда) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    background-color: #222; /* Заглушка пока нет реальных фото */
    object-fit: cover;
    margin-bottom: 20px;
}

.product-bestseller {
    background: var(--gold-primary);
    color: var(--bg-dark);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 5px;
}

.product-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

/* СЕТКА ГАЛЕРЕИ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    width: 100%;
    height: 300px;
    background-color: #222;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

/* МОДАЛЬНОЕ ОКНО (Бронирование) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    display: none; /* Скрыто по умолчанию, JS меняет на flex */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-primary);
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--gold-primary);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--gold-primary);
    margin-bottom: 10px;
    text-align: center;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: center;
}

.booking-form .form-group {
    margin-bottom: 20px;
}

.booking-form label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-body);
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: var(--gold-primary);
}

/* ПОДВАЛ */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-main);
    text-decoration: none;
}
.footer-link:hover {
    color: var(--gold-primary);
}

.seo-text {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.text-gold {
    color: var(--gold-primary);
    font-size: 12px;
}
.mt-10 {
    margin-top: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
}

/* АДАПТИВНОСТЬ (Для телефонов) */
@media (max-width: 900px) {
    .nav-links { display: none; } /* Прячем меню на телефоне */
    .hero-title { font-size: 38px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons a, .hero-buttons button { width: 100%; text-align: center; }
    .header-actions .btn-gold { display: none; } /* Прячем кнопку записи в шапке, оставляем звонок */
}

/* ПЛАВНЫЙ ПЕРЕХОД МЕЖДУ СТРАНИЦАМИ */
@view-transition {
    navigation: auto; /* Включает встроенные плавные переходы в современных браузерах */
}

body {
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

body.page-loaded {
    opacity: 1;
}

body.page-fading-out {
    opacity: 0;
}