@media (max-width: 800px) {
 .mobile_nondisplay{
   display: none;
 }
 .fam_list_desc {
   display: none;
 }
 .customadvert_desktop-only {
    display: none;
}
 .stream-wood-btn {
    display: none !important;
}
 .stream-wood-chat, .stream-wood-bottom, .stream-wood-invitation, .stream-wood-invitation-bottom, .stream-wood-noreply, .stream-wood-noreply-bottom, .stream-wood-chat, .stream-wood-invitation, .stream-wood-invitation-bottom, .stream-wood-compact, {
    display: none !important;
 }
}

@media (min-width: 800px) {
  .mobile_display{
   display: none;
 }  
.fam_list_desc1 {
   display: none;
 }
 .fam_pad_cell1{
 min-width: 10%;
 }
}

/* open-sans-regular - cyrillic-ext_latin 
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('../fonts/open-sans-v17-latin_cyrillic-regular.eot');
  src: local('Open Sans Regular'), local('OpenSans-Regular'),
       url('../fonts/open-sans-v17-latin_cyrillic-regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/open-sans-v17-latin_cyrillic-regular.woff2') format('woff2'),
       url('../fonts/open-sans-v17-latin_cyrillic-regular.woff') format('woff'), 
       url('../fonts/open-sans-v17-latin_cyrillic-regular.ttf') format('truetype'),
       url('../fonts/open-sans-v17-latin_cyrillic-regular.svg#OpenSans') format('svg');
}*/


body /*к тексту по всему сайту. Пригодилось, когда правили цвет фона. 
На будущее оставить*/{
  /*font-family: "Open Sans" !important;*/
  font-size: 18px;
  line-height: 24px;
  webkit-transition: all 400ms ease;
  transition: all 400ms ease;
  background-color: #EBE8D9;
  font-weight: 400 !important;
}

.customheader/*к строке header, смотреть в layout шаблона.  
!импортант - означает, что это значение приоритетно по отношению к значениям другого аналогичного тега*/{
	background-color: #F7F1D5 !important; 
	box-shadow: 0 3px 3px rgba(0,0,0,0.05);
	height: auto !important;
	left: 0;
	position: relative;
	top: 0;
	width: 100%;
	z-index: 99;
}

@media (max-width: 800px) {
.customheader1/*к строке header, смотреть в layout шаблона.  
!импортант - означает, что это значение приоритетно по отношению к значениям другого аналогичного тега*/{
	background-color: #F7F1D5 !important; 
	box-shadow: 0 3px 3px rgba(0,0,0,0.05);
	height: 40px;
	left: 0;
	position: relative;
	top: 0;
	width: 100%;
	z-index: 99;
	margin-top: -10px;
   }
}

@media (min-width: 800px) {
    .customheader1 {
     display: none;   
    }
    .sp-module a {
    font-weight: 400;
}
}

a {
    font-weight: 600;
} 

@media (max-width: 800px) {
    .sp-module a {
    font-weight: 600;
}
}

.customheader a {
    font-weight: 600;
}

.imagelogo /*к логотипу*/{
    display: table;
    -webkit-transition: all 400ms ease;
    transition: all 400ms ease;
    margin: 3% auto 3% 0px;
	padding: 3%;
	max-width: 90%;
}
.customtop /*к строке top, смотреть в layout шаблона*/{
	 background-color:#f7f1d5;
	 color:#000000; 
	 z-index: 999
}
.custommenu /*к позиции menu, смотреть в layout шаблона*/{
  float: left;
  font-family: Helvetica, Arial, fantasy !important;
  position: relative;
 
}
.textproperties /*пригодилось для правки высоты строки. Привязан к позиции компонента*/{
  line-height: 28px;
  font-size: 18px;
  text-align: left;
}
.top_mobile /*к заголовку в pagetitle*/{
  float: left;
  font-family: TrajanPro, Helvetica, Arial, fantasy;
  font-size: 8pt;
  margin-left: 2px;
  margin-right: 2px;
  margin-top: 1%;
  text-align: center;
  text-shadow: 2px 2px 2px #DADADA;
  line-height: 17px;
  }
.post-format { /* Это добавить в template.css */
  position: absolute;
  top: 0;
  left: -40px;
  display: block;
  width: 0px;
  height: 36px;
  font-size: 24px;
  line-height: 33px;
  text-align: center;
  color: #622a00;
  border-radius: 20px;
}

@font-face /*добавляет свой шрифт, в данном случае - Траян, коим напечатан заголовок История фамилии
Шрифт лежит в папке fonts, сама папка - рядом с файлом custom.css*/{
  font-family: 'Algerius';
  font-display: swap;
  src: url('fonts/Algerius.ttf')  format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face /*добавляет свой шрифт, в данном случае - Траян, коим напечатан заголовок История фамилии
Шрифт лежит в папке fonts, сама папка - рядом с файлом custom.css*/{
  font-family: 'ALGERI_2';
  font-display: swap;
  src: url('fonts/ALGERI_2.ttf')  format('truetype');
  font-weight: normal;
  font-style: normal;
}
.customheader h1 /*задействует шрифт Algerius в виде заголовка h1*/{
  font-family: 'Algerius' !important;
  font-size: 2.5em !important; 
  color: #800000 !important;
}

h2 {
    font-family: Trebuchet MS !important;
    font-weight: 600;
    color: #5b3529;
    text-align: center;
}

#sp-user1 {
	text-align: center;
	/*left: 10%;*/
}

@media screen and (min-width: 800px) /*для компьютеров*/{
  .textlogodesktop /*к заголовку История фамилии*/{
   font-size: 14pt;
  font-weight: 500 !important;
  margin-top: 4%;
 }
 .custommenu {
     margin-top: 35%;
 }
 h6 {
    font-size: 0.8em;
 }
 #sp-main-body {
    padding-top: 3%;
    padding-bottom: 50px;
}
}

@media (max-width: 800px) /*для смартфонов*/{
	.textlogodesktop /*к заголовку История фамилии*/{
	font-size: 0.65em;
	margin-left: -2%;
	text-align: center;
	width: 115%;
	}
	h1 {
		font-size: 3em;
		font-weight: 500 !important;
        margin-top: 3%;
	} 
	#sp-main-body {
    padding-top: 8%;
    padding-bottom: 50px;
    }
	h2 {
		font-size: 1.5em !important;
	}
	h6 {
	    font-size: 1em;
	}
	.entry-header.has-post-format {
    margin-left: 48px;
    display: inline-block;
}
}

.sp-module-title {
    background-color: #693423;
    border-radius: 3px;
    color: #f7f1d5;
    padding: 3%;
    font-weight: 600;
    /*box-shadow: 2px 2px 5px #5b3529;*/
}

.sp-module {
    margin-top: 20px;
}

.sp-module ul >li {
   /*border-bottom: 2px solid #644137;*/
   margin-right: 0%;
}

.page-header {
    border-bottom: none;
    margin: 0px 0 20px;
}

.sp-footer {
    background: #5b3529;
}

.menumenubezugolkov { 
    float: left;
    margin-top: 25% !important;
     ul >li >a:before {
  none}
}

.entry-header h2 {
    font-size: 22px;
}

.fa {
    font-size: 0px;
  }

.fa-bars::before {
    font-size: 37px;
    margin-left: -10px;
    color: #622a00;
}

.fa-angle-down::before {
    content:"\f13a";
    font-size: 34px;
}

.fa-angle-up::before {
    content:"\f139";
    font-size: 34px;
}

.fa-remove::before, .fa-close::before, .fa-times::before {
    font-size: 37px;
    padding-top: 20px;
    color: #842222;
}

.fa-facebook-square {
    font-size: 37px;
    color: #4267b2;
}

.fa-instagram {
    font-size: 37px;
    color: #ca3c78;
}

.fa-vk {
    font-size: 37px;
    color: #2a5885;
}

.close-offcanvas {
    width: 50px;
    height: 50px;
    border: 3px solid #5b3529;
    padding-top: 3px;
    background-color: #dfddd0;
}

.ba-filter-active {
    background-color: rgb(91, 53, 41);
    border: 1px solid rgb(91, 53, 41);
    border-radius: 5px;
}

.formResponsive .formHorizontal .rsform-block {
    margin-bottom: 8px;
}

.sp-component {
    margin-top: 5%;
}

.knopka a {
    background-color: #5b3529;
    border-radius: 5px;
    color: #f7f1d5;
    padding: 3%;
    font-weight: 600;
}

#bm-cool-menu-111 .bm-cool-menu li.active a {
    /*background-color: #b9daeb;*/
    border-radius: 0px 0px 5px 5px;
}

.bm-cool-menu {
    border-radius: 0% 0% 5px 5px;
    margin-top: -10px !important;
    /*box-shadow: 2px 2px 5px #5b3529;*/
}

.bm-cool-menu li {
    border-bottom: none !important;
    border-right: solid 0px #5b3529 !important;
}
.bm-cool-menu a {
    font-size: 14px !important;
    font-weight: 600;
    padding: 5px 10px 5px 10px !important;
}

.newsflash {
    padding: 0px 10px 10px 10px;
}

.newsflash-title {
    font-weight: 600;
    margin-top: 40px;
}

.readmore {
    margin-bottom: 10px;
/*border: 1px solid #e6e0c8;*/
padding: 7px;
border-radius: 5px;
color: #622a00;
font-weight: 600 !important;
/*background-color: #f7f1d5;*/
}

.formBody {
    font-size: 1.2em;
    font-weight: 600;
    margin: 10px;
}

/*Далее - с фамилии точка ру, стили, относящиеся к списку фамилий*/

#fam_out_box {
width:auto;
height:auto;
}

#fam_list {  
    -webkit-column-count:3;  
    -moz-column-count:3;  
    column-count:3;  
}  
.fam_button {
	text-decoration:none;
    outline: 0;
    padding: 2px 6px;
    color: #ebe8d9;
    font-weight: bold;
    /*text-shadow: 1px 1px #1f272b;*/
    border: 1px solid #1c252b;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    background: #5b3529;
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3D4850', endColorstr='#232B30',GradientType=0 ); /* ie */
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* CSS3 */
    -moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* Firefox */
    -webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.2); /* Safari, Chrome */
}
.textproperties fam_out_box {
    line-height: 200%;
}

.fam_button:hover {
    color: #fff;
    background: #C4A38B; /* old browsers */
}
.fam_button:active {
    background-position: 0 top;
    position: relative;
    top: 1px;
    color: #fff;
    padding: 2px 6px 3px;
    background: #20282D; /* old browsers */
}

.fam_list_button {
   border-top: 1px solid #e0bf92;
   background: #ad9472;
   background: -webkit-gradient(linear, left top, left bottom, from(#9c753e), to(#ad9472));
   background: -webkit-linear-gradient(top, #9c753e, #ad9472);
   background: -moz-linear-gradient(top, #9c753e, #ad9472);
   background: -ms-linear-gradient(top, #9c753e, #ad9472);
   background: -o-linear-gradient(top, #9c753e, #ad9472);
   padding: 1px 7px;
   -webkit-border-top-right-radius: 8px;
	-webkit-border-bottom-right-radius: 8px;
	-moz-border-radius-topright: 8px;
	-moz-border-radius-bottomright: 8px;
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
   -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
   -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
   box-shadow: rgba(0,0,0,1) 0 1px 0;
   text-shadow: rgba(0,0,0,.4) 0 1px 0;
   color: white;
   font-size: 14px;
   font-family: Georgia, Serif;
   text-decoration: none;
   vertical-align: middle;
   }
.fam_list_button:hover {
   border-top-color: #9c753e;
   background: #9c753e;
   color: #ccc;
   }
.fam_list_button:active {
   border-top-color: #59390d;
   background: #59390d;
   }       
.fam_list_nobutton {
   border-top: 1px solid #ffffff;
   background: #fff7c4;
   background: -webkit-gradient(linear, left top, left bottom, from(#d6cb83), to(#fff7c4));
   background: -webkit-linear-gradient(top, #d6cb83, #fff7c4);
   background: -moz-linear-gradient(top, #d6cb83, #fff7c4);
   background: -ms-linear-gradient(top, #d6cb83, #fff7c4);
   background: -o-linear-gradient(top, #d6cb83, #fff7c4);
   padding: 1px 7px;
   -webkit-border-top-left-radius: 8px;
	-webkit-border-bottom-left-radius: 8px;
	-moz-border-radius-topleft: 8px;
	-moz-border-radius-bottomleft: 8px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
   -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
   -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
   box-shadow: rgba(0,0,0,1) 0 1px 0;
   text-shadow: rgba(0,0,0,.4) 0 1px 0;
   color: #59402c;
   font-size: 13px;
   font-family: Georgia, Serif;
   text-decoration: none;
   vertical-align: middle;
   }   
.fam_title {
  background: #7d4227;
  padding: 10px 11px;
  font-size: 24px;
  font-weight:bold;
  color: #ffffff;
  border-radius: 5px;
}
.fam_pad_table{
border: none;
padding: 3px 2px;
}
.fam_pad_cell1
{
background: #fcf6ed;
font-size:12px;
padding: 0px 5px 0px 5px;
border-bottom: 4px solid #EBE8D9;
border-left: 4px solid #EBE8D9;
border-radius: 5px;
}
.fam_pad_cell2
{
text-transform:capitalize;
background: #f5dbb8;
font-size:16px;
font-weight: 600;
padding: 10px 5px 10px 5px;
border-bottom: 4px solid #EBE8D9;
border-left: 4px solid #EBE8D9;
border-radius: 5px;
}

#fam_list{
font-size:14px;
}

.fam_list_desc{
text-indent: 1.5em; 
text-align: justify;
font-size: 14px;
padding: 0px 5px 0px 5px;
}

.fam_list_desc1{
text-indent: 1.5em; 
text-align: justify;
font-size: 14px;
padding: 0px 5px 0px 5px;
}


.sp-module:first-child {
    margin-top: 10px;
}

.whatsapp {
    font-family: FontAwesome;
    content: "\f232";
}

.socialicons {
    width: 200%;
    margin-top: 35%;
}

.offcanvas-menu .offcanvas-inner .sp-module:first-child {
    margin-bottom: -10px;
    padding: 20px 40px 0px 10px;
}

.offcanvas-menu .offcanvas-inner .sp-module .sp-module-title {
    margin-bottom: 5px !important;
}

article.item {
    margin-bottom: 10px;
}

/*.btn {
    box-shadow: 0 0 5px;
}*/

.clearfix {
    border-bottom: 1px dotted black;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

h3 {
    text-align: center;
    margin-bottom: 40px;
}

.videoWrapper { 
    position: relative; 
    padding-bottom: 56.25%; 
    padding-top: 25px; 
    margin-bottom: 25px; 
    height: 0; 
}

.videoWrapper iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}

.article-info dd {
    margin: 0px 0px 10px 0px;
}

.offcanvas_search {
     margin: 0px 0px 0px 5px !important;
     color: #999 !important;
     opacity: 1 !important;
}

.fam_pad_cell3 {
background: #fcf6ed;
font-size: 12px;
font-weight: 700;
padding: 0px 5px 0px 5px;
border-bottom: 4px solid #EBE8D9;
border-left: 4px solid #EBE8D9;
}

.fam_list_desc1{
text-indent: 1.5em; 
text-align: justify;
font-size: 14px;
padding: 0px 5px 0px 5px;
}

.offcanvas a {
    color: #f7f1d5;
    font-weight: 600;
}

.customoplata {
background-color:#bd624d;
border: 1px solid #7e5244;
border-radius: 5px;
color: #f7f1d5;
padding: 3%;
font-weight: 600;
box-shadow: 1px 2px 4px #845137d6;
margin-bottom: -2%;
text-shadow: 0px 0px 1px #9b6f62;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#bd624d), to(#754232));
}

.customoplata a {
    font-weight: 600 !important;
}

.customoplata a:hover {
  text-decoration: none;
  color: #000000;
}

.ba-album.css-style-5 .ba-album-items, .ba-gallery-grid.css-style-5 .ba-gallery-items {
    box-shadow: 1px 1px 4px;
    border-radius: 5px;
}

.formResponsive .rsformProgressContainer .rsformProgressBar {
    background-color: #b6db80;
    background-image: none !important
}

.formResponsive button[type="button"].rsform-button-next {
    background-color: #68bb3a;
    border-color: #4cae4c;
    padding: 10px;
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li {
    border: 0;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    overflow: hidden;
    background-color: #4d4b46;
    margin-top: 9px; 
    border-radius: 5px;
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li a {
    -webkit-transition: 300ms;
    -o-transition: 300ms;
    transition: 300ms;
    padding: 10px 20px;
    font-size: 16px;
    text-transform: uppercase;
    color: #fff3e3;
    font-weight: 700;
    line-height: 40px;
}

.offcanvas-menu .offcanvas-inner .sp-module ul > li .offcanvas-menu-toggler {

    display: inline-block;
    position: absolute;
    right: 0;
    padding: 13px 20px;
    cursor: pointer;
    color: #ffefda;

}

.formResponsive .formHorizontal .formControlLabel {
font-size: 12px;
line-height: 18px;
}

.formResponsive input[type="button"].rsform-button-prev,
.formResponsive button[type="button"].rsform-button-prev {
    color: #fff;
    background-color: #f0ad4e;
    border-color: #eea236;
    background-image: none;
    text-shadow: none;
    margin: 5px;
}

.uk-button-primary {
    background-color: #3dd538;
    color: #fff;
    border-radius: 2px;
}

@media (max-width: 800px){
.uk-button {
    padding: 7px 15px;
    font-size: 1.5em;
    border-radius: 5px;
}
}

@media (min-width: 800px) {
    .uk-button {
    padding: 7px 15px;
    font-size: 1em;
    border-radius: 5px;
}
}

.sp-module ul >li >a {
  color: #682d00;
}

.customadvert {
    background-color:white;
    padding: 10px;
    border: 1px solid #d1d1d1;
    box-shadow: 2px 2px 5px lightgray;
    min-height: 155px;
}

#sp-position5 .customadvert {
    background-color: white;
    padding: 0px 10px 10px 10px;
    border: 1px solid #d1d1d1;
    box-shadow: 2px 2px 5px lightgray;
    min-height: 155px;
}

.customadvert_desktop-only {
    background-color: white;
    padding: 0px 10px 0px 10px;
    border: 1px solid #d1d1d1;
    box-shadow: 2px 2px 5px lightgray;
    min-height: 155px;
}

#sp-section-4 {
    margin-top: -5%;
    height: auto;
}

.whatsapp-button {
    position: fixed;
    right: 13px;
    bottom: 90px;
    transform: translate(-50%, -50%);
    background: #039be5; /*цвет кнопки*/
    border-radius: 50%;
    width: 55px; /*ширина кнопки*/
    height: 55px; /*высота кнопки*/
    color: #fff;
    text-align: center;
    line-height: 53px; /*центровка иконки в кнопке*/
    font-size: 35px; /*размер иконки*/
    z-index: 9999;
}
.whatsapp-button a {
    color: #fff;
}
.whatsapp-button:before,
.whatsapp-button:after {
    content: " ";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #039be5; /*цвет анимированных волн от кнопки*/
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden; 
}
 
.whatsapp-button:after{
    animation-delay: .5s;
}
 
@keyframes animate
{
    0%
    {
        transform: scale(0.5);
        opacity: 0;
    }
    50%
    {
        opacity: 1;
    }
    100%
    {
        transform: scale(1.2);
        opacity: 0;
    }
}

.label-info {
 background-color:#ae4747;
}