/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра old money с зелеными акцентами */
    --dark-green: #1a472a;
    --forest-green: #2d5a27;
    --sage-green: #8a9a5b;
    --gold: #d4af37;
    --dark-gold: #b8941f;
    --cream: #f5f5dc;
    --dark-brown: #3d2b1f;
    --light-brown: #8b7355;
    --charcoal: #36454f;
    --light-charcoal: #4a5f6a;
}

body {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.6;
    color: var(--dark-brown);
    background-color: var(--cream);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-green);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero секция */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(26, 71, 42, 0.7),
        rgba(45, 90, 39, 0.5)
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.hero-text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--cream);
    line-height: 1.2;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--dark-brown);
}

.btn-primary:hover {
    background-color: var(--dark-gold);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--cream);
    border: 2px solid var(--sage-green);
}

.btn-secondary:hover {
    background-color: var(--sage-green);
    transform: translateY(-2px);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
}

/* Донат индикатор */
.donation-widget {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.donation-progress {
    margin: 20px 0;
}

.progress-bar {
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--gold);
    transition: width 0.5s ease;
}

.donation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--cream);
}

/* Блоки секций */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.8rem;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--gold);
}

/* Видео блок */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.video-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-play:hover {
    background-color: var(--dark-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Блог */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-post:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

/* WishList */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.tab {
    padding: 10px 25px;
    background-color: var(--cream);
    border: 2px solid var(--light-brown);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.tab.active {
    background-color: var(--dark-green);
    color: white;
    border-color: var(--dark-green);
}

.tab:hover:not(.active) {
    background-color: var(--sage-green);
    color: white;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.wishlist-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--gold);
}

/* Форма обратной связи */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-green);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-brown);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Футер */
.footer {
    background-color: var(--dark-green);
    color: var(--cream);
    padding: 40px 0;
    text-align: center;
}

.footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Анимация прогресс-бара */
@keyframes progressAnimation {
    0% {
        width: 0;
    }
}

.progress-fill-goal {
    animation: progressAnimation 1.5s ease-in-out;
}

/* Эффекты при наведении */
.gallery-item {
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
    transition: transform 0.5s ease;
}

.gallery-image {
    transition: transform 0.5s ease;
}

/* Индикатор таймлайна */
.timeline-item:before {
    content: '';
    position: absolute;
    left: 27px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--gold);
    z-index: 2;
}

/* Адаптивные медиа-запросы для таймлайна */
@media (max-width: 768px) {
    .timeline-item:before {
        left: 17px;
    }
}

@media (max-width: 480px) {
    .timeline-item:before {
        display: none;
    }
}