/* Общие стили и переменные */
:root {
    --cream: #F5F1E8;
    --powder-pink: #F4E6E7;
    --beige: #E8DDD4;
    --sage: #C9D4C0;
    --warm-gray: #D4C5B9;
    --text-dark: #5A5A5A;
    --text-light: #8B8B8B;
    --accent: #D4A5A5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: linear-gradient(180deg, var(--cream) 0%, #FAF8F3 100%);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Декоративные лепестки */
.floating-petals {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--powder-pink), var(--accent));
    border-radius: 50% 0 50% 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.petal-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 25s;
}

.petal-2 {
    left: 30%;
    animation-delay: 5s;
    animation-duration: 30s;
}

.petal-3 {
    left: 50%;
    animation-delay: 10s;
    animation-duration: 28s;
}

.petal-4 {
    left: 70%;
    animation-delay: 15s;
    animation-duration: 32s;
}

.petal-5 {
    left: 90%;
    animation-delay: 20s;
    animation-duration: 27s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Декоративные сердечки */
.floating-hearts {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.heart {
    position: absolute;
    color: var(--accent);
    opacity: 0.15;
    animation: floatHeart 25s infinite ease-in-out;
}

.heart svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(212, 165, 165, 0.2));
}

.heart-1 {
    left: 15%;
    animation-delay: 0s;
    animation-duration: 30s;
}

.heart-2 {
    left: 35%;
    animation-delay: 7s;
    animation-duration: 35s;
}

.heart-3 {
    left: 55%;
    animation-delay: 14s;
    animation-duration: 28s;
}

.heart-4 {
    left: 75%;
    animation-delay: 21s;
    animation-duration: 32s;
}

.heart-5 {
    left: 90%;
    animation-delay: 10s;
    animation-duration: 27s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 40px 20px;
    z-index: 2;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    top: 50;
    left: 50;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: linear-gradient(135deg, 
        rgba(245, 241, 232, 0.9) 0%, 
        rgba(244, 230, 231, 0.7) 50%, 
        rgba(232, 221, 212, 0.9) 100%);
}

.hero-image,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: fadeIn 1.5s ease-out;
    transition: transform 0.3s ease-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 1.2s ease-out;
}

.hero-names {
    margin-top: -30px;
    transform: translateY(-10px);
    font-family: 'Dancing Script', cursive;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    margin: 30px auto;
    animation: expand 1.5s ease-out 0.5s both;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

.hero-date {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-invitation {
    white-space: normal;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    max-width: 900px;
    margin: 10px auto 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1;
    text-transform: none;
    letter-spacing: 0.5px;
}

.handwritten {
    font-family: 'Caveat', cursive;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 500;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
}

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

/* Плавный переход от hero к следующей секции */
.hero-gradient-transition {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(245, 241, 232, 0.3) 30%,
        rgba(245, 241, 232, 0.6) 60%,
        rgba(245, 241, 232, 0.9) 90%,
        var(--cream) 100%
    );
    z-index: 4;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Секции */
section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* История */
.story {
    background: var(--cream);
    position: relative;
    margin-top: -1px;
}

.story {
    padding-bottom: 10px;
}

.details {
    padding-top: 10px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.story-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-text p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 300;
}

.story-quote {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    font-weight: 400;
    font-style: italic;
    margin: 0;
}

.story-heart {
    text-align: center;
    margin: 40px 0;
    animation: heartbeat 2s ease-in-out infinite;
    color: var(--accent);
}

.story-heart svg {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 2px 8px rgba(212, 165, 165, 0.3));
    text-align: center;
    margin-top: 10px;     /* меньше сверху */
    margin-bottom: -20px; /* тянем сердечко вниз к деталям */
    animation: heartbeat 2s ease-in-out infinite;
    color: var(--accent);
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Детали свадьбы */
.details {
    background: linear-gradient(180deg, 
        rgba(244, 230, 231, 0.3) 0%, 
        rgba(232, 221, 212, 0.3) 100%);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.detail-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.detail-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-card:hover .timing-item {
    transform: translateX(0);
}

.detail-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-icon svg {
    width: 100%;
    height: 100%;
}

.detail-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.detail-card p {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 300;
}

/* Тайминг */
.timing-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.timing-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border-left: 3px solid var(--accent);
    transition: all 0.3s ease;
}

.timing-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.timing-time {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
}

.timing-event {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 300;
    line-height: 1.4;
}

.timing-address {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.4;
    margin-top: 8px;
    font-style: italic;
}

/* Место проведения */
.detail-card-location {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .detail-card-location {
        grid-column: span 2;
    }
}

.location-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 15px 0 10px;
}

.location-address {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.location-map {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.location-map:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.location-map iframe {
    display: block;
    width: 100%;
    border: none;
}

.route-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--accent) 0%, #C89A9A 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 165, 165, 0.3);
}

.route-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 165, 165, 0.4);
    background: linear-gradient(135deg, #C89A9A 0%, var(--accent) 100%);
}

.route-link:active {
    transform: translateY(0);
}

.route-link svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.route-link span {
    line-height: 1;
}

/* Дресс-код */
.detail-card-dresscode {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .detail-card-timing {
        grid-column: span 2;
    }
}

.dresscode-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 600;
    margin: 15px 0 20px;
}

.dresscode-colors {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dresscode-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 15px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .detail-card-location {
        grid-column: span 1;
    }
    
    .detail-card-dresscode {
        grid-column: span 1;
    }
    
    .location-map {
        margin: 15px 0;
    }
    
    .location-map iframe {
        height: 200px;
    }
    
    .route-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .timing-list {
        gap: 15px;
    }
    
    .timing-item {
        padding: 12px;
    }
    
    .timing-time {
        font-size: 1.1rem;
    }
    
    .dresscode-colors {
        gap: 10px;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
}

/* Галерея */
.gallery {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.gallery-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, 
        var(--powder-pink) 0%, 
        var(--beige) 50%, 
        var(--sage) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
}

.gallery-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="2"/><path d="M35 50 L45 60 L65 40" fill="none" stroke="rgba(255,255,255,0.3)" stroke-width="2"/></svg>') center/50% no-repeat;
    opacity: 0.3;
}

.gallery-placeholder span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    font-weight: 300;
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Список гостей */
.guests {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(244, 230, 231, 0.3) 100%);
}

.guests-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.guests-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.guests-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.guests-list.visible {
    opacity: 1;
    transform: translateY(0);
}

.guest-item {
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 300;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 165, 165, 0.1);
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    position: relative;
}

.guest-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.guest-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(212, 165, 165, 0.3);
}

.guest-item.confirmed {
    background: linear-gradient(135deg, rgba(201, 212, 192, 0.6) 0%, rgba(201, 212, 192, 0.4) 100%);
    border-color: rgba(201, 212, 192, 0.5);
    color: var(--text-dark);
}

.guest-item.confirmed::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--sage);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(201, 212, 192, 0.4);
}

@media (max-width: 768px) {
    .guests-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .guest-item {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
}

/* RSVP */
.rsvp {
    background: linear-gradient(180deg, 
        rgba(232, 221, 212, 0.4) 0%, 
        rgba(201, 212, 192, 0.3) 100%);
}

.rsvp-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.rsvp-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.rsvp-form.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 400;
    text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(212, 165, 165, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-weight: 300;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent) 0%, #C89A9A 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 5px 20px rgba(212, 165, 165, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 165, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Благодарность */
.thanks {
    background: linear-gradient(180deg, 
        rgba(201, 212, 192, 0.3) 0%, 
        rgba(244, 230, 231, 0.4) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.thanks-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.thanks-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.thanks-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-weight: 300;
}

.thanks-signature {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--accent);
    margin-top: 40px;
    font-weight: 600;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .details-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .hero {
        min-height: 90vh;
    }
}

/* Плавное появление элементов при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Модальное окно подтверждения гостя */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, var(--cream) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(212, 165, 165, 0.2);
    color: var(--accent);
    transform: rotate(90deg);
}

.modal-title {
    font-family: 'Dancing Script', cursive;
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.modal-guest-name {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 30px;
    font-family: 'Playfair Display', serif;
}

.modal-form {
    margin-top: 20px;
}

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

.modal-form .submit-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.7rem;
    }
    
    .modal-guest-name {
        font-size: 1.1rem;
    }
}

/* Пожелания по подаркам */
.gift-wishes {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: center;
    padding: 40px 20px;
}

.gift-wishes p {
    line-height: 1.8;
    color: var(--text-dark);
    margin: 15px 0;
}

.gift-wishes p:first-child,
.gift-wishes p:last-child {
    font-size: 1.5rem;
    margin: 10px 0;
}

/* Опросники в модальном окне */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-label:hover,
.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(212, 165, 165, 0.3);
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.radio-label span,
.checkbox-label span {
    flex: 1;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.radio-label input[type="radio"]:checked + span,
.checkbox-label input[type="checkbox"]:checked + span {
    color: var(--accent);
    font-weight: 500;
}

/* Обратный отсчет */
.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 300;
}

@media (max-width: 768px) {
    .countdown {
        gap: 20px;
    }
    
    .countdown-item {
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .gift-wishes {
        padding: 30px 20px;
        margin-top: 40px;
    }
}
/* Большой текст для приветствия */
.hero-invitation-title {
    font-size: 2rem;      /* размер заголовка */
    line-height: 1.3;
    text-align: center;
    margin-bottom: 1rem;
}

/* Меньший текст для деталей приглашения */
.hero-invitation-text {
    font-size: 1.2rem;    /* меньше, чем заголовок */
    line-height: 1.6;
    text-align: center;
}
