
/*
 * CSS organized by BEM methodology
 *
 * used naming approach:
 * block-name
 * block-name--modifier-name
 * block-name---element-name
 * block-name---element-name--modifier-name
 */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    height: 100%;
    min-width: 320px;
    overflow-y: scroll;
    overflow-x: auto;
    background: url("../images/header-bg.jpg") repeat-x,
                url("../images/footer-bg.jpg") bottom left repeat-x #444;
    font-family: arial, helvetica, sans-serif;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
    cursor: default;
}
ul {
    list-style: none;
}
li {
    display: block;
}
a {
    text-decoration: none;
    cursor: pointer;
    color: #596167;
}
a:active,
a:focus,
button:active,
button:focus {
    border: none;
    outline: none;
}
a:active,
a:hover,
a:focus,
a:visited {
}
button {
    display: block;
    border: none;
    background: none;
    font-family: inherit;
    font-weight: inherit;
    color: inherit;
    cursor: pointer;
}
button::-moz-focus-inner {
    border: none;
    outline: none;
}
input,
select,
textarea {
    display: block;
    border: none;
    outline: none;
    background: none;
    font-family: inherit;
    cursor: default;
}
select option {
    border: none;
    outline: none;
}
.h1 {
    margin: 0 0 4% 0;
    font-size: 24px;
    text-align: center;
    color: #000;
}
.h2 {
    margin: 4% 0 10px 0;
    font-size: 18px;
    text-align: left;
    color: #000;
}
.h3 {
    margin: 2% 0 0 0;
    font-size: 15px;
    text-align: left;
    color: #555;
}
.h4 {
    margin: 2% 0 0 0;
    font-size: 14px;
    text-align: left;
    color: #555;
}
.text {
    font-size: 14px;
    text-align: justify;
    color: #555;
}
.ul {
    margin: 10px 0 0 15px;
    list-style-type: disc;
    color: #555;
}
.ul li {
    display: list-item;
}
.clearfix {
    display: block;
    clear: both;
}
.header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2% 0 2%;
    overflow: hidden;
    background: #333;
}
.header---logo {
    float: left;
    width: 55%;
    min-width: 230px;
    margin: 20px 0 0 0;
}
.header---slogan {
    float: right;
    margin: 20px 0 0 0;
    font-size: 18px;
    text-align: right;
    text-transform: uppercase;
    color: #58e5ff;
}
.header---phone {
    clear: right;
    float: right;
    margin: 10px 0 0 0;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}
.header---mobile-menu {
    display: none;
    float: right;
    width: 40px;
    height: 21px;
    margin: 2.5% 0;
    border: none;
    background: url("../images/header-mobile-menu.png") 0/contain no-repeat;
    cursor: pointer;
}
.primary-nav {
    clear: both;
}
.primary-nav---link {
    display: block;
    float: left;
    width: 16.65%;
    margin: 15px 0 0;
    padding: 0 0 4px 0;
    border-bottom: 4px solid #333;
    font-size: 13px;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: #c2c2c2;
    transition: color 0.8s;
}
.primary-nav---link:hover {
    color: #58e5ff;
}
.primary-nav---link--services {
    margin: 0;
}
.primary-nav---services-container {
    display: none;
    min-height: 20px;
    margin: 15px 0 0;
    overflow: hidden;
    cursor: pointer;
}
.primary-nav---services {
    margin: -285px 0 0 50px;
    transition: margin 1s;
}
.slider {
    position: relative;
    width: 100%;
    margin: 0 0 -5px 0;
    overflow: hidden;
}
.slider---image {
    position: absolute;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 2s;
}
.slider---image--visible {
    opacity: 1;
}
.slider---image--first {
    position: relative;
}
.main {
    max-width: 1250px;
    min-height: 650px;
    margin: 65px auto;
    overflow: hidden;
}
.secondary-nav {
    float: left;
    width: 25%;
}
.secondary-nav---link {
    display: block;
    width: 100%;
    height: 38px;
    padding: 10px 10% 0 0;
    border-right: 5px solid #999;
    font-size: 16px;
    text-align: right;
    text-decoration: none;
    color: #999;
    transition: 0.8s;
}
.secondary-nav---link:hover {
    background: #444;
    border-right: 15px solid #58e5ff;
    font-size: 18px;
    color: #58e5ff;
}
.content {
    float: left;
    width: 65%;
    margin: 0 5%;
    padding: 3% 3% 60px;
    overflow: hidden;
    background: #fff;
}
.content--image {
    float: right;
    width: 30%;
    height: auto;
    margin: 5px 0 1% 2%;
}
.content--image-benefits {
    margin: 0 0 1% 0;
}
.content--image-contact {
    float: left;
    max-width: 270px;
    margin: 10px 30px 30px 0;
}
.figure {
    display: inline-block;
    float: right;
    width: 35%;
    margin: 5px 0 1% 2%;
}
.figure--image {
    width: 100%;
    height: auto;
}
.figure--figcaption {
    margin: 10px 0 0 0;
    text-align: right;
    line-height: 20px;
}
.figure--figcaption strong {
    font-size: 18px;
}
.reference {
    margin: 0 0 19px;
}
.reference--text {
    font-style: italic;
}
.reference--author {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    text-align: right;
    color: #000;
}
.button {
    display: block;
    width: 250px;
    height: 30px;
    background: #555;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #58e5ff;
    cursor: pointer;
    transition: box-shadow 0.5s;
}
.button:hover,
.button:focus,
.button:active {
    box-shadow: 0 5px 10px 1px rgba(0, 0, 0, 0.3);
}
.form {
    clear: both;
}
.form---left-block,
.form---right-block {
    float: left;
    width: 48%;
    overflow: hidden;
}
.form---right-block {
    float: right;
}
.form---number-block {
    float: left;
    width: 30.6%;
    margin: 0 4% 0 0;
    overflow: hidden;
}
.form---number-block--last {
    margin: 0;
}
.form---label {
    clear: both;
    display: block;
    font-size: 12px;
    font-weight: bold;
	color: #555;	
}
.form---input {
	display: block;
	width: 100%;
	height: 30px;
	margin: 8px 0 0 0;
    padding: 0 4px 0;
    border: 1px solid #777;
	border-radius: 5px;
    font-size: 12px;
	color: #444;	
}
.form---input--valid {
    border: 1px solid #00b355;
}
.form---input--invalid {
    border: 1px solid #ff0000;
}
.form---select {
    display: block;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    -ms-appearance: none;
    background: none;
    background: url(./../images/select-bg.svg) calc(100% - 10px) / 12px no-repeat;
    cursor: pointer;
}
.form---select option:first-child {
    display: none;
}
.form---textarea {
    height: 262px;
    padding: 4px;
	overflow: hidden;
	resize: none;
}
.form---tooltip {
    clear: both;
    min-height: 15px;
    margin: 5px 0;
    opacity: 0;
    font-size: 12px;
    color: #444;
    transition: opacity 1s;
}
.form---tooltip--visible {
    opacity: 1;
}
.form---tooltip--valid {
    opacity: 1;
    color: #00b355;
}
.form---tooltip--invalid {
    opacity: 1;
    color: #ff0000;
}
.form---submit {
    margin: 30px auto 0;
}
.contactInfo {
    float: left;
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 35px;
    color: #555;
}
.social {
    overflow: hidden;
}
.social---link {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    margin: 10px;
    border-radius: 2px;
}
.social---link:hover {
    background: #111;
}
.social---icon {
    width: 100%;
    height: auto;
}
.footer {
    max-width: 800px;
    height: 160px;
    margin: 0 auto;
    overflow: hidden;
    background: #222;
    color: #c2c2c2;
}
.footer---slogan {
    float: left;
    margin: 22px 0 0 1.5%;
    padding: 4px 10px;
    border-right: 4px solid #348796;
    font-size: 16px;
    text-align: right;
    line-height: 33px;
    color: #58e5ff;
}
.footer---addres {
    float: left;
    margin: 15px 0 0 4%;
    line-height: 24px;
}
.footer---addres span {
    font-size: 16px;
    font-weight: bold;
}
.footer---phone {
    float: right;
    width: 150px;
    margin: 15px 3%;
    line-height: 24px;
}
.footer---phone span {
    font-size: 16px;
    font-weight: bold;
}
.footer---social {
    clear: right;
    float: right;
    width: 100px;
    margin: 10px 8% 0 0;
}
.notification-page {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
}
.notification-page---img {
    display: block;
    width: 300px;
    height: auto;
    margin: 5% auto;
}
.notification-page---message {
    margin: 5% 0 100px;
    font: 22px arial, helvetica, sans-serif;
    text-align: center;
    color: #444;
}
.error-page {
    height: 100vh;
    background: #ffffff;  
}
.error-page---container {
    width: 100%;
    height: 280px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.error-page---code {
    margin: -30px 0 0;
    font-size: 150px;
    text-align: center;
    color: #777;
}
.error-page---message {
    margin: 0 auto;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #777;
}
.error-page---button {
    width: 200px;
    height: 30px;
    margin: 25px auto 0px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: #555;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    color: #58e5ff;
    cursor: pointer;
}


@media screen and (max-width: 1100px) {
    .header---slogan {
        font-size: 17px;
    }
    .header---phone {
        font-size: 19px;
    }
    .h1 {
        font-size: 22px;
    }
    .h2 {
        font-size: 18px;
    }
}
@media screen and (max-width: 1100px) and (min-width: 801px) {
    .form---left-block,
    .form---right-block,
    .form---number-block {
        width: 100%;
    }
}
@media screen and (max-width: 1000px) {
    .header---slogan {
        font-size: 16px;
    }
    .header---phone {
        font-size: 18px;
    }
}
@media screen and (max-width: 930px) {
    .header---slogan {
        font-size: 15px;
    }
    .header---phone {
        font-size: 17px;
        margin: 8px 0 0 0;
    }
    .primary-nav---link {
        font-size: 12px;
    }
    .h1 {
        font-size: 20px;
    }
    .h2 {
        font-size: 16px;
    }
}
@media screen and (max-width: 880px) {
    .header---slogan {
        font-size: 14px;
    }
    .header---phone {
        font-size: 16px;
    }
}
@media screen and (max-width: 800px) {
    .header---logo {
        margin: 2.5% 0;
    }
    .header---slogan {
        display: none;
    }
    .header---phone {
        display: none;
    }
    .header---mobile-menu {
        display: block;
    }
    .primary-nav {
        float: left;
        margin: 0 0 -300px 0;
        transition: margin 1s;
    }
    .primary-nav--visible {
        margin: 0 0 10px 0;
    }
    .primary-nav---link {
        float: none;
        width: 100%;
        border: none;
        font-size: 14px;
        text-align: left;
    }
    .primary-nav---services-container {
        display: block;
    }
    .primary-nav---services--visible {
        margin: 0 0 0 50px;
    }
    .main {
        margin: 0;
        background: #fff;
    }
    .secondary-nav {
        display: none;
    }
    .content {
        width: 100%;
        margin: 0;
        padding: 3% 3% 50px;
    }
}
@media screen and (max-width: 700px) {
    .form---left-block,
    .form---right-block,
    .form---number-block {
        width: 100%;
    }
    .footer---slogan {
        display: none;
    }
}
@media screen and (max-width: 540px) {
    .h1 {
        font-size: 18px;
    }
    .footer {
        height: 120px;
    }
    .footer---addres {
        display: none;
    }
    .footer---phone {
        float: none;
        margin: 10px auto;
        text-align: center;
    }
    .footer---social {
        clear: both;
        float: none;
        margin: 0 auto;
    }
}
