/* --- ЦВЕТА И ШРИФТЫ --- */
:root {
    --burgundy: #7B2D3B;
    --burgundy-dark: #5A1A28;
    --burgundy-light: #9E4A5A;
    --rose: #C9A0A0;
    --rose-light: #E8D5D5;
    --gold: #D4A574;
    --gold-light: #E8C9A0;
    --cream: #FFF8F5;
    --text-dark: #3a2a2a;
    --text-light: #6b4f4f;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    --font-script: 'Alex Brush', cursive;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-image: linear-gradient(
        rgba(255, 248, 245, 0.75),
        rgba(255, 248, 245, 0.75)
    ), url('silk.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

/* --- БАЗОВЫЕ ТЕКСТЫ --- */
h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 400;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
}

.script {
    font-family: var(--font-script);
    text-transform: none;
    font-size: 3rem;
    color: var(--burgundy);
    margin-top: -15px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    /* Плавная смена цвета — «дыхание» */
    animation: script-breathe 5s ease-in-out infinite;
}

/* Золотая линия снизу — рисуется при появлении */
.script::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: linear-gradient(90deg, var(--gold), var(--burgundy-light), var(--gold));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
    pointer-events: none;
}

/* Линия появляется вместе с visible-классом у script-animated */
.script-animated.visible::after {
    width: 100%;
}

/* «Дыхание» цвета */
@keyframes script-breathe {
    0%, 100% { color: var(--burgundy); }
    50%       { color: var(--burgundy-light); }
}

/* Элегантная анимация появления снизу */
.script-animated {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
                transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.script-animated.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* --- АНИМАЦИИ ПОЯВЛЕНИЯ --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease-out, transform 0.9s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger-задержки (присваиваются через JS) */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* --- СЕКЦИИ --- */
.section {
    padding: 80px 20px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.section-subtitle {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* ==========================================
   ОБЛОЖКА (HERO)
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 30px;
    position: relative;
    overflow: hidden;
    gap: 10px;
}

/* Тонкая бордовая виньетка по краям hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(90, 26, 40, 0.06) 100%
    );
}

.hero-top {
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    z-index: 2;
}

.names-block {
    z-index: 2;
}

.names-block h1 {
    font-size: 3rem;
    line-height: 1.4;
    letter-spacing: 4px;
}

.names-block .ampersand {
    font-size: 2.2rem;
    font-style: normal;
    font-family: var(--font-sans);
    font-weight: 200;
    display: block;
    margin: 10px 0;
    color: var(--burgundy);
    letter-spacing: 4px;
}

.hero-date {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: 2px;
    text-transform: lowercase;
    z-index: 2;
}
.hero-date .day {
    display: block;
    font-size: 2.5rem;
    margin: 5px 0;
    color: var(--burgundy);
}

/* --- SCROLL INDICATOR --- */
.scroll-indicator {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: scroll-bounce 2.2s ease-in-out infinite;
    cursor: pointer;
}

.scroll-indicator span {
    font-size: 0.55rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rose);
}

.scroll-indicator .arrow {
    width: 20px;
    height: 20px;
    border-right: 1.5px solid var(--burgundy);
    border-bottom: 1.5px solid var(--burgundy);
    transform: rotate(45deg);
    opacity: 0.5;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50%      { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ==========================================
   HERO PHOTO (фото пары на обложке)
   ========================================== */
.hero-photo {
    width: 100%;
    max-width: 340px;
    margin: 20px auto 0;
    z-index: 2;
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    border-radius: 180px 180px 12px 12px;
    box-shadow: 0 20px 50px rgba(90, 26, 40, 0.18);
    border: 4px solid rgba(255, 255, 255, 0.6);
}

/* ==========================================
   ДЕКОРАТИВНЫЕ РАЗДЕЛИТЕЛИ
   ========================================== */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 10px auto 30px;
    max-width: 200px;
}

.section-divider .line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
}

.section-divider .diamond {
    width: 6px;
    height: 6px;
    background: var(--burgundy);
    transform: rotate(45deg);
    flex-shrink: 0;
    opacity: 0.6;
}

/* Большой разделитель между секциями */
.ornament-divider {
    text-align: center;
    padding: 30px 0;
    position: relative;
}

.ornament-divider::before {
    content: '✦';
    display: block;
    font-size: 0.8rem;
    color: var(--burgundy);
    opacity: 0.35;
    letter-spacing: 16px;
    margin-bottom: 8px;
}

.ornament-divider::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--rose), transparent);
    margin: 0 auto;
}

/* ==========================================
   ВСТУПЛЕНИЕ И ВОДЯНОЙ ЗНАК
   ========================================== */
.intro-text {
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.watermark-container {
    position: relative;
    padding: 40px 0;
}

.watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 4.5rem;
    color: var(--burgundy);
    opacity: 0.06;
    white-space: nowrap;
    z-index: -1;
    pointer-events: none;
}

/* ==========================================
   ИЗОБРАЖЕНИЯ, ФОТО И ДЕКОР
   ========================================== */
.intro-img {
    width: 100%;
    max-width: 350px;
    height: 450px;
    object-fit: cover;
    border-radius: 200px 200px 0 0;
    margin: 40px auto 20px;
    box-shadow: 0 15px 40px rgba(123, 45, 59, 0.12);
    display: block;
}

/* ==========================================
   ФОТО ПАРЫ — элегантный портрет
   ========================================== */
.couple-photo-divider {
    width: 100%;
    max-width: 560px;
    margin: 60px auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(90, 26, 40, 0.22),
        0 0 0 1px rgba(201, 160, 160, 0.3);
}

.couple-photo-divider img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center 15%;
    display: block;
    transition: transform 7s ease;
}

.couple-photo-divider:hover img {
    transform: scale(1.05);
}

/* Тонкая бордовая полоса снизу */
.couple-photo-divider::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to top,
        rgba(90, 26, 40, 0.45) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 620px) {
    .couple-photo-divider {
        max-width: 100%;
        border-radius: 0;
        margin: 40px 0;
    }
    .couple-photo-divider img {
        height: 420px;
    }
}

/* --- ДЕТСКИЕ ФОТО (объединённая композиция) --- */
.childhood-photos-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 480px;
    margin: 20px auto 50px auto;
    position: relative;
    padding: 0 20px;
}

.photo-wrapper {
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 12px 35px rgba(123, 45, 59, 0.12);
    width: 55%;
    max-width: 240px;
    transition: transform 0.5s ease, box-shadow 0.5s ease, z-index 0s;
    position: relative;
    overflow: hidden;
}

/* Левое фото (жених) — наклон влево */
.photo-wrapper:first-child {
    transform: rotate(-4deg);
    z-index: 1;
    margin-right: -30px;
}

.photo-wrapper:first-child:hover {
    transform: rotate(-2deg) translateY(-8px) scale(1.05);
    z-index: 3;
    box-shadow: 0 20px 45px rgba(123, 45, 59, 0.2);
}

/* Правое фото (невеста) — наклон вправо */
.photo-wrapper:last-child {
    transform: rotate(4deg);
    z-index: 2;
    margin-left: -30px;
}

.photo-wrapper:last-child:hover {
    transform: rotate(2deg) translateY(-8px) scale(1.05);
    z-index: 3;
    box-shadow: 0 20px 45px rgba(123, 45, 59, 0.2);
}

/* Бордовый hover-акцент */
.photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--burgundy), var(--gold), var(--burgundy));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.photo-wrapper:hover::after {
    transform: scaleX(1);
}

.photo-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    display: block;
}

/* Сердечко между фотографиями */
.photos-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    font-size: 1.6rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(123, 45, 59, 0.15);
    color: var(--burgundy);
    pointer-events: none;
}

/* ==========================================
   ЛОКАЦИЯ
   ========================================== */
.location-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    width: 100%;
}

.location-block h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--burgundy-dark);
}

.location-block .venue-address {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
}

.venue-address {
    margin-top: 10px;
    font-size: 0.9rem;
}

.venue-img {
    width: 100%;
    max-width: 300px;
    height: 180px;
    object-fit: cover;
    border-radius: 100px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(123, 45, 59, 0.08);
}

.venue-hint {
    font-size: 0.7rem;
    color: #888;
    text-transform: lowercase;
    margin-bottom: 20px;
}

.single-map {
    width: 100%;
    max-width: 800px;
    background-color: #ffffff;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(123, 45, 59, 0.08);
    transition: box-shadow 0.3s ease;
}

.single-map:hover {
    box-shadow: 0 16px 45px rgba(123, 45, 59, 0.14);
}

.single-map iframe {
    border-radius: 8px;
    display: block;
}

/* ==========================================
   КНОПКИ
   ========================================== */
.btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 14px 36px;
    border: 1.5px solid var(--burgundy);
    color: var(--burgundy);
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--burgundy);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn-outline:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-outline:hover {
    color: #fff;
    border-color: var(--burgundy);
    box-shadow: 0 6px 20px rgba(123, 45, 59, 0.25);
}

/* Glow-пульсация на RSVP-кнопке */
#rsvp .btn-outline {
    animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(123, 45, 59, 0); }
    50%      { box-shadow: 0 0 20px 4px rgba(123, 45, 59, 0.15); }
}

/* ==========================================
   ТАЙМИНГ / ТАЙМЛАЙН
   ========================================== */
.timeline {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.time-row {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 20px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.time-row.visible {
    opacity: 1;
    transform: translateX(0);
}

.time-row .icon {
    font-size: 1.4rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-dark));
    border-radius: 50%;
    flex-shrink: 0;
    filter: none;
    font-style: normal;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(123, 45, 59, 0.2);
}

.time-row .time {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-style: italic;
    color: var(--burgundy-dark);
    width: 120px;
    flex-shrink: 0;
    line-height: 1;
    text-align: right;
}

.time-row .desc {
    font-size: 0.75rem;
    text-transform: lowercase;
    border-left: 1.5px solid var(--rose);
    padding-left: 20px;
}

/* ==========================================
   ПОДСКАЗКИ / FAQ — АККОРДЕОН
   ========================================== */
.faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(123, 45, 59, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item.open {
    border-color: rgba(123, 45, 59, 0.22);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.08);
}

/* Кнопка-заголовок */
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--burgundy-dark);
    text-align: left;
    gap: 12px;
    transition: background 0.2s ease;
}

.faq-trigger:hover {
    background: rgba(123, 45, 59, 0.04);
}

/* Стрелочка-индикатор */
.faq-arrow {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid rgba(123, 45, 59, 0.3);
    position: relative;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease,
                border-color 0.3s ease;
}

/* Треугольник внутри */
.faq-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 1.5px solid var(--burgundy);
    border-bottom: 1.5px solid var(--burgundy);
    transition: border-color 0.3s ease;
}

/* Открытое состояние — стрелка поворачивается */
.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    background: var(--burgundy);
    border-color: var(--burgundy);
}

.faq-item.open .faq-arrow::after {
    border-color: #fff;
}

/* Тело аккордеона */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.open .faq-body {
    max-height: 300px;
    padding: 0 24px 20px;
}

/* Бордовая полоса слева при открытии */
.faq-body::before {
    content: '';
    display: block;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold), var(--burgundy));
    margin-bottom: 12px;
    border-radius: 2px;
    transition: height 0.5s ease 0.1s;
    float: left;
    margin-right: 14px;
}

.faq-item.open .faq-body::before {
    height: 100%;
}

.faq-body p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-light);
    overflow: hidden;
}

/* ==========================================
   ВТОРОЙ ДЕНЬ
   ========================================== */
.day2-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(123, 45, 59, 0.1);
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 30px rgba(123, 45, 59, 0.07);
    margin-top: 20px;
}

.day2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy));
}

.day2-date {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.day2-badge {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 220, 185, 0.85);
    border: 1px solid rgba(255, 200, 160, 0.35);
    padding: 4px 10px;
    border-radius: 20px;
}

.day2-body {
    padding: 24px;
}

/* Таймлайн внутри day2 чуть компактнее */
.day2-body .timeline {
    gap: 20px;
}

.day2-body .time-row .time {
    font-size: 2rem;
    width: 100px;
}


/* --- ВИДЖЕТ ГРУППОВОГО ЧАТА --- */
.chat-widget {
    margin-top: 10px;
    margin-bottom: 30px;
    padding: 28px 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(123, 45, 59, 0.06), rgba(212, 165, 116, 0.06));
    border: 1px solid rgba(123, 45, 59, 0.1);
    text-align: center;
}

.chat-widget h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--burgundy-dark);
    margin-bottom: 8px;
    text-transform: none;
}

.chat-widget p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 18px;
    line-height: 1.6;
}

.chat-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--burgundy);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.72rem;
    font-family: var(--font-sans);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(123, 45, 59, 0.2);
}

.chat-link:hover {
    background: var(--burgundy-dark);
    box-shadow: 0 6px 25px rgba(123, 45, 59, 0.3);
    transform: translateY(-2px);
}

.chat-link .chat-icon {
    font-size: 1.1rem;
    line-height: 1;
}

/* ==========================================
   ФОРМА RSVP
   ========================================== */
.rsvp-intro {
    font-size: 0.8rem;
    margin-top: 10px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

input[type="text"] {
    width: 100%;
    padding: 15px 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-dark);
    background: transparent;
    border: none;
    border-bottom: 1.5px solid var(--rose);
    outline: none;
    text-align: center;
    transition: border-color 0.4s ease;
}
input[type="text"]:focus {
    border-color: var(--burgundy);
}
input::placeholder {
    color: var(--rose);
}

.radio-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8rem;
    margin-top: 10px;
}
.radio-group label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}
.radio-group label:hover {
    color: var(--burgundy);
}

/* Стилизация radio-кнопок */
.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--rose);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.radio-group input[type="radio"]:checked {
    border-color: var(--burgundy);
}
.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--burgundy);
}

#formMessage {
    display: none;
    margin-top: 20px;
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--burgundy);
}

/* ==========================================
   ТАЙМЕР ОБРАТНОГО ОТСЧЁТА
   ========================================== */
.countdown-container {
    margin-top: 80px;
}
.countdown-title {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    padding: 12px 8px;
    background: rgba(123, 45, 59, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(123, 45, 59, 0.08);
    transition: transform 0.3s ease;
}
.time-box:hover {
    transform: scale(1.08);
}

.time-box span {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--burgundy-dark);
    transition: transform 0.3s ease;
}
.time-box small {
    font-size: 0.55rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rose);
    margin-top: 4px;
}

.monogram {
    font-family: var(--font-script);
    font-size: 2.2rem;
    margin-top: 50px;
    color: var(--burgundy);
    position: relative;
    display: inline-block;
}

/* ==========================================
   PARTICLE BURST (RSVP сердечки)
   ========================================== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.heart-particle {
    position: absolute;
    font-size: 1rem;
    animation: heart-burst 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes heart-burst {
    0%   { opacity: 1;  transform: translate(0, 0)  scale(0.5); }
    50%  { opacity: 0.8; }
    100% { opacity: 0;  transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot)); }
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    text-align: center;
    padding: 40px 20px 30px;
    border-top: 1px solid rgba(123, 45, 59, 0.08);
}

.footer-monogram {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--burgundy);
    margin-bottom: 10px;
}

.footer-text {
    font-size: 0.65rem;
    letter-spacing: 1px;
    color: var(--rose);
}

.footer-text .heart {
    color: var(--burgundy);
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    15%      { transform: scale(1.25); }
    30%      { transform: scale(1); }
    45%      { transform: scale(1.15); }
}

/* ==========================================
   МОБИЛЬНАЯ АДАПТАЦИЯ
   ========================================== */
@media (max-width: 600px) {
    .childhood-photos-container {
        max-width: 320px;
        padding: 0 10px;
    }

    .photo-wrapper {
        width: 60%;
    }

    .photo-wrapper:first-child {
        margin-right: -20px;
    }

    .photo-wrapper:last-child {
        margin-left: -20px;
    }
    
    .photo-wrapper img {
        height: 240px;
    }

    .photos-heart {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .hero-photo img {
        height: 320px;
        max-width: 260px;
    }

    .names-block h1 {
        font-size: 2.2rem;
    }

    .time-row .time {
        font-size: 2rem;
        width: 90px;
    }

    .time-row .icon {
        width: 30px;
        height: 30px;
        font-size: 1.1rem;
    }

    .script {
        font-size: 2.4rem;
    }

    .watermark {
        font-size: 3rem;
    }

    .countdown {
        gap: 10px;
    }

    .time-box {
        width: 60px;
    }
}

@media (max-width: 768px) {
    .maps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
}

/* Reduced motion для доступности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   КОЛЛАЖ «КАК В ДЕТСТВЕ»
   ========================================== */
.collage-card {
    position: relative;
    background-color: #faf6ee;
    border-radius: 6px;
    overflow: hidden;
    max-width: 420px;
    margin: 30px auto 20px;
    box-shadow:
        0 4px 20px rgba(123, 45, 59, 0.08),
        0 1px 3px rgba(0,0,0,0.06);
}

/* ---- ДИАЛОГ ---- */
.collage-dialogue {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 22px 6px 22px;
    gap: 10px;
    font-family: 'Caveat', cursive;
    font-size: 1.05rem;
    color: #3a2020;
    line-height: 1.4;
    z-index: 2;
}

.dialogue-left {
    max-width: 55%;
    text-align: left;
}

.dialogue-right {
    max-width: 40%;
    text-align: right;
    align-self: flex-start;
    margin-top: 4px;
}

/* ---- ФОТОГРАФИИ ---- */
.collage-photos {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 10px;
    min-height: 300px;
}

.collage-photo {
    position: relative;
    flex-shrink: 0;
}

.collage-photo img {
    display: block;
    width: 200px;
    height: 260px;
    object-fit: cover;
    object-position: center top;
    /* Имитация «вырезки» — розовый контур через drop-shadow */
    filter:
        drop-shadow(0 0 0px #e8497a)
        drop-shadow(0 0 3px #e8497a)
        drop-shadow(0 0 6px #e8497a)
        drop-shadow(2px -2px 0px #fff)
        drop-shadow(-2px 2px 0px #fff);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.collage-photo:hover img {
    transform: scale(1.03) translateY(-4px);
}

/* Левое фото (невеста) — наклон влево, чуть выше */
.collage-photo--left {
    z-index: 2;
    margin-right: -40px;
    margin-bottom: -6px;
}
.collage-photo--left img {
    transform: rotate(-3deg);
}
.collage-photo--left:hover img {
    transform: rotate(-1.5deg) scale(1.03) translateY(-4px);
}

/* Правое фото (жених) — ровнее, выходит за карточку снизу */
.collage-photo--right {
    z-index: 1;
    margin-bottom: -10px;
}
.collage-photo--right img {
    transform: rotate(2deg);
    width: 185px;
    height: 245px;
}
.collage-photo--right:hover img {
    transform: rotate(1deg) scale(1.03) translateY(-4px);
}

/* ---- ПОЛОСА СНИЗУ ---- */
.collage-footer-bar {
    height: 22px;
    background: linear-gradient(90deg, var(--burgundy-dark), var(--burgundy), var(--burgundy-dark));
    margin-top: 8px;
}

/* ---- МОБИЛЬНАЯ АДАПТАЦИЯ ---- */
@media (max-width: 480px) {
    .collage-card {
        max-width: 340px;
    }

    .collage-dialogue {
        font-size: 0.92rem;
        padding: 16px 16px 4px;
    }

    .collage-photo img {
        width: 160px;
        height: 210px;
    }

    .collage-photo--right img {
        width: 148px;
        height: 198px;
    }

    .collage-photo--left {
        margin-right: -30px;
    }
}

/* ==========================================
   КОЛЛАЖ ДЕТСКИХ ФОТО — прозрачный фон
   ========================================== */
.kids-collage-wrapper {
    background: transparent;
    max-width: 520px;
    margin: 20px auto 10px;
    position: relative;
}

.kids-collage-wrapper .collage-dialogue {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 0 10px 8px 10px;
    font-family: 'Caveat', cursive;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.kids-collage-img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 480px) {
    .kids-collage-wrapper {
        max-width: 340px;
    }
    .kids-collage-wrapper .collage-dialogue {
        font-size: 0.9rem;
    }
}

/* ==========================================
   ОВЕРЛЕЙ НА ФОТО ПАРЫ
   ========================================== */
.couple-photo-divider {
    position: relative;
}

.couple-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px 24px;
    background: linear-gradient(to top, rgba(60, 15, 25, 0.72) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.couple-photo-divider:hover .couple-photo-overlay {
    opacity: 1;
}

/* Всегда показываем текст на мобильных */
@media (max-width: 620px) {
    .couple-photo-overlay {
        opacity: 1;
    }
}

.couple-photo-monogram {
    font-family: var(--font-script);
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.couple-photo-date {
    font-family: var(--font-sans);
    font-weight: 200;
    font-size: 0.65rem;
    letter-spacing: 4px;
    color: rgba(255, 220, 190, 0.85);
    text-transform: uppercase;
}

/* ==========================================
   ПЛАВАЮЩИЕ ФОНОВЫЕ ЧАСТИЦЫ
   ========================================== */
.bg-particles {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--burgundy);
    opacity: 0;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.06; }
    90%  { opacity: 0.04; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ==========================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ БУКВ В ИМЕНАХ (hero)
   ========================================== */
.name-char-anim .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: char-rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes char-rise {
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   ПУЛЬСИРУЮЩИЕ КОЛЬЦА НА TIME-BOX
   ========================================== */
.time-box {
    position: relative;
}

.time-box::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 10px;
    border: 1px solid rgba(123, 45, 59, 0);
    transition: border-color 0.3s ease, inset 0.3s ease;
}

.time-box:hover::before {
    border-color: rgba(123, 45, 59, 0.2);
    inset: -3px;
}

/* ==========================================
   HOVER-ЭФФЕКТ НА FAQ КАРТОЧКАХ — glow
   ========================================== */
.faq-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(123, 45, 59, 0.18);
    box-shadow: 0 12px 40px rgba(123, 45, 59, 0.1),
                0 0 0 1px rgba(212, 165, 116, 0.12);
}

/* ==========================================
   АНИМИРОВАННЫЙ ОРНАМЕНТАЛЬНЫЙ РАЗДЕЛИТЕЛЬ
   ========================================== */
.ornament-divider {
    animation: divider-pulse 4s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}