html {
    height: 100%;
}

body {
    background: #fff;
    font-family: 'Open Sans', sans-serif;
    color: #333;
    font-size: 16px;
    line-height: 140%;
    height: 100%;
}

body.fixed {
    height: 100vh;
    overflow: hidden;
}

textarea, input, select {
    font-family: 'Roboto', sans-serif;
    padding: 13px;
    background: #aaa;
    color: #333;
    font-size: 16px;
    border: 1px solid transparent;
}

textarea {
    width: 100%;
    resize: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 1px #1199ff;
}

* {
    box-sizing: border-box;
}

img {
    display: inline-block;
}

a {
    color:#333;
    text-decoration: none;
}

a:hover {
    cursor: pointer;
}

a:hover, a:focus, button:hover, button:focus {
    text-decoration: none;
    color:inherit;
    outline: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

p {
    margin: 0;
    padding: 0;
    line-height: 140%;
}

h2 {
    font-size: 35px;
    margin-bottom: 30px;
}

@media (max-width: 767px) {
    h2 {
        font-size: 25px;
        margin-bottom: 25px;
    }
}

.clearfix:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
}

.container {
    width: 1370px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.butn {
    background: #1199ff;
    color: #fff;
    width: 300px;
    padding: 10px;
    text-align: center;
    border: 1px solid #1199ff;
}

.butn:hover {
    background: #0088ee;
}

/*  FORMS  */
.form {
    text-align: center;
    position: relative;
}

.form::before {
    position: absolute;
    content: '';
    left: -100px;
    top: 0;
    width: 0;
    height: 0;
    border-bottom: 350px solid rgba(255,255,255, 0.45);
    border-left: 100px solid transparent;
}

.form::after {
    position: absolute;
    content: '';
    right: -100px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 350px solid rgba(255,255,255, 0.45);
    border-right: 100px solid transparent;
}

.form form {
    width: 400px;
    height: 350px;
    padding: 30px 20px;
}

.form form {
    background: rgba(255,255,255, 0.45);
}

.form form h2 {
    color: white;
    text-shadow: -1px 0 #000, 0 1px #000, 1px 0 #000, 0 -1px #000;
    margin: 0 0 25px 0;
    font-size: 25px;
    font-weight: bold;
    line-height: 140%;
}

.form input {
    width: 100%;
    display: block;
    margin-bottom: 15px;
}

.form input[type=submit] {
    margin-top: 30px;
    margin-bottom: 0;
    background: #1199ff;
    border: none;
    color: #fff;
}

.form input[type=text]:focus,
.form input[type=email]:focus {
    border: 1px solid #1199ff;
}

.form input[type=submit]:hover {
    cursor: pointer;
    background: rgba(17,153,255, 0.8);
}

.form .result {
    text-align: left;
}

.form .result .success,
.form .result .error {
    font-size: 13px;
    font-weight: 400;
    display: none;
}

.form .result .success {
    color: #005500;
}

.form .result .error {
    color: #550000;
}

header {
    height: 70px;
    background: #003366;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    font-size: 16px;
    z-index: 100;
    border-bottom: 1px solid #fffc00;
}

header .left, header .right {
    line-height: 70px;
    height: 70px;
}

header .left {
    float: left;
}

header .left a {
    display: block;
    position: relative;
}

header .left img.logo {
    height: 65px;
    margin-bottom: 1px;
}

header .right {
    float: right;
}

header .right .menu li {
    display: inline-block;
}

header .right .menu li a {
    color: #fff;
    height: 70px;
    padding: 0 20px;
    display: inline-block;
    font-weight: 500;
}

header .right .menu li a:hover {
    color: #1199ff;
}

header .right .menu li a.active {
    color: #1199ff;
}

header .right .mobile-menu {
    display: none;
    color: #fff;
    background: none;
    border: none;
    height: 70px;
    line-height: 70px;
    padding: 0 15px;
    font-size: 25px;
}

header .right .mobile-menu:hover {
    cursor: pointer;
}

/*Main block*/
#main-block {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/main.jpg") 50% 50%;
    background-size: cover;
}

#main-block .overlay {
    padding-top: 100px;
    width: 100%;
    height: 100%;
}

#main-block .form {
    float: right;
    margin-right: 150px;
}
#main-block2 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/amigo001_002.jpg") 50% 50%;
    background-size: cover;
}
#main-block3 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo1.jpg") 50% 50%;
    background-size: cover;
}
#main-block4 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo2.jpg") 50% 50%;
    background-size: cover;
}
#main-block5 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo3.jpg") 50% 50%;
    background-size: cover;
}
#main-block6 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo4.jpg") 50% 50%;
    background-size: cover;
}
#main-block7 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo5.jpg") 50% 50%;
    background-size: cover;
}
#main-block8 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo6.jpg") 50% 50%;
    background-size: cover;
}
#main-block9 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo7.jpg") 50% 50%;
    background-size: cover;
}
#main-block10 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo8.jpg") 50% 50%;
    background-size: cover;
}
#main-block11
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo9.jpg") 50% 50%;
    background-size: cover;
}
#main-block12 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo10.jpg") 50% 50%;
    background-size: cover;
}
#main-block13 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/about_amigo11.jpg") 50% 50%;
    background-size: cover;
}
#main-block14 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/certificate.jpg") 50% 50%;
    background-size: cover;
}
#main-block15 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/certificate2.jpg") 50% 50%;
    background-size: cover;
}
#main-block16 {
    text-align: center;
    margin: 69px 0 0 0;
    border-top: 1px solid #fff;
    height: 1250px;
    background: url("../img/service.jpg") 50% 50%;
    background-size: cover;
}

/*About and Bonus block*/
#about {
    background: url("../img/butterfly-flower-macro-lens_large-1-1366x800.jpg") 50% 50%;
    background-size: cover;
}

#about .overlay {
    background: rgba(255, 255, 255, 0.5);
    padding: 30px 0;
}

#about .overlay .container,
#bonus .overlay .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#about .overlay .container .text,
#bonus .overlay .container .text {
    width: 400px;
    font-size: 18px;
    padding: 10px 20px;
    background: #1199ff;
    color: #fff;
    position: relative;
    margin-top: -130px;
}

#about .overlay .container .text::before,
#bonus .overlay .container .text::before {
    position: absolute;
    content: '';
    left: 0;
    top: -130px;
    width: 0;
    height: 0;
    border-bottom: 130px solid #1199ff;
    border-right: 400px solid transparent;
}

#about .overlay .container .text::after,
#bonus .overlay .container .text::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: -130px;
    width: 0;
    height: 0;
    border-top: 130px solid #1199ff;
    border-left: 400px solid transparent;
}

#about .overlay .container .text h2,
#bonus .overlay .container .text h2 {
    position: absolute;
    top: -80px;
    left: 20px;
}

#about .overlay .container .text p,
#bonus .overlay .container .text p {
    margin-bottom: 10px;
}

#about .overlay .container .photo img,
#bonus .overlay .container .photo img {
    padding: 20px 0;
    width: 500px;
}

/*products block*/
#products {
    background: url("../img/dummy-mountain-road-blur.jpg") 50% 50%;
    position: relative;
    background-size: cover;
}

#products .overlay {
    padding: 50px 0;
}

#products img {
    float: left;
    width: 49%;
}

#products img:nth-of-type(1) {
    margin-right: 2%;
}

/*bonus block*/
#bonus {
    background: url("../img/sunset-2632852_960_720.jpg") 50% 50%;
    background-size: cover;
}

#bonus .overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 50px 0;
}

#bonus .overlay .container {
    flex-direction: row-reverse;
}

#bonus .overlay .container .text {
    width: 350px;
    margin-top: 0;
    padding: 110px 20px 0 20px;
}

#bonus .overlay .container .text h2 {
    top: -20px;
    left: 20px;
    line-height: 120%;
}

#bonus .overlay .container .text::before {
    border-bottom: 130px solid #1199ff;
    border-left: 350px solid transparent;
    border-right: 0;
}

#bonus .overlay .container .text::after {
    border-top: 130px solid #1199ff;
    border-right: 350px solid transparent;
    border-left: 0;
}

/*references block*/
#references {
    background: url("../img/taj.jpg");
    background-size: cover;
}

#references .overlay {
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 0 50px 0;
}

#references h2 {
    text-align: center;
    margin-bottom: 50px;
}

#references .container .item {
    float: left;
    width: 33.333333333333%;
    margin-bottom: 40px;
    height: 600px;
    text-align: center;
}

#references .container .item .inner {
    width: 350px;
    margin: 0 auto;
    border: 1px solid #222;
}

#references .container .item a {
    background: #fff;
    display: block;
    width: 100%;
    text-align: center;
    padding: 5px 0;
}

#references .container .item a:hover {
    box-shadow: inset 0 0 10px #1199ff;
}

#references .container .item img {
    height: 300px;
    width: auto;
}

#references .container .item .content {
    background: #222;
    color: #fff;
    height: 250px;
    padding: 10px 20px;
}

#references .container .item .content p {
    height: 180px;
}

#references .container .item .content a {
    background: #1199ff;
    width: 300px;
    margin: 0 auto;
    padding: 10px;
}

/*contact block*/
#contact {
    background: #000;
    padding: 40px 0 0 0;
}

#contact .container {
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#contact .left img {
    width: 300px;
}

#contact .left .contacts {
    text-align: center;
}

#contact .left .contacts a {
    color: #fff;
}

#contact .left .contacts a:hover {
    color: #1199ff;
}

#contact .left .contacts a span {
    font-size: 18px;
    margin-right: 10px;
    display: inline-block;
    vertical-align: sub;
}

#contact .left .contacts a i {
    font-size: 40px;
    vertical-align: sub;
}

#contact .right {
    text-align: center;
    padding-right: 70px;
}

footer {
    height: 50px;
    background: #000;
    width: 100%;
    padding-top: 13px;
    text-align: center;
}

footer span {
    color: #999;
}



