/*
Theme Name: child_themes
Theme URI: https://web-creative.studio/
Template: hello-elementor
Author: WebCreative
Author URI: https://web-creative.studio/
Version: 2.2.1.1572443540
Updated: 2023-01-30 13:52:20

*/


/* Фикс пустого отступа возле иконок */
.elementor-icon-list-text:empty {
  display: none !important;
}

.elementor-widget .elementor-icon-list-icon i {
  width: 1em !important;
}

body {
  overflow-x: hidden;
}

/*Переназначение переменных цветов*/
.elementor-kit-20 {
  --primary: var(--e-global-color-primary);
  --secondary: var(--e-global-color-secondary);
  --text: var(--e-global-color-text);
  --accent: var(--e-global-color-accent);
}

.elementor-field-type-radio
  .elementor-field-subgroup
  .elementor-field-option
  input {
  display: inline-flex;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  /* iOS inertia */
  -webkit-overflow-scrolling: touch;
}

/* Полоса прокрутки */
::-webkit-scrollbar {
  width: 10px;
  height: 6px;
}

/*Кнопка сброса установленных фильтров*/
.installed-filters-panel .button.reset {
  display: none;
}

.installed-filters-panel .title {
  font-size: 11px;
}

/* Убираем стрелки */
::-webkit-scrollbar-button {
  display: none;
}

/* Скругление трека */
::-webkit-scrollbar-track {
  background-color: var(--e-global-color-text);
}

::-webkit-scrollbar-track-piece {
  background: var(--e-global-color-text);
  border-radius: 3px;
  /* ← скругление */
}

/* Скругление ползунка */
::-webkit-scrollbar-thumb {
  height: 50px;
  background: var(--e-global-color-accent);
  border-radius: 3px;
  /* ← работает всегда */
  box-shadow: -1px 2px 2px rgba(24, 55, 91, 0.1),
    inset 0px -2px 1px rgba(39, 81, 126, 0.12),
    inset 0px 0px 4px rgba(46, 68, 87, 0.02);
  backdrop-filter: blur(28px);
}

::-webkit-scrollbar-corner {
  background-color: var(--e-global-color-primary);
}

@media (max-width: 768px) {
  .table-scroll {
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    touch-action: auto;
    /* важно — не блокируем вертикаль */
  }

  .table-scroll table {
    min-width: 600px;
    width: max-content;
    border-collapse: collapse;
  }
}

html {
  scroll-behavior: smooth;
}

.elementor-button {
  cursor: pointer;
}

a {
  transition: all 0.3s;
}

.nowrap {
  white-space: nowrap;
}

.elementor-icon {
  vertical-align: middle;
}

/* 1. Скрываем иконки, у которых атрибут href пустой */
.elementor-social-icon[href=""],
/* 2. Скрываем иконки, у которых атрибут href вообще отсутствует */
.elementor-social-icon:not([href]),
.social-button:not(:has(.elementor-button-link)) {
  display: none;
}

/* Скрывать в Список иконок элементы без ссылок  */
.contact li.elementor-icon-list-item:not(:has(a[href])) {
  display: none;
}

/* ============================================
   Стили страниц без эля (правовые)
   ============================================ */
.wp-singular:not(.elementor-page) main {
  padding: 120px 10px 60px 10px;
}
@media (max-width: 768px) {
  .wp-singular:not(.elementor-page) main {
    padding: 60px 10px 40px 10px;
  }
}
.wp-singular:not(.elementor-page) main h1 {
  color: var(--text);
}

body:not([class*="elementor-page-"]) .site-main {
  max-width: 1340px !important;
}

/* ============================================
   Плавное появление Lazy Load картинок от Elementor
   ============================================ */
.swiper-slide-image.swiper-lazy:not(.swiper-lazy-loaded) {
  opacity: 0;
}

.swiper-slide-image.swiper-lazy.swiper-lazy-loaded {
  -webkit-transition: opacity 0.5s ease-in;
  -moz-transition: opacity 0.5s ease-in;
  transition: opacity 0.5s ease-in;
  opacity: 1;
}

:focus {
  outline-style: none;
  outline-width: 0px !important;
  outline-color: none !important;
}

.elementor-nav-menu--dropdown .elementor-item.elementor-item-active,
.elementor-nav-menu--dropdown .elementor-item.highlighted {
  background-color: transparent;
}

.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol,
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol,
.elementor-widget-woocommerce-archive-description ul,
.elementor-widget-woocommerce-archive-description ol,
.elementor-tab-content ul,
.elementor-tab-content ol .elementor-widget-container ul,
.elementor-widget-container ol,
.jet-toggle__content-inner ul,
.jet-toggle__content-inner ol {
  margin-bottom: 15px;
}

/*Глобальный отступ для родительских контейнеров*/
.ms {
  margin-top: 80px;
}

/*Глобальный внутренний отступ для родительских контейнеров*/
.pds {
  padding: 80px 10px;
}

.pt {
  padding-top: 120px;
}
.pb {
  padding-bottom: 120px;
}
.pb80 {
  padding-bottom: 80px;
}
@media (max-width: 768px) {
  .pt {
    padding-top: 80px;
  }
  .pb {
    padding-bottom: 80px;
  }
  .pb80 {
    padding-bottom: 60px;
  }
}

p:last-child {
  margin: 0;
}

.elementor-button span {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  justify-content: center;
  flex-grow: 0;
}

.accent {
  color: var(--accent);
}

/*Убрать раздувание табов в телефоне*/
.e-n-tabs > .e-n-tabs-heading > .e-n-tab-title {
  align-self: baseline;
}

.e-n-tabs
  > .e-n-tabs-heading
  > :is(.e-n-tab-title > .e-n-tab-title-text, .e-n-tab-title) {
  margin: 0 !important;
}

/* Скрывать иконки соц. сетей в которых нет ссылок  */
.elementor-grid-item:has(a[href="#"]):not(a[href]),
.phone li.elementor-icon-list-item:not(:has(a[href])) {
  display: none;
}

/* Базовые стили для чекбоксов и радио */
form input[type="checkbox"],
form input[type="radio"] {
  appearance: none;
  background: #fff !important;
  border: 2px solid #d1d5db !important;
  cursor: pointer;
  display: inline-block !important;
  height: 20px;
  width: 20px;
  margin: 0;
  position: relative;
  vertical-align: middle;
  transition: all 0.2s ease-in-out;
  padding: 5px !important;
}

/* Стили при наведении */
form input[type="checkbox"]:hover,
form input[type="radio"]:hover {
  border-color: var(--accent);
}

/* Специфичные стили для радиокнопок */
form input[type="radio"] {
  border-radius: 50% !important;
}

form input[type="radio"]:checked {
  border: 6px solid var(--accent) !important;
  background: #fff !important;
}

/* Специфичные стили для чекбоксов */
form input[type="checkbox"] {
  border-radius: 0 !important;
}

form input[type="checkbox"]:checked {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
}

form input[type="checkbox"]:checked:after {
  content: "\2713";
  color: #fff;
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
}

/* Стили для отключенного состояния */
form input[type="checkbox"]:disabled,
form input[type="radio"]:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

/* Стили для текста метки */
form label {
  cursor: pointer;
  user-select: none;
}

/* Фокус для доступности */
form input[type="checkbox"]:focus,
form input[type="radio"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/*Конец чекбоксы*/

/*Цветные иконки мессенджеров*/
.icon-tg,
.icon-wa,
.icon-max {
  transition: 0.3s all;
}

.icon-tg {
  color: #39b4f9 !important;
}

.icon-wa {
  color: #63e426 !important;
}

.social-button:hover .icon-tg,
.social-button:hover .icon-wa,
.icon-tg:hover,
.icon-wa:hover {
  color: var(--e-global-color-363b8fd) !important;
}

.icon-max {
  background: linear-gradient(
    135deg,
    #3eb9fd 0%,
    #3d5bfc 35%,
    #9b5fde 70%,
    #8444e5 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.social-button:hover .icon-max,
.icon-max:hover {
  color: var(--e-global-color-363b8fd);
}

.fullwidth-menu ul {
  justify-content: space-between !important;
}

.fullwidth-menu li {
  flex-grow: 0 !important;
}

.fullwidth-menu ul:after {
  display: none !important;
}

.crop-bottom {
  clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 160px), 0% 100%);
}
.crop-top {
  clip-path: polygon(0% 160px, 100% 0%, 100% 100%, 0% 100%);
}
.crop-top-right {
  clip-path: polygon(0% 0%, 100% 160px, 100% 100%, 0% 100%);
}

@media (max-width: 1024px) {
  .crop-bottom {
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 80px), 0% 100%);
  }
  .crop-top {
    clip-path: polygon(0% 80px, 100% 0%, 100% 100%, 0% 100%);
  }
  .crop-top-right {
    clip-path: polygon(0% 0%, 100% 80px, 100% 100%, 0% 100%);
  }
}

.gear-name .elementor-heading-title:before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  opacity: 1;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--e-global-color-accent);
  border-radius: 50%;
  margin-left: 0;
  transition: opacity 0.3s, margin-right 0.3s;
}
.gear-name .elementor-heading-title {
  color: var(--secondary);
  transition: 0.3s all;
}

@media (max-width: 767px) {
  .tabs-arrow button .e-n-tab-icon i {
    color: var(--secondary) !important;
  }
  .tabs-arrow button .e-n-tab-icon {
    transition: 0.3s all;
  }
  .tabs-arrow button[aria-selected="true"] .e-n-tab-icon i {
    color: var(--accent) !important;
  }
  .tabs-arrow button[aria-selected="true"] .e-n-tab-icon {
    transform: rotate(90deg);
  }
}