* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 50%, #ffc3a0 100%);
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}

.hearts-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    animation: floatUp linear infinite;
}

@keyframes floatUp {
    0%   { transform: translateY(100vh) scale(0.5); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

.slide-container {
    position: relative;
    width: 100%;
    max-width: 700px;
    z-index: 1;
    margin: auto;
}

.slide {
    display: none;
    animation: fadeIn 0.8s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(180, 80, 120, 0.25),
                0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,182,193,0.3), transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ===== Заголовок с именем — флекс-композиция ===== */
.title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.name-arm {
    font-family: 'Noto Serif Armenian', serif;
    font-size: 3.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.15;
    background: linear-gradient(135deg, #c2185b 0%, #ff6b9d 50%, #c2185b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleFade 1.2s ease-out;
}

@keyframes titleFade {
    0%   { opacity: 0; letter-spacing: 8px; }
    100% { opacity: 1; letter-spacing: 1px; }
}

.name-divider {
    font-size: 1.2rem;
    color: #ffb6c1;
    opacity: 0.7;
}

.name-latin {
    font-family: 'Great Vibes', cursive;
    font-size: 2.6rem;
    color: #b07a8a;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1;
}

/* Заголовки без имени (на слайдах 2, 2.5, 3, 4, 5) */
.title:not(:has(.name-arm)) {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: #c2185b;
    font-weight: 400;
    line-height: 1.15;
}

.subtitle {
    color: #6d4c57;
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.subtitle.armenian {
    font-family: 'Noto Serif Armenian', 'Montserrat', serif;
    font-size: 1.15rem;
    color: #c2185b;
    margin-bottom: 22px;
    line-height: 1.5;
}

.translation {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #b07a8a;
    font-style: normal;
    margin-top: 6px;
    letter-spacing: 0.4px;
}

.question {
    font-size: 1.55rem;
    color: #4a2c3a;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 35px;
    position: relative;
    z-index: 2;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn {
    padding: 16px 44px;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-yes {
    background: linear-gradient(135deg, #ff6b9d, #c2185b);
    color: white;
    box-shadow: 0 10px 30px rgba(194, 24, 91, 0.4);
}

.btn-yes:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(194, 24, 91, 0.6);
}

.btn-no {
    background: #f5e6eb;
    color: #8a5a6b;
    transition: all 0.2s ease;
}

.options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
}

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
    color: #4a2c3a;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
}

.option:hover {
    background: linear-gradient(135deg, #ffe0e9, #ffc3d1);
    border-color: #ff6b9d;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.3);
}

.option .emoji {
    font-size: 1.6rem;
}

/* Кнопка «Назад» */
.btn-back {
    margin-top: 25px;
    padding: 12px 32px;
    background: transparent;
    border: 2px solid rgba(194, 24, 91, 0.3);
    color: #c2185b;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-back:hover {
    background: rgba(194, 24, 91, 0.08);
    border-color: #c2185b;
    transform: translateX(-3px);
}

/* Слайд 2.5 — компактнее */
#subOptions {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

#subOptions .option {
    padding: 16px 20px;
    font-size: 0.95rem;
}

/* ===== Календарь ===== */
.date-picker {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.date-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #8a5a6b;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.date-input {
    padding: 14px 20px;
    border-radius: 16px;
    border: 2px solid rgba(255, 182, 193, 0.6);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #4a2c3a;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.date-input:hover,
.date-input:focus {
    border-color: #ff6b9d;
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.25);
}

.time-hint {
    margin-bottom: 14px;
    font-weight: 500;
    color: #8a5a6b;
}

.time-options {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-bottom: 10px;
}

/* Слайд 4 и 5 — кнопка назад */
#slide4 .btn-back,
#slide5 .btn-back {
    display: inline-block;
}

/* Цветы */
#flowerOptions {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 44, 58, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 100;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: white;
    border-radius: 28px;
    padding: 45px 35px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-box {
    transform: scale(1);
}

.modal-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.15); }
}

.modal-box h2 {
    font-family: 'Noto Serif Armenian', 'Montserrat', sans-serif;
    color: #c2185b;
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.modal-box p {
    color: #8a5a6b;
    margin-bottom: 25px;
}

/* ===== Кнопка музыки ===== */
.music-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(194, 24, 91, 0.2);
    font-size: 1.3rem;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: #fff;
}

.music-toggle.playing {
    background: linear-gradient(135deg, #ff6b9d, #c2185b);
    color: white;
}

/* ===== Итоговая карточка ===== */
.summary {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 25px 0;
    position: relative;
    z-index: 2;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(255, 182, 193, 0.5);
    border-radius: 18px;
    text-align: left;
    animation: fadeIn 0.6s ease backwards;
}

.summary-row:nth-child(1) { animation-delay: 0.1s; }
.summary-row:nth-child(2) { animation-delay: 0.25s; }
.summary-row:nth-child(3) { animation-delay: 0.4s; }
.summary-row:nth-child(4) { animation-delay: 0.55s; }

.summary-label {
    font-size: 0.9rem;
    color: #8a5a6b;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-value {
    font-size: 1.05rem;
    color: #4a2c3a;
    font-weight: 600;
    text-align: right;
}

.final-note {
    margin-top: 20px;
    font-style: italic;
    color: #c2185b;
    font-weight: 500;
}

@media (max-width: 600px) {
    .music-toggle {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .summary-value {
        text-align: left;
    }
}

/* Транспорт — 3 варианта в ряд на десктопе */
#transportOptions {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}



/* ===== Мобильная адаптация ===== */
@media (max-width: 600px) {
    body {
        align-items: flex-start;
        padding: 16px;
        overflow-y: auto;
    }

    .slide-container {
        margin: 0 auto;
        padding: 0;
    }

    .card {
        padding: 32px 22px;
        border-radius: 24px;
    }

    .name-arm { font-size: 2.4rem; }
    .name-latin { font-size: 1.8rem; }
    .name-divider { font-size: 1rem; }
    .title:not(:has(.name-arm)) { font-size: 2.4rem; }

    .question { font-size: 1.25rem; }

    .btn { padding: 14px 32px; font-size: 1rem; }

    .options {
        grid-template-columns: 1fr;
    }

    #subOptions {
        grid-template-columns: 1fr;
    }

    #slide25 .card {
        padding: 28px 18px;
    }

    .date-input {
        width: 100%;
        font-size: 0.95rem;
    }

    .time-options,
    #flowerOptions {
        grid-template-columns: 1fr;
    }
	
	    #transportOptions {
        grid-template-columns: 1fr;
    }
	
}

