/**
 * Created by tikhomirov on 04.06.2018.
 */

body {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #033752;
    padding-top: 86px;
}

@media (max-width: 575px) {
    body {
        font-size: 16px;
        padding-top: 65px;
        text-align: center;
    }
}

h3 {
    font-size: 2rem;
    font-weight: 300;
    text-transform: uppercase;
}

h4 {
    font-size: 1.3rem;
}

button:focus {
    outline: 0;
}

/* components */
.carousel {
    padding-left: 0;
    padding-right: 0;
}

.carousel-indicators {
    right: auto;
    margin-left: 0;
    bottom: 30px;
}

.carousel-indicators li {
    width: 15px;
    height: 15px;
    background-color: #d9d9d9;
    border-radius: 15px;
    margin-right: 20px;
}

.carousel-indicators li.active {
    background-color: #28a8b8;
}

@media (max-width: 992px) {
    .carousel-indicators {
        top: 30px;
        bottom: auto;
    }
}

@media (max-width: 575px) {
    .carousel-indicators {
        top: 30px;
        right: 0;
        bottom: auto;
        margin: 0 auto;
    }

    .carousel-indicators > li:last-child {
        margin-right: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/* header */

header.navbar {
    background-color: #ffffff;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
    min-height: 86px;
    padding: 0;
}

@media (max-width: 575px) {
    header.navbar {
        padding: 10px;
        min-height: 0;
    }
}

.navbar .logo {
    margin-right: 50px;
}

.nav-item,
header .phone {
    box-sizing: border-box;
    border-top: 6px solid transparent;
    transition: border-top .2s;
}

.nav-item > a {
    color: #033752;
    padding: 0;
    line-height: 80px;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.nav-item.active {
    border-top: 6px solid #28a8b8;
}

.nav-item:hover > a {
    color: #28a8b8;
}

header .phone {
    display: flex;
    align-items: center;
}

header .phone img {
    margin-right: 10px;
}

header .phone > a {
    color: #28a8b8;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .nav-item,
    header .phone {
        padding-left: 10px;
    }

    .navbar .logo {
        padding-left: 10px;
    }

    .nav-item.active, .nav-item:hover {
        border-top: 6px solid transparent;
        color: #28a8b8;
    }

    .nav-item > a {
        line-height: 40px;
    }

    header .phone {
        margin-bottom: 20px;
    }
}

/* sections */
section.we-create .container .row,
section .left-pane,
section .right-pane {
    height: 650px;
}

section .container {
    padding-left: 0;
    padding-right: 0;
}

section .right-pane {
    min-height: 1px;
}

section .right-pane img {
    width: 330px;
    height: 330px;
}

@media (max-width: 992px) {
    section.we-create .container .row,
    section .left-pane,
    section .right-pane {
        height: 580px;
    }

    section:not(.contacts) .right-pane {
        display: none;
    }
}

section .carousel-inner h3,
section .carousel-inner h3 + h4 {
    margin-top: 60px;
}

section .carousel-inner h4 + p {
    margin-top: 50px;
}

section .carousel-inner h3 + p {
    margin-top: 80px;
}

section .carousel-inner h3 + p.with-additionals {
    margin-top: 30px;
    padding-right: 30px;
}

section .carousel-inner p + p {
    margin-top: 20px;
}

section .carousel-inner h3 + p,
section .carousel-inner h4 + p,
section .carousel-inner p + p {
    padding-right: 90px;
}

@media (max-width: 992px) {
    .carousel-inner .left-pane {
        margin-bottom: 50px;
    }

    section .carousel-inner h3 + p,
    section .carousel-inner h4 + p,
    section .carousel-inner p + p {
        padding-right: 0;
    }

}

/* we-create */

.we-create {
    background: #28a8b8 url('../images/waves.svg') no-repeat;
    background-size: cover;
    display: flex;
}

.we-create p {
    max-width: 680px;
    font-size: 3.3rem;
    line-height: 1.5;
    text-align: center;
    color: #ffffff;
    font-weight: lighter;
    text-transform: uppercase;
}

@media (max-width: 575px) {
    .we-create p {
        font-size: 2.3rem;
    }
}

/* smart-home */
.smart-home .right-pane {
    background-color: #033752;
}

/* how-it-works */
.how-it-works .left-pane {
    position: relative;
}

.how-it-works .left-pane::before {
    position: absolute;
    color: #d9d9d9;
    font-size: 666px;
    font-weight: 900;
    bottom: 0;
    right: 0;
    z-index: -1;
}

@media (max-width: 992px) {
    .how-it-works .left-pane::before {
        display: none;
    }
}

.how-it-works .carousel-item:nth-child(1) .left-pane::before {
    content: '1';
    right: -106px;
    bottom: -241px;
}

.how-it-works .carousel-item:nth-child(2) .left-pane::before {
    content: '2';
    right: -22px;
    bottom: -241px;
}

.how-it-works .carousel-item:nth-child(3) .left-pane::before {
    content: '3';
    right: -27px;
    bottom: -234px;
}

.how-it-works .carousel-item:nth-child(4) .left-pane::before {
    content: '4';
    right: -11px;
    bottom: -240px;
}

@media (max-width: 575px) {
    .how-it-works .carousel-item:nth-child(1) .left-pane::before {
        font-size: 642px;
        right: -105px;
        bottom: -292px;
    }

    .how-it-works .carousel-item:nth-child(2) .left-pane::before {
        font-size: 642px;
        right: -21px;
        bottom: -291px;
    }

    .how-it-works .carousel-item:nth-child(3) .left-pane::before {
        font-size: 648px;
        right: -25px;
        bottom: -278px;
    }

    .how-it-works .carousel-item:nth-child(4) .left-pane::before {
        font-size: 594px;
        right: -9px;
        bottom: -249px;
    }
}

.how-it-works .right-pane {
    background-color: #28a8b8;
}

.devices-and-measurements {
    max-width: 500px;
}

.devices-and-measurements > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 575px) {
    .devices-and-measurements > div > p {
        font-size: 12px;
    }
}

.devices-and-measurements img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

/* beginning */
.beginning .right-pane {
    background-color: #033752;
}

/* contacts */
.contacts iframe {
    border: none;
}

@media (max-width: 575px) {
    .contacts .left-pane {
        padding-left: 0;
        padding-right: 0;
    }
}

.contacts .right-pane > .padding {
    padding: 70px;
}

.contacts .right-pane h3 {
    font-weight: 300;
    margin-bottom: 20px;
}

.contacts .right-pane input[type="text"],
.contacts .right-pane input[type="tel"] {
    max-width: 300px;
    margin-bottom: 25px;
}

.contacts .right-pane .input-with-button {
    display: flex;
}

.contacts .right-pane input[type="email"] {
    max-width: 215px;
    margin-right: 25px;
}

@media (max-width: 575px) {
    .contacts .right-pane input[type="text"],
    .contacts .right-pane input[type="tel"] {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .contacts .right-pane input[type="email"] {
        max-width: 100%;
    }
}

.contacts .right-pane button,
.modal button {
    width: 60px;
    background-color: #033752;
    border: none;
}

.contacts .right-pane input[type="text"]::-webkit-input-placeholder,
.contacts .right-pane input[type="tel"]::-webkit-input-placeholder,
.contacts .right-pane input[type="email"]::-webkit-input-placeholder {
    font-style: italic;
}

.contacts .right-pane input[type="text"]:-ms-input-placeholder,
.contacts .right-pane input[type="tel"]:-ms-input-placeholder,
.contacts .right-pane input[type="email"]:-ms-input-placeholder {
    font-style: italic;
}

.contacts .right-pane input[type="text"]:-moz-placeholder,
.contacts .right-pane input[type="tel"]:-moz-placeholder,
.contacts .right-pane input[type="email"]:-moz-placeholder {
    font-style: italic;
}

.contacts .right-pane input[type="text"]::-moz-placeholder,
.contacts .right-pane input[type="tel"]::-moz-placeholder,
.contacts .right-pane input[type="email"]::-moz-placeholder {
    font-style: italic;
}

.contacts .address-phone-mail > h3 {
    margin: 30px 0 30px 0;
}

.contacts .address-phone-mail > a {
    color: #28a8b8;
    text-decoration: none;
    padding-right: 15px;
}

@media (max-width: 992px) {
    .contacts .right-pane > .padding {
        padding: 0;
        padding-top: 20px;
    }
}

@media (max-width: 992px) {
    .map {
        max-height: 350px;
    }
}
