/* css/style.css */

/* Загальні стилі */
:root {
    /* --primary-color: #007bff; Основний синій */
    /* --secondary-color: #6c757d; Додатковий сірий */
    --accent-color: #28a745; /* Зелений для акцентів */
    /* --text-color: #343a40; Темний текст */
    --light-bg: #f8f9fa; /* Світлий фон секцій */
    --dark-bg: #212529; /* Темний фон футера/хедера */
    --white: #ffffff;
    --border-color: #dee2e6;
    --font-family: 'Roboto', sans-serif; /* Якщо використовуєте Google Fonts */
    --max-width: 1920px
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Єдине фонове зображення для всього сайту */
    background-image: url('../img/hero/hero-background.png'); /* **ВКАЖІТЬ ПРАВИЛЬНИЙ ШЛЯХ ДО ВАШОГО ЗОБРАЖЕННЯ ТУТ** */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Ефект паралаксу */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    overflow: hidden; /* Щоб уникнути виходу елементів за межі секції */
    position: relative; /* Важливо для позиціонування оверлеїв всередині секцій */
    z-index: 1; /* Забезпечує, що секція знаходиться "вище" фону body */
}

/* Стилі для накладки на фоні для всіх секцій, які її потребують */
/* Цей клас потрібно буде додати безпосередньо в HTML для кожної секції, яка має темний фон */
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Напівпрозорий чорний колір (можете налаштувати прозорість) */
    z-index: 0; /* Оверлей буде над фоном body, але під контентом секції */
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-color);
}

h1 {
    font-size: 3.2em;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 50px;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Header / Навігація */
#header {
    position: relative; /* Зробить хедер фіксованим */
    width: 100%;     /* Розтягне на всю ширину вікна */
    /*background-color: var(--dark-bg); /* Основний фон хедера, який буде затемнюватись */
    color: var(--white);
    padding: 20px 0; /* Або ваш оригінальний padding */
    /*top: 0;          /* Прикріпить його до верхнього краю вікна */
    /*left: 0;         /* Прикріпить його до лівого краю вікна */
    /*z-index: 1000;   /* Гарантує, що хедер буде над іншими елементами */
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* CSS для вмісту хедера, щоб він був над накладкою */
.header-content {
    position: relative; /* Необхідно для коректної роботи z-index */
    z-index: 1; /* Контент хедера буде поверх .section-overlay */
    /* Ваші існуючі стилі для .container (max-width, margin: 0 auto, padding: 0 20px)
       мають бути застосовані до .container.header-content */
}

.logo img {
    height: 100px; /* Налаштуйте розмір логотипу */
    width: auto;
}

#header nav ul {
    display: flex;
    gap: 30px;
}

#header nav ul li a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1.5em;
}

#header nav ul li a:hover {
    color: var(--primary-color);
}

/* Перемикач мов */
.language-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.language-switcher button {
    background: none;
    border: 1px solid var(--accent-color);
    padding: 5px 10px;
    cursor: pointer;
    font-weight: normal;
    color: var(--accent-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.language-switcher button.active {
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: bold;
}

.language-switcher button:hover:not(.active) {
    background-color: var(--light-bg);
}


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding-bottom: 50px;
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    /* background-color: #333; - ЦЕЙ КОЛІР БУДЕ В ОВЕРЛЕЇ */
}

/* background-overlay тепер замінено на section-overlay в HTML */
/* .hero-background тепер не потрібен, фон на body */
/* .hero-background img, .hero-background video тепер не потрібні */

.hero-container-layout {
    position: relative;
    z-index: 1; /* Збільшуємо z-index, щоб бути над .section-overlay */
    width: 100%;
    max-width: var(--max-width); /* Переконайтесь, що --max-width визначено в :root або замінить на конкретне значення */
    margin-top: auto;
    margin-bottom: 80px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    animation: fadeInScale 1s ease-out forwards;
    opacity: 0;
    transform: scale(0.9);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-logo,
.hero-title-center,
.hero-description-right {
    flex: 0 1 auto;
    max-width: 500px;
    text-align: center;
}

.hero-logo {
    flex: 0 0 auto;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-logo img {
    max-width: 150px;
    height: auto;
}

.hero-title-center {
    flex: 2 1 auto;
    text-align: center;
    padding: 10px;
}

.hero-title-center h1 {
    font-size: 3.5em;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-description-right {
    flex: 1 1 auto;
    text-align: left;
    padding: 10px;
}

.hero-description-right p {
    font-size: 1.3em;
    margin-bottom: 0;
}

/* --- Адаптивність Hero Section --- */
@media (max-width: 1024px) {
    .hero-container-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-logo,
    .hero-title-center,
    .hero-description-right {
        flex: none;
        width: 100%;
        text-align: center;
    }

    .hero-title-center h1 {
        font-size: 3em;
    }

    .hero-logo img {
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .hero-title-center h1 {
        font-size: 2.2em;
    }

    .hero-description-right p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .hero-title-center h1 {
        font-size: 1.8em;
    }

    .hero-description-right p {
        font-size: 0.9em;
    }
}

.directions-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    padding: 0 20px;
}

.direction-item {
    max-width: 500;
    flex: 1 1 300px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15); /* Напівпрозорий білий фон */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px); /* Ефект розмиття фону поза елементом
    border: 1px solid rgba(255, 255, 255, 0.3); /* Легка рамка */


}

.direction-item:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.direction-item img {
    height: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.direction-item h3 {
    font-size: 1.8em;
    color: var(--white);
    margin-bottom: 15px;
}

.direction-item p {
    font-size: 1.1em;
    color: var(--white);
    line-height: 1.6;
}

/* Адаптивність для менших екранів */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.2em;
    }

    .direction-item {
        flex: 1 1 100%;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }
}

/* Базові стилі для секції "Про нас" */
.about-section {
    padding: 80px 0;
    color: var(--white); /* Колір тексту на темному фоні */
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    /* background-color: #f9f9f9; - ЦЕЙ КОЛІР БУДЕ В ОВЕРЛЕЇ АБО НЕ ПОТРІБЕН З ФОНОМ BODY */
    position: relative;
    z-index: 1;
}

/* background-overlay тепер замінено на section-overlay в HTML */
/* .about-section .background-overlay тепер не потрібен */

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Змінено на 1, так як оверлей буде z-index:0 */
}

/* Стилі для блоку "Про компанію" */
.about-company-block {
    text-align: center;
    /* margin-bottom: 30px;
    padding-bottom: 30px; */
}

.about-company-block h2 {
    font-size: 3.2em;
    color: var(--white); /* Колір для заголовка */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.about-company-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color); /* Акцентний колір */
    border-radius: 2px;
}

.about-company-block p {
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0; /* Світліший колір для абзацу */
}

/* Стилі для фактів та цифр */
.facts-and-figures {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.fact-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15); /* Напівпрозорий білий фон */
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px); /* Ефект розмиття фону поза елементом */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Легка рамка */
}

.fact-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.fact-item h3 {
    font-size: 3em;
    color: var(--accent-color); /* Акцентний колір */
    margin-bottom: 5px;
    font-weight: 700;
}

.fact-item p {
    font-size: 1.1em;
    color: #f0f0f0;
    margin: 0;
}

/* Базові стилі для секції послуги */
.services-section {
    padding: 80px 0;
    color: var(--white);
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    position: relative;
    z-index: 1;
}

/* background-overlay тепер замінено на section-overlay в HTML */
/* .services-section .background-overlay тепер не потрібен */

.services-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Змінено на 1, так як оверлей буде z-index:0 */
}

/* Стилі для блоку послуг */
.services-list-block {
    margin-top: 60px;
    text-align: center;
}

.services-list-block h2 {
    font-size: 3.2em;
    color: var(--white);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.services-list-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Стилі для списку послуг - 3 колонки (ідеально для 6 елементів) */
.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки за замовчуванням */
    gap: 30px;
    justify-content: center;
}

@media (max-width: 992px) { /* На середніх екранах (наприклад, планшетах) */
    .services-list {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
}

@media (max-width: 768px) { /* На менших екранах (наприклад, мобільних) */
    .services-list {
        grid-template-columns: 1fr; /* 1 колонка */
    }
}


.service-list-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);

    text-align: center;
    background-color: rgba(255, 255, 255, 0.15); /* Напівпрозорий білий фон */
    padding: 25px 35px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px); /* Ефект розмиття фону поза елементом */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Легка рамка */


    
}

.service-list-item:hover {
    transform: translateY(-7px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-list-item img {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.service-list-item h3 {
    font-size: 1.5em;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-list-item p {
    font-size: 1em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0;
}

/* Секція "Наші Проєкти" */
.projects-section {
    padding: 80px 0;
    color: var(--white); /* Колір тексту на темному фоні */
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    position: relative;
    z-index: 1;
}

/* background-overlay тепер замінено на section-overlay в HTML */
/* .projects-section .background-overlay тепер не потрібен */

.projects-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Змінено на 1, так як оверлей буде z-index:0 */
    text-align: center;
}

.projects-section h2 {
    font-size: 3.2em;
    color: var(--white);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.projects-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Стилі для каруселі */
.project-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    overflow: hidden;
    padding: 0;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    font-size: 1.5em;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

/* Контейнер для треку слайдів */
.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 30%;
    min-width: 300px;
    box-sizing: border-box;
    padding: 30px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3); /* Легка рамка */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;    
}

.carousel-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
}

.carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-info h3 {
    font-size: 1.6em;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-info p {
    font-size: 0.95em;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 10px;
}

.project-info p span {
    font-weight: bold;
    color: var(--accent-color);
}

.project-info p:last-child {
    margin-bottom: 0;
}

/* Індикатори каруселі (точки) */
.carousel-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-color);
}


/* Медіа-запити для адаптивності секції "Про нас та Послуги" */
@media (max-width: 992px) {
    .about-company-block h2,
    .services-list-block h2 {
        font-size: 2.8em;
    }
    /* Видаляємо це правило, оскільки ми вже налаштували .services-list вище */
    /* .services-list {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    } */
}

@media (max-width: 768px) {
    .about-company-block h2,
    .services-list-block h2 {
        font-size: 2.2em;
    }
    .facts-and-figures {
        flex-direction: column;
        gap: 20px;
    }
    .fact-item {
        width: 90%;
        margin: 0 auto;
    }
    /* Видаляємо це правило, оскільки ми вже налаштували .services-list вище */
    /* .services-list {
        grid-template-columns: 1fr;
    } */
    .service-list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .service-list-item img {
        margin-bottom: 15px;
    }
    .about-company-block p {
        font-size: 1em;
    }
}

/* Медіа-запити для адаптивності секції "Наші Проєкти" */
@media (max-width: 1200px) {
    .project-carousel {
        max-width: 800px;
    }
    .carousel-slide {
        flex: 0 0 50%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .projects-section h2 {
        font-size: 2.5em;
    }
    .project-carousel {
        max-width: 100%;
        padding: 0 10px;
    }
    .carousel-slide {
        flex: 0 0 100%;
        margin: 0;
    }
    .carousel-button {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 1em;
    }
    .carousel-button.prev {
        left: 5px;
    }
    .carousel-button.next {
        right: 5px;
    }
    .carousel-slide img {
        height: 180px;
    }
    .project-info h3 {
        font-size: 1.4em;
    }
    .project-info p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .projects-section h2 {
        font-size: 2em;
    }
    .carousel-button {
        font-size: 1.5em;
    }
}

/* Базові стилі для секції "Про нас" */
.contact-section {
    padding: 80px 0;
    color: var(--white); /* Колір тексту на темному фоні */
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    /* background-color: #f9f9f9; - ЦЕЙ КОЛІР БУДЕ В ОВЕРЛЕЇ АБО НЕ ПОТРІБЕН З ФОНОМ BODY */
    position: relative;
    z-index: 1;
}

/* background-overlay тепер замінено на section-overlay в HTML */
/* .about-section .background-overlay тепер не потрібен */

.contact-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /* Змінено на 1, так як оверлей буде z-index:0 */
}

/* Стилі для блоку "Про компанію" */
.contact-company-block {
    text-align: center;
    /* margin-bottom: 30px;
    padding-bottom: 30px; */
}

.contact-company-block h2 {
    /* font-size: 3.2em; */
    color: var(--white); /* Колір для заголовка */
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.contact-company-block h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color); /* Акцентний колір */
    border-radius: 2px;
}

.contact-company-block p {
    font-size: 2.5em;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0; /* Світліший колір для абзацу */
}


/* Footer */
.footer-section {
    padding: 80px 0;
    color: var(--white); /* Колір тексту на темному фоні */
    /* ВИДАЛЕНО: background-image та пов'язані з ним властивості */
    /* background-color: #f9f9f9; - ЦЕЙ КОЛІР БУДЕ В ОВЕРЛЕЇ АБО НЕ ПОТРІБЕН З ФОНОМ BODY */
    position: relative;
    z-index: 1;
}

.footer-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1; /*Змінено на 1, так як оверлей буде z-index:0 */
}
.footer-overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

.footer-block {
    text-align: center; /* Додайте цей рядок для центрування тексту */
    /* Якщо у вас є інші стилі для .footer-block, залиште їх */
}

.footer-block p {    
    margin-bottom: 20px;
    /* max-width: 900px; */
    margin-left: auto;
    margin-right: auto;
    
    color: #e0e0e0; /* Світліший колір для абзацу */
}

/* Медіазапити для адаптивності */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8em;
    }
    h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
    .hero-content p {
        font-size: 1.3em;
    }
    #header nav ul {
        gap: 20px;
    }
    section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    #header .container {
        flex-direction: column;
        gap: 15px;
    }
    #header nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .language-switcher {
        margin-top: 10px;
    }
    .hero-section {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
    .services-grid, .advantages-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-and-form {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contact-info, .contact-form-wrapper {
        text-align: center;
    }
    .contact-info p, .contact-info address {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .project-carousel {
        padding: 0 10px;
    }
    .carousel-slide {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .hero-content .button {
        padding: 10px 20px;
        font-size: 1em;
    }
    .fact-item h3 {
        font-size: 2.5em;
    }
    .footer-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .carousel-button {
        padding: 10px 5px;
        font-size: 1.5em;
    }
    .carousel-button.prev { left: 5px; }
    .carousel-button.next { right: 5px; }
}