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

body {
    font-family: 'Times New Roman', serif;
    background-color: #3e2723;
    background-image: url('../IMAGES/back_wallpaper.jpg');
    /* Изображение Фемиды из локального файла */
    background-size: cover;
    /* Изображение покрывает весь фон */
    background-position: center center;
    /* Центрируем изображение */
    background-repeat: no-repeat;
    /* Не повторять */
    background-attachment: fixed;
    /* Фиксировать фон */
    color: #efebe9;
    line-height: 1.8;
    /* Увеличенный межстрочный интервал для читаемости */
    position: relative;
}

/* Полупрозрачный оверлей для затемнения фона и улучшения читаемости */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(62, 39, 35, 0.85);
    /* Темный полупрозрачный слой */
    z-index: -1;
}

.container {
    max-width: 65vw;
    /* Ширина для десктопа */
    width: 100%;
    /* Занимает всю ширину на мобильных */
    min-height: 100vh;
    /* Занимает минимум высоту экрана */
    margin: 0 auto;
    padding: 20px;
    /* Уменьшенные отступы на мобильных */
    background-color: rgba(62, 39, 35, 0.85);
    /* Более плотный фон для контента */
    backdrop-filter: blur(5px);
    /* Размытие фона под текстом (опционально) */
}

header {
    text-align: center;
    padding: 50px 0;
    /* Увеличено пространство */
    border-bottom: 1px solid #5d4037;
}

h1 {
    font-size: 3em;
    /* Увеличенный заголовок */
    margin-bottom: 15px;
    color: #d7ccc8;
}

.subtitle {
    font-style: italic;
    font-size: 1.4em;
    /* Увеличенный подзаголовок */
    color: #a1887f;
}

section {
    padding: 50px 30px;
    /* Увеличено пространство внутри секций */
    border-bottom: 1px solid #5d4037;
}

h2 {
    font-size: 2.2em;
    /* Увеличенные заголовки секций */
    margin-bottom: 25px;
    color: #d7ccc8;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    /* Увеличена длина линии под заголовком */
    height: 3px;
    /* Увеличена толщина линии */
    background-color: #8d6e63;
    margin-top: 8px;
}

/* Стили для блока "Обо мне" с фото */
#about {
    display: flex;
    /* Используем flexbox */
    align-items: flex-start;
    /* Выравнивание по верхнему краю */
    gap: 30px;
    /* Отступ между фото и текстом */
}

.about-photo {
    flex-shrink: 0;
    /* Запрещаем сжиматься изображению */
    width: 250px;
    /* Ширина фото */
    height: 350px;
    /* Высота фото */
    background-image: url('../IMAGES/my_face.jpeg');
    /* Путь к вашему фото */
    background-size: cover;
    /* Изображение заполняет контейнер */
    background-position: center;
    /* Центрируем изображение */
    border-radius: 8px;
    /* Скругление углов (опционально) */
    border: 1px solid #5d4037;
    /* Тонкая рамка */
}



p {
    margin-bottom: 20px;
    /* Увеличено расстояние между абзацами */
    font-size: 1.3em;
    /* Увеличен размер текста */
}

ul {
    padding-left: 30px;
    /* Увеличен отступ списка */
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
    /* Увеличено расстояние между элементами списка */
    font-size: 1.25em;
    /* Увеличен размер текста в списке */
}

/* Стили для контактов */
.contact-item {
    margin-bottom: 15px;
    /* Увеличено расстояние между контактами */
    font-size: 1.25em;
    /* Увеличен размер текста контактов */
    display: flex;
    /* Flex для иконки и текста */
    align-items: center;
    /* Выравнивание по центру */
    gap: 15px;
    /* Отступ между иконкой и текстом */
}

.contact-icon {
    width: 32px;
    /* Размер иконки */
    height: 32px;
    flex-shrink: 0;
    /* Не сжимать иконку */
}

.contact-link {
    color: #ffcc80;
    /* Контрастный цвет для ссылок */
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
    /* Подчеркивание при наведении */
}

.highlight {
    color: #ffcc80;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 30px;
    color: #a1887f;
    font-size: 1.1em;
    /* Увеличен размер текста футера */
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КНОПКИ И МОДАЛЬНОГО ОКНА --- */

/* Стили для кнопки "Оставить заявку" */
.cta-button {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 40px auto 30px;
    padding: 15px 20px;
    background-color: #ffcc80;
    /* Цвет кнопки */
    color: #60402f;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #6d4c41;
    /* Цвет при наведении */
}

/* Стили для модального окна */
.modal-overlay {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Полупрозрачный черный фон */
    z-index: 1000;
    backdrop-filter: blur(5px);
    /* Размытие фона */
}

.modal {
    display: none;
    /* Скрыто по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: #efebe9;
    /* Светлый фон модалки */
    color: #3e2723;
    /* Темный текст */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    overflow-y: auto;
    max-height: 90vh;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #3e2723;
}

.modal-subtitle {
    font-style: italic;
    font-size: 1.1em;
    color: #5d4037;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #3e2723;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bcaaa4;
    border-radius: 8px;
    font-size: 1em;
    color: #3e2723;
    background-color: #f5f5f5;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #8d6e63;
    background-color: #fff;
}

.form-textarea {
    height: 120px;
    /* Больше для темы консультации */
    resize: vertical;
    /* Разрешить изменение высоты */
}

.form-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #5d4037;
    color: #efebe9;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
}

.form-submit:hover {
    background-color: #6d4c41;
}

/* Кнопка закрытия */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    color: #5d4037;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-modal:hover {
    opacity: 1;
}

/* Адаптация для мобильных устройств */
@media (max-width: 1500px) {
    .container {
        max-width: 100%;
        /* Отменяем ограничение ширины на мобильных */
        padding: 15px;
        /* Еще меньше отступов */
    }

    header {
        padding: 30px 10px;
        /* Меньше отступов */
    }

    h1 {
        font-size: 2.2em;
        /* Меньше заголовок */
    }

    .subtitle {
        font-size: 1.1em;
        /* Меньше подзаголовок */
    }

    section {
        padding: 30px 15px;
        /* Меньше отступов */
    }

    h2 {
        font-size: 1.8em;
        /* Меньше заголовки секций */
    }

    p {
        font-size: 1.1em;
        /* Меньше текст */
    }

    ul {
        padding-left: 20px;
        /* Меньше отступа списка */
    }

    li {
        font-size: 1.05em;
        /* Меньше текста в списке */
    }

    /* На мобильных фото и текст идут вертикально */
    #about {
        flex-direction: column;
        align-items: center;
    }

    .about-photo {
        width: 250px;
        /* Меньше фото */
        height: 350px;
    }

    .contact-item {
        font-size: 1.1em;
        /* Меньше текста контактов */
        flex-direction: row;
        /* Иконка и текст в строку */
        justify-content: flex-start;
        /* Выравнивание по левому краю */
        gap: 10px;
        /* Меньше отступа */
    }

    .contact-icon {
        width: 28px;
        /* Меньше иконки */
        height: 28px;
    }

    footer {
        padding: 20px 10px;
        /* Меньше отступов */
        font-size: 0.95em;
        /* Меньше текста футера */
    }
}