/* Общие стили */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', 'Open Sans', sans-serif;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  /* Размытие на 10 пикселей */
  -webkit-backdrop-filter: blur(8px);
  /* Для совместимости с некоторыми браузерами */
}


.header-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: 65px;
  object-fit: cover;
}

.logo-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.logo-subtitle {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 57px;
  margin-left: auto; /* навигация уходит вправо, лого и текст остаются слева */
}

.nav-item {
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: #f34c43;
}

.nav-item.phone {
  font-weight: 600;
  color: #d6d6d6;
}


.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0, 1s ease;
}

/* ===== Бургер ===== */
/* Бургер */
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: relative;
  z-index: 1001;
  cursor: pointer;
  display: block;
  width: 32px;
  height: 22px;
}

.burger::before,
.burger::after {
  content: '';
  left: 0;
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: #fff;
}
.burger::before {
  top: 0;
  box-shadow: 0 10px 0 #fff;
  transition: box-shadow .3s .15s, top .3s .15s, transform .3s;
}
.burger::after {
  bottom: 0;
  transition: bottom .3s .15s, transform .3s;
}
.burger-checkbox:checked + .burger::before {
  top: 9px;
  transform: rotate(45deg);
  box-shadow: 0 6px 0 rgba(0,0,0,0);
  transition: box-shadow .15s, top .3s, transform .3s .15s;
}
.burger-checkbox:checked + .burger::after {
  bottom: 9px;
  transform: rotate(-45deg);
  transition: bottom .3s, transform .3s .15s;
}

/* ===== Мобильное меню ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 100px 20px 40px;
  transition: left 0.3s ease;
  z-index: 1000;
}

.burger-checkbox:checked ~ .mobile-menu {
  left: 0;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu-list li {
  margin: 20px 0;
}

.mobile-menu-list a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.mobile-menu-footer {
  text-align: center;
  font-size: 14px;
  color: white;
  
}

.mobile-menu-footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  margin:10px;
}

/* Десктоп: бургер скрыт */
@media (min-width: 1025px) {
  .burger, .burger-checkbox, .menu-list {
    display: none;
  }
  .nav {
    display: flex;
  }
}



/* Адаптивность */
@media (max-width: 1024px) {
  .header-container {
    position: relative;
  }

  .nav {
    display: none;
  }
  .burger {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .burger-checkbox {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  
  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 8px;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .carousel-caption.custom-caption h1 {
    font-size: 32px;
  }

  .carousel-caption.custom-caption p {
    font-size: 16px;
  }

  .feature-title {
    font-size: 30px;
  }

  .feature-description {
    font-size: 14px;
  }

  .contacts-row {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }
  

  .mobile-menu-btn {
    display: flex;
  }

  .carousel-caption.custom-caption h1 {
    font-size: 28px;
  }

  .carousel-caption.custom-caption p {
    font-size: 14px;
  }

  .features {
    flex-direction: column;
    align-items: center;
  }

  .product-categories {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    flex-wrap: nowrap;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex-direction: column;
    height: auto;
  }

  .product-image-container {
    width: 100%;
    height: 200px;
  }

  .product-info {
    width: 100%;
  }

  .about {
    flex-direction: column;
    align-items: center;
  }

  .about-content,
  .about-downloads {
    text-align: center;
  }

  .about-more-btn {
    margin: 0 auto;
  }

  .contacts-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-item {
    align-items: center;
  }

  .partners-row:nth-child(1),
  .partners-row:nth-child(2) {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 8px;
  }

  .carousel-caption.custom-caption h1 {
    font-size: 24px;
  }

  .carousel-caption.custom-caption p{
    font-size: 13px;
  }

  .section-title {
    font-size: 20px;
  }

  .footer-logo {
    flex-direction: column;
    text-align: center;
  }

  .logo-text {
    text-align: center;
  }
}