:root {
    --primary-color: #f3e9e9;
    --secondary-color: #d4b8b8;
    --accent-color: #a26769;
    --accent-light: #c89a9c;
    --light-pink: #f8d7da; /* Светло-розовый цвет для сердца */
    --dark-color: #3d3d3d;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Raleway', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    line-height: 1.7;
    overflow-x: hidden;
    background-color: #fafafa;
    position: relative;
}

/* Section Divider */
.section-divider {
    height: 100px;
    overflow: hidden;
    background: linear-gradient(to bottom, var(--primary-color), white);
}

.section-divider svg {
    height: 100%;
    width: 100%;
}

.section-divider path {
    fill: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('https://masterpiecer-images.s3.yandex.net/ef92ff4872c411eea116261105627a54:upscaled');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
    z-index: 1;
    overflow: hidden;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

/* Секции */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

/* Убрали подчеркивание */
.section-title:after {
    display: none;
}

/* Calendar Section */
.calendar-section,
.location-section,
.dresscode-section,
.rsvp-section {
    background-color: #faf0f0;
    padding: 60px 0;
    position: relative;
}

.calendar-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calendar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.calendar-header {
    background: var(--accent-color);
    color: white;
    padding: 1.2rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f5f2;
    padding: 0.7rem 0;
    font-weight: 600;
    font-size: 1rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 0.8rem;
}

.calendar-days div {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s;
}

.calendar-days div:hover {
    background: #f8f5f2;
}

.wedding-day {
    position: relative;
    z-index: 2;
    background: transparent !important;
}

.wedding-day:hover {
    background: transparent !important;
}

.wedding-heart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--light-pink); /* Светло-розовый цвет */
    font-size: 2.5rem; /* Увеличили размер */
    animation: heartbeat 1.5s infinite;
    z-index: 1;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.day-number {
    position: relative;
    z-index: 2;
    font-weight: 700;
}

@keyframes heartbeat {
    0% { transform: translate(-50%, -50%) scale(1); }
    5% { transform: translate(-50%, -50%) scale(1.1); }
    10% { transform: translate(-50%, -50%) scale(1); }
    15% { transform: translate(-50%, -50%) scale(1.1); }
    20% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* Место проведения */
.place-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.place-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.place-address {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.place-address i {
    color: var(--accent-color);
    margin-right: 8px;
    font-size: 1.2rem;
}

.map-container {
    max-width: 7000px;
    margin: 30px auto 0;
    position: relative;
    z-index: 2;
}

.map-iframe {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    background: white;
}

.map-iframe:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Dresscode Section */
.dresscode-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.dresscode-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

/* RSVP форма */
.rsvp-form {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.rsvp-form:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.form-control, .form-select {
    padding: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(162, 103, 105, 0.15);
    background: white;
}

.form-control:hover, .form-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.menu-options, .drink-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
    justify-content: flex-start;
}

.menu-choice, .drink-choice {
    position: relative;
}

.menu-choice input, .drink-choice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.menu-choice label, .drink-choice label {
    display: block;
    padding: 0.6rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    min-width: 100px;
}

.menu-choice label:hover, .drink-choice label:hover {
    background: #f8f5f5;
    border-color: #bbb;
}

.menu-choice input:checked + label,
.drink-choice input:checked + label {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 8px rgba(162, 103, 105, 0.3);
    transform: translateY(-2px);
}

.menu-choice input:focus + label,
.drink-choice input:focus + label {
    outline: 2px solid var(--accent-light);
    outline-offset: 2px;
}

/* Центрирование заголовков в RSVP */
.rsvp-form .form-label {
    text-align: left;
    display: block;
    width: 100%;
}

.rsvp-form .text-muted {
    text-align: left;
    display: block;
}

.submit-btn {
    background: linear-gradient(135deg, #a26769 0%, #8a5759 100%);
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-top: 1rem;
    color: white;
    box-shadow: 0 10px 25px rgba(162, 103, 105, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #8a5759 0%, #6d4446 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(162, 103, 105, 0.6);
}

.submit-btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.submit-btn:hover:after {
    left: 100%;
}

.rsvp-note {
    color: #777;
    font-style: italic;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Таймер */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 90px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.countdown-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
    line-height: 1;
    font-family: var(--font-heading);
}

.countdown-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 6px;
    display: block;
    opacity: 0.85;
    font-weight: 500;
}

.countdown-ended {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 30px 0;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.footer p {
    margin-bottom: 0.5rem;
}

.contacts {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.contacts i {
    color: var(--accent-color);
    margin-right: 6px;
}

/* Canvas for hearts */
.section-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-item {
        min-width: 80px;
        padding: 10px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .calendar-header {
        font-size: 1.5rem;
    }

    .calendar-days div {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.6rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.9rem;
    }

    .countdown-item {
        min-width: 70px;
        padding: 8px;
    }

    .place-name {
        font-size: 1.8rem;
    }

    .place-address {
        font-size: 1rem;
    }

    .rsvp-form {
        padding: 1.5rem;
    }

    .menu-choice label, .drink-choice label {
        padding: 0.5rem 1rem;
        min-width: 90px;
        font-size: 0.95rem;
    }

    .calendar-section,
    .location-section,
    .dresscode-section,
    .rsvp-section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .countdown-container {
        gap: 6px;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.8rem;
    }

    .countdown-item {
        min-width: 60px;
        padding: 6px 4px;
    }

    .section-divider {
        height: 70px;
    }

    .calendar-header {
        font-size: 1.3rem;
        padding: 1rem;
    }

    .calendar-weekdays, .calendar-days div {
        font-size: 0.9rem;
    }

    .calendar-days div {
        height: 35px;
    }

    .wedding-heart {
        font-size: 2rem; /* Уменьшаем размер сердца на мобильных */
    }

    .menu-choice label, .drink-choice label {
        padding: 0.4rem 0.8rem;
        min-width: 80px;
        font-size: 0.9rem;
    }
}