:root {
    --primary: #881A31; /* Burgundy from screenshot */
    --accent-pink: #FADADD;
    --text-dark: #1a1a1a; /* Глубокий темный вместо #333 */
    --text-muted: #444; /* Насыщенный серый вместо #666 */
    --bg-white: #ffffff;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('assets/peony_bg.png');
    background-attachment: fixed;
    background-size: cover;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
}

.calligraphy {
    font-family: 'Great Vibes', cursive;
    text-transform: none;
    letter-spacing: 0;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('assets/peony_bg.png') center/cover;
    padding: 60px 20px;
}

.header-top {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
    font-weight: 300;
}

.header-top .divider {
    color: var(--primary); /* Делаем разделитель ярким акцентным */
    font-weight: 600;
}

.greeting-container {
    margin-bottom: 40px;
}

#guest-greeting {
    font-size: 4rem;
    color: var(--primary); /* Делаем приветствие ярким */
    margin-bottom: 15px;
    line-height: 1;
}

.invite-text {
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.3rem; /* Чуть увеличим размер */
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500; /* И плотность */
}

.names-main {
    font-size: 4.5rem;
    margin: 40px 0;
    color: var(--primary); /* Имена теперь яркие */
    font-weight: 400; /* Плотнее, чтобы цвет лучше читался */
    letter-spacing: 5px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.waiting-text {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 50px;
}

/* Timer Minimal */
.timer-minimal {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 60px;
    color: var(--text-dark); /* Обеспечиваем четкость таймера */
}

.timer-item {
    min-width: 70px;
}

.timer-item span {
    display: block;
    font-size: 2.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 5px;
}

.timer-item p {
    font-size: 0.75rem;
    text-transform: uppercase; /* Делаем чуть заметнее */
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--primary); /* Подписи таймера в цвете темы */
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 18px 60px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
    border-radius: 4px;
}

.btn-primary:hover {
    background: #6a1426;
    transform: translateY(-2px);
}

/* About Us */
.about-us {
    padding: 100px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
}

.about-us h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary);
}

.couple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.photo-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 100px 100px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-photo {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Details Premium */
.details-premium {
    padding: 120px 0;
    background: linear-gradient(to bottom, #fff, rgba(250, 218, 221, 0.15), #fff);
    position: relative;
    overflow: hidden;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.detail-card {
    background: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 30px;
    border: 1px solid var(--accent-pink);
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 10px 40px rgba(136, 26, 49, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(136, 26, 49, 0.1);
    border-color: var(--primary);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: rgba(136, 26, 49, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.detail-card:hover .detail-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(10deg);
}

.detail-card h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
}

.detail-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0;
    max-width: 320px;
}

.detail-card p + p {
    margin-top: 15px;
}

/* RSVP Premium */
.rsvp-peony {
    padding: 140px 0;
    background: linear-gradient(rgba(136, 26, 49, 0.08), rgba(136, 26, 49, 0.03)), url('assets/peony_bg.png') center/cover fixed;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsvp-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 80px 60px;
    text-align: center;
    border-radius: 40px;
    border: 1px solid rgba(250, 218, 221, 0.6);
    box-shadow: 0 30px 70px rgba(136, 26, 49, 0.1);
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.rsvp-box h2 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

.rsvp-box p {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.btn-rsvp {
    background: linear-gradient(45deg, var(--primary), #a6203c);
    color: white;
    padding: 22px 70px;
    border: none;
    border-radius: 60px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(136, 26, 49, 0.3);
    position: relative;
    overflow: hidden;
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0% { transform: scale(1); box-shadow: 0 10px 30px rgba(136, 26, 49, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 15px 45px rgba(136, 26, 49, 0.5); }
    100% { transform: scale(1); box-shadow: 0 10px 30px rgba(136, 26, 49, 0.3); }
}

.btn-rsvp:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 20px 50px rgba(136, 26, 49, 0.5);
    animation: none;
}

.thank-you {
    margin-top: 30px;
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0;
    transform: scale(0.8);
    display: none; /* Will be toggled in JS */
}

.thank-you.show {
    display: block;
    animation: successPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes successPop {
    to { opacity: 1; transform: scale(1); }
}

/* Floating Hearts/Petals bg */
.rsvp-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    color: var(--primary);
    opacity: 0.15;
    animation: floatHeart 15s linear infinite;
}

@keyframes floatHeart {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.15; }
    80% { opacity: 0.15; }
    100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.hidden { display: none; }

/* Timeline Premium */
.schedule-premium {
    padding: 120px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.schedule-premium::before {
    content: '';
    position: absolute;
    top: 50px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: url('assets/peony_bg.png') no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
}

.modern-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 50px; /* Offset for the line */
    z-index: 1;
}

.modern-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--accent-pink), var(--primary), var(--accent-pink), transparent);
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
}

.timeline-icon {
    position: absolute;
    left: -50px;
    top: 0;
    width: 31px;
    height: 31px;
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.8rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.2);
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(136, 26, 49, 0.05);
    border-left: 3px solid var(--accent-pink);
    transition: transform 0.3s ease;
}

.timeline-step:hover .timeline-content {
    transform: translateX(10px);
}

.step-time {
    display: block;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.location {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text {
    font-size: 1rem;
    color: var(--text-dark); /* Более темный текст в описании */
    font-weight: 400; /* Увеличиваем плотность */
}

/* Responsive Design */
@media (max-width: 992px) {
    .container { padding: 0 40px; }
    .names-main { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    body { background-attachment: scroll; } /* Better performance on mobile */
    
    .hero-content { padding: 30px 15px; }
    
    #guest-greeting { font-size: 2.8rem; }
    .names-main { font-size: 2.5rem; letter-spacing: 2px; margin: 30px 0; }
    .waiting-text { font-size: 1.8rem; margin-bottom: 30px; }
    
    .timer-minimal { gap: 10px; margin-bottom: 40px; }
    .timer-item { min-width: 55px; }
    .timer-item span { font-size: 1.8rem; }
    .timer-item p { font-size: 0.6rem; }

    .section-title { font-size: 2.2rem; margin-bottom: 50px; }
    
    .couple-grid { grid-template-columns: 1fr; gap: 30px; }
    .main-photo { height: 350px; }

    .modern-timeline { padding-left: 35px; }
    .modern-timeline::before { left: 10px; }
    .timeline-icon { left: -39px; width: 28px; height: 28px; font-size: 0.7rem; }
    .timeline-content { padding: 20px; }
    .timeline-content h3 { font-size: 1.3rem; }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .detail-card {
        padding: 40px 30px;
    }

    .detail-card h3 {
        font-size: 1.6rem;
    }

    .rsvp-box { padding: 40px 20px; }
    .rsvp-box h2 { font-size: 2rem; }
    #rsvp-form { max-width: 100%; }
}

@media (max-width: 480px) {
    .header-top { font-size: 0.7rem; gap: 10px; margin-bottom: 30px; }
    #guest-greeting { font-size: 2.2rem; }
    .names-main { font-size: 2rem; }
    .waiting-text { font-size: 1.5rem; }
    
    .timer-item { min-width: 45px; }
    .timer-item span { font-size: 1.4rem; }
    
    .btn-primary { width: 100%; padding: 18px 20px; font-size: 0.8rem; }
    
    .timeline-content { border-left-width: 2px; }
    .step-time { font-size: 1rem; }
    
    .thank-you { font-size: 2.2rem; }
}
