/* Підключення шрифту */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

/* Скидання стилів */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Навігація */
.navbar {
    position: fixed;
    width: 100%;
    background-color: #fff;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    font-size: 1.5em;
    font-weight: 600;
    color: #0072bc;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    z-index: 1000; /* Додано цей рядок */
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #0072bc;
}

/* Бургер-меню для мобільних */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Додано цей рядок */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px;
    transition: all 0.3s;
}

/* Анімація бургер-меню */
.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .line2 {
    opacity: 0;
}

.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Хедер */
header {
    height: 100vh;
    background: linear-gradient(135deg, #0072bc 0%, #00a3e0 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
}

.header-content {
    max-width: 700px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 0.5em;
    animation: fadeInDown 1s;
}

header h2 {
    font-size: 1.5em;
    font-weight: normal;
    margin-bottom: 1em;
    animation: fadeInUp 1s;
}

header .button {
    padding: 15px 30px;
    background-color: #fff;
    color: #0072bc;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    transition: background-color 0.3s;
    animation: fadeInUp 1.5s;
}

header .button:hover {
    background-color: #e0e0e0;
}

/* Анімації */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Анімація для посилань у меню */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav-links li a {
    animation: navLinkFade 0.5s ease forwards;
}

/* Секції */
section {
    padding: 80px 0;
}

section h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #0072bc;
    text-align: center;
}

section p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Секція "Про нас" */
.counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 40px;
}

.counter {
    text-align: center;
    margin: 20px;
}

.counter .count {
    font-size: 3em;
    color: #0072bc;
}

.counter p {
    font-size: 1.2em;
    color: #555;
}

/* Секція "Послуги" */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.service {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    transition: transform 0.3s;
}

.service i {
    font-size: 3em;
    color: #0072bc;
    margin-bottom: 20px;
}

.service h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service p {
    font-size: 1em;
    color: #555;
}

.service:hover {
    transform: translateY(-10px);
}

/* Секція "Переваги" */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.advantage {
    text-align: center;
}

.advantage i {
    font-size: 3em;
    color: #0072bc;
    margin-bottom: 20px;
}

.advantage h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.advantage p {
    font-size: 1em;
    color: #555;
}

/* Секція "Відгуки клієнтів" */
.testimonials-slider {
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    display: none;
    padding: 20px;
    text-align: center;
}

.testimonial.active {
    display: block;
}

.testimonial p {
    font-size: 1.2em;
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial cite {
    font-size: 1em;
    color: #0072bc;
}

/* Секція "Заклик до дії" */
#cta {
    background-color: #0072bc;
    color: #fff;
    text-align: center;
    padding: 80px 20px;
}

#cta h3,
#cta p {
    color: #fff;
}

#cta .button {
    background-color: #fff;
    color: #0072bc;
}

#cta .button:hover {
    background-color: #e0e0e0;
}

/* Кнопка "Назад до початку" */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0072bc;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 15px;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
    z-index: 100;
}

#back-to-top:hover {
    background-color: #005fa3;
}

/* Футер */
footer {
    background-color: #333;
    color: #fff;
}

footer #contact {
    padding-bottom: 40px;
}

footer h3 {
    color: #fff;
}


/* Специфічні стилі для футера */
footer .contact-info a {
    color: #fff; /* Білий колір тексту для темного фону */
}

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

footer .contact-info i {
    color: #fff; /* Іконки теж білого кольору у футері */
}



/* Загальні стилі для .contact-info */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-info li {
    margin-bottom: 10px;
}

.contact-info a {
    color: #0072bc; /* Використовуємо темно-синій колір для контрасту на світлому фоні */
    text-decoration: none;
    font-size: 1.2em;
}

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

.contact-info i {
    color: inherit; /* Іконки успадковують колір від батьківського елемента */
    margin-right: 5px; /* Додаємо відступ між іконкою та текстом */
}


#contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-top: 15px;
}

#contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
}

#contact-form button {
    margin-top: 20px;
    padding: 15px;
    background-color: #00a3e0;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-form button:hover {
    background-color: #0072bc;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.footer-bottom nav li {
    margin: 0 15px;
}

.footer-bottom nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

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

/* Мобільна адаптація */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 1000; /* Забезпечує, що навігація буде під бургер-меню */

    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }

    .nav-links.nav-active li {
        opacity: 1;
    }

    .nav-links li {
        list-style: none;
        transition: opacity 0.5s ease-in;
    }

    .nav-links li a {
        font-size: 1.5em;
        color: #333;
    }

    .burger {
        display: block;
    }

    .counters {
        flex-direction: column;
        align-items: center;
    }

    .services-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
}
