/* <!-- Небольшая корректировка для читаемости на мобильных устройствах --> */
/* Дополнительно: делаем затемнение hero-image чуть сильнее для лучшей читаемости */
.hero-image {
    filter: brightness(0.6);
}
/* Убираем возможные проблемы с касаниями на iOS */
.map-link {
    -webkit-tap-highlight-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fefefe;
    color: #2c2c2c;
    line-height: 1.5;
}

section { 
    position: relative;
}

.svg-pattern {
    position: absolute;
    opacity: .66;
}


.container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    z-index: 1;
}

/* Геройский блок с фото */
.hero {
    position: relative;
    min-height: 100vh; /* на мобильных занимает почти весь экран */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(./imgs/main2.jpg); /* фото букета/свадебная тематика */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.7); /* затемнение для читаемости текста */
    z-index: -1;
}

.hero-content {
    padding: 1.5rem;
    width: 100%;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.hero-content p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.2rem;
    margin-top: 0.5rem;
}

/* Блок таймера */
.countdown-section {
    background-color: #fff;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.03), 0 5px 15px rgba(0,0,0,0.03);
}

.countdown-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #b38b5f; /* золотистый оттенок */
}

.form-section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: #b38b5f; /* золотистый оттенок */
}

.timer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.timer-item {
    text-align: center;
    min-width: 70px;
}

.timer-value {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    color: #2c2c2c;
    background: #f8f0e9;
    padding: 0.5rem 0.2rem;
    border-radius: 8px;
    min-width: 100px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.02);

    & > span {
        display: inline-block;
        translate: 0 -0.2em;
    }

}

.timer-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    margin-top: 0.5rem;
    color: #6a6a6a;
    font-weight: 300;
}

/* Блок локации и программы */
.info-section {
    background-color: #fcf9f7;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.info-card {
    position: relative;
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.location-card img {
    width: 100%;
    border-radius: 1.25em;
}

.program-card {
    display: flex;
    flex-direction: column;
}

.program-card p {
    padding-top: 2rem; 
    margin-top: auto; 
    font-style: italic; 
    color: #b38b5f;
}

.info-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #b38b5f;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0d6cc;
    padding-bottom: 0.5rem;
}

.info-card .location-detail {
    margin-bottom: 1.5rem;
}

.info-card .location-detail p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-card .location-detail i { /* эмодзи как иконки */
    font-style: normal;
    font-size: 1.3rem;
}

.map-link {
    display: inline-block;
    background: #b38b5f;
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 500;
    letter-spacing: 0.05rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    font-size: 0.8em;
}

.map-link:hover {
    background: #9a6f48;
}

.program-list {
    list-style: none;
}

.program-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: baseline;
    border-bottom: 1px dashed #e0d6cc;
    padding-bottom: 0.8rem;
}

.program-time {
    font-weight: 600;
    color: #b38b5f;
    min-width: 70px;
    font-size: 1.2rem;
}

.program-event {
    font-weight: 300;
    font-size: 1.1rem;
    color: #2c2c2c;
}

/* Адаптив для планшетов и ПК */
@media (min-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .timer-value {
        font-size: 3.5rem;
        min-width: 120px;
    }
}

@media (min-width: 1024px) {
    .hero {
        min-height: 90vh;
    }

    .container {
        padding: 4rem 0;
    }

    .timer-value {
        font-size: 4rem;
    }
}

/* Вспомогательные классы для AOS (чтобы элементы не прыгали до загрузки) */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* Красивое оформление даты под именами */
.wedding-date {
    font-size: 1.2rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    background: rgba(255,255,255,0.2);
    display: inline-block;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(2px);
    margin-top: 1.5rem;
}