/* Общие мобильные стили для max-width: 767px */
@media (max-width: 767px) {
    header .container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    nav ul.nav {
        flex-direction: column;
        gap: 0.1rem;
        padding-left: 0;
        margin: 0;
    }

    nav .nav-link {
        padding: 0.5rem;
        font-size: 1.1rem;
    }

    .items a {
        display: inline-block;
        text-align: center;
        margin: 20px auto;
        text-transform: uppercase;
        text-decoration: none;
        color: inherit;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
        font-size: 1.5rem;
    }

    .swiper-wrapper {
        align-items: flex-start; /* Выровнять слайды по верхнему краю */
        max-height: 275px;
    }

    nav .nav-linkss {
        padding: 0.5rem;
        font-size: 1.1rem;
        top: 0;
    }

    .dropdown:hover .dropdown-content {
        display: none;
        width: 255px;
    }

    .contacts {
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .logo a {
        font-size: 1.8rem;
    }

    .top-bar .container {
        justify-content: center !important;
        gap: 0.5rem !important;
        flex-wrap: wrap;
        font-size: 0.9rem;
        margin-top: 5px;
        padding-bottom: 5px;
    }

    .photo-banner {
        min-height: 300px;
        padding: 1rem;
    }

    .social-icons-wrapper-two {
        display: flex;
        gap: 12px;
        align-items: center;
        left: 64% !important;
        position: absolute;
        top: 61% !important;
    }

    .photo-banner h2 {
        font-size: 1.5rem;
    }

    .photo-item {
        position: relative;
        width: 90% !important;
        left: 8px;
        cursor: pointer;
        overflow: hidden;
        transition: transform 0.3s ease;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        height: 138px !important;
    }

    .photo-item img {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        display: block;
        width: 100%;
        height: 138px !important;
        object-fit: cover;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .photo-item-banners {
        position: relative;
        width: auto !important;
        height: 130px !important;
        cursor: pointer;
        border-radius: 50px;
        overflow: hidden;
        transition: transform 0.3s ease;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));

        /* Центрируем содержимое по вертикали и горизонтали */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 10px; /* немного внутреннего отступа */
        box-sizing: border-box;
    }

    .photo-item-banners img {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        display: block;
        height: 56px !important;
        object-fit: cover;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        transition: transform 0.3s ease;
        cursor: pointer;
        margin: 0 auto;
        position: static;
        left: auto;
        margin-bottom: 15px;
        max-width: 56px;
        max-height: 56px;
    }

    .about-text-banner p {
        font-size: 15px;
        margin-left: 8px;
        text-align: left;
        background: #8b8b8bbd;
        width: auto;
        border-radius: 4px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
        color: whitesmoke;
        text-transform: uppercase;
        overflow: hidden;
        display: flex;
        margin-right: 8px;
        padding: 6px;
    }

    .about-text-banner h2 {
        background: #8b8b8bbd;
        margin-left: 8px;
        text-align: left;
        padding: 4px;
        border-radius: 4px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
        text-transform: uppercase;
        font-weight: 600;
        color: #e2e8df;
        margin-right: 8px;
        display: flex;
        font-size: 16px;
    }

    .photo-description-banners {
        position: absolute;
        bottom: 10px; /* чуть выше от нижнего края */
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5rem 1rem;
        background: linear-gradient(144deg, #fcfffb05, #dddddd21, #0198d430);
        color: #000000;
        font-size: 0.81rem;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 5px;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        width: auto;
        text-transform: uppercase;
        max-width: 90%;
    }

    .photo-banner p {
        font-size: 1rem;
    }

    nav .nav-link {
        /* Чтобы ссылки в мобильном меню были удобочитаемы */
        font-size: 1.1rem;
    }
}

/* Немного расширенный breakpoint для 768px */
@media (max-width: 768px) {
    .footer-content.container {
        flex-direction: column;
        align-items: center;
        text-align: inherit;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    }

    .top-bar {
        background: linear-gradient(90deg, #4a0073, #0099d5, #3f0e66);
        color: #f0f9f9;
        font-size: 0.85rem;
        padding: 0.3rem 0;
        font-weight: 600;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
        box-shadow: rgba(255, 88, 88, 0.15) 0 4px 18px, rgba(0, 0, 0, 0.08) 0 1.5px 4px;
        position: relative;
        z-index: 1;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        transition: filter 0.3s ease;
        overflow: hidden;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .gradient-contacts {
        height: 15px !important;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        width: 100%;
    }

    #gallery {
        padding: 1rem;
    }

    .footer-info {
        max-width: 100%;
    }

    .footer-logo img {
        height: 60px;
        margin-bottom: 20px;
        margin-top: 5px;
    }

    .photo-row img {
        /*width: calc((100% - 20px) / 2)!important; !* 2 фото в строке *!*/
        height: 100px !important;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 100%!important;
    }
}


@media (max-width: 320px) {
    .map-responsive {
        position: relative;
        width: 100%;
        padding-bottom: 75%;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(4, 174, 199, 0.15);
        padding-left: 261px !important;
    }

    .breadcrumb ol {
        list-style: none;
        display: block ruby !important;
        gap: 0.5rem;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 375px) {
    .breadcrumb ol {
        list-style: none;
        /*display: ruby !important;*/
        gap: 0.5rem;
        padding: 0;
        margin: 0;
        font-size: 12px;
    }

    .breadcrumb {
        margin-left: 0;
    }

    .gradient {
        height: 27px !important;
        background: linear-gradient(92deg, #f2f5f0, #8b8b9e) !important;
        width: 100%;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    #contacts .content-wrapper {
        padding: 1.5rem 1.5rem;
    }

    #contacts .content-wrapper {
        max-width: 700px;
        width: 100%;
        border-radius: 12px;
        padding: 2rem 2.5rem;
        background-color: rgba(0, 0, 0, 0.3);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .custom-card {
        border-radius: 14px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
        overflow: hidden;
        width: 290px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform .2s;
        margin: 0;
        padding: 0;
        background: linear-gradient(100deg, #ccced1 0%, #cfdef3 100%);
    }

    #screw-spiral {
        padding: 2.5rem 1.5rem;
        background: linear-gradient(66deg, #f0f7e6, #8e8ca2);
        color: #e0d9f1;
        box-sizing: border-box;
        text-align: center;
        display: inherit;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }

    .category-item {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
        overflow: hidden;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        box-shadow: 0 4px 15px rgba(1, 152, 212, 0.4);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        background: #000;
        height: 300px;
    }

    .news-carousel__title {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 40px;
        text-align: center;
        text-transform: uppercase;
        padding-top: 40px;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
    }

    .advantages__title {
        font-size: 1.5rem;
        font-weight: 500;
        margin-bottom: 20px;
        text-align: center;
        text-transform: uppercase;
        padding-top: 30px;
        filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.5));
    }

    .search-icon {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 5px;
        display: flex;
        align-items: center;
        color: white;
        transition: opacity 0.3s ease;
        bottom: 147px;
        position: relative;
        left: 150px;
    }

    .social-wrapper img {
        width: 25px;
        height: 25px;
        display: block;
        top: -75px;
        position: relative;
         margin-left: 0;
        left: 52px;
    }

    .swiper-pagination {
        display: none;
    }


    @media (max-width: 480px) {
        #scrollToTopBtn {
            position: fixed;
            bottom: 40px;
            right: 30px;
            z-index: 10000;
            background: linear-gradient(90deg, #0099d5, #650898, #0099d5);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
            width: 50px;
            height: 50px;

            display: flex; /* Включаем flex-контейнер */
            justify-content: center; /* Центрируем по горизонтали */
            align-items: center; /* Центрируем по вертикали */
            text-align: center; /* На всякий случай */
            padding: 0; /* Убираем внутренние отступы */
        }
    }


    .item-name {
        font-size: 18px;
        font-weight: 700;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
        word-wrap: break-word;
    }

    .contacts-wrapper {
        display: flex;
        gap: 0;
        flex-wrap: wrap;
        /* align-items: flex-start; */
        max-width: 393px;
        margin: 0 auto;
        padding: 20px;
        box-sizing: border-box;
        width: 393px;
    }

    .photo-item img {
        /*width: calc((100% - 20px) / 2); !* 2 фото в строке *!*/
        /*height: 100px!important;*/
    }

    section {
        padding: 1rem 0 !important;
    }

    #contacts {
        margin-top: -1px;
    }

    .gradient {
        height: 17px;
        background: linear-gradient(92deg, #f2f5f0, #8b8b9e) !important;
        width: 100%;
    }

    #screw-spiral h2 {
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 1.3rem;
        letter-spacing: 0.05em;
        color: white;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-transform: uppercase;
    }

    #screw-spiral h3 {
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: 0.05em;
        color: white;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-transform: uppercase;
    }

    .photo-item-product {
        position: relative;
        width: 100%; /* лучше контролировать ширину через родителя */
        height: 140px !important; /* фиксированная высота */
        cursor: pointer;
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s ease;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));

        display: flex;
        flex-direction: column;
        justify-content: center; /* вертикальное центрирование содержимого */
        align-items: center; /* горизонтальное центрирование */
        box-sizing: border-box;
        padding: 0;
        left: 5px;
    }

    .product .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(270deg, #0297d3, #480576, #911bff);
        background-size: auto;
        background-size: auto;
        background-size: 600% 600%;
        color: white;
        padding: 0.75rem 0.9rem;
        text-decoration: none;
        border-radius: 5px;
        font-weight: 600;
        filter: drop-shadow(0 0 5px rgb(36, 78, 165));
        transition: background-position 3s ease, filter 0.3s ease;
        animation: pulseGlow 3s ease-in-out infinite;
        cursor: pointer;
        user-select: none;
        width: 115px;
    }

    .social-icons-wrapper-two {
        display: flex;
        gap: 12px;
        align-items: center;
        left: 59% !important;
        position: absolute;
        top: 50% !important;
    }

    .photo-item-product img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover;
        border-radius: 6px;
        height: 95px;
        width: 160px;
    }

    #screw h2 {
        margin-bottom: 1rem;
        font-weight: 700;
        font-size: 1.3rem;
        letter-spacing: 0.05em;
        color: white;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-transform: uppercase;
    }

    .screw-title-mobile h2 {
        display: block;
        margin-bottom: 1rem;
        font-weight: 600!important;
        font-size: 1.2rem!important;
        letter-spacing: 0.05em;
        color: #686868!important;
        filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.5))!important;
        text-transform: uppercase;
        margin-left: 15px;
    }

    .custom-image-miniature-style {
        width: 75px;
        height: 55px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid transparent;
    }

    #contacts-with-item {
        padding: 2rem 1.5rem;
        background: linear-gradient(66deg, #ffffff, #cbcbd3);
        box-sizing: border-box;
        color: #f0f9f9;
        text-align: center;
        display: flex;
        border-radius: 10px;
        margin-top: 5px;
        justify-content: center;
        max-width: 370px;
        width: 100%;
    }

    .photo-margin-l {
        margin-left: 13px;
    }

    #screw {
        padding: 2.5rem 1.5rem;
        background: linear-gradient(66deg, #c9c9d2, #f0f7e6);
        color: #e0d9f1;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 200px;
    }

    #screw h3 {
        margin-bottom: 1rem;
        font-weight: 600;
        font-size: 1.1rem;
        letter-spacing: 0.05em;
        color: #4f4e4e;
        text-transform: uppercase;
        margin-left: 5px;
        filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.5));
    }

    #screw p {
        margin: 0 0;
        font-size: 1.1rem;
        line-height: 1.4;
        margin-left: 0;
        /*margin-right: 16px;*/
        color: #5b5b5b;
        filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.5));
    }

    .my-flex-container {
        display: flex;
        gap: 10px;
        margin-left: 4px;
        margin-top: 20px;
        flex-wrap: wrap;
    }

    .custom-card img {
        display: block;
        width: 345px;
        height: 150px;
        object-fit: cover;
        object-position: center;
        border-radius: 14px 14px 0 0;
    }

    #screw li {
        list-style-type: none;
        margin-left: 0;
        padding-left: 0;
        color: navy;
        filter: drop-shadow(2px 1px 0px rgba(255, 255, 255, 0.5));
        padding-right: 2px;
        position: relative;
        right: 15px;
    }

    .map-phones {
        max-width: 100%;
    }

    /* Заголовки остаются сверху, контакты под ними вертикально */
    .phones-list,
    .email-row {
        display: block; /* убрать flex */
        gap: 0;
        margin-bottom: 1rem;
        background: linear-gradient(18deg, #440f7d, #0a9cd6, #4f2989);
    }

    /* Каждый телефон и почта — отдельная строка */
    .phones-list p,
    .email-row {
        display: flex;
        align-items: center;
        gap: 8px;
        /*margin: 0.3rem 0;*/
    }

    .contact-text-banner h2 {
        background: #2253a87d;
        margin-left: 13px;
        text-align: left;
        padding: 4px;
        width: 196px;
        border-radius: 5px;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
        text-transform: uppercase;
        font-weight: 600;
        color: #e2e8df;
        padding-left: 8px;
        font-size: 20px;
        display: none;
    }

    .item-section {
        /*display: none;*/
    }

    .contact-text-banner p {
        font-size: 16px;
        margin-left: 13px;
        text-align: left;
        padding: 4px;
        background: #2253a87d;
        width: 1110px;
        border-radius: 5px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
        color: whitesmoke;
        text-transform: uppercase;
        padding-left: 8px;
        width: 388px;
        margin-right: 13px;
    }

    .section-title-contact {
        font-size: 1.3rem;
        margin-bottom: 15px;
        color: #ecedff;
        border-bottom: 2px solid #cacaca;
        padding-bottom: 5px;
        font-weight: 500;
        filter: drop-shadow(2px 1px 0px rgba(44, 44, 44, 0.5));
        text-transform: uppercase;
    }

    /* Уменьшаем отступы между телефонами */
    .phones-list p + p {
        margin-top: 0.2rem;
    }

    .photo-item {
        position: relative;
        width: 90% !important;
        left: 8px;
        cursor: pointer;
        overflow: hidden;
        transition: transform 0.3s ease;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        height: 138px !important;
        margin-top: 10px;
    }

    .gradient-contacts {
        height: 60px;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        width: 100%;
    }

    .company-text {
        font-size: 1.3rem;
        line-height: 1.5;
        color: #000;
        margin-left: 13px;
    }

    .company-name {
        font-size: 1.5rem;
        margin-top: 15px;
        margin-left: 13px;
    }

    .breadcrumb {
        padding: 13px 7px 13px;
        font-size: 0.72rem;
        margin-left: 0;
        /*text-align: center;*/
        /*justify-content: center;*/
        margin-bottom: 0;
    }

    .breadcrumb li::after {
        content: "›";
        margin-left: 0.22rem;
        color: #666;
    }

    .main-photo-wrapper {
        border-radius: 0 !important;
    }

    #engineering h2 {
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 1rem;
        letter-spacing: 0.05em;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        text-transform: uppercase;
        color: white;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    }

    #engineering p {
        margin-bottom: 1rem;
        font-size: 1rem;
        line-height: 1.5;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        text-transform: uppercase;
        color: white;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        text-align: center;
    }

    #contacts h2 {
        font-weight: 700;
        font-size: 1.3rem;
        margin-bottom: 1rem;
        letter-spacing: 0.05em;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        color: white;
    }

    .btn-submit {
        width: 100%;
        padding: 0.75rem 0;
    }

    .contacts {
        flex-direction: column;
        gap: 1rem;
    }

    .top-bar {
        background: linear-gradient(90deg, #4a0073, #0099d5, #3f0e66);
        color: #f0f9f9;
        font-size: 0.85rem;
        padding: 0.3rem 0;
        font-weight: 600;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 1.5rem;
        box-shadow: rgba(255, 88, 88, 0.15) 0 4px 18px, rgba(0, 0, 0, 0.08) 0 1.5px 4px;
        position: relative;
        z-index: 1;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        transition: filter 0.3s ease;
        overflow: hidden;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    #screw-spiral .content-wrapper {
        max-width: 700px;
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 20px rgba(90, 26, 126, 0.3);
        padding: 1rem 1.5rem;
        margin-bottom: 0;
    }

    .map-phones a[href^="tel:"] {
        color: whitesmoke;
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
        text-decoration: none;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        font-size: 16px;
    }

    .photo-container-product {
        width: 93% !important; /* растягиваем на ширину родителя */
        max-width: 100%; /* максимум меньше для мобильных */
        height: fit-content; /* чуть меньше высота */
        margin: 0 auto; /* центрирование при необходимости */
    }

    .photo-container-product img {
        height: 100%; /* сохраняем масштаб */
        object-fit: cover;
    }

    #screw-spiral p {
        margin: 0.3rem 0;
        font-size: 1rem;
        line-height: 1.4;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-transform: uppercase;
        color: white;
    }

    .owl-theme .owl-nav [class*=owl-] {
        color: #FFF;
        font-size: 14px;
        margin: 5px;
        padding: 4px 7px;
        background: #D6D6D6;
        display: inline-block;
        cursor: pointer;
        border-radius: 50px;
        /* padding-top: 30px; */
        /* margin-top: 60px; */
    }

    .map-phones {
        margin-top: 15px;
        color: whitesmoke;
        font-size: 1rem;
        z-index: 5;
        position: relative;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-align: justify;
    }

    .company-text {
        font-size: 1.3rem;
        line-height: 1.5;
        color: #000;
        margin-left: 13px;
    }

    .company-name {
        font-size: 1.5rem;
        margin-top: 15px;
        margin-left: 13px;
    }

    #searchForm {
        display: block; /* показываем форму */
        position: absolute; /* позиционирование относительно родителя */
        top: 0;
        left: 0;
        background: white;
        border-radius: 13px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
        overflow: hidden;
        z-index: 100;
        width: 202px;
        margin-top: -75px;
    }

    #searchResults {
        position: absolute;
        top: 0;
        left: -93px;
        width: 300px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-top: none;
        max-height: 300px;
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 9999;
        border-radius: 0 0 4px 4px;
        display: none;
        font-size: 14px;
        border-radius: 7px;
    }

    .news-carousel__slide {
        flex: 0 0 calc(100% - 40px); /* учитываем отступы по бокам */
        box-sizing: border-box;
        padding: 10px;
        background: #f9ffeb94;
        margin: 0 20px 10px; /* боковые margin для отступов между слайдами */
        border-radius: 13px;
        box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1);
        text-align: center;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
    }

    .news-carousel__slide h3 {
        position: absolute;
        top: 40px;
        color: whitesmoke;
        font-size: 1.1rem;
        width: 255px;
        background: #354c6c57;
        align-items: center;
        text-align: center;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        height: 30px;
        padding-top: 5px;
    }

    .news-carousel__slide p {
        position: absolute;
        top: 113px;
        color: whitesmoke;
        font-size: 15px;
        width: 255px;
        background: #000000a3;
        text-align: left;
        padding: 5px;
        overflow: hidden;
    }

    .news-carousel {
        max-width: 1300px;
        margin: 40px auto;
        color: #222;
        background: linear-gradient(90deg, #ccced1 0%, #cfdef3 100%);
        border-radius: inherit;
    }

    #breadcrumps {
        padding: 0 0;
        background: linear-gradient(66deg, #f0f7e6, #8e8ca2);
        color: #2b409c;
        box-sizing: border-box;
        text-align: center;
        display: list-item;
        flex-direction: column;
        align-items: baseline;
        justify-content: center;
        min-height: 50px;
        height: 20px;
    }

    .owl-dots {
        margin-top: 10px;
        margin-bottom: 21px;
    }

    .videos-wrapper {
        display: grid;
        justify-content: center;
        align-items: center;
        max-width: 300px;
        height: auto;
        gap: 10px;
        margin: 10px auto;
        padding: 10px;
    }

    /* Сделать видео адаптивным по ширине */
    .videos-wrapper video,
    .videos-wrapper iframe {
        max-width: 100%;
        height: auto;
        display: block;
    }


}

/* Мобильное меню и кнопка бургер — применяем для всех экранов <= 767px */
@media (max-width: 767px) {
    /* Скрываем мобильное меню по умолчанию */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 60px; /* под шапкой */
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        padding: 1rem 1.5rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }

    /* Показать меню */
    .mobile-menu.show {
        display: block;
    }

    /* Стили для списка */
    .mobile-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-menu li + li {
        margin-top: 0;
    }

    .mobile-menu a.nav-link {
        color: #fff;
        font-weight: 600;
        font-size: 1.1rem;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .mobile-menu a.nav-link:hover,
    .mobile-menu a.nav-link:focus {
        color: #ffcc00;
        text-shadow: 0 0 5px #ffcc00;
    }

    /* Кнопка бургер */
    .burger-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 20px;
        padding: 0;
        z-index: 1051;
    }

    .burger-line {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* Анимация кнопки при открытии */
    .burger-btn.open .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-btn.open .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.open .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .mobile-menu {
        /*display: none;*/
        position: absolute;
        top: 90px; /* под шапкой */
        left: 0;
        right: 0;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        padding: 1rem 1.5rem;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1050;
    }

    #we-on-map {
        position: relative;
        /*width: 100vw;*/
        height: auto;
        background-image: url('../img');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 1rem;
    }

    .map-responsive {
        position: relative;
        width: 100%;
        padding-bottom: 75%;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(4, 174, 199, 0.15);
        padding-left: 355px;
    }

    .map-phones a[href^="tel:"] {
        color: whitesmoke;
        transition: color 0.3s ease, transform 0.3s ease;
        display: inline-block;
        text-decoration: none;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        font-size: 16px;
    }

    .map-phones {
        margin-top: 15px;
        color: whitesmoke;
        font-size: 1rem;
        z-index: 5;
        position: relative;
        filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
        text-align: justify;
        top: 0;
    }

    .footer-info {
        display: contents;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        flex: 1 1 500px;
        max-width: 800px;
        color: #f0f9f9;
        gap: 20px;
        padding-top: 15px;
    }

    .breadcrumb li::after {
        content: "›";
        margin-left: 0.25rem;
        color: #666;
    }


    .mobile-menu.show {
        display: block !important;
    }

    /* Кнопка бургер */
    .burger-btn {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 24px;
        height: 20px;
        padding: 0;
        z-index: 1051;
        position: absolute;
        right: 25px;
        top: 44px;
    }

    .social-wrapper-haider {
        display: flex;
        align-items: center;
        gap: 3px;
    }

    .social-wrapper-haider img {
        width: 24px;
        height: 24px;
        /* display: block; */
        top: -74px;
        position: relative;
        margin-left: 3px;
        left: 70px;
        border-color: #9db9de;
        border-width: 2px;
        border-style: solid;
        border-radius: 50%;
        box-sizing: border-box;
    }

    .logo img {
        height: 60px;
        width: auto;
        display: block;
        position: relative;
        z-index: 1;
        filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
        transition: filter 0.3s;
        right: 105px;
    }

    #breadcrumps {
        padding: 0 0;
        background: linear-gradient(66deg, #f0f7e6, #8e8ca2);
        color: #2b409c;
        box-sizing: border-box;
        text-align: center;
        display: list-item;
        flex-direction: column;
        align-items: baseline;
        justify-content: center;
        min-height: 50px;
        height: 20px;
    }

    .burger-line {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .burger-btn.open .burger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger-btn.open .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-btn.open .burger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

}

@media (max-width: 390px) {
    .social-icons-wrapper-two {
        display: flex;
        gap: 12px;
        align-items: center;
        left: 64% !important;
        position: absolute;
        top: 61% !important;
    }

    #contacts-with {
        width: 311px !important;
        padding: 3rem 1.5rem;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        box-sizing: border-box;
        color: #f0f9f9;
        text-align: center;
        display: flex;
        border-radius: 10px;
        margin-top: 13px;
        justify-content: center;
    }

    .map-responsive {
        position: relative;
        width: 100%;
        padding-bottom: 75%;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 4px 32px rgba(4, 174, 199, 0.15);
        padding-left: 314px;
    }

    .gradient {
        height: 30px !important;
        background: linear-gradient(92deg, #f2f5f0, #8b8b9e) !important;
        width: 100%;
    }
}

@media (max-width: 390px) {
    .social-icons-wrapper-two {
        display: flex;
        gap: 12px;
        align-items: center;
        left: 58% !important;
        position: absolute;
        top: 52% !important;
    }
}

@media (max-width: 375px) {
    #contacts-with {
        width: 258px !important;
        padding: 3rem 1.5rem;
        background: linear-gradient(90deg, #4a0073, #0099d5, #543071);
        box-sizing: border-box;
        color: #f0f9f9;
        text-align: center;
        display: flex;
        border-radius: 10px;
        margin-top: 13px;
        justify-content: center;
    }
    .about-image img {
        display: none;
    }
}

@media (max-width: 844px) and (orientation: landscape) {
    .nav-land {
        text-transform: capitalize;
        margin-right: 0!important;
    }
}


@media (max-width: 576px) {
    .section-title-services {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .services-inline-row {
        gap: 12px;
    }

    .service-mini-card {
        max-width: 177px;
        flex: none;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    }

    .service-mini-img {
        max-height: 140px;
    }

    .service-mini-caption {
        font-size: 0.74rem;
        min-height: auto;
        padding: 8px 10px 12px;
    }
}
