/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f6f5f0; /* Нежный кремовый фон */
    color: #4a4945;
    font-family: 'Jost', sans-serif;
    line-height: 1.6;
}

/* Типографика */
h1, h2, h3, h4, .date-badge, .phone-label, .countdown-item span, .timeline-day-title {
    font-family: 'Cormorant Infant', serif;
    font-weight: 500;
}

h2 {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #556b5c; /* Приглушенный шалфей */
    letter-spacing: 1px;
}

/* Главный экран (Hero) */
.hero {
    height: 100vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    /* Теперь картинка загружается прямо с вашего сайта! */
    background-image: linear-gradient(rgba(246, 245, 240, 0.4), rgba(246, 245, 240, 0.85)), url('bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    padding: 20px;
}
.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 4rem 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(85, 107, 92, 0.06);
    border: 1px solid #e3e1d9;
    position: relative;
    max-width: 550px;
    width: 100%;
}

.hero-leaves {
    position: absolute;
    width: 70px;
    height: 70px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.hero-leaves-top {
    top: -20px;
    left: -20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%237a9a85" d="M10,40 C30,35 40,10 40,10 C40,10 45,30 30,45 C15,60 10,40 10,40 Z M30,60 C45,55 50,35 50,35 C50,35 55,50 45,65 C35,80 30,60 30,60 Z" /></svg>');
}

.hero-leaves-bottom {
    bottom: -20px;
    right: -20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path fill="%237a9a85" d="M90,60 C70,65 60,90 60,90 C60,90 55,70 70,55 C85,40 90,60 90,60 Z M70,40 C55,45 50,65 50,65 C50,65 45,50 55,35 C65,20 70,40 70,40 Z" /></svg>');
}

.date-badge {
    font-size: 1.4rem;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    color: #8c8270;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-size: 4.8rem;
    color: #415246;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

.and-word {
    font-size: 2.6rem;
    font-style: italic;
    opacity: 0.8;
    display: inline-block;
    margin: 0.3rem 0;
}

.subtitle {
    font-size: 1.1rem;
    font-style: italic;
    color: #73716b;
    margin-top: 1rem;
}

/* Основной контейнер */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 3rem 20px;
}

.container section {
    margin-bottom: 6rem;
}

/* Обратный отсчет */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1rem;
}

.countdown-item {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(85, 107, 92, 0.03);
    border: 1px solid #eae8e1;
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    color: #556b5c;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-item label {
    font-size: 0.85rem;
    color: #8c8a82;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wedding-started {
    font-family: 'Cormorant Infant', serif;
    font-size: 2rem;
    color: #556b5c;
}

/* Календарь */
.calendar-wrapper {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 5px 25px rgba(85, 107, 92, 0.03);
    border: 1px solid #eae8e1;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.calendar-table th {
    padding: 10px 0;
    font-weight: 400;
    color: #8c8270;
}

.calendar-table td {
    padding: 12px 0;
    font-size: 1.1rem;
    position: relative;
    width: 14.28%;
}

/* Дата в размашистом карандашном сердечке */
.wedding-day {
    position: relative;
    color: #415246 !important;
    font-weight: 600;
    display: inline-block;
    width: 38px;
    height: 38px;
    line-height: 38px;
    z-index: 1;
}

.wedding-day::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path d="M50,35 C40,15 15,20 15,45 C15,65 35,78 50,88 C65,78 85,65 85,45 C85,20 60,15 50,35 Z" stroke="%237a9a85" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.85"/><path d="M52,32 C43,18 18,23 18,47 C18,63 38,76 51,85 C66,76 82,63 82,47 C82,23 57,18 52,32 Z" stroke="%237a9a85" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.6"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Локации */
.locations-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
}

.location-card {
    flex: 1;
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(85, 107, 92, 0.03);
    border: 1px solid #eae8e1;
}

.card-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
}

.icon-registry {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%23556b5c" stroke-width="3"><path d="M12,80 L88,80 M20,80 L20,45 L50,15 L80,45 L80,80 M35,45 L65,45 M50,15 L50,45"/></svg>');
}

.icon-banquet {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none" stroke="%23556b5c" stroke-width="3"><path d="M25,75 C25,45 75,45 75,75 M10,85 L90,85 M50,15 L50,45 M35,30 L65,30"/></svg>');
}

.location-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #415246;
}

.location-card .time {
    font-size: 1.5rem;
    color: #8c8270;
    font-weight: 500;
    margin-bottom: 12px;
}

.location-card .address {
    font-size: 0.9rem;
    color: #8c8a82;
    margin-top: 5px;
}

/* Таймлайн расписания */
.timeline-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.timeline-day-title {
    font-size: 1.8rem;
    color: #415246;
    text-align: center;
    margin-bottom: 2rem;
    background: #eae7df;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
}

.timeline-wrapper {
    position: relative;
    padding-left: 30px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 7px;
    width: 2px;
    background: #d4ceb8;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    left: -29px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #7a9a85;
    z-index: 2;
}

.timeline-time {
    font-size: 1.2rem;
    font-weight: 500;
    color: #8c8270;
    margin-bottom: 5px;
}

.timeline-panel {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(85, 107, 92, 0.02);
    border: 1px solid #eae8e1;
}

.timeline-panel h4 {
    font-size: 1.4rem;
    color: #415246;
    margin-bottom: 5px;
}

.timeline-panel p {
    font-size: 0.95rem;
    color: #6e6d68;
}

/* Дресс-код (Версия для ПК) */
.dresscode-text {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3rem;
    font-size: 1.05rem;
    color: #55544f;
}

.palette-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px 40px; 
}

.color-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03), 0 4px 15px rgba(0,0,0,0.04);
}

.color-circle::after {
    content: attr(data-label);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: #8c8a82;
    width: 110px;
    text-align: center;
    line-height: 1.2;
}

/* Карта */
.map-section {
    text-align: center;
}

.map-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #73716b;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(85, 107, 92, 0.05);
    border: 4px solid #ffffff;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* RSVP / Контакты */
.rsvp {
    text-align: center;
    background: #556b5c;
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 35px rgba(85, 107, 92, 0.15);
}

.rsvp h2 {
    color: #ffffff;
}

.rsvp p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.contact-phones {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.12);
    padding: 1.8rem 2.5rem;
    border-radius: 12px;
    flex: 1;
    max-width: 300px;
}

.phone-label {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.phone-card a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: all 0.3s ease;
}

.phone-card a:hover {
    border-bottom-color: #ffffff;
}

/* Подвал */
footer {
    text-align: center;
    padding: 2rem 20px 4rem;
    font-family: 'Cormorant Infant', serif;
    font-size: 1.4rem;
    color: #8c8270;
}

/* Адаптивность (Версия для мобильных устройств и телефонов) */
@media (max-width: 768px) {
    h1 { font-size: 3.6rem; }
    h2 { font-size: 2.2rem; }
    .hero-content { padding: 3rem 1.5rem; }
    .hero-leaves { width: 50px; height: 50px; }
    .countdown-container { gap: 10px; }
    .countdown-item { width: 75px; padding: 1rem 0.5rem; }
    .countdown-item span { font-size: 1.8rem; }
    .locations-grid { flex-direction: column; }
    .location-card { padding: 2rem 1.5rem; }
    
    /* Исправление для палитры дресс-кода на мобильных телефонах */
    .palette-container { 
        gap: 55px 15px; /* Большой вертикальный отступ, чтобы текст не лез на нижний ряд */
    }
    .color-circle { 
        width: 60px; 
        height: 60px; 
    }
    .color-circle::after {
        width: 80px; /* Сузили блок подписи под диаметр кружка */
        font-size: 0.75rem; 
        bottom: -35px;
        line-height: 1.1;
    }

    .contact-phones { flex-direction: column; align-items: center; gap: 15px; }
    .phone-card { max-width: 100%; width: 100%; padding: 1.5rem; }
    
    .timeline-wrapper { padding-left: 25px; }
    .timeline-badge { left: -24px; }
    .timeline-panel { padding: 1rem; }
}