body {
	background: #fff;
	font-family: Arial;
	font-size: 13px;
	color: #383838;
}
h1 {
	font-size: 26px;
	margin-bottom: 24px;
	text-transform: uppercase;
	font-weight: bold;
}
h2 {
	font-size: 22px;
	margin-bottom: 17px;
	text-transform: uppercase;
	font-weight: bold;
}
h3 {
	font-size: 18px;
	margin-bottom: 19px;
	text-transform: uppercase;
	font-weight: bold;
}
h4 {
	font-size: 16px;
	margin-bottom: 12px;
	text-transform: uppercase;
	font-weight: bold;
}
h5 {
	font-size: 16px;
	margin-bottom: 13px;
	text-transform: uppercase;
	font-weight: bold;
}
h6 {
	font-size: 12px;
	margin-bottom: 50px;
	text-transform: uppercase;
	font-weight: bold;
}
p {
  font-size: 14px;
  font-family: Arial;
  color: #383838;
  text-align: justify;
  margin-bottom: 12px;
}
a {
	font-size: 14px;
	font-family: Arial;
	color:#d91936;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
.skiptranslate {
	display: none;
}
body {
	top: 0 !important;
}
.clear {
	clear: both;
}
.hide {
	display: none;
}
.header {
	position: relative;
	/*background: url("../img/header.jpg") 50% 0 no-repeat transparent;
	min-height: 365px;*/
	background: url(../img/header.jpg) center center no-repeat transparent;
	min-height: 200px;
}
.top_header_bg {
	height: 32px;
	width: 100%;
	position: absolute;
	top: 0px;
	opacity: 0.5;
	background: #dadada;
}
.top_header {
	height: 32px;
	width: 100%;
	position: absolute;
	top: 0px;
}
.ctr {
	width: 1000px;
	margin: 0 auto;
	position: relative;
}
.home, .map, .mail {
	background: url("../img/pic.png") 0 0 no-repeat transparent;
	background-size: 80px 20px;
	width: 20px;
  height: 20px;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
}
.map {
	background-position: -28px 0; 
	margin-left: 10px;
}
.map-columns ul li a {
	margin-bottom: 5px;
	display: inline-block;
}
.mail {
	background-position: -60px 0;
	margin-left: 10px;
}
.lang {
	color: #8e8e8e;
	font-size: 20px;
	vertical-align: middle;
	font-weight: bold;
}

.lang + span {
	color: #8e8e8e;
	font-size: 12px;
	vertical-align: middle;
}
.lang.active {
	color: #d91936;
}
.twiter, .vk, .fb, .gp {
	background: url("../img/social.png") 0 0 no-repeat transparent;
	width: 19px;
	height: 19px;
	cursor: pointer;
	display: inline-block;
	vertical-align: middle;
}
.vk {
	background-position: -21px 0;
}
.fb {
	background-position: -42px 0;
	margin-right: 10px;
}
.gp {
	background-position: -63px 0;
}

.pic, .div_lang {
	float: right;
	line-height: 32px;
    margin-right: 30px;
}
.social {
	float: right;
	line-height: 32px;
}                    
.bvi_button {
	float: right;
	line-height: 32px;   
    margin-right: 30px; 
}
.info_logo {
	width: 295px;
	position: absolute;
	top: 68px;
	/*right: 0;*/
	right: 10px;
}
.info_logo p.sbyt {
	font-size: 14px;
	color: #4d4d4d;
	margin-bottom: 15px;
	text-align: right;
}
.sbyt1 {
	font-size: 20px;
	color: #000;
}
.sbyt2 {
	font-family: Arial;
	font-size: 26px;
	color: #d91936;
	font-weight: bold;
}
.info_logo .line {
	height: 1px;
	background: #cccccc;
}
.info_logo .line2 {
	height: 1px;
	background: #d9d9d9;
}
.header .logo {
	position: absolute;
	/*top: 95px;*/
	top: 35px;
	left: 10px;
}
.address {
	margin-top: 7px;
}
.address p {
  font-size: 14px;
  line-height: 17px;
  color: rgb(51, 51, 51);
  text-align: right;
}
.bright {
	width: 390px;
	height: 95px;
	position: absolute;
	right: 0;
	top: 240px;

	display: none;
}
.bright_bg {
	background: #d91936;
	opacity: 0.5;
	position: absolute;
	top:0;
	left:0;
	width: 100%;
	height: 100%;
}
.bright_text {
	position: absolute;
	top:0;
	left:0;
	width: 346px;
	height: 51px;
	padding: 22px;
}
.bright_text p {
	color: #fff;
	font-size: 24px;
	line-height: 24px;
	text-align: justify;
	text-transform: uppercase;
	font-weight: bold;
}
.menu {
	min-height: 62px;
	width: 100%;
	background: #dadada;
	text-align: center;
}
.sub_menu {
	display: none;
}
.basic_menu {
	display: inline-block;
	z-index: 20;
	position: relative;
}
.basic_menu > li {
	display: inline-block;
	line-height: 62px;
	vertical-align: top;
}
.basic_menu > li  + li {
	margin-left: 25px;
}
.basic_menu > li > a {
  font-size: 18px;
  /*color: #fff;*/
  text-decoration: none;
  display: block;
  /*padding-left: 10px;
	padding-right: 10px;*/
	padding-left: 18px;
	padding-right: 18px;
  min-width: 91px; 
  height: 62px;
}

.basic_menu > li > a:hover, .basic_menu .root-selected > a {
	border-bottom: 2px solid red;
	height: 60px;
}
.basic_menu > li:hover .sub_menu {
	display: block;
}
.basic_menu .str {
	/*background: url("../img/str_down.png") 50% 45px no-repeat transparent;*/
}
.basic_menu .str:hover, .basic_menu .str.root-selected {
	/*background: url("../img/str_up.png") 50% 45px no-repeat #8e8e8e;*/
}
.basic_menu .root-selected {
	background: /*#8e8e8e*/ #ececec;
}
.sub_menu {
	line-height: 18px;
	background: #e9e9e9;
	padding-top: 15px;
	padding-bottom: 5px;
}
.sub_menu li a {
	font-size: 14px;
	color: #000;
	text-decoration: none;
	display: block;
	width: 101px;
	padding-left: 10px;
	padding-right: 0px;
	text-align: left;
	margin-bottom: 10px;
}
.sub_category .item-selected {
	background: #e9e9e9;
}
.sub_menu li a:hover, .sub_menu li.item-selected a {
	color: #d91936;
}
.rel {
	position: relative;
}
.rel > img {
	position: absolute;
	top: 61px;
	left: 0;
}
.content {
	/*margin-top: 30px;*/
	margin-top: 10px;
}
div.search {
	width: 78%;
	height: 36px;
	border: none;
	font-size: 12px;
	color: #000;
	background: #e9e9e9;
	position: relative;
	float: right;
}
input.search {
	border: none;
	outline: none;
	-webkit-appearance: none;
	width: 230px;
	padding-left: 18px;
	height: 34px;
	vertical-align: top;
	background: #e9e9e9;
	
}
div.info_logo input.search{padding-left: 0px!important;}
input#search-submit-button {
	width: 36px; /* Ширина кнопки */
	height: 36px; /* Высота кнопки */
	border: none; /* Убираем рамку */
	background: url("../img/serach.png") 50% 50% no-repeat #e9e9e9;/* Параметры фона */
	cursor: pointer;
	position: absolute;
	right: 0px;
	top: 0px;
}
.left_menu {
	float: left;
	width: 310px;
}
.content_area {
	float: left;
	margin-left: 30px;
	width: 660px;
}
.category {
	margin-top: 30px;
}
.category .name {
	height: 52px;
	background: #d91936;
	padding-left: 20px;
	line-height: 55px;
        opacity: 0.6;
}
.category .name p{
  font-size: 18px;
  color: #fff;
  text-transform: uppercase;
}
.category_list > li {
	border-top: 2px solid #c7c7c7;
	font-size: 18px;
	color: #000;
	margin-bottom: 18px;
	cursor: pointer;
}
.category_list > li > a {
	font-size: 16px;
	color: #000;
	text-decoration: none;
	margin-left: 5px;
}
.category_list > li::before {
	content: "";
	display: inline-block;
	width: 33px;
	height: 17px;
	background: #8e8e8e;
	margin-top: -2px;
}
.category_list > li:hover > a {
	color: #d91936;
}
.category_list > li:hover::before, .category_list > li.li-item-selected::before {
	background: #d91936;
}
.sub_category {
	margin-top: 10px;
/*display: none;*/
	display: block;
}
.sub_category li {
	/*margin-bottom: 13px;*/
}
.sub_category li a {
	padding-left: 50px;
	display: inline-block;
	color: #000;
	text-decoration: none;
	/* min-height: 22px; */
	line-height: 14px;
	width: 260px;
	padding: 4px 0px 5px 50px;
}
.sub_category li:hover {
	background: #e9e9e9;
}
.sub_category li:hover a {
	color: #d91936;
}
.slider {
	text-align: center;
}
.slide {
	position: relative;
}
.text_bg {
	background: #f0f0f0;
	opacity: 0.5;
	width: 415px;
	height: 60px;
	position: absolute;
	right: 0px;
	bottom: 20px;
}
.text {
    font-weight: bold;
	width: 415px;
	height: 60px;
	line-height: 60px;
	position: absolute;
	right: 0px;
	bottom: 20px;
	font-size: 15px;
	color: #000;
	display: table-cell;
	vertical-align: middle;
	text-align: center;
}
.navigation {
	text-align: center;
	margin-top: -27px;
}
.nav_element {
	display: inline-block;
	cursor: pointer;
	position: relative;
}
.nav_element img {/*
	-webkit-filter: grayscale(100%);
	-moz-filter: grayscale(100%);
	-ms-filter: grayscale(100%);
	-o-filter: grayscale(100%);
	filter: grayscale(100%);
	filter: url(../img/grayscale.svg#greyscale); 
	filter: gray; */
}
.nav_element:hover {
	/*height: 57px;*/
	/*border-bottom: 3px solid #d91936;*/
}
.nav_element.active  img {
	-webkit-filter: grayscale(0%);
	-moz-filter: grayscale(0%);
	-ms-filter: grayscale(0%);
	-o-filter: grayscale(0%);
	filter: none;
}
.nav_element .red_line {
	display: none;
}
.nav_element.active canvas {
	display: none;
}
.nav_element:hover  .red_line, .nav_element.active .red_line {
	display: block;
	width: 100%;
	height: 3px;
	position: absolute;
	bottom: 2px;
	background: red;
}
.nav_element + .nav_element {
	margin-left: 15px;
}
.mt5 {
	margin-top: 5px;
}
.content_element {
	border-top: 4px solid #5e5e5e;
	padding-top: 13px;
	margin-top: 17px;
}
.content_element_name {
	width: 170px;
	float: left;
}
.content_element_name p {
  font-size: 18px;
  color: rgb(51, 51, 51);
  text-transform: uppercase;
  text-align: left;
}
.content_element_text {
	float: left;
	width: 482px;
}
.content_element_text ul {
list-style-image: url(http://hms-bmbpump.ru/upload/galochka.png);
    margin-left: 35px;
}
.content_element_text ul li{
    font-size: 14px;
	line-height: 1.417;
    text-align: justify;
}
.content_element_text::before, .content_element_text_column::before {
	content: "";
	width: 70px;
	height: 33px;
	background: #d91936;
	display: block;
	margin-top: -17px;
	margin-bottom: 15px;
}
.content_element_text p {
  font-size: 14px;
  color: rgb(51, 51, 51);
  line-height: 1.417;
  text-align: justify;
  margin-bottom: 5px;
}
.content_element_text_column {
	float: left;
	width: 148px;
}
.content_element_text_column + .content_element_text_column {
	margin-left: 19px;
}
.content_element_text_column .data {
  font-size: 13px;
  color: #d91936;
  margin-bottom: 15px;
}
.content_element_text_column .title {
  font-size: 12px;
  line-height: 15px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
  display: inline-block;
  text-decoration: underline;
}
.content_element_text_column .title:hover {
	color: #d91936;
}
.footer {
	margin-top: 65px;
	background: #9e9e9e;
}
.footer > .ctr {
	background: url("../img/footer-lighter.png") 0 0 no-repeat transparent;
	background-size: cover;
	padding-top: 25px;
	padding-bottom: 20px;
}
.footer_menu {
	/*margin: 0 auto;*/
}
.footer_menu td {
	padding-left: 3px;
	padding-right: 3px;
}
.footer_menu td + td {
	border-left: 2px solid #b9b9b9;
}
.footer_menu td > a {
  font-size: 12px;
	/*color: #fff;*/
	color: #d91936;
  text-decoration: none;
  margin-bottom: 7px;
  display: inline-block;
}
.footer_menu td ul {
	margin-left: 5px;
}
.footer_menu td ul a {
	font-size: 14px;
	color: #fff;
	width: 85px;
	display: block;
	margin-bottom: 5px;
	text-decoration: underline;
}
.footer_menu td ul a:hover, .footer_menu td ul li.item-selected a {
	color: #d91936;
	text-decoration: none;
}

div.footcontact{
	width: 295px;
    margin-top: 10px;
	display: inline-block;
	vertical-align: top;
}
div.footcontact3{
	/*width: 345px;*/
	width: 227px;
    margin-top: 10px;
	display: inline-block;
	vertical-align: top;
}
div.footcontact2{
	display: inline-block;
	vertical-align: top;
    margin: 10px;
}
.footcontact p,.footcontact3 p {
	font-size: 10pt;
		/*color: #fff;*/
		color: #777;
	margin-bottom: 2px;
	padding: 0 10px;
}
.footcontact a,.footcontact3 a{
	font-size: 10pt;
}
.copyright {
	background: #000;
	display: none;
}
.copyright p, .copyright > .ctr > div {
	line-height: 54px;
	color: #fff;
	font-size: 11px;
}
.breadcrumb {
	margin-bottom: 15px;
}
.breadcrumb a {
  font-size: 12px;
  color: rgb(0, 0, 0);
  text-decoration: none;
}
.breadcrumb span {
	font-size: 12px;
	text-decoration: none;
}
.last {
	color: #d91936;
}
.product_category {
	font-size: 22px;
	font-family: "Arial";
	color: rgb(217, 25, 54);
	font-weight: bold;
	margin-bottom: 15px;
}
.product_name {
	border-top:2px solid #5e5e5e;
}
.product_name::before {
	content: "";
	width: 86px;
	height: 52px;
	display: inline-block;
	background: #d91936;
	margin-top: -2px;
	margin-left: 125px;
}
.product_name > div {
	display: inline-block;
	vertical-align: top;
	font-size: 23px;
	color: rgb(51, 51, 51);
	margin-left: 28px;
	margin-top: 7px;
	font-weight: bold;
	width: 405px;
}
.tech_1 {
	width: 215px;
	height: 33px;
	line-height: 33px;
	background: #8e8e8e;
	text-decoration: underline;
	color: #fff;
	text-align: center;
}
.tech_1 a{
	line-height: 33px;
	text-decoration: underline;
	color: #fff;
}
.tech_2 {
	width: 155px;
	min-height: 135px;
	background: #e9e9e9;
	padding: 15px 30px;
	margin-top: 10px;
}
.tech_2 p {
	margin-bottom: 5px;
	font-size: 15px;
}
.tech_2 .tech_2_title {
	font-weight: bold;
	font-size: 14px;
	margin-bottom: 7px;
}
.product_column_left {
	float: left;
	width: 215px;
	margin-right: 26px;
	margin-top: -1px;
	padding-top: 5px;
}
.product_column_left .img {
	width: 215px;
	height: 210px;
	cursor: pointer;
	position: relative;
        text-align: center;
}
.product_column_left .img .plus {
	position: absolute;
	top: 50%;
	left: 50%;
	margin-left: -23px;
	margin-top: -23px;
	height: 46px;
	width: 46px;
	background: url("../img/plus.png") 0 0 no-repeat transparent;
}
.product_column_left .img:hover {
	outline: 2px solid #e35469;
}
.product_column_right {
	float: left;
	width: 411px;
	margin-top: 35px;
}
.tech_3 {
	border-top: 2px solid #a9a9a9;
}
.tech_3 + .tech_3 {
	margin-top: 35px;
}
.tech_3::before {
	content: "";
	width: 33px;
	height: 17px;
	display: inline-block;
	background: #a9a9a9;
}
.tech_3 .tech_3_title {
  font-size: 18px;
  color: rgb(51, 51, 51);
  font-weight: bold;
  text-transform: uppercase;
  display: inline-block;
	margin-bottom: 15px;
}
.tech_4 {
	border-top: 2px solid #8e8e8e;
	margin-top: 40px;
}
.tech_4::before {
	content: "";
	display: inline-block;
	width: 33px;
	height: 17px;
	margin-top: -2px;
	background: #8e8e8e;
	margin-left: 30px;
}
.tech_4.active {
	border-top: 2px solid #737373;
}
.tech_4.active::before {
	background: #d91936;
}
.tech_4_title {
  font-size: 18px;
	color: rgb(0, 0, 0);
	display: inline-block;
	font-weight: bold;
	margin-bottom: 20px;
	margin-left: 10px;
	text-transform: uppercase;
}
.tech_4 table {
	width: 100%;
	text-align:center;
	
}
.tech_4 table thead {
	border-top: 3px solid #898989;
	border-bottom: 3px solid #898989;
	background: #e9e9e9;
	font-size: 12px;
	color: #4d4d4d;
	font-weight: bold;
}
.tech_4 table td {
	border-bottom: 2px solid #b3b3b3;
	vertical-align: middle;
	padding-top: 5px;
	padding-bottom: 5px;
}
.tech_4 table td + td {
	border-left: 2px solid #b3b3b3;
}
.tech_4 table tr:nth-child(2n){
	background: #e9e9e9;
}
.footer_menu .root-item-selected {
	/*color: #d91936;*/
}
.root-item-selected + ul.sub_category {
	display: block;
}
.category_list .root-item-selected, .category_list .item-selected {
	color: #d91936;
}
.breadcrumb {
	margin-top: 10px;
}
.product {
	/*margin-top: 53px;*/
}
.tech_3 p {
	font-size: 15px;
}
.tech_3 ul {
	list-style-type: square;
	font-size: 15px;
	margin-left: 34px;
}
.tech_4 ul {
	list-style-type: square;
	font-size: 15px;
	margin-left: 34px;
}
.row {
	width: 620px;
	margin-bottom: 0;
	padding: 3px 1px;
}
.row .label {
	width: 150px;
	float: left;
	margin-right: 2px;
	padding-top: 2px;
	font-size: 11px;
	line-height: 13px;
	color: #666666;
}
.row .value {
	width: 300px;
	float: left;
}
.clear-float {
	clear: both;
}
.row .value input, .row .value textarea {
	padding: 2px;
	width: 460px;
	font-size: 12px;
}
.button:hover {
	background-color: #d42432;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fafafa), to(#d42432));
	background-image: -webkit-linear-gradient(top, #fafafa, #d42432);
	background-image: -moz-linear-gradient(top, #fafafa, #d42432);
	background-image: -ms-linear-gradient(top, #fafafa, #d42432);
	background-image: -o-linear-gradient(top, #fafafa, #d42432);
	background-image: linear-gradient(top, #fafafa, #d42432);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#fafafa', EndColorStr='#d42432');
}
.button {
	white-space: nowrap;
	background-color: #bc0614;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#bc0614));
	background-image: -webkit-linear-gradient(top, #fff, #bc0614);
	background-image: -moz-linear-gradient(top, #fff, #bc0614);
	background-image: -ms-linear-gradient(top, #fff, #bc0614);
	background-image: -o-linear-gradient(top, #fff, #bc0614);
	background-image: linear-gradient(top, #fff, #bc0614);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorStr='#ffffff', EndColorStr='#bc0614');
	border: 0.5px solid #d42432;
	padding: 2px 6px;
	font: 14px Arial;
	text-decoration: none;
	color: #fff;
	text-shadow: 0 1px 0 #bc0614;
	-moz-border-radius: .2em;
	-webkit-border-radius: .2em;
	border-radius: .2em;
	-moz-box-shadow: 0 0 1px 1px #d42432 inset, 0 1px 0 rgba(0,0,0,.3);
	-webkit-box-shadow: 0 0 1px 1px #d42432 inset, 0 1px 0 rgba(0,0,0,.3);
	box-shadow: 0 0 1px 1px #d42432 inset, 0 1px 0 rgba(0,0,0,.3);
	margin-left: 155px;
}
.search-button {
	width: 213px;
	height: 33px;
	background: #8e8e8e;
	color: #fff;
	text-transform: uppercase;
	border: none;
}
.search-button:hover {
	background: #d91936;
}
.line_gray {
	background: #898788;
	height: 2px;
	width: 247px;
	position: absolute;
	/*top: 163px;*/
	top: 103px;
	left: 10px;
}
.company_name {
	position: absolute;
	/*top: 173px;*/
	top: 113px;
  left: 10px;
}
.shadow2 {
	margin-top: -1px;
	z-index: -1;
	position: relative;
}
.feedback {
	margin-top: 100px;
}
.feedback .row {
	width: 100%;
}
.feedback  .row .label {
	width: 70px;
}
.feedback .row .value {
	width: 235px;
}
.feedback .row .value input, .row .value textarea {
	width: 228px;
}
.photo-section table {
	width: 100%;
}
div.photo-section table.data-table tr.head-row td {
	padding: 0px;
}

div.bx_catalog_item_container {
    margin-bottom: 10px;
}

p.news-item{
    margin-bottom: 35px;
}
img#prev_slide{    position: absolute;
    left: -5px;
    top: 40%;}
img#next_slide{    position: absolute;
    right: -5px;
    top: 40%;}	
img#next_slide, img#prev_slide {opacity:0.7}	
img#next_slide:hover, img#prev_slide:hover {opacity:1}	

#scrollup {
position: fixed; /* фиксированная позиция */
opacity: 0.8; /* прозрачность */
padding: 15px 10px 10px; /* отступы */
left: 3px; /* отступ слева */
top: 10px; /* отступ снизу */
display: none; /* спрятать блок */
cursor: pointer;
}
.klients table td{
    padding: 5px;
}
.klients table tr{
    border-bottom: 1px solid #d91936;
}

p.seologic{
margin-top: 45px;
} 

/* START TOOLTIP STYLES */
[tooltip] {
  position: relative; /* opinion 1 */  
  font-size: 14pt;
}

/* Applies to all tooltips */
[tooltip]::before,
[tooltip]::after {
  text-transform: none; /* opinion 2 */
  font-size: .9em; /* opinion 3 */
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}
[tooltip]::before {
  content: '';
  border: 5px solid transparent; /* opinion 4 */
  z-index: 1001; /* absurdity 1 */
}
[tooltip]::after {
  content: attr(tooltip); /* magic! */
  
  /* most of the rest of this is opinion */
  font-family: Helvetica, sans-serif;
  text-align: center;
  
  /* 
    Let the content set the size of the tooltips 
    but this will also keep them from being obnoxious
    */
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: .3ch;
  box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
  background: #333;
  color: #fff;
  z-index: 1000; /* absurdity 2 */
}

/* Make the tooltips respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #333;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #333;
}
[tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #333;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}
[tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #333;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}
[tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

/* FX All The Things */ 
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 300ms ease-out forwards;
}