@import "common.css";
@import "header.css";
@import "slider-arrow.css";
@import "page.css";

.poster {
    background: url("../../../src/public/img/poster.jpg") no-repeat top center;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about__content {
    display: flex;
    justify-content: space-between;
}

.about__description {

}

.slider {
    width: 555px;
    flex-shrink: 0;
    margin-right: 50px;
    position: relative;
}

.about__text {
    margin-bottom: 20px;
}

.about__text:last-child {
    margin-bottom: 0;
}

.organization__items {
    display: flex;
    justify-content: space-between;
}

.organization__item {
    width: 388px;
}

.organization__item-image {
    display: block;
    width: 100%;
    margin-bottom: 25px;
}


.services__item {
    margin-bottom: 25px;
}

.services__item_slider {
    display: flex;
}

.services__item:last-child {
    margin-bottom: 0;
}

.services__item-title {
    font-weight: 500;
    margin-bottom: 15px;
}

.services__item-text {
    margin-bottom: 10px;
}

.services__item-text:last-child {
    margin-bottom: 0;
}

.contact-page {
    border-top: 2px solid #e6e6e6;
    padding-top: 60px;
    padding-bottom: 120px;
}

.contact__content {
    margin-bottom: 40px;
}

.contact__text {
    margin-bottom: 15px;
}

.contact__text:last-child {
    margin-bottom: 0;
}

.contact__link {
    color: #000;
    margin-right: 10px;
    text-decoration: none;
    font-weight: 500;
}

.contact__map {
    margin-bottom: 30px;
}

.contact__map:last-child {
    margin-bottom: 0;
}

@media (min-width: 1200px) {
    .contact__link:hover {
        color: #1954D6;
    }
}

@media (max-width: 1199px) {
    .poster {
        min-height: 300px;
        height: 300px;
        background-size: cover;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .poster .content {
        padding: 0;
    }

    .poster__h1 {
        width: 300px;
    }

    .about__text {
        margin-bottom: 10px;
    }

    .organization__item-image {
        margin-bottom: 15px;
    }

    .services__item {
        margin-bottom: 15px;
    }

    .services__item-title {
        margin-bottom: 10px;
    }

    .contact-page {
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .contact__content {
        margin-bottom: 20px;
    }

    .contact__map {
        margin-bottom: 10px;
    }

}

@media (max-width: 480px) {
    .poster {
        background-position: top left -210px;
    }

    .about__content {
        flex-direction: column;
    }

    .slider {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .organization__items {
        flex-direction: column;
    }

    .organization__item {
        width: 100%;
        margin-bottom: 20px;
    }

    .organization__item:last-child {
        margin-bottom: 0;
    }

    .services__item_slider {
        flex-direction: column;
    }
}

@media (min-width: 481px) and (max-width: 1199px){
    .slider {
        width: calc(369*100%/738);
        margin-right: 30px;
    }

    .organization__item {
        width: calc(240*100%/738);
    }
}