@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'), url('assets/fonts/lato-v16-latin-300.woff') format('woff');
}

@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'), url('assets/fonts/lato-v16-latin-regular.woff') format('woff');
}

@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'), url('assets/fonts/lato-v16-latin-700.woff') format('woff');
}

@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'), url('assets/fonts/lato-v16-latin-900.woff') format('woff');
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Lato", Arial, sans-serif;
    font-size: 12px;
    line-height: 24px;
    font-weight: 700;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: white;
}

p {
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    color: #767e9e;
}

.container {
    display: block;
    margin: 0 auto;
    padding: 0 40px;
    padding-top: 68px;
    max-width: 1020px;
    box-sizing: border-box;
}


/*Header*/

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background-color: #2d303a;
    border-bottom: 6px solid #323746;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 auto;
    box-sizing: border-box;
    padding-left: 40px;
    padding-right: 40px;
    width: 1020px;
    min-height: 89px;
}

.logo {
    margin-top: 4px;
    color: #ffffff;
    text-transform: uppercase;
    font-size: 25px;
    line-height: 6px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-red-text {
    color: #f06c64;
}

.site-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    margin-top: 8px;
    min-width: 372px;
    font-size: 12px;
    font-weight: 700;
    line-height: 6px;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    list-style: none;
}


/*.site-navigation a {
    color: white;
  }*/

.active-page {
    color: #f06c64;
}

.site-navigation a:hover,
.site-navigation a:focus {
    text-decoration: underline;
}

.site-navigation li:nth-child(2n) {
    color: #494e62;
}


/*slider*/

.slider {
    height: 679px;
    box-sizing: border-box;
    padding-top: 79px;
    background-color: #f06c64;
    border-bottom: 6px solid #ea676b;
}

.slider-wrapper {
    margin: 0 auto;
    padding: 0 auto;
    width: 1024px;
    overflow: hidden;
}

.slider-button-back,
.slider-button-next {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.slider-button-back {
    position: absolute;
    z-index: 2;
    margin-top: 281px;
    margin-left: 44px;
}

.slider-button-next {
    position: absolute;
    z-index: 2;
    margin-top: 278px;
    margin-left: 966px;
}

.slider-button-next {
    transform: rotate(180deg);
}

.button-image:hover {
    transform: scale(1.1);
}

.slider-content {
    position: relative;
    display: inline-block;
    /*position: absolute;*/
    margin-left: 110px;
}

.iphone_vertical {
    margin-left: 4px;
    margin-top: 53px;
}

.iphone_horizontal {
    margin-left: 71px;
    margin-bottom: 122px;
}

.slider-item:not(:first-child) {
    display: none;
}

.vertical-display {
    width: 188px;
    height: 333px;
    position: absolute;
    margin-left: 18px;
    margin-top: 118px;
    z-index: 1;
    background-color: #000000;
}

.horizontal-display {
    width: 333px;
    height: 188px;
    position: absolute;
    margin-left: 377px;
    margin-top: 188px;
    z-index: 1;
    background-color: #000000;
}

.left-phone-button {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 90px;
    bottom: 41px;
    background-color: transparent;
    border: 1px solid #000000;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 2;
}

.right-phone-button {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 325px;
    bottom: 241px;
    background-color: transparent;
    border: 1px solid #000000;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 2;
}

.left-phone-button:hover,
.right-phone-button:hover {
    cursor: pointer;
    background-color: black;
    opacity: 0.1;
}

.display-off {
    display: none;
}

.slide-next {
    -webkit-animation-name: slide;
    -webkit-animation-duration: 1s;
    animation-name: slide;
    animation-duration: 1s;
}

.slide-back {
    -webkit-animation-name: slide-back;
    -webkit-animation-duration: 1s;
    animation-name: slide-back;
    animation-duration: 1s;
}


/*services*/

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

.sevices-title {
    font-size: 30px;
    line-height: 18px;
    font-weight: 900;
    color: #666d89;
    letter-spacing: -0.1px;
}

.services-description {
    margin-top: 28px;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    color: #767e9e;
    letter-spacing: -0.05px;
}

.services-list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 40px;
    list-style: none;
}

.services-item {
    padding-top: 3px;
    margin-bottom: 30px;
    overflow: hidden;
    color: #767e9e;
    width: 300px;
    height: 90px;
}

.item-title {
    margin-left: 80px;
    font-size: 18px;
    line-height: 18px;
    font-weight: 900;
    color: #666d89;
}

.item-content {
    margin-top: 12px;
    margin-left: 81px;
    font-size: 12px;
    line-height: 21px;
    font-weight: 400;
    color: #767e9e;
    text-align: justify;
    letter-spacing: -0.05px;
}

.services-item:nth-child(2) .item-title {
    letter-spacing: -0.2px;
}

.services-item:nth-child(3) .item-title,
.services-item:nth-child(6) .item-title {
    margin-left: 82px;
    letter-spacing: -0.1px;
}

.services-item:nth-child(5) .item-title {
    letter-spacing: -0.2px;
}

.services-item:nth-child(5) .item-content {
    letter-spacing: -0.2px;
}

.item-image {
    position: absolute;
    margin: 0;
    margin-top: 4px;
    padding: 0;
}


/*Portfolio*/

.portfolio {
    height: 863px;
    background-color: #2d303a;
    border-bottom: 6px solid #323746;
}

h2 {
    font-size: 30px;
    font-weight: 900;
    line-height: 18px;
    color: #666d89;
    letter-spacing: -0.1px;
}

.portfolio h2 {
    margin-bottom: 29px;
}

.portfolio p,
.about-us p {
    font-size: 18px;
    line-height: 30px;
    font-weight: 300;
    text-align: justify;
    color: #767e9e;
    letter-spacing: -0.22px;
}

.portfolio-filters {
    margin-top: 8px;
    padding-left: 1px;
}

.button-filter {
    margin-right: 6px;
    margin-top: 1px;
    padding: 4px 7px 4px;
    font-family: inherit;
    font-size: 12px;
    line-height: 12px;
    font-weight: 400;
    color: #767e9e;
    letter-spacing: -0.14px;
    border: 1px #767e9e solid;
    border-radius: 5px;
    background-color: transparent;
}

.selected {
    color: #ffffff;
    border-color: #ffffff;
}

.button-filter:not(.selected):hover,
.button-filter:not(.selected):focus {
    color: #ffffff;
    border-color: #ffffff;
    cursor: pointer;
}

.portfolio-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 18px;
    height: 601px;
    overflow: hidden;
}

.portfolio-image {
    margin-bottom: 20px;
}

.portfolio-image:not(.selected-image):hover,
.portfolio-image:not(.selected-image):focus {
    cursor: pointer;
    filter: invert(100%) blur(1px);
}

.selected-image {
    border: 5px solid #f06c64;
    width: 210px;
    height: 177px;
}


/*about us*/

.about-us {
    height: 734px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    border-bottom: 6px solid #ffffff;
}

.about-us p {
    letter-spacing: -0.225px;
}

.about-us h2 {
    margin-bottom: 29px;
}

.employees-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 43px;
}

.about-us-employee {
    width: 300px;
}

.about-us-employee:first-child {
    margin-right: -1px;
}

.employee-photo {
    margin-bottom: 6px;
}

.about-us-employee h3 {
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    color: #666d89;
    letter-spacing: -0.15px;
    text-overflow: ellipsis;
}

.about-us-employee p {
    margin-top: 8px;
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 21px;
    font-weight: 400;
    color: #767e9e;
    text-align: justify;
    letter-spacing: -0.15px;
}

.about-us-employee:nth-child(2) p {
    letter-spacing: 0.07px;
}

.about-us-employee:nth-child(3) p {
    letter-spacing: 0.04px;
}

.social-link {
    display: inline-block;
    margin-top: 8px;
    margin-right: 6px;
    width: 30px;
    height: 30px;
    background-repeat: no-repeat;
    background-position: center center;
    border: 1px solid #767e9e;
    border-radius: 50%;
}

.about-us-employee .social-link:first-child {
    margin-left: 1px;
}

.about-us-employee .social-link:last-child {
    margin-left: -1px;
}

.social-link:hover,
.social-link:focus {
    border-color: #e7ae23;
}


/*Contacts*/

.contacts {
    position: relative;
    box-sizing: border-box;
    height: 654px;
    border-bottom: 6px solid #ea676b;
    background-color: #f06c64;
}

.contacts p {
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    color: #767e9e;
}

.contacts h2 {
    margin-bottom: 28px;
    font-size: 30px;
    font-weight: 900;
    line-height: 18px;
    color: #f0d8d9;
    letter-spacing: -0.1px;
}

.contacts p {
    margin-bottom: 42px;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    color: #f0d8d9;
    text-align: justify;
    word-spacing: -1.4px;
}

.contacts-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

form {
    display: flex;
    flex-direction: column;
}

.get-form input,
.contact-textarea {
    box-sizing: border-box;
    width: 619px;
    margin-bottom: 16px;
    padding-left: 16px;
    padding-right: 16px;
    font-size: 11px;
    line-height: 22px;
    font-weight: 400;
    text-align: left;
    color: inherit;
    letter-spacing: 0.1px;
    background-color: #d6564f;
    border-width: 0px;
    border-radius: 5px;
}

.get-form input {
    height: 38px;
}

 ::placeholder {
    color: #f48c8f;
}

.contact-textarea {
    height: 203px;
    resize: none;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: -0.1px;
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    margin-bottom: 16px;
}

.get-form button {
    width: 80px;
    height: 40px;
    margin: 0;
    padding: auto auto;
    text-align: center;
    font-weight: 700;
    color: #f0d8d9;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    background: #dc6350;
    box-shadow: 0 -3px #d6564f inset;
    transition: 0.2s;
}

.get-form button:hover,
.get-form button:active {
    cursor: pointer;
    background: #d6564f;
}

.contact-info {
    width: 300px;
}

.contact-info h3 {
    margin-bottom: 11px;
    font-size: 18px;
    line-height: 18px;
    color: #f0d8d9;
    font-weight: 900;
    letter-spacing: -0.1px;
}

.contact-info p {
    margin-bottom: 21px;
    font-size: 12px;
    line-height: 22px;
    font-weight: 400;
    text-align: justify;
    color: #f0d8d9;
}

.contact-info a {
    font-size: 12px;
    line-height: 21px;
    font-weight: 400;
    text-align: justify;
    color: #f0d8d9;
}

.contact-info .address {
    margin: 0;
    width: fit-content;
    letter-spacing: 0.1px;
}

.contact-info a {
    display: block;
    width: fit-content;
    box-sizing: content-box;
    letter-spacing: -0.3px;
}

.contact-info a:last-child {
    letter-spacing: 0.03px;
}

.contact-info a:hover {
    text-decoration: underline;
}

.address::before {
    content: url('./assets/contact_location.svg');
    margin-left: 2px;
    margin-right: 15px;
}

.phone::before {
    content: url('./assets/contact_phone.svg');
    margin-right: 13px;
}

.contact-email::before {
    content: url('./assets/contact_mail.svg');
    margin-right: 11px;
}


/*footer*/

.main-footer {
    background-color: #2d303a;
}

.main-footer .container {
    margin: 0 auto;
    padding: 0 40px;
    height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    background-repeat: no-repeat;
    background-position: center center;
    border: 1px solid #767e9e;
    border-radius: 50%;
}

.facebook {
    background-image: url("assets/facebook_icon.svg");
}

.google-plus {
    background-image: url("assets/google-plus_icon.svg");
}

.twitter {
    background-image: url("assets/twitter_icon.svg");
}

.linkedin {
    background-image: url("assets/linkedin_icon.svg");
}

.social-link:hover,
.social-link:focus {
    border-color: #f48c8f;
}

.footer-social-link {
    display: flexbox;
    align-self: center;
}

.copyright {
    display: flexbox;
    align-self: center;
    margin-left: 2px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 400;
    color: #666d89;
    letter-spacing: -0.2px
}


/*modal*/

.modal {
    position: fixed;
    top: 120px;
    left: 50%;
    width: 300px;
    height: 200px;
    margin-left: -230px;
    padding: 40px 80px;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7);
    background-color: #f2f2f2;
    font-size: 12px;
    line-height: 21px;
    font-weight: 400;
    color: #767e9e;
    z-index: 2;
}

.modal-close {
    position: absolute;
    top: 0;
    right: -34px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    border: 0;
    background-color: transparent;
}

.modal-close::after,
.modal-close::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 2px;
    width: 19px;
    height: 3px;
    background-color: #f2f2f2;
}

.modal-close::after {
    transform: rotate(45deg);
}

.modal-close::before {
    transform: rotate(-45deg);
}

.modal-content {
    width: 250px;
    height: 150px;
}

.modal-content h3 {
    text-align: center;
}

.modal-content p {
    display: inline-block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
    font-size: 12px;
}

.modal-error {
    position: absolute;
    left: 300px;
    bottom: -20px;
    border: 1px solid red;
    background-color: red;
    border-radius: 3px;
}

.form-error {
    background-color: red !important;
}

.ok-button {
    display: inline-block;
    position: relative;
    width: 50px;
    height: 30px;
    margin-bottom: 0;
    margin-left: 120px;
    text-align: center;
    color: #666d89;
    background-color: transparent;
    border: 2px solid #767e9e;
}

.ok-button:hover {
    cursor: pointer;
    box-shadow: 1px 1px 10px black;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hidden {
    display: none;
}