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

body {
    font-family: 'Montserrat', sans-serif;
    overflow: hidden;
    height: 100vh;
}

.landing-container {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Фоновое изображение */
.landing-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.15);
}

.landing-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(12px) brightness(0.7);
    transform: scale(1.1);
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* Конверт */
.envelope-container {
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.envelope-wrapper {
    position: relative;
    transform: rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.envelope-container:hover .envelope-wrapper {
    transform: rotate(0deg) scale(1.02);
}

.envelope-card {
    position: relative;
    width: 500px;
    min-height: 400px;
    background: #f5f0e8;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: visible;
}

/* Клапан конверта (треугольный) */
.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    background: #f0e8dc;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-radius: 8px 8px 0 0;
    z-index: 2;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
}

/* Тело конверта */
.envelope-body {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #f5f0e8;
    border-radius: 8px;
    padding: 180px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Фотография, выглядывающая из конверта */
.envelope-photo {
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 5;
    border: 3px solid #f5f0e8;
}

.envelope-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1);
}

/* Текст на конверте */
.envelope-text {
    text-align: center;
    width: 100%;
    margin-top: 20px;
}

.envelope-text-top {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.envelope-text-bottom {
    font-family: 'Dancing Script', 'Great Vibes', cursive;
    font-size: 42px;
    font-weight: 400;
    color: #2c2c2c;
    line-height: 1.2;
    font-style: italic;
}

/* Содержимое конверта (вылетает при клике) */
.envelope-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 500px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 15;
}

.envelope-content.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}

.invitation-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.invitation-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 15px;
    line-height: 1.2;
}

.invitation-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #666;
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: lowercase;
}

.invitation-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.groom-name,
.bride-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    color: #2c2c2c;
}

.and-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 300;
    color: #999;
}

.invitation-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #666;
    margin-bottom: 35px;
    letter-spacing: 2px;
}

.invitation-button {
    background: #2c2c2c;
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.invitation-button:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.invitation-button:active {
    transform: translateY(0);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.invitation-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Подсказка для клика */
.click-hint {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.click-hint p {
    margin: 0;
}

.click-hint svg {
    width: 24px;
    height: 24px;
    opacity: 0.9;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .landing-container {
        padding: 20px;
    }
    
    .landing-image {
        transform: scale(1.1);
        filter: blur(10px) brightness(0.65);
    }
    
    .landing-image video {
        transform: scale(1.05);
        filter: blur(10px) brightness(0.65);
    }
    
    .envelope-container {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .envelope-wrapper {
        transform: rotate(0deg) !important;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }
    
    .envelope-card {
        width: 100%;
        max-width: 380px;
        min-height: 380px;
        margin: 0 auto;
    }
    
    .envelope-body {
        min-height: 380px;
        padding: 160px 25px 30px 25px;
    }
    
    .envelope-flap {
        height: 42%;
    }
    
    .envelope-photo {
        width: 150px;
        height: 150px;
        top: -55px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .envelope-text {
        margin-top: 10px;
    }
    
    .envelope-text-top {
        font-size: 15px;
        letter-spacing: 1.5px;
    }
    
    .envelope-text-bottom {
        font-size: 34px;
    }
    
    .envelope-content {
        width: 90%;
        max-width: 380px;
        left: 50%;
    }
    
    .invitation-card {
        padding: 35px 25px;
    }
    
    .invitation-title {
        font-size: 40px;
    }
    
    .groom-name,
    .bride-name {
        font-size: 30px;
    }
    
    .click-hint {
        font-size: 12px;
        bottom: 25px;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 15px;
    }
    
    .landing-image {
        transform: scale(1.05);
        filter: blur(8px) brightness(0.6);
    }
    
    .landing-image video {
        transform: scale(1.02);
        filter: blur(8px) brightness(0.6);
    }
    
    .envelope-wrapper {
        max-width: 320px;
    }
    
    .envelope-card {
        max-width: 320px;
        min-height: 340px;
    }
    
    .envelope-body {
        min-height: 340px;
        padding: 130px 20px 25px 20px;
    }
    
    .envelope-flap {
        height: 38%;
    }
    
    .envelope-photo {
        width: 130px;
        height: 130px;
        top: -45px;
    }
    
    .envelope-text-top {
        font-size: 13px;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .envelope-text-bottom {
        font-size: 30px;
    }
    
    .envelope-content {
        width: 90%;
        max-width: 320px;
    }
    
    .invitation-card {
        padding: 30px 20px;
    }
    
    .invitation-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .invitation-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .groom-name,
    .bride-name {
        font-size: 26px;
    }
    
    .and-text {
        font-size: 20px;
    }
    
    .invitation-date {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .invitation-button {
        padding: 12px 30px;
        font-size: 13px;
    }
    
    .click-hint {
        font-size: 11px;
        bottom: 20px;
    }
    
    .click-hint svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .envelope-wrapper {
        max-width: 280px;
    }
    
    .envelope-card {
        max-width: 280px;
        min-height: 320px;
    }
    
    .envelope-body {
        min-height: 320px;
        padding: 120px 15px 20px 15px;
    }
    
    .envelope-photo {
        width: 110px;
        height: 110px;
        top: -40px;
    }
    
    .envelope-text-top {
        font-size: 12px;
    }
    
    .envelope-text-bottom {
        font-size: 28px;
    }
    
    .envelope-content {
        max-width: 280px;
    }
    
    .invitation-card {
        padding: 25px 15px;
    }
    
    .invitation-title {
        font-size: 28px;
    }
    
    .groom-name,
    .bride-name {
        font-size: 24px;
    }
}
