body {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
}

/* Для английской версии */
html[lang="en"] body {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 400;
  letter-spacing: normal;
}

body[lang="ru"],
body[lang="kz"] {
  font-family: "Manrope", sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

header {
  background-color: #000;
  border-bottom: 1px solid rgba(26, 86, 219, 0.2);
}

.nav {
  max-width: 60%;
  height: 80px;
  color: #fff;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 0 20px;
}

.nav_logo a {
  color: #fff;
  font-weight: 500;
  font-size: 24px;
}

.navbar_list {
  display: flex;
  justify-content: space-around;
}

.navbar_list a {
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.5s ease;
}

.navbar_list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  /* чуть ниже текста */
  width: 0%;
  height: 2px;
  background-color: rgba(26, 86, 219, 1);
  transition: width 0.3s ease;
}

.navbar_list a:hover {
  color: rgba(26, 86, 219, 1);
}

.navbar_list a:hover::after {
  width: 100%;
}

.navbar_item:not(:last-child) {
  margin-right: 50px;
}

/* Обёртка для language-selector — добавляем underline при ховере */
.language_select_wrapper {
  position: relative;
  display: inline-block;
}

.language_select_wrapper::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 2px;
  width: 0%;
  background-color: rgba(26, 86, 219, 1);
  transition: width 0.3s ease;
}

.language_select_wrapper:hover::after {
  width: 50%;
}

.lang-switcher select {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lang-switcher select:focus {
  outline: none;
  border-color: #1a56db;
}

/* Стили для самого select */
#language-selector {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  font-size: 16px;
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 20px;
}

/* Стили для выпадающих опций */
#language-selector option {
  color: #000;
  background-color: #fff;
}

/* При наведении на сам select (цвет текста меняется) */
#language-selector:hover {
  color: rgba(26, 86, 219, 1);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
}

.hamburger span {
  height: 2px;
  width: 25px;
  background-color: #fff;
  border-radius: 1px;
  transition: 0.3s ease;
}

/* Sidebar */
.mobile_sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: #000;
  color: white;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile_sidebar.active {
  right: 0;
}

.mobile_nav_list {
  list-style: none;
  padding: 0;
}

.mobile_nav_list li {
  margin-bottom: 20px;
}

.mobile_nav_list a,
#language-selector-mobile {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 18px;
  background: transparent;
  border: none;
  font-weight: 300;
}

.mobile_sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 150vh;
  background-color: #000;
  color: #fff;
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile_sidebar.active {
  right: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    max-width: 100%;
    padding: 0 16px;
    height: 60px;
  }

  .nav_logo a {
    font-size: 20px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger-menu {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 10px;
    /* даём немного пространства */
  }

  .nav_navbar {
    display: none;
  }
}

main {
  background-color: #000;
}

.main_inner {
  max-width: 60%;
  margin: auto;
  color: #fff;
  font-family: "Space Grotesk";
  padding-bottom: 80px;
}

.product {
  display: flex;
  justify-content: space-between;
  padding: 80px 0 80px 0;
  gap: 40px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product_info {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.prod_name {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product_title {
  font-weight: 600;
  font-size: 48px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, rgba(26, 86, 219, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  position: relative;
}

/* Fallback для браузеров без поддержки background-clip */
@supports not (-webkit-background-clip: text) {
  .product_title {
    color: #ffffff;
    background: none;
  }
}

.prod_tag {
  display: block;
  width: fit-content;
  font-weight: 400;
  font-size: 14px;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.2) 0%, rgba(26, 86, 219, 0.3) 100%);
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid rgba(26, 86, 219, 0.3);
  transition: all 0.3s ease;
}

.prod_tag:hover {
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.3) 0%, rgba(26, 86, 219, 0.4) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

.prod_descr {
  display: flex;
  flex-direction: column;
  gap: 35px;
  /* ← ровные отступы между блоками */
}

.prod {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.prod:hover {
  background-color: rgba(26, 86, 219, 0.05);
  border-color: rgba(26, 86, 219, 0.2);
  transform: translateX(5px);
}

.prod_title {
  font-weight: 500;
  font-size: 20px;
  color: rgba(26, 86, 219, 0.9);
  transition: color 0.3s ease;
}

.prod:hover .prod_title {
  color: rgba(26, 86, 219, 1);
}

.prod_text {
  font-weight: 400;
  font-size: 16px;
  color: #c8c8c8;
  line-height: 1.6;
  transition: color 0.3s ease;
}

.prod:hover .prod_text {
  color: #e0e0e0;
}

.prod_img {
  width: 55%;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(26, 86, 219, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prod_img:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 80px rgba(26, 86, 219, 0.25);
}

.prod_img img {
  transition: opacity 1s ease-in-out, transform 0.5s ease;
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.prod_img:hover img {
  transform: scale(1.02);
}

.gallery {
  display: flex;
  gap: 15px;
  max-width: 100%;
  flex-wrap: wrap;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(26, 86, 219, 0.2);
}

.gallery img {
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-radius: 12px;
  height: 421px;
  object-fit: cover;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: calc(33.333% - 10px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.gallery img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 86, 219, 0.1) 0%, rgba(26, 86, 219, 0.3) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.gallery img:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px rgba(26, 86, 219, 0.3);
  border-color: rgba(26, 86, 219, 0.5);
}

.gallery img:hover::after {
  opacity: 1;
}

/* Медиазапросы для планшетов (максимальная ширина 1024px) */
@media (max-width: 1024px) {
  .main_inner {
    max-width: 80%;
    /* Увеличиваем ширину блока для планшетов */
  }

  .product {
    flex-direction: column;
    /* Элементы располагаем вертикально */
    padding: 60px 0;
    /* Уменьшаем отступы */
  }

  .product_info {
    width: 100%;
    /* Пропорции блока с информацией становятся 100% */
  }

  .prod_img {
    width: 100%;
    /* Картинка занимает всю ширину */
    margin-top: 20px;
    /* Добавляем отступ сверху */
  }

  .prod_img img {
    width: 100%;
    /* Изображение растягивается на всю ширину */
    height: auto;
    /* Убираем фиксированную высоту */
  }

  .gallery {
    gap: 10px;
    /* Уменьшаем отступы между картинками */
    flex-wrap: wrap;
    /* Изображения переходят на новую строку */
  }

  .gallery img {
    width: calc(50% - 10px);
    /* Два изображения в строке */
    height: auto;
    /* Автоматическая высота */
  }
}

/* Медиазапросы для мобильных устройств (максимальная ширина 768px) */
@media (max-width: 768px) {
  .main_inner {
    max-width: 90%;
    /* Еще больше увеличиваем ширину блока */
  }

  .product {
    flex-direction: column;
    /* Элементы размещаем вертикально */
    padding: 40px 0;
    /* Уменьшаем отступы */
  }

  .prod_name {
    gap: 5px;
    /* Уменьшаем отступы между названием и тегом */
  }

  .product_title {
    font-size: 36px;
    /* Уменьшаем размер заголовка */
  }

  .prod_tag {
    font-size: 12px;
    /* Уменьшаем размер тега */
  }

  .prod_descr {
    gap: 20px;
    /* Уменьшаем отступы между блоками */
  }

  .prod_title {
    font-size: 18px;
    /* Уменьшаем размер подзаголовков */
  }

  .prod_text {
    font-size: 14px;
    /* Уменьшаем размер текста */
  }

  .prod_img {
    width: 100%;
    /* Картинка на всю ширину */
  }

  .prod_img img {
    width: 100%;
    /* Картинка растягивается на всю ширину */
    height: auto;
    /* Автоматическая высота */
  }

  .gallery img {
    width: calc(33.333% - 10px);
    /* Три картинки в строке */
  }
}

/* Медиазапросы для мобильных устройств (максимальная ширина 480px) */
@media (max-width: 480px) {
  .main_inner {
    max-width: 95%;
    /* Ширина блока почти на весь экран */
  }

  .product {
    flex-direction: column;
    /* Элементы размещаем вертикально */
    padding: 30px 0;
    /* Уменьшаем отступы */
  }

  .product_title {
    font-size: 28px;
    /* Уменьшаем размер заголовка */
  }

  .prod_tag {
    font-size: 10px;
    /* Уменьшаем размер тега */
    padding: 4px 8px;
    /* Уменьшаем отступы внутри тега */
  }

  .prod_descr {
    gap: 15px;
    /* Уменьшаем отступы между блоками */
  }

  .prod_title {
    font-size: 16px;
    /* Уменьшаем размер подзаголовков */
  }

  .prod_text {
    font-size: 12px;
    /* Уменьшаем размер текста */
  }

  .prod_img {
    width: 100%;
    /* Картинка на всю ширину */
  }

  .prod_img img {
    width: 100%;
    /* Картинка растягивается на всю ширину */
    height: auto;
    /* Автоматическая высота */
  }

  .gallery img {
    width: 100%;
    /* Все картинки занимают 100% ширины, по одной в строке */
  }
}

footer {
  background-color: #000;
  padding: 40px 20px 40px 20px;
  width: 100%;
}

.footer {
  margin: auto;
  max-width: 60%;
  align-items: center;
}

.footer_inner {
  display: flex;
  justify-content: space-around;
  margin-bottom: 30px;
}

.footer_contacts a {
  color: #fff;
  font-size: 16px;
  transition: 0.4s ease;
}

.footer_contacts a:not(:last-child) {
  margin-bottom: 10px;
}

.footer_contacts a:hover {
  color: rgba(26, 86, 219, 1);
}

.social_media {
  width: 16%;
  margin: auto;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  display: flex;
}

.social_media a {
  background-color: #1d1a33;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.social_media img {
  width: 100%;
  filter: invert(100%);
  padding: 26%;
}

.rights {
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  align-items: center;
}

@media (max-width: 1024px) {
  .footer {
    max-width: 80%;
  }

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

  .footer_contacts {
    margin-bottom: 20px;
  }

  .social_media {
    width: 50%;
    margin-bottom: 30px;
  }

  .social_media a {
    width: 50px;
    height: 50px;
  }

  .social_media img {
    padding: 25%;
  }

  .rights {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .footer {
    max-width: 100%;
    padding: 40px 20px;
  }

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

  .footer_contacts a {
    font-size: 14px;
  }

  .social_media {
    width: 60%;
    margin-bottom: 40px;
  }

  .social_media a {
    width: 45px;
    height: 45px;
  }

  .social_media img {
    padding: 30%;
  }

  .rights {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 20px 10px;
  }

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

  .footer_contacts a {
    font-size: 14px;
  }

  .social_media {
    width: 70%;
    margin-bottom: 20px;
  }

  .social_media a {
    width: 40px;
    height: 40px;
  }

  .social_media img {
    padding: 35%;
  }

  .rights {
    font-size: 12px;
  }
}

.language-change {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

/* Анимация смены языка */
[data-i18n],
[data-i18n-en],
.card_title,
.card_description {
  transition: opacity 0.3s ease, transform 0.3s ease;
}