/* ======== ОСНОВНОЙ СТИЛЬ ======== */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #ffe77a; /* жёлтый фон как на фото */
  color: #111;
}

/* ======== ШАПКА ======== */
header {
  text-align: center;
  background: #000;
  color: #fff;
  padding: 10px 0;
}

.lang-switch button {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  margin: 0 4px;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 4px;
}
.lang-switch button.active {
  background: #fff;
  color: #000;
}

/* ======== БАННЕР ======== */
.banner-line {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.banner-item img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ======== КАРТОЧКИ ======== */
.deals-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px auto;
  max-width: 1200px;
}
.deal-item {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  padding: 10px;
  text-align: center;
  width: 300px;
}
.deal-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 6px;
}
.buy-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 5px;
  margin-top: 10px;
  transition: 0.2s;
}
.buy-btn:hover {
  background: #d32f2f;
}

/* ======== КАТЕГОРИИ (ЧЁРНЫЕ КНОПКИ) ======== */
.categories {
  text-align: center;
  margin-top: 25px;
}
.category-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cat-btn {
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}
.cat-btn:hover {
  background: #d32f2f;
}

/* ======== ЛЕВАЯ ПАНЕЛЬ (ЦВЕТНЫЕ КНОПКИ) ======== */
.left-rail {
  position: absolute;
  top: 310px; /* выровнено по баннеру */
  left: 80px; /* немного ближе к карточкам */
  width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 720px; /* от баннера до низа карточек */
  gap: 12px;
}

.lr-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 14px 18px;
  text-decoration: none;
  color: #fff;
  border-radius: 12px;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: 0.3s;
}
.lr-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Цвета кнопок */
.lr-c1 { background: #f44336; }
.lr-c2 { background: #3f51b5; }
.lr-c3 { background: #4caf50; }
.lr-c4 { background: #ff9800; }
.lr-c5 { background: #9c27b0; }
.lr-c6 { background: #009688; }

/* ======== КОНТАКТЫ ======== */
.contact {
  text-align: center;
  margin: 40px 0 20px;
}
#visit-counter {
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  color: #333;
}

/* ======== АДАПТИВ ДЛЯ ТЕЛЕФОНА ======== */
@media (max-width: 768px) {
  .left-rail {
    order: -1;
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 10px auto 15px;
    width: 100%;
  }
  .lr-btn {
    width: 85%;
    max-width: 280px;
    font-size: 16px;
    padding: 12px 0;
    border-radius: 10px;
    text-align: center;
  }
}
/* ==== Исправление: кнопки не перекрывают карточки на мобильных ==== */
@media (max-width: 768px) {
  .left-rail {
    position: relative !important;
    z-index: 1;
  }

  .deals-row, 
  .deal-item {
    position: relative;
    z-index: 2;
  }
}

