:root {
    --primary: #f2e4d1;
    --secondary: #b5c267;
    --accent: #ec8a00;
    --text: #3a332e;
    --light: #fff9f0;
    --dark: #2a2623;
    --highlight: #f7d448;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background-color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.block {
    padding: 60px 40px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Герой-блок */
.hero-block {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffe27c;
}

.hero-image-wrapper {
    position: relative;
    flex: 1;
    overflow: hidden;
    background-color: #ffe27c;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
}

.wedding-date {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 370px;
    letter-spacing: 2px;
}

.couple-monogram {
    font-family: 'Montserrat', sans-serif;
    font-size: 6rem;
    font-weight: 300;
    letter-spacing: 8px;
    background: linear-gradient(45deg, var(--highlight), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: white;
    text-shadow: none;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
}

.couple-monogram:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, white, transparent);
}

.hero-content {
    padding: 30px;
    background: white;
    text-align: center;
}

/* Блок 2: Календарь */
.cal {
    background-color: #ffe27c;
}

.elegant-calendar {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    margin-bottom: 30px;
    position: relative;
}

.calendar-header h2 {
    color: var(--dark);
    font-family: 'Playfair Display', serif;
}

.month-line {
    width: 100px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-grid span {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.calendar-grid span:hover {
    background: rgba(0, 0, 0, 0.05);
}

.calendar-grid .highlight {
    background: var(--accent);
    color: white;
    font-weight: bold;
}

/* Блок 3: Таймлайн */
.time {
    background-color: var(--light);
    position: relative;
}

.timeline {
    max-width: 500px;
    margin: 40px auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

.event {
    display: flex;
    margin-bottom: 30px;
    position: relative;
}

.event-time {
    position: relative;
    top: 25px;
    width: 100px;
    font-weight: 500;
    color: var(--accent);
}

.event-icon {
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-icon img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.event-details {
    flex: 1;
    padding-left: 30px;
}

.event-details h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
    color: var(--dark);
}

.event-details p {
    color: var(--text);
    opacity: 0.8;
}

/* Блок 4: Место проведения */
.loc {
    background-color: #ffe27c;
    padding: 30px 20px;
    text-align: center;
}

.loc h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
}

.venue-info {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.venue-text {
    flex: 1;
    text-align: left;
}

.intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text);
    opacity: 0.8;
}

.venue-name {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--dark);
}

.venue-address {
    font-size: 1rem;
    color: var(--text);
    opacity: 0.7;
    margin-bottom: 20px;
}

.venue-image {
    width: 45%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 280px;
    object-fit: cover;
}

.map-link {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.map-link:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
}

/* Блок 5: Палитра цветов и dress code */
.block5 {
    background: linear-gradient(to bottom, var(--primary) 0%, white 100%);
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.color {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.color:hover {
    transform: scale(1.1);
}

.outfits-title {
    text-align: center;
    margin: 40px 0 20px;
    font-family: 'Playfair Display', serif;
    color: var(--dark);
}

.gender-outfits {
    display: flex;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.outfit-column {
    flex: 1;
    text-align: center;
}

.outfit-collage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.outfit-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.outfit-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.outfit-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Блок 5.5: Наши пожелания */
.wishes-section {
    padding: 60px 20px;
    background-color: #ffe27c;
}

.wishes-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.wish {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.wish-icon-left {
    width: 40px;
    height: 40px;
    margin-right: 20px;
    flex-shrink: 0;
    
    /* Перекрашиваем иконку в #ffe27c */
    filter: invert(84%) sepia(10%) saturate(1800%) hue-rotate(340deg) brightness(105%) contrast(95%);
    
    /* Если SVG имеет stroke, переопределяем его */
    stroke: #ffe27c !important;
    stroke-width: 1.5px !important;
    
    /* Обводка-круг (опционально) */
    padding: 8px;
    border-radius: 50%;
    border: 2px solid rgb(23 25 69 / 30%);
    background-color: rgb(124 153 255 / 10%);
}
.wish-content p {
    line-height: 1.8;
    color: var(--text);
}

/* Блок 6: Форма RSVP */
#rsvp-form {
    max-width: 500px;
    margin: 40px auto 0;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--secondary);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.7);
    transition: border 0.3s;
}

.form-group input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    color: var(--text);
}

button[type="submit"] {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button[type="submit"]:hover {
    background: var(--highlight);
}

/* Блок 7: До встречи */
.end {
    background-color: #ffe27c ;
    text-align: center;
    padding: 80px 20px;
}

.farewell-text {
    font-size: 1.2rem;
    margin: 15px auto 40px;
    color: var(--dark);
    max-width: 600px;
    line-height: 1.8;
}

.farewell-image-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 5px solid white;
}

.farewell-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .block {
        padding: 40px 20px;
    }

    .hero-content {
        padding: 30px;
    }

    .wedding-date {
        font-size: 2rem;
        margin-bottom: 350px;
    }

    .couple-monogram {
        font-size: 4rem;
    }

    .venue-info {
        flex-direction: column;
    }

    .venue-image {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .gender-outfits {
        flex-direction: column;
        gap: 30px;
    }

    .outfit-img img {
        height: 160px;
    }

    .wish {
        flex-direction: column;
        align-items: flex-start;
    }

    .wish-icon-left {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .block {
        padding: 40px 20px;
    }

    .hero-content {
        padding: 30px;
    }

    .wedding-date {
        font-size: 2rem;
        margin-bottom: 350px;
    }

    .couple-monogram {
        font-size: 4rem;
    }

    .venue-info {
        flex-direction: column;
    }

    .venue-image {
        width: 100%;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .gender-outfits {
        flex-direction: column;
        gap: 30px;
    }

    .outfit-img img {
        height: 160px;
    }

    .wish {
        flex-direction: column;
        align-items: flex-start;
    }

    .wish-icon-left {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Общие стили для заголовков */
h1,
h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

h2:after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Уведомления */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.notification.show {
    opacity: 1;
}

.notification i {
    margin-right: 10px;
}

/* Анимации */
/* ==================== Анимации ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==================== Глобальные эффекты ==================== */
.hero-block {
    animation: fadeIn 1s ease-out;
}

.couple-monogram {
    animation: float 4s ease-in-out infinite;
}

/* Эффект параллакса для главного изображения */
.hero-image-wrapper {
    perspective: 100px;
    overflow: hidden;
}

.hero-image {
    transition: transform 0.5s ease-out;
    will-change: transform;
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.05) translateZ(5px);
}

/* ==================== Эффекты для блока с датой ==================== */
.wedding-date {
    position: relative;
    display: inline-block;
}

.wedding-date::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.wedding-date:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ==================== Анимированная цветовая палитра ==================== */
.color {
    transition: all 0.3s ease;
    cursor: pointer;
}

.color:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==================== Эффекты для таймлайна ==================== */
.timeline::before {
    animation: fadeIn 1.5s ease-out;
}

.event {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.event.visible {
    opacity: 1;
    transform: translateX(0);
}

.event-icon img {
    transition: transform 0.3s ease;
}

.event:hover .event-icon img {
    transform: rotate(10deg) scale(1.1);
}

/* ==================== Эффекты для формы ==================== */
#rsvp-form {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.form-group input[type="text"] {
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-group input[type="text"]:focus {
    box-shadow: 0 5px 15px rgba(236, 138, 0, 0.2);
    transform: translateY(-2px);
}

button[type="submit"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
    z-index: -1;
}

button[type="submit"]:hover::before {
    left: 100%;
}

/* ==================== Эффекты для изображений ==================== */
.outfit-img,
.venue-image,
.farewell-image {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.outfit-img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.venue-image:hover {
    transform: rotate(-1deg) scale(1.02);
}

.farewell-image:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==================== Эффекты для пожеланий ==================== */
.wish {
    transition: all 0.4s ease;
    border-left: 3px solid transparent;
}

.wish:hover {
    transform: translateX(10px);
    border-left: 3px solid var(--accent);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1);
}

.wish-icon-left {
    transition: transform 0.5s ease;
}

.wish:hover .wish-icon-left {
    transform: rotate(15deg);
}

/* ==================== Эффекты для календаря ==================== */
.calendar-grid span {
    transition: all 0.3s ease;
}

.calendar-grid span:not(.highlight):hover {
    background: rgba(245, 233, 224, 0.5);
    cursor: pointer;
}

.highlight {
    animation: pulse 2s infinite;
    position: relative;
}

.highlight::after {
    content: '❤️';
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 1.2rem;
    animation: float 3s ease-in-out infinite;
}

/* ==================== Эффекты для карты ==================== */
.map-link {
    position: relative;
    overflow: hidden;
}

.map-link::after {
    content: '→';
    position: absolute;
    right: -20px;
    transition: all 0.3s ease;
}

.map-link:hover::after {
    right: 10px;
}

/* ==================== Эффекты при прокрутке ==================== */
.block {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.block.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== Медиа-запросы для анимаций ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ==================== Дополнительные стили ==================== */
/* Эффект "мерцания" для важных элементов */
@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.highlight-text {
    animation: twinkle 2s infinite;
    display: inline-block;
}

/* Эффект волн для разделителей */
.wave-divider {
    position: relative;
    height: 50px;
    overflow: hidden;
}

.wave-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="%23ffe27c" opacity=".25"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="%23ffe27c" opacity=".5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23ffe27c"/></svg>');
    background-size: cover;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}
/* Добавляем в конец CSS */
/* Заменяем предыдущий .emoji-effect на этот */
.emoji-effect {
    position: fixed;
    pointer-events: none;
    z-index: 100;
    font-size: 20px; /* Уменьшаем размер */
    opacity: 0;
    animation: floatEmojiMobile 3s ease-in forwards;
    will-change: transform, opacity; /* Улучшаем производительность */
}

/* Упрощенная анимация для мобилок */
@keyframes floatEmojiMobile {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-80px) scale(1.2);
        opacity: 0;
    }
}

/* Отключаем сложные эффекты на маленьких экранах */
@media (max-width: 768px) {
    .emoji-effect.path1, 
    .emoji-effect.path2,
    .emoji-effect.path3,
    .emoji-effect.path4 {
        animation: floatEmojiMobile 3s ease-in forwards !important;
    }
}