/* Основные стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 60px; /* Уменьшаем лого */
    height: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    align-items: center;
    margin-top: 10px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.nav-links li {
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    font-size: 1rem;
    padding: 10px;
}

.nav-links li:nth-child(-n+3) {
    text-align: left;
}

.nav-links li:nth-child(n+4) {
    text-align: right;
}


/* Стили для бургер-меню */
/* Стили для бургер-меню */
.burger {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 100;
    color: rgb(0, 0, 0); /* Цвет иконки */
}

#close-icon {
    display: none; /* Изначально крестик скрыт */
}

/* Мобильная версия */
@media (max-width: 768px) {
    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100%;
        background-color: #bad6f6; /* Тёмный фон */
        color: white; /* Белый текст */
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.688);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease-in-out;
        display: flex;
    }

    .nav-links a {
        color: white; /* Белый цвет ссылок */
        font-size: 1.2rem;
        padding: 10px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .burger.active #burger-icon {
        display: none;
    }

    .burger.active #close-icon {
        display: block;
    }

    /* Отключаем прокрутку при открытом меню */
    body.no-scroll {
        overflow: hidden;
    }
}


/* Стили для секции "Наши услуги" */
.services {
    padding: 20px;
    background-color: #f8f8f8;
}

.service-list {
    display: flex;
    gap: 20px;
}

.service-item {
    padding: 20px;
    flex: 1;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Анимация для прокрутки до секции */
html {
    scroll-behavior: smooth;
}
.hero {
    display: flex;
    flex-direction: column; /* Выстраивает элементы по вертикали */
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    display: flex;
    flex-direction: column; /* Центрируем содержимое */
    align-items: center;
    text-align: center;
    max-width: 600px; /* Чтобы текст не растягивался на всю ширину */
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 20px;
    text-align: center;
}

.hero .btn {
    background-color: #ff6600;
    color: white;
    font-size: 1rem;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
    margin: 10px;
}

.hero .btn:hover {
    background-color: #cc5500;
}


.hero img {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        text-align: center;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }
}


.btn {
    background-color: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #c0392b;
}

.portfolio, .team, .contacts {
    padding: 40px 20px;
    text-align: center;
}

h2 {
    font-size: 28px;
    margin-bottom: 20px;
}
/* Общий стиль секции */
.services {
    padding: 40px 20px;
    text-align: center; /* Центрируем заголовок h2 */
}

/* Выравнивание для заголовков */
.services h2 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center; /* Исправляем, чтобы все h2 были по центру */
}

/* Контейнер для списка услуг */
.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 столбца на больших экранах */
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px; /* Ограничиваем ширину */
    margin-left: auto; /* Центрируем контейнер */
    margin-right: auto;
    padding: 0 10px; /* Добавляем внутренние отступы */
}

/* Стили для карточек услуг */
.service-item {
    display: flex;
    align-items: center; /* Центрируем текст и изображение по вертикали */
    justify-content: space-between;
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    text-align: left;
    gap: 15px;
    overflow: hidden; /* Убираем выходящий контент */
}

/* Заголовки внутри карточек */
.service-item h3 {
    font-size: 18px;
    flex: 1; /* Заголовок растягивается на всю доступную ширину */
    word-wrap: break-word; /* Разрешаем перенос слов */
}

/* Стили для изображений */
.service-item img {
    width: 100px; /* Квадратное изображение */
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* 📱 Адаптация для планшетов */
@media (max-width: 768px) {
    .service-list {
        grid-template-columns: 1fr; /* 1 колонка на мобильных */
    }

    .service-item {
        flex-direction: column; /* На мобильных элементы располагаются вертикально */
        align-items: center;
        text-align: center;
    }

    .service-item img {
        width: 80px; /* Уменьшаем фото на мобильных */
        height: 80px;
    }
}

/* 📱 Для мелких экранов */
@media (max-width: 480px) {
    .services {
        padding: 20px 20px; /* Сужаем отступы */
    }

    .service-item h3 {
        font-size: 16px; /* Уменьшаем текст */
    }
}

.contacts {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
    text-align: center;
}

.contactall {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

#contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

#contact-form textarea {
    min-height: 80px;
    resize: none;
}

.btn {
    background: #e74c3c;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background: #c0392b;
}

.contact-info {
    flex: 1;
    text-align: center;
    font-size: 18px;
}

.contact-info li{
    list-style: none;
    margin-top: 15px;
}


.contact-info li a{
    background-color: #e74c3c;
    color: white;
    padding: 10px;
    border-radius: 5px;
    
    list-style: none;
}
.contact-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    .contactall {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        text-align: center;
        margin-left: 16%;
    }
}



footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    text-align: center;
}

/* Медиазапросы для адаптивности */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .service-item, .portfolio-item, .team-member {
        width: 100%;
    }

    .services, .portfolio, .team, .contacts {
        padding: 20px;
    }

    footer {
        font-size: 14px;
    }
}


/* Анимация для появления элементов */
.service-item, .portfolio-item, .team-member {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Стили для галереи проектов */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 столбца для больших экранов */
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    align-items: center;

}



/* Мобильная версия, когда уменьшаем количество колонок */
@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 столбца на мобильных */
    }
}

@media (max-width: 480px) {
    .portfolio-gallery {
        grid-template-columns: 1fr; /* 1 столбец для маленьких экранов */
    }
}
/* Контейнер для проекта (с изображениями) */
.portfolio-item {
    text-align: center;
    position: relative;
    justify-content: center;
    
    align-items: center;
}

/* Делаем фото квадратными */
.portfolio-item img {
    width: 100%; /* Ширина на 100% родительского блока */
    height: 400px;
    object-fit: cover; /* Обрезаем изображение, чтобы оно оставалось в пределах блока */
    border-radius: 8px;
}

/* Для мобильных устройств (меньше 768px) */
@media (max-width: 768px) {
    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки для мобильных */
    }

    .portfolio-item img {
        height: 380px; /* Меньше фото для мобильных устройств */
    }
}

/* Для еще меньших экранов */
@media (max-width: 480px) {
    .portfolio-gallery {
        grid-template-columns: 1fr; /* 1 колонка на самых маленьких экранах */
    }

    .portfolio-item img {
        height: 300px; /* Еще меньше для мобильных устройств */
    }
}




/* Стили для секции "Наша команда" */
.team {
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.team h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.team-members {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.team-member {
    width: calc(25% - 20px);
    background-color: #fff;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 5%;
    max-width: 150px;
    margin-bottom: 15px;
    background-color: #cbcbcb;
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 1rem;
    color: #555;
}

@media (max-width: 480px) {
    .team-member {
        width: calc(100% - 20px);
        grid-template-columns: 1fr; /* 1 колонка на самых маленьких экранах */
    }

    .portfolio-item img {
        height: 300px; /* Еще меньше для мобильных устройств */
    }
}

@media (max-width: 768px) {
    .team-member {
        width: calc(100% - 20px);
        grid-template-columns: 1fr; /* 1 колонка на самых маленьких экранах */
    }

    .portfolio-item img {
        height: 300px; /* Еще меньше для мобильных устройств */
    }
}


/* Стили для секции "Вакансии" */
.vacancies {
    padding: 40px 20px;
    background-color: #e0e0e0;
}

.vacancies h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.vacancy-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.vacancy-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vacancy-item h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.vacancy-item p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.vacancy-item .btn {
    background-color: #1e90ff;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.vacancy-item .btn:hover {
    background-color: #007acc;
}
