@font-face {
    font-family: 'MyFont';
    src: url('fonts/MyFont.otf') format('opentype');
    font-weight: 400;
    /* Обычное начертание */
    font-style: normal;
    font-display: swap;
    /* Шрифт заменится на системный пока грузится */
}

@font-face {
    font-family: 'MyFont';
    src: url('fonts/MyFont.otf') format('opentype');
    font-weight: 700;
    /* Жирное начертание */
    font-style: normal;
    font-display: swap;
}

:root {
    --mobile_size_normal: 100%;
    --mobile_size_medium: 125%;
    --mobile_size_max: 250%;

    --desktop_size_normal: 200%;
    --desktop_size_medium: 250%;
    --desktop_size_max: 400%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MyFont', Arial, sans-serif;
    font-weight: 700;
    font-size: 100%;
    line-height: 1.6;
    padding: 20px;
    height: 100%;
    width: 100%;
    margin: 0;
    color: #954d4d;
    background-color: #DBDBDB;
}


@media (min-width: 1000px) {
    body {
        font-size: var(--desktop_size_normal);
    }
}


header {
    color: #954d4d;
    text-align: center;
    font-size: 275%;
}

.into_photo_right {
    text-align: right;
    color: #954d4d;
    font-size: 125%;
}

a {
    color: #d4a5a5;
    text-decoration: none;
}

a:visited {
    color: #d4a5a5;
}

nav {
    margin-top: 10px;
}

nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0;
}

@media (min-width: 1000) {
    main {
        align-items: center;
    }
}

section {
    margin-bottom: 30px;
}

.schedule {
    text-align: center;
    font-weight: 700;
    font-size: 125%;
}

.ponedelnik {
    text-align: center;
    font-size: 125%;
}

.where_text {
    text-align: center;
}

.map_block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 125%;
    display: block;
    align-items: center;
    gap: 1px;
}

.map_img {
    max-width: 100%;
}

.text_map_section {
    display: flex;
}


.wishes {
    text-align: center;
    font-weight: 700;
    font-size: 175%;
}

.wishes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.top-row {
    display: block;
    align-items: center;
}

.first_section_of_wishes-container {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 5px;
}

.right-text_of_wishes-container {
    width: 75%;
    font-family: 'MyFont', Arial, sans-serif;
    text-align: center;
    line-height: 1.4;
}

.second_section_of_wishes-container {
    display: flex;
    align-items: center;
    gap: 1px;
    margin-bottom: 5px;
}

.left-text_of_wishes-container {
    width: 75%;
    font-family: 'MyFont', Arial, sans-serif;
    text-align: center;
    line-height: 1.4;
}

/* Боковые картинки */
.side-img {
    width: 25%;
    height: auto;
    border-radius: 1px;
}

/* Нижняя картинка */
.bottom-img {
    display: block;
    max-width: 25%;
    margin: 0 auto;
    height: auto;
    border-radius: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .wishes-container {
        padding: 10px;
    }

    .top-row {
        gap: 8px;
        margin-bottom: 25px;
    }

    /* Уменьшаем картинки на мобильном */
    .side-img {
        width: 50%;
    }

    /* Уменьшаем текст на мобильном */
    .middle-text {
        width: 50%;
        font-size: 100%;
        line-height: 1.3;
    }

    .middle-text h3 {
        font-size: 100%;
        margin-bottom: 5px;
    }

    /* Уменьшаем нижнюю картинку на мобильном */
    .bottom-img {
        max-width: 60%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .side-img {
        width: 40%;
    }

    .right-text_of_wishes-container,
    .left-text_of_wishes-container {
        font-size: 100%;
    }

    .middle-text {
        width: 60%;
        font-size: 100%;
    }

    .middle-text h3 {
        font-size: 100%;
    }

    .bottom-img {
        max-width: 50%;
    }

}

.administration_work {
    text-align: center;
}

.olesya_tg {
    display: block;
    align-items: center;
}

olesya_tg_a {
    align-items: center;
}

.olesya_tg_image {
    width: 20%;
}

.dress_code {
    text-align: center;
}

.dress_code_container,
.after_dress_code {
    text-align: center;
    font-weight: 700;
}

.style_image,
.weee_image,
.palette {
    width: 100%;
    display: block;
    align-items: center;
}

@media (min-width: 1000px) {
    .into_photo {
        display: flex;
        justify-content: center;
    }

    .weee_image {
        max-width: 70%;
    }

    .style_block {
        display: flex;
        justify-content: center;
    }

    .style_image {
        max-width: 60%;
    }
}

.palette_pic,
.palette_pic_mob {
    width: 100%;
    display: block;
    align-items: center;
}

/* Анкета */

.wedding-form-title {
    text-align: center;
    font-family: 'MyFont', 'Georgia', serif;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.wedding-form-subtitle {
    text-align: center;
    color: #5c5b5b;
    margin-bottom: 30px;
    font-style: initial;
}

/* Группы полей */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

/* Поля ввода */
input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    font-family: 'Georgia', serif;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #d4a5a5;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(191, 166, 122, 0.2);
}

/* Радио кнопки (Да/Нет) */
.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input {
    margin-right: 8px;
    accent-color: #d4a5a5;
}

/* Группы радио и чекбоксов */
.radio-group,
.checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.checkbox-list {
    flex-direction: column;
    gap: 10px;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #555;
}

.radio-label input,
.checkbox-label input {
    margin-right: 10px;
    accent-color: #d4a5a5;
    /* Цвет галочки/точки */
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Кнопка отправки */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #d4a5a5;
    /* Основной цвет кнопки */
    color: white;
    border: none;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #db2727;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .wedding-form-container {
        padding: 25px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    header {
        font-size: 250%;
    }
}




.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 600px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.flash-message.success {
    background: #2ecc71;
    color: white;
}

.flash-message.error {
    background: #e74c3c;
    color: white;
}

.flash-message button {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}