/* Product-only responsive safeguards; approved homepage is not touched. */
@media(max-width:991.98px){
html,body.product-prototype{max-width:100%;overflow-x:clip!important}
body.product-prototype .wrapper,body.product-prototype main,body.product-prototype .container,body.product-prototype .container-fluid,body.product-prototype section,body.product-prototype article{max-width:100%;min-width:0;box-sizing:border-box}
body.product-prototype .row{min-width:0;max-width:100%;margin-left:0;margin-right:0}
body.product-prototype .row>[class*="col-"]{min-width:0;max-width:100%;box-sizing:border-box}
body.product-prototype .product-hero__grid,body.product-prototype .model__details-grid,body.product-prototype .gallery,body.product-prototype .gallery__stage,body.product-prototype .product-summary,body.product-prototype .model-list,body.product-prototype .model,body.product-prototype .model__bar,body.product-prototype .model__body{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.product-prototype .product-hero__grid{grid-template-columns:minmax(0,1fr)!important}
body.product-prototype .gallery__stage{width:100%!important;overflow:hidden!important}
body.product-prototype .gallery__stage img{display:block;max-width:100%!important;width:100%;height:auto;object-fit:contain}
body.product-prototype .gallery__thumbs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:9px!important;width:100%!important;max-width:100%!important;min-width:0!important;overflow:visible!important;box-sizing:border-box!important}
body.product-prototype .gallery__thumbs>button{display:block;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.product-prototype img,body.product-prototype video,body.product-prototype iframe{max-width:100%}
body.product-prototype .model__bar{flex-wrap:wrap!important}
body.product-prototype .model__toggle{min-width:0!important;max-width:100%!important}
body.product-prototype .model__toggle span,body.product-prototype .model__toggle small{min-width:0!important;overflow-wrap:anywhere}
body.product-prototype .tab-panels,body.product-prototype .tab-panel,body.product-prototype .table-wrap{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.product-prototype table{max-width:100%}
body.product-prototype .table-wrap{overflow-x:auto!important}
body.product-prototype .footer-v2__grid,body.product-prototype .footer-v2__column{min-width:0!important;max-width:100%!important}
body.product-prototype p,body.product-prototype li,body.product-prototype h1,body.product-prototype h2,body.product-prototype h3{overflow-wrap:break-word}
}


/* Approved gallery rule for all six product pages: 6 photos + video desktop;
   5 photos + video in two rows of three on mobile. */
@media(min-width:992px){
body.product-prototype .gallery__thumbs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:9px!important;overflow:visible!important}
body.product-prototype .gallery__thumbs>button:nth-child(n+8){display:none!important}
}
@media(max-width:991.98px){
body.product-prototype .gallery__thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;overflow:visible!important}
body.product-prototype .gallery__thumbs>button{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.product-prototype .gallery__thumbs>button:nth-child(1){display:none!important}
body.product-prototype .gallery__thumbs>button:nth-child(n+8){display:none!important}
}
body.product-prototype #model-l26 .model__toggle img{object-fit:cover!important;object-position:50% calc(32% + 5px)!important}
body.product-prototype #model-w26 .model__toggle img{object-fit:cover!important;object-position:50% 83%!important}

/* Preserve mobile metric headings defined in v10-ua.css: black, two lines.
   Do not override their ::before text or restore the old blue labels. */
@media(max-width:991.98px){
body.product-prototype .footer-v2__links li{margin-top:0!important;margin-bottom:0!important}
}
body.product-prototype .footer-v2__links li:last-child{margin-bottom:0!important}

/* S26 EDU thumbnail: move the image content down so the upper girl's head is visible. */
body.product-prototype #model-s26 .model__toggle img{object-fit:cover!important;object-position:center calc(50% - 12px)!important}

/* Approved product gallery responsive geometry – applies to every product. */
@media(max-width:991.98px){
 body.product-prototype .gallery__thumbs{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;max-width:100%!important;gap:8px!important;overflow:visible!important;
 }
 body.product-prototype .gallery__thumbs>button:nth-child(1){display:none!important}
 body.product-prototype .gallery__thumbs>button:nth-child(n+8){display:none!important}
 body.product-prototype .gallery__thumbs>button{min-width:0!important;width:100%!important}
 body.product-prototype .gallery__thumbs img{max-width:100%!important}
}
@media(min-width:992px){
 body.product-prototype .gallery__thumbs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
}

/* Product-template-only mobile KPI headings, shared across six products. */
/* Product metric labels: black and exactly two lines on mobile only. */
@media(max-width:991.98px){
 body.product-prototype .trust-strip b{
   color:#111!important;
   font-size:0!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   text-align:center!important;
   min-height:52px!important;
 }
 body.product-prototype .trust-strip div:nth-child(1) b::before{
   content:"20\Aроків"!important;white-space:pre!important;display:block!important;
   color:#111!important;font-size:24px!important;font-weight:700!important;line-height:1.06!important;
 }
 body.product-prototype .trust-strip div:nth-child(2) b::before{
   content:"800+\Aпроєктів"!important;white-space:pre!important;display:block!important;
   color:#111!important;font-size:24px!important;font-weight:700!important;line-height:1.06!important;
 }
 body.product-prototype .trust-strip div:nth-child(3) b::before{
   content:"Компанія\Aроку"!important;white-space:pre!important;display:block!important;
   color:#111!important;font-size:23px!important;font-weight:700!important;line-height:1.06!important;
 }
 body.product-prototype .trust-strip div:nth-child(4) b::before{
   content:"Гриф\AМОН"!important;white-space:pre!important;display:block!important;
   color:#111!important;font-size:23px!important;font-weight:700!important;line-height:1.06!important;
 }
}


/* Floor S26 EDU preview: reveal both girls' faces without cropping. */
body.product-prototype #model-s26 .model__toggle img{
 object-fit:contain!important;
 object-position:center center!important;
}

/* S26: keep the same full-bleed image size, shift crop to show faces. */
body.product-prototype #model-s26 .model__toggle img{object-fit:cover!important;object-position:center top!important}
/* Separate product KPI heading from the white photo-banner 800+. */
body.product-prototype .trust-strip div:nth-child(2) b{color:#1f1f1f!important;font-weight:600!important;-webkit-text-stroke:0!important;text-shadow:none!important}
@media(max-width:991.98px){body.product-prototype .trust-strip div:nth-child(2) b::before{color:#111!important;font-weight:700!important;-webkit-text-stroke:0!important;text-shadow:none!important}}
body.product-prototype .projects-proof__content h2{color:#fff!important;font-weight:900!important;-webkit-text-stroke:2px #fff!important;text-shadow:0 3px 16px #000,0 1px 5px #000!important}

/* Price-panel centering applies only to mobile. Desktop retains original approved layout. */
@media(max-width:767px){
/* Approved shared product price panel: center every element and contain long links. */
body.product-prototype .price-panel{
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 gap:18px!important;
 width:100%!important;
 min-width:0!important;
 text-align:center!important;
}
body.product-prototype .price-panel>div:first-child,
body.product-prototype .price-panel__actions{
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 width:100%!important;
 max-width:100%!important;
 min-width:0!important;
 text-align:center!important;
}
body.product-prototype .price-panel strong,
body.product-prototype .price-panel small,
body.product-prototype .price-panel__discount,
body.product-prototype .price-panel__help{
 max-width:100%!important;
 min-width:0!important;
 width:auto!important;
 white-space:normal!important;
 overflow-wrap:anywhere!important;
 text-align:center!important;
}
body.product-prototype .price-panel__actions .btn{
 width:min(100%,405px)!important;
 max-width:100%!important;
 min-width:0!important;
 white-space:normal!important;
 text-align:center!important;
}

}
/* All product pages, mobile only: fill the gallery frame without gray letterboxing.
   Keep the approved gallery order and thumbnails unchanged. */
@media(max-width:767px){
 body.product-prototype .gallery__stage{
  width:100%!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  overflow:hidden!important;
 }
 body.product-prototype .gallery__stage>img#gallery-main{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
 }
 body.product-prototype .gallery__stage .gallery__video,
 body.product-prototype .gallery__stage .gallery__video iframe{
  width:100%!important;
  height:100%!important;
 }
}

/* Mobile product price panel only: no full-width underline on wrapped discount link. */
@media(max-width:767px){
 body.product-prototype .price-panel .price-panel__discount{
  text-decoration:none!important;
  border-bottom:0!important;
  box-shadow:none!important;
  background-image:none!important;
 }
}
