/* Общие стили */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f7f3ee;
    color: #4d2e1c;
}


/* Бургер-иконка - по умолчанию скрыта */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.burger-line {
  width: 100%;
  height: 3.5px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s linear;
}

/* Крестик при активном бургер-меню */
.burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Установка позиции для шапки, чтобы меню позиционировалось относительно неё */
header {
  position: relative;
  background-color: #512200;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Мобильные стили */
@media (max-width: 800px) {

  .burger {
    display: flex;
  }

  /* меню скрыто по умолчанию */
  .nav-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 55px;
    left: 0;
    width: 100vw;
    background: #512200;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 8px 0 4px 0;
    gap: 6px 8px;
    z-index: 1000;
    list-style: none;
    margin: 0;
  }

  /* При активном состоянии меню появляются */
  .nav-links.active {
    display: flex;
  }

  /* Стили для пунктов меню */
  .nav-links li {
    flex: 1 1 43%;
    max-width: 112px;
    display: flex;
    justify-content: center;
    margin: 0 4px 6px 4px;
  }

  /* Ссылки как кнопки */
  .nav-button {
    display: block;
    width: 100%;
    min-width: 72px;
    font-size: 13px;
    padding: 6px 0;
    background: #8b4513;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-align: center;
    margin: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.09);
    transition: background 0.2s;
    cursor: pointer;
    text-decoration: none; /* Убираем подчеркивание */
  }

  .nav-button:hover,
  .nav-button:focus {
    background: #af4900;
    outline: none;
  }
}

/* Десктоп, чтобы меню было нормально горизонтальным и бургер был скрыт */
@media (min-width: 801px) {
  .burger {
    display: none;
  }
  .nav-links {
    display: flex !important;
    flex-wrap: nowrap;
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav-links li {
    flex: none;
    max-width: none;
    margin: 0;
  }
  .nav-button {
    font-size: 16px;
    padding: 10px;
    background: #512200;
    color: white;
    cursor: pointer;
  }
}




html {
    scroll-behavior: smooth; /* Плавный скроллинг */
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;  
    flex-wrap: wrap;
}

.header-container-product {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: -200px;
    margin: 0px 20px;
}
header {
    background-color: #512200;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

}

/* Стили для отображения меню */
.nav-links.active {
    display: flex;
}
.brand-photo {
    padding: 15px;
    width: 35px;
    border-radius: 50%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    padding: 0px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
}

.section {
    padding: 10px 5px;
    text-align: center;
}

.bname {
    text-align:end;
    margin-right: 500px;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    align:"center";
}

.about-photo {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


  

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}



.product-card {
    border: 1px solid #8b4513;
    padding: 10px;
    background: #fff6eb;
    text-align: center;
}


.product-card img {
    width: 120px;
    border-radius: 10px;
}

.product-card1 {
    border: 1px solid #8b4513;
    padding: 10px;
    background: #fff6eb;
    text-align: center;
}

.product-card1 img {
    width: 220px;
    border-radius: 10px;
}
/* Стили кнопок "Хочу купить" */
.buy-button {
    background-color: #8B4513; /* Шоколадный цвет */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавный переход */
    margin-top: 10px; /* Чтобы кнопка не прилипала к заголовку */
}

/* Анимация увеличения при наведении */
.buy-button:hover {
    transform: scale(1.1); /* Увеличение размера на 10% */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Добавление тени */
}

/* Список брендов */
.brand-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.brand-list li {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

/* Круглые логотипы */
.brand-logo1 {
    width: 40px; /* Задаем размер круга */
    height: 40px;
    border-radius: 50%; /* Делаем изображение круглым */
    margin-right: 10px; /* Отступ между изображением и текстом */
    object-fit: cover; /* Убедимся, что изображение вписывается в круг */
}

footer {
    background-color: #4d2e1c;
    color: white;
    padding: 20px;
    text-align: center;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden {
    display: none;
}

.modal-content {
    position: fixed;    
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #8b4513;
    font-size: 20px;
}


/* Стили для формы */
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    background-color: #8b4513;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

form button:hover {
    background-color: #a0522d;
}

/* Стили для дополнительной информации */
.contact-info {
    margin-top: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #4d2e1c;
}

.contact-info + p {
    margin: 5px 0;
}

.contact-info a {
    color: #8b4513;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Стили для кнопки закрытия */
.modal-content {
    position: relative; /* Обязательно для позиционирования крестика */
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #8b4513;
    font-size: 20px;
    font-weight: bold;
    background: none;
    border: none;
    outline: none;
}

.close-button:hover {
    color: #a0522d;
}

 /* Секция для видео */
 .videos-container {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap; /* Перенос строк для маленьких экранов */
    gap: 150px; /* Увеличенное расстояние между видео */
    justify-content: center; /* Центрирование блоков */
    align-items: center;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 10px;
    border: 2px solid #4d2e1c;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    max-width: 90%; /* Ограничение ширины на маленьких экранах */
}

.video-container:hover {
    transform: scale(1.05); /* Плавное увеличение */
}

.video-container iframe {
    width: 100%;
    max-width: 600px; /* Максимальная ширина видео */
    height: calc(400px * 9 / 16); /* Пропорция 16:9 */
    border-radius: 10px;
    border: none;
}

.video-title {
    margin-top: 1px;
    font-size: 18px;
    color: #4d2e1c; /* Темный шоколад */
    text-align: center;
}

/* Медиа-запрос для экранов шириной до 768px */
/* Адаптивность */
@media (max-width: 768px) {
    .video-container iframe {
        max-width: 100%;
        height: auto; /* Автоматическая высота для мобильных */
    }
}



/* Стили для отображения меню */
.nav-links.active {
    display: flex;
}


/* .nav-links {
    display: flex;
    gap: 10px; 
    list-style: none;
    padding: 0;
    margin: 0;
} */

.brand-logo-special {
    width: 20px;
    height: 25px;


}

.nav-button {
    display: inline-block;
    background-color: #512200; /* Цвет кнопки */
    color: white; /* Цвет текста */
    font-size: 16px;
    border: none;
    padding: 10px;
    border-radius: 5px; /* Можно убрать, если нужен чёткий квадрат */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-button a {
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    color: inherit; /* Наследуем цвет от кнопки */
}

.nav-button:hover {
    background-color: #5d3310; /* Цвет кнопки при наведении */
    transform: scale(1.05); /* Лёгкое увеличение */
}

.nav-button:active {
    background-color: #3e2008; /* Цвет кнопки при нажатии */
    transform: scale(0.95); /* Лёгкое уменьшение */
}

.details-button {
    background-color: #af4900; /* Шоколадный цвет */
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.details-button:hover {
    background-color: #6F3D1A; /* Более темный шоколадный */
    transform: scale(1.05);
}

/* Кнопка "Назад" */
.back-button {
    text-decoration: none;
    color: #fff;
    background-color: #512200;
    padding: 10px 15px;
    border-radius: 5px;
    display: inline-block;

    transition: background-color 0.3s ease;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;    
}

.back-button a {
    text-decoration: none; /* Убираем подчеркивание у ссылки */
    color: inherit; /* Наследуем цвет от кнопки */
}

.back-button:hover {
    background-color: #5d3310; /* Цвет кнопки при наведении */
    transform: scale(1.05); /* Лёгкое увеличение */
}

.back-button:active {
    background-color: #3e2008; /* Цвет кнопки при нажатии */
    transform: scale(0.95); /* Лёгкое уменьшение */
}

/* Детали продукта */
.product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
    margin: 40px;
}

.product-detail-photo {
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.product-description {
    max-width: 100%;
}

.product-description h2 {
    margin-bottom: 10px;
}

.product-description ul {
    margin-top: 10px;
    padding-left: 20px;
    list-style: square;
}

/* Логотип бренда */
.brand-logo img {
    justify-content: end;
    max-height: 60px; /* Размер логотипа */
    border-radius: 50%; /* Делает логотип круглым */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Анимация при наведении */
}

.header-content {
    display: flex;
    justify-content: space-between;
    gap: 15px; /* Расстояние между кнопкой и логотипом */
    align-items: center;
}


/* Галерея */
.photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Расстояние между карточками */
    margin: 20px 0;
    padding: 20px;
}

/* Общий стиль для фото и текста */
.photo-item {
    display: flex; /* Рядовое расположение */
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 20px; /* Расстояние между изображением и текстом */
    margin-bottom: 30px; /* Отступ снизу для каждого блока */
}

/* Фото */
.photo-item img {
    max-width: 35%; /* Фото занимает до 45% ширины строки */
    height: auto; /* Сохраняем пропорции */
    border-radius: 10px; /* Скругление углов */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
}

/* Описание фотографии */
.photo-description {
    max-width: 60%; /* Текст занимает до 50% строки */
    font-size: 16px; /* Размер текста */
    color: #333; /* Цвет текста */
    line-height: 1.6; /* Межстрочный интервал */
    text-align: justify; /* Выравнивание текста по ширине */
}

/* Анимация при наведении */
.photo-item img:hover {
    transform: scale(1.05);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}


/* Стили для секции main */
.product2 { 
    position: relative; /* Устанавливаем контекст для дочерних элементов */
    min-height: 100vh; /* Минимальная высота - вся высота экрана */
    background-image: url(car.jpg); /* Фоновое изображение */
    background-size: cover; /* Растягиваем изображение, чтобы покрыть весь блок */
    background-repeat: no-repeat; /* Не повторяем изображение */
    background-position: center; /* Центрируем изображение */
    padding: 20px; /* Отступы для текста */
    color: #333; /* Цвет текста */
    display: flex; /* Используем flex для выравнивания содержимого */
    align-items: center; /* Вертикальное выравнивание содержимого */
    justify-content: center; /* Горизонтальное выравнивание */

/* Контент внутри main */
.product-details2 {
    background: rgba(255, 255, 255, 0.8); /* Полупрозрачный фон для текста */
    border-radius: 10px; /* Скругление краёв */
    padding: 20px; /* Отступы внутри блока */
    max-width: 800px; /* Ограничиваем ширину текста */
    text-align: center; /* Выравнивание текста */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Лёгкая тень для красоты */
}





#brand-info {
    padding: 40px;
    background-color: #f9f7f4; /* Светлый оттенок для фона */
    border-radius: 15px; /* Скругленные углы */
    border: 2px solid #d3d3d3; /* Светлая рамка */
    margin: 30px auto; /* Отступы сверху и снизу */
    max-width: 800px; /* Ограничение ширины секции */
    text-align: center; /* Выравнивание текста */
}

#brand-info h1 {
    font-size: 2rem;
    color: #5a4032; /* Шоколадный цвет заголовка */
    margin-bottom: 15px; /* Отступ под заголовком */
}

#brand-info p {
    font-size: 1.2rem;
    line-height: 1.6; /* Удобочитаемость текста */
    color: #5a4032; /* Шоколадный цвет текста */
}


#careers {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.career-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.career-button {
    padding: 1rem 2rem;
    background-color: #6d4c41;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.career-button:hover {
    background-color: #4b2e25;
    transform: scale(1.05);
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.job-container {
    background-color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 5rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background-color: #6d4c41;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.back-button:hover {
    background-color: #4b2e25;
}