/* V18: stable RTL layout, image treatment, admin gallery and responsive polish. */
:root{--v18-rose:#c11856;--v18-ink:#30232c}
html,body{max-width:100%;overflow-x:clip}
body{overflow-wrap:break-word}
.wrap, .inner-main, .hero-content, .hero-showcase, .v13-item-card, .v13-category-card, .v17-service-card{min-width:0}
.nav,.hero-inner,.section,.footer-main{max-width:100%}
img{max-width:100%;height:auto}
.v18-stat-number{direction:ltr!important;unicode-bidi:isolate;display:inline-flex!important;flex-direction:row;align-items:baseline;white-space:nowrap;gap:.08em}
.v18-stat-number .v16-stat-suffix{unicode-bidi:isolate;direction:rtl}
.v16-stat-preview output{direction:ltr!important;flex-direction:row!important}
.v16-stat-edit select:disabled,.v16-stat-edit input[readonly]{color:#66525f;opacity:1}
.v13-item-card .v13-item-image img,.v13-category-card .portfolio-media img,.v13-deep-category-photo img{object-fit:contain!important;object-position:center}
.v18-project-card{display:flex;flex-direction:column}
.v18-project-card h2{white-space:normal;overflow:visible;text-overflow:clip;padding-bottom:5px}
.v18-gallery-count{font-size:11px;color:#b01a52;font-weight:700;margin:auto 16px 15px}
.v18-product-cta{display:inline-flex;color:#2852a0;font-size:13px;font-weight:800;padding:0 16px 20px;line-height:1.8;min-height:35px;align-items:center}
.v18-product-cta:hover{text-decoration:underline;text-underline-offset:4px}
.v18-gallery-editor{background:#fff9fb;border:1px solid #f0dbe4;border-radius:15px;padding:15px;display:grid;gap:8px}
.v18-gallery-editor label{font-size:13px;font-weight:700}
.v18-gallery-editor small{color:#866d7b;font-size:11px}
.v18-gallery-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:5px}
.v18-gallery-choice{border:1px solid #eadce3;background:white;border-radius:10px;padding:6px;cursor:pointer;display:flex;flex-direction:column;gap:4px;align-items:center;max-width:92px;color:#af2056}
.v18-gallery-choice:hover,.v18-gallery-choice:focus-visible{border-color:#c11856;background:#fff3f8}
.v18-gallery-choice img{width:72px;height:56px;object-fit:contain;border-radius:6px}
.v18-gallery-choice span{font-size:9px;font-weight:800}
.save-status.save-saving{background:#fff6e8;color:#805317}
.save-status.save-error{background:#fff0f1;color:#982a39;outline:2px solid #ffc9d1}
.save-status.save-ok{background:#eafbf1;color:#136137}
@media(max-width:980px){
 .nav{gap:12px}
 .v13-item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
 .wrap{width:calc(100% - 30px)!important;max-width:100%}
 .hero-content h1{overflow-wrap:anywhere;max-width:100%}
 .hero-inner{max-width:100%;min-width:0;gap:20px}
 .hero-showcase{width:100%;min-width:0}
 .inner-main .section{padding-top:36px;padding-bottom:42px}
 .v17-service-card{overflow-wrap:break-word}
 .v13-item-grid{gap:10px}
 .v13-item-card h2,.v13-item-card h3{font-size:12px;line-height:1.55;padding:10px 10px 6px;white-space:normal;overflow:visible}
 .v13-catalog-section{padding:30px 0 48px!important}
 .v13-category-card .portfolio-detail{min-height:55px}
 .v13-category-card .portfolio-detail h3{font-size:12px!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
 .contact-grid,.two-col,.deep-home-layout,.deep-contact-layout{gap:20px}
 .quote-box,.info-card{max-width:100%}
 .v18-stat-number{font-size:clamp(21px,6.6vw,29px)!important}
 .v18-gallery-count{font-size:10px;margin:0 9px 10px}
 .v18-product-cta{font-size:11px;padding:0 10px 12px}
}
@media(max-width:370px){.v17-services-grid{gap:8px}.v17-service-card{padding:12px 9px}}
@media(prefers-reduced-motion:reduce){.v17-service-card,.v13-category-card,.v17-lightbox-open img{transition:none}}
