/* --- Общие стили --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
}
h1, h2 {
    font-family: 'Playfair Display', serif;
}

@font-face {
  font-family: 'Callme Script'; 
  src: url('fonts/Callme Script.otf') format('opentype'), 
       url('fonts/Callme Script.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
.dress-code {
    display: flex;
    flex-direction: column; /* Располагает элементы друг под другом */
    align-items: center;   /* Выравнивает их по центру */
}
.hero .name {
    font-family: 'Callme Script', serif; /* Используем ваш новый шрифт */
    font-size: 4.5rem; /* Скриптовые шрифты часто кажутся меньше, поэтому увеличим размер */
    font-weight: normal;
    letter-spacing: 0; /* Для рукописных шрифтов лучше убрать разрядку букв */
    line-height: 1;
   margin: 5px 0; 
}

body {
    
  
    background-color: #fec5aa; /* Персиковый фон */
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden !important;
}
header{
     overflow-x: hidden !important;
}
.event-address{
    font-size: 0.9rem!important ;
}
.event-place{
    font-size: 0.9rem!important ;
}
/* --- Экран 1: Hero --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hands-drawing {
    width: 400%;
    max-width: 950px;
    margin-top: -240px;   /* Отрицательный отступ поднимет руки еще выше, к самому краю */
    margin-bottom: 10px; /* Уменьшаем расстояние до имен */
    display: flex;
    justify-content: center;
}

.hands-img {
    padding-top: 100px;
    width: 100%;      
    height: auto;     
    mix-blend-mode: multiply;  
    opacity: 0.9;   
}

.hero .name {
    font-size: 3rem;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.1;
}

.hero .and {
    font-size: 1.2rem;
    margin: 10px 0;
}

.hero .date {
    font-size: 1.2rem;
    margin-top: 20px;
    letter-spacing: 1px;
}

/* --- Таймер --- */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.timer-unit span {
    font-size: 2.5rem;
    font-weight: 500;
    line-height: 1;
}

.timer-unit label {
    font-size: 0.8rem;
    text-transform: lowercase;
    margin-top: 5px;
}

/* --- Экран 2 и 3: Основной контент --- */
.content-wrapper {
    
    background-image: url('pattern.svg'); /* Ваш узор */
    background-repeat: repeat;
    background-size: 400px;         /* Размер узора */
    background-blend-mode: multiply; /* Линии узора накладываются на персик */
    
    display: flex;
    flex-direction: column;         /* Выстраиваем элементы В СТОЛБИК */
    align-items: center;            /* Центрируем всё по горизонтали */
    padding: 60px 20px;             /* Отступы сверху и снизу */
    gap: 40px;                      /* Расстояние между карточкой и картой */
}




.invitation-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 50px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Чтобы фон не вылезал */
}

/* --- Цветочный фон по бокам --- */
.invitation-card::before,
.invitation-card::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px; /* Ширина области с узором */
    background-repeat: repeat;
    background-size: 50%;
    opacity: 0.6;
}

.invitation-card::before {
    left: 0;
}

.invitation-card::after {
    right: 0;
}


.invitation-card h2 {
    font-size: 2rem!important ;
    font-weight: 900;
    margin-bottom: 20px;
    color: #000000;
}

.invitation-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    margin-top: 30px;
}

.invitation-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.event-details {
    margin: 30px 0;
    
    padding: 20px 0;
}

.event-details p {
    margin-bottom: 5px;
}

.event-time {
    font-weight: 900;
    font-size: 1.5rem!important;
}


/* --- Дресс-код --- */
.palette {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.confirm-btn {
    background-color: #000000;
    color: #fff;
    border: none;
    padding: 12px 90px;
    font-family: 'Callme Script';
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    border-radius:10px;
}

.confirm-btn:hover {
    background-color: #555;
}


/* --- Экран 4: Карта --- */
.map-container {
    width: 100%;         /* Карта на всю ширину */
    max-width: 100%;     /* Снимаем ограничение в 800px */
    margin: 0;           /* Убираем все внешние отступы */
    padding: 0;          /* Убираем внутренние отступы */
    line-height: 0;  
    margin-top: 80px;    /* Убирает микро-зазор под iframe */
}

.map-container iframe {
    width: 100%;
    height: 450px;       /* Можно настроить высоту под себя */
    display: block;      /* Убирает лишние отступы снизу как у текста */
    border: none;
}

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 768px) {

     body {
        margin: 0;
        padding: 0;
    }

    .content-wrapper {
        
        padding-left: 0;     /* Убираем боковой отступ обертки */
        padding-right: 0;    /* Убираем боковой отступ обертки */
        padding-bottom: 0;   /* Убираем отступ снизу страницы */
    }

    .invitation-card {
        /* Если хотите, чтобы карточка с текстом сохранила отступы, 
           а карта была шире неё, убедитесь что у карточки есть margin */
        margin-left: 15px;
        margin-right: 15px;
        width: auto; 
    }
    .hero .name {
        font-size: 2.5rem;
    }
    .timer-unit span {
        font-size: 2rem;
    }
    .countdown {
        gap: 15px;
    }
    
    .invitation-card::before,
    .invitation-card::after {
        width: 50px; /* Уменьшаем узор на мобильных */
    }
    .invitation-card h2 {
        font-size: 1.8rem;
    }
    .invitation-card p {
        font-size: 1rem;
    }
}


/* Модальное окно */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Затемнение фона */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /* Размытие фона */
}

.modal-content {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    border-radius: 10px;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.modal-content h2 {
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', serif;
}

.input-group {
    text-align: left;
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
}

.input-group input, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.input-group textarea {
    height: 80px;
    resize: none;
}

.submit-btn {
    width: 100%;
    background: #333;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 10px;
    transition: 0.3s;
}

.submit-btn:hover { background: #555; }

#formMessage { margin-top: 15px; font-weight: 500; }