/* Исправление стилей для мобильных карточек меню */

/* Десктопные стили для карточек (по умолчанию) */
.menu-item {
  height: 420px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(210, 105, 30, 0.08),
    0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(210, 105, 30, 0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
  position: relative;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(210, 105, 30, 0.02) 0%,
    rgba(244, 162, 97, 0.02) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.menu-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(210, 105, 30, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(210, 105, 30, 0.2);
}

.menu-item:hover::before {
  opacity: 1;
}

.menu-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-item img:hover {
  transform: scale(1.02);
}

.menu-item h3 {
  margin: 1.5rem 1.5rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.menu-item p:not(.item-price):not(.item-weight) {
  margin: 0 1.5rem 1rem;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  position: relative;
  z-index: 1;
}

.menu-item .item-price {
  margin: 0.5rem 1.5rem 0.3rem;
  font-weight: 700;
  font-size: 1.2rem;
  background: linear-gradient(135deg, #d2691e 0%, #e07b2b 50%, #f4a261 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.menu-item .item-weight {
  margin: 0 1.5rem 0.5rem;
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.menu-item .btn {
  margin: 0 1.5rem 1.5rem;
  width: calc(100% - 3rem);
  border-radius: 12px;
  font-size: 0.9rem;
  padding: 0.75rem 0;
  font-weight: 600;
  border: 2px solid #d2691e;
  background: transparent;
  color: #d2691e;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.3px;
  cursor: pointer;
}

.menu-item .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d2691e 0%, #e07b2b 100%);
  transition: left 0.3s ease;
  z-index: -1;
}

.menu-item .btn:hover::before {
  left: 0;
}

.menu-item .btn:hover {
  color: white;
  border-color: #d2691e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(210, 105, 30, 0.25);
}

.menu-item .btn:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* Мобильные стили для карточек-билетов */
@media (max-width: 768px) {
  .menu-item {
    height: auto !important;
    min-height: 120px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.08) !important;
    border: 1px solid rgba(210, 105, 30, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menu-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.15) !important;
  }

  .menu-item::before {
    display: none !important;
  }

  .menu-item img {
    width: 90px !important;
    height: 90px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    margin: 15px !important;
    border-radius: 6px !important;
  }

  .menu-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 15px 15px 15px 0 !important;
    min-height: 90px !important;
  }

  .menu-item h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
    background: none !important;
    -webkit-text-fill-color: #333 !important;
    text-shadow: none !important;
    display: block !important;
  }

  .menu-item p:not(.item-price):not(.item-weight) {
    display: none !important;
  }

  .menu-item-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: auto !important;
  }

  .menu-item .item-price {
    margin: 0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #d2691e !important;
    background: none !important;
    -webkit-text-fill-color: #d2691e !important;
    display: block !important;
  }

  .menu-item .item-weight {
    margin: 0 !important;
    font-size: 0.85rem !important;
    color: #999 !important;
    font-style: italic !important;
    display: block !important;
  }

  .menu-item .btn {
    margin: 8px 0 0 0 !important;
    width: auto !important;
    max-width: 160px !important;
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    min-height: 40px !important;
    background: transparent !important;
    color: #d2691e !important;
    border: 1.5px solid #d2691e !important;
    font-weight: 600 !important;
    display: inline-block !important;
  }

  .menu-item .btn:hover {
    background: #d2691e !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .menu-item .btn::before {
    display: none !important;
  }
}

/* Стили для телефонов */
@media (max-width: 480px) {
  .menu-item {
    height: auto !important;
    min-height: 110px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 4px rgba(210, 105, 30, 0.08) !important;
    border: 1px solid rgba(210, 105, 30, 0.1) !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .menu-item:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.15) !important;
  }

  .menu-item::before {
    display: none !important;
  }

  .menu-item img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    margin: 15px !important;
    border-radius: 4px !important;
  }

  .menu-item-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 15px 15px 15px 0 !important;
    min-height: 80px !important;
  }

  .menu-item h3 {
    margin: 0 0 6px 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.3 !important;
    letter-spacing: -0.2px !important;
    background: none !important;
    -webkit-text-fill-color: #333 !important;
    text-shadow: none !important;
    display: block !important;
  }

  .menu-item p:not(.item-price):not(.item-weight) {
    display: none !important;
  }

  .menu-item-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: auto !important;
  }

  .menu-item .item-price {
    margin: 0 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: #d2691e !important;
    background: none !important;
    -webkit-text-fill-color: #d2691e !important;
    display: block !important;
  }

  .menu-item .item-weight {
    margin: 0 !important;
    font-size: 0.8rem !important;
    color: #999 !important;
    font-style: italic !important;
    display: block !important;
  }

  .menu-item .btn {
    margin: 6px 0 0 0 !important;
    width: auto !important;
    max-width: 140px !important;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-transform: none !important;
    letter-spacing: 0.2px !important;
    min-height: 36px !important;
    background: transparent !important;
    color: #d2691e !important;
    border: 1.5px solid #d2691e !important;
    font-weight: 600 !important;
    display: inline-block !important;
  }

  .menu-item .btn:hover {
    background: #d2691e !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .menu-item .btn::before {
    display: none !important;
  }
}
