/* v12: isolated polish layout corrections, intentionally loaded last.
   Site data, payments and legacy RU/UA templates are not changed. */
html body.rf-home-page #generatorForm.pl-generator {scroll-margin-top:118px!important}
/* Eight cards visible; remaining six are accessible with the existing more control. */
html body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid {
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:17px!important;
}
html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type {
  display:flex!important;flex-direction:row!important;align-items:center!important;
  height:auto!important;min-height:121px!important;
  padding:14px 16px!important;gap:14px!important;
  border-radius:19px!important;min-width:0!important;
}
html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type>img {
  box-sizing:content-box!important;width:70px!important;height:75px!important;
  flex:0 0 70px!important;min-width:70px!important;max-width:70px!important;
  object-fit:contain!important;object-position:center!important;
  padding:0 12px 0 0!important;border-right:1.5px solid #dce3ec!important;
  margin:0!important;display:block!important;
}
html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type .pl-g-type-text {
  min-width:0!important;flex:1 1 auto!important;align-self:center!important;
  align-items:flex-start!important;gap:6px!important;
}
html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type .pl-g-type-text b {
  font-family:Manrope,Inter,'Segoe UI',sans-serif!important;font-size:clamp(15px,1.15vw,20px)!important;
  font-weight:850!important;letter-spacing:-.025em!important;line-height:1.22!important;
  overflow-wrap:normal!important;hyphens:auto!important;
}
html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type .pl-g-type-text small {
  font-size:clamp(13px,1.02vw,17px)!important;line-height:1.25!important;
}
/* Keep active card in the overflow section visible if it is the selected landing page. */
html body.rf-home-page #generatorForm.pl-generator #formatStrip > .pl-g-type-extra:not(.active) {display:none!important}
html body.rf-home-page #generatorForm.pl-generator.pl-g-expanded #formatStrip > .pl-g-type-extra {display:flex!important}
html body.rf-home-page #generatorForm.pl-generator .pl-g-showmore {margin-top:20px!important}
html body.rf-home-page #generatorForm.pl-generator .pl-g-page-picker input#nrPages {
  color:#0b2144!important;opacity:1!important;font-variant-numeric:tabular-nums!important;
}
/* Unrotated, geometric horizontal arrow (no font glyph). */
html body.rf-home-page .pl-preview-section .pl-preview-between {transform:translate(-50%,-50%)!important;}
html body.rf-home-page .pl-preview-section .pl-preview-between .pl12-straight-arrow {
  position:relative!important;display:block!important;width:74px!important;height:56px!important;
  transform:none!important;rotate:none!important;line-height:normal!important;
  filter:drop-shadow(0 2px 1px rgba(255,255,255,.8));
}
html body.rf-home-page .pl-preview-section .pl-preview-between .pl12-straight-arrow:before {
  content:""!important;display:block!important;position:absolute!important;
  left:3px;top:23px;width:59px;height:10px;border-radius:999px;background:#e10d20!important;
}
html body.rf-home-page .pl-preview-section .pl-preview-between .pl12-straight-arrow:after {
  content:""!important;display:block!important;position:absolute!important;
  right:7px;top:13px;width:29px;height:29px;
  border:solid #e10d20;border-width:9px 9px 0 0;
  transform:rotate(45deg)!important;border-radius:2px;
}
/* Footer: no waves, no blue gradients, a simple pale-red alternating page section. */
html body .pl11-footer {
  background:#fff5f6!important;background-image:none!important;
  padding:58px 0 25px!important;min-height:0!important;
  border-top:1px solid #ffe3e6!important;
  overflow:hidden!important;
}
html body .pl11-footer:before,html body .pl11-footer:after {display:none!important;content:none!important;background:none!important}
html body .pl11-footer-main {min-height:0!important;padding-bottom:28px!important;gap:clamp(14px,1.7vw,28px)!important}
html body .pl11-footer-brand {border-right-color:#f1d5d9!important}
html body .pl11-footer-brand>p:not(.pl11-footer-seller) {margin:10px 0 15px!important}
html body .pl11-footer-icons {gap:8px!important}
html body .pl11-footer-icons span {width:54px!important;height:54px!important;border-radius:15px!important;background:#fff!important;border:1px solid #ffe3e6!important}
html body .pl11-footer-icons img {width:39px!important;height:39px!important;object-fit:contain!important}
html body .pl11-footer-proof {min-height:63px!important;gap:10px!important;padding:7px 10px 7px 6px!important;background:#fff!important}
html body .pl11-footer-proof>span {width:48px!important;height:48px!important;border-radius:15px!important;background:#fff0f2!important}
html body .pl11-footer-proof img {width:35px!important;height:35px!important}
html body .pl11-footer-links {gap:11px!important}
html body .pl11-footer-links h2 {margin-bottom:8px!important}
html body .pl11-footer-links a {font-size:clamp(15px,1.07vw,18px)!important}
html body .pl11-footer-seller {font-size:11px!important;margin-top:12px!important}
html body .pl11-footer-bottom {border-top-color:#f0dce0!important;padding-top:16px!important;font-size:clamp(12px,.96vw,16px)!important}
html body .pl11-footer-art {width:190px!important;max-width:190px!important;max-height:224px!important;height:auto!important;object-fit:contain!important;align-self:end!important;justify-self:end!important;margin:0!important}
@media(min-width:1451px){
 html body .pl11-footer-main {grid-template-columns:minmax(280px,1.25fr) minmax(160px,.74fr) minmax(190px,.84fr) minmax(185px,.89fr) minmax(180px,.65fr)!important}
 html body .pl11-footer-art {display:block!important;}
}
@media (max-width:1450px){html body .pl11-footer-art{display:none!important}}
@media (max-width:1180px) and (min-width:701px) {
 html body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type {min-height:108px!important}
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type>img {width:64px!important;height:66px!important;flex-basis:64px!important;min-width:64px!important;max-width:64px!important}
}
@media(max-width:700px){
 html body.rf-home-page #generatorForm.pl-generator {scroll-margin-top:82px!important}
 html body.rf-home-page #generatorForm.pl-generator #formatStrip.pl-g-types-grid {
  display:flex!important;flex-flow:row nowrap!important;gap:12px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x mandatory!important;scrollbar-width:thin!important;
  padding:10px 6px 16px!important;max-width:100%!important;
 }
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type {
  flex:0 0 min(80vw,272px)!important;width:min(80vw,272px)!important;
  min-width:min(80vw,272px)!important;max-width:min(80vw,272px)!important;
  height:102px!important;min-height:102px!important;
  padding:13px 12px!important;gap:10px!important;scroll-snap-align:start!important;
 }
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type>img {
  width:55px!important;height:60px!important;flex:0 0 55px!important;min-width:55px!important;max-width:55px!important;
  padding-right:8px!important;border-right-width:1px!important;
 }
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type .pl-g-type-text b {font-size:15px!important;line-height:1.22!important}
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type .pl-g-type-text small {font-size:13px!important}
 html body .pl11-footer {padding:44px 0 18px!important}
 html body .pl11-footer-main {gap:18px 12px!important;padding-bottom:22px!important}
 html body .pl11-footer-icons span {width:49px!important;height:49px!important}
 html body .pl11-footer-icons img {width:36px!important;height:36px!important}
 html body .pl11-footer-proof {min-height:103px!important;flex-direction:column!important;gap:4px!important;padding:7px 4px!important}
 html body .pl11-footer-proof>span {width:41px!important;height:41px!important}
 html body .pl11-footer-proof img {width:31px!important;height:31px!important}
 html body .pl11-footer-proof b {font-size:10.5px!important}
 html body .pl11-footer-art {display:none!important}
 html body.rf-home-page .pl-preview-section .pl-preview-between {display:none!important}
}
@media(max-width:350px){
 html body.rf-home-page #generatorForm.pl-generator #formatStrip .format-card.pl-g-type {flex-basis:258px!important;width:258px!important;min-width:258px!important;max-width:258px!important}
}
