/* FONON V13 — compact category collections, no alteration to persisted data */
.stats-grid strong bdi{unicode-bidi:isolate;direction:ltr}
.v13-category-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;overflow:visible}
.v13-category-grid .v13-category-card{min-width:0;max-width:none;width:100%;overflow:hidden;display:block;flex:none;box-shadow:0 10px 26px rgba(33,24,31,.06);border:1px solid #e9dfe5;border-radius:19px;background:#fff;color:var(--ink)}
.v13-category-card .portfolio-media{aspect-ratio:1.45/1!important;min-height:0!important;border-radius:0!important;background:#fff;overflow:hidden}
.v13-category-card .portfolio-media img{object-fit:contain!important;width:100%;height:100%;padding:10px}
.v13-category-card .portfolio-detail{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:13px 15px!important;min-height:54px}
.v13-category-card .portfolio-detail h3{font-size:clamp(13px,1.18vw,16px)!important;line-height:1.5;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
.v13-category-card .portfolio-detail span{color:#c11856;font-size:17px;margin:0;flex:none}
.v13-category-card:hover{transform:translateY(-4px);box-shadow:0 15px 33px rgba(47,21,37,.12)}
.v13-page-hero{padding:70px 0!important}.v13-page-hero p{margin:0;color:#635962}.v13-back-link{display:inline-flex;align-items:center;margin-top:20px;color:#c11856;font-weight:800}
.v13-catalog-section{padding:46px 0 80px!important}
.v13-item-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.v13-item-card{background:#fff;border:1px solid #e9dfe5;border-radius:20px;overflow:hidden;min-width:0;box-shadow:0 10px 25px rgba(20,20,20,.05)}
.v13-item-image{background:#fff;aspect-ratio:1.25/1;overflow:hidden}.v13-item-image img{width:100%;height:100%;object-fit:contain;padding:13px}
.v13-item-card h2,.v13-item-card h3{font-size:17px;line-height:1.6;padding:17px 16px;margin:0;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v13-deep-overview{background:#f3f6fd}.v13-deep-overview-inner{display:grid;grid-template-columns:1fr 1fr;gap:35px;align-items:center}
.v13-deep-overview h2{font-size:clamp(25px,3.3vw,44px)!important;line-height:1.35}.v13-deep-overview p{margin:8px 0 22px;color:#384964!important}
.v13-deep-catalog{background:#fff}.v13-deep-section-top{margin-bottom:25px}.v13-deep-section-top h2{color:#193c7d}
.v13-deep-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.v13-deep-category-card{position:relative;display:block;border:1px solid #dce7f5;border-radius:18px;overflow:hidden;background:#fff;transition:transform .2s,box-shadow .2s;box-shadow:0 10px 25px rgba(28,60,112,.045)}
.v13-deep-category-card:hover{transform:translateY(-4px);box-shadow:0 17px 30px rgba(28,60,112,.13)}
.v13-deep-category-photo{aspect-ratio:1.22/1;background:#f9fbff}.v13-deep-category-photo img{width:100%;height:100%;object-fit:contain;padding:12px}
.v13-deep-category-card h3{font-size:16px;margin:0;padding:12px 14px 16px;color:#183f84;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v13-deep-category-card>span{position:absolute;bottom:10px;left:16px;color:#2852a0}
.v13-deep-item{border-color:#d9e5f4}
.v13-deep-item h3{color:#1b4288}
.v13-deep-catalog .section-label,.v13-deep-catalog .v13-back-link,.v13-deep-overview .section-label{color:#2852a0}
/* Shorter and clearer Deep contact presentation */
.deep-contact-section .deep-contact-layout{gap:24px}.deep-contact-section .deep-contact-layout h2{font-size:clamp(24px,2.8vw,36px)}
/* The compact cards must win over V10 mobile carousel styles */
@media(max-width:980px){.v13-category-grid,.v13-deep-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.v13-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 .section.work .portfolio-grid.v13-category-grid,.v13-category-grid,.v13-deep-category-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;overflow:visible!important;scroll-snap-type:none!important;padding:0!important}
 .section.work .portfolio-card.v13-category-card,.v13-category-card{width:100%!important;min-width:0!important;flex:none!important;scroll-snap-align:none!important;max-width:none!important;height:auto!important}
 .v13-category-card .portfolio-media{aspect-ratio:1.15/1!important;min-height:0!important}.v13-category-card .portfolio-media img{padding:7px}
 .v13-category-card .portfolio-detail{padding:10px!important;min-height:46px}.v13-category-card .portfolio-detail h3{font-size:12px!important}
 .v13-page-hero{padding:45px 0!important}.v13-catalog-section{padding:26px 0 54px!important}
 .v13-item-grid{gap:11px}.v13-item-card h2,.v13-item-card h3{font-size:12px;padding:11px}
 .v13-item-image{aspect-ratio:1/1}.v13-item-image img{padding:5px}
 .v13-deep-category-card h3{font-size:12px;padding:11px}.v13-deep-category-card>span{bottom:8px;left:10px;font-size:13px}
 .v13-deep-category-photo{aspect-ratio:1/1}.v13-deep-category-photo img{padding:7px}
 .v13-deep-overview-inner{grid-template-columns:1fr;gap:18px}
 .v13-deep-overview .deep-image{max-width:100%}.v13-deep-overview p{font-size:14px!important}
}
@media(prefers-reduced-motion:reduce){.v13-category-card,.v13-deep-category-card{transition:none}}
