
/* qa-fixes2: visual QA 2026-11-15 */
/* Product hero logo collapsed by percentage padding on wide containers */
body .product-icon.pb2-logo,body .tp-hero-main > .product-icon.pb2-logo{padding:clamp(14px,2vw,24px)!important;box-sizing:border-box}
body .product-icon.pb2-logo img{width:100%;height:100%;object-fit:contain}
/* Single-image gallery should span full width */
.tp-gal-grid:has(> .tp-gal-item:only-child){grid-template-columns:1fr!important}
/* Sticky section nav on mobile: one scrollable row instead of 3 stacked rows */
@media (max-width:768px){.tp-nav{flex-wrap:nowrap!important;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.tp-nav::-webkit-scrollbar{display:none}.tp-nav a{flex:0 0 auto;white-space:nowrap;min-height:40px}}

/* qa-fixes2 (tap zones, cat intro clamp, footer) 2026-11-15 */
@media (max-width:760px){
.tool-name,a.pb-tap,a[aria-label^="Разгледай"],.pbn-chip,.pbn2-cc,.pbc-btn,.pbc-chip,.pbn-chips a,.pbn-more a,.ux2-chip,.tags a,.pbn-footer-column a,.pbn-footer-column button,.c2-bc a{display:inline-flex;align-items:center;min-height:40px;box-sizing:border-box}
.tool-name{display:flex}
.pbn-chip,.ux2-chip{padding-top:8px;padding-bottom:8px}
a.pb-tap{padding-top:8px;padding-bottom:8px}
.pbn-footer-column a,.pbn-footer-column button{padding:6px 0}
.pbn-chips{gap:8px}
}
/* hero meta badges: never clipped */
.pbn-hero,.pbn-hero-t{overflow:visible}
.pbn-hero-t{min-width:0}
.pbn-meta{display:flex;flex-wrap:wrap;gap:8px;overflow:visible}
.pbn-meta .pbn-badge{display:inline-flex;align-items:center;line-height:1.3;white-space:nowrap;padding-top:5px;padding-bottom:5px;height:auto;max-width:100%}
/* category intro clamp */
.pbn-hero-t p.pb-clamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;white-space:normal}
.pbn-hero-t p.pb-clamp.is-open{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}
.pbn-hero-t p{white-space:pre-line}
.pb-more-btn{display:inline-flex;align-items:center;min-height:40px;margin:0 0 10px;padding:0 4px;background:none;border:0;color:#6d28d9;font:inherit;font-weight:600;cursor:pointer}
/* footer mobile */
@media (max-width:640px){
.pbn-footer-grid{gap:20px 16px}
.pbn-footer-about{grid-column:1/-1}
.pbn-footer-column{min-width:0}
.pbn-footer-column a,.pbn-footer-column button{overflow-wrap:anywhere;text-align:left}
.pbn-footer-invite{flex-direction:column;align-items:flex-start;gap:14px}
}
@media (max-width:380px){.pbn-footer-grid{grid-template-columns:1fr}}
/* footer compact */
@media(min-width:861px){.pbn-footer-grid{grid-template-columns:1.3fr 1fr 1fr 1fr 1.6fr!important;gap:28px 32px!important}
.pbn-footer-grid>:last-child{column-count:2;column-gap:28px}
.pbn-footer-grid>:last-child>*{break-inside:avoid}
.pbn-footer-grid>:last-child>:first-child{column-span:all}
.pbn-footer-grid a{padding-block:3px}}

/* card cover logo box: fixed size so img never collapses */
body .tool-cover .cover-logo .product-icon.pb2-logo{width:64px!important;height:64px!important;padding:8px!important;box-sizing:border-box!important;display:inline-flex!important}
body .tool-cover .cover-logo .product-icon.pb2-logo>img{width:100%!important;height:100%!important;min-width:0;object-fit:contain!important;opacity:1!important;visibility:visible!important}

/* card: logo only on cover; spacing under chips */
body .tool-card .tool-name .product-icon{display:none!important}
body .tool-card .tool-name{gap:0!important}
body .tool-card .tags,body .tool-card .tool-tags,body .tool-card .ux2-meta+div,body .tool-card .tool-content>div:has(>a[class*=tag]),body .tool-card .tool-content>div:has(>span[class*=tag]){padding-bottom:14px!important;margin-bottom:0!important;row-gap:8px!important}
body .tool-card .tool-footer,body .tool-card .card-actions{margin-top:0!important}

body .tool-card .tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px!important}
body .tool-card .tool-bottom{padding-top:14px!important;margin-top:0!important}

/* one CTA at bottom: hide footer invite when page has its own */
body:has(.bp-cta) .pbn-footer-invite,body:has(.tp-cta-row) .pbn-footer-invite,body:has(.pbs-banner) .pbn-footer-invite{display:none!important}

body .pbn-meta span,body .pbn-meta a{color:#fff!important}

/* mobile drawer: single column, profile accordion under nav */
@media(max-width:1180px){
body .pbn-nav{overflow-x:hidden!important;box-sizing:border-box}
body .pbn-nav .native-menu{display:flex!important;flex-direction:column;width:100%;margin:0;padding:8px 20px;box-sizing:border-box}
body .pbn-nav .native-menu a{display:block;padding:14px 0;text-align:left}
body .pbn-nav .pbn-nav-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px;width:100%!important;max-width:100%!important;margin:0!important;padding:8px 20px 24px!important;box-sizing:border-box;border-top:1px solid rgba(22,13,43,.1)}
body .pbn-nav .account-menu{width:100%!important;max-width:100%!important;position:static!important}
body .pbn-nav .account-menu>summary{width:100%;box-sizing:border-box;justify-content:flex-start}
body .pbn-nav .account-drop{position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:8px 0 0!important;box-shadow:none!important;box-sizing:border-box}
body .pbn-nav .account-drop a{text-align:left;white-space:normal}
body .pbn-nav .pbn-add{width:100%;justify-content:center}
}

/* hide photo banners */
.pbn-ph-banner,.pbn-ph-hero{display:none!important}
.pbi-make-t{display:inline-flex;align-items:center;gap:8px}
.pbi-make-t .pbi-ic{flex:none;width:18px;height:18px}

.pbi-card.pbi-hl{outline:2px solid #7c3aed;outline-offset:4px}

/* audit-mobile */
@media(max-width:760px){.bx-table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}}
@media(max-width:760px){.pbn-footer a,footer a{display:inline-block;min-height:44px;line-height:44px}.pbn-ph-label,.bx-badge,.bx-tag{font-size:12px!important}.pbi-card .pbi-more,.tool-card .btn,.pbn-card-cta{min-height:44px;display:inline-flex;align-items:center}}
