.header-row {
  align-items: center;
  justify-content: space-between;
}
header .top {
  padding: 20px 5px 30px 5px;
}
.logo {
  margin-right: 10px;
}
.services {
  margin-right: 10px;
}
.service {
  
  font-size: 16px !important;
  line-height: 24px;
  font-weight: 700;
  color: #333333;
  letter-spacing: -0.6px;  
}
.address a{
  
  font-size: 18px !important;
  letter-spacing: -0.4px;
  line-height: 24px;
  font-weight: 700;
  text-decoration: underline;
  color: #76c15f !important;
  position: relative;  
  padding-left: 25px;
}
.address a:before {
  content: "";
  width: 25px;
  height: 25px;
  display: inline-block;
  background: url(../image/map_marker.png) 0 0 no-repeat;
  background-size: contain;
  position: absolute;
  top: 0px;
  left: -5px;
  position: absolute;  
}
.times {
  
  color: #333333;
  margin-right: 10px;
}
.time{
  font-size: 16px;
  line-height: 32px;
  font-weight: 400;
  padding-left: 30px;
  position: relative;
}
.time:before {
  content: "";
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url(../image/time.png) 0 0 no-repeat;
  background-size: contain;
  position: absolute;
  top: 6px;
  left: 0;
  position: absolute;
}
.daily{
  font-size: 14px;
}
.form-search {
  position: relative;
}
.search-input {
  padding: 14px 114px 14px 26px;
  outline: none;
  background-color: #ffffff;
  border: 2px solid #d6dcdf;
  border-radius: 4px;
  width: 100%;
  font-family: 'PT Sans';
  height:51px;
}
.button-input {
  
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  padding: 16px 28px;
  position: absolute;
  top: 0;
  right: 0;
  height:51px;
  background-color: #76c15f;
  border-radius: 0px 4px 4px 0px;
  outline: none;
  border: transparent;
  cursor: pointer;
  transition: all .4s;
}
.button-input:hover {
  opacity: .7;
}
.search-input::-webkit-input-placeholder {
  
  font-size: 16px;
  font-weight: 400;
  color: #333333;
}
.search-input::-moz-placeholder {
  
  font-size: 16px;
  font-weight: 400;
  color: #333333;
} 
.search-input:-moz-placeholder{
  
  font-size: 16px;
  font-weight: 400;
  color: #333333;
} 
.search-input:-ms-input-placeholder{
  
  font-size: 16px;
  font-weight: 400;
  color: #333333;
}
.phone a{
  
  font-size: 24px !important;
  line-height: 24px;
  font-weight: 700;
  color: #333333 !important;
  text-decoration: none;
}
.btn-callback a{
  display: inline-block;
  text-align: center;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  position: relative;
  padding-left: 24px;
  margin-left: 20px;
  
  font-weight: 700;
  font-size: 18px !important;
  color: #fc8100 !important;
}
.btn-callback a:before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background: url(../image/phone.png) 0 0 no-repeat;
  background-size: contain;
  position: absolute;
  top: 3px;
  left: 0;
  position: absolute;
}
.tabs {
  background: #fff;
  padding: 70px;  
}
.tabs-title {
  
  font-size: 35px;
  color: #333;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 29px;
}
.tabs__caption .active {
  background: #76c15f;
  color: #fff;
  padding: 13px 28px;
  text-decoration: none;
  border-radius: 5px;
  
}
.tabs__caption a {
  padding: 13px 25px;
  background: #e9eff3;
  color: #333;
  position: relative;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  margin-right: 20px;
  
}
.tabs__caption a:hover {
  color: #FFF;
  background: #76c15f;
}
.tabs__caption{
  padding: 0;
  margin-bottom: 20px;
}
.tabs__captions__right-title {
  
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 17px;
  color: #333;
}
.list_region a{
  width: calc(100% / 2);
  margin-bottom: 8px;
  text-decoration: none;
  color: #333;
  
}
.list_region a:hover {
  text-decoration: underline;
  cursor: pointer;
  color: #76c15f;
  
}
.list_region {
  display: flex;
  flex-wrap: wrap;
}
.tabs__captions {
  position: relative;
  width: 50%;
}
.tabs__captions__right:before {
  position: absolute;
  content: "";
  height: 100%;
  width: 4px;
  background: #e9eff3;
  top: 0;
  left: -75px;
}
.tabs__caption {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  list-style: none;
  position: relative;
}
.tabs__caption{
  padding: 0;
}
.tabs__caption li:not(.active) {
  cursor: pointer;
}
.tabs__caption li:not(.active):hover {
  color: #FFF;
  background: #76c15f;
}
.tabs__content {
  display: none;
  background: #FFF;  
}
.tabs__content.active {
  display: flex;
  flex-wrap: wrap;
  max-width: 380px;
}
.tabs__content a {
  margin-bottom: 10px;
  width: calc(100% / 2);
  color: #333333;
  
}
.tabs__content a:hover, .tabs__content a.active {
  text-decoration: underline;
  cursor: pointer;
  color: #76c15f;  
  
}
#tab_2 a {
  
  width: calc(100% / 8 - 15px);
  text-align: center;
  width: 41px;
  height: 41px;
  background: #e9eff3;
  align-items: center;
  text-decoration: none;
  margin-right: 5px;
  border-radius: 5px;
  line-height: 2.5;
  font-size: 16px;
  color: #333;
}
#tab_2 .active {
  color: #FFF;
  background: #76c15f;  
}
#tab_2 a:hover{
  color: #FFF;
  background: #76c15f;  
}
.tabs__captions__right{
  display: none;
}
.tabs__captions__right.active{
  display: block;
  margin-top: -50px;
  margin-left: 30px;
}
.tabs__captions_container{
  display: flex;
}


.modals{
  width: 1180px;
}
@media (max-width: 1200px){
  .tabs__captions__right:before {
    left: -15px;
  }
}
@media (max-width: 1190px){
  .modals{
    width: 100%;
  }
  .tabs__caption .active {
    margin-bottom: 10px;
    width: 100%;
  }
  .tabs__caption a {
    width: 100%;
  }
}
@media (max-width: 1150px){
  .logo {
    margin-bottom: 20px;
  }
  .services {
    margin-bottom: 20px;
  }
  .times {
    margin-bottom: 20px;
  }
  .phone-contact {
    margin-bottom: 20px;
  }

}
@media (max-width: 992px){
  .tabs__caption .active {
    margin-bottom: 10px;
    width: 100%;
  }
  .tabs__caption a {
    width: 100%;
  }
  .tabs__caption a {
    margin-bottom: 10px;
  }
  .tabs {
    padding: 30px;
  }
}
@media (max-width: 768px){
  .tabs__captions_container {
    display: block;
  }
  .tabs__captions__right.active {
    margin-top: 10px;
    margin-left: 0px;
    border-top: 3px solid #e9eff3;
  }
  .list_region a{
    width: 100%;
  }
  .tabs__captions__right:before {
    display: none;
  }
  .tabs__caption .active {
    margin-right: 0;
  }
  .tabs__caption a {
    margin-right: 0;
    margin-bottom: 10px;
  }
  .tabs__captions {
    width: 100%;
  }
  .tabs-title {
    font-size: 27px;
    margin-bottom: 15px;
  }
  .tabs {
    padding: 15px;
  }
  .tabs__caption a {
    width: 70%;
  }
  .tabs__caption .active {
    width: 70%;
  }
  .time:before {
    left: 20px;
  }
  .time {
    text-align: center;
  }
  .tabs__captions__right-title {
    margin-bottom: 13px;
    margin-top: 15px;
  }
}
@media (max-width: 480px){
  .tabs__caption a {
    width: 100%;
  }
  .tabs__caption .active {
    width: 100%;
  }
  .tabs-title {
    font-size: 20px;
  }
  .logo {
    margin: 8px auto;
  }
  .services {
    margin: 5px auto;
    width:100%;
    text-align: center;
  }
  .times {
    margin: 5px auto;
  }
  .phone-contact {
    margin: 5px auto;
        width: 100%;
    text-align: center;
  }
  .btn-callback a {
    margin-left: 0px;
    margin-top: 10px;
  }
  .site {
    padding-top: 0px;
  }
  header .top {
    padding-bottom: 0px;
  }

  header .logo{
  	margin-top:40px;
  }

}
header .navbar-nav li a{
  transition: 0.3s;
}
header .navbar-nav li a:hover{
      color: #76c15e;
}

#toc_container p.toc_title+ul.toc_list li:before{
  display: none;
}
#toc_container p.toc_title+ul.toc_list{
      counter-reset: item;
}

#toc_container p.toc_title+ul.toc_list li:before {
    content: counter(item) "";
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    width: 30px;
    height: 30px;
    background-color: #e9eff3;
    border-radius: 2px;
    color: #333;
    position: absolute;
    left: 0;
}

#toc_container.no_bullets li {
    counter-increment: item;
        position: relative;
    margin-bottom: 10px;
    padding-left: 35px;
    }

#toc_container p.toc_title{
  font-size:20px;
}

div#toc_container{
  padding:20px;
}

.wpb_accordion .wpb_accordion_wrapper .ui-state-default .ui-icon{
  background-image:none !important;
}
@media (max-width: 480px){
  .services-page .form-service .top-wrap span{
    width:100%;
    margin-top:10px;
  }
  .services-page .form-service .top-wrap{
    flex-wrap: wrap;
  }
}

.img-wrap{
	text-align: center;
}

.post-wrap .img-wrap img{
	max-width: 730px;
}

.comment-list{
  list-style: none;
  padding:0;
}

.comment-list ul{
  list-style: none;
}

.comment-list .children{
  margin-top:20px;
}
/* ==========================================================================
   Форма «Оставить заявку» на страницах услуг (блок WPBakery .form-service,
   форма Contact Form 7). Современная карточка: скругления, мягкая тень,
   крупные поля с иконками, кнопка на всю ширину.
   ========================================================================== */
body .wpb_text_column.form-service {
  position: relative;
  background: #fff;
  padding: 32px 30px 28px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(31, 45, 61, 0.10), 0 2px 6px rgba(31, 45, 61, 0.05);
  border: 1px solid #edf1f4;
  overflow: hidden;
}
/* зелёная полоса-акцент сверху */
body .wpb_text_column.form-service::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, #76c15e 0%, #9bd35f 100%);
}
body .form-service .wpb_wrapper > .h4 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}

/* поля: одно под другим, на всю ширину */
body .form-service .top-wrap { display: block; margin: 0 0 14px; }
body .form-service .top-wrap p { display: block; width: 100%; max-width: none; margin: 0; }
body .form-service .top-wrap br { display: none; }
body .form-service .top-wrap .wpcf7-form-control-wrap {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 12px;
}
body .form-service .top-wrap .wpcf7-form-control-wrap input {
  width: 100%;
  max-width: none !important;
  height: 52px;
  padding: 0 16px 0 48px;
  border: 1px solid #dfe5ea;
  border-radius: 10px;
  background-color: #f6f8fa;
  background-repeat: no-repeat;
  background-position: 16px 50%;
  background-size: 20px 20px;
  font-family: inherit;
  font-size: 16px;
  color: #222;
  box-shadow: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
body .form-service .top-wrap .wpcf7-form-control-wrap input::placeholder { color: #8a949e; }
body .form-service .top-wrap .wpcf7-form-control-wrap input:focus {
  outline: none;
  background-color: #fff;
  border-color: #76c15e;
  box-shadow: 0 0 0 4px rgba(118, 193, 94, 0.18);
}
/* иконки: человек и телефон */
body .form-service .top-wrap [data-name="uname"] input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376c15e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
body .form-service .top-wrap [data-name="phone"] input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2376c15e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E");
}
/* старые иконки-спрайты темы больше не нужны */
body .form-service .top-wrap span::before { display: none !important; }

/* согласие на обработку данных */
body .form-service .robot-try { margin: 0 0 14px; }
body .form-service .robot-try p { margin: 0; }
body .form-service .robot-try .wpcf7-list-item { margin: 0; }
body .form-service .robot-try label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #6b7580;
  cursor: pointer;
}
body .form-service .robot-try input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #76c15e;
  cursor: pointer;
}
body .form-service .robot-try a { color: #4f9e37; }

/* капча Cloudflare */
body .form-service .cf7-cf-turnstile { margin: 0 0 6px !important; }
body .form-service .cf7-cf-turnstile + br { display: none; }

/* кнопка */
body .form-service .wpcf7-submit.btn-yellow {
  font-family: inherit;
  display: block;
  width: 100%;
  max-width: none;
  height: 54px;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 17px !important;
  letter-spacing: .2px;
  box-shadow: 0 8px 20px rgba(252, 129, 0, 0.30);
  transition: background-color .2s, box-shadow .2s, transform .1s, opacity .2s;
}
body .form-service .wpcf7-submit.btn-yellow:hover:not(:disabled) {
  background-color: #e07200 !important;
  box-shadow: 0 10px 24px rgba(252, 129, 0, 0.38);
}
body .form-service .wpcf7-submit.btn-yellow:active:not(:disabled) { transform: translateY(1px); }
body .form-service .wpcf7-submit.btn-yellow:disabled {
  opacity: .55;
  box-shadow: none;
  cursor: not-allowed;
}
body .form-service .wpcf7-spinner { display: block; margin: 10px auto 0; }

/* убираем пустые абзацы и пустой блок сообщений до отправки */
body .form-service .wpcf7 form > p:empty { display: none; }
body .form-service .wpcf7 form.init .wpcf7-response-output { display: none; }

/* сообщения формы */
body .form-service .wpcf7 form .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
}
body .form-service .wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }

@media (max-width: 767px) {
  body .wpb_text_column.form-service { padding: 26px 18px 22px; border-radius: 14px; }
  body .form-service .wpb_wrapper > .h4 { font-size: 21px; }
}

/* ==========================================================================
   Верхний блок страниц услуг: заголовок на всю ширину, под ним форма слева
   и картинка справа, выровненная по центру формы. Только на экранах от 992 px;
   на планшетах и телефонах блоки идут друг под другом, как раньше.
   Работает в браузерах с поддержкой :has() (Chrome/Edge/Яндекс 105+,
   Safari 15.4+, Firefox 121+); в старых браузерах остаётся прежняя раскладка.
   ========================================================================== */

/* меньше пустого места между «хлебными крошками» и заголовком */
body.page-template-services-page .breadcrumbs { margin-bottom: 10px; }
body.page-template-services-page .vc_section-o-content-top .wpb_text_column h1 { margin-top: 0; }

@media (min-width: 992px) {
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-areas:
      "title title"
      "form  image";
    column-gap: 40px;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
  }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service)::before,
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service)::after {
    display: none;
  }
  /* «растворяем» обёртки левой колонки, чтобы заголовок и форма стали ячейками сетки */
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-5,
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-5 > .vc_column-inner,
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-5 > .vc_column-inner > .wpb_wrapper {
    display: contents;
  }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-5 .wpb_text_column:not(.form-service) {
    grid-area: title;
    margin-bottom: 26px;
  }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) .form-service {
    grid-area: form;
    margin-bottom: 40px;
  }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-7 {
    grid-area: image;
    align-self: start; /* верх картинки на уровне верха карточки: центр ближе к полям, заголовок не перекрывается */
    width: auto;
    max-width: none;
    float: none;
    padding: 0 0 40px;
  }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-7 .vc_column-inner { padding: 0; }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-7 .wpb_single_image {
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
  }
  /* старое правило темы делает картинку position:absolute — возвращаем её в поток, чтобы она центрировалась */
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-7 .vc_single_image-wrapper { display: block; }
  body.page-template-services-page .vc_section-o-content-top > .vc_row:first-child:has(> .vc_col-lg-5 .form-service) > .vc_col-lg-7 .wpb_single_image img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Страницы контейнеров и спецтехники (шаблон «Запись Контейнер»,
   containe-single.php): та же карточка формы и та же раскладка, что у услуг —
   заголовок на всю ширину, под ним форма слева и картинка справа.
   ========================================================================== */
body.post-template-containe-single .breadcrumbs { margin-bottom: 10px; }
body.post-template-containe-single .text-page.services-page { padding-top: 0; }
body.post-template-containe-single .services-page .title h1 { margin-top: 0; }

/* карточка формы (здесь форма лежит без обёрток WPBakery) */
body.post-template-containe-single .services-page .form-service {
  position: relative;
  background: #fff;
  padding: 32px 30px 28px;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(31, 45, 61, 0.10), 0 2px 6px rgba(31, 45, 61, 0.05);
  border: 1px solid #edf1f4;
  overflow: hidden;
  margin-bottom: 40px;
}
body.post-template-containe-single .services-page .form-service::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 5px;
  background: linear-gradient(90deg, #76c15e 0%, #9bd35f 100%);
}
body.post-template-containe-single .services-page .form-service > .h4 {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}
@media (max-width: 767px) {
  body.post-template-containe-single .services-page .form-service { padding: 26px 18px 22px; border-radius: 14px; }
  body.post-template-containe-single .services-page .form-service > .h4 { font-size: 21px; }
}

@media (min-width: 992px) {
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-template-areas: "title title" "form image";
    column-gap: 40px;
    align-items: start;
    margin-left: 0;
    margin-right: 0;
  }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service)::before,
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service)::after { display: none; }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) > .col-sm-6:not(.img-container) { display: contents; }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) .title {
    grid-area: title;
    margin-bottom: 26px;
  }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) .title h1 { margin-bottom: 0; }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) .form-service { grid-area: form; }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) > .img-container {
    grid-area: image;
    align-self: start; /* верх картинки на уровне верха карточки */
    width: auto;
    max-width: none;
    flex: none;
    float: none;
    padding: 0 0 40px;
    text-align: center;
  }
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) > .img-container img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
  }
}
/* на планшетах (768–991 px) колонки по 240 px слишком узкие — ставим блоки друг под другом, как у услуг */
@media (min-width: 576px) and (max-width: 991px) {
  body.post-template-containe-single .services-page > .container > .row:has(> .col-sm-6 > .form-service) > .col-sm-6 { width: 100%; max-width: 100%; flex: 0 0 100%; float: none; }
}

/* Главная, калькулятор: в calculator.css блок поднят на 50px (top: -50px) под картинку
   заголовка. На планшетах (до 991px) картинка стоит ниже, и калькулятор наезжал на заголовок. */
@media (max-width: 991px) {
  .section-calculator { top: 0 !important; }
}

/* Старый класс .search (поиск в прежней шапке) совпадал с классом body.search на странице результатов поиска:
   отступ справа давал белую полосу, а на экранах до 1150px прятал всю страницу. Правила удалены; страховка: */
body.search { margin: 0 !important; display: block !important; }

/* Страницы услуг на телефоне: вместо формы на весь экран — две кнопки, форма раскрывается по нажатию (js/main.js) */
.sv-quick { display: none; }
@media (max-width: 767px) {
  .services-page .sv-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
  .sv-quick__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 10px; border: 0; border-radius: 14px; cursor: pointer;
    font-size: 15px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none !important;
  }
  .sv-quick__btn--order { background: #ff7a00; color: #fff !important; box-shadow: 0 8px 20px rgba(255, 122, 0, .3); }
  .sv-quick__btn--call { background: #eaf6e8; color: #1f7d14 !important; }
  .sv-quick__btn--call::before {
    content: ""; width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7d14' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E") center / 18px no-repeat;
  }
  .sv-quick__note { grid-column: 1 / -1; margin: 0; font-size: 13px; text-align: center; color: #6b776d; }
  .services-page .wpb_text_column.form-service.sv-collapsed { display: none !important; }
  .services-page .wpb_text_column.form-service.sv-collapsed.is-open { display: block !important; animation: svOpen .25s ease; }
  .services-page h1 + .sub-heading, .services-page .sub-heading { margin-bottom: 14px !important; }
}
@keyframes svOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Формы CF7: место под капчу Turnstile и спиннер резервируем заранее.
   Иначе они появляются после загрузки скриптов, форма вырастает на ~100 px и сдвигает всё под ней (плохой CLS на компьютере). */
.wpcf7 form { position: relative; }
.wpcf7 form .cf-turnstile { min-height: 73px; }
.wpcf7 form .wpcf7-spinner { position: absolute !important; left: 50%; margin: 6px 0 0 -12px !important; }

/* ==========================================================================
   Видео Rutube в тексте страниц: обложка вместо плеера (inc/rutube-lazy.php, js/main.js)
   ========================================================================== */
.rt-lazy {
  position: relative; display: block; width: 100%; max-width: 860px; margin: 0 auto 20px; aspect-ratio: 16 / 9;
  overflow: hidden; border-radius: 16px; background: #0f1a11; cursor: pointer;
}
.rt-lazy img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.rt-lazy::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 45%); pointer-events: none; }
.rt-lazy__play {
  position: absolute; z-index: 2; inset: 0; width: 72px; height: 72px; margin: auto; border-radius: 50%;
  background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s ease, background .2s ease;
}
.rt-lazy__play::after {
  content: ""; position: absolute; top: 50%; left: 50%; margin: -12px 0 0 -7px;
  border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #30af21;
}
.rt-lazy__title {
  position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 14px;
  font-size: 16px; line-height: 1.3; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.rt-lazy:hover img, .rt-lazy:focus-visible img { transform: scale(1.03); }
.rt-lazy:hover .rt-lazy__play, .rt-lazy:focus-visible .rt-lazy__play { transform: scale(1.08); background: #fff; }
.rt-lazy:focus-visible { outline: 3px solid #30af21; outline-offset: 3px; }
.rt-lazy iframe { position: absolute; z-index: 3; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.rt-lazy.is-playing { cursor: default; }
.rt-lazy.is-playing::after, .rt-lazy.is-playing .rt-lazy__play, .rt-lazy.is-playing .rt-lazy__title { display: none; }
/* в блоке «Видео наших работ» (услуги) обложка заполняет карточку */
.sv-video .rt-lazy { position: absolute; inset: 0; max-width: none; margin: 0; border-radius: 0; aspect-ratio: auto; }
@media (max-width: 767px) {
  .rt-lazy { border-radius: 12px; }
  .rt-lazy__play { width: 60px; height: 60px; }
  .rt-lazy__title { font-size: 14px; left: 14px; right: 14px; bottom: 10px; }
}

/* Иконка в блоке WPBakery «Сообщение» (заметки на услугах, контейнерах, страницах МО): вместо шрифта
   Font Awesome (отключён в functions.php) — «i» в круге, цвет и размер — как у прежней иконки */
.vc_message_box-icon i {
  display: inline-block; width: 1em; height: 1em; line-height: 1; vertical-align: middle; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 15h-2v-6h2zm0-8h-2V7h2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vc_message_box-icon i::before { content: none !important; }

/* Полоса прокрутки на компьютерах есть всегда. Пока страница грузится частями, первая отрисовка бывает
   короче окна — без полосы; когда полоса появлялась, всё содержимое съезжало на 7–8 px влево и
   переносилось заново (CLS 0,1–0,25 у посетителей, cls_debug: «x 70→62»). Окна magnificPopup при
   открытии прячут прокрутку и сами добавляют отступ, с этим правилом это работает как раньше. */
@media (min-width: 992px) {
  html { overflow-y: scroll; }
}
