:root {
    /* Палитра */
    --primary: #204519;       /* Глубокий зеленый */
    --accent: #bacfb6;        /* Светлый шалфей */
    --accent-light: #e6efe4;  /* Очень светлый фон */
    --bg-body: #ffffff;
    --text-main: #2c2c2c;
    --text-light: #666666;
    
    /* Шрифты */
    --font-head: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Радиусы для арок */
    --arch-radius: 50% 50% 0 0; 
}

/* --- Общие настройки --- */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-body);
    /* Зернистость */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    line-height: 1.6;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; /* - горизонтальный скролл */
}

html {
    scroll-behavior: smooth; /* Плавная прокрутка по якорям */
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 400;
    color: var(--primary);
    margin: 0;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 50px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 30px 0;
}

/* Кнопки и ссылки */
.btn-outline {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    font-size: 14px;
    transition: all 0.3s;
}
.btn-outline:hover { opacity: 0.7; }

/* --- 1. Hero Section (Главный экран) --- */
.hero-section {
    padding-top: 40px;
    padding-bottom: 1px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

/* Левая часть: Фото */
.hero-image-box {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    position: relative;
}

.arch-img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4.5;
    object-fit: cover;
    border-radius: 200px 200px 0 0; /* Высокая арка */
    box-shadow: 0 20px 40px rgba(32, 69, 25, 0.15);
}

/* Правая часть: Текст */
.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.hero-names {
    font-family: var(--font-head);
    font-size: 58px;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 30px;
}
.hero-names .amp { font-style: italic; color: var(--accent); font-weight: 400; }

.hero-date {
    font-size: 22px;
    letter-spacing: 5px;
    color: var(--text-main);
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 3px;
    align-items: center;
}
.hero-date .dot { color: var(--accent); font-size: 24px; }

.hero-invite-text {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Таймер */
.countdown-box {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timer-item span:first-child {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--primary);
    line-height: 1;
}
.timer-item .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    color: var(--text-light);
}

/* --- 2. Location (Локация) --- */
.location-card {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.location-info {
    text-align: center;
    flex: 1;
    min-width: 280px;
}
.location-name { font-size: 28px; margin-bottom: 10px; }
.location-addr { color: var(--text-light); margin-bottom: 15px; }

.location-visual {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}
.arch-img-small {
    width: 100%;
    aspect-ratio: 2/2;
    object-fit: cover;
    border-radius: 25px 25px 25px 25px;
}

.map-container {
	padding: 0;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* --- 3. Program (Программа дня) --- */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px;
}
/* Вертикальная линия */
.timeline::before {
    content: '';
    position: absolute;
    left: 89px; /* Центр линии относительно времени */
    top: 20px;
    bottom: 50px;
    width: 1px;
    background: var(--accent);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.time {
    width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--primary);
    margin-right: 25px;
    font-size: 18px;
}

.marker {
    width: 11px;
    height: 11px;
    background: var(--bg-body);
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    left: 84px;
    z-index: 2;
}

.card {
    flex: 1;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px 20px;
    margin-left: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.03); }

.icon-box img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.card .content h4 { font-size: 18px; font-family: var(--font-body); font-weight: 600; margin-bottom: 4px;}
.card .content p { font-size: 13px; margin: 0; color: var(--text-light); }

/* --- 4. Dress Code --- */
.dress-desc { text-align: center; max-width: 600px; margin: 0 auto 30px; }
.palette {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-bottom: 40px;
}
.swatch {
    width: 105px;
    height: 60px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.swatch:hover {
    transform: scale(1.1);
}
.moodboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}
.moodboard img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- 5. Details (Детали) --- */
.details-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: var(--accent-light);
    border-radius: 20px;
    padding: 60px 40px;
}
.details-content { flex: 1; text-align: center; }
.details-content h2 { margin-bottom: 25px; }
.details-content .separator { color: var(--primary); margin: 20px 0; font-size: 24px; font-family: var(--font-head); }
.details-image { flex: 1; max-width: 350px; }
.arch-img-medium {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0px 0px 0 0;
    border: 5px solid white;
}

/* --- 6. RSVP Form --- */
.rsvp-section { background: #fff; }
.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}
.input-group { margin-bottom: 30px; }
.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
}

/* Input style */
input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    font-family: inherit;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}
input[type="text"]:focus { border-color: var(--primary); background: #fff; }

/* Custom Radio & Checkbox */
.radio-options, .checkbox-grid {
    display: grid;
    gap: 10px;
}
.radio-options { grid-template-columns: 1fr 1fr; }
.checkbox-grid { grid-template-columns: repeat(3, 1fr); }

.radio-btn, .check-btn { cursor: pointer; position: relative; }
.radio-btn input, .check-btn input { display: none; }
.radio-btn span, .check-btn span {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}
/* Активное состояние */
.radio-btn input:checked + span, 
.check-btn input:checked + span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.submit-btn:hover { background: #2f5e25; transform: translateY(-2px); }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Специальная настройка для блока с едой: 3 колонки */
.food-options {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .food-options {
        grid-template-columns: 1fr !important;
    }
}

#formResult { margin-top: 20px; text-align: center; font-weight: 500; }


.host-form {
    margin-top: 70px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 30px;
    background: var(--accent-light);
    border-radius: 20px;
}

.host-form h3 {
    font-family: var(--font-head);
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary);
}

.host-form p {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 14px;
}

.host-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 30px;
}

.host-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.host-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32, 69, 25, 0.2);
}


/* --- 7. Final --- */
.final-section {
    padding: 0;
}
.final-bg {
    background: var(--primary);
    color: white;
    border-radius: 50% 50% 0 0 / 100px 100px 0 0; /* Широкая низкая арка */
    padding: 100px 20px;
    text-align: center;
}
.final-title { font-family: var(--font-head); font-size: 42px; margin-bottom: 20px; }
.final-text { margin-bottom: 40px; font-size: 18px; opacity: 0.9; }
.final-names { font-family: var(--font-head); font-size: 30px; font-style: italic; }

/* --- Animations --- */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out;  }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-delay-1 { transition-delay: 0.2s; }

/* --- Media Queries (Адаптация) --- */
@media (max-width: 768px) {
    .hero-names { font-size: 42px; }
    .hero-container { gap: 30px; }
    
    .timeline::before { left: 15px; }
    .marker { left: 10px; }
    .time {
        display: block !important; /* Убеждаемся, что оно видно */
        position: absolute;
        top: -12px;
        left: 50px;
        background: var(--primary);
        color: white;
        padding: 2px 12px;
        border-radius: 20px;
        font-size: 14px;
        z-index: 10;
        width: auto;
        text-align: center;
        box-shadow: 0 4px 10px rgba(32, 69, 25, 0.2);
    }
    .card {
		margin-left: 35px; 
        padding: 25px 15px 15px; /* Увеличиваем верхний отступ из-за бейджа с временем */
        flex-direction: column; 
        text-align: center; 
        position: relative;
	}
    .icon-box img { width: 70px; 
        height: 70px; 
        margin-bottom: 10px; }
		
		.card .content h4 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .checkbox-grid { grid-template-columns: 1fr 1fr; }
    .radio-options { grid-template-columns: 1fr; }
    
    .details-layout { flex-direction: column-reverse; padding: 40px 20px; }
    .moodboard { grid-template-columns: 1fr 1fr; }
    .moodboard img { height: 160px; }
}

/* --- Contacts Section --- */
.contacts-section {
    padding-bottom: 100px;
}

.contacts-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 260px;
}

.contact-card .role {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-card .name {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.phone-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 18px;
    margin-bottom: 20px;
    transition: color 0.3s;
    font-weight: 500;
}

.phone-link:hover {
    color: var(--primary);
}

/* Кнопка Telegram */
.tg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: #eef4ed; /* Очень светлый зеленый фон */
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tg-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 69, 25, 0.15);
}

/* Иконка внутри кнопки */
.tg-icon {
    width: 20px;
    height: 20px;
}

/* Разделитель между женихом и невестой */
.contact-divider {
    width: 1px;
    height: 120px;
    background: rgba(32, 69, 25, 0.15);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .contacts-wrapper {
        flex-direction: column;
        gap: 50px;
    }
    
    .contact-divider {
        width: 60px;
        height: 1px; /* Горизонтальная линия на телефоне */
    }
	

	
}

.calendar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 12px 25px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(5px);
}
.calendar-btn:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(32, 69, 25, 0.2);
}

.music-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: #204519;
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
	z-index: 10;
}

.music-control:hover {
    transform: scale(1.08);
}

.music-control.playing {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(32,69,25,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(32,69,25,0); }
    100% { box-shadow: 0 0 0 0 rgba(32,69,25,0); }
}


/* Декоративные капли/лепестки */
.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50% 0 50% 50%; /* Форма лепестка */
    opacity: 0.3;
    pointer-events: none;
    animation: fall linear infinite;
}

@keyframes fall {
    0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* Секция с цитатой */
.quote-section {
    padding: 60px 0;
    text-align: center;
	
}
.quote-wrapper {
	
    margin: 0 auto;
    position: relative;
	    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}
.quote-icon {
    font-size: 30px;
    color: var(--accent);
    display: block;
    margin-bottom: 20px;
}
.quote-text {
    font-family: var(--font-head);
    font-size: 23px;
    font-style: italic;
    color: var(--primary);
    line-height: 1.4;
	text-align: center;
    flex: 1;
    min-width: 280px;
}
.quote-author {
    margin-top: 15px;
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
}
.quote-visual {
    flex: 1;
    min-width: 280px;
    max-width: 400px;


/* Эффект при наведении на фото */
.arch-img, .arch-img-small, .arch-img-medium, .moodboard img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.arch-img:hover, .arch-img-small:hover, .moodboard img:hover {
    transform: scale(1.03);
}

/* Разделитель в деталях */
.separator {
    font-size: 32px !important;
    opacity: 0.5;
    margin: 10px 0 !important;
}

/* Улучшение футера */
.final-bg {
    background: linear-gradient(180deg, var(--primary) 0%, #152e10 100%);
    position: relative;
    overflow: hidden;
}
.final-bg::before {
    content: '🍃';
    position: absolute;
    font-size: 100px;
    bottom: -20px;
    right: -20px;
    opacity: 0.1;
}

/* Рукописные акценты ?*/
.handwritten-text {
    font-family: 'Great Vibes', cursive;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Декоративный лепесток в заголовке */
.decorative-leaf {
    font-size: 24px;
    margin-bottom: 10px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(10deg); }
}

/* Разделители секций */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}
.section-divider .line {
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}
.section-divider .flower {
    font-size: 18px;
    opacity: 0.6;
}

/* Карточки программы с мягким свечением */
.card {
    border: none !important;
    background: white !important;
    box-shadow: 0 10px 30px rgba(186, 207, 182, 0.2) !important;
}

/* Эффект на кнопке отправки */
.submit-btn {
    position: relative;
    overflow: hidden;
}
.submit-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(45deg);
    transition: 0.5s;
}
.submit-btn:hover::after {
    left: 120%;
}

@media (min-width: 1024px) {
    body { cursor: none; }
    .custom-cursor {
        width: 20px;
        height: 20px;
        background: var(--accent);
        opacity: 0.4;
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        z-index: 9999;
        transition: transform 0.1s ease;
    }
}