/* Цветовая палитра Джапанди и переменные */
:root {
    --bg-color: #F6F4EF; /* Светлый природный фон */
    --text-color: #3C3E36; /* Глубокий оливково-серый для текста */
    --accent-color: #7B8B6F; /* Оливковый акцент */
    --wood-color: #C0A991; /* Цвет дерева */
    --white: #FFFFFF;

    --font-heading: 'Cormorant Garamond', serif;
    --font-text: 'Montserrat', sans-serif;
}

/* Базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, .subtitle {
    font-family: var(--font-heading);
    font-weight: 400;
}

.title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.text {
    font-size: 1rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

.text-small {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #666;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ГЛАВНЫЙ ЭКРАН */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: url('/static/media/my_photo.jpg') center/cover no-repeat;
}

/* Полупрозрачный слой поверх картинки для читаемости текста */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(246, 244, 239, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.subtitle {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.names {
    font-size: 4rem;
    margin: 10px 0;
    line-height: 1.1;
}

.names span {
    color: var(--wood-color);
    font-style: italic;
}

.date {
    font-family: var(--font-text);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-top: 15px;
    text-transform: uppercase;
}

/* ТАЙМЛАЙН */
.timeline {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--wood-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* Кружочки на линии */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    right: -6px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.time {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.event h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* КНОПКИ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    margin-top: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-text);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #65755A;
}

/* ЛОКАЦИЯ И ДЕТАЛИ */
.location, .details {
    background-color: var(--white);
    text-align: center;
}

/* КОНТЕЙНЕР ДЛЯ ЯНДЕКС КАРТ */
.map-container {
    margin-top: 30px;
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    background-color: #f0f0f0;
}

/* RSVP ФОРМА */
.rsvp-form {
    max-width: 500px;
    margin: 40px auto 0;
    background: var(--white);
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.rsvp-form input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 2px;
    font-family: var(--font-text);
    font-size: 0.9rem;
    outline: none;
    background-color: #FAFAFA;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group p {
    margin-bottom: 10px;
    font-weight: 500;
}

/* СТИЛИ ЧЕКБОКСОВ (Множественный выбор) */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    background-color: #FAFAFA;
    padding: 15px;
    border: 1px solid #E0E0E0;
    border-radius: 2px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-color);
}

.custom-checkbox input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

/* СКРОЛЛ ДЛЯ БОЛЬШОГО КОЛИЧЕСТВА НАПИТКОВ */
.scrollable-group {
    max-height: 150px; /* Высота, чтобы вмещалось ровно 4 пункта */
    overflow-y: auto;
    padding-right: 10px; /* Отступ под скроллбар, чтобы не наезжал на текст */
}

/* Кастомизация полосы прокрутки в стилистике сайта */
.scrollable-group::-webkit-scrollbar {
    width: 6px;
}

.scrollable-group::-webkit-scrollbar-track {
    background: #E0E0E0;
    border-radius: 10px;
}

.scrollable-group::-webkit-scrollbar-thumb {
    background: var(--wood-color);
    border-radius: 10px;
}

.scrollable-group::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.btn-submit {
    width: 100%;
}

.hidden {
    display: none;
}

.form-message {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    text-align: center;
}

/* ФУТЕР */
footer {
    text-align: center;
    padding: 40px 20px;
    background-color: var(--accent-color);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-style: italic;
}

/* АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ */
@media screen and (max-width: 768px) {
    .names { font-size: 2.8rem; }
    .title { font-size: 2rem; }

    /* Перестраиваем таймлайн для мобилки в один столбец */
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 14px !important;
    }

    .map-container {
        height: 300px;
    }
}
