/* === Системные фиксы вёрстки tokeny.store ===
   НЕ ограничиваем ширину контейнера — оригинальный Elementor сам управляет
   (boxed/full_width per section). Только убираем баги, которые ломали верстку. */

/* 1. Никакого горизонтального скролла на странице */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* 2. Сбросить ручные отрицательные margin-left/right на widget-контейнерах
      (это они «выдвигали» картинки в соседние колонки и перекрывали текст) */
.elementor-widget-container {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 3. Все картинки респонзивные — не вылезают за свой блок */
.elementor-widget-image img,
.elementor-widget-image-box img,
.elementor-image-box-img img,
img.elementor-animation-grow,
.e-con img {
  max-width: 100% !important;
  height: auto !important;
}

/* 4. Колонки без жёсткого min-width — не выпирают за родителя */
.elementor-column,
.elementor-top-column,
.elementor-inner-column {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* 5. Любой инлайн-стиль width:100vw / min-width:100vw -> 100% */
[style*="width:100vw"],
[style*="width: 100vw"],
[style*="min-width:100vw"],
[style*="min-width: 100vw"] {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 6. Клипуем горизонтальный overflow виджетов где он намеренный
   (tile-scroll параллакс, swiper-карусель), чтобы не было hscroll страницы.
   Стрелки слайдеров живут в .bdt-position-z-index — это сиблинг swiper'а,
   их не задеваем. .swiper-wrapper НЕ клипуем — он translate'ится внутри
   .swiper-container, иначе слайды не видны. */
.bdt-tile-scroll-yes,
.bdt-tile-scroll__wrap,
.swiper-container {
  overflow: hidden !important;
}

/* 7. Карточка 2 в блоке «Возможности электронной подписи» — у l2-min.png
   меньшая высота (650×600 vs 650×640 у соседних), и в Elementor у неё
   margin-top: -60px вместо -79px. В сумме картинка стоит на ~60px ниже
   карточек 1 и 3. Сдвигаем вверх чтобы выступала за границу как соседние. */
.elementor-element-135122e > .elementor-widget-container {
  margin-top: -119px !important;
}


/* === Плавающие боты TG + MAX (заменяют Elementor sticky) === */
/* Скрыть Elementor sticky-кнопку (TG-бот, data-id=74ef1d9) — мы делаем свою плавашку */
.elementor-element-74ef1d9.elementor-sticky--active,
.elementor-element-74ef1d9 { display:none !important; }

.ktok-float{position:fixed;top:14px;right:14px;z-index:9999;display:flex;gap:6px;flex-direction:column;}
@media (min-width:768px){.ktok-float{flex-direction:row;}}
.ktok-float__btn{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
  font:600 13px/1 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;
  text-decoration:none;color:#fff;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:transform .15s,box-shadow .15s;}
.ktok-float__btn:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(0,0,0,.24);}
.ktok-float__btn--tg{background:#229ED9;}
.ktok-float__btn--max{background:#003388;}
.ktok-float__btn svg{flex-shrink:0;}
.ktok-float__lbl{white-space:nowrap;}
@media (max-width:480px){.ktok-float__lbl{display:none;}.ktok-float__btn{padding:7px 9px;}}

/* === Сворачивание списка точек под картой === */
.store-finder__toggle{display:block;width:100%;margin:14px 0 0;padding:14px 18px;
  border:none;border-radius:10px;color:#fff;font:600 15px/1.3 -apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Arial,sans-serif;
  cursor:pointer;text-align:center;transition:filter .15s;
  background-color: #9F2A3A;
  background-image:
    radial-gradient(ellipse 60% 80% at 18% 30%, rgba(196,69,97,.55) 0%, rgba(196,69,97,0) 70%),
    radial-gradient(ellipse 55% 70% at 82% 25%, rgba(196,69,97,.40) 0%, rgba(196,69,97,0) 75%),
    radial-gradient(ellipse 70% 90% at 50% 95%, rgba(107,26,38,.55) 0%, rgba(107,26,38,0) 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(107,26,38,.40) 0%, rgba(107,26,38,0) 75%),
    radial-gradient(ellipse 30% 40% at 70% 60%, rgba(196,69,97,.30) 0%, rgba(196,69,97,0) 70%);}
.store-finder__toggle:hover{filter:brightness(1.08);}
.store-finder__toggle::after{content:" ▼";font-size:12px;}
.store-finder__toggle[aria-expanded="true"]::after{content:" ▲";}
#store-finder-nearest{display:none;margin-top:14px;}
#store-finder-nearest.is-expanded{display:grid;}

/* === Реальная Swiper-карусель (init из ktok-tweaks.js) === */
/* Включаем Swiper UI элементы (раньше скрывали потому что не было JS) */
.bdt-ep-custom-carousel .swiper-pagination {
  position: relative;
  margin-top: 14px;
  text-align: center;
}
.bdt-ep-custom-carousel .swiper-pagination-bullet {
  width: 10px; height: 10px;
  background: #003388;
  opacity: .35;
  margin: 0 4px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}
.bdt-ep-custom-carousel .swiper-pagination-bullet-active { opacity: 1; }
.bdt-ep-custom-carousel .bdt-navigation-prev,
.bdt-ep-custom-carousel .bdt-navigation-next {
  position: absolute; top: 40%; z-index: 5;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #ddd; border-radius: 50%;
  color: #003388; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  user-select: none;
}
.bdt-ep-custom-carousel .bdt-navigation-prev { left: -8px; }
.bdt-ep-custom-carousel .bdt-navigation-next { right: -8px; }
.bdt-ep-custom-carousel .bdt-navigation-prev::before { content: "‹"; font-size: 28px; line-height: 1; }
.bdt-ep-custom-carousel .bdt-navigation-next::before { content: "›"; font-size: 28px; line-height: 1; }
.bdt-ep-custom-carousel .swiper-button-disabled { opacity: .35; cursor: default; }
.bdt-ep-custom-carousel { position: relative; }

/* Гарантировать видимость иконок image-box (inline width:60% не должен схлопывать) */
.bdt-ep-custom-carousel .elementor-image-box-img { min-width: 50px; }
.bdt-ep-custom-carousel .elementor-image-box-img img { max-width: 100%; height: auto; }

/* Слайд-контейнер: высота по контенту, не растягиваем */
.bdt-ep-custom-carousel .swiper-slide { height: auto; }
.bdt-ep-custom-carousel .swiper-slide > div { height: 100%; }

/* === Вишнёвая палитра с градиентной текстурой === */
:root {
  --cherry-light: #C44561;
  --cherry-base:  #9F2A3A;
  --cherry-dark:  #6B1A26;
}

/* Мотттлед вишнёвый — несколько мягких пятен сливаются с базой
   (одинаково для hero и подвала). Селекторы специфичны для перебивания inline. */
.cherry-skin,
body .elementor-element.elementor-element-5ba002e:not(.x),
body .elementor-element.elementor-element-5ba002e:not(.x) > .elementor-motion-effects-container > .elementor-motion-effects-layer,
body .elementor-element.elementor-element-6df22c6:not(.x),
[style*="background-color:#9F2A3A"],
[style*="background:#9F2A3A"] {
  background-color: #9F2A3A !important;
  background-image:
    /* Яркие светлые пятна */
    radial-gradient(ellipse 55% 45% at 15% 20%, rgba(216,91,97,.85) 0%, rgba(216,91,97,0) 65%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(216,91,97,.70) 0%, rgba(216,91,97,0) 70%),
    radial-gradient(ellipse 35% 30% at 65% 55%, rgba(216,91,97,.50) 0%, rgba(216,91,97,0) 65%),
    /* Глубокие тёмные пятна */
    radial-gradient(ellipse 65% 55% at 50% 95%, rgba(60,15,24,.85) 0%, rgba(60,15,24,0) 65%),
    radial-gradient(ellipse 45% 40% at 8% 75%, rgba(60,15,24,.70) 0%, rgba(60,15,24,0) 70%),
    radial-gradient(ellipse 40% 35% at 95% 70%, rgba(60,15,24,.65) 0%, rgba(60,15,24,0) 70%),
    /* Мелкие средне-тёмные акценты для текстуры */
    radial-gradient(ellipse 20% 18% at 35% 40%, rgba(120,30,42,.55) 0%, rgba(120,30,42,0) 70%),
    radial-gradient(ellipse 18% 16% at 75% 30%, rgba(120,30,42,.45) 0%, rgba(120,30,42,0) 70%) !important;
}

/* Подвал — отступы + белый текст */
.elementor-element-6df22c6 {
  padding: 24px 16px !important;
}
.elementor-element-6df22c6 .elementor-heading-title {
  color: #fff !important;
  text-align: center;
}
.elementor-element-6df22c6 .elementor-heading-title a {
  color: #fff !important;
  opacity: .85;
}
.elementor-element-6df22c6 .elementor-heading-title a:hover {
  opacity: 1;
}


/* === Elementor entrance animations (fadeInUp и т.д.) — через IntersectionObserver
   в ktok-tweaks.js. Класс .is-animated добавляется когда элемент в viewport,
   убирается когда вышел — анимация повторяется при возврате к блоку. */
.elementor-invisible {
  visibility: visible;
  opacity: 0;
  transform: translateY(280px);
  transition: opacity 1.8s cubic-bezier(.22,.61,.36,1), transform 1.8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.elementor-invisible.is-animated {
  opacity: 1;
  transform: translateY(0);
}
/* Поддержка других направлений из data-settings._animation */
.elementor-invisible[data-anim="fadeIn"] { transform: none; }
.elementor-invisible[data-anim="fadeInDown"] { transform: translateY(-200px); }
.elementor-invisible[data-anim="fadeInLeft"] { transform: translateX(-200px); }
.elementor-invisible[data-anim="fadeInRight"] { transform: translateX(200px); }
.elementor-invisible[data-anim="fadeIn"].is-animated,
.elementor-invisible[data-anim="fadeInDown"].is-animated,
.elementor-invisible[data-anim="fadeInLeft"].is-animated,
.elementor-invisible[data-anim="fadeInRight"].is-animated {
  transform: translate(0,0);
  opacity: 1;
}
/* Fallback: если JS не отработал за 3 секунды — показываем без анимации */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { opacity: 1; transform: none; transition: none; }
}
