* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --text-dark: #2F1B0C;
    --text-light: #5D4037;
    --white: #ffffff;
    --bg-light: #F5F5DC;
    --gold: #D4AF37;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(245, 245, 220, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--gold);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-menu a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Hero Video Styles */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) sepia(0.3);
    animation: videoFadeIn 2s ease-out;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.7) 0%,
        rgba(210, 105, 30, 0.6) 50%,
        rgba(205, 133, 63, 0.5) 100%
    );
    z-index: 2;
}

.hero-content {
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    font-family: 'UnifrakturMaguntia', cursive;
    color: var(--gold);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-style: italic;
}

.cta-button {
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    font-family: 'Georgia', serif;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.video-btn {
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--gold);
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-btn:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: scale(1.1);
}

/* Стили для кнопки принудительного воспроизведения */
.video-fallback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 27, 12, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    flex-direction: column;
    gap: 20px;
}

.play-overlay-btn {
    background: var(--gold);
    color: var(--text-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Georgia', serif;
}

.play-overlay-btn:hover {
    background: var(--accent-color);
    transform: scale(1.05);
}

.fallback-message {
    color: var(--gold);
    text-align: center;
    max-width: 400px;
    margin: 0 20px;
    font-size: 1.1rem;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: 'UnifrakturMaguntia', cursive;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-style: italic;
}

/* Gallery */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    aspect-ratio: 4/3;
    border: 2px solid var(--accent-color);
    background: var(--white);
    padding: 10px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.3);
}

/* Gallery Carousel - показываем фото целиком */
.gallery-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.gallery-carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.5s ease;
    opacity: 0;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
}

.gallery-carousel img.active {
    opacity: 1;
}

.gallery-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: linear-gradient(transparent, rgba(47, 27, 12, 0.9));
    color: var(--white);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    border-radius: 0 0 8px 8px;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
    color: white;
}

.photo-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .carousel-controls {
    opacity: 1;
}

.carousel-prev,
.carousel-next {
    background: rgba(212, 175, 55, 0.7);
    border: none;
    color: var(--text-dark);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--gold);
    transform: scale(1.1);
}

/* Lightbox - полное отображение фото без обрезки */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 27, 12, 0.98);
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 3px solid var(--gold);
    border-radius: 10px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    background: var(--white);
    padding: 15px;
}

/* Улучшаем кнопки лайтбокса */
.lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gold);
    border: none;
    color: var(--text-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    z-index: 2001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    border: none;
    color: var(--text-dark);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(47, 27, 12, 0.9);
    color: var(--gold);
    padding: 1.5rem 3rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.lightbox-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: var(--gold);
}

.lightbox-info p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.lightbox-counter {
    margin-top: 0.8rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Video Section */
.video-section {
    background: var(--white);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.video-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    transition: transform 0.3s;
    border: 2px solid var(--accent-color);
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 27, 12, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.video-wrapper:hover .video-overlay {
    opacity: 1;
}

.video-wrapper .video-overlay i {
    font-size: 3rem;
    color: var(--white);
}

.video-item h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.video-item p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s;
    border: 1px solid var(--accent-color);
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature h4 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-family: 'UnifrakturMaguntia', cursive;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(1.1);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: 2;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Mobile Menu Active State */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
    animation: slideDown 0.3s ease;
    border: 1px solid var(--accent-color);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
        margin: 0 auto 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .cta-button {
        margin: 0 auto;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        text-align: center;
        margin: 0 auto 1rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        text-align: center;
        margin: 0 auto 2rem;
    }
    
    .hero-video video {
        filter: brightness(0.6);
    }
    
    .video-controls {
        bottom: 10px;
        right: 10px;
    }
    
    .video-btn {
        width: 35px;
        height: 35px;
    }
    
    .floating-shape {
        display: none;
    }
    
    .video-fallback-overlay {
        padding: 20px;
    }
    
    .nav-menu.active {
        padding: 1rem;
    }
    
    .nav-menu.active a {
        padding: 0.8rem 1rem;
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .nav-menu.active a:last-child {
        border-bottom: none;
    }
    
    /* Lightbox Mobile Fix */
    .lightbox-content {
        padding: 10px !important;
        align-items: flex-start !important;
        padding-top: 60px !important;
    }
    
    .lightbox-image-container {
        max-width: 100vw !important;
        max-height: calc(100vh - 100px) !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
        overflow: visible !important;
    }
    
    .lightbox-image-container img {
        width: auto !important;
        height: auto !important;
        max-width: 95vw !important;
        max-height: calc(100vh - 150px) !important;
        object-fit: contain !important;
        padding: 5px !important;
    }
    
    .lightbox-close {
        top: 10px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 1.2rem !important;
        background: var(--gold) !important;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
        background: var(--gold) !important;
    }
    
    .lightbox-prev {
        left: 5px !important;
    }
    
    .lightbox-next {
        right: 5px !important;
    }
    
    .lightbox-info {
        bottom: 10px !important;
        padding: 0.8rem 1rem !important;
        font-size: 0.9rem !important;
        max-width: 90vw !important;
    }
    
    .lightbox-info h3 {
        font-size: 1.1rem !important;
    }
    
    /* Gallery mobile styles */
    .gallery-carousel img {
        max-width: 85%;
        max-height: 85%;
    }
    
    .gallery-item {
        padding: 8px;
    }
    
    .gallery-overlay {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .play-overlay-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Lightbox mobile small */
    .lightbox-content {
        padding-top: 50px !important;
    }
    
    .lightbox-image-container img {
        max-width: 98vw !important;
        max-height: calc(100vh - 120px) !important;
    }
    
    .lightbox-info {
        bottom: 5px !important;
        padding: 0.6rem 0.8rem !important;
    }
    
    /* Gallery mobile small */
    .gallery-carousel img {
        max-width: 80%;
        max-height: 80%;
    }
}
.image-section {
    background: var(--white);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    border: 2px solid var(--accent-color);
    text-align: center;
}

.image-wrapper {
    max-width: 100%;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 600px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.image-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .image-section {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .image-wrapper img {
        max-height: 400px;
    }
    
    .image-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .image-wrapper img {
        max-height: 300px;
    }
    
    .image-description {
        font-size: 0.9rem;
    }
}