/* Подключаем шрифты */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&family=Monsieur+La+Doulaise&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prata&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* --- БАЗОВЫЕ СТИЛИ --- */
body {
    background-color: #fefcfb;
    margin: 0;
    padding: 0;
    font-family: "Cormorant Infant", serif;
    color: #7b2020;
    overflow-x: hidden;
    /* Предотвращает горизонтальную прокрутку */
}

/* --- НАВИГАЦИЯ --- */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-icon {
    font-size: 20pt;
    cursor: pointer;
}

.nav-link {
    text-decoration: none;
    color: inherit;
    font-size: 18pt;
}

.calendar-btn {
    background: #7b2020;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14pt;
    font-family: "Cormorant Infant", serif;
    cursor: pointer;
}

/* --- ОСНОВНОЙ КОНТЕНТ --- */
.content-wrapper {
    display: flex;
    flex-direction: column;
    margin-left: 35%;
    margin-top: 60px;
}

/* --- ТЕКСТ И ИМЕНА --- */
.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 280px;
    height: 248px;
    box-sizing: border-box;
}

.invite-subtitle {
    font-size: 10pt;
    line-height: 1.4em;
    font-weight: 500;
    letter-spacing: 0.3em;
    margin: 0 0 5px 0;
}

.couple-name {
    font-size: 38pt;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 0.8;
}

.ampersand {
    font-size: 38pt;
    font-family: "Monsieur La Doulaise", cursive;
    margin-top: 0px;
    margin-bottom: -5px;
    margin-left: 5px;
    color: #9c4c44;
}

/* --- СЕКЦИЯ КАЛЕНДАРЯ И АДРЕСА --- */
.calendar-section {
    display: flex;
    align-items: flex-start;
    margin-top: -30px;
}

/* Левая колонка */
.calendar-left-col {
    display: flex;
    flex-direction: column;
    margin-right: -50px;
}

/* Вертикальная линия */
.vertical-divider {
    width: 0;
    height: 150px;
    border-left: 3px solid #7b2020;
    margin-left: 135px;
    margin-top: -10px;
}

/* Блок с адресом */
.location-details {
    margin-top: 170px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.location-details p {
    margin: 0;
    font-size: 11pt;
    letter-spacing: 0.25em;
    font-weight: bold;
}

/* --- КОМПАКТНЫЙ КАЛЕНДАРЬ --- */
.calendar-card {
    background-color: rgba(238, 231, 224, 0.8);
    border-radius: 40px;
    padding: 20px 25px;
    font-family: "Prata", serif;
    width: 280px;
    height: 320px;
    box-sizing: border-box;
    color: #1a1a1a;
    margin-top: 15px;
}

.calendar-month {
    font-size: 20pt;
    text-align: center;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px 5px;
    text-align: center;
    align-items: center;
}

.day-name {
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    font-size: 8pt;
    color: #666;
    margin-bottom: 10px;
}

.day {
    font-size: 12pt;
    font-weight: 500;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    width: 28px;
    margin: auto;
}

.day.empty {
    visibility: hidden;
}

.selected-day {
    z-index: 1;
}

.heart-marker {
    position: absolute;
    width: 45px;
    height: 45px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%);
    z-index: -1;
}

/* --- СЕКЦИЯ ТАЙМЕРА (ОБРАТНЫЙ ОТСЧЕТ) --- */
.countdown-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* Занимает всю ширину для точного центрирования */
    margin-top: 60px;
    margin-bottom: 80px;
}

.countdown-title {
    font-size: 32pt;
    font-weight: 400;
    margin-bottom: 15px;
    margin-top: 0;
    letter-spacing: 0.05em;
    text-align: center;
}

.countdown-timer {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60px;
}

.time-value {
    font-size: 42pt;
    font-weight: 500;
    line-height: 1;
}

.time-label {
    font-size: 13pt;
    font-style: italic;
    margin-top: 2px;
    color: #9c4c44;
}

/* =========================================
   АДАПТАЦИЯ ДЛЯ СМАРТФОНОВ (МОБИЛЬНАЯ ВЕРСИЯ)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Скрываем ссылку "Приглашение" */
    .nav-link {
        display: none;
    }

    /* 2. Оставляем иконку и кнопку разнесенными, немного уменьшаем кнопку */
    .header-nav {
        padding: 15px 12px;
    }

    .calendar-btn {
        font-size: 11pt;
        padding: 8px 16px;
    }

    /* 3. Двигаем контент влево (12px от края экрана) */
    .content-wrapper {
        margin-left: 45px;
        margin-top: 90px;
    }

    /* 4. Уменьшаем размеры шрифта для блока с именами */
    .hero-text {
        height: auto;
        margin-bottom: 20px;
    }

    .couple-name {
        font-size: 30pt;
    }

    .ampersand {
        font-size: 30pt;
    }

    .invite-subtitle {
        font-size: 9pt;
    }

    .location-details {
        margin-top: 220px;
        width: 220px;
    }

    /* 5. Уменьшаем календарь пропорционально на 20%, чтобы он не вылезал за границы телефона */
    .calendar-section {
        margin-top: 0px;
        transform: scale(0.8);
        /* Уменьшает блок как картинку */
        transform-origin: left top;
        /* Уменьшение идет от левого края */
        margin-bottom: -50px;
        /* Убираем пустое место, оставшееся после сжатия */
    }

    /* 6. Уменьшаем таймер, чтобы все 4 цифры влезли в экран */
    .countdown-section {
        margin-top: 0px;
        margin-bottom: 40px;
    }

    .countdown-title {
        font-size: 24pt;
    }

    .countdown-timer {
        gap: 15px;
        /* Уменьшаем расстояние между цифрами */
    }

    .time-value {
        font-size: 28pt;
    }

    .time-label {
        font-size: 11pt;
    }
}

/* =========================================
   СЕКЦИЯ ПРИГЛАШЕНИЯ И АНКЕТЫ (БЕЖЕВЫЙ ФОН)
   ========================================= */
.invitation-bg-section {
    background-color: #d8d0c8;
    /* Бежево-серый фон как на макете */
    padding: 80px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invitation-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 55%;
    padding: 60px 40px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.invite-title {
    font-family: "Great Vibes", cursive;
    font-size: 55pt;
    color: #7b2020;
    margin: 0 0 25px 0;
    line-height: 0.8;
    font-weight: normal;
}

.invite-title-guest {
    margin-left: 60px;
    /* Сдвиг слова "Гость" вправо */
}

.invite-text {
    font-size: 14pt;
    line-height: 1.5;
    margin-bottom: 15px;
    color: #7b2020;
    font-weight: 500;
    font-family: "Cormorant Infant", serif;
}

.invite-date {
    font-size: 19pt;
    font-weight: bold;
    color: #7b2020;
    margin: 30px 0;
    letter-spacing: 0.1em;
    font-family: "Cormorant Infant", serif;
}

.invite-divider {
    font-size: 16pt;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin: 35px 0 15px 0;
    text-transform: uppercase;
    color: rgb(159, 145, 137);
    line-height: 1em;
}

.invite-title-2 {
    font-family: "Great Vibes", cursive;
    font-size: 28pt;
    color: #7b2020;
    margin: 0 0 25px 0;
    line-height: 0.8;
    font-weight: lighter;
}

/* Эффект мазков краски для палитры дресс-кода */
.color-palette {
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-palette img {
    width: 55%;
}

.color-swatch {
    width: 55px;
    height: 30px;
    /* Создаем неровную форму, похожую на мазок кисти */
    border-radius: 8px 18px 8px 18px;
    transform: skewX(-20deg) rotate(-10deg);
    margin: 0 -8px;
    /* Наложение мазков друг на друга */
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.2);
}

.color-1 {
    background-color: #8c7c82;
    z-index: 1;
}

.color-2 {
    background-color: #7a5045;
    z-index: 2;
}

.color-3 {
    background-color: #d1b48c;
    z-index: 3;
}

.color-4 {
    background-color: #4a6a8a;
    z-index: 4;
}

.color-5 {
    background-color: #e08c7c;
    z-index: 5;
}

/* Кнопка "Подтвердить" */
.confirm-btn {
    background-color: #7b2020;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 16pt;
    font-family: "Cormorant Infant", serif;
    font-weight: 800;
    cursor: pointer;
    width: 80%;
    max-width: 480px;
    transition: background-color 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.confirm-btn:hover {
    background-color: #5c1818;
}

.rsvp-note {
    font-size: 11pt;
    margin-top: 20px;
    font-style: italic;
    color: #7b2020;
    opacity: 0.8;
}

/* =========================================
   СЕКЦИЯ СВАДЕБНОГО РАСПИСАНИЯ
   ========================================= */
.schedule-section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fefcfb;
}

.schedule-title {
    font-family: "Great Vibes", cursive;
    font-size: 55pt;
    color: #7b2020;
    margin: 0 0 50px 0;
    font-weight: normal;
    text-align: center;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 500px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.timeline-time {
    font-size: 16pt;
    font-weight: bold;
    color: #7b2020;
    min-width: 60px;
    text-align: right;
    padding-top: 2px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    /* Добавляем легкую вертикальную линию слева от текста для структуры */
    border-left: 1px solid rgba(123, 32, 32, 0.3);
    padding-left: 25px;
}

.timeline-event-title {
    margin: 0;
    font-family: "Cormorant Infant", serif;
    font-size: 28pt;
    color: #7b2020;
    line-height: 1;
    font-weight: normal;
}

.timeline-event-sub {
    margin: 0;
    font-size: 14pt;
    font-weight: bold;
    color: #7b2020;
}

.timeline-desc {
    margin: 5px 0 0 0;
    font-size: 12pt;
    color: #7b2020;
    font-style: italic;
    line-height: 1.3;
}

/* =========================================
   АДАПТАЦИЯ ДОБАВЛЕННЫХ БЛОКОВ ДЛЯ МОБИЛОК
   ========================================= */
@media (max-width: 768px) {
    .invitation-bg-section {
        padding: 40px 15px;
        /* Уменьшаем отступы фона на телефоне */
    }

    .invitation-card {
        padding: 40px 20px;
        max-width: 90%;
        /* Делаем карточку компактнее внутри */
    }

    .invite-title {
        font-size: 45pt;
    }

    .invite-title-guest {
        margin-left: 40px;
    }

    .invite-text {
        font-size: 12pt;
    }

    .color-swatch {
        width: 45px;
        height: 25px;
    }

    .confirm-btn {
        width: 100%;
        font-size: 14pt;
    }

    .schedule-section {
        padding: 50px 15px;
    }

    .schedule-title {
        font-size: 45pt;
        margin-bottom: 40px;
    }

    .timeline-item {
        gap: 15px;
        /* Уменьшаем расстояние между временем и текстом */
    }

    .timeline-time {
        min-width: 45px;
        font-size: 14pt;
    }

    .timeline-content {
        padding-left: 15px;
    }

    .timeline-event-title {
        font-size: 24pt;
    }

    .timeline-event-sub {
        font-size: 12pt;
    }

    .timeline-desc {
        font-size: 11pt;
    }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО И ФОРМА
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fefcfb;
    border: 2px solid #7b2020;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 20pt;
    color: #7b2020;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
}

.modal-title {
    font-family: "Monsieur La Doulaise", cursive;
    font-size: 40pt;
    color: #7b2020;
    margin: 0 0 10px 0;
    text-align: center;
    line-height: 1;
}

.modal-subtitle {
    text-align: center;
    font-size: 12pt;
    color: #7b2020;
    margin-bottom: 25px;
    font-style: italic;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 15px;
}

.half {
    flex: 1;
}

.form-label {
    display: block;
    font-size: 11pt;
    color: #7b2020;
    margin-bottom: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(123, 32, 32, 0.4);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: "Cormorant Infant", serif;
    font-size: 14pt;
    color: #1a1a1a;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #7b2020;
}

.textarea {
    resize: vertical;
    min-height: 80px;
}

.counter-box {
    display: flex;
    align-items: center;
    border: 1px solid rgba(123, 32, 32, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.counter-btn {
    background: rgba(123, 32, 32, 0.05);
    border: none;
    color: #7b2020;
    font-size: 16pt;
    padding: 8px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.counter-btn:hover {
    background: rgba(123, 32, 32, 0.15);
}

.counter-val {
    flex: 1;
    text-align: center;
    font-size: 16pt;
    font-weight: bold;
    color: #7b2020;
}

.toggle-group {
    display: flex;
    border: 1px solid rgba(123, 32, 32, 0.4);
    border-radius: 8px;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px;
    font-family: "Cormorant Infant", serif;
    font-size: 14pt;
    color: #7b2020;
    cursor: pointer;
    transition: all 0.3s;
}

.toggle-btn.active {
    background: #7b2020;
    color: white;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14pt;
    color: #7b2020;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: #7b2020;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-submit-wrap {
    text-align: center;
    margin-top: 25px;
}

.submit-btn {
    background-color: #7b2020;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 15pt;
    font-family: "Cormorant Infant", serif;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #5c1818;
}

.submit-btn:disabled {
    background-color: #a67c7c;
    cursor: not-allowed;
}

.form-status {
    color: #7b2020;
    font-size: 12pt;
    margin-top: 10px;
    font-weight: bold;
}

/* Стилизация скроллбара внутри модалки */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #7b2020;
    border-radius: 10px;
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
    }

    .modal-title {
        font-size: 35pt;
    }

    .form-input,
    .toggle-btn,
    .checkbox-label {
        font-size: 13pt;
    }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО КАРТ (ИКОНКИ ПРИЛОЖЕНИЙ) И АДРЕС
   ========================================= */

/* 1. Анимация для кликабельного адреса на сайте */
.clickable-address {
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.clickable-address:hover {
    opacity: 0.6;
    transform: scale(1.02);
}

/* 2. Делаем окошко с картами чуть компактнее, чем анкету */
.map-modal-content {
    max-width: 350px;
    padding: 30px 20px;
    text-align: center;
}

/* 3. Контейнер, который выстраивает иконки в один ряд */
.map-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    /* Расстояние между иконками */
    margin-top: 15px;
}

/* 4. Стили для кнопки-иконки (картинка + текст) */
.map-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

/* Эффект легкого подпрыгивания иконки при наведении */
.map-icon-link:hover {
    transform: translateY(-5px);
}

/* 5. Настройки самих картинок логотипов */
.map-logo {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 16px;
    /* Закругление краев как на iPhone */
    box-shadow: 0 4px 12px rgba(123, 32, 32, 0.15);
    /* Тень в цвет вашего дизайна */
    margin-bottom: 8px;
    background-color: #fff;
    /* Белый фон на случай прозрачных PNG */
}

/* 6. Текст с названием навигатора под иконкой */
.map-name {
    font-family: Arial, sans-serif;
    /* Обычный системный шрифт для читаемости */
    font-size: 11pt;
    color: #7b2020;
    font-weight: bold;
}

/* =========================================
   АДАПТАЦИЯ КАРТ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ
   ========================================= */
@media (max-width: 360px) {
    .map-icons-container {
        gap: 15px;
        /* Уменьшаем расстояние между иконками */
    }

    .map-logo {
        width: 55px;
        height: 55px;
    }

    .map-name {
        font-size: 10pt;
    }
}

/* =========================================
   ПРЕМИУМ КНОПКА (ФИНАЛЬНАЯ)
   ========================================= */
.confirm-btn-wrapper {
    display: flex;
    justify-content: center;
    padding: 20px 20px 80px 20px;
    background-color: #fefcfb;
}

.confirm-btn.premium-btn {
    position: relative;
    background: linear-gradient(135deg, #7b2020 0%, #5c1818 100%);
    color: #fff;
    border: 2px solid #d8b047;
    /* Золотой акцент */
    padding: 18px 45px;
    font-size: 16pt;
    font-family: "Cormorant Infant", serif;
    font-weight: bold;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    overflow: hidden;
    /* Важно для блика */
    box-shadow: 0 10px 25px rgba(123, 32, 32, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Эффект скользящего блика */
.confirm-btn.premium-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    animation: shine-sweep 3s infinite;
}

@keyframes shine-sweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.confirm-btn.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(123, 32, 32, 0.4);
}

@media (max-width: 768px) {
    .confirm-btn.premium-btn {
        width: 90%;
        font-size: 14pt;
        padding: 16px 20px;
    }
}