:root {
    --primary-bg: #fff9f5;
    --accent1: #cbfaff;
    --accent2: #efe1ba;
    --accent3: #d2eae4;
    --text-color: #5a4a42;
}

body {
    font-family: 'Playfair Display', serif;
    color: var(--text-color);
    background: var(--primary-bg);
    margin: 0;
    line-height: 1.6;
}

h3 {
    font-size: 4rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

h6 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    text-align: center;
}

/* Хедер */
.header {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.header-content {
    position: relative;
    z-index: 2;
    width: 90%;
    padding: 20px;
}

.header-content h1 {
    font-size: 12vw;
    margin: 0;
    color: white;
    font-style: italic;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: 1px;
}

.header-content h2 {
    font-size: 8vw;
    margin: 20px 0 0;
    color: white;
    font-style: italic;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* Пригласительный текст */
.invitation {
    background: var(--primary-bg);
    padding: 80px 0;
}

.invitation-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.invitation-content h3 {
    font-size: 3.5rem;
    font-style: italic;
    color: var(--text-color);
    margin-bottom: 30px;
    font-weight: 400;
}

.invitation-content p {
    font-size: 2rem;
    line-height: 1.6;
}

/* Календарь */
.calendar {
    background-color: var(--primary-bg);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.day, .date {
    padding: 12px;
    font-size: 1.1rem;
    text-align: center;
}

.day {
    font-weight: bold;
    color: #7a6a62;
}

.date {
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.date:hover {
    background: #f0e6e0;
}

.highlight {
    color: #fff !important;
}

.highlight::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent2);
    border-radius: 50%;
    z-index: -1;
}

/* Таймер */
.timer {
    background-color: var(--primary-bg);
}

.timer-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.timer-item span:first-child {
    font-size: 3rem;
    font-weight: bold;
}

/* Расписание дня */
.schedule {
    background-color: var(--primary-bg);
}

.schedule-item {
    display: flex;
    align-items: center;
    margin: 40px auto;
    gap: 30px;
    max-width: 1000px;
    padding: 0 20px;
}

.schedule-item.reverse {
    flex-direction: row-reverse;
}

.schedule-photo {
    flex: 1;
    min-width: 300px;
    padding-left: 20px;
}

.schedule-photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.schedule-text {
    flex: 2;
    text-align: left;
    padding-right: 20px;
}

.schedule-text h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.schedule-text .time-group h4 {
    margin: 0 0 25px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.schedule-text .time-group h4:last-child {
    margin-bottom: 0;
}

.map-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 20px;
    background: var(--accent2);
    color: var(--text-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.map-btn:hover {
    background: #e0d2a8;
    transform: translateY(-2px);
}

/* Пожелания */
.wishes {
    background-color: var(--primary-bg);
}

.wish-item {
    max-width: 800px;
    margin: 30px auto;
}

.wish-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.wish-content::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--accent3);
    border-radius: 20px;
    z-index: -1;
}

/* Карусель */
.gallery {
    background-color: var(--primary-bg);
    padding: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.gallery.show {
    opacity: 1;
    transform: translateY(0);
}

.swiper-container {
    width: 60%;
    height: 70vh;
    max-height: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.swiper-slide img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent3);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 24px;
    color: var(--text-color);
}

/* Общий чат */
.chat {
    background-color: var(--primary-bg);
}

.chat-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chat-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.chat-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--accent2);
    color: var(--text-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.chat-btn:hover {
    background: #e0d2a8;
    transform: translateY(-2px);
}

/* Опросник */
.rsvp {
    background-color: var(--primary-bg);
}

.rsvp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#rsvpForm {
    text-align: left;
}

.form-group {
    margin-bottom: 30px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin-top: 10px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
}

.radio-option input,
.checkbox-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--accent2);
    border-radius: 50%;
}

.checkbox-custom {
    position: absolute;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--accent2);
    border-radius: 4px;
}

.radio-option:hover .radio-custom,
.checkbox-option:hover .checkbox-custom {
    background-color: #f5f5f5;
}

.radio-option input:checked ~ .radio-custom {
    background-color: var(--accent2);
}

.checkbox-option input:checked ~ .checkbox-custom {
    background-color: var(--accent2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.hidden {
    display: none;
}

#allergy-details {
    margin-top: 15px;
}

.additional-field {
    display: block;
}

.alcohol-field {
    display: block;
}

.required {
    color: #ff4444;
    margin-left: 3px;
}

.submit-btn {
    background: var(--accent2);
    color: var(--text-color);
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

.submit-btn:hover {
    background: #c2d9d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.loading-indicator.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--accent2);
    border-top: 4px solid var(--accent1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Футер */
.footer {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.footer-content p {
    font-size: 6vw;
    color: white;
    font-style: italic;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-weight: 700;
}

/* Анимации */
.animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 18vw;
    }

    .header-content h2 {
        font-size: 10vw;
    }

    .invitation-content h3 {
        font-size: 2.2rem;
    }

    .invitation-content p {
        font-size: 1.2rem;
    }

    .schedule-item,
    .schedule-item.reverse {
        flex-direction: column;
        padding: 0 15px;
    }

    .schedule-photo {
        padding-left: 0;
        min-width: 100%;
    }

    .schedule-text {
        text-align: center;
        padding-right: 0;
    }

    .swiper-container {
        width: 90%;
        height: 50vh;
    }

    .timer-container {
        flex-wrap: wrap;
    }

    .timer-item {
        min-width: 80px;
    }

    .timer-item span:first-child {
        font-size: 2rem;
    }

    .footer-content p {
        font-size: 12vw;
    }

    .additional-field,
    .alcohol-field {
        transition: all 0.3s ease;
    }
}