/* Стили для кнопки звонка */
.call-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #00BCFF; /* Голубой */
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.2s; /* Плавные анимации для фона и увеличения */
    animation: pulse 1.5s infinite; /* Добавлена анимация */
}

.call-button a:hover {
    background-color: #0077B6; /* Более темный голубой для hover */
    transform: scale(1.1); /* Легкое увеличение кнопки при наведении */
}

.call-button img {
    width: 32px;
    height: 32px;
}

.call-button {
    margin-top: -5px; /* Отодвигаем кнопку вниз */
    margin-right: 15px;
    margin-bottom: 15px;
}

.call-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-right: 30px;
}

footer {
    background-color: #f8f8f8; /* Светлый фон для подвала */
    text-align: center; /* Центрируем текст */
    padding: 20px 0; /* Отступы сверху и снизу */
    font-size: 0.9rem; /* Уменьшаем размер шрифта */
    color: #666; /* Темно-серый цвет текста */
    margin-top: 30px; /* Отступ сверху от контента */
}

footer .location {
    font-weight: bold; /* Выделяем локацию */
    font-size: 1rem;
    color: #333; /* Графитовый */
}

footer .year {
    margin-top: 5px; /* Небольшой отступ сверху */
}

#location {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333; /* Графитовый */
    text-align: center;
}

/* Hover-эффект */
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 188, 255, 0.3); /* Голубой эффект */
}

/* Стили для кнопки */
.btn-primary {
    display: block;    
    margin: 20px auto 0; /* Центрируем кнопку и немного опускаем */
    text-align: center;
    background: #0077B6; 
    color: #fff;
    padding: 12px 20px;
    font-size: 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    margin-top: 30px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: #005f8a; /* Более темный голубой */
}

.advantage-item:hover {
    transform: translateY(-5px); /* Эффект подъема при наведении */
    box-shadow: 0 6px 20px rgba(0, 188, 255, 0.3); /* голубой */
}

/* Статистика */
.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stats div {
    font-size: 1rem;
    color: #333;
    text-align: center;
}

.stats strong {
    font-size: 1.5rem;
    display: block;
}

/* Телефон */
.phone-number {
    font-size: 1.5rem;
    color: #28a745; /* Мятный для телефона */
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

form button:hover {
    background-color: #005f8a;
}
/* Чекбокс */
.checkbox {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 10px;
}

.checkbox input {
    margin-right: 5px;
}

/* Карусель (Swiper) */
.swiper {
    max-width: 90%; /* Уменьшаем ширину контейнера */
    margin: 0 auto;  /* Центрируем */
    position: relative;
    max-width: 1200px; /* Увеличиваем ширину карусели для ПК */
    overflow: hidden; /* Предотвращает появление пустых мест */
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.3s ease; /* Плавный переход сдвига слайдов */
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем карточки */
    height: 250px; /* Увеличиваем высоту слайдов */
    background: #f8f9fc;
    gap: 0px; /* Убираем разрыв между карточками */
    padding: 0px; /* Убираем возможные внутренние отступы */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.035);
}

/* Карточка отзыва */
.review-card {
    background: white;
    margin: 0px; /* Убираем внешние отступы */
    padding: 10px; /* Можно оставить немного внутреннего отступа */
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(23, 23, 23, 0.101);
    width: 100%; /* Ширина карточек по размеру слайда */
    max-width: 300px; /* Ограничиваем ширину карточки */
    height: 80%; /* Высота карточки должна соответствовать высоте слайда */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрируем контент по высоте */
    align-items: center; /* Центрируем контент по горизонтали */
    transition: transform 0.3s ease-in-out;
    flex: 1;
    text-align: center;
}

.review-card p {
    margin: 0;
    padding-bottom: 10px; /* Отступ между текстом и именем */
}

.review-card strong {
    font-weight: bold;
    color: #0077B6; /* Используем голубой цвет для выделения */
}

/* Стрелки навигации */
.swiper-button-next, .swiper-button-prev {
    color: #0077B6; /* Цвет стрелок */
    font-size: 24px; /* Увеличим размер стрелок */
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px; /* Размер кнопки */
    height: 50px;
    background-color: rgba(255, 255, 255, 0.7); /* Полупрозрачный фон */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
}

.swiper-button-prev {
    left: -60px; /* Сдвигаем левую кнопку за пределы контейнера */
}

.swiper-button-next {
    right: -60px; /* Сдвигаем правую кнопку за пределы контейнера */
}

/* Пагинация */
.swiper-pagination {
    bottom: -10px; /* Расстояние до низа */
    z-index: 10;
}

/* Контейнер с преимуществами */
.swiper-advantages {
    text-align: center;
    align-items: center;
    background: #f8f9fc;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Раздел Как мы оказываем помощь */
.help-steps {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.help-steps h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #222;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-in-out forwards; /* Анимация плавного появления */
}

/* Контейнер с шагами: ВСЕ В ОДНУ СТРОКУ на ПК */
.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: nowrap; /* Запрещаем перенос строк */
    max-width: 1200px;
    margin: 0 auto;
}

/* Оформление каждого шага */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1; /* Гибкая ширина */
    max-width: 200px; /* Ограничиваем рост */
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease-in-out forwards; /* Анимация слайдов */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Анимация появления слайдов (для шагов) */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Добавляем задержку для анимации шагов */
.step:nth-child(1) { animation-delay: 0.2s; }
.step:nth-child(2) { animation-delay: 0.4s; }
.step:nth-child(3) { animation-delay: 0.6s; }
.step:nth-child(4) { animation-delay: 0.8s; }
.step:nth-child(5) { animation-delay: 1s; }

/* Оформление кружков с номерами */
.step-number {
    width: 70px;
    height: 70px;
    background-color: #0077B6; /* Голубой */
    color: white;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover-эффект на шаги */
.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 188, 255, 0.3); /* голубой */
}

.step:hover .step-number {
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(0, 188, 255, 0.3); /* голубой */
}

/* Текст под номером */
.step p {
    font-size: 16px;
    color: #212529;
    max-width: 160px;
    font-weight: 500;
}

/* Раздел Вопрос - Ответ */
.faq {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
}

.faq h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-in-out forwards;
}

/* Контейнер вопросов */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Вопрос */
.faq-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s ease-in-out;
}

/* Вопрос — заголовок */
.faq-question {
    font-size: 18px;
    font-weight: bold;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #0077B6; /* Голубой */
    color: white;
    text-align: left;
    position: relative;
    transition: 0.3s;
}

/* Иконка + */
.faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    transition: 0.3s;
}

/* Ответ (изначально скрыт) */
.faq-answer {
    font-size: 16px;
    color: #333;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out;
}

/* Активный класс для раскрытого ответа */
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px 20px;
    opacity: 1;
}

/* Меняем + на - при раскрытии */
.faq-item.active .faq-question::after {
    content: '-';
}

/* Hover-эффект для вопроса */
.faq-question:hover {
    background-color: #005F8A; /* более темный голубой */
}


 /* CSS для всплывающего сообщения */
 #successMessage {
    display: none; /* Изначально скрыто */
    color: green;
    margin-top: 10px;
    padding: 10px;
    background-color: #f0f8f0;
    border: 1px solid #2e8b57;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    position: fixed; /* Фиксированное положение */
    top: 0; /* Располагаем в верхней части страницы */
    left: 50%; /* Центрируем по горизонтали */
    transform: translateX(-50%); /* Центрируем по горизонтали */
    z-index: 9999; /* Сообщение будет поверх всех остальных элементов */
    opacity: 0; /* Изначально скрыто по прозрачности */
    animation: showMessage 3s forwards; /* Анимация, показывающая сообщение */
}

/* Анимация для показа сообщения */
@keyframes showMessage {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

.showMessage {
    animation: showMessage 1s ease-in-out forwards;
}

/* Анимация появления блока */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .step {
        width: 100%;
        max-width: 250px;
    }

    /* Уменьшаем размер шрифтов для мобильных устройств */
    .faq h2 {
        font-size: 20px;
    }

    .faq-question {
        font-size: 14px;
    }

    .faq-answer {
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease-out;
    }
    
    .faq-question.active + .faq-answer {
        max-height: 500px; /* или любой подходящий лимит */
    }




    .btn-primary {
        margin-top: 50px;
        width: 90%;
        font-size: 1rem;
        padding: 10px;
    }

    .btn-primary:hover {
        background: #005f8a;
    }

    .advantage-list {
        flex-direction: column;
        gap: 15px;
    }

    .help-steps h2 {
        font-size: 28px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .step {
        width: 90%;
        padding: 20px;
    }

    .step-number {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }

    .step p {
        font-size: 15px;
        max-width: 100%;
    }

    /* Уменьшение размера и позиционирования call-container */
    .call-container {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        margin-top: 35px;
        margin-left: auto;
    }

   
}

/* Пульсация кнопки */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(40, 167, 69, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(40, 167, 69, 0.5);
    }
}
