
/*@media (max-width: 990px) {*/
/*    .contact-info{*/
/*        !*display: none !important;*!*/
/*    }*/
/*}*/

/* базовое оформление, чтобы номера не ломались внутри */
.phone-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;               /* расстояние между элементами */
}
.phone-all a {
    white-space: nowrap;     /* держать номер одной строкой */
}

/* скрываем 4-й номер на чуть более узких экранах */
@media (max-width: 995px) {
    .phone-all a:nth-of-type(3),
    .phone-all a:nth-of-type(4) {
        display: none;
    }
}
s
/* скрываем 3-й номер */
/*@media (max-width: 1050px) {*/
/*    .phone-all a:nth-of-type(3) { display: none; }*/
/*}*/

/*!* скрываем 2-й номер *!*/
/*@media (max-width: 900px) {*/
/*    .phone-all a:nth-of-type(2) { display: none; }*/
/*}*/

/* совсем узко — прячем блок целиком (или оставляем только главный номер) */
@media (max-width: 780px) {
    /* вариант А: полностью скрыть */
    /* .phone-all { display: none; } */

    /* вариант Б: оставить только первый номер, на всякий случай
       (если не использовал ранее правила выше) */
    .phone-all a:nth-of-type(n+2) { display: none; }
}

@media (max-width: 768px) {
    .well-md {
        padding-bottom: 60px;
    }

    .modal-footer button {
        width: 100%;
    }

    body.inner {
        padding-top: 160px;
    }

    #cart-popup .modal-content {
        width: 95%;
    }

    input.search-input {
        border-radius: 0;
    }

    .camera_caption h2 {
        font-size: 22px;
    }

    .onCamera, .booking-form {
        width: 100%;
    }

    /* Шапка */
    header {
        position: fixed;
        width: 100%;
        height: auto;
        padding: 10px 0;
        z-index: 1000;
    }

    /*body {*/
    /*    padding-top: 60px; !* Отступ под шапку *!*/
    /*}*/
    header .rd-navbar-brand {
        margin: 10px auto;
        text-align: center;
    }

    header .rd-navbar-brand img {
        max-width: 120px;
    }

    header .contact-info {
        float: none;
        text-align: center;
        margin-top: 10px;
        line-height: 24px;
        display: none; /* Спрятать в меню */
    }

    header .contact-info.active {
        display: block; /* Показать при активации меню */
    }

    header .contact-info p {
        padding-right: 0;
        display: block;
    }

    header .contact-info a.heading-3 {
        font-size: 18px;
    }

    header #logo {
        float: left;
    }

    body.inner header .container,
    body.scrolled header .container {
        padding: 0;
    }

    body.inner header #logo,
    body.scrolled header #logo {
        flex: 0 0 75px;
        width: 75px;
    }

    header .align-left,
    header .align-right {
        float: none;
    }

    /* Поисковая форма */
    .search-form {
        min-width: 100%;
        padding: 10px 0;
        margin: 0;
    }

    .inner .search-form,
    .scrolled .search-form {
        flex-grow: 1;
    }

    .cameraContent .camera_caption {
        margin-top: 100px;
    }

    .search-form.active {
        display: block; /* Показать при активации меню */
    }

    .search-input {
        width: 100%;
        font-size: 16px;
        padding: 6px 10px;
    }

    .search-submit {
        font-size: 18px;
        line-height: 49px;
        width: 40px;
        right: 0;
    }

    .user-tools-2 {
        position: absolute;
        top: 0;
        right: 70px;
    }

    .user-tools-2 ,
    .user-tools {
        padding: 0;
        font-size: 27px;
        line-height: 40px;
        text-align: center;
        display: none;
    }

    .inner .user-tools,
    .scrolled .user-tools {
        display: block;
        float: right;
    }

    .user-tools.active {
        display: block; /* Показать при активации меню */
    }

    .user-tools .car-repire-ico {
        font-size: 40px;
    }

    .user-tools-2{
        /*margin-right: 10px;*/
    }

    .user-tools-2 a:hover, .user-tools-2 a {
        text-decoration: none;
        height: 40px;
    }

    .user-tools .fa-user-circle-o {
        font-size: 30px;
        margin: 0 5px;
    }

    .user-tools .user-name,
    .user-tools .cart-info {
        bottom: -15px;
        font-size: 8px;
        line-height: 14px;
        min-width: 20px;
        height: 16px;
    }

    /* Меню брендов */
    #menu-brands {
        top: 60px;
        padding: 10px;
        /*display: none; !* Спрятать в меню *!*/
    }

    #menu-brands.active {
        display: block; /* Показать при активации меню */
    }

    #menu-brands ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    #menu-brands img {
        max-width: 80%;
    }

    /* Гамбургер-меню */
    .menu-toggle {
        display: block;
        font-size: 24px;
        cursor: pointer;
        padding: 10px;
        position: absolute;
        right: 10px;
        top: 10px;
        z-index: 1001;
    }

    /* Каталог товаров */
    .shop-items .item,
    .shop-items .itemPrice {
        width: 100%;
        margin: 10px 0;
        padding: 15px;
    }

    .shop-items .item {
        max-height: 300px;
        overflow: hidden;
    }

    .shop-items .itemPrice {
        display: block;
        /*text-align: center;*/
    }

    .shop-items .itemPrice .photo {
        width: 80px;
        margin: 0 auto 10px;
    }

    .shop-items .itemPrice .photo img {
        max-width: 100%;
        height: auto;
    }

    .shop-items .itemPrice .name,
    .shop-items .itemPrice .producer,
    .shop-items .itemPrice .article,
    .shop-items .itemPrice .price,
    .shop-items .itemPrice .quantity,
    .shop-items .itemPrice .remove,
    .shop-items .itemPrice .buy {
        /*text-align: center;*/
        grid-column: auto;
        grid-row: auto;
    }
    .shop-items .itemPrice .producer{
        width: 50%;
        float: left;
    }

    .shop-items .itemPrice .article{
        width: 50%;
        float: left;
        text-align: right;
    }


    .shop-items .itemPrice .name {
        font-size: 16px;
    }

    .shop-items .itemPrice .remove {
        float: left;
        width: 50%;
        margin-top: 27px;
    }

    .shop-items .itemPrice .price {
        margin-top: 30px;
        margin-bottom: 20px;
        float: left;
        width: 50%;
    }

    .shop-items .itemPrice .input-group {
        width: 100%;
        margin: 0 8%;
    }

    .buy-button,
    .remove-button {
        width: 100%;
        margin-top: 10px;
        padding: 8px;
    }

    .year-selector {
        padding: 5px;
    }

    .year {
        padding: 6px 10px;
        font-size: 14px;
        margin: 5px;
    }

    /* Формы */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea {
        min-height: 40px;
        font-size: 16px;
        padding: 8px;
    }

    button {
        /*padding: 12px 20px;*/
        /*min-width: 120px;*/
    }

    /* Модальные окна */
    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 5% auto;
        max-height: 80vh;
        overflow-y: auto;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }

    .modal-content button[type="submit"] {
        font-size: 1rem;
    }

    /* Корзина */
    .cart-popup__content {
        max-width: 90%;
        padding: 20px 15px;
    }

    .cart-popup__content h2 {
        font-size: 18px;
    }

    .cart-popup__item,
    .cart-popup__summary {
        font-size: 14px;
    }

    .cart-popup__actions {
        flex-direction: column;
    }

    .cart-popup__continue,
    .cart-popup__checkout {
        /*width: 100%;*/
        padding: 10px;
        font-size: 16px;
        text-align: center;
        text-transform: uppercase;
    }

    /* Checkout-страница */
    #checkout-page {
        padding: 10px;
    }

    #checkout-page h3 {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    #checkout-page .order-info {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    #checkout-page .toSaveOrder,
    #checkout-page .toSelectDelivery,
    #checkout-page .toSelectPersonalData,
    #checkout-page .toSelectPayment {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    #checkout-page .personal-data-columns,
    #checkout-page .pickup-columns {
        flex-direction: column;
        gap: 20px;
    }

    #checkout-page .personal-data-column,
    #checkout-page .pickup-column {
        flex: 1 1 100%;
        min-height: auto;
    }

    #checkout-page .payment-types {
        flex-direction: column;
        gap: 15px;
    }

    #checkout-page .payment-type {
        min-width: 100%;
        padding: 12px;
    }

    /* Профиль */
    .profile-container {
        gap: 0;
        flex-direction: column;
        margin: 20px auto;
    }

    .profile-sidebar {
        min-width: 100%;
        padding: 15px 0;
    }

    .profile-main {
        padding: 20px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
        font-size: 14px;
    }

    /* Анимации (отключение тяжелых анимаций на мобильных) */
    .animated {
        animation: none !important;
    }
}

@media (max-width: 480px) {
    /* Дополнительные корректировки для маленьких экранов */
    header {
        height: 50px;
    }

    header .rd-navbar-brand img {
        max-width: 100px;
    }

    header .contact-info a.heading-3 {
        font-size: 16px;
    }

    .search-input {
        font-size: 14px;
    }

    .user-tools {
        font-size: 20px;
    }

    .user-tools .car-repire-ico {
        font-size: 30px;
    }

    .user-tools .fa-user-circle-o {
        font-size: 24px;
    }

    #menu-brands ul {
        /*grid-template-columns: 1fr;*/
    }

    .shop-items .item {
        padding: 10px;
    }

    .shop-items .itemPrice .photo {
        width: 60px;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .cart-popup__content {
        padding: 15px 10px;
    }

    #checkout-page .personal-data-columns,
    #checkout-page .pickup-columns {
        gap: 15px;
    }

    #checkout-page input[type="text"],
    #checkout-page input[type="tel"],
    #checkout-page input[type="email"],
    #checkout-page textarea {
        font-size: 14px;
        padding: 8px;
    }

    #checkout-page .payment-type {
        padding: 10px;
    }

    #checkout-page .payment-type .payment-type-icon {
        font-size: 1.5em;
    }

    #checkout-page .payment-type .payment-type-title {
        font-size: 1em;
    }

    .menu-toggle {
        font-size: 20px;
        padding: 8px;
    }

    .availability {
        margin-top: 0;
    }

    .availability .updated {
        margin-top: 0;
    }

    .crosses [class*="col-md"] + [class*="col-md"],
    .crosses [class*="col-sm"] + [class*="col-sm"] {
        margin-top: 0 !important;
        white-space: nowrap;
    }
}

@media (max-width: 479.98px) {
    .col-xs-6 { float:left; width:50%; }        /* 2 в ряд */
    .col-xs-4 { float:left; width:33.3333%; }   /* 3 в ряд */
}