/* ===== RESET ===== */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== BASE ===== */
body {
    font-family: 'Montserrat', sans-serif;
    background: #faf7f5;
    color: #333;
}

section {
    width: 100%;
    padding: 80px 0;
}

.content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

h1, h2 {
    font-family: 'Playfair Display', serif;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* само изображение */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* ключ к нормальному отображению */
    object-position: center;
}

/* затемнение */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

/* текст поверх */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
}

/* ===== DATE ===== */
.date {
    background: #f1e7e3;
}

.date h2 {
    font-size: 40px;
}

/* ===== LOCATION ===== */
.map {
    margin-top: 20px;
    border-radius: 20px;
    overflow: hidden;
}

/* ===== TIMELINE ===== */
.timeline-items {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.timeline-item span {
    font-size: 26px;
    font-weight: 600;
}

.timeline-item p {
    margin-top: 8px;
}

/* ===== DETAILS ===== */
.details {
    background: #fff;
    font-size: 18px;
    line-height: 1.6;
}

/* ===== FORM ===== */
.form-section {
    background: #f1e7e3;
}

form {
    max-width: 500px;
    margin: 40px auto 0;
    text-align: left;
}

.field {
    margin-bottom: 20px;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
}

/* RADIO */
.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group input {
    display: none;
}

.radio-group label {
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #aaa;
    cursor: pointer;
}

.radio-group input:checked + label {
    background: #c8a9a1;
    color: #fff;
}

/* CHECKBOX */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-card {
    border: 2px solid #ccc;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
}

.checkbox-card input {
    display: none;
}

.checkbox-card input:checked + span {
    background: #c8a9a1;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
}

/* BUTTON */
button {
    width: 100%;
    padding: 16px;
    background: #c8a9a1;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* SUCCESS */
.success {
    background: #d8ead6;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 40px;
    }

    section {
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 25px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .timeline-items {
        flex-direction: column;
        gap: 25px;
    }

    .radio-group {
        flex-direction: column;
    }

    .checkbox-group {
        flex-direction: column;
    }
}