:root {
    --bg-color: #C4B5A7;
    --dot-color: #FFFFFF;
    --text-color: #000000;
    --white-panel: #FFFFFF;
    --script-font: 'Caveat', cursive;
    --sans-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--sans-font);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle, var(--dot-color) var(--dot-size), transparent var(--dot-size));
    background-size: 50px 50px;
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Watermark Background */
.watermark-bg {
    display: none;
}

.watermark-bg::before,
.watermark-bg::after {
    content: "НЕ ОПЛАЧЕНО";
    position: absolute;
    width: 200%;
}

.watermark-bg::before {
    left: -50%;
    top: 20%;
}

.watermark-bg::after {
    left: -50%;
    top: 60%;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Script Font */
.script-font {
    font-family: var(--script-font);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.heart-icon {
    font-size: 24px;
    color: var(--bg-color);
    margin-bottom: 20px;
}

.couple-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.photo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 12px 12px 28px 12px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    transform: rotate(-2deg);
}

.photo-wrapper:nth-child(3) {
    transform: rotate(2deg);
}

.couple-photo {
    width: 170px;
    height: 190px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
    margin-bottom: 10px;
    background: #fafafa;
}

.couple-name {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-color);
}

.plus-sign {
    font-size: 28px;
    font-weight: 300;
    color: var(--text-color);
    margin: 0 10px;
}

.couple-combined {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.divider {
    width: 80%;
    height: 1px;
    background: #E0E0E0;
    margin: 20px auto;
}

.main-message {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.event-date {
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer-number {
    font-size: 36px;
    font-weight: 700;
    color: #1E40AF;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-label {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: lowercase;
}

/* Invitation Section */
.invitation-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.greeting {
    font-size: 36px;
    margin-bottom: 25px;
    color: var(--text-color);
}

.invitation-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
}

.event-details {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-color);
}

.couple-photo-large {
    margin: 30px 0;
}

.couple-photo-large img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quote {
    font-size: 28px;
    margin-top: 30px;
    color: var(--text-color);
}

/* Gift Section */
.gift-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.gift-text {
    font-size: 16px;
    line-height: 1.8;
    text-align: left;
    color: var(--text-color);
}

/* Confirmation Section */
.confirmation-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #5A4B40;
}

.confirmation-deadline {
    font-size: 16px;
    margin-bottom: 20px;
    color: #6B5B4F;
}

.confirmation-message {
    font-size: 32px;
    margin-bottom: 30px;
    color: #5A4B40;
}

/* RSVP Form */
.rsvp-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E6DACE;
    border-radius: 8px;
    font-family: var(--sans-font);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
}

.submit-button {
    width: 100%;
    padding: 14px;
    background: #D9C9BC;
    color: #3A2F28;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-button:hover {
    background: #CDBCAD;
}

.rsvp-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.rsvp-message.success {
    background: #D1FAE5;
    color: #065F46;
    display: block;
}

.rsvp-message.error {
    background: #FEE2E2;
    color: #991B1B;
    display: block;
}

/* Color Palette Section */
.color-palette-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.palette-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #E5E7EB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Schedule Section */
.schedule-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.schedule-item {
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px 18px;
    background: #FAFAFA;
}

.schedule-item-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: baseline;
    margin-bottom: 6px;
}

.schedule-time {
    font-weight: 600;
    color: #1E40AF;
    font-size: 14px;
}

.schedule-title {
    font-weight: 600;
    font-size: 16px;
}

.schedule-place {
    font-size: 14px;
    color: #6B7280;
}

.schedule-desc {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* Map Section */
.map-section {
    background: var(--white-panel);
    border-radius: 15px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
}

/* Admin Link */

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 15px;
    }
    
    .hero-section,
    .invitation-section,
    .gift-section,
    .confirmation-section,
    .color-palette-section {
        padding: 30px 20px;
    }
    
    .couple-photo {
        width: 120px;
        height: 120px;
    }
    
    .couple-name {
        font-size: 28px;
    }
    
    .timer-number {
        font-size: 28px;
    }
    
    .greeting {
        font-size: 32px;
    }
    
    .confirmation-message {
        font-size: 28px;
    }
    
    .watermark-bg {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .couple-photos {
        flex-direction: column;
        gap: 15px;
    }
    
    .plus-sign {
        transform: rotate(90deg);
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .timer-block {
        min-width: 50px;
    }
    
    .timer-number {
        font-size: 24px;
    }
    
    .color-swatch {
        width: 60px;
        height: 60px;
    }
}
