/* КОНФИГУРАЦИЯ ШРИФТОВ: 
   Замените шрифты ниже на ваши предпочтительные.
   Можно использовать Google Fonts: добавьте <link> в HTML и укажите названия шрифтов здесь.
   Примеры: 'Playfair Display', 'Bad Script', 'Marck Script', 'Cormorant Garamond' и т.д.
*/

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

body {
    font-family: 'Playfair Display', 'Georgia', serif; /* ИЗМЕНИТЕ ШРИФТ ЗДЕСЬ */
    background: #27170e; /* Коричневый фон */
    min-height: 100vh;
    overflow-x: hidden;
    color: #f5f5f0; /* Светлый текст */
    line-height: 1.6;
}

.invitation-wrapper {
    background: #695447; /* Коричневый фон */
    min-height: 100vh;
    padding: 20px 0;
}

.invitation-container {
    max-width: 800px;
    margin: 0 auto;
    background: #311f15; /* Темно-коричневый фон */
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.photo-section {
    width: 100%;
    animation: fadeInDown 1s ease-out;
}

.main-photo {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    /* КОНФИГУРАЦИЯ: Замените URL на путь к вашему фото */
    /* background-image: url('your-photo.jpg'); */
}

.content-section {
    padding: 50px 40px;
    animation: fadeInUp 1s ease-out;
}

.header-text {
    text-align: center;
    margin-bottom: 40px;
}

.intro-text {
    font-size: 1.1em;
    color: #fff2eb; /* Светлый текст */
    margin: 10px 0;
    line-height: 1.8;
    font-weight: 400;
}

.intro-text-bold {
    font-size: 1.5em;
    color: #fff2eb; /* Золотой акцент */
    margin: 15px 0;
    font-weight: 700;
    letter-spacing: 2px;
}

.invite-text {
    font-size: 1.2em;
    color: #f5f5f0; /* Золотой акцент */
    margin: 20px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.couple-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin: 50px 0;
    flex-wrap: wrap;
}

.couple-names .name1,
.couple-names .name2 {
    font-size: 3em;
    color: #f5f5f0; /* Светлый текст */
    font-weight: 700;
    font-family: 'Bad Script', cursive; /* ИЗМЕНИТЕ ШРИФТ ДЛЯ ИМЕН ЗДЕСЬ */
    animation: fadeIn 2s ease-out;
}

.ampersand {
    font-size: 2.5em;
    color: #D4AF36; /* Золотой акцент */
    font-weight: 300;
    animation: rotateIn 1s ease-out;
}

/* Стили для даты на главном фото */
.date1 {
    font-size: 5em;
    color: #fff2eb;
    font-weight: 700;
    font-family: 'Playfair Display', 'Georgia', serif;
    text-shadow: 0 4px 24px rgba(39,23,14,0.60), 0 1px 4px #000;
    line-height: 1;
}

.date2 {
    font-size: 2.5em;
    color: #fff2eb;
    font-weight: 400;
    font-family: 'Marck Script', cursive;
    text-shadow: 0 4px 24px rgba(39,23,14,0.60), 0 1px 4px #000;
    line-height: 1;
    text-transform: lowercase;
}

.date3 {
    font-size: 4em;
    color: #fff2eb;
    font-weight: 700;
    font-family: 'Playfair Display', 'Georgia', serif;
    text-shadow: 0 4px 24px rgba(39,23,14,0.60), 0 1px 4px #000;
    line-height: 1;
}

/* Календарь */
.calendar-section {
    text-align: center;
    margin: 50px 0 20px 0;
    padding: 20px;
    animation: fadeIn 2.5s ease-out;
}

.calendar-container {
    display: block;
    width: 100%;
    max-width: 100%;
    background: rgba(139, 90, 60, 0.3);
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #D4AF37;
    box-sizing: border-box;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    font-family: 'Playfair Display', 'Georgia', serif;
}

.calendar-header {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: 700;
    color: #f5f5f0;
    text-transform: capitalize;
}

.calendar-weekdays {
    background: rgba(212, 175, 54, 0.2);
}

.calendar-weekdays th {
    padding: 10px 5px;
    font-size: 0.9em;
    font-weight: 600;
    color: #f5f5f0;
    text-transform: lowercase;
    border: 1px solid rgba(212, 175, 54, 0.3);
}

.calendar-days td {
    padding: 8px 5px;
    text-align: center;
    font-size: 1em;
    color: #f5f5f0;
    border: 1px solid rgba(212, 175, 54, 0.2);
    transition: all 0.3s ease;
    cursor: default;
}

.calendar-days td.other-month {
    color: rgba(245, 245, 240, 0.3);
}

.calendar-days td.wedding-day {
    position: relative;
    font-weight: 700;
    z-index: 2;
    --wedding-heart-color: #D4AF37;
}

.calendar-days td.wedding-day::before {
    content: '❤';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5em;
    color: var(--wedding-heart-color, #D4AF37);
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* Hover эффект для календаря будет применяться через JavaScript с использованием цвета из настроек */

@media (max-width: 768px) {
    .calendar-container {
        padding: 10px;
    }
    
    .calendar-header {
        font-size: 1.2em;
    }
    
    .calendar-weekdays th {
        padding: 8px 3px;
        font-size: 0.8em;
    }
    
    .calendar-days td {
        padding: 6px 3px;
        font-size: 0.9em;
    }
}

/* Общие стили для секций */
.section-title {
    font-size: 1.8em;
    color: #f5f5f0;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.section-description {
    font-size: 1.1em;
    color: #fff2eb;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.8;
    padding: 0 20px;
}

.countdown-section {
    text-align: center;
    margin: 20px 0 50px 0;
    animation: fadeIn 2s ease-out;
    padding: 40px 20px;
}

.countdown-title {
    font-size: 1.2em;
    color: #f5f5f0; /* Золотой акцент */
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Скрываем старый заголовок countdown, если он есть */
.countdown-section > .countdown-title:not(.section-title) {
    display: none;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: clamp(8px, 2vw, 20px);
    flex-wrap: nowrap;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.countdown-item {
    background: linear-gradient(135deg, #8B5A3C 0%, #6b4530 100%);
    border: 2px solid #f5f5f0;
    border-radius: clamp(8px, 2vw, 15px);
    padding: clamp(10px, 2.5vw, 20px) clamp(8px, 2vw, 15px);
    min-width: 0;
    flex: 1 1 0;
    max-width: 100%;
    box-sizing: border-box;
}

.countdown-number {
    font-size: clamp(1.2em, 5vw, 2.5em);
    font-weight: 700;
    color: #f5f5f0; /* Светлый текст */
    line-height: 1;
    margin-bottom: clamp(4px, 1vw, 8px);
    font-family: 'Playfair Display', 'Georgia', serif;
}

.countdown-label {
    font-size: clamp(0.65em, 2.5vw, 0.9em);
    color: #f5f5f0; /* Золотой акцент */
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    font-weight: 500;
}

.guest-name {
    font-size: 1.3em;
    color: #f5f5f0; /* Светлый текст */
    margin: 30px 0;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 2.5s ease-out;
}

.game-link {
    text-align: center;
    margin: 20px 0 30px 0;
    animation: fadeIn 2.5s ease-out;
}

.game-link-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #f5f5f0; /* Золотой акцент */
    color: #6b4530; /* Темно-коричневый текст */
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.game-link-button:hover {
    background-color: #f5f5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.4);
}

.game-link-button:active {
    transform: translateY(0);
}

/* Секция описания свадьбы */
.description-section {
    margin: 50px 0;
    text-align: center;
    animation: fadeIn 2.5s ease-out;
}

.description-text {
    font-size: 1.1em;
    color: #f5f5f0; /* Светлый текст */
    line-height: 1.8;
    margin: 20px 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Галерея фотографий */
.photo-gallery {
    margin: 50px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    animation: fadeIn 3s ease-out;
}

.gallery-photo {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.gallery-photo:hover {
    transform: scale(1.03);
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-photo {
        height: 250px;
    }
}

/* Блок локации */
.location-section {
    margin: 50px 0;
    padding: 40px 20px;
    text-align: center;
    animation: fadeIn 2.5s ease-out;
}

.location-content {
    margin-top: 30px;
}

.location-map-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #D4AF36;
    color: #6b4530;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.location-map-button:hover {
    background-color: #f5d76e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 54, 0.4);
}

.location-map-button:active {
    transform: translateY(0);
}

/* План дня (Расписание мероприятий) */
.schedule-section {
    margin: 50px 0;
    padding: 40px 20px;
    border-top: 2px solid #6a2a05; /* Золотая граница */
    border-bottom: 2px solid #6a2a05; /* Золотая граница */
    animation: fadeIn 3s ease-out;
}

.schedule-item {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    align-items: flex-start;
}

.schedule-item .time {
    font-size: 1.8em;
    font-weight: 700;
    color: #D4AF37; /* Золотой акцент */
    min-width: 80px;
    font-family: 'Playfair Display', serif;
}

.event-details {
    flex: 1;
}

.event-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #f5f5f0; /* Светлый текст */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-address {
    font-size: 1em;
    color: #f5f5f0; /* Золотой акцент */
    margin-bottom: 5px;
}

.event-note {
    font-size: 0.9em;
    color: #c9a961; /* Светло-золотой */
    font-style: italic;
    margin-top: 5px;
}

.wishes-section {
    margin: 50px 0;
    text-align: center;
}

.wishes-text {
    font-size: 1.1em;
    color: #f5f5f0; /* Светлый текст */
    margin-bottom: 20px;
    line-height: 1.8;
}

.color-palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.color-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #D4AF37; /* Золотая граница */
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    /* КОНФИГУРАЦИЯ: Измените цвета в HTML или добавьте background-color здесь */
}

/* Устаревший класс - оставляем для совместимости */
.requests-section {
    margin: 50px 0;
    padding: 30px;
    background: #8B5A3C; /* Коричневый фон */
    border-radius: 10px;
    border: 2px solid #D4AF37; /* Золотая граница */
}

.rules-section {
    margin: 50px 0;
    padding: 30px;
    background: #8B5A3C; /* Коричневый фон */
    border-radius: 10px;
    border: 2px solid #D4AF37; /* Золотая граница */
}

.request-item {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    align-items: flex-start;
    font-size: 1em;
    color: #f5f5f0; /* Светлый текст */
    line-height: 1.6;
}

.request-icon {
    font-size: 1.2em;
    margin-top: 2px;
}

.confirmation-section {
    text-align: center;
    margin: 50px 0;
}

.confirmation-text {
    font-size: 1.1em;
    color: #f5f5f0; /* Светлый текст */
    font-weight: 500;
}

.form-section {
    margin: 50px 0;
    text-align: center;
    animation: fadeIn 3.5s ease-out;
}

.accept-button,
.decline-button {
    padding: 18px 50px;
    font-size: 1.3em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 10px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.accept-button {
    background: #D4AF37; /* Золотой акцент */
    color: #6b4530; /* Темно-коричневый текст */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.accept-button:hover {
    background: #f5d76e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.decline-button {
    background: #8B5A3C; /* Коричневый */
    color: #f5f5f0; /* Светлый текст */
    border: 2px solid #D4AF37; /* Золотая граница */
}

.decline-button:hover {
    background: #6b4530;
    transform: translateY(-2px);
}

.questions-form {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #8B5A3C; /* Коричневый фон */
    border: 2px solid #D4AF37; /* Золотая граница */
    border-radius: 10px;
    animation: fadeInUp 0.5s ease-out;
}

.questions-form h2 {
    margin-bottom: 30px;
    color: #f5f5f0; /* Светлый текст */
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
}

/* Скрываем старые заголовки внутри questions-form, если они есть */
.questions-form h2:not(.section-title) {
    display: none;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f5f5f0; /* Светлый текст */
    font-weight: 500;
    font-size: 1em;
}

.form-input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #D4AF37; /* Золотая граница */
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: #6b4530; /* Темно-коричневый фон */
    color: #f5f5f0; /* Светлый текст */
}

.form-input:focus {
    outline: none;
    border-color: #f5d76e;
}

.form-input option {
    background: #6b4530;
    color: #f5f5f0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.checkbox-group label:hover {
    background-color: rgba(212, 175, 55, 0.1);
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #D4AF37;
}

.checkbox-group input[type="checkbox"]:checked {
    accent-color: #D4AF37;
}

.submit-button {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    background: #D4AF37; /* Золотой акцент */
    color: #6b4530; /* Темно-коричневый текст */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    background: #f5d76e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.success-message {
    margin: 40px 0;
    padding: 30px;
    background: #8B5A3C; /* Коричневый фон */
    border: 2px solid #D4AF37; /* Золотая граница */
    border-radius: 10px;
    color: #f5f5f0; /* Светлый текст */
    font-size: 1.2em;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-180deg);
    }
    to {
        opacity: 1;
        transform: rotate(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .content-section {
        padding: 30px 20px;
    }
    
    .couple-names .name1,
    .couple-names .name2 {
        font-size: 3em;
    }
    
    .countdown-container {
        gap: clamp(5px, 1.5vw, 10px);
        padding: 0 5px;
    }
    
    .countdown-item {
        padding: clamp(8px, 2vw, 15px) clamp(5px, 1.5vw, 10px);
        min-width: 0;
        flex: 1 1 0;
    }
    
    .countdown-number {
        font-size: clamp(1.2em, 4.5vw, 2em);
    }
    
    .countdown-label {
        font-size: clamp(0.6em, 2vw, 0.8em);
    }
    
    .countdown-title {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .main-photo {
        height: 350px;
    }
    
    .schedule-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .schedule-item .time {
        font-size: 1.5em;
    }
    
    .accept-button,
    .decline-button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
    
    .intro-text {
        font-size: 1em;
    }
    
    .intro-text-bold {
        font-size: 1.3em;
    }
    
    .date1 {
        font-size: 3.5em;
    }
    
    .date2 {
        font-size: 1.8em;
    }
    
    .date3 {
        font-size: 2.8em;
    }
}

