* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Source Sans 3',sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header__top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #888888;
}

.header__contact {
    display: flex;
    flex-direction:column ;
    text-align: end;
}

.header__contacts {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.header__caption {
    font-size: 14px;
    line-height: 16.8px;
    color: #333333;
}

.header__link {
    color: #607CE6;
    font-weight: 600;
    font-size: 20px;
    line-height: 28.48px;
    text-decoration: none;
}

.header__link.mail {
text-decoration: underline;
}

.header__list--item {
    list-style: none;
    
}

.header__list {
    display: flex;
    flex-direction: row;
    gap: 44px;
    padding: 0;
}

.header__list--item--link {
    text-decoration: none;
    color: #333333;
    line-height: 19.2px;
    font-size: 16px;
    font-weight: 400;
}

.header__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.header__button {
    color: #607CE6;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    display: inline-flex;
    align-items: center;
}

.phone__logo {
    padding-right: 5px;
}

h1 {
    font-size: 60px;
    color: #333333;
    font-weight: 700;
    line-height: 72px;
    margin: 0;
}

h2 {
    font-size: 48px;
    color: #333333;
    font-weight: 700;
    line-height: 57.6px;
}

h3 {
    font-weight: 600;
    font-size: 28px;
    line-height: 33.6px;
    color: #333333;
}
p {
    font-size: 16px;
    font-weight: 400;
    line-height: 19.2px;
    color: #333333;
    margin: 0;
    margin-top: 20px;
}

.section1 {
    padding-bottom: 25px;
}

.section1--text {
    display: flex;
    flex-direction: row;
    padding-top: 60px;
    padding-bottom: 30px;
    gap: 100px;
}

.section2 {
    padding-bottom: 80px;
}

.company--image {
    max-width: 580px;
    max-height: 280px;
}

.about--text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding-bottom: 30px;
}

.about--image {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.company--image {
    gap: 20px;
}

.section3 {
    padding-bottom: 80px;
} 

.product--list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 20px;
}

.product--card {
    width: 380px;
    height: 435px;
    background-color: #F5F5F5;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start; 
    box-sizing: border-box; 
}

.product--card--image {
    max-width: 200px;
    margin-top: 32px;
    margin-left: 24px;
    height: auto; /* Сохраняем пропорции изображения */

}

.product--card--title {
    margin-left: 24px;
    margin-top: auto;
}

.product--card--button {
    margin-left: 24px;
    color: #607CE6;
    line-height: 24px;
    font-weight: 400;
    font-size: 20px;
    text-decoration: none;
    margin-bottom: 30px;    
}

.arrow {
    padding-left: 5px;
}

.section4 {
    padding-bottom: 80px;
}

/* Стили для слайдера */
/* Стили для слайдера */
.section-slider {
    width: 100%;
    padding: 0;
    background: #f9f9f9;
    box-sizing: border-box;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Слайдер будет растягиваться на всю ширину контейнера */
    margin: 0 auto;
    overflow: hidden;
}

.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.slider-card {
    flex: 0 0 33.33%; /* Показываем 3 карточки одновременно */
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.card-image {
    width: 100%; /* Изображения теперь будут адаптироваться под ширину карточки */
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card-description {
    font-size: 16px;
    color: #333;
    margin-top: 10px;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #607ce6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}

.slider-button.prev {
    left: 10px;
}

.slider-button.next {
    right: 10px;
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .slider-card {
        flex: 0 0 100%; /* Показываем 1 карточку на мобильных */
    }
}

.card__news {
    max-width: 380px;
}

.image__card {
    max-width: 380px;
}

.section5 {
    padding-bottom: 80px;
}




.row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.card__news {
    
    height: 568px;
    background-color: #F5F5F5;
}

.section5 {
    padding-bottom: 80px;
  }
  
.card {
    max-width: 380px;
    background-color: #F5F5F5;
}

.card__image {
    max-width: 380px;
}

.row--items {
    display: flex;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 25px;
    padding-top: 80px;
}

.card__p {
    padding-inline: 15px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer {
    background-color: #333333;
}

.footer__col {
    padding-top: 50px;
    padding-bottom: 50px;

}

.content {
    display: flex;
    justify-content: space-between;
}

.footer__list {
    list-style: none;
    
}

.item__link {
    color: #FFFFFF;
    text-decoration: none;
    line-height: 19.2px;
    
}

.all--list {
    display: flex;
    flex-direction: row;
    
}

.list__item {
padding-bottom: 20px;
}

.footer--text{
    color: white;
    margin: 0;
    padding: 0;
}

.footer--hz {
    display: flex;
    justify-content: center;
    padding-bottom: 25px;
}

.button--link {
    text-decoration: none;
    color: #607CE6;
}

.date {
    color: #888888;
    font-size: 16px;
    line-height: 22.4px;
}

@media (max-width: 768px) {
    .header__contacts {
        display: none;
    }

    .header__bottom {
        display: none;
    }

    h1 {
        font-size: 40px;
        line-height: 42px;
    }

    .section1--text {
    display: flex;
    padding: 0px; /* Убирает внутренние отступы */
    flex-direction: column;
    padding-top: 20px; /* Убирает внутренние отступы */
    gap: 0; /* Убирает отступы между flex-элементами */
    line-height: 28px;
    }

    .section1--image {
        display: flex;
        flex-direction: column;
    }

    
    h2 {
        font-size: 36px;
    }

    .about--text {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
    }

    .about--image {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .about--text,
    .about--image {
        width: 100%; /* Устанавливаем ширину 100% для обеих секций */
        margin: 0 auto; /* Центрируем их, если есть фиксированные размеры */
    }

    .about--image img {
        width: 100%; /* Изображения масштабируются по ширине родителя */
        height: auto; /* Сохраняются пропорции изображения */
    }

    .product--list {
        grid-template-columns: repeat(1, 1fr);
    }

    .image--container {
        display: flex;
        flex-direction: column;
    }

    .cards {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
    }

    .footer__col.spisok {
        display: grid;
       
    }
    .all--list {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Две колонки на телефоне */
        gap: 20px; /* Расстояние между колонками */
    }

    .content {
        display: flex;
        flex-direction: column; /* Переводим элементы в вертикальный порядок */
    }

    .footer__col.logo {
        order: -1; /* Ставим лого выше остальных элементов */
    }

    .container {
        max-width: 386px;
    }

    .section2 {
        padding-bottom: 20px;
    }

    .h2--sec2 {
        margin-bottom: 0;
    }

    .h2--sec3 {
        margin-bottom: 10px;
    }

    .under {
        padding-bottom: 15px;
    }
}

@media(min-width: 769px) {
    .burger {
        display: none;
    }
}

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; /* Размер кнопки */
    height: 40px; /* Размер кнопки */
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.burger__line {
    width: 30px; /* Длина полосок */
    height: 3px; /* Толщина полосок */
    background-color: #333; /* Цвет полосок */
    border-radius: 2px;
    transition: all 0.3s ease; /* Анимация для смены состояния */
    position: relative;
}

/* Расположение полосок */
.burger__line:nth-child(1) {
    transform: translateY(-1px); /* Верхняя полоска */
}

.burger__line:nth-child(3) {
    transform: translateY(1px); /* Нижняя полоска */
}

/* Состояние "открыто" */
.burger[data-burger-open="true"] .burger__line:nth-child(1) {
    transform: rotate(45deg); /* Верхняя полоска вращается */
    translate: 0;
}

.burger[data-burger-open="true"] .burger__line:nth-child(2) {
    opacity: 0; /* Средняя полоска исчезает */
}

.burger[data-burger-open="true"] .burger__line:nth-child(3) {
    transform: rotate(-45deg); /* Нижняя полоска вращается */
    translate: 0;
}

/* Стили для бургер-меню */
.burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10; /* Бургер выше, чем меню */
}

.burger__line {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -66.6%; /* Меню изначально скрыто слева */
    width: 66.6%; /* Ширина меню (2/3 экрана) */
    height: 100vh; /* Высота на всю страницу */
    background-color: rgba(0, 0, 0, 0.8); /* Полупрозрачный фон */
    z-index: 20; /* Меню выше основной страницы */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap:  100px;
    align-items: center;
    transition: left 0.3s ease; /* Анимация появления меню */
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

.side-menu ul li {
    margin: 20px 0;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

/* Когда меню открыто */
.side-menu.open {
    left: 0; /* Меню появляется */
}

/* Блокировка основного контента */
.body-lock {
    overflow: hidden; /* Блокирует прокрутку страницы */
}

@media (max-width: 768px) {
    .side-menu {
    position: fixed;
    top: 0;
    left: -66.6%; /* Меню изначально скрыто слева */
    width: 66.6%; /* Ширина меню (2/3 экрана) */
    height: 100vh; /* Высота на всю страницу */
    background-color: rgba(255, 255, 255, 1); /* Белый фон */
    z-index: 20; /* Меню выше основной страницы */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределить контент сверху и снизу */
    padding: 30px 20px; /* Внутренние отступы */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Тень для эффекта */
    transition: left 0.3s ease; /* Анимация появления меню */
}

.side-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left; /* Текст выравнен по левому краю */
}

.side-menu ul li {
    margin-bottom: 15px; /* Отступ между пунктами */
}

.side-menu ul li a {
    color: #333; /* Цвет текста */
    text-decoration: none;
    font-size: 16px; /* Размер текста */
    font-weight: 500;
}

.header__button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    width: 100%;
}

.header__button img {
    margin-right: 10px; /* Отступ для иконки */
    height: 16px;
}

.contacts--burger {
    border-top: 1px dashed #ccc; /* Разделитель */
    padding-top: 20px;
    width: 100%;
}

.header__contact {
    margin-bottom: 15px;
}

.header__caption {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.header__link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.header__link.mail {
    color: #0056b3; /* Синий для email */
}

.side-menu.open {
    left: 0; /* Меню появляется */
}

.body-lock {
    overflow: hidden; /* Блокирует прокрутку страницы */
}

}

@media (min-width: 789px) {
    .burger {
        display: none;
    }
}

