body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Определение CSS-переменных */
:root {
  --primary-color: #007BFF;
  --primary-color-dark: #0056b3;
  --background-gradient: linear-gradient(135deg, #f7f7f7, #eaeaea);
  --card-bg: #fff;
  --text-color: #333;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header с фоновым изображением и позиционированием */
header.header-bg {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  background: url("../images/fon-top.jpg") no-repeat center center !important;
  background-size: cover !important;
  color: #fff;
  padding: 50px 0;
}
/* Контейнер внутри header */
.header-main {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.header-main img {
  position: relative;
  width: 200px;
  height: 120px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center; /* по желанию: можно убрать, если не нужно центрирование */
}
.social a {
  margin: 0 10px;
  color: #fff;
  transition: color 0.3s ease;
  margin: 0 5px;
}
.social a:hover .custom-telegram, a:hover .custom-instagram {
  color: red;
}
/* Иконки для Telegram и Instagram  30x30px */
.custom-telegram,
.custom-instagram {
  font-size: 40px;
  color: #fff;
  padding: 10px;
}


/* Стили переключателя языков */
.lang-switcher {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
}
.lang-switcher a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin: 0 5px;
  transition: color 0.3s ease;
  width: 100%;
  height: auto;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}
.lang-switcher a:hover {
  color: red;
}


/* Адаптивные стили для мобильных устройств (до 767px) */
@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
  header.header-bg {
    position: relative;
    display: block;
    width: 100%;
    height: 350px;
    background: url("../images/fon-top.jpg") no-repeat center center !important;
    background-size: cover !important;
    color: #fff;
    padding: 50px 0;
  }
  .header-main {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .header-main img {
    position: relative;
    width: 320px;
    height: 200px;
  }
  .lang-switcher a {
    color: #fff;
    font-size: 1rem;
    margin: 0 3px;
  }
  .lang-switcher a:hover {
    color: red;
  }
  .social a img {
    height: 40px !important;
  }
}


/* Карточки продукта */
.card {
  background: var(--card-bg);
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
.card-title {
  color: #222;
  margin-bottom: 15px;
  font-weight: 600;
}

/* Дополнительные фотографии в карточках */
.row img.rounded {
  border: 2px solid #fff;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.row img.rounded:hover {
  transform: scale(1.05);
}

/* Стили формы обратной связи */
.contact form .form-control {
  border-radius: 5px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: #000;
  margin-top: 40px;
  padding: 20px 0;
  color: #fff;
}


/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
  body {
    font-size: 18px;
  }
  .card-title {
    font-size: 2rem;
  }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  body {
    font-size: 16px;
  }
  .card-title {
    font-size: 1.75rem;
  }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .language-switch a, .lang-switcher a {
    margin: 0 5px;
    font-size: 1.1rem;
  }
  .social a img {
    height: 40px;
  }
  .card {
    margin-bottom: 15px;
  }
  .card-title {
    font-size: 1.3rem;
  }
  .contact form button {
    font-size: 14px;
    padding: 10px;
  }
}
