* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #c9a870;
    --primary-light: #e8d7b8;
    --text-dark: #1a1a1a;
    --text-light: #fff;
    --bg-light: #f9f7f4;
    --bg-cream: #fdfbf7;
    --accent: #b89968;
    --accent-dark: #8b7355;
    --transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-light: 0 4px 20px rgba(201, 168, 112, 0.08);
    --shadow-medium: 0 8px 40px rgba(201, 168, 112, 0.12);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.15);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 1.5s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%),
        linear-gradient(to bottom, rgba(201,168,112,0.15) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 9vw, 5rem);
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.05em;
}

.name {
    display: block;
    animation: fadeInSlide 1s ease-out both;
}

.name:first-child {
    animation-delay: 0.5s;
}

.ampersand {
    display: block;
    font-size: 0.5em;
    opacity: 0.9;
    margin: 15px 0;
    animation: fadeInScale 1.2s ease-out 1s both;
    color: var(--primary-light);
}

.name:last-child {
    animation-delay: 0.7s;
}

.hero-date {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 3vw, 1rem);
    font-weight: 400;
    color: var(--primary-light);
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-out 1.2s both;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: fadeIn 1s ease-out 2s both;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: var(--text-light);
    position: relative;
    animation: scrollDown 2s ease-in-out infinite;
}

/* Invitation Section */
.section-invitation {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.invitation-card {
    background: white;
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 112, 0.1);
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible .invitation-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.invitation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(201, 168, 112, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(201, 168, 112, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.invitation-ornament {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto 30px;
    position: relative;
    box-shadow: 0 0 10px rgba(201, 168, 112, 0.3);
}

.invitation-ornament::before,
.invitation-ornament::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.invitation-ornament::before {
    left: -10px;
}

.invitation-ornament::after {
    right: -10px;
}

.invitation-ornament.top {
    margin-bottom: 40px;
}

.invitation-ornament.bottom {
    margin-top: 40px;
    margin-bottom: 0;
}

.invitation-content {
    position: relative;
    z-index: 1;
}

.invitation-greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 35px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.2s;
}

.section.visible .invitation-greeting {
    opacity: 1;
    transform: translateY(0);
}

.invitation-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.invitation-text:first-of-type {
    transition-delay: 0.3s;
}

.invitation-text:nth-of-type(2) {
    transition-delay: 0.4s;
}

.section.visible .invitation-text {
    opacity: 1;
    transform: translateY(0);
}

.invitation-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 35px auto;
    opacity: 0;
    transition: all 0.6s ease-out 0.6s;
}

.section.visible .invitation-divider {
    opacity: 0.5;
}

.invitation-signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent);
    text-align: center;
    font-style: italic;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.7s;
}

.section.visible .invitation-signature {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
.section {
    padding: 100px 20px;
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: var(--transition);
    position: relative;
}

.section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.section.visible::before {
    opacity: 0.3;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.section-icon {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-icon svg {
    width: 70px;
    height: 70px;
    stroke: var(--primary-color);
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 4px 12px rgba(201, 168, 112, 0.2));
    animation: floatIcon 3s ease-in-out infinite;
    transition: var(--transition);
}

.section-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 168, 112, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    z-index: -1;
}

.section-dresscode .section-icon svg {
    stroke: var(--primary-light);
}

.section.visible .section-icon svg {
    animation: floatIcon 3s ease-in-out infinite, iconAppear 0.8s ease-out both;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.2rem, 7vw, 3.5rem);
    font-weight: 400;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 50px;
    position: relative;
    letter-spacing: 0.02em;
}

.section-title::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 25px auto 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    box-shadow: 0 0 10px rgba(201, 168, 112, 0.3);
}

.section.visible .section-title::after {
    width: 80px;
}

/* Time Section */
.section-time {
    background: 
        linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.section-time::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 168, 112, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.section-time::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(201, 168, 112, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

.time-details {
    text-align: center;
    position: relative;
    z-index: 1;
}

.time-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 0.02em;
}

.time-clock {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 35px;
    letter-spacing: 0.08em;
}

.time-note {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    font-weight: 300;
}

/* Venue Section */
.venue-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.section.visible .venue-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out 0.3s;
}

.venue-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(201, 168, 112, 0.1), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.venue-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-heavy);
}

.venue-card:hover::before {
    opacity: 1;
}

.venue-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.venue-card:hover .venue-image {
    transform: scale(1.05);
}

.venue-image-second {
    height: 200px;
}

.venue-details {
    padding: 30px;
}

.venue-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
    letter-spacing: 0.02em;
    position: relative;
    display: inline-block;
}

.venue-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.6s ease 0.5s;
}

.section.visible .venue-name::after {
    width: 100%;
}

.venue-description,
.venue-atmosphere {
    font-size: 1rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 18px;
    font-weight: 300;
}

/* Dress Code Section */
.section-dresscode {
    background: 
        linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.section-dresscode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(201, 168, 112, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(201, 168, 112, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-dresscode .section-title {
    color: var(--text-light);
}

.section-dresscode .section-title::after {
    background: var(--text-light);
}

.dresscode-style {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 7vw, 3rem);
    font-weight: 400;
    text-align: center;
    color: var(--primary-light);
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.dresscode-description {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 35px;
    font-weight: 300;
}

.dresscode-note {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(201, 168, 112, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s;
}

.section.visible .dresscode-note {
    opacity: 1;
    transform: scale(1);
}

.dresscode-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 112, 0.1), transparent);
    transition: left 0.8s ease;
}

.dresscode-note:hover::before {
    left: 100%;
}

.dresscode-note p:first-child {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 18px;
    color: var(--primary-light);
}

.dresscode-hint {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 300;
}

/* Mood Section */
.section-mood {
    background: 
        linear-gradient(135deg, #fffaf2 0%, var(--bg-light) 100%);
    position: relative;
}

.section-mood::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 168, 112, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

.mood-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.mood-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
    letter-spacing: 0.02em;
}

.mood-description,
.mood-accent,
.mood-final {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #555;
    margin-bottom: 25px;
    font-weight: 300;
}

.mood-accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
    font-size: 1.1rem;
}

.mood-final {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-top: 35px;
    font-weight: 400;
}

.mood-content {
    text-align: center;
}

.mood-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.mood-description,
.mood-accent,
.mood-final {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    font-weight: 300;
}

.mood-accent {
    font-style: italic;
    color: var(--accent);
    font-weight: 400;
}

.mood-final {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-top: 30px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
    color: var(--text-light);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 112, 0.3), transparent);
}

.footer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: var(--primary-light);
}

.footer-date {
    font-size: 0.9rem;
    opacity: 0.7;
    letter-spacing: 3px;
    color: var(--primary-light);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        transform: scale(1.2);
    }
    to {
        transform: scale(1);
    }
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@keyframes iconAppear {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 0.9;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Плавная анимация для текста */
.venue-description,
.venue-atmosphere,
.time-date,
.time-clock,
.time-note,
.mood-main,
.mood-description,
.mood-accent,
.mood-final,
.dresscode-style,
.dresscode-description,
.dresscode-hint,
.venue-name {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Задержки для последовательного появления */
.venue-description {
    transition-delay: 0.1s;
}

.venue-atmosphere {
    transition-delay: 0.2s;
}

.mood-description {
    transition-delay: 0.1s;
}

.mood-accent {
    transition-delay: 0.2s;
}

.mood-final {
    transition-delay: 0.3s;
}

.dresscode-description {
    transition-delay: 0.1s;
}

.dresscode-hint {
    transition-delay: 0.2s;
}

.time-clock {
    transition-delay: 0.15s;
    transform: translateY(30px) scale(0.95);
}

.time-clock.text-visible {
    transform: translateY(0) scale(1) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .section {
        padding: 60px 15px;
    }
    
    .venue-details {
        padding: 20px;
    }
    
    .venue-image {
        height: 200px;
    }

    .invitation-card {
        padding: 40px 25px;
    }

    .invitation-greeting {
        font-size: 1.5rem;
    }

    .invitation-text {
        font-size: 1rem;
    }
}
