* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', sans-serif;
    background-color: #fefbf5;
    color: #2c2a29;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

:root {
    --primary: #728bb3;
    --primary-light: #9ab0cf;
    --primary-dark: #4f6a8f;
    --gold: #d4af7a;
    --bg-light: #fefbf5;
    --text-dark: #2c2a29;
    --text-muted: #6b6a68;
    --white: #ffffff;
    --shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 30px 45px -12px rgba(0, 0, 0, 0.1);
}

/* Декоративные элементы (цветочные рамки) */

.deco-4 { bottom: 12%; right: -2%; width: 130px; transform: rotate(5deg); }
.deco-timer { top: -40px; left: 50%; transform: translateX(-50%) rotate(0deg); width: 100px; margin-top: 0; z-index: 2; }
.deco-form { bottom: -50px; right: -30px; width: 130px; transform: rotate(20deg); }
.deco-svg { width: 48px; height: auto; opacity: 0.5; }

/* Контейнер для относительного позиционирования */
.relative {
    position: relative;
}
.overflow-visible {
    overflow: visible !important;
}

/* Общие стили */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(114, 139, 179, 0.2);
}
.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}


/* Детали */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.detail-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}
.detail-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }

/* Таймер */
.timer-section {
    background-color: #717d4f;
    color: white;
    text-align: center;
    padding: 30px 0 30px 0 !important;
}
.timer-section h2 { color: white; }
.timer-section h2:after { background: var(--gold); }

.title-timer {
    font-family: 'Aurora-Script', serif;
    font-size: clamp(6.5vh, 4.5vw, 8vw);
}
.timer {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}
.timer-block {
    font-family: 'Aurora-Script', serif;
}
.timer-number { 
    font-size: 2.8rem; font-weight: 700; font-family: 'kazakh', serif; 
}
.timer-label { font-size: 2.3rem; opacity: 0.9; }

/* Программа */
.program-list {
    max-width: 600px;
    margin: 30px auto 0;
}
.program-item {
    display: flex;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px dashed #e2d9cf;
}
.program-time {
    font-weight: 600;
    width: 100px;
    color: var(--primary);
}

/* Карта */
.map-card {
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 30px;
}
.map-placeholder {
    background: #e9e5dc;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.map-link {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
}

/* Форма */
.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px 30px;
    border-radius: 32px;
    box-shadow: var(--shadow);
    position: relative;
}
.form-group { margin-bottom: 24px; }
label { display: block; margin-bottom: 8px; font-weight: 500; }
input, select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd6cc;
    border-radius: 60px;
    font-family: inherit;
    font-size: 1rem;
}
input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114,139,179,0.2);
}
.radio-group {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}
.form-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 60px;
    text-align: center;
    display: none;
}
.form-message.success {
    background: #e0f2e9;
    color: #1f6e43;
    display: block;
}

/* Музыкальная кнопка */
/* Контейнер – фиксированная позиция сверху слева, круглый, зелёный фон */
.music-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 90px;           /* размер круга */
    height: 90px;
    border-radius: 50%;
    background-color: #717d4f; /* ярко-зелёный */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    overflow: hidden;      /* чтобы ореол не вылезал за круг */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;       /* чтобы было понятно, что кликабельно */
}

/* Вращающийся ореол – занимает весь контейнер */
.oreol {
    position: absolute;
    top: 7%;              /* центрируем */
    left: 8.4%;
    width: 84%;
    height: 84%;
    animation: spin 15s linear infinite; /* вращение по часовой стрелке */
    pointer-events: none;  /* чтобы клики проходили сквозь ореол на кнопку */
}

/* Анимация вращения */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Кнопка в центре – прозрачная, без рамок */
.music-btn {
    position: relative;
    z-index: 2;            /* поверх ореола */
    width: 50%;
    height: 50%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

/* Иконка внутри кнопки – адаптивный размер */
.music-btn img {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 1;

    transition: opacity 4s ease-out, width 1s ease-out;

    @starting-style {
        opacity: 0;
        width: 0;
    } 
}

/* Дополнительно: при наведении небольшое увеличение */
.music-btn:hover img {
    transform: scale(1.05);
    transition: transform 0.3s;
}

footer {
    background: #2c2a29;
    color: #ccc;
    text-align: center;
    padding: 32px;
    font-size: 0.85rem;
    position: relative;
}



.blur-up {
    filter: blur(15px);
    transition: filter 400ms ease-out;
}
.blur-up.lazyloaded {
    filter: blur(0);
}
