/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================= */
:root {
    --primary: #1a5c3a;
    --primary-light: #2d7a52;
    --primary-dark: #0f3d26;
    --accent: #c9a227;
    --accent-light: #e0c158;
    --white: #ffffff;
    --cream: #f8f6f0;
    --light-gray: #f0ede6;
    --text: #2c2c2c;
    --text-light: #6b6b6b;
    --shadow: rgba(0,0,0,0.08);
    --shadow-hover: rgba(0,0,0,0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   ЭФФЕКТЫ: ПРОГРЕСС-БАР, КУРСОР, АНИМАЦИИ
   ========================================= */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--accent);
    z-index: 9999;
    width: 0;
    transition: width 0.2s ease-out;
}

.custom-cursor-active {
    cursor: none;
}

#cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s;
}

#cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.15s ease-out, opacity 0.3s;
}

.effect-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.effect-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.effect-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.effect-fade-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.effect-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.effect-scale.visible {
    opacity: 1;
    transform: scale(1);
}

.effect-blur-in {
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.8s ease-out, filter 0.8s ease-out;
}

.effect-blur-in.visible {
    opacity: 1;
    filter: blur(0);
}

/* =========================================
   LIGHTBOX
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    color: white;
    max-width: 600px;
}

.lightbox-caption h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--accent);
}

.lightbox-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.6;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-radius: 8px;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =========================================
   ОБЩИЕ СТИЛИ СЕКЦИЙ
   ========================================= */
section {
    padding: 100px 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =========================================
   РЕЖИМ ЗВОНКА (модалка)
   ========================================= */
#bookingFields { display: block; }
.call-mode #bookingFields { display: none; }

/* =========================================
   АДАПТИВНОСТЬ (MEDIA QUERIES)
   ========================================= */
@media (max-width: 1024px) {
    .about-grid,
    .contact-grid,
    .calc-grid,
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item:nth-child(1),
    .gallery-item:nth-child(4),
    .gallery-item:nth-child(5) {
        grid-column: span 1;
        grid-row: span 1;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-hero,
    .event-hero,
    .category-hero {
        height: 50vh;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-more-trigger,
    .nav-cta {
        display: none !important;
    }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 10px;
        color: var(--white);
        font-size: 1.4rem;
        cursor: pointer;
        flex-shrink: 0;
    }
    .navbar.scrolled .mobile-menu-btn {
        background: var(--cream);
        border-color: var(--light-gray);
        color: var(--primary);
    }
    .nav-links.mobile-active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 30px 20px;
        box-shadow: 0 15px 40px var(--shadow-hover);
        gap: 20px;
        z-index: 999;
        border-top: 1px solid var(--light-gray);
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-links.mobile-active a {
        color: var(--text) !important;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }
    .nav-links.mobile-active .nav-cta {
        display: block !important;
        text-align: center;
        margin: 15px 0 0;
        width: 100%;
        padding: 15px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .rooms-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    .features-list {
        grid-template-columns: 1fr;
    }
    .about-img-secondary {
        display: none;
    }
    .calc-container {
        padding: 30px 20px;
    }
    .modal {
        padding: 30px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-social {
        justify-content: center;
    }
    section {
        padding: 60px 0;
    }
    .container {
        padding: 0 20px;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .custom-cursor-active {
        cursor: auto;
    }
    #cursor-dot,
    #cursor-outline {
        display: none;
    }
    .toast {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
        transform: translateY(150%);
    }
    .toast.show {
        transform: translateY(0);
    }
    .lightbox-caption {
        bottom: 15px;
        left: 15px;
        max-width: 85%;
        padding: 10px 15px;
    }
    .lightbox-caption h4 {
        font-size: 1.1rem;
    }
    .lightbox-caption p {
        font-size: 0.85rem;
    }
    .lightbox-arrow {
        font-size: 1.2rem;
        padding: 10px 15px;
    }
    .lightbox-prev {
        left: 10px;
    }
    .lightbox-next {
        right: 10px;
    }
    .lightbox-overlay img {
        max-width: 95%;
        max-height: 80vh;
    }
    .detail-hero,
    .event-hero,
    .category-hero {
        height: 40vh;
        min-height: 300px;
    }
    .detail-content,
    .category-content {
        padding: 40px 0;
    }
    .detail-grid h2 {
        font-size: 1.6rem;
    }
    .detail-grid h3 {
        font-size: 1.4rem;
    }
}
