/* header */
header {
    padding-top: 50px;
    margin-bottom: 90px;
    align-items: center;
}

.artists-title, .pab-title {
    font-size: 35px;
    line-height: 29.41px;
    text-transform: uppercase;
}

/* slider */
.slider {
    position: relative;
    width: 100%;
    height: 367px;
    margin: 50px 0;
    display: flex;
}

.slider .swiper-container {
    width: 100%;
}

.swiper-slide {
    width: 146px;
    height: 100%;
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    border: 1px solid #fff;
    cursor: pointer;
    position: relative;
    /*transition-duration: 0.3s;*/
    transition: width 0.5s;
}

/*.swiper-slide:after {*/
    /*content: '_';*/
    /*position: absolute;*/
    /*bottom: -20px;*/
    /*left: 2px;*/
    /*opacity: 0.5;*/
/*}*/

.slide-active {
    transition: width 0.5s;
    width: calc(100% - 146px * 3);
}

.slide-active.swiper-slide:after {
    opacity: 1;
}

/*direction block */
.directions .sidebar, .team .sidebar {
    width: 265px;
    flex: 1;
    padding-right: 27px;
}

.directions > div:not(:last-child), .team > div:not(:last-child) {
    border-right: 1px solid #7f7f7f;
}

.direction-list {
    padding-left: 0;
    margin: 44px 0;
}

.direction-item {
    font-size: 14px;
    font-style: italic;
    line-height: 22px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    padding-left: 40px;
}

.direction-item:before {
    content: '\25E2';
    font-size: 16px;
    position: absolute;
    left: 0;
}

.direction-item a {
    font-size: inherit;
    line-height: inherit;
}

.direction-content, .team-content {
    flex: 4;
    padding-left: 48px;
}

.direction-content p:first-child {
    margin-top: 0;
}

.direction-content > p {
    line-height: 22px;
}

/* team block */
.form > input, .form select {
    width: 100%;
    border: none;
    outline: none;
    border-bottom: 1px solid #b1b1b1;
    padding: 6px 0;
    margin-bottom: 25px;
    max-width: 220px;
}

::-webkit-input-placeholder {
    color: #b1b1b1;
    font-style: italic;
    font-size: 15px;
    line-height: 27px;
    height: 27px;
}
::-moz-placeholder {
    color: #b1b1b1;
    font-style: italic;
    font-size: 15px;
    line-height: 27px;
    height: 27px;
}
:-moz-placeholder {
    color: #b1b1b1;
    font-style: italic;
    font-size: 15px;
    line-height: 27px;
    height: 27px;
}
:-ms-input-placeholder {
    color: #b1b1b1;
    font-style: italic;
    font-size: 15px;
    line-height: 27px;
    height: 27px;
}

.form select {
    color: #b1b1b1;
    font-style: italic;
    font-size: 15px;
    line-height: 27px;
    cursor: pointer;
}

.form textarea {
    border: none;
    outline: none;
    width: 100%;
    max-width: 220px;
    height: 30px;
    border-bottom: 1px solid #b1b1b1;
    margin-bottom: 25px;
}

.team .sidebar, .team-content  {
    padding-top: 25px;
    padding-bottom: 25px;
    position: relative;
}

.team-page .team .sidebar,
.team-page .team-content  {
    padding-top: 50px;
    padding-bottom: 50px;
}

.team .sidebar:before {
    content: '';
    width: 4px;
    height: 1px;
    position: absolute;
    background-color: #fff;
    top: -1px;
    right: 0;
}

.team .sidebar:after {
    content: '';
    width: 4px;
    height: 1px;
    position: absolute;
    background-color: #fff;
    bottom: -1px;
    right: 0.3px;
}

.team-content:before  {
    content: '';
    width: 1px;
    height: 4px;
    position: absolute;
    background-color: #fff;
    top: 0px;
    left: -1px;
}

.team-content {
    flex-wrap: wrap;
    position: relative;
}

.team-worker {
    width: 50%;
}

.team-worker .team-worker__content {
    display: flex;
}

.team-page .team-worker {
    margin-bottom: 20px;
}

.team-position, .weekends {
    font-size: 14px;
    font-style: italic;
    line-height: 27px;
    text-transform: uppercase;
    letter-spacing: 2.8px;
    color: #8f8f8f;
    margin-top: 0;
    margin-bottom: 20px;
}

.team-position {
    margin-bottom: 12px;
}

.worker-photo {
    margin-right: 30px;
    position: relative;
}

.worker-info::after {
    content: "";
    position: relative;
    display: block;
    width: 87px;
    height: 4px;
    background-color: #000;
    left: -40px;
}

.worker-contacts {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
}

/* map block */
.art-location  {
    width: calc(100% - 125px);
    /*height: 441px;*/
    height: 500px;
    position: relative;
}

.art-location-wrapper .h3-title {
    margin-right: 15px;
}

.weekends {
    margin: 0;
}

.art-address-block {
    position: absolute;
    /*top: 46px;*/
    top: 30px;
    /*right: 152px;*/
    right: 12px;
    /*width: 248px;*/
    width: auto;
    max-width: 310px;
    padding: 27px 25px 35px 51px;
    background-color: #ffffff;
    letter-spacing: 0.7px;
}

.art-address-block:after {
    content: '';
    width: 4px;
    height: 119px;
    background-color: #000;
    position: absolute;
    left: 28px;
    top: -13px;
}

.art-address-block:before {
    content: url(../img/shape.png);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.art-name {
    font-weight: 700;
    text-transform: uppercase;
}

.art-address {
    font-weight: 400;
    font-size: 14px;
}

.art-free {
    color: #8f8f8f;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
}

.contact {
    font-weight: 600;
    font-size: 14px;
    margin: 8px 0 10px;
}

.phone {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

.email {
    display: block;
    margin: 8px 0;
    font-size: 14px;
}

 .contact-form select {
    background-color: transparent;
}


/* ============================ MEDIA ============================ */


/*@media all and (max-width: 1421px) {*/
    /*.art-location {*/
        /*width: calc(100% - 125px + 55px);*/
        /*margin-left: -55px;*/
    /*}*/
/*}*/

.worker-info {
    position: relative;
}

@media all and (max-width: 1024px) {
    .team-worker {
        margin-bottom: 50px;
    }

    .team-worker .team-worker__content {
        flex-direction: column;
    }

    .worker-info {
        padding-left: 35px;
    }

    .worker-info::after {
        content: "";
        width: 4px;
        height: 87px;
        background-color: #000;
        position: absolute;
        top: -15px;
        bottom: auto;
        right: auto;
        left: 15px;
    }

    .worker-contacts.worker-contacts--email {
        margin-left: 34px;
        font-size: 14px;
        word-break: normal;
    }

    .direction-item:before {
        content: "";
        width: 5px;
        height: 5px;
        margin-top: 8px;
        background-color: #000;
        border: none;
    }

    .direction-item {
        padding-left: 15px;
    }
}

@media all and (max-width: 768px) {
    .directions {
        flex-direction: column;
    }

    .slider {
        width: calc(100% + 100px);
        margin: 35px -50px 90px -50px;
    }

    .slider .swiper-pagination {
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
    }

    .swiper-pagination-bullet {
        width: 7px;
        height: 1px;
        background-color: #000;
        margin-right: 6px;
        opacity: 1;
    }

    .swiper-pagination-bullet.swiper-pagination-bullet-active {
        transform: rotate(50deg);
    }

    .swiper-pagination-bullet-active, .swiper-pagination-bullet:focus {
        outline: none;
    }

    .directions > div.direction-content {
        border-right: none;
    }

    .direction-content {
        padding-left: 0;
        position: relative;
        order: 1;
    }

    /*read-more*/
    .directions .read-more  {
        font-size: 14px;
        font-weight: 700;
        line-height: 27px;
        text-transform: uppercase;
        cursor: pointer;
        order: 2;
        margin: 40px 0;
    }

    .directions .read-more span {
        padding: 0 12px;
    }

    .directions .read-more:before {
        content: '';
        width: 147px;
        height: 4px;
        background-color: #000;
        vertical-align: middle;
        display: inline-block;
    }

    .directions .read-more:after {
        content: '\25BC';
        font-size: 12px;
    }

    .directions .sidebar {
        width: calc(100% + 41px);
        order: 3;
        border-top: 1px solid #7f7f7f;
        margin-left: -50px;
        padding-left: 50px;
        padding-top: 34px;
        position: relative;
    }

    .directions .sidebar:after {
        content: "";
        width: 50px;
        display: block;
        height: 1px;
        top: -1px;
        right: -50px;
        position: absolute;
        background-color: #7f7f7f;
    }

    .directions .sidebar:before, .art-location:before {
        content: "";
        width: 2px;
        display: block;
        height: 4px;
        top: 0px;
        right: -2px;
        position: absolute;
        background-color: #fff;
    }

    .direction-list {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }

    /*team*/
    .team {
        padding-top: 115px;
        flex-direction: column-reverse;
    }

    .team .title-h1 {
        position: absolute;
        top: 40px;
        left: 30px;
    }

    .team .sidebar {
        width: 100%;
        position: static;
        border-top: 1px solid #7f7f7f;
    }

    .team > div.sidebar {
        border-right: none;
        width: calc(100% + 150px);
    }

    .team-content {
        padding: 0;
    }

    .worker-info {
        margin-top: 40px;
    }

    .team .contact-form {
        width: 100%;
        margin-top: 30px;
        max-width: 500px;
    }

    .wpcf7-list-item {
        width: 44%;
    }

    .team .contact-form .h3-title {
        margin-bottom: 30px;
    }

    .team .contact-form input[type="text"],
    .team .contact-form input[type="email"],
    .team .contact-form select,
    .team .contact-form textarea {
        width: 44%;
        margin-right: 25px;
    }

    .team .contact-form textarea {
        margin-bottom: -10px;
    }

    .team .wpcf7-list-item input[type="checkbox"] {
        width: auto;
        margin-right: 0;
    }

    .team .wpcf7-list-item label {
        width: 50%;
        margin-top: 30px;
    }

    .team .footer-form-submit {
        float: left;
        margin: 40px 20px 0px 0;
        min-width: 180px;
    }

    .weekends {
        line-height: 1;
    }

    .art-location-wrapper .vertical-text {
        height: 420px;
    }

    .art-location-wrapper .sidebar {
        width: 8px;
    }

    .art-location-wrapper .h3-title {
        /*margin-right: 0;*/
        line-height: 1;
    }

    .art-location {
        width: calc(100% + 32px);
        border-right: 1px solid #7f7f7f;
    }

    .art-address-block {
        top: 115px;
        right: 10px;
        padding: 10px 25px 10px 45px;
    }
}

@media all and (max-width: 640px) {

    .art-location-wrapper .sidebar {
        width: 0;
    }

    .art-location {
        width: calc(100% + 60px);
    }

    .directions .read-more {
        text-align: left;
    }

    .team .contact-form input[type="text"],
    .team .contact-form input[type="email"],
    .team .contact-form select,
    .team .contact-form textarea {
        margin-right: 10px;
    }

    .directions .sidebar {
        width: calc(100% + 62px);
    }

    .team .sidebar:after {
        display: none;
    }

}

@media all and (max-width: 600px) {
    .team-worker {
        width: 100%;
    }

}

@media all and (max-width: 425px) {
    .direction-list {
        column-count: 1;
    }

    .team .contact-form input[type="text"],
    .team .contact-form input[type="email"],
    .team .contact-form select,
    .team .contact-form textarea {
        width: 100%;
        margin-right: 0;
        max-width: 100%;
    }

    .team .wpcf7-list-item label {
        width: 100%;
    }

    .team .footer-form-submit {
        float: initial;
        margin: 40px 0 0 0;
        width: 100%;
    }

    .slider .swiper-slide {
        background-repeat: no-repeat !important;
        background-size: contain !important;
    }

    .slider {
        margin-bottom: 80px;
    }

    .team > div.sidebar {
        margin-left: -20px;
        margin-right: 0;
        padding-left: 20px;
        width: calc(100% + 40px);
    }

    .directions .sidebar {
        width: calc(100% + 4px);
        margin-left: -45px;
        padding-left: 45px;
    }

    .directions .sidebar:after {
        width: 40px;
        right: -40px;
    }

    .slider {
        width: calc(100% + 40px);
        margin: 35px -20px 90px -20px;
    }
}

/*NEW*/
@media all and (max-width: 1440px) {
    .art-location {
        width: calc(100% - 65px + 30px);
        margin-left: -30px;
    }

    .slider {
        padding-right: 30px;
    }

    .worker-contacts {
        word-break: break-word;
    }

    .team-position, .weekends {
        line-height: 1.4;
    }

    .direction-content, .team-content {
        padding-right: 30px;
    }
}

@media all and (max-width: 1200px) {
    .team  .contact-form {
        width: 100%;
        margin-left: 0;
    }
}

@media all and (max-width: 768px) {
    .directions .sidebar {
        width: calc(100% + 4px) !important;
    }

    .team > div.sidebar {
        width: calc(100% + 45px) !important;
        margin-left: -30px;
    }

    .team  .contact-form {
        margin-right: 30px;
    }

    .team div.wpcf7 {
        padding-left: 30px !important;
    }
}

@media all and (max-width: 640px) {
    .art-location {
        width: calc(100% - 65px + 30px);
    }
}

@media all and (max-width: 425px) {
    .art-location {
        width: calc(100% - 45px + 30px);
    }

     .team div.wpcf7 {
        padding-left: 0 !important;
    }

    .directions > div.direction-content {
        padding-right: 20px;
    }

    .art-location-wrapper .h3-title {
        margin-right: 0;
    }
}


