
/* Стили вынесены отдельно для ясности */
.calculator-container {
  max-width: 768px;
  margin: 0 auto;
  font-family: 'Metropolis', sans-serif;
  background: white;
  border: 1px solid #1B2F40;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guests-header {
  border-bottom: 1px solid #1B2F40;
}

.guests-control {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 0 20px;
}

.guests-title {
  color: #1B2F40;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

.guests-buttons {
  display: flex;
  align-items: center;
}

.guest-btn {
  width: 50px;
  height: 50px;
  background: #E6530E;
  color: white;
  border: 1px solid #1B2F40;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.guest-btn:hover {
  background: #D04A0D;
}

.minus-btn {
  border-top: none;
  border-bottom: none;
}

.plus-btn {
  border-left: 1px solid #1B2F40;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.guests-input {
  width: 80px;
  height: 50px;
  text-align: center;
  margin: 0 8px;
  border: none;
  font-size: 20px;
  color: #222;
  background: transparent;
}

.dishes-list {
  margin-bottom: 30px;
}

.dish-item {
  display: flex;
  padding: 15px 20px;
  border-bottom: 1px solid #F5F5F5;
  align-items: center;
}

.dish-name {
  flex: 2;
  color: #222;
  font-size: 16px;
  font-weight: 400;
}

.dish-price {
  flex: 1;
  text-align: right;
  color: #222;
  font-size: 16px;
  font-weight: 400;
  margin-right: 60px;
}

.per-item {
  color: #999;
  margin-left: 4px;
}

.dish-total {
  width: 176px;
  text-align: right;
  font-size: 24px;
  color: #1B2F40;
  font-weight: 600;
}

.total-summary {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  background: #FAFAFA;
  border-top: 1px solid #1B2F40;
}

.total-label,
.total-amount {
  color: #1B2F40;
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Адаптивные стили остаются без изменений */
@media (max-width: 1200px) and (min-width: 640px) {
  .calculator-container { max-width: 620px; }
}

@media (max-width: 640px) and (min-width: 480px) {
  .calculator-container { max-width: 460px; }
  .guests-title, .dish-name, .dish-price, .dish-total, .total-label, .total-amount { font-size: 14px; }
  .guest-btn { width: 40px; height: 40px; }
  .guests-input { width: 60px; height: 40px; font-size: 16px; }
  .dish-total { width: 120px; }
}

@media (max-width: 480px) {
  .calculator-container { max-width: 300px; }
  .guests-title, .dish-name, .dish-price, .dish-total, .total-label, .total-amount { font-size: 14px; }
  .guests-control { flex-direction: column; padding: 10px; align-items: flex-start; }
  .guests-title { margin-bottom: 10px; text-align: left; width: 100%; }
  .guests-buttons { width: 100%; justify-content: flex-start; }
  .guest-btn { width: 35px; height: 35px; border: 1px solid #1B2F40 !important; }
  .minus-btn { border-right: 1px solid #1B2F40 !important; }
  .plus-btn { border-left: 1px solid #1B2F40 !important; }
  .guests-input { width: 50px; height: 35px; font-size: 14px; margin: 0 5px; }
  .dish-item { flex-direction: column; align-items: flex-start; padding: 10px; }
  .dish-price { margin: 5px 0; text-align: left; }
  .dish-total { width: 100%; text-align: left; margin-top: 5px; font-size: 18px; }
  .total-summary { flex-direction: column; align-items: flex-start; }
  .total-amount { margin-top: 5px; }
}


