/* Основные стили */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

/* Блок на весь экран */
.fullscreen-block {
    background-image: url('excavator.jpg'); /* Замените на путь к вашему изображению */
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

/* Затемнение фона */
.fullscreen-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

/* Контент в центре */
.content {
    position: relative;
    z-index: 1;
    max-width: 800px; /* Ограничиваем ширину текста */
    padding: 20px;
    background: rgba(0, 0, 0, 0.7); /* Затемнение фона текста */
    border-radius: 10px;
    margin: 20px; /* Отступы для мобильной версии */
}

/* Заголовок */
h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

/* Текст */
p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

/* Ссылка с телефоном */
.phone-link {
    color: #FFD700; /* Желтый цвет */
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}

/* Контейнер для кнопки */
.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Кнопка "Хочу арендовать" */
button {
    background-color: #FFD700;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    cursor: pointer;
    color: black;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Расстояние между иконкой и текстом */
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Контент модального окна */
.modal-content {
    background-color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 90%; /* Увеличиваем ширину модального окна для мобильной версии */
    max-width: 400px; /* Максимальная ширина для десктопа */
}

/* Заголовок модального окна */
.modal-content h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

/* Кнопка закрытия модального окна */
.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

/* Поле ввода телефона */
form input {
    padding: 10px;
    margin: 10px 0;
    width: calc(100% - 22px); /* Учитываем padding и border */
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Кнопка отправки формы */
form button {
    background-color: #FFD700;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    color: black;
    border-radius: 5px;
    width: 100%; /* Кнопка на всю ширину */
}

/* Сообщение об ошибке или успехе */
#message {
    margin-top: 10px;
    color: #FFD700;
}

/* Плавающая кнопка телефона */
.floating-phone-button {
    position: fixed;
    bottom: 60px; /* Больший отступ на десктопе */
    right: 60px; /* Больший отступ на десктопе */
    width: 80px; /* Увеличиваем размер кнопки */
    height: 80px; /* Увеличиваем размер кнопки */
    background-color: #FFD700; /* Желтый цвет */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite; /* Анимация пульсации */
    z-index: 1000; /* Чтобы кнопка была поверх других элементов */
    cursor: pointer; /* Курсор в виде указателя */
}

/* Иконка телефона */
.floating-phone-button i {
    font-size: 36px; /* Увеличиваем размер иконки */
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1.2em;
    }

    .content {
        max-width: 90%; /* Уменьшаем ширину текста для мобильной версии */
        padding: 15px;
    }

    .modal-content {
        width: 90%; /* Ширина модального окна для мобильной версии */
        padding: 20px;
    }

    /* Плавающая кнопка для мобильных устройств */
    .floating-phone-button {
        bottom: 2vh; /* Отступ снизу 12vh */
        left: 33%; /* Центрирование по горизонтали */
        transform: translateX(-50%); /* Точное центрирование */
        width: 16vh; /* Размер кнопки */
        height: 16vh; /* Размер кнопки */
    }

    .floating-phone-button i {
        font-size: 66px; /* Размер иконки */
    }
}