@media (max-width: 1300px) {
    .bann_cont {
        position: absolute;
        top: 50px;
        left: 80px;
    }

    .banner h1 {
        font-size: 50px;
        color: #ffffff;
        font-weight: 700;
        text-transform: uppercase;
        width: 100%;
    }
}

@media (max-width: 1280px) {
    .banner h1 {
        font-size: 40px;
    }

    .banner .ban {
        top: 40px;
        right: 20px;
    }
}

@media (max-width: 1024px) {
    .bann_cont {
        position: absolute;
        top: 30px;
        left: 30px;
    }

    .banner h1 {
        font-size: 30px;
        width: 80%;
    }

    .banner .button {
        padding-top: 30px;
        display: flex;
    }

    .banner .button a {
        font-size: 11px;
    }

    .banner h4 {
        font-size: 13px;
    }

    .banner .ban .button {
        padding-top: 10px;
        justify-content: center;
    }

    .banner .big .image {
        display: block;
        height: 100px;
    }

    .banner .small .smallest .image {
        display: block;
        height: 100px;
        position: relative;
        max-height: 314px;
    }
    .banner .slick-dots li button {
        width: 20%;
        height: 2px;
        padding: 0;
    }
    .banner .slick-dots li button:before {
        height: 2px;
        color: unset;
        opacity: .25;
        width: 100%;
        content: "";
    }
    .banner .slick-dots li button:hover:before, .banner .slick-dots li button:focus:before {
        opacity: 1;
    }
    .banner .slick-dots li {
        height: 2px;
        background: #414246;
    }
    .banner .slick-dots li.slick-active {
        animation: back_time 2s ease infinite;
    }
    .banner .slick-dots li.slick-active {
        background: linear-gradient(white, white) #414246 no-repeat 0 0;
        background-size: 0 100%;
    }
    @keyframes back_time {
        100% {
            background-size: 100% 100%;
        }
    }

    header.mobile.fixed {
        padding: 15px 5px;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
        position: fixed;
        z-index: 99;
        background: #fff;
        width: 100vw;
        box-sizing: border-box;
        top: 0px;
    }
}

@media (max-width: 834px) {
    .banner .row  {
        flex-direction: column;
    }

    .banner .big {
        width: 100%;
        /* background: url("/local/templates/kapussta/img/ban1.jpeg"); */
        margin-right: 0;
        background-size: cover;
        position: relative;
    }

    .banner .small {
        width: 100%;
        display: flex;
    }

    .item_banners_page {
        max-width: 49%;
    }

    .min_banners .row {
        row-gap: 15px;
    }
}

@media (max-width: 430px) {
    .mobile {
        display: block;
    }

    .desktop {
        display: none;
    }

    .banner .row, .workBlock .row {
        flex-direction: column;
        justify-content: unset;
    }

    .footBlock {
        flex-direction: column;
    }

    .workBlock:after, .forumBlock:before {
        display: none;
    }

    .openBlock {
        display: none;
    }

    header.mobile {
        padding: 15px 0;
        box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    }

    .container {
        padding: 0 15px;
    }

    #nav-icon3 {
        width: 40px;
        height: 28px;
        position: relative;
        margin: 0;
        transform: rotate(0deg);
        transition: .5s ease-in-out;
        cursor: pointer;
    }

    #nav-icon3 span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        background: #836FFF;
        border-radius: 9px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    #nav-icon3 span:nth-child(1) {
        top: 0px;
    }

    #nav-icon3 span:nth-child(2),
    #nav-icon3 span:nth-child(3) {
        top: 12px;
    }

    #nav-icon3 span:nth-child(4) {
        top: 24px;
    }

    #nav-icon3.open span:nth-child(1) {
        top: 18px;
        width: 0%;
        left: 50%;
    }
    #nav-icon3.open span:nth-child(2) {
        transform: rotate(45deg);
    }
    #nav-icon3.open span:nth-child(3) {
        transform: rotate(-45deg);
    }
    #nav-icon3.open span:nth-child(4) {
        top: 18px;
        width: 0%;
        left: 50%;
    }

    .mobile .row {
        justify-content: space-between;
        align-items: center;
    }

    .mobile .logo {
        width: 40%;
        margin: 0;
    }

    .openBlock.open {
        display: block;
        position: absolute;
        background: #836FFF;
        width: 430px;
        top: 68px;
        padding: 40px 10px;
        left: 0;
        z-index: 9;
    }

    .langProf {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    }

    .mobile .lang_select {
        width: 21%;
    }

    header.mobile .dd-select {
        padding-right: 20px;
    }

    header.mobile .dd-options {
        width: 64px!important;
        left: 0px;
        top: 40px;
    }

    .mobile .profile a {
        color: #ffffff;
    }

    .mobile .profile a:after {
        background: url("/local/templates/kapussta/img/userwhite2.svg");
        background-size: contain;
        background-repeat: no-repeat;
    }

    .mobile .profile a:before {
        display: none;
    }

    .mobile .menu ul {
        display: flex;
        flex-direction: column;
        text-align: center;
    }

    .mobile .menu {
        padding-top: 30px;
    }

    .mobile .menu ul a {
        color: #ffffff;
        font-size: 16px;
    }

    .mobile .menu li:not(:last-child) {
        padding-bottom: 15px;
        padding-right: 0;
    }

    .banner {
        padding-top: 20px;
    }

    .banner .big {
        padding: 25px;
        width: 100%;
    }

    .banner h1 {
        font-size: 30px;
        width: 100%;
    }

    .banner .button {
        padding-top: 30px;
        justify-content: center;
    }

    .banner .button a {
        font-size: 11px;
        padding: 8px 30px;
    }

    .workBlock {
        padding: 50px 0;
    }

    .workBlock .col-8 {
        width: 100%;
    }

    .workBlock .col-4 {
        width: 100%;
        padding-top: 50px;
    }

    .banner .small {
        width: 100%;
        display: flex;
    }

    .banner .first, .banner .second {
        margin: 0;
        width: 50%;
    }

    .banner .ban {
        top:0px;
        padding: 20px;
        justify-content: center;
    }

    .banner .first {
        background: none !important;
        background-image: none !important;
    }



    .banner h4 {
        font-size: 14px;
    }

    .banner .cost {
        font-size: 18px;
        display:none;
    }

    .big  .bann_cont {
        display: flex;
    }

    .banner .big  .button a {
        max-height: 32px;
    }

    h2 {
        font-size: 26px;
        padding-bottom: 20px;
    }

    .work .smallWork {
        width: 49%;
        flex-direction: column;
        align-items: center;
    }

    .smallWork .image {
        width: 100%;
    }

    .bigWork {
        flex-direction: column;
    }

    .bigWork .image {
        width: 100%;
    }

    .smallWork .content {
        padding: 12px;
        width: 100%;
        text-align: center;
        gap: 10px;
    }

    .work h3 {
        font-size: 16px;
    }

    .work h3:before {
        left: 40px;
    }

    .work p {
        font-size: 22px;
    }

    .workBlock:before {
        display: flex;
    }

    .work .bigWork h3 {
        font-size: 26px;
    }

    .work .bigWork p {
        font-size: 16px;
    }

    .workBlock .btnAll {
        padding-top: 30px;
    }

    .bottomBlock a, .workBlock .btnAll a {
        font-size: 14px;
    }

    .findBlock {
        padding: 20px;
    }

    .findBlock {
        padding: 50px 0;
        overflow: hidden;
    }

    .findBlock h3 {
        font-size: 20px;
    }

    .findBlock h2 {
        padding-top: 7px;
    }

    .findBlock .opis p {
        width: 90%;
    }

    .findBlock .button a {
        font-size: 14px;
        padding: 15px 50px;
    }

    .findBlock:after {
        width: 125px;
        height: 110px;
        right: 20px;
        top: unset;
        bottom: 50px;
    }

    .findBlock:before {
        width: 125px;
        height: 90px;
        left: 10px;
        top: 40%;
    }

    .forumBlock {
        padding: 50px 0;
    }

    .forumBlock:after {
        display: none;
    }

    .forumBlock h4 {
        font-size: 14px;
    }

    .third_col {
        display: none;
    }

    .titleFilter h6 {
        font-size: 12px;
    }

    .theme__item {
        padding: 20px 15px;
    }

    .titleFilter {
        padding: 10px 15px;
        justify-content: space-between;
    }

    .theme__item .theme {
        justify-content: space-between;
    }

    .second_col {
        width: 25%;
        padding: 0;
    }

    .first_col {
        width: 75%;
        padding-right: 20px;
    }

    .name_chat h6 {
        font-size: 14px;
    }

    .tableFilter .button a {
        font-size: 14px;
        padding: 12px 50px;
    }

    footer {
        padding: 50px 0;
    }

    .logo {
        width: 60%;
        margin: 0 auto;
    }

    footer .menu {
        padding-top: 30px;
        text-align: center;
    }

    .donate {
        margin-top: 30px;
        align-items: center;
        z-index: 9;
    }

    footer:before {
        width: 71px;
        height: 73px;
        left: 0px;
        top: 190px;
    }

    .donate .col-4 {
        width: 25%;
        border: none;
    }

    .donate .col-8 {
        width: 75%;
        border-left: 1px solid #ffffff;
    }

    footer .opis p {
        width: 100%;
        font-size: 14px;
    }

    .money {
        flex-direction: column;
    }

    .money input {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .money .btn {
        text-align: center;
    }

    footer:after {
        width: 120px;
        height: 145px;
        right: 0px;
        top: 0px;
    }

    .work .bigWork .cost p {
        font-size: 30px;
    }

    .banner .big {
        padding: 0;
        width: 100%;
    }

    .bann_cont {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .banner h1 {
        font-size: 17px;
        width: 100%;
    }

    .banner .spisok {
        padding-top: 20px;
        display: none;
    }

    .banner .button {
        padding-top: 15px;
        justify-content: start;
    }

    .banner .small {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .smallest:nth-child(1) {
        display: none;
    }

    .lang_select .dd-option-image, .dd-selected-image {
        max-width: 35px;
    }
    footer .opis {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .news-detail .bigWork .image {
        width: 100%;
    }

    .news-detail .bigWork .content {
        width: 100%;
    }

    .bigWork .content {
        padding: 20px 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .findBlock:before {
        width: 125px;
        height: 90px;
        left: 10px;
        top: 60%;
    }

    .findBlock:after {
        width: 125px;
        height: 110px;
        right: 20px;
        top: unset;
        bottom: 30px;
    }
    ul.filterThemes button {
        margin-bottom: 10px;
        margin-right: 10px;
    }
    ul.filterThemes {
        gap: 0px;
    }

    .banner h1 {
        padding: 10px;
        background: #4a4a4a61;
        width: 90%;
    }
    #nav-icon3 {
        width: 30px;
        height: 25px;
    }
    #nav-icon3 span:nth-child(2), #nav-icon3 span:nth-child(3) {
        top: 9px;
    }
    #nav-icon3 span:nth-child(4) {
        top: 19px;
    }
    .openBlock.open {
        width: 100vw;
    }
    .modal-body label span {
        padding: 12px 20px;
    }

    #register tbody tr {
        display: flex;
        flex-direction: column;
    }

    #register table{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    #register td:last-child {
        margin: 7px 0;
        padding: 0px;
    }
    .work.tgchans .small {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .work.tgchans p {
        font-size: 15px;
        margin-right: 0px;
    }
    .work.tgchans .cost {
        width: 100%;
        text-align: left;
    }
    .work.tgchans h3 {
        font-size: 14px;
        font-weight: 700;
        color: #e8e8e8;
        padding-bottom: 10px;
        position: relative;
    }
    .work.tgchans p {
        font-size: 12px;
        margin-right: 0px;
    }
    .mobile .lang_select {
        display: none;
    }
    #workBlock.mainpage .smallWork {
        max-height: unset;
    }
    #workBlock.mainpage .bigWork {
        max-height: unset;
    }
    .work .bigWork .cost p {
        font-size: 24px;
    }
    .smallWork .image a {
        border: none;
        padding: 0;
        color: unset;
        font-size: unset;
        display: block;
    }

    h3.tgtitle {
        margin-bottom: 10px;
        margin-top: 15px;
        padding-left: 15px;
        padding-bottom: 0px;
    }
    .smallWork .image {
        width: 100%;
        max-height: 280px;
    }
    .work p {
        font-size: 16px;
    }
    .work h3:before {
        left: 50%;
        transform: translateX(-50%);
    }
    .row.work-n-chat .smallWork .button {
        display: flex;
        justify-content: center;
        padding-top: 20px;
    }
    .row.work-n-chat .work h3 {
        min-height: 46px;
    }
    .row.work-n-chat .bigWork .image {
        width: 100%;
        height: 180px;
        min-height: unset;
    }
    .row.work-n-chat .bottomBlock {
        padding-top: 10px;
    }
    .row.work-n-chat .work .bigWork h3 {
        font-size: 20px;
    }
    .row.work-n-chat .work .bigWork h3 {
        min-height: unset;
        padding-bottom: 10px;
    }
    .row.work-n-chat .bigWork .image img {
        object-fit: cover;
        height: 180px;
        display: block;
        position: relative;
        min-height: unset;
    }
    div#countriesBlock .counrtyitem {
        width: calc(100% / 3 - 22px);
        margin-right: 10px;
        margin-left: 10px;
    }
    #countriesBlock .countries {
        max-height: 290px;
        overflow: auto;
    }
    div#countriesBlock {
        padding-top: 30px;
    }
    .banner {
        padding-top: 0px;
    }
    .banner h4:before {
        left: 16%;
    }

    div#countriesBlock .counrtyitem {
        width: calc(100% / 5 - 22px);
        margin-right: 10px;
        margin-left: 10px;
    }
    div#countriesBlock {
        padding-top: 10px;
    }
    div#countriesBlock .counrtyitem p{
        font-size: 12px;
    }
    .workBlock {
        padding: 20px 0;
    }
    .telegram.onmain {
        margin-bottom: 25px;
    }

    div#countriesBlock .countries .hideblock {
        display: none;
    }

    div#countriesBlock .countries .hideblock.active {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
    }
    .onlymobile {
        display: flex;
    }
    .onlydesk {
        display: none;
    }
    .opencont {
        width: 100%;
        text-align: right;
    }

    .opencont p, .closecont p {
        cursor: pointer;
        font-size: 14px;
    }

    .closecont {
        width: 100%;
        text-align: right;
    }

    .countries .closecont {
        display: none;
    }

    .tgmob {
        margin-top: 25px;
    }

    header .money {
        padding-top: 0px;
        display: flex;
    }

    .slick-dotted.slick-slider {
        margin-bottom: 5px!important;
    }

    .banner .slick-dots{
        display: none!important;
    }

    .banner .row.first{
        width: 100%;
    }

    .banner .row.onlymobile.second {
        width: 100%;
    }

    .work.tgchans {
        display: flex;
        flex-wrap: wrap;
        row-gap: 10px;
        flex-direction: column;
    }

    .work.tgchans .small:not(:nth-child(3n)) {
        margin-right: 0;
    }

    .work.tgchans .small {
        display: flex;
        width: 100%;
        max-width: 100%;
        flex: 1 0 100%;
    }

    .work.tgchans p {
        overflow: unset;
        display: unset;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        line-height: 1.3;
        height: unset;
    }

    .min_banners {
        padding-top: 50px;
    }

    .item_mini_banner {
        width: 100%;
        max-width: 32%;
        flex: 1 0 32%;
    }

    .min_banners .row {
        row-gap: 10px;
    }

    .item_banners_page {
        width: 100%;
        max-width: 100%;
        flex: 1 0 auto;
        border: 1px solid rgba(131, 111, 255, 0.3);
        border-radius: 5px;
        padding: 12px;
        display: block;
    }

    .smallWork .image img {
        object-fit: cover;
        height: 150px;
    }

    .work .smallWork:not(:nth-child(3n)) {
        margin-right: 0;
    }

    .work .smallWork:not(:nth-child(2n)) {
        margin-right: 10px;
    }

    .work.tgchans h3 {
        height: auto;
    }

    div#workBlock .container.telegram .smallWork .content {
        gap: 0;
    }

    #addsection.container.workcont {
        padding-top: 50px;
        margin-top: 0px;
    }
    /* Hide desktop banners on mobile */
    .banner .row.first .desktop-big-banner,
    .banner .row.first .desktop-small-banners {
        display: none !important;
    }
    
    /* Remove ban2bl.jpeg background image from banner row on mobile */
    .banner .row.first {
        background: none !important;
        background-image: none !important;
    }
    
    .banner .first {
        background: none !important;
        background-image: none !important;
    }
    
    /* Show mobile carousel on mobile - improved modern design */
    .banner .row.first .mobile-carousel {
        display: block !important;
        width: 100%;
        position: relative;
        height: 220px;
        min-height: 220px;
        max-height: 220px;
        overflow: hidden;
        margin-bottom: 30px;
        border-radius: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 
                    0 2px 8px rgba(131, 111, 255, 0.2);
        background: #fff;
        box-sizing: border-box;
    }
    
    /* Carousel slides - only show one at a time on mobile - ALL SAME HEIGHT */
    .banner .row.first .mobile-carousel .carousel-slide {
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                    visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: 0 !important;
        display: flex;
        flex-direction: column;
    }
    
    /* Make all slides same height regardless of type */
    .banner .row.first .mobile-carousel .carousel-slide.big,
    .banner .row.first .mobile-carousel .carousel-slide.smallest {
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
    }
    
    /* Image container - consistent sizing - fill entire slide with padding */
    .banner .row.first .mobile-carousel .carousel-slide .image {
        
               
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    inset: 0 !important;
    display: block;
    padding: 10px;
    border-radius: 20px;
    box-sizing: border-box;

    border: 1px solid rgba(131, 111, 255,0.08);
    backdrop-filter: blur(3px);

    box-shadow: 0 8px 24px rgba(0,0,0,0.45),
                0 0 12px rgba(131, 111, 255, 0.25);  
    }
    
    /* Images - consistent object-fit with better presentation */
    .banner .row.first .mobile-carousel .carousel-slide .image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        display: block;
        border-radius: 12px;
        filter: brightness(1.05) contrast(1.05);
        transition: transform 0.3s ease;
    }
    
    /* Subtle zoom effect on active slide */
    .banner .row.first .mobile-carousel .carousel-slide.active .image img {
        transform: scale(1);
    }
    
    /* Content overlays should be above images - improved styling */
    .banner .row.first .mobile-carousel .carousel-slide .bann_cont,
    .banner .row.first .mobile-carousel .carousel-slide .ban {
        position: absolute;
        z-index: 3;
        padding: 12px;
    }
    
    /* Improve text visibility on carousel */
    .banner .row.first .mobile-carousel .carousel-slide .bann_cont h1,
    .banner .row.first .mobile-carousel .carousel-slide .ban h4 {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .banner .row.first .mobile-carousel .carousel-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }
    
    /* Remove any background images and decorative elements */
    .banner .row.first .mobile-carousel .carousel-slide::before,
    .banner .row.first .mobile-carousel .carousel-slide::after,
    .banner .row.first .mobile-carousel .carousel-slide.big::before,
    .banner .row.first .mobile-carousel .carousel-slide.big::after,
    .banner .row.first .mobile-carousel .carousel-slide.smallest::before,
    .banner .row.first .mobile-carousel .carousel-slide.smallest::after {
        display: none !important;
        content: none !important;
        background: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Also hide decorative elements on carousel image containers */
    .banner .row.first .mobile-carousel .carousel-slide .image::before,
    .banner .row.first .mobile-carousel .carousel-slide .image::after {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
    }
    
    /* Hide the banshadow.webp background image on mobile carousel */
    .banner .row.first .mobile-carousel .carousel-slide .image:before,
    .banner .row.first .mobile-carousel .carousel-slide.big .image:before,
    .banner .row.first .mobile-carousel .carousel-slide.smallest .image:before {
        display: none !important;
        content: none !important;
        background: none !important;
        background-image: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    /* Also hide any background on the carousel container itself */
    .banner .row.first .mobile-carousel {
        background: none !important;
        background-image: none !important;
    }
    
    .banner .row.first .mobile-carousel .carousel-slide {
        background: none !important;
        background-image: none !important;
    }
    
    /* Carousel indicators - modern design */
    .banner .row.first .mobile-carousel .carousel-indicators {
        position: absolute;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 10;
        padding: 8px 12px;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        align-items: center;
    }
    
    .banner .row.first .mobile-carousel .carousel-indicators .indicator {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .banner .row.first .mobile-carousel .carousel-indicators .indicator:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.2);
    }
    
    .banner .row.first .mobile-carousel .carousel-indicators .indicator.active {
        background: #836FFF;
        width: 20px;
        height: 6px;
        border-radius: 3px;
        border-color: #836FFF;
        box-shadow: 0 0 8px rgba(131, 111, 255, 0.6);
    }

    /* Prevent horizontal scroll */
    body, html {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    .main, .container, .row {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .videoimagebanners {
        display: block !important;
        width: 100% !important;
        margin-top: 20px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box;
    }
    
    .videoimagebanners .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    .videoimagebanners .row {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box;
        overflow-x: hidden !important;
    }
    
    .videoimagebanners .banitems {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 10px;
    }
    
    .videoimagebanners .banitem {
        margin: 0 !important;
        height: 200px !important;
        border: 2px solid #836FFF !important;
        border-radius: 10px !important;
        padding: 2px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .videoimagebanners .banitem video.baniframe,
    .videoimagebanners .banitem img {
        border-radius: 8px !important;
    }
    
    .banner .row.onlymobile.third {
        display: none;
    }

    .bann.big .bann_cont{
        top: 10px;
        left: 20px;
        right: 20px;
    }

    .bann.big .bann_cont .button a{
        padding: 8px 25px;
        margin-left: 10px;
        margin-right: 5px;
    }
    
    .banner .row.first .bann.small .smallest .ban {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        bottom: 10px !important;
        padding: 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 2;
    }
    
    .banner .row.first .bann.small .smallest .image {
        height: 100% !important;
        width: 100% !important;
        display: block !important;
        position: relative !important;
    }
    
    .banner .row.first .bann.small .smallest .image img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }
    
    .banner .row.first .bann.small .smallest .cent {
        text-align: center;
    }
    
    .banner .row.first .bann.small .smallest h4 {
        font-size: 16px !important;
        color: #ffffff !important;
        margin: 0;
        padding-bottom: 5px;
    }
    
    .banner .row.first .bann.small .smallest .cost {
        font-size: 14px !important;
        color: #ffffff !important;
        display: block !important;
        margin: 5px 0;
    }
    
    .banner .row.first .bann.small .smallest .button {
        padding-top: 10px !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .banner .row.first .bann.small .smallest .button a {
        font-size: 12px !important;
        padding: 6px 20px !important;
    }

    .workpagecat .small .smallWork {
        width: 48%;
        margin-bottom: 10px;
    }

    .workpagecat .small {
        flex-wrap: wrap;
    }

    .workpagecat .small .smallWork:nth-child(3n)  {
        width: 100%;
    }

    .workpagecat .tgchans .small .smallWork {
        width: 100%;
        margin-bottom: 10px;
    }
    .smallWork .image {
        max-height: unset;
        height: 193px;
    }
    .smallWork .image img {
        object-fit: cover;
        height: 193px;
        min-height: unset;
    }

}
@media (max-width: 375px) {
    .modal-body {
        padding: 5px 20px;
        padding-top: 5px;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 120px);
    }
    
    .modal-body .forma form {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .modal-body .forma form .form-group:first-child {
        margin-top: 0 !important;
    }
    
    .modal-header {
        padding-bottom: 5px !important;
        flex-shrink: 0;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow: hidden;
    }
    .counrtyitem:not(:nth-child(4n)) {
        margin-right: unset;
    }
    .counrtyitem:not(:nth-child(4n)) {
        margin-right: 4px;
    }
}

/* Desktop: Show desktop banners, hide mobile carousel */
@media (min-width: 431px) {
    .banner .row.first .desktop-big-banner,
    .banner .row.first .desktop-small-banners {
        display: block !important;
    }
    
    .banner .row.first .mobile-carousel {
        display: none !important;
    }
    
    .banner .row.first .desktop-small-banners {
        display: flex;
        flex-direction: column;
        gap: 15px;
        height: auto;
    }
}