.popup {
    position: fixed;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    overflow-y: scroll;
    background: rgba(1, 1, 1, 0.7);
    z-index: 1000000;
    display: none;
}

.flex2 {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

.project-page {
    padding: 30px 0 0;
}

.project-page .top-line {
    text-align: right;
    font-weight: 300;
    margin-bottom: 40px;
}

.project-page h1 {
    text-align: center;
    margin-bottom: 30px;
    font-family: "Myriad Pro";
    font-weight: 700;
    text-transform: none;
    color: #000;
    font-size: 24px;
}

.project-page p {
    line-height: 20px;
    margin-bottom: 25px;
}

.project-page .idea-button {
    text-align: center;
    padding: 20px 0 60px;
}

.project-page .idea-button button {
    color: #fff;
    border: 1px solid #cd7f32;
    width: 270px;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
}

.project-page .idea-button button:hover {
    color: #fff;
    background: #2e3337;
    border: 1px solid #2e3337;
}

.project-page .design {
    text-align: center;
}

.project-page .design .name {
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 10px;
}

.project-page .design p {
    padding: 10px 0 30px;
    font-size: 22px;
    line-height: 28px;
}

.project-page .design .list {
    background: #f0f0f0;
    padding: 50px 0;
    margin-bottom: 40px;
}

.project-page .design .list .item {
    width: 32%;
    margin-bottom: 30px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 10px;
    background: #fff;
    -webkit-box-shadow: rgba(1, 1, 1, 0.1) 0 6px 12px;
    box-shadow: rgba(1, 1, 1, 0.1) 0 6px 12px;
}

.project-page .design .list button {
    color: #fff;
    border: 1px solid #cd7f32;
    width: auto;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
    padding: 1px 30px;
    margin-top: 20px;
}

.project-page .design .list button:hover {
    color: rgb(255, 255, 255);
    background: rgb(46, 51, 55);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(46, 51, 55);
    border-image: initial;
}

.project-page .individual {
    text-align: center;
    padding-bottom: 40px;
    line-height: 24px;
}

.project-page .individual button {
    color: #fff;
    border: 1px solid #cd7f32;
    width: auto;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
    padding: 1px 30px;
    margin: 40px auto 0 auto;
}

.project-page .individual button:hover {
    color: #fff;
    background: #2e3337;
    border: 1px solid #2e3337;
}

.project-page .works {
    text-align: center;
}

.project-page .works .name {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 20px;
}

.project-page .works p {
    font-size: 22px;
    line-height: 34px;
    margin-bottom: 60px;
}

.project-page .works .item {
    width: 22.5%;
    margin-bottom: 50px;
    overflow: hidden;
    position: relative;
}

.project-page .works .item:hover img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.project-page .works .item:hover .content button {
    display: block;
}

.project-page .works .item:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
}

.project-page .works .item img {
    width: 100%;
    -webkit-transition: all 200ms ease;
    transition: all 200ms ease;
}

.project-page .works .item .content {
    width: 100%;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 0;
    padding: 0 10px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
}

.project-page .works .item .content button {
    display: block;
    margin: 20px auto 0 auto;
    font-weight: 700;
    text-transform: uppercase;
    background: #fff;
    padding: 10px 20px;
    border: 0;
    font-family: 'Geometria';
    display: none;
}

.project-page form {
    text-align: center;
    padding: 30px 0 60px;
}

.project-page form .name {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 40px;
}

.project-page form input[type='text'] {
    margin-bottom: 25px;
    width: 760px;
    height: 60px;
    border: 1px solid #000;
    padding: 0 20px;
    font-size: 18px;
    font-family: "MyriadProLight", sans-serif;
}

.project-page form textarea {
    margin-bottom: 25px;
    width: 760px;
    height: 100px;
    border: 1px solid #000;
    padding: 15px 20px;
    font-size: 18px;
    font-family: "MyriadProLight", sans-serif;
}

.project-page form button {
    display: block;
    margin: 0 auto 30px;
    color: #fff;
    border: 1px solid #cd7f32;
    width: 200px;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
    padding: 1px 30px;
}

.project-page form button:hover {
    color: rgb(255, 255, 255);
    background: rgb(46, 51, 55);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(46, 51, 55);
    border-image: initial;
}

.project-page form .bottom-text {
    font-size: 13px;

}

.project-page form .bottom-text a {
    color: #ff0000 !important;
    text-decoration: underline;
}

.project-page .more-services {
    background: #f7f7f7;
    padding: 50px 0;
    text-align: center;
}

.project-page .more-services .name {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 40px;
}

.project-page .more-services .item {
    margin-bottom: 30px;
    width: 48.5%;
    background: #eeeeee;
    -webkit-box-shadow: 0px 0px 10px 0px #b8b8b8;
    box-shadow: 0px 0px 10px 0px #b8b8b8;
}

.project-page .more-services .item .image {
    height: 216px;
}

.project-page .more-services .item .content {
    padding: 50px;
    width: auto;
}

.project-page .more-services .item .content span {
    display: block;
    font-weight: 700;
    font-size: 36px;
}

.project-page .more-services .item .content p {
    padding: 30px 0 40px 0;
    margin: 0;
    color: #000;
    opacity: .65;
    line-height: 1.55;
    font-family: "MyriadProLight", sans-serif;
}

.project-page .more-services .item .content button {
    color: #fff;
    border: 1px solid #cd7f32;
    width: 350px;
    max-width: 100%;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
    padding: 1px 30px;
}

.project-page .more-services .item .content button:hover {
    color: rgb(255, 255, 255);
    background: rgb(46, 51, 55);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(46, 51, 55);
    border-image: initial;
}

.project-page .more-services .btn, .project-page .more-services .btn-link {
    margin: 30px auto 10px auto;
    color: #fff;
    border: 1px solid #cd7f32;
    width: auto;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
    padding: 15px 30px;
    text-decoration: none;
}

.project-page .more-services .btn:hover {
    color: rgb(255, 255, 255);
    background: rgb(46, 51, 55);
    border-width: 1px;
    border-style: solid;
    border-color: rgb(46, 51, 55);
    border-image: initial;
}

.project-page .three-d {
    background: #f7f7f7;
    padding: 50px 0;
    text-align: center;
    margin-bottom: 50px;
}

.project-page .three-d .name {
    font-weight: 700;
    font-size: 40px;
    margin-bottom: 40px;
}

.project-page .three-d .list {
    padding: 0 30px;
    margin-bottom: 80px;
    position: relative;
}

.project-page .three-d .list .item {
    margin: 0 10px;
    border: 1px solid #ccc;
    font-size: 0;
}

.project-page .three-d .list .item img {
    width: 100%;
}

.project-page .three-d .list .prev,
.project-page .three-d .list .next {
    width: 23px;
    height: 42px;
    position: absolute;
    top: 50%;
    margin-top: -21px;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    z-index: 2;
}

.project-page .three-d .list .prev img,
.project-page .three-d .list .next img {
    width: 100%;
}

.project-page .three-d .list .prev {
    left: 0px;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.project-page .three-d .list .next {
    right: 0px;
}

.project-page .three-d .list .slick-dots {
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: -40px;
}

.project-page .three-d .list .slick-dots li {
    display: inline-block;
    margin: 0 10px;
}

.project-page .three-d .list .slick-dots li.slick-active button {
    background: #333;
}

.project-page .three-d .list .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
    font-size: 0;
    z-index: 2;
    border-radius: 50%;
    border: 0;
    outline: none;
    background: #ccc;
}

.project-page .three-d .btn p {
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 30px;
}

.project-page .three-d .btn button {
    color: #fff;
    border: 1px solid #cd7f32;
    width: 290px;
    height: 50px;
    background: #cd7f32;
    font-size: 18px;
    border-radius: 12px;
    font-weight: 300;
}

.project-page .three-d .btn button:hover {
    color: #fff;
    background: #2e3337;
    border: 1px solid #2e3337;
}

button {
    cursor: pointer;
}

.popup.photos .window {
    width: 1140px;
    padding: 0;
    position: relative;
}

.popup .close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: url("/local/templates/avkube/images/close.png");
}

.popup .window {
    position: absolute;
    right: 50%;
    -webkit-transform: translate(50%,50%);
    transform: translate(50%,50%);
    bottom: 50%;
    width: 560px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 45px;
    background: #fff;
    text-align: center;
    max-height: 80%;
    overflow-y: auto;
}
.popup .window::-webkit-scrollbar{
    width: 6px;
    background-color: #bfbfbf; 
}
.popup .window::-webkit-scrollbar-thumb{
    background-color: #cd7f32; 
}
.popup .window .name {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.popup .window p {
    line-height: 1.55;
    margin-bottom: 25px;
}

.popup .window input[type='text'] {
    margin-bottom: 25px;
    width: 100%;
    height: 60px;
    border: 1px solid #000;
    padding: 0 20px;
    font-size: 18px;
    font-family: "MyriadProLight", sans-serif;
}

.popup .window .btn {
    background: #cd7f32;
    width: 100%;
    margin-bottom: 30px;
    border: 0;
    height: 60px;
    padding: 0 10px;
    font-weight: 700;
    color: #fff;
    font-family: 'Arial', sans-serif;
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 18px;
    -webkit-box-shadow: rgba(1, 1, 1, 0.5) 0 0 8px;
    box-shadow: rgba(1, 1, 1, 0.5) 0 0 8px;
}

.popup .window .btn:hover {
    color: #000;
}

.popup .window .bottom-text {
    font-size: 13px;
}

.popup .window .bottom-text a {
    color: #ff0000 !important;
    text-decoration: underline;
}

.popup-photos .prev,
.popup-photos .next {
    width: 23px;
    height: 42px;
    position: absolute;
    top: 50%;
    margin-top: -21px;
    padding: 0;
    font-size: 0;
    cursor: pointer;
    z-index: 2;
}

.popup-photos .prev img,
.popup-photos .next img {
    width: 100%;
}

.popup-photos .prev {
    left: 20px;
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
}

.popup-photos .next {
    right: 20px;
}

@media (max-width: 1200px) {
    .project-page form .bottom-text {
        padding: 0 150px;
    }

    .project-page .more-services .item .content {
        padding: 20px;
    }

    .popup.photos .window {
        width: 900px;
    }
}

@media (max-width: 991px) {
    .project-page .works .item {
        width: 48%;
    }

    .project-page form .bottom-text {
        padding: 0;
    }

    .popup.photos .window {
        width: 700px;
    }
}

@media (max-width: 767px) {
    .project-page .design .list .item {
        width: 100%;
    }

    .project-page form input[type='text'] {
        width: 100%;
    }

    .project-page form textarea {
        width: 100%;
    }

    .project-page .more-services .item {
        width: 100%;
    }

    .popup.photos .window {
        width: 500px;
    }
}

@media (max-width: 576px) {
    .project-page {
        padding: 30px 10px;
    }

    .project-page .wrapper {
        width: auto;
    }

    .project-page .design .name {
        font-size: 24px;
    }

    .project-page .design p {
        font-size: 16px;
        line-height: 22px;
    }

    .project-page .design .list {
        margin: 0 -10px 30px -10px;
        padding: 30px 10px;
    }

    .project-page .design .list button {
        font-size: 18px;
    }

    .project-page .individual button {
        width: 100%;
    }

    .project-page .works .name {
        font-size: 24px;
    }

    .project-page .works p {
        font-size: 16px;
        line-height: 22px;
    }

    .project-page .works .item {
        width: 100%;
        margin-bottom: 30px;
    }

    .project-page form .name {
        font-size: 24px;
    }

    .project-page .more-services .name {
        font-size: 24px;
    }

    .project-page .more-services {
        margin: 0 -10px;
        padding: 30px 10px;
    }

    .project-page .three-d {
        margin: 0 -10px 30px -10px;
        padding: 30px 10px;
    }

    .project-page .three-d .name {
        font-size: 24px;
    }

    .project-page .three-d .list {
        padding: 0;
    }

    .project-page .three-d .btn p {
        font-size: 18px;
    }

    .popup .window {
        width: 300px;
        padding: 30px 20px 20px;
    }

    .popup .close {
        right: 12px;
        width: 15px;
        height: 15px;
        background-size: cover;
    }

    .popup .window .name {
        font-size: 24px;
    }

    .popup .window button {
        padding: 0;
    }

    .popup.photos .window {
        width: 300px;
    }

    .popup-photos .prev {
        left: 10px;
    }

    .popup-photos .next {
        right: 10px;
    }

    .project-page .three-d .list .item {
        margin: 0 30px;
    }
}
