/* lato-300 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: local('Lato Light'), local('Lato-Light'),
         url('assets/fonts/lato-v16-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('assets/fonts/lato-v16-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  /* lato-regular - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local('Lato Regular'), local('Lato-Regular'),
         url('assets/fonts/lato-v16-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('assets/fonts/lato-v16-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
  }
  /* lato-700 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local('Lato Bold'), local('Lato-Bold'),
         url('assets/fonts/lato-v16-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('assets/fonts/lato-v16-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
  /* lato-900 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: local('Lato Black'), local('Lato-Black'),
         url('assets/fonts/lato-v16-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
         url('assets/fonts/lato-v16-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}

*{
    transition: all 0.5s ease;
    scroll-behavior: smooth; 
}

body {
    overflow-x: hidden;
    scroll-behavior: smooth; 
  }

.container {
    width: 1020px;
    margin: 0 auto; 
    padding: 0 40px;
    box-sizing: border-box;
}

header {
    background-color: #2d2f3b;
    height: 95px;
    box-sizing: border-box;
    border-bottom: 6px solid #323746;
    width: 100%;
    margin-top: -95px;
    position: fixed;
    z-index: 2;
}

.burger-icon {
    display: none;
}

a[name] {
    position: relative;
    top: -95px;
    scroll-behavior: smooth; 
}

.header-name {
    font-size: 26px;
    letter-spacing: -1.2px;
    line-height: 6px;
    color: #ffffff;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 700;
    padding-top: 41px;
}

.header-star {
    color:#e26861;
}

.header__nav {
    float: right;
    display: flex;
    justify-content: space-between;
    width: 370px;
}

header a {
    font-size: 13px;
    letter-spacing: -1px;
    line-height: 6px;
    color: #ffffff;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.a-red, nav a:hover {
    color: #f06c64; 
}

.header__nav a:not(:first-child):before {
    content: "·";
    padding-right: 15px;
    color: #696f8a;
}

/*SLIDER */

.slider {
    margin-top: 95px;
    height: 600px;
    background-color: #f06c64;
    box-sizing: border-box;
    border-bottom: 6px solid #ea676b;
    transition: all 0.5s ease;
}

.slider2-bg {
    background-color:rgb(100,139,240);
    border-bottom: 6px solid rgb(94,134,247);
    transition: all 0.5s ease;
}

.iphones-container {
    position: relative;
    overflow: hidden;
    height: 600px;
}

.iphones {
    position: relative;
    display: none;
    animation: 0.5s ease-in-out;
}

.two-iphones {
    width: 796px;
    margin: 0 auto;
}


.active, .next {
    display: block;
    width: 100%;
}

.next {
    position: absolute;
    top: 0;
}

.slider .container {
    position: relative;
}

.swiper {
    position: absolute;
    top: 280px;
}

.swiper.left {
    left: 42px;
}

.swiper.right {
    right: 56px;
}

.arrow {
    position: absolute;

}

.arrow:hover {
    opacity: 0.5;
    transform: scale(1.2);
} 

.horizontal, .vertical {
    position: relative;
}

.vertical {
    padding-top: 53px;
    height: 483px;
    width: 240px;
    float: left;
}

.vertical-home {
    cursor: pointer;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    top: 460px;
    left: 87px;
    position: absolute;
}

.vertical-blackRect {
    background-color: #000000;
    position: absolute;
    width: 186px;
    height: 333px;
    left: 14px;
    top: 119px;
    border-radius: 3px;
}

.horizontal {
    padding: 174px 0 0 72px;
    height: 240px;
    width: 483px;
    float: left;
}

.horizontal-home {
    cursor: pointer;
    width: 41px;
    height: 41px;
    border-radius: 50%;
    top: 261px;
    left: 81px;
    position: absolute;
}

.horizontal-blackRect {
    background-color: #000000;
    position: absolute;
    width: 333px;
    height: 185px;
    left: 133px;
    top: 190px;
    border-radius: 3px;
}

.three-iphones {
    width: 516px;
    margin: 0 auto;
    position: relative;
}

.vertical-slide2:first-child, .vertical-slide2:last-child {
    padding-top: 152px;
    width: 156px;
    height: 314px;
    opacity: 0.5;
    float: left;;
}

.vertical-slide2:last-child {
    float: right;
}

.vertical-slide2:nth-child(2) {
    width: 255px;
    height: 513px;
    position: absolute;
    left: 132px;
    top: 43px;
    z-index: 1;
}

@keyframes left {
    from {
        left: 0;
    }
    to {
        left: -100%;
    }
}

@keyframes right {
    from {
        left: 100%;
    }
    to {
        left: 0;
    }
}

.to-left {
    animation-name: left;
}

.to-right {
    animation-name: right;
    animation-direction: reverse;
}

.from-left {
    animation-name: left;
    animation-direction: reverse;
}

.from-right {
    animation-name: right;
}

/*SERVICES*/


.services {
    height: 500px;
    background-color: #f2f2f2;
    box-sizing: border-box;
    border-bottom: 6px solid #ffffff;
}

.container:nth-child(2) {
    padding-left: 31px;
    padding-right: 31px;
}

/*TEXT*/

.services-header {
    font-size: 30px;
    line-height: 18px;
    color: #666d89;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900;
    padding-top: 70px;
    letter-spacing: -0.2px;
}

.services-text {
    text-align: justify;
    padding-top: 25px;
    font-size: 18px;
    line-height: 30px;
    color: #767e9e;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 300;
}
/*GRID*/

.wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 123px;
    padding-top: 46px;
    grid-column-gap: 18px;
}

.block {
    display: flex;
}

.block:nth-child(3), .block:nth-child(6){
    padding-left: 1px;
}


.block img {
    width: 60px;
    padding-bottom: 58px;    
}

.block-text {
    padding-left: 20px;
}

.block-name1, .block-name2, .block-name3, .block-name4, .block-name5, .block-name6 {
    font-size: 18px;
    line-height: 18px;
    color: #666d89;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900;
}

.block-description1, .block-description2, .block-description3, .block-description4, .block-description5, .block-description6 {
    padding-top: 10px;
    text-align: justify;
    font-size: 12px;
    line-height: 22px;
    color: #767e9e;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 400;
}

/*PART 2*/

.portfolio {
    height: 869px;
    background-color: #2d2f3b;
    box-sizing: border-box;
    border-bottom: 6px solid rgb(50,55,70);
}

.title-portfolio, .title-about_us {
    letter-spacing: -0.15px;
    font-size: 30px;
    color: #666d89;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900;
    padding-top: 63px;
}

.title-about_us {
    color: #666d89;
}
.text-portfolio, .text-about_us {
    font-size: 18px;
    text-align: justify;
    line-height: 30px;
    color: #767e9e;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 300;
    padding-top: 21px;
}

.portfolio-nav {
    display: flex;
    width: 290px;
    justify-content: space-between;
    padding-top: 11px;
}

.portfolio-link {
    border: 1px solid #666d89;
    border-radius: 5px;
    padding: 0px 6px;
    font-size: 12px;
    line-height: 22px;
    color: #767e9e;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 400;
    text-decoration: none;
}

.p-white {
    color: #ffffff;
    border: 1px solid #ffffff;
}

.portfolio-nav p:hover {
    color: #ffffff;
    cursor: pointer;
    border: 1px solid #ffffff;
}

.portfolio-images {
    height: 621px;
    display: grid;
    gap: 20px;
    padding-top: 18px;
    grid-template-columns: repeat(4,220px);
    grid-auto-rows: 187px;
    overflow: hidden;
}

.portfolio-images__image:nth-child(n+13) {
    display: none;
}

.portfolio-images__image {
    overflow: hidden; 
    width: 100%;
    height: 100%;
}

.portfolio-images__image img { 
    width: 100%;
    height: 100%;
}


.portfolio-border {
    box-sizing: border-box;
    border: 5px solid #F06C64;
}

.portfolio-images__image:hover {
    transform: scale(0.95);
    cursor: pointer;
    transition: all 0.3s ease;
}

.about_us {
    height: 733.5px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    border-bottom: 6px solid rgb(255,255,255);
}

.persons {
    padding-top: 45px;
    width: 100%;
    height: 460px;
    display: grid;
    grid-template-columns: 300px 300px 300px;
    gap: 20px;
}

.persons-info-image {
    width: 100%;
}

.persons-info-text {
    margin-right: -4px;
}

.persons-info-text-title {
    padding-top: 15px;
    letter-spacing: -0.25px;
    font-size: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #666d89;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900;
    overflow: hidden;
}

.persons-info-text-description {
    padding-top: 10px;
    text-align: justify;
    font-size: 12px;
    line-height: 22px;
    color: #767e9e;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 400;
}

.persons-info:nth-child(2) .persons-info-text-description {
    letter-spacing: 0.19px;
}

.persons-info:nth-child(-n+3) .persons-info-text-description span{
    letter-spacing: 0px;
}

.persons-info:nth-child(3) .persons-info-text-description {
    letter-spacing: 0.13px;
}

.persons-info-contacts {
    display: flex;
    padding-top: 23px;
}

.persons-info-contacts a {
    width: 16px;
    height: 16px;
    border: 1px solid #666d89;
    border-radius: 50%;
    margin-right: 8px;
    padding: 7px;
}

.persons-info-contacts img {
    padding: 0.5px 0 0 1px;
}

.persons-info-contacts a:hover {
    border: 1.1px solid #c48862;
    cursor: pointer;
    transform: scale(1.2);
}

/* PART 3 */

.quote-menu {
    height: 654.5px;
    background-color: #f06c64;
    box-sizing: border-box;
    border-bottom: 6px solid #ea676b;
}

.quote-menu__title {
    font-size: 30px;
    color: #f0d8d9;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900;
    padding-top: 63px;
    letter-spacing: -0.25px;
}

.quote-menu__text {
    font-size: 18px;
    text-align: justify;
    line-height: 30px;
    color: #f0d8d9;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 300;
    padding-top: 21px;
}

.get_a_quote {
    display: grid;
    grid-template-columns: 619px 301px;
    gap: 20px;
    padding-top: 44px;
}

input, .submit-button {
    transition: none;
    padding-left: 15px;
    height: 36px;
    border-radius: 5px;
    background-color: #d6564f;
    border: 0px;
    width: 604px;
    margin-bottom: 16px;
    font-size: 12px;
    color: #f48c8f;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 400;
    outline: none;
}

input:nth-child(4) {
    padding-bottom: 110px;
}

.submit-button {
    width: 136px;
    height: 38px;
    background: #FBC65F;
    padding-right: 10px;
    font-family: Lato;
    font-style: normal;
    font-weight: bold;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #886A30;
    
}

.submit-button:hover {
    background-color: #2d303a;
    font-size: 16px;
    cursor: pointer;
}

.window-button {
    width: 50px;
    height: 30px;
    font-size: 14px;
    color: #2d2f3b;
    background-color: #a89797;
    border: 0;
    border-radius: 5px;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 700;
    font-size: 18px;
    outline: none;
}

.message-window, .display-of-iphones {
    display: none;
}

.message-window__text {
    height: 84%;
    overflow: hidden;
}

.message-window__text p {
    font-family: "Lato", Arial, sans-serif;
    font-weight: 400;
    padding: 6px;
    font-size: 16px;
    color: #a89797;
    word-wrap: break-word;
}

.message-window__text p:first-child {
    color: white;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
}


.window-text {
    display: block;
    background-color: #2d2f3b;
    box-sizing: border-box;
    padding: 10px;
    border: 6px solid #323746;
    width: 40%;
    height: 30%;
    left: 30%;
    top: 35%;
    position: fixed;
}

.fixed-back {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #2D303A;
    opacity: 0.6;
}

input::-webkit-input-placeholder { 
    color: #f48c8f;
}

input::-moz-placeholder {
    color: #f48c8f;
}

.contact-information__title {
    font-size: 19px;
    color: #f0d8d9;
    font-family: "Lato", Arial, sans-serif;
    font-weight: 900; 
    letter-spacing: -0.6px;
}

.contact-information__text {
    padding-top: 10px;
    font-size: 11.8px;
    line-height: 22px;
    color: #f0d8d9;
    font-family: "Lato", Arial, sans-serif;
    text-align: justify;
    font-weight: 400;
}

.contact-information__links {
    display: grid;
    padding-top: 22px;
    padding-left: 1px;
}

.links__location {
    padding-left: 3px;
}

.links__location:before {
    content: url(./assets/images/location.svg);
    padding-right: 13px;
}

.links__tel:before {
    content: url(./assets/images/telephone.svg);
    padding-right: 12px;
}

.links__mail:before {
    content: url(./assets/images/mail.svg);
    padding-right: 10px;
}

.contact-information__links a {
    font-size: 12px;
    line-height: 22px;
    color: #f0d8d9;
    font-family: "Lato", Arial, sans-serif;
    text-decoration: none;
    font-weight: 400;
}

footer {
    height: 76px;
    background-color: #2d2f3b;
}

.footer-block {
    display: flex;
    justify-content: space-between;
}

.copyright {
    font-size: 11px;
    color: #666d89;
    font-family: "Lato", Arial, sans-serif;
    text-decoration: none;
    font-weight: 300;
    padding-top: 31px;
    padding-left: 1px;
    letter-spacing: 0.45px;
}

.footer__contacts {
    display: flex;
    width: 152px;
    justify-content: space-between;
    padding-top: 22px;
}

.footer__contacts a {
    border: 1px solid #666d89;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    padding: 7px;
}

.footer__contacts a:hover {
    border: 2px solid #d6564f;
    cursor: pointer;
    transform: scale(1.2);
}

.footer__contacts img {
    padding: 0.5px 0 0 1px;
}



@media (max-width: 1020px) {

    .slider .container {
        padding: 0;
    }

    .container {
        width: 100%;
    }

    /*SLIDER*/

    .slider {
        height: 452px;
    }

    .swiper {
       top: 206px;
    }
    
    .swiper.left {
        left: 28px;
    }

    .swiper.right  {
        right: 45px;
    }

    .two-iphones {
        width: 600px;
    }

    .vertical {
        width: 181px;
        padding-top: 41px
    }

    .vertical-home {
        width: 31px;
        height: 31px;
        top: 348px;
        left: 66px;
    }

    .vertical-blackRect {
        width: 140px;
        height: 251px;
        left: 11px;
        top: 91px;
    }
        
    .horizontal {
        padding: 133px 0 0 54px;
        width: 364px;
    }

    .horizontal-home {
        width: 31px;
        height: 31px;
        top: 198px;
        left: 60px;
    }

    .horizontal-blackRect {
        width: 251px;
        height: 140px;
        left: 100px;
        top: 145px;
    }

    .three-iphones {
        width: 388px;
    }
    
    .vertical-slide2:first-child, .vertical-slide2:last-child {
        width: 117px;
        height: 350px;
        padding-top: 114px;
    }

    .vertical-slide2:nth-child(2) {
        width: 192px;
        left: 100px;
        top: 32px;
    }

    /*SERVICES*/

    .services {
        height: 740px;
    }

    .services-header {
        padding-top: 115px;
    }

    .wrapper {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        grid-column-gap: 54px;
        grid-row-gap: 18px;
    }

    /*PORFOLIO*/

    .portfolio {
        height: 0%;
        padding-bottom: 73px;
    }

    .portfolio-images {
        height: 0%;
        grid-template-columns: repeat(3,1fr);
        grid-template-rows: repeat(4,1fr);
        gap: 20px;
        padding-top: 28px;
    }


    /*ABOUT US*/

    .about_us {
        height: 0%;
        padding-bottom: 74px;
        border: none;
    }

    .persons {
        grid-template-columns: repeat(3,1fr);
        gap: 2.2%;
        height: 60%;
        padding-top: 40px;
    }

    .title-about_us {
        padding-top: 53px;
    }

    .quote-menu {
        height: 631px;
    }

    .quote-menu__title {
        padding-top: 68px;
    }

    .get_a_quote {
        padding-top: 24px;
        grid-template-columns: 63.8% 31.9%;
        gap: 4.3%
    }

    input {
        margin-bottom: 11px;
        width: 97%;
    }

    .contact-information__text {
        padding-top: 3px;
    }

    .contact-information__links {
        padding-top: 11px;
    }
}


@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    a[name] {
        top: -65px;
    }
    header {
        height: 71px;
        margin-top: -71px;
        border: none;
    }

    .burger-icon {
        position: absolute;
        display: block;
        height: 20px;
        width: 25px;
        left: 20px;
        top: 26px;
        z-index: 1;
        cursor: pointer;   
    }

    .transform__burger-icon {
        transform: rotate(90deg);
    }

    .header-name {
        text-align: center;
        padding-top: 32px;
        font-size: 20px;
    }

    .header-name__burger {
        position: absolute;
        left: 71px;
        z-index: 1;
    }

    .header__nav {
        flex-direction: column;
        justify-content: left;
        position: absolute;
        background: #2D303A;
        padding-top: 232px;
        padding-left: 71px;
        top: 0px;
        left: 0;
        height: 100vh;
        width: 207px;
        transform: translateX(-101%);
        transition: 300ms linear;
    }

    .header__nav__transform {
        -webkit-transform: none;
        transform: none;
        transition: 300ms linear;
        box-shadow: 0px -40px 20px rgba(0, 0, 0, 0.4);
    }

    .header__nav a {
        font-weight: 700;
        font-size: 24px;
        line-height: 29px;
        letter-spacing: -0.035em;
        padding-bottom: 32px;

    }

    .header__nav a:not(:first-child):before {
        content: "";
        padding-right: 0;
    }

    /*SLIDER*/

    .slider {
        height: 221px;
        margin-top: 71px;
    }

    .arrow {
        width: 14px;
        height: 25px;
    }

    .swiper {
        top: 98px;
    }

    .swiper.left {
        left: 10px;
    }

    .swiper.right {
        right: 25px;
    }

    .two-iphones {
        width: 293px;
    }

    .vertical {
        width: 88px;
        padding-top: 20px;
    }

    .vertical-blackRect {
        width: 69.12px;
        height: 122.43px;
        left: 4.8px;
        top: 43.94px;
    }

    .vertical-home {
        width: 15px;
        height: 15px;
        top: 169.5px;
        left: 31.5px;
    }

    .horizontal {
        width: 178px;
        padding: 65px 0 0 26px;
    }

    .horizontal-blackRect {
        height: 69.12px;
        width: 122.43px;
        left: 48.8px;
        top: 70.6px;
    }

    .horizontal-home {
        width: 15px;
        height: 15px;
        top: 97.5px;
        left: 29px;
    }

    .three-iphones {
        width: 192px;
    }

    .vertical-slide2:first-child, .vertical-slide2:last-child {
        width: 57px;
        padding-top: 60px;
    }

    .vertical-slide2:nth-child(2) {
        width: 98px;
        left: 48px;
        top: 13px;
    }

    /*SERICES*/
    
    .services {
        height: 0%
    }

    .services-header {
        padding-top: 37px;
    }

    .wrapper {
        grid-template-columns: 1fr;
        padding-top: 28px;
        grid-auto-rows: auto;
        grid-row-gap: 0;
    }

    /*PORTFOLIO*/

    .title-portfolio {
        padding-top: 55px;
    }

    .portfolio {
        padding-bottom: 42px;
        border: 0;
    }

    .portfolio-images {
        grid-template-columns: repeat(2,1fr);
        padding-top: 24px;
        gap: 10px;
    }

    .portfolio-images__image:nth-child(n+9) {
        display: none;
    }

    /*ABOUT US*/

    .persons {
        grid-template-columns: 1fr;
        padding-top: 28px;
        gap: 1.5%;
        padding-bottom: 45px;
    }

    .title-about_us {
        padding-top: 33px;
    }

    /*QUOTE*/

    .quote-menu {
        height: 0%;
        padding-bottom: 60px;  
        border: none;
    }

    .quote-menu__title {
        padding-top: 54px;
    }

    .get_a_quote {
        grid-template-columns: 1fr;
    }

    input {
        width: calc(100% - 15px);
    }

    .submit-button{
        width: 100%;
    }

    /*FOOTER*/

    .copyright {
        display: none;
    }

    .footer__contacts {
        margin: 0 auto;
    } 

    
}

