/* V183 — hero trust back into first screen + unified proof design */

/* Hero metrics belong to the first screen on desktop */
body[data-v183="true"] #top.hero-v176{position:relative}
body[data-v183="true"] #top.hero-v176 .trust-strip-v74{background:transparent!important}
body[data-v183="true"] #top.hero-v176 .trust-grid-v74{
  background:rgba(255,250,244,.96)!important;
  border:1px solid rgba(201,173,123,.24)!important;
  border-radius:30px!important;
  box-shadow:0 16px 40px rgba(20,41,71,.10)!important;
}
@media (min-width:769px){
  body[data-v183="true"] #top.hero-v176{padding-bottom:166px!important}
  body[data-v183="true"] #top.hero-v176 .trust-strip-v74{
    position:absolute!important;
    left:0; right:0; bottom:22px;
    padding:0!important;
    z-index:3;
  }
  body[data-v183="true"] #top.hero-v176 .trust-grid-v74{
    width:min(calc(100% - 40px),var(--container))!important;
    margin:0 auto!important;
  }
}
@media (max-width:768px){
  body[data-v183="true"] #top.hero-v176 .trust-strip-v74{
    position:relative!important;
    padding:18px 0 0!important;
    z-index:3;
  }
}

/* Proof hub general cleanup */
body[data-v183="true"] #reviews.proof-hub-v180{background:#fff!important}
body[data-v183="true"] #reviews.proof-hub-v180 .proof-tabs-v180{
  margin-bottom:26px!important;
}
body[data-v183="true"] #reviews.proof-hub-v180 .proof-pane-v180{position:relative}
body[data-v183="true"] #reviews.proof-hub-v180 .carousel-hint-v58,
body[data-v183="true"] #reviews.proof-hub-v180 .clients-progress-v89{display:none!important}

/* Same arrow placement for all proof carousels */
body[data-v183="true"] #reviews .cases-v57,
body[data-v183="true"] #reviews .clients-carousel-v89,
body[data-v183="true"] #reviews .proof-reviews-unified-v183{
  position:relative;
  padding-inline:54px;
}
body[data-v183="true"] #reviews .cases-controls-v129,
body[data-v183="true"] #reviews .clients-toolbar-v89 .carousel-controls-v58,
body[data-v183="true"] #reviews .proof-unified-controls-v183{
  position:absolute!important;
  inset:50% 0 auto 0!important;
  transform:translateY(-50%)!important;
  width:100%!important;
  height:0!important;
  margin:0!important;
  pointer-events:none!important;
  z-index:3!important;
}
body[data-v183="true"] #reviews .cases-controls-v129 .carousel-button-v58,
body[data-v183="true"] #reviews .clients-toolbar-v89 .carousel-controls-v58 .carousel-button-v58,
body[data-v183="true"] #reviews .proof-unified-controls-v183 .carousel-button-v58{
  position:absolute!important;
  pointer-events:auto!important;
}
body[data-v183="true"] #reviews .cases-controls-v129 .carousel-button-v58:first-child,
body[data-v183="true"] #reviews .clients-toolbar-v89 .carousel-controls-v58 .carousel-button-v58:first-child,
body[data-v183="true"] #reviews .proof-unified-controls-v183 .carousel-button-v58:first-child{left:0!important}
body[data-v183="true"] #reviews .cases-controls-v129 .carousel-button-v58:last-child,
body[data-v183="true"] #reviews .clients-toolbar-v89 .carousel-controls-v58 .carousel-button-v58:last-child,
body[data-v183="true"] #reviews .proof-unified-controls-v183 .carousel-button-v58:last-child{right:0!important}
body[data-v183="true"] #reviews .clients-toolbar-v89,
body[data-v183="true"] #reviews .reviews-toolbar-v58{margin:0!important; padding:0!important}

/* Unified reviews rail instead of blue split tabs */
body[data-v183="true"] #reviews .proof-reviews-unified-v183{
  background:linear-gradient(180deg,#fff 0%,#fcf7ee 100%)!important;
  border:1px solid rgba(201,173,123,.22)!important;
  border-radius:30px!important;
  box-shadow:0 16px 44px rgba(20,41,71,.08)!important;
  padding-top:22px!important;
  padding-bottom:16px!important;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183{
  display:flex!important;
  gap:18px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  scroll-snap-type:x mandatory!important;
  scroll-padding-inline:0!important;
  padding:0!important;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183::-webkit-scrollbar{display:none!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 > article{
  flex:0 0 min(86vw,560px)!important;
  width:min(86vw,560px)!important;
  min-width:min(86vw,560px)!important;
  scroll-snap-align:start!important;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49,
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82{
  position:relative!important;
  overflow:hidden!important;
  border-radius:28px!important;
  background:#fff!important;
  border:1px solid rgba(201,173,123,.22)!important;
  box-shadow:0 10px 28px rgba(20,41,71,.06)!important;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49{padding-top:18px!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82{padding-top:18px!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49::before,
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82::before{
  position:absolute;
  top:14px;
  right:16px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  height:28px;
  padding:0 12px;
  border-radius:999px;
  font:700 11px/1.1 inherit;
  letter-spacing:.02em;
  text-transform:none;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49::before{
  content:"История клиента";
  color:#17345f;
  background:#f4ede1;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82::before{
  content:"Отзыв в сообщении";
  color:#fff;
  background:#17345f;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49 figure,
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-photo-placeholder-v49{margin-top:20px!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82 figure{margin-top:12px!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-proof-v125{
  padding:18px 20px 0!important;
  background:transparent!important;
}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-proof-v125 strong{display:block;margin-bottom:8px;color:#17345f!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-proof-v125 span{color:#24364f!important}
body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82 img{
  border-radius:18px!important;
}

/* mobile adjustments */
@media (max-width:768px){
  body[data-v183="true"] #reviews .cases-v57,
  body[data-v183="true"] #reviews .clients-carousel-v89,
  body[data-v183="true"] #reviews .proof-reviews-unified-v183{padding-inline:20px!important}
  body[data-v183="true"] #reviews .proof-reviews-unified-v183{
    border-radius:22px!important;
    padding-top:14px!important;
    padding-bottom:12px!important;
  }
  body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183{gap:12px!important}
  body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 > article{
    flex-basis:min(84vw,338px)!important;
    width:min(84vw,338px)!important;
    min-width:min(84vw,338px)!important;
  }
  body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .review-card-v49::before,
  body[data-v183="true"] #reviews .proof-reviews-unified-rail-v183 .message-review-card-v82::before{
    top:10px; right:10px; height:26px; padding:0 10px; font-size:10px;
  }
}
