/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body{
    font-family: LatoRegular;
    font-size: 16px;
    color: #222;
}
b{
    font-family: LatoBold;
}
img{
    max-width: 100%;
}
h1{
    font-size: 36px;
}
.oh{
    overflow: hidden;
}
.mt-20{
    margin-top: 20px;
}
.mb-50{
    margin-bottom: 50px;
}
.fullwidth-container{
    overflow: hidden;
}
.heading{
    position: relative;
    text-align: center;
    margin: 70px 0 30px;
    text-transform: uppercase;
    font-family: LatoBold;
    display: inline-block;
    padding: 0px 5px;
}
.heading span{
    color: #0000ff;
}
.heading:before {
    right: 100%;
}
.heading:after {
    left: 100%;
}
.heading:before, .heading:after {
    border-bottom: 1px dotted #a2a2a2;
    content: "";
    display: block;
    height: 1px;
    position: absolute;
    top: 50%;
    width: 400%;
}
.pre-header a:hover, .pre-header a.active{
    color: #ea5e5e;
    text-decoration: none;
}
.pre-header{
    background-color: #f7f7f7;
    padding-top: 20px;
    padding-bottom: 20px;
}
.pre-header ul{
    list-style: none;
    text-transform: uppercase;
    font-size: 9px;
    margin-bottom: 0;
}
.pre-header ul>li{
    display: inline-block;
    text-align: center;
    margin: 0 20px;
}
.header{
    background-color: #fff;
    padding: 10px 0;
}
.main-menu ul{
    text-align: center;
    list-style: none;
    text-transform: uppercase;
}
.main-menu ul>li{
    display: inline-block;
    line-height: 20px;
    margin-right: 15px;
}
.main-menu ul>li a{
    color: #222;
    text-decoration: none;
}
.main-menu ul>li a:hover{
    text-decoration: underline;
}
.second-menu li>a{
    position: relative;
    display: block;
}
.second-menu li>a:after{

    display: block;
    height: 15px;
    width: 1px;
    border-right: 1px solid #ccc;
    position: absolute;
    right: -20px;
    top: 10px;
}
.second-menu li:last-child>a:after{
    content: none;
}
.contacts{
    font-size: 18px;
    font-family: LatoBold;
    padding-top: 10px;
    text-align: right;
}
.contacts .phone{
    color: #222;
    display: block;
}
.contacts .phone span{
    color: #ea5e5e;
}
.slider{
    color: #fff;
}
.slider .slider_heading{
    font-family: LatoBold;
    font-size: 48px;
    text-align: center;
    text-shadow: 0px 0px 5px rgb(0, 0, 0);
/*    width: 700px;
    left: 50%;
    margin-left: -350px!important;*/
}
.slider .slider_text{
    font-family: LatoBold;
    font-size: 24px;
    text-shadow: 0px 0px 5px rgb(0, 0, 0);
}
.btn:focus, input:focus {
    outline: none;
    color: inherit;
}
.btn-red{
    background-color: #ea5e5e;
    color: #fff;
    box-shadow: 0px 3px 3px rgba(50, 50, 50, 0.75);
    margin-top: -6px;
}
.btn-red:active{
    box-shadow: none;
    margin-top: -3px;
}
.btn-red:focus{
    color: #fff;
}
.btn-red:hover{
    background-color: #E05C5C;
    color: #fff;
}

.calc-bread{
    background-image: url('../images/med-bg.jpg');
    background-size: cover;
    padding: 50px 0;
}
.calc-bread h2{
    margin-top: 0;
    margin-bottom: 50px;
}
.calc-bread h2:before, .calc-bread h2:after{
    border-bottom: 1px dotted #fff;
}
.calc-bread h2 span{
    color: #fff;
}

.flip-container {
    perspective: 1000;
    transform-style: preserve-3d;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
}
    /*  UPDATED! flip the pane when hovered */
    .flip-container:hover .back {
        transform: rotateY(0deg);
    }
    .flip-container:hover .front {
        transform: rotateY(180deg);
    }
.flip-container p{
    font-size: 10px;
    font-family: LatoBoldItalic;
}
.flip-container .he{
    font-size: 12px;
    margin-bottom: 5px;
}
.flip-container, .front, .back {
    width: 100px;
    height: 100px;
}

/* flip speed goes here */
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;

    position: relative;
}

/* hide back of pane during swap */
.front, .back {
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;

    position: absolute;
    top: 0;
    left: 0;
}

/*  UPDATED! front pane, placed above back */
.front {
    z-index: 2;
    transform: rotateY(0deg);
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
}

/* back, initially hidden pane */
.back {
    transform: rotateY(-180deg);
    background-color: #fff;
    text-align: center;
    box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.3);
    padding: 5px;
}

/* 
    Some vertical flip updates 
*/
.vertical.flip-container {
    position: relative;
}

.vertical .back {
    transform: rotateX(180deg);
}

.vertical.flip-container:hover .back {
    transform: rotateX(0deg);
}

.vertical.flip-container:hover .front {
    transform: rotateX(180deg);
}


.calc-index{
    margin-top: 50px;
    background-image: url('../images/med-bg.jpg');
    background-size: cover;
    padding: 50px 0;
}
.calc-index-form{
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    border-radius: 1px;
    color: #fff;
}
.calc-index-form p{
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.calc-index h2{
    margin-top: 0;
    margin-bottom: 50px;
}
.calc-index h2:before, .calc-index h2:after{
    border-bottom: 1px dotted #fff;
}
.calc-index h2 span{
    color: #fff;
}
.calc-index input{
    width: 100%;
    border: 1px solid #085773;
    border-radius: 1px;
    background-color: #fff;
    color: #085773;
    margin-bottom: 10px;
    padding: 10px;
}
.calc-index .btn{
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-top: 0;
}
.callback{
    background-image: url('../images/med-bg.jpg');
    background-size: cover;
    padding: 50px 0;
}
.callback input{
    width: 22%;
    display: inline-block;
    margin-right: 3%;
    border: 1px solid #085773;
    border-radius: 1px;
    background-color: #fff;
    color: #085773;
    text-align: center;
    padding: 10px;
}
.callback .btn{
    width: 25%;
    padding: 10px;
    font-size: 16px;
}
.callback-form{
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
    border-radius: 1px;
}
.callback-form p{
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.about{
    background-image: url('../images/about-bg.jpg');
    background-size: cover;
    padding-bottom: 70px;
    background-position: 100% 80%;
}
.about .about-text{
    text-align: center;
    font-size: 18px;
}
.next_slide {
    position: absolute;
    bottom: -15px;
    left: 50%;
    background-color: #fff;
    border-radius: 50%;
    color: #e4e4e4;
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    z-index: 1;
    margin-left: -15px;
}
.next_slide.red {
    background-color: #ea5e5e;
    color: #fff;
}
.team{
    padding-bottom: 30px;
}
.team .member{
    position:relative; 
    cursor: pointer;
}
.team .member .glyphicon {
    top: 7px;
}
.team .member a{
    color: #fff;
}
.team .member .next_slide{
    display: none;
}
.team .member:hover .next_slide, .team .member.active .next_slide{
    display: block;
}
.team .member .over{
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
    position: absolute;
    bottom: -1px;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    color: #e2e2e2;
    padding: 10px;
    text-align: center;
    width: 100%;
}
.team .member:hover .over, .team .member.active .over{
    background-color: #ea5e5e;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}
.team .member .over .desc{
    font-family: "LatoItalic", Helvetica, Arial, sans-serif;
}
.team .member .over .name{
    text-transform: uppercase;
    color: #fff;
    margin-top: 10px;
}
.team .member_description{
    padding: 50px 80px;
    background-color: #eee;
}
.team .member_description h3{
    margin-top: 0px;
    font-family: "LatoBold", Helvetica, Arial, sans-serif;
    font-size: 19px;
    position: relative;
}
.team .member_description h3:before{
    content: "";
    position: absolute;
    left: -50px;
    top: 50%;
    width: 25px;
    height: 2px;
    background-color: #fff;
}
.team .team_placeholder{
    height: 40px;
}
.team .team_placeholder{
    height: 40px;
}
.team .team_placeholder .plc{
    position: absolute;
    bottom: -15px;
    left: 50%;
    background-color: #fff;
    border-radius: 50%;
    color: #e4e4e4;
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    z-index: 1;
    margin-left: -15px;
}
.cure h3{
    font-family: LatoBold;
    color: #085773;
}
.cure img{
    margin-top: 15px;
}
.cure p{
    font-family: latoItalic;
}
.before h3{
    font-family: LatoBold;
    margin-bottom: 0px;
    color: #085773;
}
.before p{
    font-family: LatoItalic;
}
.gallery{
    background-color: #eee;
    padding: 30px 0 10px;
    margin-top: 50px;
}
.gallery .item{
    margin: 10px 10px 30px;
    border-radius: 3px;
    -webkit-box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.1);
    box-shadow: 0px 0px 2px 1px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}
.gallery .item img{
    border: 10px solid #fff;
}
.gallery .item:before{
    content: " ";
    position: absolute;
    bottom: -15px;
    height: 30px;
    left: 0;
    right: 0;
    background-image: url('../images/shadow.png');
    z-index: -1;
    background-size: cover;
}
.owl-prev{
    position: absolute;
    left: -50px;
    top: 175px;
}
.owl-next{
    position: absolute;
    right: -50px;
    top: 175px;
}
.reviews{
    margin-bottom: 50px;
}
.reviews .ava img{
    margin-bottom: 10px;
}
.reviews .ava .name{
    margin-bottom: 0px;
}
.reviews .review-text{
    font-family: LatoItalic;
}
.footer{
    background-color: #085773;
    color: #bbd8e2;
    padding: 20px 0;
}
.footer a{
    color: #bbd8e2;   
}
.map{
    min-height: 400px;
    position: relative;
}
.map .map_contacts{
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 60px;
    right: 10px;
    padding: 20px;
}
.map .map_contacts h3{
    text-transform: uppercase;
    color: #085773;
    font-family: LatoBold;
}
.modal img{
    max-width: 300px;
}
.modal-content{
    border-radius: 0px;
}
/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
