/* ===== ОБЩЕЕ ===== */

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

body {
    font-family: 'Montserrat', sans-serif;
    color: #333;

    background-image: 
        linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
        url("wed.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* ===== ГЛАВНЫЙ ЭКРАН ===== */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    background: rgba(255,255,255,0.85);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    margin-bottom: 10px;
}

.date {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    border-top: 1px solid #c9a96e;
    border-bottom: 1px solid #c9a96e;
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
}

.countdown-title {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

/* ===== ТАЙМЕР ===== */

#countdown {
    display: flex;
    justify-content: center;
    gap: 25px;
}

#countdown span {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

#countdown p {
    font-size: 12px;
    opacity: 0.7;
}

/* ===== БЛОКИ ===== */

.block {
    padding: 80px 20px;
    text-align: center;
}

.block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 20px;
}

/* ===== ПРИГЛАШЕНИЕ ===== */

.invite-text {
    max-width: 700px;
    margin: 20px auto;
    font-size: 18px;
    line-height: 1.8;
}

.invite-subtext {
    max-width: 650px;
    margin: 15px auto 0;
    font-size: 16px;
    opacity: 0.8;
    font-style: italic;
}

/* ===== ДЕТАЛИ ===== */

.grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 25px;
    min-width: 220px;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 10px;
}

/* ===== РАСПИСАНИЕ ===== */

.timeline {
    max-width: 600px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.time-item {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: bold;
    color: #c9a96e;
}

/* ===== КАРТА ===== */

.map-container {
    max-width: 800px;
    margin: 30px auto;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 15px;
}

/* ===== ПОДВАЛ ===== */

.footer {
    text-align: center;
    padding: 50px;
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(201,169,110,0.4);
}
/* =========================
   📱 ТЕЛЕФОНЫ
========================= */

@media (max-width: 768px) {

    body {
        background-image: 
            linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
            url("wed_phone.jpg");

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
    /* главный экран */
    h1 {
        font-size: 34px;
    }

    .date {
        font-size: 22px;
        padding: 8px 14px;
    }

    .overlay {
        padding: 25px;
        margin: 20px;
    }

    /* таймер */
    #countdown {
        gap: 12px;
        flex-wrap: wrap;
    }

    #countdown span {
        font-size: 22px;
    }

    /* блоки */
    .block {
        padding: 50px 15px;
    }

    .block h2 {
        font-size: 26px;
    }

    /* карточки */
    .grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .card {
        width: 100%;
        max-width: 320px;
    }

    /* расписание */
    .time-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .time-item p {
        text-align: center;
        margin-left: 0;
    }

    /* карта */
    .map-container {
        padding: 10px;
    }
}