.main {
  display: flex;
  justify-content: center;
}

.info-price {
  display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin-left: 200px;
}

.info-price > p {
  margin-top: 2%;
  color: #2A2A2A;
}


.discount {
  font-size: 11px;
}

@media (max-width: 850px) {
  .info-price {
    display: flex;
  flex-direction: column;
  max-width: 1000px;
  margin-left: 10px;
   
  }
}

/* ==========================================================================
   ОСНОВНЫЕ НАСТРОЙКИ КОНТЕЙНЕРА
   ========================================================================== */

.calc-container {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.calc-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #2c3e50;
}

/* Сетка: услуги слева, корзина справа */
.calc-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap; /* Позволяет блокам переноситься на мобилках */
}

/* ==========================================================================
   ЛЕВАЯ ПАНЕЛЬ: СПИСОК УСЛУГ
   ========================================================================== */

.calc-services {
  flex: 2;
  min-width: 320px;
}

h3 {
  font-size: 1.2rem;
  color: #444;
  border-left: 4px solid #24A1DE;
  padding-left: 15px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Стили кнопок выбора */
.calc-btn {
  flex: 1;
  text-align: left;
  padding: 14px 18px;
  border: 2px solid #edf2f7;
  background: #ffffff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.2s ease;
}

.calc-btn:hover {
  border-color: #cbd5e0;
  background: #f8fafc;
}

.calc-btn.active {
  border-color: #24A1DE;
  background: #f0f9ff;
  color: #24A1DE;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(36, 161, 222, 0.15);
}

/* Управление количеством (+/-) */
.qty-controls {
  display: none; /* Появляется только при активной кнопке */
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px;
}

.service-row:has(.calc-btn.active) .qty-controls {
  display: flex;
}

.qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  color: #24A1DE;
  font-size: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn:hover {
  background: #24A1DE;
  color: #fff;
}

.qty-input {
  width: 40px;
  border: none;
  text-align: center;
  background: transparent;
  font-weight: bold;
  font-size: 16px;
  outline: none;
}

/* ==========================================================================
   ПРАВАЯ ПАНЕЛЬ: ФОРМА И ИТОГИ
   ========================================================================== */

.calc-sidebar {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky; /* Панель "едет" за пользователем при скролле */
  top: 20px;
}

/* Поля ввода СДЭК */
.sdek-form {
  background: #ffffff;
  padding: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdek-form h4 {
  margin: 0 0 5px 0;
  color: #2d3748;
}

.sdek-form input {
  padding: 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.sdek-form input:focus {
  border-color: #24A1DE;
  outline: none;
}

/* Карточка результата */
.calc-result-card {
  background: #f8fafc;
  padding: 25px;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
}

.selected-list {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 20px;
  line-height: 1.6;
}

.total-price {
  font-size: 26px;
  font-weight: 800;
  color: #24A1DE;
  margin-bottom: 5px;
}

.delivery-notice {
  color: #e53e3e; /* Красный цвет для доставки */
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Главная кнопка заказа */
.order-btn {
  width: 100%;
  padding: 18px;
  background: #24A1DE;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.order-btn:hover:not(:disabled) {
  background: #1c82b3;
  transform: translateY(-2px);
}

.order-btn:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
}

/* Блок "Уникальный проект" */
.unique-request {
  text-align: center;
  padding: 20px;
  border: 2px dashed #cbd5e0;
  border-radius: 15px;
  font-size: 14px;
  color: #4a5568;
}

.tg-link {
  color: #24A1DE;
  font-weight: bold;
  text-decoration: none;
  display: block;
  margin-top: 8px;
  font-size: 15px;
}

.tg-link:hover {
  text-decoration: underline;
}

/* Блок информации о модели */
.model-info-block {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #bae6fd;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portfolio-link {
    display: block;
    background: #24A1DE;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.portfolio-link:hover {
    background: #1c82b3;
    transform: scale(1.02);
}

.small-hint {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

#model-name {
    padding: 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
}

#model-name:focus {
    border-color: #24A1DE;
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 161, 222, 0.1);
}

/* Подсветка пустого обязательного поля */
#model-name:invalid:focus {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

/* Стиль, если поле заполнено */
#model-name:valid {
    border-color: #38a169;
}
/* ==========================================================================
   АДАПТИВНОСТЬ (ДЛЯ ТЕЛЕФОНОВ)
   ========================================================================== */

@media (max-width: 850px) {
  .calc-content {
    flex-direction: column;
  }

  .calc-sidebar {
    position: static;
    width: 100%;
  }

  .service-row {
    flex-direction: column;
    align-items: stretch;
  }

  .qty-controls {
    justify-content: center;
    margin-top: -5px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

