
.great-vibes-regular {
    font-family: "Great Vibes", cursive;
    font-weight: 400;
    font-style: normal;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.vibes {
    font-family: "Great Vibes", cursive;
}

h2 {
    font-family: "Great Vibes", cursive;
    font-size: 70px;
    line-height: 70px;
    margin-bottom: 40px;
    font-weight: normal;
}
/* Базовое состояние для всех заголовков */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px); /* Сдвиг для анимации снизу вверх */
    transition: all 1.2s ease-out; /* Плавность появления */
}

/* Состояние после того, как JS добавит класс 'visible' */
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.wedding-title {
    font-family: "Great Vibes", cursive;
}

body {
    font-family: 'Georgia', serif;
    background-color: #e9dfd7;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
    position: relative;
}

/* БЛОК 0: Анимация Прелоадера */
.preloader {
    position: fixed;
    inset: 0;
    background-color: #6b4f38;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    overflow: hidden;
}
.preloader-wrap-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    z-index: 10;
}
.preloader-text {
    font-size: 140px;
    font-family: 'Georgia', serif;
    color: #ffffff;
    font-weight: 400;
    line-height: 0.9;
    opacity: 0;
    will-change: transform, opacity;
}
.preloader-decor {
    position: absolute;
    width: 450px;
    height: auto;
    opacity: 0.25;
    pointer-events: none;
    z-index: 1;
}
.preloader-decor img {
    width: 100%;
    height: auto;
}
.decor-top-left {
    top: -5%;
    left: -10%;
    transform: rotate(-15deg);
    animation: leafSwayLeft 8s infinite ease-in-out;
}
.decor-bottom-right {
    bottom: -5%;
    right: -10%;
    transform: rotate(15deg);
    animation: leafSwayRight 8s infinite ease-in-out;
}
.fade-in-left { animation: flyFromLeft 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards; animation-delay: 0.2s; }
.fade-in-right { animation: flyFromRight 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards; animation-delay: 0.5s; }
.fade-in-left-delayed { animation: flyFromLeft 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards; animation-delay: 0.8s; }

@keyframes flyFromLeft { 0% { opacity: 0; transform: translateX(-80px); } 100% { opacity: 0.25; transform: translateX(0); } }
@keyframes flyFromRight { 0% { opacity: 0; transform: translateX(80px); } 100% { opacity: 0.25; transform: translateX(0); } }
@keyframes leafSwayLeft { 0%, 100% { transform: rotate(-15deg) scale(1); } 50% { transform: rotate(-20deg) scale(1.03); } }
@keyframes leafSwayRight { 0%, 100% { transform: rotate(15deg) scale(1); } 50% { transform: rotate(18deg) scale(1.03); } }

@media screen and (max-width: 479px) {
    .preloader-text { font-size: 110px; line-height: 0.85; }
    .preloader-decor { width: 320px; }
}
section{overflow: hidden;}
/* БЛОК 1: Hero экран */
/* БЛОК 1: Hero экран */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    /* Увеличиваем размер фона до 110%, чтобы было куда двигаться */
    background: url('/Mocha_Mousse_Wedding.jpg') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Важно, чтобы края фона при движении не были видны */

    /* Применяем анимацию */
    animation: heroBackgroundMove 40s infinite ease-in-out;
}

@keyframes heroBackgroundMove {
    0% { background-position: center center; }
    25% { background-position: 20px center; }
    50% { background-position: center center; }
    75% { background-position: -20px center; }
    100% { background-position: center center; }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(107, 79, 56, 0.55);
}

.hero-content { position: relative; z-index: 2; }
.save-the-date { font-size: 20px; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; }
.main-date {     font-family: 'Georgia', serif;
    font-size: 60px;
    letter-spacing: 2px;
    margin: 29px 0 50px; }

.btn-music, .btn-action, .btn-submit, .btn-telegram {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 23px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.btn-music:hover, .btn-action:hover, .btn-submit:hover, .btn-telegram:hover {
    background-color: #ffffff;
    color: #6b4f38;
}
.hidden { display: none; }
/* Цветок на позиции справа */
.flower-right-absolute {
    position: absolute;
    top: 2%;      /* Настрой высоту под себя */
    right: -250px; /* Изначально спрятан за правым краем */
    width: 250px;
    z-index: 5;
    opacity: 0;
    transition: all 1.5s ease-out; /* Плавность появления */
    transform: rotate(9deg);
}

/* Класс, который будет добавлять JS при скролле */
.flower-right-absolute.show {
    opacity: 1;
}
/* Календарь */
.calendar {
    position: relative;
    display: inline-block;
    margin: 30px auto;
}
.calendar img {
    display: block;
    max-width: 100%;
    height: auto;
}
.calendar .heart {
    position: absolute;
    z-index: 10;
    top: 55%;
    left: 79.5%;
    width: 80px;
    height: auto;
    transform: translate(-50%, -50%);
    animation: heartPulse 2s infinite ease-in-out;
    will-change: transform;
}
@keyframes heartPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}
.weddin-photo img{width: 100%; max-width: 320px;margin-bottom: 30px;}
/* БЛОК 2: Текст и таймер */
.invitation-section {
    background-color: #6b4f38;
    padding: 60px 0;
}
.invitation-text { font-size: 22px; line-height: 33px; font-weight: 300; margin-bottom: 50px; padding: 0 20px; }
.countdown-container { width: 100%; margin: 40px auto 0; padding: 45px 10px;    border-radius: 24px; background: linear-gradient(rgb(215 198 160 / 50%), rgb(215 198 160 / 50%)), url(/timer-bg.png) center center / cover no-repeat #eadacd00; position: relative}
.countdown-title { font-family: "Great Vibes", cursive; font-size: 46px; color: #6b4f38; margin-bottom: 35px; font-weight: 400; text-shadow: 0 2px 4px rgb(255 255 255 / 50%); }
/* Цветок в блоке таймера */
#flower-countdown {
    position: absolute;
    top: 10%;        /* Настрой вертикаль под себя */
    right: -300px;   /* Начальная точка за пределами экрана */
    width: 300px;    /* Размер цветка */
    height: auto;
    opacity: 0.5;    /* Требуемая прозрачность */
    z-index: 10;
    transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1), right 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Класс, который JS добавит при скролле */
#flower-countdown.show {
    right: -180px;        /* Приезжает к правому краю контейнера */
    transform: rotate(39deg); /* Добавим легкий наклон для естественности */
}
.timer { display: flex; justify-content: center; gap: 15px; font-family: 'Marmelad', sans-serif; width: 100%; }
.timer-item { display: flex; flex-direction: column; align-items: center; width: 22%; max-width: 85px; }
.timer-item p { color: #6b4f38; margin-top: 8px; font-weight: 600; font-size: 13px; }
.circle-box { position: relative; width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.circle-box span { position: absolute; font-size: 28px; color: #6b4f38; font-weight: 400; z-index: 2; }
.circle-box svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bg-circle { fill: none; stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }
.progress-circle { fill: none; stroke: #6b4f38; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 232.5; stroke-dash-offset: 232.5; transition: stroke-dashoffset 0.3s linear; }

/* СТИЛИ БЛОКА: План дня */
/* Базовые стили для цветов в таймлайне */
.timeline-section {
    position: relative; /* Важно для позиционирования цветов */
}

.timeline-flower {
    position: absolute;
    width: 200px;    /* Настрой размер под свои нужды */
    height: auto;
    opacity: 0.5;    /* Требуемая прозрачность 50% */
    z-index: 1;      /* Чтобы они были под контентом, если нужно */
    pointer-events: none; /* Чтобы не мешали нажимать на кнопки */
}

/* Позиционирование */
.timeline-section .flower-left {
    left: -130px;
    bottom: 12%;
    animation: sbs-rotate 16s infinite linear;
}

.timeline-section .flower-right {
    right: -140px;
    top: 12%;
    animation: sbs-rotate 16s infinite linear;
}
.timeline-section {
    background-color: #6b4f38;
    padding: 40px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.timeline-container {
    max-width: 450px;
    margin: 40px auto 0;
    position: relative;
    text-align: left;
    padding-left: 20px;
}
.timeline-row {
    display: flex;
    margin-bottom: 45px;
    position: relative;
}
.timeline-time {
    font-size: 32px;
    font-weight: 300;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    min-width: 95px;
    padding-right: 15px;
    border-right: 1px solid #ffffff;
    text-align: right;
    line-height: 1.1;
}
.timeline-body {
    padding-left: 25px;
    flex: 1;
}
.timeline-body h3 {
    font-size: 46px;
    line-height: 1;
    margin-bottom: 8px;
    font-weight: normal;
}
.timeline-body p {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.9;
}
.timeline-item-block {
    margin-top: 50px;
}
.timeline-heading {
    font-size: 36px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
    padding: 0 10px;
}

/* БЛОК 3: Локация */
.location-section { background-color: #59422e; }
/* Цветок слева от локации */
.flower-left-sway {
    position: absolute;
    left: -380px;
    top: -17%;
    width: 200px;     /* Размер */
    z-index: 5;
    animation: sbs-rotate 16s infinite linear; /* Та самая анимация из твоего скриншота */
    pointer-events: none;
}

/* Перенос анимации с твоего скриншота в чистый CSS */
@keyframes sbs-rotate {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

/* Чтобы на мобильных цветок не перекрывал текст, уменьшаем его */
@media screen and (max-width: 480px) {
    .flower-left-sway {
        left: -300px;  /* Прячем сильнее за край */
        width: 150px;
    }
}
.address1 { font-size: 25px;
    line-height: 38px; margin-bottom: 30px; opacity: 0.9; }
.address2 { font-size: 25px;
    line-height: 38px; }
#toggle-map-btn { margin-top: 50px; font-size: 24px; line-height: 24px; }
.hidden-block { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
.map-wrapper.open { max-height: 450px; margin-top: 30px; }
.map-container { border-radius: 12px; overflow: hidden; border: 1px solid #ffffff; }
/* БЛОК: Пожелания */
.wishes-section {
    background-color: #6b4f38;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.wishes-section .container {
    position: relative; /* Удерживает цветы, так как они теперь внутри контейнера */
}

/* Базовые стили для анимированных цветов параллакса */
.wishes-section .scroll-flower {
    position: absolute;
    width: 400px; /* Размер цветка на десктопе */
    height: auto;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease-out;
    z-index: 10; /* Цветок ложится на край карточки сверху */
}

.wishes-section .scroll-flower img {
    width: 100%;
    height: auto;
}

/* ИСПРАВЛЕНО: Добавлены px к значению left */
.wishes-section .flower-left {
    bottom: 0;
    left: -340px;
    transform: translateX(-80px) rotate(-10deg);
}

/* Начальное позиционирование правого верхнего цветка */
.wishes-section .flower-right {
    top: 5%;
    right: -340px;
    transform: translateX(80px) rotate(15deg);
}
/* Ограничиваем "заезд" цветов на мобильных */
@media screen and (max-width: 600px) {
    .wishes-section .flower-left {
        left: -100px !important; /* Увеличь значение, чтобы прятать цветок сильнее */
        width: 140px !important; /* Уменьшаем размер цветка для мобилы */
    }

    .wishes-section .flower-right {
        right: -100px !important;
        width: 140px !important;
    }

    /* Дополнительно: чтобы цветы не мешали кликам */
    .wishes-section {
        overflow-x: hidden;
    }
}
/* Контейнер на всю ширину с шелковой подложкой */
.wishes-container {
    width: 100%;
    margin: 0 auto;
    padding: 50px 25px 60px;
    border-radius: 14px;
    background-color: #e9dfd7;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

.wishes-title {
    margin-bottom: 35px; color: #6b4f38;
}

.wishes-block {
    margin-bottom: 40px;
}
.wishes-block:last-child {
    margin-bottom: 0;
}

.wishes-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
}
.wishes-icon img {
    width: 100%;
    height: auto;
}

.wishes-block p {
    font-family: 'Georgia', serif;
    font-size: 25px;
    line-height: 38px;
    color: #6b4f38;
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto;
}

/* Выделенный абзац про "Горько" */
.wishes-block .wishes-subtext {
    margin-top: 30px;
    font-size: 20px;
    line-height: 30px;
}

/* Адаптивность для экранов мобильных телефонов */
@media screen and (max-width: 479px) {
    .wishes-container {
        padding: 40px 15px 45px;
    }
    .wishes-title {
        font-size: 56px;
    }
    .wishes-block p, .wishes-block .wishes-subtext {
        font-size: 17px;
        line-height: 26px;
    }
    .wishes-icon {
        width: 60px;
        height: 60px;
    }

    /* Корректируем и уменьшаем цветы на мобильных экранах */
    .wishes-section .scroll-flower {
        width: 180px;
    }
    .wishes-section .flower-left {
        bottom: -2%;
        left: -60px;
    }
    .wishes-section .flower-right {
        top: 30%;
        right: -60px;
    }
}
/* БЛОК 4: Дресс-код */
.dresscode-section { background-color: #6b4f38; }
.dresscode-desc {font-size: 25px;
    line-height: 38px;
    margin-bottom: 30px;}

/* БЛОК: Анкета (базовый контейнер) */
.anketa-section {
    background-color: #59422e;
    padding: 60px 0;
}

/* Тот самый "магический" фон, который не перекрывает текст */
.anketa-section .container {
    position: relative; /* Обязательно для работы ::before */
    padding: 50px 25px 60px;
    border-radius: 14px;
    z-index: 1;
}

.anketa-section .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 14px;

    /* Твой фон */
    background-image: url('/timer-bg.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;

    /* Фильтр применяется ТОЛЬКО к этому слою */
    filter: brightness(0.45);

    /* Ставим фон назад, чтобы не перекрывать форму */
    z-index: -1;opacity: 0.35;
}

/* Текст и форма должны быть выше фона */
.anketa-section h2,
.anketa-section p,
.anketa-section form,
.anketa-section .contacts-block {
    position: relative;
    z-index: 2;
}
.anketa-section h2 {
}
.anketa-subtitle {
    margin-bottom: 40px; color: #ffffff;
    opacity: 0.8;font-size: 24px;
}
.anketa-subtitle span{
    font-weight: bolder;
}
.anketa-form {
    text-align: left;
    margin-bottom: 50px;
}
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    color: #ffffff;
}
.form-group input, .form-group select {
    width: 100%;
    height: 55px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 30px;
    padding: 0 20px;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}
.form-group .drinks{    height: auto;
    overflow: hidden;
    padding-right: 0;}
.form-group .drinks option{}
    /* Стили для выбора в выпадающем списке */
.form-group select option {
    background-color: #59422e;
    color: #ffffff;padding: 10px 5px;
}
.btn-submit-anketa {
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 66px;
    transition: 0.3s;
    border: 1px solid #ffffff;
    font-size: 23px;
    font-family: Georgia;
    cursor: pointer;
    background-color: transparent;
    margin: 0 auto;
    display: block;
}
.btn-submit-anketa:hover {
    background-color: #e9dfd7;    color: #57432f;
}
.anketa-flower {
    position: absolute;
    width: 400px;
    height: auto;
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
    /* transition больше не нужен, так как JS обновляет значения плавно при каждом скролле */
    z-index: 5;
}

/* Стартовые точки */
.flower-right-top {
    top: 5%;
    right: -490px;
}

.flower-left-bottom {
    bottom: 5%;
    left: -410px;
}
.anketa-section .contacts-block {font-size: 24px;}
.btn-telegram{margin-top: 30px}