/*   
Theme Name: Autoservice-Theme
Theme URI: https://cyberworkers.ru
Version: 3.0
Tags: clean, development, html5, bootstrap
Description: Адаптивная тема
Author: Дмитрий Панкратов
Author E-mail: vivado@bk.ru
*/

/* Код для подключения шрифтов */
@font-face {
	font-family: "HeliosCondRegular";
	src: url("/wp-content/themes/AutoTheme/fonts/HeliosCondRegular/HeliosCondRegular.eot");
	src: url("/wp-content/themes/AutoTheme/fonts/HeliosCondRegular/HeliosCondRegular.eot?#iefix")format("embedded-opentype"),
	url("/wp-content/themes/AutoTheme/fonts/HeliosCondRegular/HeliosCondRegular.woff") format("woff"),
	url("/wp-content/themes/AutoTheme/fonts/HeliosCondRegular/HeliosCondRegular.ttf") format("truetype");
	font-style: normal;
	font-weight: normal;
}
@font-face {
	font-family: "HeliosCondBold";
	src: url("/wp-content/themes/AutoTheme/fonts/HeliosCondBold/HeliosCondBold.eot");
	src: url("/wp-content/themes/AutoTheme/fonts/HeliosCondBold/HeliosCondBold.eot?#iefix")format("embedded-opentype"),
	url("/wp-content/themes/AutoTheme/fonts/HeliosCondBold/HeliosCondBold.woff") format("woff"),
	url("/wp-content/themes/AutoTheme/fonts/HeliosCondBold/HeliosCondBold.ttf") format("truetype");
	font-style: normal;
	font-weight: normal;
}

@media (min-width: 979px) { 
    /* для раскрывания субменю по наведению */
	ul.nav li.dropdown.show-on-hover:hover > ul.dropdown-menu { display: block;	}
	.comment-list .children { padding: 0;	margin-left: 74px; padding-bottom: 15px; }
	.comment-list .media { margin-top: 0; }
}

/* --- Ядро WordPress -------------------------------------------------------------- */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.alignright { float: right; margin: 5px 0 20px 20px; }
a img.alignnone { margin: 5px 20px 20px 0; }
a img.alignleft { float: left; margin: 5px 20px 20px 0; }
a img.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { background: #fff; border: 1px solid #f0f0f0; max-width: 96%; padding: 5px 3px 10px; text-align: center; }
.wp-caption.alignnone { margin: 5px 20px 20px 0; }
.wp-caption.alignleft { margin: 5px 20px 20px 0; }
.wp-caption.alignright { margin: 5px 0 20px 20px; }
.wp-caption img { border: 0 none; height: auto; margin: 0; max-width: 98.5%; padding: 0; width: auto; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; margin: 0; padding: 0 4px 5px; }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px);	position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.screen-reader-text:focus {	background-color: #f1f1f1; border-radius: 3px;	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);	clip: auto !important; color: #21759b;	display: block; font-size: 14px; font-size: 0.875rem; font-weight: bold; height: auto; left: 5px; line-height: normal; padding: 15px 23px 14px; text-decoration: none; top: 5px; width: auto; z-index: 100000; }
.size-full { width: 100%; }
.img-block .block-inline { display: inline-table; max-width: 290px; width: 100%; height: auto; margin: 5px; }

/* --- Стили для сайта -------------------------------------------------------------- */

header { background-color: #fff; }

.left-header-block, .center-header-block, .right-header-block { margin-top: 7px; width: 280px; height: 90px; display: inline-block; }
.left-header-block { float: left; }
.right-header-block { float: right; }

.center-header-block { width: 280px; }
.red-ramka { border: 2px solid #760100; border-radius: 5px; }
.red-ramka p { font-family: "HeliosCondRegular", sans-serif; line-height: 100%; }

.phone h2 { font-size: 24px; line-height: 28px; margin: 0px; }
.phone h2 span { color: #990100; }
.vtime { font-size: 14px; font-family: "HeliosCondRegular", sans-serif; color: #fff; background-color: #6c6c6c; border-top: 4px solid #fff; }

.red-ramka h2, .phone h2 { padding: 0px; background-color: #fff; border: 0px; }
.phone h2 a { color: #000; }
.phone h2 a:hover, .phone h2 a:focus { text-decoration: none; }

.nofloat { clear: both; }


/* --- Главное меню --- */
.navbar { border-radius: 0px; min-height: 40px; margin-bottom: 0px; }
.navbar-default { background-color: #000; border: none; font-family: "HeliosCondRegular", sans-serif; }

.navbar-nav { float: none; text-align: center; }
.navbar-nav li { float: none; }
.navbar-nav li a {
  font-size: 16px;
  text-transform: uppercase;
  font-family: "HeliosCondRegular", sans-serif;
}
.navbar-nav>li>a { padding: 10px 25px; }

/* --- Неактивные элементы меню --- */
.navbar-default .navbar-nav>li>a { color: #ddd; font-family: "HeliosCondRegular", sans-serif; }
/* --- Активные элементы меню --- */
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus, .navbar-default .navbar-nav>.active>a:hover { color: #fff; background-color: #4a6d96; }
/* --- Наведенные элементы меню --- */
.navbar-default .navbar-nav>li>a:hover { color: #fff; }
/* --- Стиль кнопки мобильного меню --- */
.navbar-default .navbar-toggle, .navbar-default .navbar-toggle:focus, .navbar-default .navbar-toggle:hover { background-color: #fff; }


/* --- Фон --- */
.wrapper { margin: 0 auto; background-color: #e0e0e0; }

/* --- Контент --- */
.content-block, .colonka { background-color: #fff;  min-height: calc(100vh - 270px); /* 100% высота экрана минус высота всех элементов кроме контента */ }
.page { padding-bottom: 0px; }
.slider { margin: 15px auto -5px auto; border: 2px solid #000; border-radius: 5px; }

p { line-height: 130%; font-family: Arial, sans-serif; }

h1, h2, h3, h4 { text-align: center; font-family: "HeliosCondRegular", sans-serif; text-transform: uppercase; }

h1 { font-size: 20px; color: #fff; background-color: #990100; border-top: 5px solid #000; background-color: #990100; border-bottom: 5px solid #000; }
h2 { font-size: 18px; color: #2a3756; margin: 10px 0px; border-top: 2px solid #6c6c6c; border-bottom: 2px solid #6c6c6c; padding: 2px 0px; background-color: #e0e0e0; }

h3 { font-size: 16px; color: #990100; text-align: left; }
h4 { font-size: 16px; color: #000; }

.center-blocks { text-align: center; margin: 0 auto; }
.preim-block, .usluga-block { display: inline-block; margin: 10px; }
.preim-block { width: 180px; }

/* --- Хлебные крошки --- */
.breadcrumbs { margin: 15px 0px -10px 0px; line-height: 12px; font-size: 12px; font-family: "HeliosCondRegular", sans-serif; }

/* --- Поворот при наведении --- */
.preim-block img {
   width: 172px;
   height: 172px;
   border: 2px solid #990100;
   border-radius: 50%;
   -webkit-transition: all 0.5s ease;
      -moz-transition: all 0.5s ease;
        -o-transition: all 0.5s ease;
       -ms-transition: all 0.5s ease;
           transition: all 0.5s ease;
}
.preim-block img:hover {
   -webkit-transform: rotate(-10deg);
      -moz-transform: rotate(-10deg);
        -o-transform: rotate(-10deg);
       -ms-transform: rotate(-10deg);
           transform: rotate(-10deg);
}
.pics { margin: 0px 0px 30px 0px; }
.pics .block-inline { width: 290px; height: 217px; display: inline-block; }
.pics .block-inline img { width: 100%; border: 2px solid #000; border-radius: 5px; }

.ramka { border: 2px solid #000; border-radius: 5px; }



.usluga-block { width: 260px; height: 180px; border: 2px solid #000; border-radius: 5px; }
.usluga-block img { width: 256px; height: 146px; margin: 0px; }
.usluga-block h3 { margin: 2px 0px; background-color: #000; padding: 4px 0px 5px 0px; text-align: center; }
.usluga-block h3 a { color: #fff; text-decoration: none; }

/* --- Увеличение при наведении --- */
.usluga-block .pic { width: 256px; height: 146px; border-radius: 5px; overflow: hidden; }
.zoom-to-box img {
  margin: 0px;
  -webkit-transition: all 1s ease;
     -moz-transition: all 1s ease;
       -o-transition: all 1s ease;
      -ms-transition: all 1s ease;
          transition: all 1s ease;
}
.zoom-to-box img:hover { width: 300px; height: 173px; margin: -13px 0px 0px -22px; }

.podrobnee-btn { padding: 10px; display: block; color: #dddddd; text-transform: uppercase; text-decoration: none; background-color: #4a6d96; }
.podrobnee-btn:hover { text-decoration: none; color: #ffffff; }

/* --- Блоки на странице Контакты  --- */
.bottom-contact-block { display: inline-block; margin: 10px; vertical-align: top; }
.bottom-contact-block p { margin: 0px 0px 2px 0px; }

.bottom-contact-block h4 { font-size: 14px; margin: 4px 0px 10px 0px; color: #6c6c6c; }
.bottom-contact-block h4 span { text-transform: none; color: #000; margin-left: 5px; }

.bottom-contact-block img { width: 290px; }

.textform, .phoneform, .textareaform {
  font-family: 'HeliosCondRegular', sans-serif;
  font-size: 14px;
  padding: 2px 5px;
  color: #000;
  background-color: #fbfbfb;
  outline: none;
  border: 1px solid #000;
  width: 100%;
}
.textareaform { height: 152px; }

.textform:focus, .phoneform:focus, .textareaform:focus { background-color: #fff; }
.politika-small-text {
    font-size: 12px;
    font-family: 'HeliosCondRegular', sans-serif;
    text-align: left;
    line-height: 12px;
    margin: 0 auto;
}
.blue-btn {
    background-color: #4a6d96;
    border: none;
    color: #fff;
    font-family: "HeliosCondRegular", sans-serif;
    font-size: 14px;
    outline: none;
    text-transform: uppercase;
    padding: 5px 15px;
}
.blue-btn:hover { background-color: #000; color: #fff; }
.yandexmap { margin-bottom: 10px; border: 1px solid #000; }

/*-- Примеры работ --*/
.primery-rabot h3 { background-color: #4a6d96; color: #fff; padding: 3px 0px; text-align: center; }
.primery-rabot img { width: 280px; margin: 10px; display: inline-table; border: 2px solid white; }
.primery-rabot img:hover { opacity: 0.8; }

.primery-rabot .do-img img { outline: 3px solid red; }
.primery-rabot .posle-img img { outline: 3px solid green; }


.primery-rabot .do-img span, .primery-rabot .posle-img span { width: 91px; height: 91px; display: block; position: absolute; background-repeat: no-repeat; z-index:50; }
.primery-rabot .do-img span { background-image: url('/wp-content/themes/AutoTheme/img/portfolio/do.png'); margin: 135px 275px; }
.primery-rabot .posle-img span { background-image: url('/wp-content/themes/AutoTheme/img/portfolio/posle.png'); margin: -96px 575px; }


/*-- Таблички прайса --*/
.tableprice { width: 100%; }
.tableprice th { background-color: #4a6d96; color: #fff; font-family: "HeliosCondRegular", sans-serif; }
.tableprice th, .tableprice td { text-align: center; border: 1px solid #000; }
.tableprice td:first-child { text-align: left; }
.grey { background-color: #e0e0e0; }

/*-- Выпадающие списки --*/
details summary {
    border: 1px solid #000;
    background-color: #a3c4e2; /* #02364e; */
    color: #02364e;
    padding: 2px 0px 2px 10px;
    cursor: pointer;
    font-family: "HeliosCondRegular", sans-serif;
    font-size: 16px;
    outline: none;
    text-transform: uppercase;
    line-height: 18px;
}
details summary:hover { color: #fff; background-color: #02364e; /* #4a6d96; */ }
summary::-webkit-details-marker { display: none }
summary:after { content: "\25BC"; color: #990100; font-size: 20px; font-weight: bold; margin: 0px 5px; text-align: center; width: 20px; }
details[open] summary:after { content: "\25B2"; }


/* --- Стили для вывода статей --- */
#page-list-statji .page-list-ext-item { margin: 10px 0px; clear: none; }
#page-list-statji .page-list-ext-title { border: none; text-align: left; margin: 5px 0px; }
.page-list-ext-item h3 a, .page-list-ext-item h3 a:link, .page-list-ext-item h3 a:visited { color: #F24406; text-decoration: none; padding: 0px; }
.page-list-ext-item h3 a:hover, .page-list-ext-item h3 a:focus { color: #DE9759; }

#page-list-statji .page-list-ext-item h3 a, #page-list-statji .page-list-ext-item h3 a:link, #page-list-statji .page-list-ext-item h3 a:visited { color: #808080; }
#page-list-statji .page-list-ext-item h3 a:hover, #page-list-statji .page-list-ext-item h3 a:focus { color: #000000!important; }
#page-list-statji .page-list-ext .page-list-ext-image img { width:50px!important; }

.page-list-ext-item-content { font-weight: normal; padding-bottom: 10px; border-bottom: 2px dashed #000; }


/* --- Боковая колонка --- */
.colonka { border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; } 

/* --- Стили для подвала --- */
footer { min-height: 100px; background-color: #2a3756; }
footer .logo { margin-top: 10px; }

/* --- Нижнее меню --- */
.bottom-menu { margin-top: 7px; }

.bottom-menu>li>a { 
    color: #fff;
    padding: 0px;
    width: 120px;
    text-transform: uppercase;
    font-family: "HeliosCondRegular", sans-serif;
}
.bottom-menu>li>a:hover {
    color: #e0e0e0;
    background-color: rgba(0, 0, 0, 0);
}

footer h5, footer p {
    color: #fff;
    font-family: "HeliosCondRegular", sans-serif;
    text-align: center;
}
footer h5 { text-transform: uppercase; }
footer p { margin-bottom: 5px; }
footer p span { color: #aeadad; }

footer a { color: #fff; }
footer a:focus, footer a:hover { color: #eee; text-decoration: none; }

/* --- Адаптация под мобильные устройства --- */
@media (max-width: 575px) { 
    header, footer { height: auto; }
	.left-header-block, .center-header-block, .right-header-block { float: none; }
    .navbar-nav li { display: block; }

    .bottom-contact-block, .bottom-contact-block img { width: 95%; margin: 0 auto 10px auto; }
    .tableprice td, .tableprice th { padding: 2px; }
    .tableprice th:first-child, .tableprice th:first-child { width: auto; }
    .tableprice td { width: auto; }

    .footer-logo-block, .bottom-menu { text-align: center; }
    .bottom-menu { background-color: #6c6c6c; padding: 5px 0px; }
    .nav-pills>li { display: inline-block; float: none; }
	
	.primery-rabot .do-img span { margin: 135px 5px; }
    .primery-rabot .posle-img span { margin: 135px 5px; }
}

@media (min-width: 576px) and (max-width: 767px) { 
    header, footer { height: auto; }
	.left-header-block, .center-header-block, .right-header-block { float: none; }
    .navbar-nav li { display: block; }

    .bottom-contact-block, .bottom-contact-block img { width: 95%; margin: 0 auto 10px auto; }
    .tableprice td, .tableprice th { padding: 2px; }
    .tableprice th:first-child, .tableprice th:first-child { width: auto; }
    .tableprice td { width: auto; }

    .footer-logo-block, .bottom-menu { text-align: center; }
    .bottom-menu { background-color: #6c6c6c; padding: 5px 0px; }
    .bottom-menu>li>a { width: auto; padding: 0px 2px; }
    .nav-pills>li { display: inline-block; float: none; }
	
	.primery-rabot .do-img span { margin: 135px 128px; }
    .primery-rabot .posle-img span { margin: 135px 128px; }
}
@media (min-width: 768px) and (max-width: 991px) { 
    header, footer { height: auto; }
	.left-header-block, .center-header-block, .right-header-block { float: none; }
    .navbar-nav li { display: inline-block; }
	.navbar-nav>li>a { padding: 10px 12px; }
    .bottom-contact-block, .bottom-contact-block img { width: 270px; }
    .tableprice td, .tableprice th { padding: 2px; }
    .tableprice th:first-child, .tableprice th:first-child { width: auto; }
    .tableprice td { width: auto; }
 
    .footer-logo-block, .bottom-menu { text-align: center; }
    .bottom-menu { background-color: #6c6c6c; padding: 5px 0px; }
    .bottom-menu>li>a { width: 110px; }
    .nav-pills>li { display: inline-block; float: none; }
	
	.primery-rabot .do-img span { margin: 135px 65px; }
    .primery-rabot .posle-img span { margin: -96px 365px; }
}

/* --- Адаптация под десктопные устройства --- */
@media (min-width: 992px) and (max-width: 1199px) {
   header { height: 100px; }
   .navbar-nav li { display: inline-block; }
   .bottom-contact-block { width: 45%; }
   .bottom-contact-block img { width: 290px; }
   .tableprice td, .tableprice th { padding: 5px; }
   .tableprice th:first-child, .tableprice th:first-child { width: 390px; }
   .tableprice td { width: 150px; }
	
   .primery-rabot .do-img span { margin: 135px 175px; }
   .primery-rabot .posle-img span { margin: -96px 475px; }
}
@media (min-width: 1200px) {
   header { height: 100px; }
   .navbar-nav li { display: inline-block; }
   .bottom-contact-block { width: 45%; }
   .bottom-contact-block img { width: 290px; }
   .tableprice td, .tableprice th { padding: 5px; }
   .tableprice th:first-child, .tableprice th:first-child { width: 390px; }
   .tableprice td { width: 150px; }
	
   .primery-rabot .do-img span { margin: 135px 275px; }
   .primery-rabot .posle-img span { margin: -96px 575px; }
}