@media (max-width: 992px) {

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .order-card {
        position: static;
        max-height: none;
        overflow: visible;
        margin-top: 30px;
    }

    .service-grid,
    .extra-grid {
        grid-template-columns: 1fr;
    }
}

/* Мобильная корзина снизу */
.mobile-order-card {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    z-index: 999;
    font-size: 14px;
}

/* Хедер корзины */
.mobile-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    gap: 10px;
}

.mobile-order-header .cart-toggle {
    background: none;
    background-color: #f1f5f9;
    border-radius: 5px;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.mobile-order-header .total-info {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.mobile-order-header .order-btn {
    font-size: 14px;
    padding: 5px 10px;
}

/* Список заказов (по умолчанию скрыт) */
.mobile-order-list {
    display: none;
    max-height: 200px;
    overflow-y: auto;
    border-top: 1px solid #e0e0e0;
    padding: 10px 15px;
}

/* Элементы списка */
.mobile-order-list .order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mobile-order-list .order-item:last-child {
    border-bottom: none;
}

/* Кнопка удаления */
.mobile-order-list .remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
}

/* Показываем список при активной корзине */
.mobile-order-card.active .mobile-order-list {
    display: block;
}

/* Заголовок в левой колонке — только для десктопа */
.order-title-left {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

/* На десктопе скрываем modal-header заголовок */
@media (min-width: 992px) {
  .modal-header .modal-title {
    display: none;
  }
}

/* На мобильных скрываем левый заголовок и показываем modal-header */
@media (max-width: 991px) {
  .order-title-left {
    display: none !important;
  }
  .modal-header .modal-title {
    display: block !important;
  }
}

@media (max-width: 768px) {

    .price-row {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .price-row div:last-child {
        text-align: left;
    }

}

@media (max-width: 992px) {

    .contacts-wrapper {
        grid-template-columns: 1fr;
    }

    .contacts-map iframe {
        height: 300px;
    }
}

/* Стили для счётчика на кнопке корзины */
.cart-toggle {
    position: relative;   /* чтобы счётчик позиционировался относительно кнопки */
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;  /* красный */
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}