/* ========== Hero Section Fullscreen ========== */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    min-height: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    overflow: hidden;
    background: #2e2e2e;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-price {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
}

/* ========== About Section Fullscreen ========== */
.about-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.about-video-col {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text-col {
    padding: 20px;
}

.about-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-description {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-guests {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid var(--gray);
    padding-top: 20px;
}

/* ========== House Section Fullscreen ========== */
.house-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-color);
}

.house-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.house-video-col {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.house-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.house-text-col {
    padding: 20px;
}

.house-title {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 30px;
    color: var(--accent-color);
}

.house-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 50%;
    padding: 8px;
}

.feature-icon .icon-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.feature-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.feature-text p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

/* ========== Bath & Kupel Section Fullscreen ========== */
.bath-kupel-section {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-color);
}

.bath-kupel-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 30px;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.bath-video-col,
.kupel-video-col {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.bath-video,
.kupel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bath-kupel-text-col {
    padding: 20px;
    text-align: center;
}

.bath-kupel-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
    text-align: left;
}

/* ========== Calendar Section (обычное отображение) ========== */
.calendar-section {
    background: var(--white);
    padding: 80px 0;
}

.calendar-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.calendar-note {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* ========== Contacts Section (обычное отображение) ========== */
.contacts-section {
    background: var(--bg-color);
    padding: 80px 0;
}

.contacts-section .map-container {
    margin-top: 2rem;
    width: 100%;
    max-width: var(--container-width);
}

.contacts-section .map-container iframe {
    width: 100% !important;
    border: 0;
}

.map-placeholder {
    margin-top: 2rem;
    padding: 2rem;
    background: #f0f0f0;
    text-align: center;
    border-radius: 8px;
    color: #666;
}

/* ========== Video Containers with Fixed Aspect Ratio (fallback) ========== */
.house-video-col,
.bath-video-col,
.kupel-video-col {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-color);
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ========== Phone Widget ========== */
.phone-widget {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 150px;
    height: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: #000;
}

.phone-widget__inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    overflow: hidden;
}

.phone-widget__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: inherit;
}

.phone-widget__close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.phone-widget:hover {
    transform: scale(1.1);
}

.phone-widget:hover .phone-widget__close {
    display: flex;
}

.phone-widget.hidden {
    display: none;
}

/* ========== Contract Gallery (PDF) ========== */
.contract-gallery {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--accent-light);
}

.contract-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-light) var(--gray);
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: var(--accent-light);
    border-radius: 3px;
}

.pdf-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    width: 100px;
    height: 140px;
    background: var(--white);
    border: 2px solid var(--gray);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 10px 5px 5px;
}

.pdf-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: var(--accent-color);
}

.pdf-icon {
    width: 50px;
    height: 60px;
    margin: 0 auto 8px;
    display: block;
}

.pdf-label {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
    width: 100%;
    line-height: 1.3;
    word-break: break-word;
    padding: 0 2px;
}

/* ========== PDF Viewer ========== */
.pdf-viewer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.pdf-viewer-content {
    width: 90%;
    height: 90%;
}

.pdf-viewer-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

.pdf-viewer-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s;
}

.pdf-viewer-close:hover {
    color: var(--accent-light);
}

.pdf-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 30px;
    padding: 15px 10px;
    cursor: pointer;
    z-index: 10001;
    border-radius: 4px;
    transition: background 0.2s;
}

.pdf-viewer-nav:hover {
    background: rgba(255,255,255,0.4);
}

.pdf-viewer-prev { left: 20px; }
.pdf-viewer-next { right: 20px; }

/* ========== Responsive (sections) ========== */
@media (max-width: 992px) {
    .about-section,
    .house-section,
    .bath-kupel-section {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .about-grid,
    .house-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-video-col,
    .house-video-col {
        height: 50vh;
    }
    
    .bath-kupel-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bath-video-col,
    .kupel-video-col {
        height: 45vh;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .bath-kupel-text-col {
        order: -1;
    }
}

@media (max-width: 768px) {
    .about-section,
    .house-section,
    .bath-kupel-section {
        height: auto;
        padding: 40px 0;
    }
    
    .about-grid,
    .house-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-video-col,
    .house-video-col {
        height: 40vh;
    }
    
    .bath-video-col,
    .kupel-video-col {
        height: 35vh;
    }
    
    .calendar-section,
    .contacts-section {
        padding: 40px 0;
    }
    
    .about-title,
    .house-title,
    .section-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .about-description,
    .feature-text p {
        font-size: 1rem;
        text-align: center;
    }
    
    .about-guests,
    .feature-item {
        justify-content: center;
    }
    
    .feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .phone-widget {
        width: 100px;
        left: 10px;
        bottom: 10px;
    }
    
    .pdf-thumb {
        width: 80px;
        height: 120px;
    }
    
    .pdf-icon {
        width: 40px;
        height: 50px;
        margin-bottom: 6px;
    }
    
    .pdf-label {
        font-size: 0.75rem;
    }
    
    .pdf-viewer-nav {
        font-size: 24px;
        padding: 10px 8px;
    }
    
    .pdf-viewer-close {
        font-size: 30px;
        top: 10px;
        right: 15px;
    }
}