/* Общие настройки для сброса отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Настройки для body */
body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to bottom, #87ceeb, #ffd700);
    background-size: cover;
    animation: backgroundPulse 6s ease-in-out infinite;
    text-align: center;
    padding-top: 20px;
}

/* Стили для заголовка */
.page-title {
    color: #ffd700;
    font-family: 'Roboto Slab', serif;
    font-size: 4.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    transform: scaleY(1.7);
    letter-spacing: -2px;
}

/* Стили для номера телефона */
.phone-number {
    color: #ff5733;
    font-size: 4rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 40px;
}

/* Контейнер для трёх колонок (для десктопа) */
.content-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    margin-top: 40px;
}

/* Левая колонка - Преимущества */
.advantages {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* Позволяет содержимому переноситься */
    align-items: flex-start;
    flex: 1; /* Контейнер будет занимать оставшееся пространство */
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: visible; /* позволяет элементам выходить за границы */
}


.advantages h2 {
    color: #333;
    margin-bottom: 10px;
}

.advantages ul {
    list-style: none;
    padding-left:0px;
}

/* Анимация печатания текста */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Анимация пульсации галочки */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5); /* Увеличиваем галочку до 1.5 */
    }
}

.advantages li {
    font-size: 1.1rem;
    color: #555;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;

    white-space: nowrap;
    border-right: 2px solid transparent;
    width: fit-content;
    animation: typing 2s steps(30) forwards;
    animation-delay: var(--delay);
}

.advantages li::before {
    content: "✔";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
    animation: pulse 2s infinite;
}

/* Центральная колонка - Изображение */
.image-container {
    width: 30%;
    display: flex;
    justify-content: center;
}

.center-image {
    max-width: 100%;
    height: auto;
}

/* Правая колонка - Форма заявки */
.request-form {
    width: 35%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.request-form h2 {
    color: #333;
    margin-bottom: 10px;
}

.request-form form {
    display: flex;
    flex-direction: column;
}

.request-form label {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
    margin-bottom: 5px;
}

.request-form input,
.request-form textarea {
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.request-form button {
    padding: 10px;
    font-size: 1rem;
    background-color: #ff5733;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.request-form button:hover {
    background-color: #e04e2e;

}
/* Стили для модального окна */
/* Стили для модального окна */
/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный фон */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Стили для контента модального окна */
.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Фрейм для текста */
#modalMessage {
    border: 2px solid #4CAF50; /* Цвет обрамления */
    padding: 20px;
    font-size: 1.2rem;
    color: #333;
    border-radius: 8px;
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

.close-button:hover {
    color: #555;
}




.call-button {
    display: none; /* Изначально скрыта */
    background-color: #ff5733;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 25px; /* Закругленные края */
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 1.5s infinite; /* Анимация пульсации */
}

/* Пульсирующая анимация */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }

}

/* Медиазапросы для мобильных устройств */
/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    /* Adjust the page title and phone number */
    .page-title {
        font-size: 2.5rem;
        line-height: 1.0; /* Уменьшенный межстрочный интервал */
        margin-bottom: 10px;
        margin-top: 20px;
    }
    .call-button {
        display: inline-block; /* Показываем кнопку только на мобильных устройствах */
    }

    .phone-number {
        font-size: 1.8rem;
        margin-bottom: 20px;
        margin-top: 50px;
    }

    /* Content container adjustments */
    .content-container {
        display: block;
        width: 90%;
        margin: 20px auto;
    }

    /* Image container adjustments */
    .image-container {
        float: right; /* Position the image on the right */
        width: 40%; /* Adjust the width as needed */
        margin-left: 20px; /* Space between text and image */
        margin-bottom: 10px;
    }

    .center-image {
        width: 100%;
        height: auto;
    }

    /* Advantages section adjustments */
    .advantages {
        display: block;
        overflow: visible;
        padding: 10px;
        background-color: #f8f8f8;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: left;
        margin-bottom: 20px;
    }

    .advantages h2 {
        color: #333;
        margin-bottom: 10px;
    }

    .advantages ul {
        list-style: none;
        padding-left: 0;
    }

    .advantages li {
        font-size: 1.1rem;
        color: #555;
        position: relative;
        padding-left: 25px;
        margin-bottom: 10px;
        white-space: normal;
    }

    .advantages li::before {
        content: "✔";
        color: #28a745;
        font-weight: bold;
        position: absolute;
        left: 0;
        top: 0;
        animation: pulse 2s infinite;
        transform-origin: left top;
    }

    /* Request form adjustments */
    .request-form {
        width: 100%;
        margin-top: 20px;
    }

    .request-form button {
        width: 100%;
        padding: 15px;
        font-size: 1.2rem;
    }
}
