:root {
    --primary: #1f4a3a;
    --secondary: #e6b89c;
    --light-mint: rgba(210, 240, 220, 0.9);
    --shadow: 0 10px 30px rgba(0, 20, 10, 0.2);
    --font-head: 'Great Vibes', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-body);
    color: #000000; /* весь текст чёрный */
    line-height: 1.6;
    min-height: 100vh;
    background: #f0f7f4;
    position: relative;
}

/* Фоновый GIF (фиксированный на весь экран) */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    z-index: -2;
}

/* Мятный полупрозрачный блок */
.content {
    max-width: 1000px;
    margin: 30px auto;
    background: var(--light-mint);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.3);
    color: #000000;
}

h1, h2 {
    font-family: var(--font-head);
    color: #000000; /* чёрный */
    text-align: center;
}

h1 {
    font-size: 4em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.2em;
    margin: 20px 0 15px;
}

.subtitle {
    font-size: 1.2em;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 10px;
}

.invite-text {
    text-align: center;
    font-size: 1.1em;
}

/* Таймер */
.flip-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.flip-timer .flip-unit {
    background: white;
    border-radius: 20px;
    padding: 15px 10px;
    min-width: 90px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--secondary);
}

.flip-timer .digit {
    font-size: 2.5em;
    font-weight: 600;
    color: #000000; /* чёрный */
    line-height: 1;
}

.flip-timer .label {
    font-size: 0.85em;
    text-transform: uppercase;
    color: #000;
}

/* Фото пары (квадратное) */
.couple {
    text-align: center;
    margin: 0 0 30px 0;
}

.photo-frame {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.names {
    font-family: var(--font-head);
    font-size: 2.8em;
    color: #000000;
    margin: 15px 0 5px;
}

.date {
    font-size: 1.2em;
    color: #000;
    font-weight: 600;
}

.invitation-title {
    font-family: var(--font-head);
    color: #000000;
    font-size: 2.5em;
    margin-top: 10px;
}

/* Карта */
.map-container {
    margin: 20px 0;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    max-width: 100%;
    display: block;
}

/* Программа */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.schedule-item {
    background: white;
    border-radius: 30px;
    padding: 20px 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: 0.3s;
    color: #000;
}

.schedule-item i {
    font-size: 2.2em;
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
}

.schedule-item span {
    display: block;
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
}

/* Дресс-код */
.dresscode-img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin: 15px 0;
}

/* Кнопка RSVP */
.rsvp-btn {
    background: linear-gradient(135deg, var(--primary), #123d2e);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.8em;
    font-family: var(--font-head);
    border-radius: 60px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: inline-block;
}

.rsvp-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.rsvp-wrapper {
    text-align: center;
    margin: 40px 0 10px;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: white;
    margin: 5% auto;
    padding: 35px;
    border-radius: 60px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    border: 15px solid transparent;
    border-image: url('images/heart-border.png') 30 round;
    color: #000;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    cursor: pointer;
    color: #999;
    transition: 0.3s;
}

.close:hover {
    color: var(--primary);
}

.deadline {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--primary);
}

/* Форма */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #eee;
    border-radius: 40px;
    font-size: 16px;
    transition: 0.3s;
    background: #fff;
    color: #000;
}

input[type="text"]:focus,
textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    padding: 5px 0;
    color: #000;
}

input[type="radio"],
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

textarea {
    border-radius: 30px;
    resize: vertical;
}

.submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 60px;
    font-size: 1.5em;
    font-family: var(--font-head);
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #123d2e;
    transform: translateY(-2px);
}

/* Финальная секция с двумя фото */
.final .couple-photos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.final .photo-frame {
    width: 280px;
    height: 280px;
    margin: 0;
    border-radius: 0;
    border: 5px solid white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.final .photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.final {
    text-align: center;
    padding: 30px 0 10px;
    border-top: 2px dashed var(--secondary);
}

/* Большая кнопка музыки (видное место) */
.music-control {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 9999;
}

.music-button {
    background: linear-gradient(135deg, #ff6f61, #de4d3a);
    border: 3px solid white;
    color: white;
    font-size: 1.8rem;
    padding: 15px 30px;
    border-radius: 60px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    font-family: var(--font-body), sans-serif;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.8);
}

.music-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #ff8a7a, #ff5a4a);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.music-button i {
    font-size: 2.2rem;
}

.music-text {
    font-size: 1.4rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 111, 97, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(255, 111, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 111, 97, 0); }
}

/* Адаптация */
@media (max-width: 768px) {
    .content {
        margin: 15px;
        padding: 30px 20px;
        border-radius: 40px;
    }
    h1 {
        font-size: 3.2em;
    }
    h2 {
        font-size: 2em;
    }
    .photo-frame {
        width: 240px;
        height: 240px;
    }
    .names {
        font-size: 2.5em;
    }
    .flip-timer .flip-unit {
        min-width: 75px;
        padding: 12px 5px;
    }
    .flip-timer .digit {
        font-size: 2em;
    }
    .schedule-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rsvp-btn {
        font-size: 1.5em;
        padding: 12px 30px;
    }
    .final .photo-frame {
        width: 240px;
        height: 240px;
    }
    .music-control {
        top: 15px;
        right: 15px;
    }
    .music-button {
        font-size: 1.4rem;
        padding: 10px 20px;
    }
    .music-button i {
        font-size: 1.8rem;
    }
    .music-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content {
        margin: 10px;
        padding: 25px 15px;
        border-radius: 30px;
    }
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 1.8em;
    }
    .photo-frame {
        width: 200px;
        height: 200px;
    }
    .names {
        font-size: 2.2em;
    }
    .flip-timer {
        flex-direction: column;
        align-items: center;
    }
    .flip-timer .flip-unit {
        width: 100%;
        max-width: 200px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
    }
    .flip-timer .digit {
        font-size: 2em;
    }
    .flip-timer .label {
        font-size: 1em;
    }
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    .schedule-item {
        display: flex;
        align-items: center;
        gap: 15px;
        text-align: left;
        padding: 12px 20px;
    }
    .schedule-item i {
        font-size: 1.8em;
        margin-bottom: 0;
        width: 40px;
    }
    .schedule-item span {
        font-size: 1.1em;
        min-width: 55px;
        margin-bottom: 0;
    }
    .map-container iframe {
        height: 200px;
    }
    .rsvp-btn {
        font-size: 1.3em;
        padding: 12px 20px;
        width: 100%;
    }
    .modal-content {
        padding: 25px 15px;
        border-width: 10px;
    }
    .modal-content h2 {
        font-size: 1.8em;
    }
    .final .couple-photos {
        gap: 15px;
    }
    .final .photo-frame {
        width: 200px;
        height: 200px;
    }
    .music-button {
        padding: 8px 16px;
    }
    .music-text {
        display: none;
    }
}