/* Страница карты */
/* топ инфа */

.map-top-info {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.map-top-info-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: url("../img/background-element.png") no-repeat;
    background-position: center;
    background-size: contain;
    box-sizing: border-box;
    max-width: 1440px;
    margin: 0 auto;
    margin-top: 50px;
}

.map-top-info-panel {
    order: 1;
    text-align: left;
    padding: 0 20px;
    padding-left: 0;
    margin-bottom: 90px;
    max-width: 650px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content:space-between;
    align-items: flex-start;
}

.map-top-info-panel ul {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.map-top-info-panel ul li p {
    margin: 0;
    margin-bottom: 5px;
}

.maps-image {
    order: 2;
    text-align: center;
    flex-shrink: 0;
    flex: 1;
}

.maps-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.map-top-info-panel h1 {
    font-size: 34px;
    line-height: 45px;
    margin-top: 0;
    margin-bottom: 20px;
}

.map-top-info-panel p {
    font-size: 18px;
    line-height: 26px;
}

.map-top-info-panel button {
    width: 260px;
    max-width: 100%;
    margin: 0;
}

@media (max-width: 1024px) {
    .map-top-info-container {
        padding: 40px 20px;
        background-size: cover;
    }
    
    .map-top-info-panel h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .map-top-info-panel p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 768px) {

    .map-top-info-panel ul {
        text-align: left;
    }

    .map-top-info-container {
        flex-direction: column;
        padding: 30px 15px;
        margin-top: 0;
    }
    
    .map-top-info-panel {
        order: 2;
        text-align: center;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .maps-image {
        order: 1;
        margin-bottom: 30px;
    }
    
    .map-top-info-panel h1 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 15px;
    }
    
    .map-top-info-panel p {
        font-size: 15px;
        line-height: 22px;
        margin-bottom: 20px;
    }
    
    .map-top-info-panel button {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .map-top-info-container {
        padding: 20px 10px;
    }
    
    .map-top-info-panel h1 {
        font-size: 22px;
        line-height: 28px;
    }
    
    .map-top-info-panel p {
        font-size: 14px;
        line-height: 20px;
    }
    
    .map-top-info-panel button {
        width: 100%;
        padding: 12px;
    }
}


/* Почему важно продвижение? */
.header {
    background: url("../img/bg-elements.svg") no-repeat;
    background-position-y: 50%;
    background-position-x: 20%;
}

.header-maps > h1 {
    font-size: 40px;
    line-height: 56px;
    text-align: left;
    margin-top: 50px;
}

.header-maps {
    margin-left: 100px;
    margin-right: 100px;
}

.header-maps-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 403px;
    min-height: 390px;
    border: 1px solid #5C84FB;
    border-radius: 15px;
    background-color: white;
}

.header-maps-info-border {
    border-left: 1px solid #5C84FB;
    border-right: 1px solid #5C84FB;
    padding-right: 24px;
    padding-left: 24px;
}

.header-maps-info-border:first-child {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 24px;
}

.header-maps-info-border:last-child {
    border-left: none;
    border-right: none;
    padding-right: 0;
    padding-left: 24px;
}

.header-maps-info > p {
    font-size: 20px;
    line-height: 28px;
    margin: 30px 36px 34px 36px;
}

.header-maps-info > img {
    margin-top: 34px;
}

.header-maps-info-box {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* Что продвижение дает вашему бизнесу? */

.header-promotion > h2 {
    font-size: 40px;
    line-height: 56px;
    margin-bottom: 34px;
    margin-top: 100px;
}

.header-promotion {
    margin-left: 100px;
    margin-right: 100px;
}

.header-promotion-box {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    max-width: 815px;
}

.header-promotion-box-img {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.header-promotion-box-first {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin-bottom: 19px;
}

.header-promotion-box-last {
    border-top: 1px solid #5C84FB;
}

.header-promotion-box-last > .header-promotion-box-items {
    margin-top: 19px;
    margin-right: 0;
}

.header-promotion-box-items > p {
    font-size: 20px;
    line-height: 28px;
    margin: 30px 36px 34px 36px;
}

.header-promotion-box-items > img {
    margin-top: 34px;
}

.header-promotion-box-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #5C84FB;
    border-radius: 15px;
    max-height: 444px;
    background-color: white;
}

.header-promotion-box-items:first-child {
    margin-left: 0;
}

.header-promotion-box-items:nth-child(3) {
    margin-top: 0;
}

.header-promotion-box-border {
    border-left: 1px solid #5C84FB;
    border-right: 1px solid #5C84FB;
    padding-right: 15px;
    padding-left: 15px;
}

.header-promotion-box-border:first-child {
    padding-left: 0;
    border: none;
}

.header-promotion-box-border:last-child {
    padding-right: 0;
    border: none;
}

.header-promotion-box-first > .header-promotion-box-border > .header-promotion-box-items {
    max-width: 269px;
    min-height: 444px;
}

.header-promotion-box-last > .header-promotion-box-items {
    min-height: 278px;
    max-width: 815px;
}

/* Кейсы наших клиентов */
.tasks-results {
    display: flex;
    flex-direction: row;
    margin: 25px;
    justify-content: space-between;
}

.tasks {
    display: flex;
    flex-direction: column;
    margin-right: 15px;
}

.tasks ul {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.yandexpams ul {
    list-style-type: disc;
}

.tasks h3 {
    font-size: 20px;
    line-height: 28px;
    margin: 0;
}

.results h3 {
    font-size: 20px;
    line-height: 28px;
    margin: 0;
}

.results {
    display: flex;
    flex-direction: column;
}

.results ul {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
}

.cases-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 50px;
    width: 100%;
}

.cases {
    background: url("../img/background-cases.png") no-repeat;
    margin-top: 50px;
}

.cases-container > h2 {
    font-size: 40px;
    line-height: 56px;
}

.cases-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 25px;
}

.cases-info {
    display: flex;
    flex-direction: column;
    background-color: white;
    border-radius: 15px;
    min-height: 625px;
    position:relative;
}

.cases-info > :nth-child(2) {
    font-size: 28px;
    line-height: 38px;
}

.cases-info > :nth-child(3) {
    font-size: 24px;
    line-height: 34px;
    margin-top: 10px;
}

.cases-info > p {
    margin-left: 50px;
    margin-right: 40px;
    margin-top: 0;
    margin-bottom: 0;
}

.cases-button > button {
    margin: 0 15px 10px 15px;
    position:absolute;
    bottom: 0;
}

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

.cases-info > .cases-button {
    align-items: flex-end;
}

.cases-border {
    border-bottom: 1px solid #A8B1CE;
    margin-left: 50px;
    margin-right: 50px;
    margin-top: 15px;
}

.cases-border > p {
    margin-top: 0;
}

/* блок с консультацией на странице яндекс карт */
.yandexmaps .consult {
    background: none;
}

.yandexmaps .grid-colums {
    border: 1px solid #5C84FB;
    border-radius: 15px;
}

@media (max-width: 1250px) {

    .works-advantages {
        max-width: 470px;
    }

    footer {
        margin-top: 0;
    }

    .header-promotion-box-items {
        max-height: 500px;
    }
    .cases-info {
        min-height: 650px;
    }

    .start-promotion {
        width: 270px;
    }

    .price-count > p {
        font-size: 48px;
    }

    .price-count-individual > p {
        font-size: 32px;
    }
}

@media (max-width: 1150px) {

    .header-maps {
        margin-right: 50px;
        margin-left: 50px;
    }

    .header-promotion {
        margin-right: 50px;
        margin-left: 50px;
    }

    .works-container {
        margin-right: 50px;
        margin-left: 50px;
    }

    .competitors-price-container {
        margin-right: 50px;
        margin-left: 50px;
    }
    .cases-info {
        min-height: 750px;
    }

    .cases {
        background: none;
        background-color: #CDDEFF;
        margin-top: 50px;
    }

}

@media (max-width: 930px) {
    .header-maps-info {
        min-height: 587px;
    }

    .header-promotion-box-img > img {
        display: none;
    }

    .works-advantages {
        max-width: 800px;
    }

    .competitors-price-border {
        max-width: 260px;
    }

    .cases-info {
        max-width: 280px;
    }

    .yandexmaps .reviews_border {
        min-width: 500px;
    }

    .yandexmaps .reviews_border :nth-child(5) {
        top: 85%;
    }

    .start-promotion {
        width: 240px;
    }

    .price-count > p {
        font-size: 40px;
    }

    .price-count-individual > p {
        font-size: 28px;
    }

    .competitors-price-h2 > img {
        margin-right: 100px;
    }
}

@media (max-width: 768px) {
    .tasks-results {
        flex-direction: column;
    }
    .popup-cases-img {
        flex-direction: column;
        padding: 10px;
    }
    
    #popup-cases-image {
        max-width: 100%;
        max-height: 300px;
        margin: 10px 0;
    }
    
    #left-arrow-scroller, #right-arrow-scroller {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }
    
    #left-arrow-scroller {
        left: 10px;
    }
    
    #right-arrow-scroller {
        right: 10px;
    }
    .cases-box {
        flex-direction: column;
    }

    .cases-info {
        max-width: 600px;
    }
    .after-image > img {
        max-width: 60%;
    }

    .cases-info {
        min-height: 600px;
    }
    .popup-button-div img {
        margin-left: 10%;
    }

    .fullscreen-image {
        max-width: 70vw;
        max-height: 70vh;
    }
}

@media (max-width: 650px) {

    .header-maps-info {
        max-width: 100%;
    }
    .header-maps-info-border:first-child {
        padding-right: 0;
        border: none;
    }

    .header-maps-info-box {
        flex-direction: column;
    }

    .header-maps-info-border {
        border-top: 1px solid #5C84FB;
        border-bottom: none;
        border-left: none;
        border-right: none;
        padding: 0;
        margin-bottom: 25px;
    }

    .header-maps-info {
        margin-top: 25px;
        min-height: 200px;
    }

    .header-promotion-box-items {
        margin-top: 25px;
    }

    .header-promotion-box-last > .header-promotion-box-items {
        margin-top: 25px;
    }

    .header-maps-info-border:last-child {
        padding-left: 0;
    }

    .header-promotion-box-first {
        flex-direction: column;
    }

    .header-promotion-box-border {
        padding-left: 0;
        padding-right: 0;
    }

    .header-promotion-box-first .header-promotion-box-border {
        border-top: 1px solid #5C84FB;
        border-bottom: none;
        border-left: none;
        border-right: none;
        margin-bottom: 25px;
    }

    .header-promotion-box-last {
        border-top: 1px solid #5C84FB;
        border-bottom: none;
        border-left: none;
        border-right: none;
    }

    .header-promotion-box-first .header-promotion-box-border:first-child {
        border-top: none;
    }

    .header-promotion-box-first > .header-promotion-box-border > .header-promotion-box-items {
        max-width: 100%;
    }

    .header-promotion-box-last > .header-promotion-box-items {
        max-width: 100%;
    }

    .header-promotion-box-items {
        width: 100%;
    }

    .header-promotion-box-first {
        margin-bottom: 0;
    }

    .header-maps > h1 {
        font-size: 34px;
    }

    .header-promotion > h2 {
        font-size: 34px;
    }

    .works-advantages-first {
        flex-direction: column;
        gap: 25px; 
    }

    .works-advantages-second {
        flex-direction: column;
        gap: 25px; 
    }

    .cases-box {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 25px;
    }

    .cases-box > :nth-child(2) {
        margin-right: 0;
        margin-left: 0;
    }

    .cases-box > :nth-child(3) {
        width: 100%;
    }

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

    .cases {
        background-color: #CDDEFF;
    }

    .works {
        background-color: #CDDEFF;
    }

    .works-advantages {
        max-width: 100%;
    } 
    .popup-button-div img {
        margin-left: 2%;
    }

    .header-promotion-box-first > .header-promotion-box-border > .header-promotion-box-items {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .after-image > img {
        max-width: 75%;
    }

    .popup-button-div img {
        margin-left: 0;
    }

    #popup-cases-image {
        max-height: 200px;
    }
    .competitors-price-h2 > img {
        margin-right: 100px;
    }

    .works-advantages-header-popup > p {
        font-size: 20px;
        font-weight: 600;
    }

    .works-advantages-text-popup > p {
        font-size: 16px;
    }

  
    .header-maps {
        margin-left: 18px;
        margin-right: 18px;
    }

    .header-promotion {
        margin-left: 18px;
        margin-right: 18px;
    }

    .works-container {
        margin-left: 18px;
        margin-right: 18px;
    }
    .header-maps-info > p {
        margin: 10px 15px 10px 15px;
    }

    .header-maps-info > img {
        margin-top: 15px;
    }

    .header-promotion-box-items > p {
        margin: 10px 15px 10px 15px;
    }

    .header-promotion-box-items > img {
        margin-top: 15px;
    }

    .header-promotion-box-first > .header-promotion-box-border > .header-promotion-box-items {
        min-height: 200px;
    }

}

@media (max-width: 414px) {
    .cases-info {
        min-height: 650px;
    }
}


@media (max-width: 390px) {
    .after-image > img {
        max-width: 85%;
    }

    .inner-item_maps {
        margin-top: 0;
    }

    .fullscreen-image {
        max-width: 60vw;
        max-height: 60vh;
    }

    #popup-cases-image {
        max-height: 150px;
    }
    .popup-button-div img {
        margin-left: 5%;
    }

    .header-maps > h1 {
        font-size: 32px;
        line-height: 44px;
    }

    .header-promotion > h2 {
        font-size: 32px;
        line-height: 44px;
    }

    .works-container > h2 {
        font-size: 32px;
        line-height: 44px;
    }

    .works-advantages-text > p {
        font-size: 20px;
        line-height: 28px;
    }

    

    .competitors-price-h2 > h2 {
        font-size: 32px;
        line-height: 44px;
        text-align: center;
    }

    .competitors-price-text > p {
        font-size: 20px;
        line-height: 28px;
        flex-direction: row;
    }

    .cases-container > h2 {
        font-size: 32px;
        line-height: 44px;
        text-align: center;
    }

    .cases-info > :nth-child(2) {
        font-size: 20px;
        line-height: 28px;
    }

    .cases-info > :nth-child(3) {
        font-size: 20px;
        line-height: 28px;
    }

    .cases-info > .cases-button {
        align-items: center;
    }

    .cases-button {
        justify-content: right;
    }

    .cases-info {
        max-width: 100%;
        min-height: 550px;
    }

    .cases-button > button {
        min-width: 110px;
        height: 42px;
    }

    .reviews > h2 {
        font-size: 32px;
        line-height: 44px;
    }


    .start-promotion {
        font-size: 16px;
        line-height: 24px;
        width: 303px;
        height: 44px;
    }

    .price-count-individual > p {
        font-size: 32px;
        line-height: 44px;
    }

    .cases-box {
        width: 100%;
    }
}


.popup-cases .popup-cases-main .cases-out-popup {
    justify-content: space-between;
}