/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #f8f8f8;
  color: #333;
}

/* Контейнер для центрирования */
/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 90, 0, 1);
  padding: 15px 20px;
  width: 100%;
  top: 0;
  left: 0;
  transition: background 0.3s ease;
  z-index: 1000;
}
.header.scrolled {
  background: rgba(0, 90, 0, 1); /* Непрозрачный фон при скролле */
}
.language-selector {

  position: relative;
  display: inline-block;
  font-family: sans-serif;
}

.selected-lang {
  background: NONE;
  color: #f8f8f8;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 10px;
}

.language-options {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  list-style: none;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  display: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.language-options li {
  padding: 10px 20px;
}

.language-options li a {
  text-decoration: none;
  color: #333;
  display: block;
}

.language-options li:hover {
  background-color: #f0f0f0;
}

.language-selector.open .language-options {
  display: block;
}

/* Контейнер */
.container {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Лого */
.logo {
  width: 100px;
  height: auto;
}

/* Меню */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li {
  margin: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00;
}

/* Гамбургер-меню */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 15;
}

.menu-toggle span {
  width: 30px;
  height: 3px;
  background: white;
  transition: 0.3s;
}

/* Главный экран */
#hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("./assets/images/fon.jpg") no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}

#hero h1 {
  font-size: 48px;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#hero p {
  font-size: 20px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  background: #ffcc00;
  color: #333;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  margin-top: 20px;
}

.btn:hover {
  background: #e6b800;
  transform: scale(1.05);
}

/* Блок "О нас" */
#about {
  padding: 80px 0;
  text-align: center;
}

#about h2 {
  font-size: 36px;
  color: #2c3e50;
  margin: 40px;
}

#about p {
  max-width: 800px;
  margin: 0 auto; /* Центрируем текст */
  font-size: 18px;
  line-height: 1.6;
  margin-top: 20px;
  text-align: justify;
}

/* Блок "Продукция" */
#products {
  background: #fff;
  padding: 80px 0;
  text-align: center;
}

#products h2 {
  font-size: 36px;
  color: #2c3e50;
}

.product-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.product {
  background: #fff;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  margin: 15px;
  width: 280px;
}

.product img {
  width: 100%;
  border-radius: 10px;
}

.product h3 {
  font-size: 20px;
  margin: 10px 0;
  color: rgba(0, 90, 0, 1);
}

.product p {
  font-size: 16px;
  color: #666;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#contact h2 {
  font-size: 36px;
  color: #2c3e50;
}

form {
  max-width: 500px;
  margin: 20px auto;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

form textarea {
  resize: vertical;
  height: 120px;
}

button {
  display: inline-block;
  background: #ffcc00;
  color: #333;

  text-decoration: none;

  font-weight: bold;
  transition: all 0.3s;

  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
}
button,
.btn {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

button:hover {
  background: #e6b800;
  transform: scale(1.05);
}

/* Футер */
footer {
  background: rgba(0, 90, 0, 1);
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
}

#partners {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
}

#partners h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 30px;
}

.partners-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  width: max-content;
  animation: scrollSlider 100s linear infinite;
  gap: 20px;
}

.slide {
  flex: 0 0 auto;
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  height: 60px;
  max-width: 150px;
  object-fit: contain;
  filter: grayscale(40%);
  transition: filter 1s ease, transform 1s ease;
}

.slide img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

@keyframes scrollSlider {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Контактная секция – стиль */
#contact {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;

  padding: 80px 0;
  text-align: center;
  background: #f8f8f8;
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

/* Основной контейнер */
.contact-details {
  min-width: 300px;
  max-width: 500px;
  margin: 20px auto;
  padding: 50px;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.contact-details h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #2c3e50;
  text-align: center;
}

.contact-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.contact-block p {
  font-size: 16px;
  margin: 12px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-block .icon {
  font-size: 18px;
}

.contact-block a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-block a:hover {
  color: #1abc9c;
}

/* Правая часть: форма */
form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

form input,
form textarea {
  margin-bottom: 15px;
}

/* Кнопка */
button[type="submit"] {
  width: 60%;
  padding: 14px;
  background: #ffcc00;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: background 0.3s ease;
}

button[type="submit"]:hover {
  background: #e6b800;
}

#formMessage {
  margin-top: 20px;
  font-size: 16px;
  color: #2c3e50;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

#formMessage.show {
  opacity: 1;
  transform: translateY(0);
}

/* Карта */
.map {
  width: 100%;
  margin-top: 50px;
  border: 2px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .container:not(header .container) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-links {
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    background: rgba(0, 90, 0, 1);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 11;
  }

 .nav-links.active {
    transform: translateY(32%);
    width: 100%;
    background: white;
    display: flex;
    opacity: 1;
    pointer-events: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  
  .nav-links a {
  color: #333;
  }
  .menu-toggle {
    display: flex;
  }

  /* Анимация гамбургер-меню */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  #about {
    padding: 30px 0;
  }
  #products {
    padding: 30px 0;
  }

  #contact {
    padding: 30px 0;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .contact-details,
  form {
    width: 100%;
  }

  .contact-block p {
    flex-direction: row;
    align-items: flex-start;
    gap: 2px;
    font-size: 16px;
  }

  .contact-block strong {
    display: block;
    margin-bottom: 4px;
  }

  .contact-block a,
  .contact-block span {
    display: block;
    line-height: 1.4;
  }

  .contact-block p a,
  .contact-block p::after {
    max-width: 100%;
  }
  #partners {
    padding: 20px 10px;
  }
  #partners h2 {
    margin-bottom: 10px;
  }
	
	  .map {
    width: 100%;
    height: 100%;
  }
}
