* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    overflow-x: hidden;
    background: linear-gradient(135deg, #e6f0fa 0%, #d4e4f5 100%);
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Прелоадер */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.heart {
    width: 70px;
    height: 70px;
    background: #a8d0e6;
    position: relative;
    transform: rotate(45deg);
    animation: heartbeat 1.4s infinite;
    box-shadow: 0 0 20px rgba(168, 208, 230, 0.5);
}

.heart:before,
.heart:after {
    content: '';
    width: 70px;
    height: 70px;
    background: #a8d0e6;
    border-radius: 50%;
    position: absolute;
}

.heart:before {
    left: -35px;
}

.heart:after {
    top: -35px;
}

@keyframes heartbeat {
    0% { transform: rotate(45deg) scale(1); }
    25% { transform: rotate(45deg) scale(1.1); }
    50% { transform: rotate(45deg) scale(1); }
    75% { transform: rotate(45deg) scale(1.1); }
    100% { transform: rotate(45deg) scale(1); }
}

/* Главный экран */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #b8d8f0 0%, #9bc0d9 50%, #7fa8c2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #1e3a5f;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(45deg);
    animation: shine 15s infinite linear;
}

@keyframes shine {
    from { left: -100%; top: -100%; }
    to { left: 100%; top: 100%; }
}

.hero-content {
    z-index: 1;
    animation: fadeInUp 1.5s ease;
    background: rgba(255, 255, 255, 0.25);
    padding: 50px 70px;
    border-radius: 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 40, 80, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.names {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #1e3a5f;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.names .amp {
    font-style: italic;
    opacity: 0.9;
    font-size: 3rem;
    padding: 0 1rem;
    color: #5c8bb3;
}

.date {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    font-weight: 300;
    color: #1e3a5f;
}

/* Таймер */
.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-item span:first-child {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1;
    color: #1e3a5f;
}

.countdown-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
    color: #1e3a5f;
}

/* Секции */
section {
    padding: 80px 0;
    position: relative;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    color: #1e3a5f;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, #a8d0e6, #5c8bb3);
}

/* История */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(92, 139, 179, 0.2);
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item.placeholder {
    background: linear-gradient(135deg, #d4e4f5 0%, #b8d8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5c8bb3;
    font-size: 0.9rem;
    border: 2px dashed rgba(92, 139, 179, 0.3);
}

.photo-note {
    text-align: center;
    margin-top: 1rem;
    color: #5c8bb3;
    font-style: italic;
}

/* Детали */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 30px;
    text-align: center;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(92, 139, 179, 0.2);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(92, 139, 179, 0.3);
}

.detail-card:nth-child(2) { animation-delay: 0.2s; }
.detail-card:nth-child(3) { animation-delay: 0.4s; }

.icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 10px rgba(92, 139, 179, 0.3));
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e3a5f;
}

.detail-card p {
    color: #2c4c6e;
    line-height: 1.6;
}

.detail-card .small {
    font-size: 0.9rem;
    color: #5c8bb3;
    margin-top: 0.5rem;
}

/* Форма пожеланий */
.wishes {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.wishes-container {
    max-width: 800px;
    margin: 0 auto;
}

.wish-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wish-form input,
.wish-form textarea {
    padding: 1rem;
    border: 1px solid rgba(92, 139, 179, 0.3);
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
}

.wish-form input:focus,
.wish-form textarea:focus {
    outline: none;
    border-color: #5c8bb3;
    box-shadow: 0 0 0 3px rgba(92, 139, 179, 0.2);
    background: white;
}

.wish-form textarea {
    min-height: 100px;
    resize: vertical;
}

.btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #a8d0e6 0%, #5c8bb3 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(92, 139, 179, 0.4);
}

/* Список пожеланий */
.wishes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wish-item {
    background: rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 20px;
    animation: slideIn 0.5s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wish-item strong {
    color: #1e3a5f;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.wish-item p {
    color: #2c4c6e;
    line-height: 1.6;
}

.wish-date {
    font-size: 0.8rem;
    color: #5c8bb3;
    margin-top: 0.5rem;
}

/* Скролл хинт */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #1e3a5f;
    cursor: pointer;
    animation: bounce 2s infinite;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-30px); }
    60% { transform: translateX(-50%) translateY(-15px); }
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #1e3a5f;
    border-bottom: 2px solid #1e3a5f;
    transform: rotate(45deg);
    margin: 10px auto;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(30, 58, 95, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

/* Подвал */
footer {
    background: rgba(30, 58, 95, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-top: 1rem;
    font-style: italic;
    color: #d4e4f5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .names {
        font-size: 2.5rem;
    }
    
    .names .amp {
        font-size: 2rem;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .countdown {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .countdown-item {
        padding: 10px 15px;
    }
    
    .countdown-item span:first-child {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .story-content {
        padding: 20px;
    }
}