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

:root {
    --primary-color: #5a7d5f;
    --secondary-color: #3d5a40;
    --accent-color: #8ba888;
    --text-dark: #2d3e2f;
    --text-light: #5f6c60;
    --bg-light: #f5f7f5;
    --white: #ffffff;
    --grey-light: #e8ebe8;
    --grey-medium: #c1c7c1;
    --gradient: linear-gradient(135deg, #5a7d5f 0%, #3d5a40 100%);
}

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

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

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Главная секция */
.hero {
    height: 100vh;
    background: url('background.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(90, 125, 95, 0.4), rgba(61, 90, 64, 0.6));
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 6rem;
    margin-bottom: 0px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.hero-date {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: var(--white);
    margin: 30px auto;
}

/* Таймер обратного отсчета */
.countdown {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-top: 0px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    min-width: 80px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.countdown-label {
    font-size: 0.9rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Навигация под таймером */
.hero-nav {
    margin-top: 60px;
}

.hero-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-menu a:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Общие стили секций */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gradient);
    margin: 0 auto 60px;
}

/* История */
.story {
    background: var(--bg-light);
}

.story-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.4s;
}

.timeline-item.reverse {
    direction: rtl;
}

.timeline-item.reverse .timeline-content {
    direction: ltr;
}

.timeline-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
}

.timeline-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.timeline-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-date {
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Детали события - Beautiful Timeline */
.event {
    background: linear-gradient(135deg, #f5f7f5 0%, #ffffff 100%);
    padding: 120px 0 100px 0;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.steps-timeline {
    max-width: 800px;
    margin: 80px auto 0;
    position: relative;
    padding: 40px 0;
}

/* Серая линия фона */
.timeline-line {
    position: absolute;
    left: 30px;
    top: 40px;
    bottom: 40px;
    width: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    z-index: 1;
}

/* Зеленая прогресс-линия */
.timeline-progress {
    position: absolute;
    left: 30px;
    top: 40px;
    width: 4px;
    height: 0%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    z-index: 2;
    transition: height 0.3s ease;
}

.step-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.step-item:last-child {
    margin-bottom: 0;
}

/* Круглый маркер */
.step-marker {
    position: absolute;
    left: 18px;
    top: 30px;
    width: 28px;
    height: 28px;
    background: white;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    z-index: 3;
    transition: all 0.3s ease;
}

.step-item.visible .step-marker {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 0 8px rgba(90, 125, 95, 0.1);
}

/* Карточка с событием */
.step-card {
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item.visible .step-card {
    border-color: rgba(90, 125, 95, 0.1);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(90, 125, 95, 0.15);
}

.step-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.step-location {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.step-address {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дресскод */
.dresscode {
    background: white;
    padding: 80px 0;
}

.dresscode-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f7f5 0%, #e8ebe8 100%);
}

.dresscode-content {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: center;
}

.dresscode-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.8;
}

.dresscode-colors {
    margin-top: 40px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
}

.dresscode-colors h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 400;
}

.dresscode-colors p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
}

/* Галерея */
.gallery {
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(90, 125, 95, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

.gallery-zoom {
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
}

/* RSVP */
.rsvp {
    background: linear-gradient(135deg, rgba(90, 125, 95, 0.1) 0%, rgba(61, 90, 64, 0.1) 100%);
}

.personal-greeting {
    color: var(--white);
    margin-bottom: 10px;
}

.guest-message {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rsvp-content {
    max-width: 600px;
    margin: 0 auto;
}

.rsvp-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.8;
}

.rsvp-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    padding: 12px;
    border: 2px solid #e8ebe8;
    border-radius: 8px;
    background: var(--white);
}

.checkbox-label:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(90, 125, 95, 0.05);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-light);
    transition: color 0.3s ease;
    padding: 12px;
    border: 2px solid #e8ebe8;
    border-radius: 8px;
    background: var(--white);
}

.radio-label:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(90, 125, 95, 0.05);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-label {
    border-color: var(--primary-color);
    background: rgba(90, 125, 95, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(90, 125, 95, 0.4);
}

/* Wishlist */
.wishlist {
    background: linear-gradient(135deg, #f9faf9 0%, #ffffff 100%);
    padding: 100px 0;
}

.wishlist-content {
    max-width: 900px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wishlist-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 35px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(90, 125, 95, 0.15);
}

.wishlist-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
}

.wishlist-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin: 0;
    padding-top: 8px;
}

.wishlist-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.wishlist-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Футер */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-heart {
    font-size: 1.5rem;
    margin: 15px 0;
    animation: heartbeat 1.5s infinite;
}

.footer-date {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: var(--white);
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.5); }
    to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .countdown {
        gap: 20px;
    }

    .countdown-value {
        font-size: 2rem;
        min-width: 60px;
        padding: 15px;
    }

    .timeline-item,
    .timeline-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .event-details {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .rsvp-form {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 10px;
    }

    .countdown-value {
        font-size: 1.5rem;
        min-width: 50px;
        padding: 10px;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ */
.faq {
    background: var(--bg-light);
    padding: 100px 0;
}

.faq-container {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    color: var(--text-dark);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

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

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

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

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}
