/* Основной стиль */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #FBF7EE;
    color: #3D280A;
    line-height: 1.6;
    direction: rtl; /* Устанавливаем направление текста справа налево */
}

header {
    background: #3D280A;
    color: white;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

header h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

.contact-info {
    text-align: center; /* Центрирует текст */
    margin: 0; /* Убираем отступы */
    font-size: 0.9rem;
    padding: 0.5rem 0; /* Добавляем отступы по вертикали */
}

.language-switcher {
    position: absolute;
    top: 20px;
    left: 20px; /* Перемещаем панель языков влево */
    display: flex;
    gap: 10px;
}

.language-switcher .lang-option {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid white;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.language-switcher .lang-option:hover {
    background: white;
    color: #2c3e50;
}

.hero {
    background-image: url('https://via.placeholder.com/1920x600');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    margin-top: 2%;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/header_background.jpg");
    background-size: cover; /* Растягивает фон, сохраняя пропорции */
    background-position: center; /* Центрирует фон */
    background-repeat: no-repeat; /* Убирает повторение фона */
}

.hero h2, .hero p {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    font-family: 'Playfair Display', serif;
    margin: 0;
}

.hero p {
    font-size: 1.5rem;
    margin: 1.5rem 0 0;
}

section {
    padding: 2.5rem 1rem;
    max-width: 900px;
    margin: auto;
}

section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    color: #3D280A;
    font-size: 2rem;
    text-align: right; /* Выравнивание заголовков секций по правому краю */
}

section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    text-align: right; /* Выравнивание текста по правому краю */
}

.steps div {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #FBF7EE;
    border-right: 4px solid #3D280A; /* Изменено на правую границу для правильного выравнивания */
}

.wallimg {
    width: 100%;
}

.form-section {
    background: #FBF7EE;
    padding: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #FBF7EE;
}

button {
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: #3D280A;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #583a0f;
}

#orderFormModal {
    display: none;
}

.pricing-options {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: nowrap;
}

.pricing-card {
    background: #FBF7EE;
    padding: 2rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 32%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card button {
    margin-top: auto;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: #FBF7EE;
    padding: 2rem;
    position: relative;
    width: 500px;
    max-width: 90%;
    border-radius: 10px;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    left: 10px; /* Перемещаем крестик влево */
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close:hover {
    color: #2c3e50;
}

footer {
    background: #3D280A;
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Мобильные устройства */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .contact-info {
        font-size: 0.8rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .pricing-options {
        flex-direction: column;
        gap: 15px;
    }

    .pricing-card {
        width: 100%;
        height: auto;
        padding: 1.5rem;
    }

    .steps div {
        padding: 1rem;
    }

    footer {
        font-size: 0.8rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    header {
        padding: 0.5rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .contact-info {
        font-size: 0.7rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .pricing-options {
        flex-direction: column;
        gap: 10px;
    }

    .pricing-card {
        width: 100%;
        height: auto;
        padding: 1rem;
    }

    footer {
        font-size: 0.7rem;
    }

    .modal-content {
        width: 90%;
    }
}
