/* PromSitePro Flatsome Bridge v0.4.0 — самостоятельные стили совместимости, без файлов Flatsome. */
/* Twenty Twenty-Five по умолчанию ограничивает контент; расширяем только страницы со старой разметкой. */
body.psfb-legacy-page .wp-block-post-content,
body.psfb-legacy-page .entry-content {width:100%;max-width:100%}
body.psfb-legacy-page .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.psfb-legacy-page .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {max-width:min(100%,1200px)}
body.psfb-legacy-page .wp-block-post-content .psfb-section,
body.psfb-legacy-page .entry-content .psfb-section {width:100%;max-width:100%}
.psfb-section{width:100%;padding:24px 0;background-repeat:no-repeat;background-position:center;background-size:cover;box-sizing:border-box}
.psfb-container{width:min(100%,1200px);margin-inline:auto;padding-inline:20px;box-sizing:border-box}
.psfb-row,.psfb-row_inner,.psfb-row-inner{display:flex;flex-wrap:wrap;margin-inline:-12px;align-items:stretch;box-sizing:border-box}
.psfb-col,.psfb-col_inner,.psfb-col-inner{padding:12px;box-sizing:border-box;min-width:0;flex:0 0 var(--psfb-desktop,100%);max-width:var(--psfb-desktop,100%)}
.psfb-ux_text,.psfb-ux-text{max-width:100%;overflow-wrap:break-word}
.psfb-ux_text p:first-child,.psfb-ux-text p:first-child{margin-top:0}
.psfb-ux_text p:last-child,.psfb-ux-text p:last-child{margin-bottom:0}
.psfb-image{display:block;max-width:100%;width:auto;height:auto;object-fit:contain}
.psfb-figure{margin:0 auto;max-width:100%;text-align:center}
.psfb-figure .psfb-image{margin-inline:auto}
.psfb-figure figcaption{font-size:.9rem;opacity:.8;margin-top:.4rem}
.psfb-button{display:inline-flex;align-items:center;justify-content:center;background:#e95a22;color:#fff!important;text-decoration:none!important;border-radius:4px;padding:12px 22px;font-weight:600;line-height:1.3;cursor:pointer;transition:filter .15s}
.psfb-button:hover{filter:brightness(.92)}
.psfb-title{margin:0 0 18px;line-height:1.2}
.psfb-ux_banner,.psfb-ux-banner{display:flex;align-items:center;justify-content:center;background-size:cover;background-position:center;position:relative;isolation:isolate;padding:30px;box-sizing:border-box;min-width:0}
.psfb-text_box,.psfb-text-box{width:100%;max-width:800px;margin:auto}
.psfb-divider{height:1px;background:rgba(0,0,0,.17);margin:24px 0}
.psfb-gap{display:block}
.psfb-ux-image-box,.psfb-ux_image_box{width:100%;text-align:center}
.psfb-image-box-media{margin:0 auto 16px;max-width:100%}
.psfb-image-box-media img{display:block;max-width:100%;height:auto;margin:auto}
.psfb-image-box-text{overflow-wrap:break-word}
.psfb-featured-box{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.psfb-featured-media{flex:0 0 auto;max-width:90px}
.psfb-featured-icon{display:block;max-width:100%;height:auto}
.psfb-featured-content{min-width:0}
.psfb-featured-content h3{margin:0 0 8px}
.psfb-featured-left{flex-direction:row;align-items:flex-start;text-align:left}
.psfb-ux_slider,.psfb-ux-slider{position:relative;overflow:hidden;width:100%}
/* Наложение элементов в CSS Grid не требует дублировать изображения или формы. */
.psfb-ux_slider.psfb-ready,.psfb-ux-slider.psfb-ready{display:grid;grid-template-columns:minmax(0,1fr);isolation:isolate}
.psfb-ux_slider.psfb-ready > .psfb-slide,.psfb-ux-slider.psfb-ready > .psfb-slide{grid-area:1 / 1;min-width:0;min-height:0;transform:translate3d(100%,0,0);opacity:0;visibility:hidden;pointer-events:none;z-index:0;transition:none;box-sizing:border-box}
.psfb-ux_slider.psfb-ready > .psfb-slide-visible,.psfb-ux-slider.psfb-ready > .psfb-slide-visible{transform:translate3d(0,0,0);opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.psfb-ux_slider.psfb-ready > .psfb-slide-preparing,.psfb-ux-slider.psfb-ready > .psfb-slide-preparing{transform:translate3d(100%,0,0);opacity:1;visibility:visible;z-index:2}
.psfb-ux_slider.psfb-ready > .psfb-slide-preparing-backward,.psfb-ux-slider.psfb-ready > .psfb-slide-preparing-backward{transform:translate3d(-100%,0,0);opacity:1;visibility:visible;z-index:2}
.psfb-ux_slider.psfb-ready > .psfb-slide-entering,.psfb-ux-slider.psfb-ready > .psfb-slide-entering{transform:translate3d(0,0,0);opacity:1;visibility:visible;z-index:2;transition:transform .65s ease}
.psfb-ux_slider.psfb-ready > .psfb-slide-leaving,.psfb-ux-slider.psfb-ready > .psfb-slide-leaving{transform:translate3d(-100%,0,0);opacity:1;visibility:visible;z-index:1;transition:transform .65s ease}
.psfb-ux_slider.psfb-ready > .psfb-slide-leaving-backward,.psfb-ux-slider.psfb-ready > .psfb-slide-leaving-backward{transform:translate3d(100%,0,0);opacity:1;visibility:visible;z-index:1;transition:transform .65s ease}
/* Необязательные независимые движения: motion="three" у UX Banner.
   Эффект только для трёх непосредственных дочерних элементов баннера.
   Первый и третий движутся синхронно, средний — со своей фазой/скоростью. */
.psfb-motion-three > :nth-child(1),.psfb-motion-three > :nth-child(3){animation:psfb-side-motion 7s ease-in-out infinite both;will-change:transform}
.psfb-motion-three > :nth-child(2){animation:psfb-center-motion 4.5s ease-in-out infinite alternate both;will-change:transform}
@keyframes psfb-side-motion{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-12px,0,0)}}
@keyframes psfb-center-motion{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(0,-14px,0)}}
.psfb-slider-controls{position:absolute;z-index:5;left:0;right:0;top:50%;transform:translateY(-50%);display:flex;justify-content:space-between;pointer-events:none;padding-inline:10px}
.psfb-slider-controls button{pointer-events:auto;width:40px;height:40px;display:grid;place-items:center;background:rgba(20,20,20,.62);color:#fff;border:0;border-radius:50%;cursor:pointer;font-size:24px;line-height:1}
.psfb-slider-controls button:focus-visible{outline:3px solid #ff9c37;outline-offset:2px}
@media(min-width:601px) and (max-width:1024px){.psfb-col,.psfb-col_inner,.psfb-col-inner{flex-basis:var(--psfb-tablet,100%);max-width:var(--psfb-tablet,100%)}}
@media(max-width:600px){.psfb-container{padding-inline:15px}.psfb-col,.psfb-col_inner,.psfb-col-inner{flex-basis:var(--psfb-mobile,100%);max-width:var(--psfb-mobile,100%)}.psfb-ux_banner,.psfb-ux-banner{min-height:230px!important;padding:20px}.psfb-featured-left{flex-direction:column;align-items:center;text-align:center}}

@media(prefers-reduced-motion:reduce){
 .psfb-ux_slider.psfb-ready > .psfb-slide,.psfb-ux-slider.psfb-ready > .psfb-slide{transition:none!important}
 .psfb-motion-three > *{animation:none!important}
}

/* Promouter-Center: приближение масштаба к действующему сайту (только страницы UX Builder). */
body.psfb-legacy-page { --psfb-content-width: 1220px; }
body.psfb-legacy-page .wp-site-blocks {max-width:none;padding:0;margin:0}
body.psfb-legacy-page .wp-site-blocks > main,
body.psfb-legacy-page .wp-block-post-content {max-width:none!important;width:100%;padding:0!important;margin:0 auto}
body.psfb-legacy-page .wp-block-post-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
body.psfb-legacy-page .entry-content.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {max-width:100%!important}
body.psfb-legacy-page h1.wp-block-post-title {max-width:var(--psfb-content-width);margin:22px auto 16px;font-size:clamp(30px,3vw,42px);line-height:1.2}
body.psfb-legacy-page .psfb-container {width:min(100%,var(--psfb-content-width));padding-inline:20px}
body.psfb-legacy-page .psfb-section {margin-block:0}
body.psfb-legacy-page .psfb-hero-section {padding:0!important;width:100%}
body.psfb-legacy-page .psfb-hero-section > .psfb-container {width:100%;max-width:100%;padding:0}
/* Главный баннер: в оригинале около 1780 x 640, ниже ширины смартфона адаптируется. */
body.psfb-legacy-page .psfb-hero-section {min-height:0;overflow:hidden}
body.psfb-legacy-page .psfb-hero-section .psfb-ux-slider {min-width:0}
body.psfb-legacy-page .psfb-hero-section .psfb-ux-banner {min-height:clamp(320px,36vw,640px);padding:clamp(10px,2vw,32px)}
body.psfb-legacy-page .psfb-hero-section .psfb-row {margin-inline:0}
body.psfb-legacy-page .psfb-hero-section .psfb-col,
body.psfb-legacy-page .psfb-hero-section .psfb-col_inner {padding-inline:clamp(3px,.6vw,12px)}
/* Автоматическая карусель — без наложенных стрелок, чтобы не портить баннер. */
body.psfb-legacy-page .psfb-slider-controls {display:none!important}
body.psfb-legacy-page .psfb-ux-slider .psfb-slide-entering,
body.psfb-legacy-page .psfb-ux-slider .psfb-slide-leaving,
body.psfb-legacy-page .psfb-ux-slider .psfb-slide-leaving-backward {transition-duration:.68s}
/* Шапка / навигация, близкая по пропорциям к оригиналу. */
.psfb-site-header{width:100%;background:#fff;color:#5e6065;font-family:Arial,Helvetica,sans-serif;position:relative;z-index:10}
.psfb-site-header a{text-decoration:none}
.psfb-topbar{height:52px;background:#ff511f;color:white}
.psfb-header-inner{max-width:1280px;margin:0 auto;padding:0 20px;display:flex;align-items:center;box-sizing:border-box}
.psfb-topbar .psfb-header-inner{height:100%;gap:22px;justify-content:center}
.psfb-topbar a{color:#fff;font-size:13px;letter-spacing:.2px}
.psfb-mainbar{background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.07)}
.psfb-mainbar .psfb-header-inner{min-height:105px;gap:32px;justify-content:space-between}
.psfb-brand{display:flex;align-items:center;gap:4px;white-space:nowrap;font-weight:700;font-size:13px;color:#414247!important;letter-spacing:-.2px}
.psfb-brand img{display:block;max-width:50px;max-height:40px;width:auto;height:auto;object-fit:contain;margin:0 3px}
.psfb-brand-dot{color:#ff8b09;font-size:28px;line-height:1}
.psfb-mainnav{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:clamp(10px,1.3vw,24px)}
.psfb-mainnav a{font-size:13px;font-weight:700;color:#737579!important;text-transform:uppercase;white-space:nowrap;letter-spacing:.06px}
.psfb-mainnav a:hover,.psfb-mobile-menu a:hover{color:#ff521e!important}
.psfb-mobile-menu{display:none}
.psfb-site-footer{background:#2d3948;color:#b8bdc5;text-align:center;padding:40px 18px 44px;font-family:Arial,Helvetica,sans-serif}
.psfb-site-footer nav{max-width:950px;margin:0 auto 24px;display:flex;justify-content:center;flex-wrap:wrap;gap:12px 22px}
.psfb-site-footer nav a{font-size:16px;color:#a6adb7!important;text-decoration:none;text-transform:uppercase}
.psfb-site-footer .psfb-policy{display:block;color:#c2c9d2!important;font-size:17px;font-weight:700;margin:20px 0;text-decoration:none}
.psfb-site-footer p{color:#9da6b2;font-size:13px;margin:14px 0 0}
@media(max-width:1050px){.psfb-mainbar .psfb-header-inner{min-height:82px}.psfb-mainnav{gap:8px}.psfb-mainnav a{font-size:11px}.psfb-brand{font-size:12px}}
@media(max-width:800px){
 .psfb-topbar{height:auto;min-height:33px}.psfb-topbar .psfb-header-inner{padding:6px 12px;gap:10px;flex-wrap:wrap}
 .psfb-topbar a{font-size:10px}
 .psfb-mainbar .psfb-header-inner{min-height:80px;padding:0 16px}
 .psfb-mainnav{display:none}.psfb-mobile-menu{display:block;position:relative}
 .psfb-mobile-menu summary{cursor:pointer;list-style:none;font-size:29px;color:#737579}
 .psfb-mobile-menu summary::-webkit-details-marker{display:none}
 .psfb-mobile-menu nav{position:absolute;right:0;top:46px;min-width:240px;display:flex;flex-direction:column;gap:0;background:#fff;box-shadow:0 6px 14px rgba(0,0,0,.13);padding:7px 0;max-height:70vh;overflow:auto}
 .psfb-mobile-menu nav a{display:block;padding:12px 18px;font-size:13px;color:#62666a;font-weight:600;white-space:nowrap}
 body.psfb-legacy-page .psfb-hero-section .psfb-ux-banner{min-height:clamp(250px,60vw,470px);padding:10px}
 body.psfb-legacy-page .psfb-hero-section .psfb-col,
 body.psfb-legacy-page .psfb-hero-section .psfb-col_inner{padding:4px}
 .psfb-brand img{max-height:35px;max-width:44px}
}


/* === v0.4.1: исправление чрезмерного размера первого баннера и пустых кадров ===
 * Раньше CSS Grid учитывал высоту ВСЕХ, в том числе скрытых, слайдов.
 * Поэтому баннер растягивался по самому высокому изображению до нескольких экранов.
 * Теперь три карусели имеют ограниченную высоту, а слайды накладываются абсолютно.
 */
body.psfb-legacy-page .psfb-hero-section {
  --psfb-hero-max-height: clamp(330px, 32vw, 580px);
  --psfb-hero-carousel-height: clamp(170px, 17vw, 300px);
  height: var(--psfb-hero-max-height) !important;
  max-height: var(--psfb-hero-max-height) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box;
}
body.psfb-legacy-page .psfb-hero-section > .psfb-container {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] {
  position: relative;
  display: block !important;
  height: var(--psfb-hero-carousel-height) !important;
  min-height: 0 !important;
  max-height: var(--psfb-hero-carousel-height) !important;
  overflow: hidden;
  isolation: isolate;
}
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] > .psfb-slide {
  position: absolute !important;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-figure,
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-ux-image-box,
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-image-box-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  overflow: hidden;
}
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] img,
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-image {
  display: block;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}
/* Ранее заданный min-height для UX Banner не должен растягивать слайды. */
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-ux-banner,
body.psfb-legacy-page .psfb-hero-section [data-psfb-slider="true"] .psfb-ux_banner {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}
/* Без внезапных горизонтальных полос/пустых областей между первым баннером и следующими блоками. */
body.psfb-legacy-page .psfb-hero-section + .psfb-section {margin-top:0}
/* Сохраняем изображения остальных разделов в разумном масштабе. */
body.psfb-legacy-page .psfb-section:not(.psfb-hero-section) .psfb-figure img {
  max-width:100%; max-height:480px; object-fit:contain;
}
@media(max-width:800px) {
  body.psfb-legacy-page .psfb-hero-section {
    --psfb-hero-max-height:clamp(265px, 65vw, 420px);
    --psfb-hero-carousel-height:clamp(125px, 34vw, 215px);
  }
}
@media(max-width:480px) {
  body.psfb-legacy-page .psfb-hero-section {
    --psfb-hero-max-height:clamp(260px, 82vw, 355px);
    --psfb-hero-carousel-height:clamp(110px, 34vw, 160px);
  }
}
