/*
Theme Name:     Kadence-Child
Description:    Ð”Ð¾Ñ‡ÐµÑ€Ð½ÑÑ Ñ‚ÐµÐ¼Ð° Ð´Ð»Ñ Ñ‚ÐµÐ¼Ñ‹ Kadence
Author:         Ð Ð¾Ð¼Ð°Ð½ Ð¤Ð¸Ð½Ðº
Template:       kadence
Version:        0.1.0
*/

.yoast-breadcrumbs {
  margin-top: 12px;
  
}

.yoast-breadcrumbs span {
  font-size: 14px;
}

.slider-portfolio-swiper {
    padding-bottom: 90px;
    position: relative;
}

.slider-portfolio-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Точки — зелёные */
.slider-portfolio-swiper .swiper-pagination-bullet {
    background: #999;
    opacity: 0.5;
}
.slider-portfolio-swiper .swiper-pagination-bullet-active {
    background: #2ea44f;
    opacity: 1;
}

/* Стрелки — маленькие, зелёные, внизу на уровне точек */
.slider-portfolio-swiper .swiper-button-prev,
.slider-portfolio-swiper .swiper-button-next {
    color: #2ea44f;
    top: auto;
    bottom: 0;
    width: 32px;
    height: 32px;
    margin-top: 0;
}

.slider-portfolio-swiper .swiper-button-prev::after,
.slider-portfolio-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
}

.slider-portfolio-swiper .swiper-button-prev {
    left: calc(50% - 100px);
}

.slider-portfolio-swiper .swiper-button-next {
    right: calc(50% - 100px);
}

/* Пагинация по центру */
.slider-portfolio-swiper .swiper-pagination {
    bottom: 5px;
}

@media screen and (min-width: 960px) {
  .site-header:before {
    background: url('/wp-content/uploads/2025/04/header_bg-scaled.webp') center bottom no-repeat;
    display: block;
    position: fixed;
    width: 100%;
    height: 175px;
    content: '';
  }
}


.header__phone {
  margin-left: auto;
  text-align: right;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  margin-top: -10px;
  line-height: 1;
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
}

.header__phone a {
  display: block;
  font-weight: 700;
  margin: 5px 0 0 0;
  font-size: 20px;
  line-height: 1;
  color: #fff;
}
.header__phone a:hover {
  text-decoration: underline;
}
.header__work-status {
  font-size: 16px;
  line-height: 24px;
  padding-left: 35px;
  position: relative;
}
.header__work-status::before {
  display: block;
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #525A59;
  -webkit-filter: blur(8.53873px);
          filter: blur(8.53873px);
  position: absolute;
  left: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}
.header__work-status.opened::before {
  background: #FFE600;
}
.header__worktime {
  font-size: 11px;
  line-height: 18px;
  font-weight: normal;
}

/* ÐžÐ±ÐµÑ€Ñ‚ÐºÐ° Ð´Ð»Ñ ÑÐºÑ€Ð¾Ð»Ð»Ð±Ð°Ñ€Ð° */
.sidebar-inner-wrap::-webkit-scrollbar {
  width: 4px; /* ÑˆÐ¸Ñ€Ð¸Ð½Ð° Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ð¾Ð³Ð¾ ÑÐºÑ€Ð¾Ð»Ð»Ð° */
  height: 100px; /* Ð²Ñ‹ÑÐ¾Ñ‚Ð° Ð³Ð¾Ñ€Ð¸Ð·Ð¾Ð½Ñ‚Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ ÑÐºÑ€Ð¾Ð»Ð»Ð° */
}

/* Ð¤Ð¾Ð½ ÑÐºÑ€Ð¾Ð»Ð»Ð±Ð°Ñ€Ð° */
.sidebar-inner-wrap::-webkit-scrollbar-track {
  background: #ccc; 
}

/* Ð‘ÐµÐ³ÑƒÐ½Ð¾Ðº ÑÐºÑ€Ð¾Ð»Ð»Ð±Ð°Ñ€Ð° */
.sidebar-inner-wrap::-webkit-scrollbar-thumb {
  background: #fff; 
  border-radius: 4px;
}

/* Ð‘ÐµÐ³ÑƒÐ½Ð¾Ðº Ð¿Ñ€Ð¸ Ð½Ð°Ð²ÐµÐ´ÐµÐ½Ð¸Ð¸ */
.sidebar-inner-wrap::-webkit-scrollbar-thumb:hover {
  background: #f6f6f6; 
}

.header-contact-inner-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start !important;
}

.header-contact-inner-wrap .contact-label {
  color: #fff;
}

.widget-toggle-open-container {
  margin-bottom: 16px;
  margin-left: 32px;
}

.widget-toggle-open-container #widget-toggle {
  display: flex;
  flex-direction: column;
}

.widget-toggle-label {
  color: #fff;
}

.header__rezhim {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 110px;
          flex: 0 0 110px;
  margin-right: 50px;
}

.header__rezhim ul {
  background: #093C35;
  color: #fff;
  list-style: none;
  margin: 0;
  border-radius: 10px;
}

.header__rezhim ul li {
  font-size: 15px;
  line-height: 20px;
  padding: 3px 10px;
  border-bottom: 1px solid #011C16;
}

.header__rezhim ul li:last-child {
  border: none;
}

.primary-sidebar {
  position: relative;
}

.primary-sidebar:before {
  display: block;
  height: 100%;
  width: calc(100% + 3px);
  content: '';
  position: absolute;
  top: -100px;
  left: 0;
  background: #e7ece6;
  box-shadow: 0 0px 24px 5px rgba(0,0,0,0.15);
}

.sidebar_cat_header {
  font-size: 17px;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f4136;
  display: block;
  margin-bottom: 5px;
}

.sidebar_cat_subheader {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: #0f4136;
  display: block;
  margin-bottom: 5px;
}

.child-service-cats ul {
  margin-bottom: 20px;
  margin-left: 0;
  list-style: none;
}
.child-service-cats ul li {
  font-size: 13px;
  font-weight: 500;
  padding-left: 15px;
  position: relative;
  line-height: 1.2;
  margin-bottom: 5px;
}
.child-service-cats ul li:before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  background: #0D8E7E;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
}
.child-service-cats ul li a {
  color: #000;
  text-decoration: none;
}
.child-service-cats ul li a:hover {
  color: #0D8E7E;
}

.primary-sidebar .kt-blocks-info-box-media-container {
  height: 28px !important
}

#widget-drawer .wp-block-social-links{
  justify-content: space-between;
}
#widget-drawer .menu li a {
  color: #fff !important;
}
#widget-drawer .menu li {
  color: #fff !important;
  text-transform: uppercase;
  text-decoration: underline;
  font-size: 18px
}

#widget-drawer .menu li:hover {
  text-decoration: none;
}

#widget-drawer .wp-widget-group__inner-blocks {
  border-top: 1px solid #12EB14;
}

.header-html2 .header-html-inner {
  display: flex;
  gap: 40px;
}

/* Ð”Ð»Ñ ÐºÐ°Ñ€Ñ‚Ð¾Ñ‡ÐµÐº Ð½Ð° Ð³Ð»Ð°Ð²Ð½Ð¾Ð¹ */
.service-block {
  margin-bottom: 60px;
}

.service-category-title {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 10px !important;
  padding: 0 10px;
  text-align: center;
}

.service-cards-grid {
 display: flex
;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-column-gap: 20px;
    -moz-column-gap: 20px;
    column-gap: 20px;
    row-gap: 40px;
    margin-top: 40px;
}

.service-card {
  perspective: 1000px;
  text-decoration: none;
  color: inherit;
      -webkit-box-flex: 0;
    -ms-flex: 0 0 calc((100% - 60px) / 4);
    flex: 0 0 calc((100% - 60px) / 4);
    border-radius: 0 0 10px 10px;
    -webkit-transition: all 0.3s linear 0s;
    -o-transition: all 0.3s linear 0s;
    transition: all 0.3s linear 0s;
}

.service-card:hover {
  -webkit-filter: drop-shadow(0px 3.41549px 34.1549px rgba(0, 248, 0, 0.62));
          filter: drop-shadow(0px 3.41549px 34.1549px rgba(0, 248, 0, 0.62));
}

.card-front .bg-cover {
background-image: url(https://smrexpert.romanfink.ru/wp-content/uploads/2025/05/administrativnye-zdaniya.webp);
    width: 100%;
    height: 100%;
    background-size: cover;
	background-position: 50%;
}
.card-inner {
  position: relative;
  width: 100%;
  
 height: 220px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

/*.service-card:hover .card-inner {
  transform: rotateY(180deg);
}*/

.service-block-1 .service-card:nth-child(1),
.service-block-1 .service-card:nth-child(2) {
    flex: 45%;
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover .card-inner {
    transform: rotateY(180deg);
  }
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 220px;
  backface-visibility: hidden;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #fff;
}

.card-front img {
  width: 150%;
  height: auto;
  position:absolute;
  z-index: 1;
}


.card-front span {
  z-index: 2;
  top: 0px;
  position: absolute;
      background: #093B35;
    text-transform: uppercase;
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    height: 54px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-align: center;
  width: 100%
}

.service-block-small .card-front span {
  font-size: 15px;
}

.card-back {
  transform: rotateY(180deg);
  background: #fff;
  padding: 20px;
}

.card-desc {
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  text-align: center;
}

/* 960 */
@media (max-width: 960px) {
  .service-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .card-front span {
    font-size: 12px;
	  padding-left: 8px;
	  padding-right: 8px;
  }

  .card-desc {
    font-size: 15px;
    line-height: 1.3;
    color: #333;
    text-align: center;
  }
}




/* SIDEBAR */
@media (max-width: 960px) {
  body.sidebar-open {
    overflow: hidden;
    touch-action: none;
  }

  #secondary {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
  }

  #secondary.sidebar-visible {
    left: 0;
  }

  .sidebar-inner-wrap {
    overflow-y: auto !important;
    height: 100% !important;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    display: none;
  }

  .sidebar-overlay.visible {
    display: block;
  }
}

.wp-block-kadence-dynamichtml table {
  border: 1px solid #000;
  border-collapse: collapse;
}

.wp-block-kadence-dynamichtml table td {
  border: 1px solid #000;
  padding: 3px 8px;
  font-size: 14px;
  min-width: 100px;
}

@media (max-width: 960px) {
  .wp-block-kadence-dynamichtml {
    overflow-x: scroll;
  }
}


/* Общие стили для иконки под текстом */
.kb-show-more-buttons .kb-button {
  background: none !important;
  color: #000 !important;
  text-align: center;
  
}
.kb-show-more-buttons .kb-button .kt-btn-inner-text::after {
  content: "";
  display: block;
  margin-top: 6px;             /* отступ между текстом и иконкой */
  margin-left: auto;
  margin-right: auto;
  width: 80px;                 /* ширина иконки */
  height: 40px;                /* высота иконки */
  background-image: url("/wp-content/uploads/2025/05/read-more.svg"); /* путь к вашей SVG */
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: contain;
  transform-origin: center;    /* центр вращения */
}

/* Первая кнопка — без поворота */
.kb-show-more-buttons .kb-button .kt-btn-inner-text::after {
  transform: rotate(0deg);
}

/* Вторая кнопка — иконка перевёрнута на 180° */
.kb-show-more-buttons .kb-button:last-child .kt-btn-inner-text::after {
  transform: rotate(180deg);
}

.wp-block-kadence-dynamichtml ul {
  margin: 30px 0;
  padding: 0;
  list-style: none;
}
.wp-block-kadence-dynamichtml ul li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 10px;
}
.wp-block-kadence-dynamichtml ul li:before {
  display: block;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0D8E7E;
  position: absolute;
  left: 0;
  top: 10px;
}

.services-category-wrap {
  background: #fff;
  border: 2px solid;
  padding: 40px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.services-category-wrap > .service-box {
  flex: 1 1 250px;
}

.services-category-wrap h3 {
  font-size: 18px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.services-category-wrap h4 {
   font-size: 16px;
   margin-bottom: 4px;
  text-transform: uppercase;
}


.service-box ul {
  margin-bottom: 20px;
  margin-left: 0;
  list-style: none;
}
.service-box ul li {
  font-size: 13px;
  font-weight: 500;
  padding-left: 15px;
  position: relative;
  line-height: 1.2;
  margin-bottom: 5px;
}
.service-box ul li:before {
  display: block;
  content: "";
  width: 4px;
  height: 4px;
  background: #0D8E7E;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 6px;
}
.service-box ul li a {
  color: #000;
  text-decoration: none;
}
.service-box ul li a:hover {
  color: #0D8E7E;
}

@media screen and (max-width: 960px) {
  .services-category-wrap {
    padding: 20px;
  }

  #secondary {
    background: #e7ece6;
  }

  .benefit-logo {
    order: 1;
  }

  .benefit-blocks {
    flex-direction: column-reverse;
    background: #003227;
    gap: 30px;
    padding-bottom: 24px;
    border-bottom: 4px solid #0cf10e;
    border-top: 4px solid #0cf10e;
    filter: drop-shadow(0px 3.41549px 34.1549px rgba(0, 248, 0, 0.62));
  }

  .header__rezhim ul {
    flex-direction: row;
    display: flex;
    padding: 8px;
    gap: 8px;
  }

  .header__rezhim ul li {
    border: none;
    padding: 0px !important;
  }

  .header-mobile-contact-wrap .header-contact-inner-wrap {
    display: flex;
    flex-direction: row;
  }

  .site-main-header-wrap .site-header-row-container-inner > .site-container {
    padding: 12px 10px 12px 10px !important;
  }
}

.benefit-logo__img picture {
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.featured-img {
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 5px;
}

/* Адаптив для экранов до 960px */
@media (max-width: 960px) {
    .featured-img {
        float: none;
        display: block;
        width: 100%;
        max-width: 100%;
        margin: 0 0px 20px 0;
    }
}

/* Фикс пропадания картинок в слайдере */
.slider-portfolio-swiper .swiper-slide .kb-image-is-ratio-size {
    width: 100%;
}

.slider-portfolio-swiper .swiper-slide .kb-is-ratio-image {
    width: 100%;
    padding-bottom: 75%; /* 4:3 ratio как в land43 */
    position: relative;
    height: 0;
    overflow: hidden;
}

.slider-portfolio-swiper .swiper-slide .kb-is-ratio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Карточки — вертикальная раскладка (картинка сверху, контент снизу) */
.slider-portfolio-swiper .swiper-slide.kb-query-item {
    display: flex;
    flex-direction: column;
}

.slider-portfolio-swiper .swiper-slide .kb-image-is-ratio-size {
    width: 100%;
    flex-shrink: 0;
}

.slider-portfolio-swiper .swiper-slide .kb-is-ratio-image {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
    height: 0;
    overflow: hidden;
}

.slider-portfolio-swiper .swiper-slide .kb-is-ratio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контентная часть */
.slider-portfolio-swiper .swiper-slide .kadence-column1016_052872-6b {
    width: 100%;
}
