header*/
.logo {  font-family: "Oswald", "Comfortaa",  sans-serif;}
header .logo span {
    padding: 0;
    margin: 0;
    font-size: 1.3em;
    line-height: 1.9em;
    white-space: nowrap;
    background: white;
    display: block;
    width: auto;
    max-height: 2em;
    font-family: Oswald, Comfortaa, sans-serif;
}

header .logo div {
    width: 83%;
    margin: 0 auto;
}
header .logo a:hover {
    text-decoration: none;
}
header .logo img {
    opacity: 1;
}
//*header*/


/*nagamov*/

.nagamov .card {border: none;}

/*/nagamov*/

/*our-works*/

 .our-works img {
    outline: white solid thin;
}
.our-works span {
    background:rgb(255,255,255);  
    background: transparent\9;  
    background:rgba(255,255,255,0.7);  
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FFFFFF', endColorstr='#FFFFFF',GradientType=0 ); /* ie6-9 */ 
    zoom: 1;  
    background: #ffffffd6;
bottom: 0;
left:0;
height:25%;
color:black;
text-align:center;
position: absolute;
display: block !important;
display: flex !important;
flex-direction: row;
align-items: center;
justify-content: center;
transition: 1s;
transition-timing-function: ease-in-out;
}
.our-works span:nth-child(n) {  
    filter: none;  
}
.our-works a:hover span {
    bottom: -35%;
    transition: 1s;
    transition-timing-function: ease-in-out;
}
.nagamov .col-md-4.col-sm-4.col-12 {
    overflow: hidden;
}


/*/our-works*/


/*how-were-work*/
.how-were-work .ramka {
    display: none;
}
@supports (display:flex) {

.how-were-work div {
    background-size:cover;
    background-repeat:no-repeat;
}

.how-were-work .ramka {
    display: block;
}

.how-were-work .punkt-1 div {
    background-image: url('../img/how/1-bottom-bokovie.svg');
    background-position:center bottom;
}

.how-were-work .punkt-2 div {
background-image: url('../img/how/2-bottom-bokovie.svg');
background-position:left bottom;
}

.how-were-work .punkt-3 div {
background-image: url('../img/how/3-bottom-bokovie.svg');
background-position:left bottom;
}

.how-were-work .punkt-4 div {
background-image: url('../img/how/3-top-bokovie.svg');
background-position:left top;
}

.how-were-work .row .row:nth-child(1) > div {
    border-top: 1px solid black;
}

.how-were-work .row:nth-child(4) img.ramka {
    bottom: 0;
    top:unset;
}

.how-were-work .row:nth-child(4) > div {
    border-bottom: 1px solid black;
}

}
/*
.how-were-work .punkt-1 div, 
.how-were-work .punkt-2 div, 
.how-were-work .punkt-3 div, 
.how-were-work .punkt-4 div {
работает и в хроме -apple-background:none;
}*/

/*.how-were-work .row .col-md-3 p {
	left:0;
	top:0;
	position: absolute;
	height:100%;
	padding-left:90px;
	padding-right: 20px;
	line-height:1.3em;
}*/
.our-works a span {
    line-height: 1em;
    font-size: 1em;
    height: 35%;
}
.how-were-work p {
    text-align: justify;
    margin: 0.6em;
}
.how-were-work h3.px-5 span {
  display: block;
}
.how-were-work img.ramka {
    position: absolute;
    /* width: 100%; */
    /* height: 100%; */
    left: 0;
    top: 0;
    width: 100%;
}


/*/how-were-work*/


/* common 4 effects */

.grid {
    position: relative;
    margin: 0 auto;
    padding: 1em 0 4em;
    max-width: 1000px;
    list-style: none;
    text-align: center;
}

/* Common style */
.grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 10px 1%;
    min-width: 320px;
/*    max-width: 480px;
    max-height: 360px;
    width: 48%;*/
    background: #3085a3;
    text-align: center;
    cursor: pointer;
}

.grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}

.grid figure figcaption {
    padding: 2em;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.grid figure figcaption::before,
.grid figure figcaption::after {
    pointer-events: none;
}

.grid figure figcaption,
.grid figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Anchor will cover the whole item by default */
/* For some effects it will show as a button */
.grid figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}

.grid figure h2 {
    word-spacing: -0.15em;
    font-weight: 200;
    letter-spacing: 5.6px;
    /*font-family: "Segoe UI Light";*/
}

.grid figure h2 span {
    font-weight: 200;
    font-family:  'Comfortaa', cursive, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.grid figure h2,
.grid figure p {
    margin: 0;
}

.grid figure p {
    letter-spacing: 5px;
    font-size: 68.5%;
}


/*---------------*/
/***** Bubba *****/
/*---------------*/

figure.effect-bubba {
    /*background: #9e5406;*/
}

figure.effect-bubba img {
    opacity: 0.7;
    -webkit-transition: opacity 0.35s;
    transition: opacity 0.35s;
}

figure.effect-bubba:hover img {
    opacity: 0.4;
}

figure.effect-bubba figcaption::before,
figure.effect-bubba figcaption::after {
    position: absolute;
    top: 30px;
    right: 30px;
    bottom: 30px;
    left: 30px;
    content: '';
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-bubba figcaption::before {
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    -webkit-transform: scale(0,1);
    transform: scale(0,1);
}

figure.effect-bubba figcaption::after {
    border-right: 1px solid #fff;
    border-left: 1px solid #fff;
    -webkit-transform: scale(1,0);
    transform: scale(1,0);
}

figure.effect-bubba h2 {
    padding-top: 30%;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,-20px,0);
    transform: translate3d(0,-20px,0);
}

figure.effect-bubba p {
    padding: 20px 2.5em;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(0,20px,0);
    transform: translate3d(0,20px,0);
}

figure.effect-bubba:hover figcaption::before,
figure.effect-bubba:hover figcaption::after {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1);
}

figure.effect-bubba:hover h2,
figure.effect-bubba:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
/* Bubba */


/*---------------*/
/* Effect Marley */
/*---------------*/

figure.effect-marley figcaption {
    text-align: right;
}

figure.effect-marley h2,
figure.effect-marley p {
    position: absolute;
    right: 30px;
    left: 30px;
    padding: 10px 0;
}


figure.effect-marley p {
    bottom: 30px;
    line-height: 1.5;
    -webkit-transform: translate3d(0,100%,0);
    transform: translate3d(0,100%,0);
}

figure.effect-marley h2 {
    top: 30px;
    -webkit-transition: -webkit-transform 0.35s;
    transition: transform 0.35s;
    -webkit-transform: translate3d(0,20px,0);
    transform: translate3d(0,20px,0);
}

figure.effect-marley:hover h2 {
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

figure.effect-marley h2::after {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    content: '';
    -webkit-transform: translate3d(0,40px,0);
    transform: translate3d(0,40px,0);
}

figure.effect-marley h2::after,
figure.effect-marley p {
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
}

figure.effect-marley:hover h2::after,
figure.effect-marley:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
/*  /Effect Marley */


/*footer*/
footer {margin-top: 50px;}
.text-white a {
    color: white;
}
footer h2 {
    text-transform: uppercase;
    font-size: 1.3em;
    color: #f6d24c !important;
}
/*bitrix24 form*/
iframe#bx_form_iframe_5 {
    height: 234px !important;
}
/*/bitrix24 form*/
/*/footer*/




