@font-face {
    font-family: 'Snell Roundhand';
    src: url('ofont.ru_Snell Roundhand.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    /* Тёплая итальянская палитра */
    --gold-yellow: #FFEB3B;
    --gold-bright: #FFEE58;
    --sun-gold: #FDD835;
    --terracotta: #E07855;
    --cream: #FFF8E7;
    --warm-white: #FFFEF9;
    --ivory: #FFFFF0;
    --text-dark: #3E2723;
    --text-medium: #6D4C41;
    --text-light: #8D6E63;
    --shadow-soft: rgba(62, 39, 35, 0.08);
    --shadow-medium: rgba(62, 39, 35, 0.12);
    --shadow-deep: rgba(62, 39, 35, 0.18);
}

/* Скрываем scrollbar */
html {
    scroll-behavior: smooth;
    perspective: 1200px;
    overflow: -moz-scrollbars-none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 300;
    background: linear-gradient(135deg, 
        var(--warm-white) 0%, 
        var(--cream) 40%, 
        var(--ivory) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    position: relative;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Итальянская мозаика - декоративный элемент */
.italian-mosaic {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
    background-image: 
        /* Классический мозаичный паттерн - плитка */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(224, 120, 85, 0.15) 50px,
            rgba(224, 120, 85, 0.15) 51px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(255, 179, 0, 0.15) 50px,
            rgba(255, 179, 0, 0.15) 51px
        ),
        /* Керамические плитки */
        repeating-conic-gradient(
            from 45deg at 25px 25px,
            rgba(255, 215, 0, 0.08) 0deg,
            rgba(224, 120, 85, 0.08) 90deg,
            rgba(255, 215, 0, 0.08) 180deg,
            rgba(224, 120, 85, 0.08) 270deg,
            rgba(255, 215, 0, 0.08) 360deg
        ),
        /* Декоративные акценты */
        radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 80px),
        radial-gradient(circle at 85% 30%, rgba(224, 120, 85, 0.12) 0%, transparent 70px),
        radial-gradient(circle at 50% 60%, rgba(255, 193, 7, 0.1) 0%, transparent 90px),
        radial-gradient(circle at 20% 80%, rgba(224, 120, 85, 0.12) 0%, transparent 75px);
    background-size: 50px 50px, 50px 50px, 50px 50px, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
}

/* Мозаичные орнаменты по углам */
.mosaic-corner {
    position: fixed;
    width: 250px;
    height: 250px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
}

.mosaic-corner-top-left {
    top: 0;
    left: 0;
    background: 
        /* Основной орнамент */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(255, 215, 0, 0.3) 15px,
            rgba(255, 215, 0, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(224, 120, 85, 0.3) 15px,
            rgba(224, 120, 85, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        /* Цветочные мотивы */
        radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.25) 0%, transparent 30px),
        radial-gradient(circle at 60% 15%, rgba(224, 120, 85, 0.25) 0%, transparent 25px),
        radial-gradient(circle at 15% 60%, rgba(255, 193, 7, 0.2) 0%, transparent 28px);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.mosaic-corner-top-right {
    top: 0;
    right: 0;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(255, 215, 0, 0.3) 15px,
            rgba(255, 215, 0, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(224, 120, 85, 0.3) 15px,
            rgba(224, 120, 85, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        radial-gradient(circle at 70% 30%, rgba(255, 215, 0, 0.25) 0%, transparent 30px),
        radial-gradient(circle at 40% 15%, rgba(224, 120, 85, 0.25) 0%, transparent 25px),
        radial-gradient(circle at 85% 60%, rgba(255, 193, 7, 0.2) 0%, transparent 28px);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.mosaic-corner-bottom-left {
    bottom: 0;
    left: 0;
    background: 
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(255, 215, 0, 0.3) 15px,
            rgba(255, 215, 0, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(224, 120, 85, 0.3) 15px,
            rgba(224, 120, 85, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.25) 0%, transparent 30px),
        radial-gradient(circle at 60% 85%, rgba(224, 120, 85, 0.25) 0%, transparent 25px),
        radial-gradient(circle at 15% 40%, rgba(255, 193, 7, 0.2) 0%, transparent 28px);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.mosaic-corner-bottom-right {
    bottom: 0;
    right: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            rgba(255, 215, 0, 0.3) 15px,
            rgba(255, 215, 0, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 15px,
            rgba(224, 120, 85, 0.3) 15px,
            rgba(224, 120, 85, 0.3) 17px,
            transparent 17px,
            transparent 32px
        ),
        radial-gradient(circle at 70% 70%, rgba(255, 215, 0, 0.25) 0%, transparent 30px),
        radial-gradient(circle at 40% 85%, rgba(224, 120, 85, 0.25) 0%, transparent 25px),
        radial-gradient(circle at 85% 40%, rgba(255, 193, 7, 0.2) 0%, transparent 28px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* Листики на лимоне */
.garland-leaf {
    position: absolute;
    top: -8px;
    width: 25px;
    height: 15px;
    background: linear-gradient(135deg, #7CB342 0%, #558B2F 100%);
    border-radius: 0 50% 50% 0;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.2);
}

.garland-leaf:first-child {
    left: 15px;
    transform: rotate(-30deg);
}

.garland-leaf:last-child {
    right: 15px;
    transform: rotate(30deg) scaleX(-1);
}

/* Плавные переходы между страницами */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 248, 231, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, backdrop-filter;
}

.page-transition.active {
    opacity: 1;
    pointer-events: all;
}

/* Эффект 1: Затухание с блюром - плавный */
.page-transition.transition-fade-blur {
    backdrop-filter: blur(30px);
    animation: fadeBlurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeBlurIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    50% {
        backdrop-filter: blur(50px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(30px);
    }
}

/* Эффект 2: Слайд вправо - плавный */
.page-transition.transition-slide-right {
    animation: slideRightIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideRightIn {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Эффект 3: Отдаление - плавный */
.page-transition.transition-zoom-out {
    animation: zoomOutIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomOutIn {
    0% {
        opacity: 0;
        transform: scale(2.2);
        backdrop-filter: blur(20px);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        backdrop-filter: blur(30px);
    }
}

/* Эффект 4: Вращение с затуханием - плавный */
.page-transition.transition-rotate-fade {
    animation: rotateFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes rotateFadeIn {
    0% {
        opacity: 0;
        transform: rotate(-12deg) scale(0.92);
    }
    60% {
        opacity: 0.7;
        transform: rotate(2deg) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Эффект 5: Слайд вверх - плавный */
.page-transition.transition-slide-up {
    animation: slideUpIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpIn {
    0% {
        opacity: 0;
        transform: translateY(100%);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Эффект 6: Растворение - плавный */
.page-transition.transition-dissolve {
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 248, 231, 0.95) 60%,
        rgba(255, 215, 0, 0.3) 100%);
    animation: dissolveIn 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dissolveIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
        transform: scale(0.6);
    }
    50% {
        opacity: 0.7;
        backdrop-filter: blur(60px);
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(30px);
        transform: scale(1);
    }
}

/* Выход страницы с разными эффектами - плавные */
.page-content.transition-out.transition-fade-blur {
    animation: fadeBlurOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, filter;
}

@keyframes fadeBlurOut {
    0% {
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        filter: blur(8px);
    }
    100% {
        opacity: 0;
        filter: blur(20px);
    }
}

.page-content.transition-out.transition-slide-right {
    animation: slideRightOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideRightOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

.page-content.transition-out.transition-zoom-out {
    animation: zoomOutOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

@keyframes zoomOutOut {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0px);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.7);
        filter: blur(10px);
    }
    100% {
        opacity: 0;
        transform: scale(0.4);
        filter: blur(25px);
    }
}

.page-content.transition-out.transition-rotate-fade {
    animation: rotateFadeOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes rotateFadeOut {
    0% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: rotate(5deg) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: rotate(12deg) scale(1.15);
    }
}

.page-content.transition-out.transition-slide-up {
    animation: slideUpOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes slideUpOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

.page-content.transition-out.transition-dissolve {
    animation: dissolveOut 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity, filter;
}

@keyframes dissolveOut {
    0% {
        opacity: 1;
        filter: blur(0px);
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        filter: blur(15px);
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
        filter: blur(40px);
        transform: scale(1.6);
    }
}

/* Основной контент страницы */
.page-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    position: relative;
    animation: pageEnter 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    cursor: pointer;
    will-change: transform, opacity, filter;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
        filter: blur(10px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.01);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Реалистичные лимоны с листиками */
.lemon-accent {
    position: fixed;
    width: 140px;
    height: 180px;
    pointer-events: none;
    z-index: 1;
    animation: floatLemon 8s ease-in-out infinite;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

/* Основа лимона - натуральная форма */
.lemon-accent::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    width: 90px;
    height: 120px;
    /* Форма лимона с характерными "сосками" */
    border-radius: 40% 40% 45% 45% / 35% 35% 55% 55%;
    background: 
        /* Текстура кожуры */
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 45% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.35) 0%, transparent 2.5px),
        radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 60% 55%, rgba(255, 255, 255, 0.4) 0%, transparent 3px),
        radial-gradient(circle at 25% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        radial-gradient(circle at 55% 75%, rgba(255, 255, 255, 0.35) 0%, transparent 2.5px),
        radial-gradient(circle at 75% 60%, rgba(255, 255, 255, 0.3) 0%, transparent 2px),
        /* Основной цвет с естественным градиентом */
        radial-gradient(ellipse at 30% 30%, 
            #FFF9C4 0%,
            #FFF176 15%,
            #FFEB3B 30%,
            #FDD835 50%, 
            #FBC02D 70%,
            #F9A825 90%,
            #F57F17 100%);
    opacity: 0.9;
    box-shadow: 
        /* Объем и глубина */
        inset -15px -20px 40px rgba(245, 127, 23, 0.6),
        inset 15px 15px 35px rgba(255, 255, 255, 0.4),
        inset 0 -5px 15px rgba(251, 192, 45, 0.5),
        /* Внешняя тень */
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 10px 20px rgba(251, 192, 45, 0.3);
}

/* "Сосок" лимона сверху */
.lemon-accent::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 22px;
    background: radial-gradient(ellipse at 40% 30%, 
        #F9A825 0%,
        #F57F17 60%,
        #E65100 100%);
    border-radius: 50% 50% 60% 60% / 40% 40% 70% 70%;
    box-shadow: 
        inset -3px -3px 8px rgba(0, 0, 0, 0.4),
        inset 2px 2px 5px rgba(255, 193, 7, 0.3),
        0 3px 8px rgba(0, 0, 0, 0.2);
}

.lemon-1 {
    top: 12%;
    left: 8%;
    animation-delay: 0s;
    transform: rotate(-15deg);
}

.lemon-2 {
    top: 65%;
    right: 10%;
    animation-delay: 2.5s;
    transform: rotate(25deg);
}

.lemon-3 {
    bottom: 18%;
    left: 12%;
    animation-delay: 5s;
    transform: rotate(-30deg);
}

@keyframes floatLemon {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
    50% {
        transform: translateY(-25px) rotate(calc(var(--rotate, 0deg) + 5deg));
    }
}

/* Секция героя (первая страница) - ПЕРЕПИСАНО */
.page-1.page-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 50px !important;
    padding: 80px 60px !important;
    min-height: 100vh !important;
}

.page-1 > .page-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

main.page-1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 30px 30px !important;
    min-height: 100vh !important;
}

main.page-1 .names {
    text-align: center !important;
    margin: 0 !important;
    width: 100% !important;
}

main.page-1 .invitation-text-center {
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    margin-top: -5px !important;
}

main.page-1 .invitation-text-center .invitation-text {
    text-align: center !important;
    font-size: 2.3rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

main.page-1 .invitation-text-center .invitation-text .word {
    display: inline !important;
}

.names {
    font-family: 'Snell Roundhand', cursive;
    font-size: 5.5rem;
    font-weight: normal;
    color: #000000;
    margin-bottom: 25px;
    letter-spacing: 6px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.name-part {
    display: inline-block;
}

.name-part:first-child .letter {
    display: inline-block;
    animation: letterAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.name-part:first-child .letter:nth-child(1) { animation-delay: 0.1s; }
.name-part:first-child .letter:nth-child(2) { animation-delay: 0.15s; }
.name-part:first-child .letter:nth-child(3) { animation-delay: 0.2s; }
.name-part:first-child .letter:nth-child(4) { animation-delay: 0.25s; }
.name-part:first-child .letter:nth-child(5) { animation-delay: 0.3s; }
.name-part:first-child .letter:nth-child(6) { animation-delay: 0.35s; }
.name-part:first-child .letter:nth-child(7) { animation-delay: 0.4s; }

.name-part:last-child .letter {
    display: inline-block;
    animation: letterAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.name-part:last-child .letter:nth-child(1) { animation-delay: 0.7s; }
.name-part:last-child .letter:nth-child(2) { animation-delay: 0.8s; }
.name-part:last-child .letter:nth-child(3) { animation-delay: 0.9s; }
.name-part:last-child .letter:nth-child(4) { animation-delay: 1.0s; }

.ampersand {
    display: inline-block;
    margin: 0 30px;
    font-size: 5.5rem;
    color: #000000;
    font-family: 'Snell Roundhand', cursive;
    animation: ampersandAppear 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s backwards;
    font-weight: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes letterAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
        filter: blur(3px);
    }
    50% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes ampersandAppear {
    from {
        opacity: 0;
        transform: scale(0.7) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.elegant-divider {
    margin: 50px auto;
    text-align: center;
}

.divider-ornament {
    font-size: 1.5rem;
    color: #FFF8E7;
    opacity: 0.9;
    display: inline-block;
    animation: 
        ornamentAppear 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.1s backwards,
        ornamentGlow 3s ease-in-out 2.1s infinite;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.3);
    text-stroke: 1px rgba(0, 0, 0, 0.3);
    paint-order: stroke fill;
}

@keyframes ornamentAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
    100% {
        opacity: 0.9;
        transform: scale(1) rotate(360deg);
    }
}

@keyframes ornamentGlow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(90deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    75% {
        transform: scale(1.15) rotate(270deg);
    }
}

.invitation-text {
    font-family: 'Snell Roundhand', cursive;
    font-size: 2.5rem;
    color: #000000;
    font-weight: normal;
    line-height: 1.8;
    margin: 40px 0;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.invitation-text .word {
    display: inline-block;
    animation: wordAppear 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.invitation-text .word:nth-child(1) { animation-delay: 1.3s; }
.invitation-text .word:nth-child(2) { animation-delay: 1.4s; }
.invitation-text .word:nth-child(3) { animation-delay: 1.5s; }
.invitation-text .word:nth-child(4) { animation-delay: 1.6s; }
.invitation-text .word:nth-child(5) { animation-delay: 1.7s; }
.invitation-text .word:nth-child(6) { animation-delay: 1.8s; }
.invitation-text .word:nth-child(7) { animation-delay: 1.9s; }
.invitation-text .word:nth-child(8) { animation-delay: 2.0s; }
.invitation-text .word:nth-child(9) { animation-delay: 2.1s; }
.invitation-text .word:nth-child(10) { animation-delay: 2.2s; }
.invitation-text .word:nth-child(11) { animation-delay: 2.3s; }
.invitation-text .word:nth-child(12) { animation-delay: 2.4s; }
.invitation-text .word:nth-child(13) { animation-delay: 2.5s; }

@keyframes wordAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wedding-year {
    font-family: 'Snell Roundhand', cursive;
    font-size: 5rem;
    color: #000000;
    margin-top: 60px;
    font-weight: normal;
    letter-spacing: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.wedding-year .year-digit {
    display: inline-block;
    animation: digitAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.wedding-year .year-digit:nth-child(1) { animation-delay: 2.3s; }
.wedding-year .year-digit:nth-child(2) { animation-delay: 2.4s; }
.wedding-year .year-digit:nth-child(3) { animation-delay: 2.5s; }
.wedding-year .year-digit:nth-child(4) { animation-delay: 2.6s; }

@keyframes digitAppear {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Карточки контента */
.content-card,
.content-wrapper {
    background: transparent;
    backdrop-filter: none;
    padding: 60px 50px;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    position: relative;
    overflow: visible;
    z-index: 2;
}


h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
    letter-spacing: 6px;
    position: relative;
    z-index: 2;
}

h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    font-weight: 300;
    letter-spacing: 3px;
}

/* Стили для страницы 3 */
.page-3 .invitation-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 6.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.page-3 .date-section {
    text-align: center;
    margin-bottom: 60px;
}

.page-3 .date-large {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 5px;
    text-transform: uppercase;
}

.page-3 .event-section {
    text-align: center;
}

.page-3 .time-divider {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.page-3 .event-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.page-3 .event-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 15px;
    font-weight: 300;
}

.page-3 .event-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    line-height: 1.8;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Дата и время */
.date-time-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.info-block .label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    font-weight: 500;
}

.info-block .value {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--sun-gold);
    font-weight: 300;
    letter-spacing: 4px;
}

/* Место */
.venue-name {
    text-align: center;
    margin-bottom: 35px;
}

.address-block {
    text-align: center;
    margin: 30px 0;
    position: relative;
    z-index: 2;
}

.address {
    font-size: 1.3rem;
    color: var(--text-dark);
    line-height: 2;
}

.map-container {
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.map-placeholder {
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, 
        rgba(255, 248, 231, 0.5) 0%, 
        rgba(255, 215, 0, 0.15) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 
        inset 0 2px 10px rgba(255, 215, 0, 0.1),
        0 10px 30px var(--shadow-soft);
}

.map-placeholder span {
    color: var(--text-light);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Дресс-код */
.dresscode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.dresscode-card {
    background: transparent;
    padding: 35px;
    border-radius: 0;
    text-align: center;
    border: none;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.dresscode-card:hover {
    transform: translateY(-5px);
}

.dresscode-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.dresscode-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dresscode-card p {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

.dresscode-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    color: var(--text-dark);
    line-height: 1.8;
    text-align: center;
    margin: 30px 0 40px 0;
    position: relative;
    z-index: 2;
}

.dresscode-photos {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: nowrap;
    margin: 40px 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.dresscode-photo {
    width: calc(33.333% - 14px);
    max-width: 250px;
    height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    object-position: center 20%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.dresscode-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Подарки */
.gifts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.gift-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    box-shadow: 0 10px 25px var(--shadow-soft);
}

.gift-card h3 {
    font-size: 1.6rem;
    margin-bottom: 25px;
}

.gift-card ul {
    list-style: none;
    padding: 0;
}

.gift-card li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    line-height: 1.7;
}

.gift-card li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--sun-gold);
    font-size: 0.9rem;
}

/* Программа */
.timeline {
    margin: 40px 0;
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 35px;
    padding: 25px;
    background: transparent;
    border-radius: 0;
    border-left: 3px solid var(--sun-gold);
    box-shadow: none;
}

.timeline-item .time {
    font-family: 'Great Vibes', cursive;
    font-size: 2.8rem;
    color: var(--sun-gold);
    font-weight: 300;
    min-width: 120px;
    letter-spacing: 3px;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Подтверждение */
.confirmation-text {
    text-align: center;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin: 30px 0;
    line-height: 1.9;
    position: relative;
    z-index: 2;
}

.contacts {
    text-align: center;
    margin: 50px 0;
    font-size: 1.2rem;
    line-height: 2.5;
    position: relative;
    z-index: 2;
}

.contacts a {
    color: var(--sun-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts a:hover {
    color: var(--terracotta);
}

.final-words {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 215, 0, 0.2);
    position: relative;
    z-index: 2;
}

.final-words p {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin: 20px 0;
}

.signature {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--sun-gold);
    margin-top: 30px;
    font-weight: 700;
    line-height: 1.8;
    letter-spacing: 4px;
}

.note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-medium);
    font-size: 1.15rem;
    position: relative;
    z-index: 2;
}

/* Уникальные стили для каждой страницы */

/* Страница 1: фон из image.png */
.page-1 {
    background:
        linear-gradient(180deg, rgba(255, 140, 105, 0.25) 0%, rgba(255, 140, 105, 0.35) 30%, rgba(255, 127, 80, 0.65) 100%),
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.08) 100%),
        url('image.png') center/cover no-repeat;
    position: relative;
}

/* Страница 2: фон из image2.png */
.page-2 {
    background:
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.08) 100%),
        url('image2.png') center/cover no-repeat;
}

/* Белый квадрат для текста на второй странице */
.page-2 .page-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
}

.page-2-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 80px 60px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: page2ContentAppear 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
    box-sizing: border-box;
    text-align: center;
}

@keyframes page2ContentAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.page-2-title {
    color: #000000;
    margin-bottom: 40px;
    text-align: center;
    font-size: 3rem;
}

.page-2-title .word {
    display: inline-block;
    animation: page2WordAppear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.page-2-title .word:nth-child(1) { animation-delay: 0.2s; }
.page-2-title .word:nth-child(2) { animation-delay: 0.3s; }
.page-2-title .word:nth-child(3) { animation-delay: 0.4s; }
.page-2-title .word:nth-child(4) { animation-delay: 0.5s; }

@keyframes page2WordAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-2-content .invitation-text {
    color: #000000;
    text-align: center;
    line-height: 1.8;
}

.page-2-text {
    font-size: 1.9rem !important;
}

.page-2-text .word {
    display: inline-block;
    animation: page2TextWordAppear 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.page-2-text .word:nth-child(1) { animation-delay: 0.7s; }
.page-2-text .word:nth-child(2) { animation-delay: 0.75s; }
.page-2-text .word:nth-child(3) { animation-delay: 0.8s; }
.page-2-text .word:nth-child(4) { animation-delay: 0.85s; }
.page-2-text .word:nth-child(5) { animation-delay: 0.9s; }
.page-2-text .word:nth-child(6) { animation-delay: 0.95s; }
.page-2-text .word:nth-child(7) { animation-delay: 1.0s; }
.page-2-text .word:nth-child(8) { animation-delay: 1.05s; }
.page-2-text .word:nth-child(9) { animation-delay: 1.1s; }
.page-2-text .word:nth-child(10) { animation-delay: 1.15s; }
.page-2-text .word:nth-child(11) { animation-delay: 1.2s; }
.page-2-text .word:nth-child(12) { animation-delay: 1.25s; }
.page-2-text .word:nth-child(13) { animation-delay: 1.3s; }
.page-2-text .word:nth-child(14) { animation-delay: 1.35s; }
.page-2-text .word:nth-child(15) { animation-delay: 1.4s; }
.page-2-text .word:nth-child(16) { animation-delay: 1.45s; }
.page-2-text .word:nth-child(17) { animation-delay: 1.5s; }
.page-2-text .word:nth-child(18) { animation-delay: 1.55s; }
.page-2-text .word:nth-child(19) { animation-delay: 1.6s; }
.page-2-text .word:nth-child(20) { animation-delay: 1.65s; }

@keyframes page2TextWordAppear {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Страница 3: Место — фон из вертикального изображения, повторенный 3 раза по ширине */
.page-3 {
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.1) 100%),
        url("invitation.png");
    background-position: center;
    background-size: auto;
    background-color: var(--warm-white);
}

/* Страница 4: Дресс-код - элегантный кремовый */
.page-4 {
    background: radial-gradient(circle at bottom, 
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 248, 231, 0) 50%),
        linear-gradient(180deg, 
        var(--cream) 0%, 
        var(--ivory) 100%);
}

/* Страница 5: Подарки - тёплое золото */
.page-5 {
    background: linear-gradient(135deg, 
        var(--ivory) 0%, 
        rgba(255, 193, 7, 0.1) 30%,
        var(--warm-white) 70%,
        var(--cream) 100%);
}

.page-5 .gift-card.preferred {
    border: 2px solid rgba(255, 193, 7, 0.3);
}

.page-5 .gift-card.not-preferred {
    border: 2px solid rgba(224, 120, 85, 0.3);
}

/* Страница 6: Программа - динамичный градиент */
.page-6 {
    background: linear-gradient(180deg, 
        var(--warm-white) 0%, 
        var(--cream) 30%,
        rgba(255, 215, 0, 0.12) 60%,
        var(--ivory) 100%);
}

.page-6 .timeline-item:nth-child(1) {
    border-left-color: #FFEB3B;
}

.page-6 .timeline-item:nth-child(2) {
    border-left-color: #FDD835;
}

.page-6 .timeline-item:nth-child(3) {
    border-left-color: #FBC02D;
}

.page-6 .timeline-item:nth-child(4) {
    border-left-color: var(--terracotta);
}

/* Страница 7: Финал - нежное завершение */
.page-7 {
    background: radial-gradient(ellipse at center, 
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 248, 231, 0) 50%),
        linear-gradient(135deg, 
        var(--cream) 0%, 
        var(--warm-white) 50%, 
        var(--ivory) 100%);
}

.page-7 .signature {
    background: linear-gradient(135deg, 
        var(--sun-gold) 0%, 
        var(--gold-bright) 50%,
        var(--terracotta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Адаптивность для FullHD и меньше */
@media (max-width: 1920px) {
    /* Страница 1 - оставляем базовые размеры, они уже оптимизированы */
    
    /* Страница 2 */
    .page-2-text {
        font-size: 1.9rem !important;
    }
    
    /* Страница 3 */
    .page-3 .invitation-title {
        font-size: 4.5rem;
        margin-bottom: 35px;
        letter-spacing: 6px;
    }
    
    .page-3 .date-large {
        font-size: 3.2rem;
        letter-spacing: 4px;
    }
    
    .page-3 .date-section {
        margin-bottom: 45px;
    }
    
    .page-3 .time-divider {
        font-size: 1.9rem;
    }
    
    .page-3 .event-title {
        font-size: 2.6rem;
    }
    
    .page-3 .event-description {
        font-size: 1.25rem;
        line-height: 1.6;
    }
    
    .page-3 .event-address {
        font-size: 1.15rem;
    }
    
    /* Общие стили */
    h2 {
        font-size: 3.5rem;
    }
    
    h3 {
        font-size: 2.2rem;
    }
    
    .content-card {
        padding: 45px 35px;
    }
    
    /* Дресс-код */
    .dresscode-text {
        font-size: 1.6rem;
        margin: 30px 0 35px 0;
    }
    
    .dresscode-photo {
        max-width: 280px;
        height: 380px;
        object-position: center 20%;
    }
}

@media (max-width: 1600px) {
    /* Страница 1 */
    main.page-1 {
        padding: 40px 30px !important;
        gap: 25px !important;
    }
    
    .names {
        font-size: 6.5rem;
        letter-spacing: 6px;
    }
    
    main.page-1 .invitation-text-center .invitation-text {
        font-size: 2.7rem !important;
    }
    
    main.page-1 .photo-section {
        max-width: 650px !important;
    }
    
    main.page-1 .photo-container {
        max-width: 650px !important;
    }
    
    main.page-1 .photo-date {
        font-size: 2rem !important;
    }
    
    /* Страница 3 */
    .page-3 .invitation-title {
        font-size: 5rem;
        margin-bottom: 35px;
    }
    
    .page-3 .date-large {
        font-size: 3.5rem;
    }
    
    .page-3 .time-divider {
        font-size: 2rem;
    }
    
    .page-3 .event-title {
        font-size: 2.8rem;
    }
    
    .page-3 .event-description {
        font-size: 1.3rem;
    }
    
    .page-3 .event-address {
        font-size: 1.2rem;
    }
    
    /* Общие стили */
    h2 {
        font-size: 3.5rem;
    }
    
    h3 {
        font-size: 2.3rem;
    }
    
    .content-card {
        padding: 45px 35px;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    /* Страница 1 */
    main.page-1 {
        padding: 30px 20px !important;
        gap: 20px !important;
    }
    
    .names {
        font-size: 4rem;
        letter-spacing: 4px;
        margin-bottom: 30px;
    }
    
    .ampersand {
        font-size: 3.5rem;
        margin: 0 15px;
    }
    
    main.page-1 .invitation-text-center {
        margin-top: -5px !important;
    }
    
    main.page-1 .invitation-text-center .invitation-text {
        font-size: 2.1rem !important;
        line-height: 1.4 !important;
    }
    
    /* Страница 2 */
    .page-2-text {
        font-size: 1.7rem !important;
    }
    
    main.page-1 .photo-section {
        max-width: 100% !important;
        gap: 20px !important;
    }
    
    main.page-1 .photo-container {
        max-width: 100% !important;
    }
    
    main.page-1 .photo-date {
        font-size: 1.8rem !important;
    }
    
    /* Страница 3 */
    .page-3 .invitation-title {
        font-size: 3.5rem;
        letter-spacing: 6px;
    }
    
    .page-3 .date-large {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }
    
    .page-3 .time-divider {
        font-size: 1.5rem;
    }
    
    .page-3 .event-title {
        font-size: 2rem;
    }
    
    .page-3 .event-description {
        font-size: 1.1rem;
    }
    
    .page-3 .event-address {
        font-size: 1rem;
    }

    .page-3 .schedule {
        flex-direction: column !important;
        gap: 35px !important;
    }
    
    .page-3 .event-section {
        margin-bottom: 0 !important;
    }
    
    .page-3 .content-card {
        padding: 40px 30px !important;
    }

    /* Страница 2 */
    .page-2-content {
        padding: 50px 40px !important;
        width: 90% !important;
    }
    
    .page-2-title {
        font-size: 2.3rem !important;
    }

    /* Общие стили */
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 2rem;
    }
    
    .content-card {
        padding: 40px 30px;
    }
    
    .dresscode-grid,
    .gifts-grid {
        grid-template-columns: 1fr;
    }
    
    .dresscode-text {
        font-size: 1.5rem;
        margin: 25px 0 30px 0;
    }
    
    .dresscode-photos {
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: center;
    }
    
    .dresscode-photo {
        width: calc(33.333% - 10px);
        max-width: 320px;
        min-width: 220px;
        height: 450px;
        flex-shrink: 0;
    }
    
    .date-time-container {
        gap: 40px;
        flex-direction: column;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .mosaic-corner {
        width: 120px;
        height: 120px;
    }
    
    .signature {
        font-size: 2.5rem;
    }
    
    .final-words p {
        font-size: 1.2rem;
    }
    
    .confirmation-text {
        font-size: 1.1rem;
    }
    
    .contacts {
        font-size: 1rem;
    }
}

/* Секция с фото на первой странице */
main.page-1 .photo-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    max-width: 550px !important;
    width: 100% !important;
    margin: 0 auto !important;
    animation: photoSectionAppear 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s backwards;
}

@keyframes photoSectionAppear {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

main.page-1 .photo-container {
    width: 100% !important;
    max-width: 550px !important;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 0 auto !important;
}

.couple-photo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.couple-photo:hover {
    transform: scale(1.02);
}

main.page-1 .photo-date {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 1.8rem !important;
    color: #000000 !important;
    font-weight: 600 !important;
    letter-spacing: 3px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    margin: 0 !important;
    text-align: center !important;
}

/* Для больших экранов (2K и выше) */
@media (min-width: 2560px) {
    main.page-1 {
        padding: 60px 60px !important;
        gap: 35px !important;
    }
    
    .names {
        font-size: 8rem;
        letter-spacing: 8px;
        margin-bottom: 40px;
    }
    
    main.page-1 .invitation-text-center .invitation-text {
        font-size: 3.5rem !important;
        line-height: 1.5 !important;
    }
    
    /* Страница 2 */
    .page-2-text {
        font-size: 2.3rem !important;
    }
    
    main.page-1 .photo-section {
        max-width: 800px !important;
        gap: 25px !important;
    }
    
    main.page-1 .photo-container {
        max-width: 800px !important;
    }
    
    main.page-1 .photo-date {
        font-size: 2.5rem !important;
        letter-spacing: 4px !important;
    }
    
    /* Страница 4 - Дресс-код */
    .dresscode-text {
        font-size: 2rem !important;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    /* Страница 1 */
    main.page-1 {
        padding: 30px 20px !important;
        gap: 25px !important;
    }
    
    .names {
        font-size: 2.8rem;
        letter-spacing: 2px;
        margin-bottom: 15px;
    }
    
    .ampersand {
        font-size: 2.3rem;
        margin: 0 8px;
    }
    
    main.page-1 .invitation-text-center {
        margin-top: 0 !important;
        max-width: 90% !important;
    }
    
    main.page-1 .invitation-text-center .invitation-text {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    main.page-1 .photo-section {
        gap: 15px !important;
        max-width: 90% !important;
    }
    
    main.page-1 .couple-photo {
        width: 100% !important;
        height: auto !important;
        max-height: 400px !important;
        object-fit: cover !important;
    }
    
    main.page-1 .photo-date {
        font-size: 1.4rem !important;
        letter-spacing: 2px !important;
    }
    
    /* Страница 2 */
    .page-2-content {
        padding: 40px 25px !important;
        width: 90% !important;
        margin: 0 auto !important;
    }
    
    .page-2-title {
        font-size: 1.8rem !important;
        margin-bottom: 25px !important;
    }
    
    .page-2-text {
        font-size: 1.35rem !important;
        line-height: 1.7 !important;
        max-width: 100% !important;
    }
    
    /* Страница 3 */
    .page-3 .content-card {
        padding: 30px 20px !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }
    
    .page-3 .invitation-title {
        font-size: 1.9rem !important;
        letter-spacing: 2px;
        margin-bottom: 25px !important;
        white-space: nowrap;
        overflow: visible;
    }
    
    .page-3 .date-section {
        margin-bottom: 30px !important;
    }
    
    .page-3 .date-large {
        font-size: 1.8rem !important;
        letter-spacing: 2px;
    }
    
    .page-3 .schedule {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .page-3 .event-section {
        margin-bottom: 0 !important;
    }
    
    .page-3 .time-divider {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .page-3 .event-title {
        font-size: 1.5rem !important;
        margin-bottom: 10px !important;
    }
    
    .page-3 .event-description {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 5px !important;
    }
    
    .page-3 .event-address {
        font-size: 0.95rem !important;
    }
    
    /* Страница 4 - Дресс-код */
    .page-4 .content-card {
        padding: 30px 20px !important;
    }
    
    .page-4 h2 {
        font-size: 2rem !important;
        margin-bottom: 20px !important;
    }
    
    .dresscode-text {
        font-size: 1.2rem !important;
        margin: 20px 0 25px 0 !important;
        line-height: 1.6 !important;
        padding: 0 10px;
    }
    
    .dresscode-photos {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        margin: 25px 0 !important;
        width: 100% !important;
        overflow-x: visible !important;
        justify-content: center !important;
    }
    
    .dresscode-photo {
        width: calc(33.333% - 7px) !important;
        max-width: none !important;
        min-width: 100px !important;
        height: 280px !important;
        object-position: center 20% !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Страница 5 - Подтверждение */
    .page-7 .content-card {
        padding: 35px 25px !important;
        max-width: 95% !important;
        margin: 0 auto !important;
    }
    
    .page-7 h2 {
        font-size: 1.8rem !important;
        margin-bottom: 20px !important;
    }
    
    .confirmation-text {
        font-size: 1.1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
    }
    
    .contacts {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
    }
    
    .contacts p {
        margin: 10px 0 !important;
    }
    
    .final-words {
        font-size: 1rem !important;
    }
    
    .final-words p {
        margin: 10px 0 !important;
    }
    
    .signature {
        font-size: 1.1rem !important;
        margin-top: 15px !important;
    }
    
    /* Общие стили */
    body {
        overflow-x: hidden !important;
    }
    
    .section {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .content-card {
        padding: 30px 20px;
        max-width: 95%;
        margin: 0 auto;
    }
    
    /* Декоративные элементы - уменьшаем на мобильных */
    .italian-mosaic,
    .mosaic-corner {
        opacity: 0.1 !important;
    }
    
    .final-words p {
        font-size: 1rem;
    }
    
    .confirmation-text {
        font-size: 0.95rem;
    }
    
    .contacts {
        font-size: 0.9rem;
    }
    
    .mosaic-corner {
        width: 80px;
        height: 80px;
    }
    
    .date-time-container {
        gap: 30px;
    }
}

