/* ===========================================
   SECTIONS — Gallery, About, FAQ, Reviews, Contacts, Footer
   =========================================== */

/* --- Section Indicator Widget --- */
.section-indicator {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease;
    pointer-events: none;
}

.section-indicator.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.section-indicator-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.25);
    transition: all 0.3s ease;
    cursor: pointer;
}

.section-indicator-dot.active {
    width: 8px; height: 8px;
    background: #d4af37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.section-indicator-dot:hover {
    background: rgba(212, 175, 55, 0.5);
}

.section-indicator-label {
    font-size: 12px;
    color: rgba(212, 175, 55, 0.7);
    margin-left: 8px;
    white-space: nowrap;
    letter-spacing: 0.5px;
    min-width: 0;
    overflow: hidden;
    transition: color 0.3s ease;
}

/* --- Gallery --- */
.gallery {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
    transition: all 0.4s ease;
    cursor: pointer;
    background: #1e1b18;
}

.gallery-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.08);
}

/* Bento grid layout — 5 items in 4-col grid */
/* 1 — tall video (2 rows, 2 cols on left) */
.gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

/* 2 — top right small */
.gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

/* 3 — middle right */
.gallery-item:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
}

/* 4 — middle right second */
.gallery-item:nth-child(4) {
    grid-column: span 1;
    grid-row: span 1;
}

/* 5 — bottom wide (4 cols) */
.gallery-item:nth-child(5) {
    grid-column: span 4;
    grid-row: span 1;
}

/* Legacy modifiers — keep for compatibility but layout drives via nth-child */
.gallery-item-tall,
.gallery-item-wide {
    /* overridden by nth-child */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Placeholder styling */
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.04), rgba(30, 30, 30, 0.95));
    color: rgba(212, 175, 55, 0.35);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-placeholder {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.08), rgba(30, 30, 30, 0.9));
    color: rgba(212, 175, 55, 0.55);
}

.gallery-placeholder svg {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-placeholder svg {
    opacity: 0.8;
}

.gallery-placeholder span {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- About --- */
.about {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.about-content { max-width: 900px; margin: 0 auto; }

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.about-text-block {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-text-block p {
    font-size: 16px;
    color: #c0b8a8;
    line-height: 1.8;
    margin: 0;
}

.about-text-block p:first-child {
    font-size: 18px;
    color: #d4cfc5;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-stat {
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #d4af37, #b59567);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.about-stat:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.04);
    transform: translateX(4px);
}

.about-stat:hover::before {
    opacity: 1;
}

.about-stat-value {
    font-family: 'Optimus', 'Georgia', serif;
    font-size: 38px;
    font-weight: 300;
    background: linear-gradient(135deg, #f0d27a, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.05;
    margin-bottom: 6px;
    letter-spacing: 1px;
    word-break: break-word;
}

.about-stat-label {
    font-size: 14px;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

/* Legacy about-box (kept for backward compat) */
.about-box {
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 50px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.about-text {
    font-size: 18px;
    color: #d4cfc5;
    text-align: center;
    line-height: 1.9;
    min-height: 120px;
}

.typing-text::after {
    content: '|';
    animation: blink 0.7s infinite;
    color: #d4af37;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* --- FAQ --- */
.faq {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
    margin-bottom: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    color: #d4af37;
    font-size: 18px;
    font-family: 'Hero', 'Georgia', serif;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover { background: rgba(212, 175, 55, 0.1); }

.faq-icon {
    font-size: 28px; font-weight: 300;
    transition: transform 0.3s ease;
    color: #d4af37;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p { color: #e0e0e0; font-size: 16px; line-height: 1.8; margin: 0; }

/* --- Reviews Carousel --- */
.reviews {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.reviews::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.reviews-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

.reviews-wrapper { overflow: hidden; border-radius: 20px; }

.reviews-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
    min-width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 20px; right: 30px;
    font-size: 80px;
    color: rgba(212, 175, 55, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-header { display: flex; align-items: center; gap: 20px; margin-bottom: 25px; }

.review-avatar {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #b59567);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px; font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.review-info { flex: 1; }
.review-name { font-size: 22px; color: #d4af37; margin: 0 0 8px 0; font-weight: normal; }
.review-rating { color: #d4af37; font-size: 20px; letter-spacing: 2px; }
.review-text { font-size: 16px; color: #e0e0e0; line-height: 1.8; margin: 0 0 20px 0; }
.review-date { font-size: 14px; color: #888; text-align: right; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #d4af37, #b59567);
    border-color: #d4af37;
    color: #1a1a1a;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.carousel-btn:active { transform: translateY(-50%) scale(0.95); }
.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

.carousel-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #d4af37;
    border-color: #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    transform: scale(1.3);
}

.carousel-dot:hover { background: rgba(212, 175, 55, 0.6); transform: scale(1.2); }

/* --- Contacts --- */
.contacts {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.contacts-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
}

.contact-card:hover {
    transform: translateY(-10px);
    border-color: #d4af37;
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.3), 0 0 30px rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.1);
}

.contact-icon { margin-bottom: 20px; display: flex; justify-content: center; align-items: center; transition: transform 0.3s ease; }
.contact-card:hover .contact-icon { transform: scale(1.1) rotate(5deg); }
.contact-icon svg { filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3)); }
.contact-title { font-size: 24px; color: #d4af37; margin-bottom: 15px; font-weight: normal; }

.contact-link {
    font-size: 18px; color: #f5f5f5;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.contact-card:hover .contact-link { color: #d4af37; }
a.contact-link:hover { text-decoration: underline; }
.contact-description { font-size: 14px; color: rgba(224, 224, 224, 0.7); margin: 0; }

/* --- Footer --- */
.footer {
    background: #151515;
    padding: 60px 0 30px;
    color: #888;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-social { display: flex; flex-direction: column; gap: 16px; }
.footer-title { font-size: 18px; color: #d4af37; margin: 0 0 4px; font-weight: normal; }
.social-links { display: flex; gap: 16px; align-items: center; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: #d4af37;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #d4af37, #b59567);
    border-color: #d4af37;
    color: #1a1a1a;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.social-link svg { transition: transform 0.3s ease; }
.social-link:hover svg { transform: rotate(360deg); }
.footer-copyright {
    margin: 0;
    font-size: 13px;
    color: #666;
    text-align: center;
    padding-top: 25px;
    grid-column: 1 / -1;
}

.footer-contacts { text-align: left; }
.footer-contact-item { color: #b0a898; margin-bottom: 5px; font-size: 15px; line-height: 1.6; }
.footer-contact-item a { color: #d4af37; text-decoration: none; transition: color 0.3s; }
.footer-contact-item a:hover { color: #f5f5f5; }

.footer-schedule { text-align: left; }
.footer-schedule-item { color: #b0a898; font-size: 15px; line-height: 1.6; }

/* --- Error Page (404) --- */
.error-page {
    min-height: 100vh;
}

.error-content {
    align-items: center;
}

.error-code {
    font-family: 'Optimus', 'Georgia', serif;
    font-size: 140px;
    font-weight: 300;
    line-height: 1;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(181, 149, 103, 0.15));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 8px;
}

.error-title {
    font-size: 32px;
    color: #d4af37;
    font-weight: normal;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.error-text {
    font-size: 17px;
    color: #b0a898;
    max-width: 450px;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 40px;
}

.error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-actions .btn {
    text-decoration: none;
}

/* --- Gallery Video Item --- */
.gallery-item-video {
    overflow: hidden;
}

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

.gallery-video-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.gallery-video-badge svg { flex-shrink: 0; }

/* --- Cabinet Video Section --- */
.cabinet-video {
    padding: 80px 0;
    background: #1a1a1a;
    position: relative;
}

.cabinet-video::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

.cabinet-video-wrapper {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
    aspect-ratio: 464 / 848;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
}

.cabinet-video-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.4), transparent 50%, rgba(212, 175, 55, 0.2));
    z-index: -1;
    opacity: 0.5;
}

.cabinet-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9990;
    pointer-events: none;
    visibility: hidden;
}

.lightbox.active {
    pointer-events: auto;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-backdrop {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.25);
    color: #d4af37;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s, border-color 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox.active .lightbox-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.lightbox-close:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.lightbox-content {
    position: absolute;
    overflow: hidden;
    border-radius: 16px;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                border-radius 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: top, left, width, height;
}

.lightbox-content img,
.lightbox-content video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox.expanded .lightbox-content {
    border-radius: 0;
}

.lightbox.expanded .lightbox-content img,
.lightbox.expanded .lightbox-content video {
    object-fit: contain;
}

/* Disable body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}
