:root {
    /* Обновленная палитра под Великого Гэтсби */
    --bg-dark: #131b15;      /* Более глубокий, темный изумрудно-черный тон */
    --bg-light: #1c261f;     /* Чуть светлее для блоков и карточек */
    --accent-gold: #D4AF37;  /* Насыщенное классическое золото вместо блеклого бежевого */
    --accent-gold-light: #F5EFE4; /* Шампань / крем */
    --accent-red: #581818;   /* Глубокий винтажный бордовый */
    --text-main: #f5efe4;    /* Светлый крем для текста */
    --text-white: #ffffff;
    
    --font-header: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3 { 
    font-family: var(--font-header); 
    font-weight: 400; 
    margin-bottom: 1rem; 
    color: var(--accent-gold);
}

h2 { 
    font-size: 3.5rem; 
    text-align: center; 
    margin-bottom: 3rem; 
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }

/* Buttons */
.btn-main {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--accent-red);
    color: var(--text-white);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border: 1px solid var(--accent-red);
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-main:hover { 
    background-color: transparent; 
    color: var(--accent-red);
    border-color: var(--accent-red);
}
.btn-block { width: 100%; }

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    /* Фото со свечой здесь (hero_bg.jpg) */
    background: url('../images/hero_bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(36,48,38,0.3), rgba(36,48,38,0.8));
}
.hero-content { position: relative; z-index: 2; padding: 20px; }
.hero h1 { 
    font-size: 5rem; 
    margin: 10px 0; 
    color: var(--text-white); 
    line-height: 1.1;
}
.hero h1 span { font-size: 3rem; vertical-align: middle; color: var(--accent-gold); }
.intro-text { text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; color: var(--text-white); }
.divider { font-size: 2rem; color: var(--accent-red); margin: 20px 0; }
.date { font-size: 1.8rem; font-family: var(--font-header); color: var(--accent-gold); margin-bottom: 5px; }
.location { margin-bottom: 40px; color: #ccc; font-weight: 300; }

/* Our Story */
.story-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-light);
    padding: 0;
    overflow: hidden;
}
.story-img { flex: 1; height: 500px; }
.story-img img { width: 100%; height: 100%; object-fit: cover; }
.story-text { flex: 1; padding: 60px; text-align: left; }
.story-text h2 { text-align: left; font-size: 2.5rem; }
.story-text p { margin-bottom: 20px; color: #ccc; }

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-item { height: 350px; overflow: hidden; position: relative; }
/* Делаем сетку интереснее: 1-й элемент широкий */
.gallery-item:nth-child(1) { grid-column: span 2; } 
.gallery-item img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.5s ease;
    filter: sepia(20%) brightness(0.9); /* Осенний фильтр */
}
.gallery-item:hover img { transform: scale(1.05); filter: none; }

/* Details Cards */
.details-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.detail-card {
    background: rgba(28, 38, 31, 0.4);
    border: 1px solid var(--accent-gold);
    outline: 1px solid var(--accent-gold);
    outline-offset: -5px; /* Создает эффект двойной рамки */
    padding: 40px 20px;
    flex: 1;
    min-width: 280px;
    text-align: center;
    transition: transform 0.3s, outline-offset 0.3s;
}
transform: translateY(-5px); 
    outline-offset: -8px; /* Рамка изящно сужается при наведении */ }

/* Timer */
.timer-container { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 50px; }
.countdown { display: flex; justify-content: center; gap: 30px; margin-top: 30px; flex-wrap: wrap; }
.time-box { text-align: center; color: var(--accent-gold); font-family: var(--font-header); font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; }
.time-box span { display: block; font-size: 4rem; color: var(--text-white); line-height: 1; }

/* RSVP Form Styled */
.rsvp-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-light);
    padding: 60px;
    border: 1px solid var(--accent-gold);
    outline: 1px solid var(--accent-gold);
    outline-offset: -8px; /* Внутренняя золотая рамка */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.rsvp-intro { text-align: center; margin-bottom: 40px; color: var(--accent-gold); }

.form-group { margin-bottom: 25px; }
.form-row { display: flex; gap: 20px; }
.form-group.half { flex: 1; }

label { display: block; margin-bottom: 8px; font-size: 0.9rem; letter-spacing: 1px; color: #ccc; }

input[type="text"], select, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid #444;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
input[type="text"]:focus, select:focus, textarea:focus { border-color: var(--accent-gold); }

/* Custom Radio Cards */
.radio-group-main { display: flex; gap: 20px; }
.radio-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}
.radio-card input { display: none; }
.radio-text {
    display: block;
    padding: 15px;
    text-align: center;
    border: 1px solid #444;
    color: #888;
    transition: all 0.3s;
}
.radio-card input:checked + .radio-text {
    background: var(--accent-red);
    color: white;
    border-color: var(--accent-red);
}

footer { padding: 50px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); color: #666; }
footer .small { font-size: 0.8rem; margin-top: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .story-wrapper { flex-direction: column; }
    .story-img { height: 300px; width: 100%; }
    .story-text { padding: 30px; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item:nth-child(1) { grid-column: span 2; }
    .form-row { flex-direction: column; gap: 0; }
    .rsvp-form { padding: 30px 20px; }
    .time-box span { font-size: 2.5rem; }
}
/* --- Обновленная секция Дресс-кода: Отголоски эпохи джаза --- */
.dress-code {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #0d120e 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.dress-code-card {
    background: var(--bg-light);
    padding: 50px;
    border: 1px solid var(--accent-gold);
    outline: 1px solid var(--accent-gold);
    outline-offset: -8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.dress-code-theme {
    font-family: var(--font-header);
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px double var(--accent-gold);
    padding-bottom: 15px;
    text-align: center;
}
.dress-code-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    text-align: center;
    color: var(--accent-gold-light);
}
.dress-code-grid {
    display: flex;
    gap: 50px;
    margin-bottom: 40px;
}
.gender-block {
    flex: 1;
    min-width: 280px;
}
.gender-block h3 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-family: var(--font-header);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 8px;
}
.gender-intro {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #eee;
}

/* Палитра для дам */
.dress-code-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}
.palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
}
.color-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
    transition: transform 0.2s;
}
.color-dot:hover {
    transform: scale(1.1);
}
.color-name {
    font-size: 0.75rem;
    color: #ccc;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dress-code-avoid {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #dfd7c2;
    background: rgba(107, 34, 34, 0.15); /* Деликатная тонировка */
    border-left: 2px solid var(--accent-red);
    padding: 10px 15px;
    border-radius: 2px;
}

/* Для мужчин */
.men-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}
.men-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: #eee;
}
.men-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
}
.sub-list-text {
    font-size: 0.85rem;
    color: #aaa;
    display: block;
    margin-top: 2px;
}
.men-alternative {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--accent-gold);
    padding: 10px 15px;
    border-radius: 2px;
}

/* Концепция по желанию */
.optional-block {
    border-top: 1px double rgba(212, 175, 55, 0.3);
    padding-top: 30px;
    margin-bottom: 30px;
}
.optional-block h3 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
    font-family: var(--font-header);
    text-align: center;
}
.optional-intro {
    text-align: center;
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 20px;
}
.accessories-grid {
    display: flex;
    gap: 30px;
    background: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.acc-column {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #ccc;
}
.acc-column strong {
    color: var(--accent-gold-light);
    display: block;
    margin-bottom: 5px;
}

/* Фотозона */
.photozone-note {
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid var(--accent-gold);
    padding: 15px 20px;
    margin-bottom: 35px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.photozone-icon {
    font-size: 1.5rem;
}
.photozone-note p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    color: #eee;
}

.dress-code-outro {
    font-family: var(--font-header);
    text-align: center;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--accent-gold-light);
    margin-top: 10px;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .dress-code-card {
        padding: 30px 15px;
    }
    .dress-code-grid {
        flex-direction: column;
        gap: 30px;
    }
    .accessories-grid {
        flex-direction: column;
        gap: 20px;
    }
    .dress-code-palette {
        justify-content: center;
    }
}
/* Прокат костюмов для мужчин */
.men-rentals {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.15);
    /* Увеличиваем левый внутренний отступ до 25px, чтобы сдвинуть весь текст вправо */
    padding: 15px 15px 15px 25px; 
    border-radius: 3px;
}
.rentals-title {
    font-size: 0.85rem;
    color: var(--accent-gold-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}
.rentals-list {
    /* Жестко сбрасываем любые дефолтные буллеты и отступы */
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.rentals-list li {
    /* Дополнительный сброс для элементов списка */
    list-style: none !important;
    list-style-type: none !important;
    padding-left: 0 !important; 
    margin: 0 !important;
}
.rentals-list li::before {
    /* Полностью отключаем маркеры-символы, если они наследуются из других стилей */
    display: none !important; 
    content: "" !important;
}
.rentals-list li a {
    font-size: 0.95rem;
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.rentals-list li a:hover {
    color: var(--text-white);
    border-bottom-color: var(--text-white);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .rentals-list {
        flex-direction: column;
        gap: 8px;
    }
}
/* Дополнительная страховка ширины для блоков вне сетки */
.optional-block,
.photozone-note,
.dress-code-outro {
    width: 100% !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important; /* Не позволяет Flex-контейнерам сжимать блок */
}

/* --- Стили для секции «Пожелания» --- */
.wishes {
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.wishes-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.wish-card {
    background: var(--bg-light);
    border: 1px solid var(--accent-gold);
    outline: 1px solid var(--accent-gold);
    outline-offset: -6px; /* Внутренняя золотая рамка */
    padding: 40px 30px;
    flex: 1;
    min-width: 290px;
    max-width: 500px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, outline-offset 0.3s ease;
}

.wish-card:hover {
    transform: translateY(-5px);
    outline-offset: -8px;
}

.wish-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.wish-card h3 {
    font-size: 1.8rem;
    color: var(--accent-gold);
    margin-bottom: 15px;
    font-family: var(--font-header);
    letter-spacing: 1px;
}

.wish-card p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

.phone-highlight {
    display: inline-block;
    margin-top: 20px;
    font-family: var(--font-header);
    font-size: 1.25rem;
    color: var(--accent-gold-light);
    border-bottom: 1px dashed var(--accent-gold);
    padding-bottom: 4px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Адаптивность для мобильных телефонов */
@media (max-width: 768px) {
    .wishes-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .wish-card {
        width: 100%;
        padding: 30px 20px;
    }
}