/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  background-color: #f5f5f5;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Навигация */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav .menu-toggle {
  display: none;
  font-size: 1.5em;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  font-weight: 500;
  font-size: 18px;
  padding: 8px 12px;
  transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #ffcc00;
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    text-align: center;
  }

  nav .menu-toggle {
    display: block;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    display: none;
    align-items: center;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
  }
}

/* Хедер */
header {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding-top: 60px;
}

.video-container,
.logo-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.video-container {
  filter: blur(15px);
  transition: filter 0.5s ease-in-out;
}

.logo-image {
  filter: blur(5px);
  transform: scale(1.05);
  z-index: -2;
}

.header-content {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(15px);
  background: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 15px;
}

.header-content h1,
.logo-caption {
  font-size: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  color: #fff;
  user-select: none;
}

@media (max-width: 768px) {
  .header-content h1,
  .logo-caption {
    font-size: 30px;
  }
}

/* Основной контент */
main {
  margin: 0;
}

section {
  margin: 10% 0;
  padding: 60px 10%;
  text-align: center;
}

#info h2 {
  margin-bottom: 20px;
}

#info p {
  text-align: justify;
}

/* Инфо блоки */
.info-intro,
.info-end,
.info-columns {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.info-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  text-align: left;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 1200px;
  width: 100%;
}

@media (max-width: 768px) {
  .info-columns {
    text-align: center;
  }
}

.info-columns h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
}

.info-columns ul {
  list-style: none;
  padding: 0;
}

.info-columns li {
  margin-bottom: 5px;
}

/* Продукция */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: center;
  margin-top: 40px;
}

.product {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}

.product:hover {
  transform: scale(1.1);
}

.product img {
  width: 100%;
  border-radius: 10px;
}

/* Почему выбирают нас */
#why-us {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
}

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

.why-list {
  list-style: none;
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
  padding-left: 0;
}

.why-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  line-height: 1.5;
}

.why-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

/* Контакты */
#contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.contact-info,
.contact-address {
  flex: 1 1 300px;
}

.contact-info p,
.contact-address address {
  margin: 0.5rem 0;
}

@media (max-width: 768px) {
  #contacts {
    flex-direction: column;
  }
}

/* Футер */
footer {
  text-align: center;
  padding: 20px;
  background: #222;
  color: #fff;
}

/* Карусель */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.carousel-track {
  display: flex;
  width: 400%;
  height: 100%;
  animation: scroll-carousel 120s linear infinite;
}

.carousel-track img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  flex-shrink: 0;
  filter: blur(10px);
  transform: scale(1.1);
}

.blur-top,
.blur-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10vh;
  pointer-events: none;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.blur-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.blur-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  padding: 20px;
  border-radius: 20px;
}

.carousel-caption h1 {
  font-size: 36px;
  font-weight: bold;
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .carousel-caption h1 {
    font-size: 24px;
  }
}

[id] {
  scroll-margin-top: 200px;
}
