* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #4a3b2f;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(145deg, #fff9f5 0%, #fff0e6 100%);
}

/* Фиксированный фон через псевдоэлемент (не двигается при прокрутке) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg-desktop.jpg'); /* ЗАМЕНИТЕ НА ВАШ ФАЙЛ */
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
}

/* Для мобильных устройств – своё изображение, фон тоже фиксирован */
@media (max-width: 768px) {
    body::before {
        background-image: url('bg-mobile.png'); /* ЗАМЕНИТЕ НА ВАШ МОБИЛЬНЫЙ ФАЙЛ */
        background-size: contain;
    }
}

/* Остальные стили без изменений, только где нужна полупрозрачность, добавляем фон */
/* ... (весь ваш старый style.css без блоков body::before и body::after для веток) */

/* ========== ОТКРЫТКА-ПИСЬМО ========== */
.letter-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(145deg, #fff0e6, #ffe0d0);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    backdrop-filter: blur(2px);
}

.letter-card {
    width: 90%;
    max-width: 480px;
    background: #fffef7;
    border-radius: 32px;
    box-shadow: 0 30px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,200,0.5);
    padding: 2rem 1.5rem 2rem 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    transition: transform 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.letter-header {
    margin-bottom: 2rem;
}

.postmark {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.letter-header h3 {
    font-size: 1.8rem;
    color: #b45f2b;
    letter-spacing: 2px;
    font-weight: 600;
    margin: 0;
    border-bottom: 2px dashed #f3d5b5;
    display: inline-block;
    padding-bottom: 8px;
}

.heart-button {
    background: #fff0e8;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1.5rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 1px solid #ffe0d0;
    text-align: center;
    padding: 0 8px;
}

.heart-button:hover {
    transform: scale(1.05);
    background: #ffe4d6;
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
}

.heart-icon {
    font-size: 3rem;
    line-height: 1;
    animation: heartbeat 1.2s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.heart-button span {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    color: #a75d2e;
    margin-top: 6px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.letter-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #f3e0d0;
    font-size: 1rem;
    color: #7a5a44;
}

.letter-footer p {
    margin: 5px 0;
    font-style: italic;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.content-wrapper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease 0.2s;
}

.content-wrapper.visible {
    opacity: 1;
    visibility: visible;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero-блок */
.hero {
    text-align: center;
    padding: 4rem 1rem;
    background: rgba(255,245,235,0.85);
    border-radius: 60px 60px 30px 30px;
    margin-bottom: 4rem;
    backdrop-filter: blur(2px);
}

.hero-subtitle {
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #b67b46;
    font-weight: 500;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #b45f2b, #d99564);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.date-badge {
    display: inline-block;
    background: #f1d5bf;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-weight: bold;
    margin: 1rem 0;
    font-size: 1.1rem;
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: #6b4c34;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.countdown-item {
    background: white;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    min-width: 80px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.countdown-item span:first-child {
    font-size: 2.2rem;
    font-weight: bold;
    display: block;
    color: #b45f2b;
}

.countdown-item span:last-child {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Детали */
.details {
    margin: 5rem 0;
}

h2 {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    color: #4a3b2f;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #e2b18a;
    margin: 0.5rem auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.detail-card {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    border-radius: 30px;
    box-shadow: 0 15px 25px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.08);
}

.detail-card i {
    font-size: 2.5rem;
    color: #d99463;
    margin-bottom: 1rem;
}

.detail-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

/* ========== КАЛЕНДАРЬ ========== */
.calendar-section {
    background: rgba(255,250,245,0.9);
    border-radius: 48px;
    padding: 2rem 1rem;
    margin: 4rem 0;
    text-align: center;
}

.calendar-wrapper {
    max-width: 450px;
    margin: 0 auto;
}

.calendar-month {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #b45f2b;
    margin-bottom: 1rem;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.calendar-table th,
.calendar-table td {
    padding: 12px 8px;
    text-align: center;
    font-weight: 500;
}

.calendar-table th {
    background: #fef1e6;
    color: #b45f2b;
    font-weight: 600;
}

.calendar-table td {
    background: white;
    border: 1px solid #f8e5d8;
}

.wedding-day {
    background: #f7cfb0 !important;
    color: #a0481a;
    font-weight: bold;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 2px #f3be8f;
}

.calendar-note {
    margin-top: 1.2rem;
    font-style: italic;
    color: #a77b55;
}

/* ========== ПРОГРАММА (ТАЙМИНГ) ========== */
.schedule-section {
    background: rgba(255,248,242,0.9);
    border-radius: 48px;
    padding: 2rem 2rem;
    margin: 4rem 0;
}

.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed #eedbcb;
}

.timeline-time {
    font-weight: bold;
    font-size: 1.2rem;
    color: #b67b46;
    min-width: 90px;
    font-family: monospace;
}

.timeline-desc {
    font-size: 1rem;
    color: #5e3e28;
}

.schedule-note {
    margin-top: 2rem;
    font-size: 0.9rem;
    text-align: center;
    color: #9b7a60;
    background: #fff2e8;
    padding: 0.8rem;
    border-radius: 30px;
}

/* ========== ПОДАРКИ ========== */
.gifts-section {
    background: linear-gradient(135deg, rgba(255,245,237,0.95), rgba(255,232,220,0.95));
    border-radius: 48px;
    padding: 2rem;
    margin: 4rem 0;
    text-align: center;
}

.gifts-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.gift-card {
    background: white;
    border-radius: 32px;
    padding: 1.8rem;
    margin-top: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.gift-card i {
    font-size: 2.5rem;
    color: #d4854a;
    margin-bottom: 1rem;
}

.bank-details {
    background: #fef7f0;
    border-radius: 40px;
    padding: 1rem;
    margin: 1.2rem 0;
}

.card-number {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    background: #fff;
    display: inline-block;
    padding: 8px 20px;
    border-radius: 40px;
    border: 1px solid #eedbcb;
    margin-bottom: 12px;
}

.copy-btn {
    background: #b67b46;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #9b6234;
}

.thanks-text {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #8b694c;
}

/* ========== ФОРМА ========== */
.wishes {
    background: rgba(255,248,242,0.95);
    border-radius: 50px;
    padding: 2rem;
    margin: 4rem 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    overflow-x: hidden;
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: left;
}

label {
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    color: #5e3e28;
    text-align: left;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #eedbcb;
    border-radius: 30px;
    font-family: inherit;
    background: white;
    transition: 0.2s;
    box-sizing: border-box;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    width: 100%;
    margin-top: 0.3rem;
}

.radio-group label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.3;
    font-size: 1rem;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.btn-submit {
    background: #b67b46;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    width: 100%;
    max-width: 250px;
    display: block;
    margin: 0 auto;
}

.btn-submit:hover {
    background: #9b6234;
    transform: scale(1.02);
}

#formMessage {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid #f3e1d1;
    color: #8b6a51;
}

/* Анимации появления при скролле */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    .letter-card {
        width: 90%;
        padding: 1.2rem;
    }
    .heart-button {
        width: 120px;
        height: 120px;
    }
    .heart-icon {
        font-size: 2.5rem;
    }
    .heart-button span {
        font-size: 0.75rem;
        white-space: normal;
        padding: 0 5px;
    }
    .letter-header h3 {
        font-size: 1.3rem;
    }
    .wishes {
        padding: 1.2rem;
        margin: 2rem 0;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    input, select, textarea {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    .btn-submit {
        max-width: 100%;
        width: 100%;
        padding: 12px;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    .calendar-table th, .calendar-table td {
        padding: 6px 2px;
        font-size: 0.8rem;
    }
    h1 {
        font-size: 2.5rem;
    }
    .hero {
        padding: 2rem 1rem;
    }
    .countdown-item {
        min-width: 65px;
        padding: 0.8rem;
    }
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    .radio-group {
        gap: 0.7rem;
    }
    .radio-group label {
        font-size: 0.95rem;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .heart-button {
        width: 100px;
        height: 100px;
    }
    .heart-icon {
        font-size: 2rem;
    }
    .heart-button span {
        font-size: 0.7rem;
    }
    .letter-card {
        width: 95%;
        padding: 1rem;
    }
    .countdown-item {
        min-width: 55px;
        padding: 0.5rem;
    }
    .countdown-item span:first-child {
        font-size: 1.2rem;
    }
}