/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F4F3EF;
    --text-color: #000000;
    --primary-color: #000000;
    --secondary-color: #B8A9A9;
    --accent-color: #D4C5C5;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(244, 243, 239, 0.95);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

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

.nav-menu a:hover {
    color: var(--primary-color);
}

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

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

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.5rem;
}

/* Герой */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
    background: linear-gradient(rgba(244, 243, 239, 0.9), rgba(244, 243, 239, 0.7));
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero-names {
    font-family: var(--font-serif);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.hero-date {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 5px;
}

.hero-slogan {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 60px;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.4;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

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

.countdown-item span {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.countdown-item small {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Локация */
.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.location-text h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.location-hall {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-style: italic;
}

.location-address {
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: all 0.3s;
}

.location-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Таймлайн */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
}

.timeline-time {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 100px;
    margin-right: 30px;
}

.timeline-content {
    font-size: 1.3rem;
    font-weight: 500;
}

/* RSVP */
.rsvp-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.name-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s;
}

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

.form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
}

.form-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn {
    padding: 16px 40px;
    border: none;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-confirm {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-confirm:hover {
    background-color: #6ea748;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(138, 110, 110, 0.3);
}

.btn-decline {
    background-color: #e0e0e0;
    color: var(--text-color);
}

.btn-decline:hover {
    background-color: #c05e5e;
    transform: translateY(-3px);
}

.rsvp-message, .deadline-message {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.rsvp-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.rsvp-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.rsvp-message.info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.deadline-message {
    background-color: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
    margin-top: 30px;
}

/* Дресс-код */
.dresscode-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.dresscode-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

.color-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

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

.dresscode-subtext {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
}

/* Подарки */
.gifts-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gifts-text {
    font-size: 1.2rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Фотографии */
.photos-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.photos-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.8;
}

.photos-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-photos {
    background-color: #e0e0e0;
    color: var(--text-color);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-photos:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.btn-photos-upload:hover {
    background-color: #FFD7BA;
}

.btn-photos-view {
    background-color: #e0e0e0;
}

.btn-photos-view:hover {
    background-color: #BEE1E6;
}

/* Завершающий блок */
.closing {
    padding: 100px 0;
    background-color: rgba(138, 110, 110, 0.05);
    text-align: center;
}

.closing-text {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
}

/* Футер */
.footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.footer-love {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.footer-contacts {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.contact-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-color);
}

.footer-copy {
    color: #666;
    font-size: 0.9rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero-names {
        font-size: 3rem;
    }

    .hero-date {
        font-size: 1.4rem;
    }

    .hero-slogan {
        font-size: 1.8rem;
    }

    .countdown {
        gap: 20px;
        flex-wrap: wrap;
    }

    .countdown-item span {
        font-size: 2.5rem;
    }

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

    .name-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .color-palette {
        flex-wrap: wrap;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .timeline-time {
        margin-right: 0;
        margin-bottom: 15px;
        min-width: auto;
    }

    .closing-text {
        font-size: 2.2rem;
    }

    .footer-contacts {
        flex-direction: column;
        gap: 20px;
    }

    .photos-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-photos {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}