/*
CTC Separate Stylesheet
Updated: 2016-05-20 12:13:03
Theme Name: HappenStance for sv-steklo.ru
Template: happenstance
Author: igieske
Version: 1.0.1463735583
*/

@import url(https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,700&subset=latin,cyrillic);

/* у всех заголовком не 30px маргин-топ, а 25 */
h1, h2, h3, h4, h5, h6 {
  margin: 25px 0 15px;
}
/* нулевой маргин у заголовка в сером квадрате */
.vc_general.vc_cta3 h2 {
  margin: 0;
}

.footer-widget {
	margin-bottom: 10px;
}

/* изменяем (уменьшаем) размер сайдбара, по аналогии с гланге */
#content {
  width: 822px;
}
#sidebar {
  width: 264px;
}

/* маргин топ 0 для h2 полезная инфа на гланге */
.margintopzero h2 {
    margin-top: 0;
}
/* эффект кнопок главного меню */
.home-grid {
    position: relative;
    margin: 0 auto;
    padding: 0 0 4em;
    max-width: 1000px;
    list-style: none;
    text-align: center;
}
/* Common style */
.home-grid figure {
    position: relative;
    float: left;
    overflow: hidden;
    margin: 0 15px 15px 0;
    max-width: 100%;
    max-height: 150px;
    width: 100%;
    background: #0084c8;
    text-align: center;
    cursor: pointer;
}
.home-grid figure img {
    position: relative;
    display: block;
    min-height: 100%;
    max-width: 100%;
    opacity: 0.8;
}
.home-grid figure figcaption {
    padding: 2%;
    color: #fff;
    text-transform: uppercase;
    font-size: 1.25em;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.home-grid figure figcaption::before,
.home-grid figure figcaption::after {
    pointer-events: none;
}
.home-grid figure figcaption,
.home-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 */
.home-grid figure figcaption > a {
    z-index: 1000;
    text-indent: 200%;
    white-space: nowrap;
    font-size: 0;
    opacity: 0;
}
.home-grid figure h2 {
    font-family: Roboto Condensed !important;
    line-height: 100%;
    color: #000000;
    word-spacing: 0;
    font-weight: lighter;
}
.home-grid figure h2 span {
    font-weight: normal;
}
.home-grid figure h2,
.home-grid figure p {
    margin: 0;
}
/* Individual effects */
/*---------------*/
/***** Milo *****/
/*---------------*/
figure.effect-milo {
    background: #017cbc;
}
figure.effect-milo img {
    max-width: none;
    width: -webkit-calc(100% + 23px);
    width: calc(100% + 23px);
    opacity: 1;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-35px,-8px,0) scale(1.12);
    transform: translate3d(-35px,-8px,0) scale(1.12);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
figure.effect-milo:hover img {
    opacity: 0.35;
    -webkit-transform: translate3d(0,-10px,0) scale(1);
    transform: translate3d(0,-10px,0) scale(1);
}
figure.effect-milo h2 {
    background: rgba(255, 255, 255, 0.87);
    position: absolute;
    right: 0;
    left: 0;
    bottom: 6px;
    padding: 0.3em 0.5em 0.5em 0;
    letter-spacing: -0.02em;
    
}
figure.effect-milo p {
    line-height: 155%;
    padding: 3px 10px 0 2px;
    width: 72%;
    border-right: 1px solid #fff;
    text-align: right;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-40px,0,0);
    transform: translate3d(-40px,0,0);
}
figure.effect-milo:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/*---------------*/
/***** Milo2 *****/
/*---------------*/
figure.effect-milo2 {
    background: #778f08;
}
figure.effect-milo2 img {
    max-width: none;
    width: -webkit-calc(100% + 33px);
    width: calc(100% + 33px);
    opacity: 1;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-33px,0,0);
    transform: translate3d(-33px,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
figure.effect-milo2:hover img {
    opacity: 0.35;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
figure.effect-milo2 h2 {
    background: rgba(255, 255, 255, 0.87);
    position: absolute;
    right: 0;
    left: 0;
    bottom: 6px;
    padding: 0.3em 0.5em 0.5em 0;
    letter-spacing: -0.02em;
    
}
figure.effect-milo2 p {
    line-height: 155%;
    padding: 3px 10px 0 2px;
    width: 72%;
    border-right: 1px solid #fff;
    text-align: right;
    opacity: 0;
    -webkit-transition: opacity 0.35s, -webkit-transform 0.35s;
    transition: opacity 0.35s, transform 0.35s;
    -webkit-transform: translate3d(-40px,0,0);
    transform: translate3d(-40px,0,0);
}
figure.effect-milo2:hover p {
    opacity: 1;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}

/* список статей на гланге */
.list-blue {
  list-style-type: none; 
}
.list-blue a {
  background: #169fe6;
  margin: 5px 0;
  padding: 5px 15px;
  display: block;
  color: white;
  text-decoration: none;
  -webkit-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -ms-transition: all .3s ease-out;
  -o-transition: all .3s ease-out;
  transition: all .3s ease-out; 
}
.list-blue a:hover {
  background: #6abfec;
}
/* при просмотре Записи, тег "Полезная инфа" в одну строку */
#main-content .post-info .post-category {
  width: 80%;
}
/* контакты в шапке справа */
.header-content,
.header-content p {
	font-family: Play, Arial, Helvetica, sans-serif;
}
.header-content {
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  width: 100% !important;
}
.header-content__main {
  flex-grow: 1;
  padding-left: 28px;
}
.head-contacts {
    font-size: 14px;
	display: flex;
	flex-flow: row nowrap;
	line-height: 18px;
}
.head-contacts p {
	padding-top: 4px;
	padding-bottom: 4px;
}
.head-contacts .phones p {
	white-space: nowrap;
}
.head-contacts .phones,
.head-contacts .addresses {
	padding: 15px;
}
.head-contacts .phones:hover,
.head-contacts .addresses:hover {
	background-color: #f7f7f7;
}
.head-contacts .addresses {
	max-width: 270px;
}
.head-contacts span {
    line-height: 100%;
}

body #content {
    width: 700px;
}
body #sidebar {
    width: 228px;
}

@media (min-width: 1013px) and (max-width: 1170px) {
	.head-contacts span {
		font-size: 13px;
	}
	.head-contacts .addresses {
		max-width: 220px;
	}
}


@media (max-width: 1012px) {
	.header-content {
		width: unset !important;
		flex-direction: column;
		padding: 20px 44px 0px !important;
		align-items: flex-start;
	}
	.head-contacts .phones:first-of-type {
		padding-left: 0;
	}
	.header-content__main {
		padding-left: 0;
		width: 100%;
	}
	.site-description {
		margin: 4px 0 4px;
	}
}

@media (max-width: 600px) {
	.header-content {
		padding: 35px 5% 0 !important;
	}
	.head-contacts {
		/* flex-flow: column wrap; */
		padding: 0 0 10px 0;
	}
	.head-contacts .addresses {
		display: none;
	}
}