@media screen and (max-width: 1130px) {
    .menu-item > div {
        left: -20px;
        padding: 35px 20px 65px;
    }

    .search-form {
        width: 100vw;
        left: 0; right: 0;
        height: 300px;
        padding: 0 30px;
    }

    .search-form-cont {
        gap: 30px;
        max-width: unset;
    }

    .running-lines-container {
        left: unset;
        max-width: unset;
        width: 100vw;
        transform: unset;
        padding: 0 20px;
    }

    .events-prev {
        padding-left: 0;
        justify-content: space-between;
        gap: 0;
    }

    .footer-top { flex-wrap: wrap; }
}

@media screen and (max-width: 1023px) {
    #menu-toggle-button { display: flex; }
    .menu-cont, .header-actions > a { display: none; }
    .logo { margin-left: -100px; }

    .hot-line {
        width: 200px;
        > p:first-child {
            font-size: 8px;
            margin-right: 10px;
        }
    }

    .middle-menu a, .middle-menu a:nth-child(2) { font-size: var(--font1); line-height: 14px; }

    .important-links { gap: 10px; }
    .subscribe-form { 
        padding: 25px; 
        > span {
            font-size: var(--font1);
            margin-right: 0;
        }
        input { width: calc(100% - 410px); }
    }

    .member-content { padding: 30px 20px; }
    .service-gallery, .news-grid { grid-template-columns: repeat(3, 1fr); }

    .news { gap: 20px; }
    .other-news { width: calc(29% - 20px); }
}

@media screen and (max-width: 900px) {
    .events-prev {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .event-calendar-cont {
        padding: 40px 20px 60px;
        &::after, &::before  { width: 100%; height: 50%; }
    }

    .events-swiper { width: 440px !important; }

    .side-nav { 
        padding: 30px 20px 40px; 
        width: 300px;
    }
    .about-page { width: calc(100% - 330px); }

    .links-grid { grid-template-columns: repeat(2, 1fr); }
    .link {
        font-size: var(--font2);
        line-height: 19px;
        padding: 0 20px;
        max-width: unset;
    }

    .contact-page { flex-direction: column; }
    .contact-left, .contact-right { width: 100%; }

    .news {
        flex-direction: column;
        gap: 40px;
    }

    .curr-news { width: 100%; }
    .other-news {
        width: 100%;
        > div { grid-template-columns: repeat(3, 1fr); } 
    }
}

@media screen and (max-width: 767px) {
    .hot-line { display: none; }
    .logo { margin: 0; }

    .dropdownMenu .hot-line { 
        border-color: var(--primary-color);
        display: flex; 
        width: 250px;
        p { font-size: 11px; }
    }

    .language-change > span:first-of-type {
        color: var(--text-color1);
        -webkit-text-stroke-color: var(--text-color1);
    }

    .middle-menu .content {
        display: grid;
        grid-template-columns: repeat(2,1fr);
        gap: 0;
    }

    .middle-menu a {
        background: var(--secondary-color);
        height: 50px;
        &:hover { height: 50px; }
        &::after { content: none; }
    }
    .middle-menu a:nth-child(3) { background: #cad5fc; grid-column: 1 / 3; }
    .middle-menu a:nth-child(even) { background: #dbe3ff; }

    .banner-cont { min-height: 350px; }
    .banner-swiper img { height: 350px; }

    .main-page {
        padding-top: 40px;
        .content { flex-direction: column; }
    }

    .main-left, .main-right { width: 100%; }
    .news-swiper:first-of-type { margin-bottom: 40px; }
    
    .side-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        a { width: 250px; }
    }

    .subscribe-form {
        flex-direction: column;
        align-items: flex-start;
        input { width: 100%; }
    }

    footer { padding: 40px 20px !important; }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        .footer-logo { display: none !important; }
        .socials { order: 1; }
        > div:last-child { order: 2; text-align: start; }
    }

    .footer-top .footer-logo { display: flex; width: 100%; }

    .municipality-page { flex-direction: column; }
    .side-nav, .about-page { width: 100%; }

    .program-links a, .program-name {
        font: var(--font1) 'BPG Mrgvlovani';
        line-height: 16px;
        padding: 15px 20px;
    }

    .program-text { 
        padding: 20px; 
        font-size: var(--font1);
    }

    .files { padding: 0; margin-bottom: 30px; }

    .curr-member { flex-direction: column; }
    .member-page { width: 100%; }

    .office-name { padding: 18px 20px; }

    .worker, .worker1 { flex-direction: column; }
    .worker-details, .worker1 .worker-details { 
        width: 100%;
        padding: 20px; 
        min-height: unset;
        .pos { 
            font-size: var(--font1);
            line-height: 16px;
            height: unset;
            overflow: unset;
            -webkit-line-clamp: unset;
            line-clamp: unset;
            margin-bottom: 15px;
        }
    }

    .organization-memb { 
        padding: 20px; 
        .worker-name {
            font-size: var(--font3);
            line-height: 20px;
        }
        .memb-details * {
            font-size: var(--font1);
            line-height: 18px;
        }
    }

    .request-page { flex-direction: column; }
    .request-form { width: 100%; }
    .request-right {
        width: 100%;
        > img { display: none; }
    }

    .upload-file { 
        display: block; 
        > span:first-child { margin-right: 20px; }
    }

    .custom-file-label { display: inline-flex; }
    .file-name { display: block !important; }

    .announce-head {
        padding: 20px;
        gap: 15px;
        height: unset;
        min-height: 115px;
        > div:first-child {
            padding-right: 15px;
            span:first-child {
                font-size: 22px;
                line-height: 24px;
            }
            span:last-child {
                font-size: var(--font2);
                line-height: 20px;
            }
        }
        .title {
            font-size: var(--font3);
            line-height: 20px;
            max-width: calc(100% - 120px);
        }
    }

    .announce-head > div:last-child {
        font-size: 10px;
        width: 25px; height: 25px;
    }

    .service-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .news-grid, .other-news > div { grid-template-columns: repeat(2, 1fr); gap: 20px 15px; }

    .curr-news > img { height: auto; }
}

@media screen and (max-width: 670px) {
    .members-grid { grid-template-columns: repeat(1, 305px); }

    .office-name {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 600px) {
    .important-links { grid-template: repeat(4, 200px) / 1fr;}
    .important-link:nth-child(3), .important-link:last-child { grid-column: unset; }

    .important-link .tag { font-size: var(--font1) !important; }

    .important-link:last-child .tag {
        line-height: 16px;
        right: 20px;
        top: 20px; left: 20px;
        padding: 10px 15px;
    }

    .important-link:last-child:hover .tag {
        top: 50%;
        transform: translateY(-50%);
    }

    .links-grid, .links-grid1 {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    .link {
        font-size: var(--font1);
        height: unset;
        min-height: 70px;
        padding: 20px;
    }
}

@media screen and (max-width: 550px) {
    .footer-top > .footer-menu:nth-child(3) { min-width: 320px; }
    .footer-top > .footer-menu:nth-child(3) div {
        width: 320px; height: unset;
    }
}

@media screen and (max-width: 500px) {
    .logo {
        img:first-child { display: none; }
        img:last-child { display: flex; width: 80px; }
    }

    .middle-menu a { font-size: 10px !important; }
    .banner-cont { min-height: 280px; }
    .banner-swiper img { height: 280px; }

    .events-swiper, .event-calendar-cont .flatpickr-calendar {
        width: 100% !important;
    }
    
    .events-swiper > p:first-child { font-size: var(--font3); }
    .event-slide {
        .title { font-size: var(--font2); }
    }

    .about-content { 
        padding: 30px 20px; 
        margin-bottom: 20px;
    }

    .member-content { 
        margin-bottom: 20px; 
        .name {
            font-size: var(--font3);
            line-height: 20px;
            margin-bottom: 15px;
        }
    }

    .page-title {
        font-size: var(--font3);
        margin-bottom: 20px;
    }

    .friendly-towns { grid-template-columns: repeat(3, 1fr); }

    .share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .details {
        flex-direction: column;
        gap: 15px;
    }

    .details div {
        gap: 5px;
        span:last-child, a:last-child {
            font-size: var(--font1);
            line-height: 16px;
        }
    }

    .organization-memb .worker-name {
        font-size: var(--font2);
        line-height: 16px;
        font-weight: bold;
    }

    .worker-details1 > p:first-child {
        font-size: var(--font1);
        line-height: 16px;
        margin-bottom: 15px;
    }

    .request-form {
        > p:first-child {
            font-size: var(--font2);
            line-height: 19px;
            margin-bottom: 15px;
        }
        > input { margin-bottom: 10px; }
    }

    .upload-file { margin-bottom: 10px; }
    .request-form button { width: 100%; }

    .answer {
        font-size: var(--font2);
        line-height: 19px;
    }
    .answer-content { padding: 20px 0; }

    .service-gallery img { 
        border-radius: 10px;
        height: 150px;
    }

    .contact-left div { padding: 20px; gap: 8px; }
    .contact-right iframe { height: 250px; }
} 

@media screen and (max-width: 420px) {
    .curr-member > img, .worker > img {
        width: 100%;
        height: unset;
    }

    .upload-file { padding: 0; }

    .announce-head {
        min-height: unset;
        gap: 10px;
        > div:first-child {
            padding-right: 10px;
            span:first-child {
                font-size: var(--font2);
                line-height: 19px;
            }
            span:last-child {
                font-size: 10px;
                line-height: 13px;
            }
        }
        .title {
            font-size: var(--font1);
            line-height: 16px;
            max-width: calc(100% - 90px);
        }
    }

    .news-grid, .other-news > div { grid-template-columns: repeat(1, 1fr); }

    .curr-news .title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 15px;
    }
    .curr-news .date { margin-bottom: 15px; }
    .news-text { padding: 20px; }
}

@media screen and (max-width: 360px) {
    .footer-top > .footer-menu:nth-child(3) div { width: 250px; }
}