/* Загальні стилі */
body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
/* Общие стили для меню */
/* Header */
.header {
    background-color: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
}


/* Навигация меню слева */
.nav {
    display: flex;
    flex: 1; /* Расширение меню на всю ширину */
    justify-content: flex-start; /* Выравнивание к левому краю */
    gap: 15px;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.nav a:hover {
    text-decoration: underline;
}


/* Стили для ссылок в меню */
.nav a {
    text-decoration: none; /* Убираем подчеркивание */
    color: #FFF; /* Основной цвет текста */
    font-weight: 500;
    padding: 5px 10px;
    transition: color 0.3s ease; /* Плавный переход цвета */
}

/* Изменение цвета текста при наведении */
.nav a:hover {
    color: yellow; /* Жёлтый цвет при наведении */
    text-decoration: none;
}



/* Телефоны справа */
.phone-numbers {
    display: flex;
    justify-content: flex-end; /* Выравнивание к правому краю */
    align-items: center;
    gap: 15px; /* Расстояние между телефонами */
}

.phone-numbers a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.phone-numbers a:hover {
    text-decoration: underline;
    color: yellow; /* Жёлтый цвет при наведении */
    text-decoration: none;
}



/* Для гамбургера (мобильная версия) */
.hamburger-menu {
    display: none; /* По умолчанию скрыто, для мобильной версии включить через media query */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 30px;
    height: 5px;
    background-color: white;
    border-radius: 3px;
}


/* Мобильное меню скрыто по умолчанию */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    color: white;
    text-align: center;
    padding-top: 50px;
    transition: opacity 0.3s ease;  /* Плавное появление */
}

.mobile-menu a {
    display: block;
    padding: 15px;
    font-size: 20px;
    color: white;
    text-decoration: none;
}

/* Стиль для видимого меню */
.mobile-menu.show {
    display: block;
    opacity: 1;  /* Меню становится видимым */
}

/* Стиль для ссылок в меню */

.mobile-menu a:hover {
    background-color: #003366;
}

/* Анимация для гамбургера (при открытии меню) */
.hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */

.hero {
    background: url('../pic/H5_111.jpg') no-repeat center center/cover;
    color: white;
    padding: 180px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Напівпрозорий чорний шар для затемнення */
    z-index: 1; /* Розміщуємо поверх фону */
}

.hero .container {
    max-width: 1200px; /* Ограничение ширины текста */
    padding: 20px;
    border-radius: 10px;
    position: relative;
    z-index: 2; /* Виводимо текст на передній план */
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 .highlight {
    color: #FFD700; /* Золотистий колір для виділення */
}

.hero .highlight_1 {
    color: #FFFFFF; /* Золотистий колір для виділення */
}

.hero .subheading {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.8;
}

.hero .description {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.7;
}

.cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #333;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #e6c100;
    transform: scale(1.05);
}

.lawyer-info {
    margin-top: 20px;
    font-size: 16px;
    color: white;
}

.lawyer-info a {
    color: #FFD700;
    text-decoration: none;
}

.lawyer-info a:hover {
    text-decoration: underline;
}

/* Services Section */
.services {
    background-color: white;
    padding: 50px 20px;
    text-align: center;
}

.services h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.service-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    margin-bottom: 20px;
}

.service-link {
    display: inline-block;
    color: #003366;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #003366;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.service-link:hover {
    background-color: #003366;
    color: white;
}

.service-link_1 {
    
    display: inline-block;
    color: #003366;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid #003366;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    width: 100%; /* Ширина кнопки на всю форму */
}

.service-link_1:hover {
    background-color: #003366;
    color: white;
}



/* Contact Section */
.contact {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
    box-sizing: border-box;
}

.contact h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #003366;
}

.contact-details {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.6;
    color: #555;
}

.contact-details a {
    color: #003366;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Styled Form */
.styled-form {
    max-width: 600px; /* Максимальна ширина форми */
    width: 100%; /* Залишаємо форму адаптивною */
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
}

.styled-form .form-group {
    margin-bottom: 15px;
    font-family: 'Manrope', sans-serif;
}

.styled-form input, 
.styled-form textarea {
    width: 100%; /* Встановлюємо ширину полів на 100% */
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; /* Забезпечуємо коректне врахування padding */
}

.styled-form input:focus, 
.styled-form textarea:focus {
    border-color: #003366;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.2);
}

.styled-form input::placeholder, 
.styled-form textarea::placeholder {
    color: #aaa;
}

/* Переконатися, що форма не має обмежень по ширині */
/* Стиль кнопки */
/* Стиль кнопки */
/* Стиль кнопки */
.styled-form button.cta-button {
    background-color: #003366;
    color: #fff;
    font-size: 18px;
    padding: 12px 24px; /* Немного увеличим внутренние отступы */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Плавное изменение цвета и тени */
    display: inline-block;
    width: 100%;
    box-sizing: border-box; /* Включаем padding в ширину кнопки */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая тень */
}

/* При наведении на кнопку */
.styled-form button.cta-button:hover {
    background-color: #015090; /* Изменяем цвет фона при наведении */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15); /* Усиливаем тень */
}

/* При нажатии на кнопку */
.styled-form button.cta-button:active {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Уменьшаем тень при нажатии */
}



/* Стиль для секции консультаций */
.consultation {
    background-color: #f9f9f9;
    padding: 70px 20px;
    text-align: center;
    box-sizing: border-box;
}

.consultation h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #003366;
}

.consultation p {
    font-size: 18px;
    margin-bottom: 40px;
    color: #555;
}

.styled-form {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif;
}

.styled-form .form-group {
    margin-bottom: 15px;
    font-family: 'Manrope', sans-serif;
}

.styled-form input,
.styled-form textarea,
.styled-form select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.styled-form input:focus,
.styled-form textarea:focus,
.styled-form select:focus {
    border-color: #003366;
    box-shadow: 0 0 8px rgba(0, 51, 102, 0.2);
}

.styled-form input::placeholder,
.styled-form textarea::placeholder {
    color: #aaa;
}



/* Footer */
footer {
    background-color: #003366;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}



/* Стиль для каруселі відгуків */
/* Загальні стилі для секції відгуків */


.carousel-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    color: #ffcc00; /* Зміна кольору кнопки на ховер */
}



.review-author {
    font-weight: bold;
    margin-top: 10px;
    color: #333; /* Світлий колір для імені */
}

.review-text {
    font-size: 16px;
    color: #333; /* Світлий колір для тексту */
    font-style: italic;
}

/* Стилі для кнопки для форми */
.review-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #3b82f6; /* Світло-синій фон для форми */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-form label {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.review-form button {
    background-color: #0066cc;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
}

.review-form button:hover {
    background-color: #005bb5;
}

/* Стиль для кнопок зі стрілками */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

/* Зміна стилю кнопок при наведенні */
.carousel-btn:hover {
    color: #ff4081; /* Колір при наведенні */
}

/* Стиль для кнопки Назад (стрілка вліво) */
.prev-btn {
    left: 20px;
}

/* Стиль для кнопки Вперед (стрілка вправо) */
.next-btn {
    right: 20px;
}

/* Стиль для іконок Font Awesome */
.prev-btn i, .next-btn i {
    font-size: 35px; /* Розмір іконок */
    color: #333;
}

/* Зміна кольору іконок при наведенні */
.carousel-btn:hover i {
    color: #ff4081; /* Колір при наведенні */
}



/* Стиль для кнопки надсилання відгука */
.submit-btn {
    background-color: #007BFF;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Стиль для кнопки на ховер */
.submit-btn:active {
    background-color: #004085;
}
/* Основні стилі для форми */
.review-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

h3 {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

/* Стилі для лейблів */
.review-form label {
    font-size: 16px;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

/* Стилі для текстового поля і введення */
.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.review-form input[type="text"]:focus,
.review-form textarea:focus {
    border-color: #007BFF;
    outline: none;
}

/* Стиль для кнопки надсилання відгука */
.submit-btn {
    background-color: #007BFF;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* Стиль для кнопки на ховер */
.submit-btn:active {
    background-color: #004085;
}

/* Мобільна адаптація */
@media (max-width: 600px) {
    .review-form {
        padding: 20px;
    }

    h3 {
        font-size: 20px;
    }
}

/* Загальні стилі для секції відгуків */
.reviews {
    /*background-color: #1e3a8a; */
    background: url('../pic/H4.jpg') no-repeat center center/cover;
    color: white;
    padding: 40px 20px;
    font-family: 'Manrope', sans-serif;
}

.reviews h2 {
    text-align: center;
    font-size: 40px;
    color:  #FFD700  ;
    margin-bottom: 40px;
    font-family: 'Manrope', sans-serif;
}

.reviews-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
    max-width: 1600px;
    overflow: hidden; /* Сховуємо все, що виходить за межі */
}

.carousel-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2; /* Кнопки повинні бути поверх відгуків */
}

.carousel-btn:hover {
    color: #ffcc00; /* Зміна кольору кнопки на ховер */
}

.reviews-wrapper::-webkit-scrollbar {
    display: none; /* Для браузерів на базі WebKit */
}


.reviews-wrapper {
    display: flex;
    overflow: hidden; /* Ховаємо зайві елементи */
    width: 90%; /* Встановлюємо ширину контейнера */
    position: relative; /* Для точного розташування */
    scroll-behavior: smooth; /* Анімація прокрутки */
    transition: transform 0.3s ease-in-out; /* Додаємо плавний перехід для прокрутки */
    
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px; /* Відстань між елементами */
    scrollbar-width: none; /* Приховати скролбар */
}

.review-item {
    /*flex-shrink: 0;*/ 
    
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
    transition: transform 0.3s ease-in-out; /* Додаємо анімацію для плавності */
    flex: 0 0 calc(47% - 20px);
    margin-right: 20px;
    /*box-sizing: border-box;*/

}

/* Стилі для кнопки для форми */
.review-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #F5F5DC; /* Світло-синій фон для форми */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.review-form label {
    font-size: 16px;
    color: #fff;
    margin-bottom: 8px;
    display: block;
}

.review-form input[type="text"],
.review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.review-form button {
    background-color: #0066cc;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    width: 100%;
}

.review-form button:hover {
    background-color: #005bb5;
}

/* Для дуже маленьких екранів (телефони) */
@media (max-width: 480px) {
    .reviews-wrapper {
        gap: 5px;
    }

    .review-item {
        flex: 0 0 100%; /* Ширина блоку займає весь екран */
        margin-right: 5px;
    }
}
/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    
    .reviews-wrapper {
        gap: 10px; /* Зменшення відстані між елементами */
    }

    .review-item {
        flex: 0 0 calc(90% - 10px); /* Ширина блоку відгуку майже на весь екран */
        margin-right: 10px; /* Відстань між блоками */
    }
    
    .nav {
        display: none;  /* Скрыть навигацию для мобильных */
    }

    .hamburger-menu {
        display: flex;  /* Показать гамбургер */
    }
    .styled-form {
        padding: 15px;
    }
    .hero h1 {
        font-size: 36px;
    }
    
    .hero .subheading {
        font-size: 20px;
    }

    .hero .description {
        font-size: 16px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }
    

 .phone-numbers {
        display: none; 
        margin-top: 10px;
        text-align: center;
        width: 100%;
    }

    .phone-numbers a {
        
        display: block;
        margin-left: 0;
    } 
    
    .review-form {
        padding: 20px;
    }

    h3 {
        font-size: 20px;
    }
    
    
}


/* Загальний стиль */
.review-section {
    font-family: 'Arial', sans-serif;
    background-color: #f7faff;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #333;
}

/* Стиль чату */
.chat-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 400px;
    overflow-y: auto;
}

.messages {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Відгуки у вигляді повідомлень */
.message {
    background-color: #e8f0fe;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    margin-left: auto; /* Вирівнювання для правого боку */
}

.message .author {
    font-weight: bold;
    margin-bottom: 5px;
    color: #1a73e8;
    font-size: 14px;
}

.message.left {
    margin-left: 0;
    margin-right: auto; /* Вирівнювання для лівого боку */
    background-color: #d1ecf1;
}

/* Форма */
.chat-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.chat-form .form-group {
    flex: 1;
}

.chat-form input,
.chat-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    outline: none;
    font-size: 14px;
    resize: none;
}

.chat-form .send-btn {
    background-color: #FFD700;
    color: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-form .send-btn:hover {
    background-color: #155bb5;
}

.chat-form .send-btn i {
    font-size: 20px;
}

.disclaimer {
    margin-top: 15px;
    font-size: 12px !important; /* Примусовий розмір тексту */
    color: #555; /* Колір тексту */
    text-align: center; /* Вирівнювання по центру */
    line-height: 1.4; /* Висота рядка для читабельності */
}

.disclaimer a {
    color: #007bff; /* Колір посилання */
    text-decoration: none; /* Без підкреслення за замовчуванням */
    font-size: 12px; /* Розмір тексту посилання */
}

.disclaimer a:hover {
    text-decoration: underline; /* Підкреслення при наведенні */
}

/* Стиль контейнера з текстом */
.agreement {
    display: flex;
    align-items: flex-start;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
    gap: 10px;
}

/* Прихований стандартний чекбокс */
.agreement input[type="checkbox"] {
    display: none;
}

/* Кастомний чекбокс */
.agreement label {
    position: relative;
    cursor: pointer;
    padding-left: 25px;
}

.agreement label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Іконка галочки */
.agreement label::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 8px;
    background-color: #555;
    border-radius: 2px;
    transform: scale(0);
    transition: transform 0.2s ease;
}

/* Вибраний чекбокс */
.agreement input[type="checkbox"]:checked + label::after {
    transform: scale(1);
}

.agreement input[type="checkbox"]:checked + label::before {
    border-color: #555;
}

.modal {
        display: none;
        position: fixed;
        z-index: 1;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Черный фон с прозрачностью */
        padding-top: 60px;
    }

    .modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 400px;
        text-align: center;
    }

    .close-btn {
        color: #aaa;
        font-size: 28px;
        font-weight: bold;
        position: absolute;
        top: 10px;
        right: 20px;
    }

    .close-btn:hover,
    .close-btn:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }
    
/* Общие стили */
.certificates {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
}

.certificates h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.certificates-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.certificates-carousel {
    overflow: hidden;
    width: 100%;
}

.certificates-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.certificate {
    flex: 0 0 50%; /* На экране два сертификата по умолчанию */
    padding: 20px;
    box-sizing: border-box;
}

.certificate img {
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Кнопки карусели */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3); /* Полупрозрачный фон */
    color: white;
    border: none;
    font-size: 20px; /* Размер кнопок */
    padding: 12px 20px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px; /* Прямоугольные кнопки */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease; /* Плавное изменение фона и прозрачности */
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Более насыщенный фон при наведении */
}

.carousel-button:active {
    opacity: 0.7; /* Прозрачность при нажатии */
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}


.carousel-button i {
    font-size: 18px; /* Размер иконки стрелки уменьшен */
}

/* Эффекты для кнопок */
.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.5); /* Немного ярче при наведении */
}

/* При активном состоянии стрелки не двигаются, а просто затемняются */
.carousel-button:active {
    opacity: 0.7; /* Сделаем кнопки полупрозрачными при нажатии */
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .certificate {
        flex: 0 0 100%; /* На мобильных тоже показываем два сертификата */
    }

    .certificates-wrapper {
        display: flex;
    }

    .certificates h2 {
        font-size: 24px;
    }

    .carousel-button {
        font-size: 28px;
        padding: 16px;
    }
}

.consultation {
    background-image: url('../pic/f1.jpg'); /* Replace with your image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 0;
    color: white; /* Ensure text stands out against the background */
}

