
/* Основная информация */
.gradient-text {
    background: linear-gradient(180deg, #000DD4 0%, #080F6F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #0B2349;
    font-size: 42px;
    line-height: 50px;
    font-weight: bold;
    margin: 0;
    max-width: 529px;
}

.header-map {
    max-width: 1512px;
    display: flex;
    justify-content: center;
}

.header-map-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: column dense;
    margin: 50px 100px 100px 100px;
    column-gap: 0;
    row-gap: 0;
    justify-content: stretch;
}

.header-map_p {
    font-size: 18px;
    line-height: 24px;
}

.map-on-slider {
    grid-row: span 4;
}
.map-on-slider > img {
    max-width: 655px;
}

.header-map_up-in-search {
    display: flex;
    border:solid black;
    justify-content: flex-start;
    border-radius: 40px;
    border: 1px solid black;
    align-items: center;
    height: 72px;
    padding: 0;
    width: 507px;
    height: 72px;
    gap: 0;
}
.header-map_up-in-search > img {
    margin-left: 25px;
}

.header-map_up-in-search > p {
    font-size: 16px;
    line-height: 20px;
    margin-left: 6px;
}

.header-map_up-in-search > button {
    margin-left: 36px;
}

.header-map_top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.header-map_top_compaigns {
    display: flex;
    align-items: center;
}
.header-map_top_clients {
    display: flex;
    align-items: center;
}

.header-map_top img {
    margin-left: 16px;
    margin-right: 16px;
}

.header-map_top > div > span {
    font-size: 42px;
    line-height: 62px;
    margin-right: 10px;
}
.header-map_top_compaigns > p {
    font-size: 14px;
    line-height: 20px;
}
.header-map_top_clients > p {
    font-size: 14px;
    line-height: 20px;
}

.desktop-only {
    display: inline;
}

@media (max-width: 1200px) {
    .header-map-box {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }

    .map-on-slider {
        order: 0;
    }

    .gradient-text {
        order: 1;
        margin-top: -30%;
    }

    .header-map_p {
        order: 2;
    }

    .header-map_up-in-search {
        order: 3;
    }

    .header-map_top {
        order: 4;
    }
}

@media (max-width: 768px) {
    .map-on-slider > img {
        max-width: 400px;
    }

    .header-map-box {
        max-width: 600px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 25px;
    }

    .gradient-text {
        font-size: 32px;
        line-height: 44px;
    }

    .header-map_top > div > span {
        font-size: 32px;
        line-height: 48px;
        margin-right: 10px;
    }

    .header-map_up-in-search > button {
        margin-left: 5px;
        margin-right: 5px;
    }
    
    .desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    .header-map-box {
        max-width: 420px;
    }

    .gradient-text {
        max-width: 420px;
    }

    .header-map_p {
        max-width: 420px;
    }

    .header-map_up-in-search {
        max-width: 420px;
    }

    .header-map_top {
        max-width: 420px;
    }
}
@media (max-width: 430px) {
    .header-map-box {
        max-width: 400px;
        margin: 25px 18px 25px 18px;
    }

    .gradient-text {
        max-width: 400px;
    }

    .header-map_p {
        max-width: 400px;
    }

    .header-map_up-in-search {
        max-width: 400px;
    }

    .header-map_top {
        max-width: 400px;
    }
}

@media (max-width: 414px) {
    .header-map-box {
        max-width: 324px;
    }

    .gradient-text {
        max-width: 324px;
    }

    .header-map_p {
        max-width: 324px;
    }

    .header-map_up-in-search {
        max-width: 324px;
        height: auto;
    }
    .header-map_up-in-search > button {
       height: auto;
       font-size: 14px;
    }

    .header-map_top {
        max-width: 324px;
    }
    .map-on-slider > img {
        max-width: 300px;
    }   
}

@media (max-width: 325px) {
    .header-map-box {
        max-width: 290px;
    }

    .gradient-text {
        max-width: 290px;
    }

    .header-map_p {
        max-width: 290px;
    }

    .header-map_up-in-search {
        max-width: 290px;
        height: auto;
    }
    .header-map_up-in-search > button {
       height: auto;
       font-size: 14px;
    }

    .header-map_top {
        max-width: 290px;
    }
    .map-on-slider > img {
        max-width: 270px;
    }
}

/* Макс трафик с геосервисов */
.bg_image {
    display: flex;
    flex-direction: column;
    background: url("../img/background-element.png") no-repeat;
    background-position: bottom;
    background-position-y: 600px;
    gap: 0;
    max-width: 1512px;
    row-gap: 0;
}

.max_traff_geo_box {
    display: flex;
    justify-content: center;
    margin: 50px 100px 50px 100px;
}

.max_traff_geo {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-height: 621px;
    margin-bottom: 100px;
    max-width: 1312px;
}

.max_traff_geo_div_right {
    margin-left: 25px;
    padding: 25px;
}

.max_traff_geo_img > img {
    max-width: 615px;
    max-height: 640px;
    filter: drop-shadow(5px 5px 10px gray);
}

.buttons-on-geo {
    display: flex;
    margin: 0;
    gap: 15px;
}

.traff_sites_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1312px;
    margin: 0 auto;
}

.traff_sites_left_div {
    flex: 1;
    padding-right: 25px;
}

.traff_sites_img {
    flex: 1;
}

.traff_sites_img > img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px gray);
}

.desktop-br {
    display: inline;
}

@media (max-width: 1200px) {
    .max_traff_geo {
        flex-direction: column;
        max-height: none;
        margin-bottom: 60px;
    }
    
    .max_traff_geo_img > img {
        max-width: 100%;
        height: auto;
    }
    
    .max_traff_geo_div_right {
        margin-left: 0;
        text-align: center;
        padding: 15px 0;
    }
    
    .buttons-on-geo {
        justify-content: center;
    }
    
    .traff_sites_wrapper {
        flex-direction: column-reverse;
    }
    
    .traff_sites_left_div {
        text-align: center;
        padding-right: 0;
        padding-top: 30px;
    }
    
    .bg_image {
        background-position-y: 500px;
    }
}

@media (max-width: 992px) {
    .max_traff_geo_div_right > h2,
    .traff_sites_left_div h2 {
        font-size: 34px;
        line-height: 46px;
    }
    
    .max_traff_geo_div_right > :nth-child(2),
    .traff_sites_left_div > :nth-child(2) {
        font-size: 24px;
        line-height: 32px;
    }
    
    .max_traff_geo_div_right > :nth-child(3),
    .traff_sites_left_div > :nth-child(3) {
        font-size: 20px;
        line-height: 28px;
    }
    
    .bg_image {
        background-position-y: 450px;
    }
}

@media (max-width: 768px) {
    .max_traff_geo {
        margin-bottom: 50px;
    }
    
    .max_traff_geo_div_right > h2,
    .traff_sites_left_div h2 {
        font-size: 28px;
        line-height: 38px;
    }
    
    .max_traff_geo_div_right > :nth-child(2),
    .traff_sites_left_div > :nth-child(2) {
        font-size: 20px;
        line-height: 28px;
    }
    
    .max_traff_geo_div_right > :nth-child(3),
    .traff_sites_left_div > :nth-child(3) {
        font-size: 18px;
        line-height: 26px;
    }
    
    .buttons-on-geo {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .detail, .application {
        width: 100%;
        max-width: 280px;
    }
    
    .bg_image {
        background-position-y: 400px;
        background-size: contain;
    }
    
    .desktop-br {
        display: none;
    }
}

@media (max-width: 576px) {
    .max_traff_geo_div_right > h2,
    .traff_sites_left_div h2 {
        font-size: 24px;
        line-height: 32px;
    }
    
    .max_traff_geo_div_right > :nth-child(2),
    .traff_sites_left_div > :nth-child(2) {
        font-size: 18px;
        line-height: 24px;
    }
    
    .max_traff_geo_div_right > :nth-child(3),
    .traff_sites_left_div > :nth-child(3) {
        font-size: 16px;
        line-height: 22px;
    }
    
    .max_traff_geo_div_right,
    .traff_sites_left_div {
        padding: 10px 0;
    }
    
    .bg_image {
        background-position-y: 350px;
    }
    
}

@media (max-width: 480px) {
    .bg_image {
        background-position-y: 300px;
    }
    
    .detail, .application {
        padding: 10px 20px;
        height: auto;
        font-size: 14px;
    }
}
 
/* Работы с отзывами */
.reviews-service {
    padding: 60px 0;
    background-color: #fff;
}

.reviews-service .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1312px;
    margin: 0 auto;
}

.reviews-service-photo {
    flex: 1;
    padding: 20px;
    padding-left: 0;
}

.reviews-service-photo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px gray);
    border-radius: 15px;
}

.reviews-service-text {
    flex: 1;
    padding: 25px;
}

.reviews-service .buttons-on-geo {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .reviews-service .container {
        flex-direction: column;
    }
    
    .reviews-service-photo {
        order: -1;
        margin-bottom: 30px;
    }
    
    .reviews-service-text {
        text-align: center;
        padding: 15px 0;
    }
    
    .reviews-service .buttons-on-geo {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .reviews-service {
        padding: 50px 0;
    }
    
    .reviews-service-photo img {
        max-width: 80%;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .reviews-service {
        padding: 40px 0;
    }
    
    .reviews-service .buttons-on-geo {
        flex-direction: column;
        align-items: center;
    }
    
    .reviews-service .buttons-on-geo .detail,
    .reviews-service .buttons-on-geo .application {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 576px) {
    .reviews-service {
        padding: 30px 0;
    }
    
    .reviews-service-photo {
        padding: 10px;
    }
    
    .reviews-service-text {
        padding: 10px 0;
    }
    
    .reviews-service-photo img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .reviews-service .buttons-on-geo .detail,
    .reviews-service .buttons-on-geo .application {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .reviews-service br {
        display: none;
    }
}


.cases-sites-on-index-img img {
    max-width: 250px;

}

.cases-sites-on-index-info p {
    margin:0;
    margin-top: 15px;
}
.cases-maps-on-index-info p {
    margin:0;
    margin-top: 15px;
}



.cases-sites-on-index-img {
    display: flex;
    justify-content: center;
}

.cases-maps-on-index-img {
    display: flex;
    justify-content: center;
}

.cases-maps-on-index-img img {
    max-width: 250px;
}

.cases-sites-on-index-info {
    display: flex;
    flex-direction: column;
}

.cases-maps-on-index-info {
    display: flex;
    flex-direction: column;
}

.cases-maps-on-index {
    border: 1px solid #5C84FB;
    border-radius: 15px;

}

.cases-sites-on-index {
    border: 1px solid #5C84FB;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}

.cases-maps-on-index-img {
    margin: 15px;
}

.cases-maps-on-index-info {
    margin: 15px;
}

.inner-container-sites {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 15px;
    margin-top: 25px;
}

.inner-container-maps {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.cases-sites-on-index-info {
    margin: 25px;
}

.cases-maps-on-index-info {
    margin: 25px;
}

.cases-on-index .container {
    flex-direction: column;
}

.cases-sites-on-index {
    width: 100%;
}

.inner-container-sites {
    width: 100%;
}

.inner-container-maps {
    width: 100%;
}

.cases-maps-on-index {
    width: 100%;
}

.cases-sites-on-index-info:nth-child(2) {
    font-size: 18px;
    line-height: 34px;
    margin-top: 15px;
}

.cases-maps-on-index-info:nth-child(2) {
    font-size: 18px;
    line-height: 34px;
    margin-top: 15px;
}
.cases-sites-on-index-info button {
    margin-top: 15px;
}

.cases-maps-on-index-info button {
    margin-top: 15px;
}

.cases-sites-on-index-info .paragraph-medium {
    font-weight: 600;
}

.cases-maps-on-index-info .paragraph-medium {
    font-weight: 600;
}

.thumbnails {
    font-size: 16px;
    margin-top: 15px;
    margin-left: 25px;
    margin-bottom: 0;
    color: #404040;
}

.cases-index-button {
    display: flex;
    justify-content: right;
}

.cases-index-button button {
    margin: 0 25px 0 0;
}

@media (max-width: 1200px) {
    .cases-index-button button {
        margin-top: 25px;
    }
}

@media (max-width: 800px) {

    .inner-container-sites {
        flex-direction: column;
    }

    .inner-container-maps {
        flex-direction: column;
    }
}

.buttons-on-geo button {
    margin-right: 0;
}

@media (max-width: 768px) {
    #popup-cases-image {
        max-width: 100%;
        max-height: 300px;
        margin: 10px 0;
    }
    .fullscreen-image {
        max-width: 70vw;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    #popup-cases-image {
        max-height: 200px;
    }
}

@media (max-width: 390px) {
    #popup-cases-image {
        max-height: 150px;
    }
    .fullscreen-image {
        max-width: 60vw;
        max-height: 60vh;
    }
}