/* Final phone layout: deliberately loaded after public and CRM themes. */
@media (max-width: 760px) {
  html,body{width:100%;max-width:100%;overflow-x:hidden}
  body{min-width:0}
  img,svg,video,canvas{max-width:100%}
  input,select,textarea{width:100%;max-width:100%;font-size:16px}
  .container,.ref-container,.crm-main,.constructor-page{width:100%;max-width:100%;min-width:0;margin-inline:auto;padding-inline:14px}
  .section{padding-block:46px}
  .page-top{padding-top:34px}
  .lead{max-width:100%}

  .site-header,.crm-header{position:relative;z-index:100;width:100%}
  .site-header .header-inner,.crm-header{padding-inline:12px}
  .site-header .header-inner{width:100%;max-width:100%;gap:8px}
  .site-header .atelier-brand{min-width:0;max-width:calc(100% - 96px)}
  .site-header .atelier-brand>img{flex:0 0 auto}
  .site-header .atelier-brand>span{min-width:0}
  .site-header .atelier-brand-wordmark{overflow:hidden;text-overflow:ellipsis}
  .site-header .header-actions{flex:0 0 auto;margin-left:auto;gap:5px}
  .site-header .menu-toggle,.crm-header .menu-toggle{display:grid;flex:0 0 auto}
  .site-nav,.crm-nav{position:absolute!important;z-index:120;left:10px!important;right:10px!important;top:calc(100% - 4px)!important;width:auto;max-height:calc(100dvh - 78px);overflow-y:auto;overscroll-behavior:contain;padding:10px 14px!important;border:1px solid var(--line);border-radius:15px;background:var(--surface);box-shadow:0 18px 55px rgba(35,27,23,.2);white-space:normal!important}
  .site-nav a,.crm-nav a,.crm-nav .link-button{display:block;width:100%;padding:12px 5px;border-bottom:1px solid var(--line);text-align:left}
  .crm-nav form{width:100%}
  .crm-header{min-height:68px;gap:10px}
  .crm-header .brand{min-width:0}

  .product-grid,.product-grid-wide,.works-grid,.works-grid-page,.shop-grid,.feature-grid,.admin-card-grid,.catalog-card-grid,.crm-shop-grid,.staff-layout,.staff-list{grid-template-columns:minmax(0,1fr)!important}
  .product-card,.work-card,.shop-card,.client-order,.panel,.catalog-product-card,.crm-shop-card,.staff-card{min-width:0;max-width:100%}
  .product-card a{grid-template-columns:1fr!important}
  .product-image{min-height:250px}
  .product-image img{height:240px;object-fit:contain}
  .product-detail,.shop-product-layout,.login-panel,.account-login-page .login-panel{grid-template-columns:minmax(0,1fr)!important;padding:14px!important}
  .product-detail-image{min-height:320px}
  .product-detail-image img{height:auto;max-height:420px;object-fit:contain}
  .shop-product-gallery,.shop-product-info,.shop-product-images{min-width:0;width:100%}
  .shop-product-images{display:grid;grid-template-columns:1fr!important;gap:10px}
  .shop-product-images img{width:100%;height:auto;max-height:72dvh;object-fit:contain}
  .shop-product-info{padding:20px 2px!important}
  .shop-product-buy{grid-template-columns:1fr!important;gap:14px}
  .shop-product-buy .button{width:100%!important}
  .work-card img{width:100%;height:auto;max-height:430px;object-fit:cover}

  .field-grid,.checkout-grid,.delivery-fields,.settings-form,.crm-filters,.crm-order-search,.order-info-grid,.order-item-summary,.client-order-grid,.account-order-grid,.color-add-row,.measurement-grid{grid-template-columns:minmax(0,1fr)!important}
  .stack-form,.settings-form,.checkout-form,.shop-order-form{min-width:0;width:100%}
  .stack-form>.button,.settings-form>.button,.checkout-form>.button,.shop-order-form>.button,.editor-actions .button,.upload-work-form>.button{width:100%}
  .editor-actions,.catalog-actions,.order-head-actions,.hero-actions,.account-toolbar,.crm-page-head,.panel-head,.crm-shop-summary,.order-estimate-panel{align-items:stretch;flex-direction:column}
  .editor-actions form,.catalog-actions form,.catalog-actions .button,.order-head-actions .button,.hero-actions .button,.account-toolbar .button{width:100%}
  .catalog-product-card{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:15px;padding:13px}
  .catalog-product-image{width:100%;height:210px;min-height:0}
  .catalog-product-body{min-height:0}
  .catalog-product-title{align-items:flex-start;flex-direction:column}
  .catalog-product-stats{grid-template-columns:minmax(0,1fr)!important}
  .catalog-product-editor{grid-column:1;min-width:0}
  .product-variant-colors{grid-template-columns:minmax(0,1fr)!important}
  .product-variant-colors>div{grid-template-columns:28px minmax(0,1fr)!important;min-width:0}
  .product-variant-colors>div input:nth-of-type(2),.product-variant-colors>div .variant-toggle{grid-column:2}
  .crm-shop-preview{height:230px}
  .shop-order-item{grid-template-columns:minmax(0,1fr)!important}
  .shop-order-item-image{width:100%;height:260px}

  .data-table,.size-table-wrap,.human-variant-table,.table-scroll,.stock-table{display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .data-table table,.size-table-wrap table,.human-variant-table table,.stock-table{min-width:620px}
  .human-variant-table{margin-inline:0!important}

  .constructor-page{padding-top:18px;padding-bottom:94px}
  .constructor-top{align-items:flex-start;flex-direction:column}
  .constructor-top h1{font-size:clamp(1.8rem,9vw,2.45rem)}
  .position-strip,.position-tabs,.surface-tabs{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .constructor-layout{display:flex!important;flex-direction:column;gap:10px;width:100%;min-width:0}
  .constructor-workspace{order:-1;width:100%;min-width:0;padding:7px}
  .constructor-sidebar,.properties-panel{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%;min-width:0;padding:14px}
  .constructor-sidebar label,.properties-panel label{min-width:0}
  .quantity-grid{grid-template-columns:minmax(0,1fr)!important}
  .canvas-wrap{width:100%;min-width:0;padding:4px}
  .canvas-toolbar{height:auto;min-height:38px;align-items:flex-start;flex-wrap:wrap;gap:6px}
  .canvas-toolbar>span{max-width:calc(100% - 76px)}
  .warning-badge{order:3;width:100%;border-radius:8px}
  .garment-stage{width:100%;max-width:100%;height:auto!important;max-height:none!important;aspect-ratio:4/4.5;overflow:hidden}
  .surface-tabs button,.position-tabs button,.icon-button{flex:0 0 auto}
  .layer-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .properties-panel.mobile-open{position:fixed!important;z-index:90;left:8px;right:8px;bottom:80px;width:auto;max-height:calc(100dvh - 98px);overflow-y:auto;overscroll-behavior:contain}
  .mobile-tool-dock{left:6px;right:6px;bottom:max(6px,env(safe-area-inset-bottom));width:auto;max-width:100%;grid-template-columns:repeat(4,minmax(0,1fr))}
  .mobile-tool-dock button{min-width:0;padding:3px;font-size:.62rem}

  dialog,.checkout-dialog,.white-dialog,.size-guide-dialog,.shop-order-dialog{width:100%!important;max-width:100%!important;max-height:96dvh!important;margin:auto 0 0!important;border-radius:20px 20px 0 0!important;overflow-y:auto!important;overscroll-behavior:contain}
  .dialog-head,.shop-order-dialog .dialog-head{position:sticky;z-index:5;top:0;padding:16px!important;background:var(--surface)}
  .dialog-head h2,.shop-order-dialog .dialog-head h2{font-size:1.45rem}
  .checkout-form,.shop-order-dialog .shop-order-form{padding:4px 16px calc(20px + env(safe-area-inset-bottom))!important;overflow:visible}
  .shop-dialog-product{grid-template-columns:58px minmax(0,1fr)!important;margin:14px 16px!important}
  .shop-dialog-product>strong{grid-column:2}
  .checkout-summary{align-items:flex-start;flex-direction:column;gap:6px}

  .account-page-heading,.client-order>header,.client-order footer,.compact-order-card>a>header,.compact-order-card>a>footer,.compact-order-main,.compact-order-main dl{align-items:flex-start;flex-direction:column}
  .account-logout{width:100%}
  .compact-order-list{grid-template-columns:minmax(0,1fr)!important;width:100%}
  .compact-order-card{width:100%;min-width:0}
  .compact-order-card>a{padding:58px 13px 14px!important}
  .compact-order-card>a>header{padding-right:0!important}
  .order-review-marker{left:10px!important;right:auto!important;top:10px!important}
  .order-review-tabs,.catalog-tabs{width:100%;overflow-x:auto;white-space:nowrap}
  .crm-order-simple,.crm-order-content,.crm-order-layout{min-width:0;width:100%;grid-template-columns:minmax(0,1fr)!important}
  .order-info-grid>div+div{padding:16px 0 0!important;border-left:0!important;border-top:1px solid var(--line)}
  .crm-page-head h1,.crm-section-title{font-size:clamp(2rem,10vw,3rem)}
  .embroidery-price-panel{width:100%;max-width:100%}

  .ref-container{width:100%;padding-inline:14px}
  .ref-hero-copy,.ref-benefits{width:100%}
  .ref-services-grid,.ref-product-list,.ref-process-row ol,.ref-work-grid{grid-template-columns:minmax(0,1fr)!important}
  .ref-services-grid article{border-right:0}
  .ref-product-list article{height:auto;min-height:250px}
  .ref-product-list img{height:180px}
  .ref-process-row{grid-template-columns:minmax(0,1fr)!important}
  .ref-work-grid a,.ref-work-grid a:last-child{grid-column:auto;height:230px}
  .ref-final-cta{height:auto;min-height:200px;padding:30px 12px}
}

@media (max-width: 390px) {
  .container,.ref-container,.crm-main,.constructor-page{padding-inline:10px}
  .site-header .atelier-brand>img{width:42px;height:42px}
  .site-header .atelier-brand-wordmark{font-size:.82rem}
  .site-header .atelier-brand small{display:none}
  .site-header .account-button{width:36px;padding:0}
  .site-header .account-button span{display:none}
  .layer-actions{grid-template-columns:minmax(0,1fr)}
  .mobile-tool-dock button{font-size:.58rem}
  .crm-page-head h1{font-size:2rem}
}

/* Home page only: compact phone composition. Desktop and inner pages are untouched. */
.home-carousel-dots{display:none}
@media (max-width: 768px) {
  .home-reference{width:100%;max-width:100%;overflow:hidden}
  .home-reference .ref-container{width:100%;max-width:620px;padding-inline:14px}
  .home-reference .ref-hero,.home-reference .ref-services,.home-reference .ref-products-section,.home-reference .ref-process-section,.home-reference .ref-works-section{height:auto;min-height:0}
  .home-reference .ref-section-inner,.home-reference .ref-products-panel,.home-reference .ref-works-panel{height:auto;min-height:0}

  .home-reference .ref-hero{padding:0 0 22px}
  .home-reference .ref-hero-inner{display:flex;flex-direction:column;height:auto;min-height:0}
  .home-reference .ref-hero-copy{width:100%;padding:28px 0 8px}
  .home-reference .ref-hero-copy h1{max-width:100%;margin:0 0 9px;font-size:clamp(1.86rem,8vw,2.55rem);line-height:1.08}
  .home-reference .ref-hero-copy>strong{margin-bottom:12px;font-size:clamp(1.08rem,5vw,1.35rem);line-height:1.15}
  .home-reference .ref-hero-copy>p{margin:0 0 18px;font-size:.82rem;line-height:1.5}
  .home-reference .ref-hero-copy>p br{display:none}
  .home-reference .ref-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
  .home-reference .ref-hero-actions .ref-button{min-height:38px;padding-inline:16px}
  .home-reference .ref-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px;width:100%;padding-top:18px}
  .home-reference .ref-benefits li{min-width:0;gap:6px}
  .home-reference .ref-benefits span{font-size:.57rem;line-height:1.35}
  .home-reference .ref-hero-art{position:relative;left:auto;right:auto;top:auto;width:calc(100% + 28px);height:310px;margin:8px -14px 0;overflow:hidden}
  .home-reference .ref-red-shape{inset:8px -24px 0}
  .home-reference .ref-hero-garments{top:5px;right:50%;width:min(500px,135vw);max-width:none;transform:translateX(51%)}
  .home-reference .ref-seal{right:12px;bottom:-5px;width:82px;height:82px}
  .home-reference .ref-seal img{width:48px}

  .home-reference .ref-services{padding:25px 0 18px}
  .home-reference .ref-services .ref-section-inner>h2{padding-top:0}
  .home-reference .ref-services-grid{grid-template-columns:1fr!important;margin-top:12px;padding:0}
  .home-reference .ref-services-grid article{display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:12px;min-height:0;padding:12px 4px;border-right:0;border-bottom:1px dashed #e9c692;text-align:left}
  .home-reference .ref-services-grid article:last-child{border-bottom:0}
  .home-reference .ref-services-grid .ref-icon-circle{grid-row:1/3;width:48px;height:48px;margin:0}
  .home-reference .ref-services-grid .ref-icon-circle svg{width:31px;height:31px}
  .home-reference .ref-services-grid h3{align-self:end;margin:0 0 3px;font-size:.72rem}
  .home-reference .ref-services-grid p{margin:0;font-size:.58rem;line-height:1.4}
  .home-reference .ref-services-grid p br{display:none}

  .home-reference .ref-products-section{padding:18px 0 22px}
  .home-reference .ref-products-panel{padding:17px 12px;border-radius:14px}
  .home-reference .ref-products-panel>h2{margin-bottom:12px;font-size:1.15rem}
  .home-reference .ref-products-layout{grid-template-columns:1fr;gap:13px}
  .home-reference .ref-product-list{display:flex!important;grid-template-columns:none!important;gap:10px;width:100%;max-width:100%;margin:0;overflow-x:auto;overflow-y:hidden;padding:0 28px 4px 0;scroll-padding-left:0;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .home-reference .ref-product-list::-webkit-scrollbar{display:none}
  .home-reference .ref-product-list article{flex:0 0 calc(100% - 28px);height:auto;min-height:0;border-radius:10px;scroll-snap-align:start;scroll-snap-stop:always}
  .home-reference .ref-product-list a{height:auto;padding:9px}
  .home-reference .ref-product-list img{width:100%;height:176px;max-height:176px;margin:0;border-radius:7px;background:#f4ede4;object-fit:contain;object-position:center}
  .home-reference .ref-product-list h3{margin:8px 2px 2px;font-size:.75rem;line-height:1.2}
  .home-reference .ref-product-list p{margin:0 2px 8px;font-size:.72rem;line-height:1.25}
  .home-reference .ref-product-list span{height:28px;margin:0;font-size:0}
  .home-reference .ref-product-list span::after{content:"Выбрать";font-size:.55rem}
  .home-reference .home-carousel-dots{display:flex;align-items:center;justify-content:center;gap:6px;min-height:16px;margin:7px 0 1px}
  .home-reference .home-carousel-dots:empty{display:none}
  .home-reference .home-carousel-dots button{width:7px;height:7px;padding:0;border:0;border-radius:999px;background:#d8bdb0;transition:width .18s,background .18s}
  .home-reference .home-carousel-dots button.active{width:20px;background:#ce3037}
  .home-reference .ref-constructor-card{height:auto;min-height:0;padding:15px;margin:0}
  .home-reference .ref-constructor-card h3{margin:0 0 6px;font-size:1rem;line-height:1.1}
  .home-reference .ref-constructor-card>p{margin:0 0 10px;font-size:.64rem;line-height:1.45}
  .home-reference .ref-constructor-card>p br{display:none}
  .home-reference .ref-constructor-card .ref-button{width:100%;min-height:34px;padding-inline:12px;font-size:.57rem}
  .home-reference .ref-constructor-card ul{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:12px}
  .home-reference .ref-constructor-card li{min-width:0;gap:4px;font-size:.8rem}
  .home-reference .ref-constructor-card li span{font-size:.45rem;line-height:1.25}
  .home-reference .ref-card-pattern{display:none}
  .home-reference .ref-more-link{margin-top:10px}

  .home-reference .ref-process-section{padding:22px 0}
  .home-reference .ref-process-section .ref-section-inner>h2{padding-top:0;font-size:1.2rem}
  .home-reference .ref-process-row{grid-template-columns:1fr;gap:10px;margin-top:12px;padding:0}
  .home-reference .ref-process-row ol{grid-template-columns:1fr!important;gap:7px}
  .home-reference .ref-process-row ol li{display:grid;grid-template-columns:28px 46px minmax(0,1fr);align-items:center;gap:9px;min-height:0;padding:7px 9px;border:1px solid #eee0d1;border-radius:10px;text-align:left}
  .home-reference .ref-process-row ol li::after{display:none}
  .home-reference .ref-process-row li>b{position:static;grid-column:1;grid-row:1;font-size:1rem;text-align:center}
  .home-reference .ref-process-row .ref-icon-circle{grid-column:2;grid-row:1;width:44px;height:44px;margin:0}
  .home-reference .ref-process-row .ref-icon-circle svg{width:29px;height:29px}
  .home-reference .ref-process-row li>p{grid-column:3;grid-row:1;margin:0;padding:0;font-size:.65rem;line-height:1.35}
  .home-reference .ref-process-row li>p br{display:none}
  .home-reference .ref-help-card{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;height:auto;min-height:0;padding:11px 13px;column-gap:12px}
  .home-reference .ref-help-card h3{margin-bottom:3px;font-size:.68rem}
  .home-reference .ref-help-card p{margin-bottom:3px;font-size:.53rem;line-height:1.35}
  .home-reference .ref-help-card>img{display:block;grid-column:1;width:40px;height:55px;margin:0;place-self:center;object-fit:contain;object-position:center;transform:rotate(-18deg);transform-origin:center center}
  .home-reference .ref-help-card>div{grid-column:2;min-width:0;align-self:center}

  .home-reference .ref-works-section{padding:18px 0 22px}
  .home-reference .ref-works-panel{padding:15px 11px 12px}
  .home-reference .ref-works-panel>h2{margin-bottom:10px;font-size:1.18rem}
  .home-reference .ref-work-grid{display:flex!important;grid-template-columns:none!important;gap:10px;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:0 28px 3px 0;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .home-reference .ref-work-grid::-webkit-scrollbar{display:none}
  .home-reference .ref-work-grid a,.home-reference .ref-work-grid a:last-child{flex:0 0 calc(100% - 28px);grid-column:auto;width:auto;height:auto;aspect-ratio:4/3;border-radius:8px;scroll-snap-align:start;scroll-snap-stop:always}
  .home-reference .ref-work-grid img{width:100%;height:100%;object-fit:cover;object-position:center}
  .home-reference .ref-works-panel>.home-carousel-dots{margin-top:7px}
  .home-reference .ref-work-more{margin-top:5px}

  .home-reference .home-faq{padding:28px 0}
  .home-reference .home-faq h2{margin:0 0 13px;font-size:1.42rem}
  .home-reference .home-faq .faq-accordion{gap:6px}
  .home-reference .home-faq .faq-accordion details{border-radius:11px}
  .home-reference .home-faq .faq-accordion summary{gap:10px;padding:11px 13px;font-size:.78rem;line-height:1.3}
  .home-reference .home-faq .faq-accordion summary span{font-size:1.15rem}
  .home-reference .home-faq .faq-accordion details>div{padding:0 13px 12px}
  .home-reference .home-faq .faq-accordion p{font-size:.72rem;line-height:1.5}
}

@media (max-width: 430px) {
  .home-reference .ref-hero-actions{display:grid}
  .home-reference .ref-hero-actions .ref-button{width:100%}
  .home-reference .ref-hero-art{height:285px}
  .home-reference .ref-hero-garments{width:475px}
  .home-reference .ref-constructor-card ul{grid-template-columns:1fr}
  .home-reference .ref-constructor-card li span br{display:none}
}

/* Header logo mark base dimensions; visual 1.4x scale is defined in theme-v2.css. */
@media (max-width: 768px) {
  .public-body .site-header .atelier-brand>img{width:50px;height:50px}
}
@media (max-width: 430px) {
  .public-body .site-header .atelier-brand>img{width:48px;height:48px}
}

/* Home hero: dedicated compact phone composition. */
@media (max-width: 768px) {
  .public-body .home-reference .ref-hero{min-height:0;padding:0 0 12px}
  .public-body .home-reference .ref-hero-inner{display:flex;flex-direction:column;height:auto;min-height:0;gap:0}
  .public-body .home-reference .ref-hero-copy{width:100%;padding:18px 0 0}
  .public-body .home-reference .ref-hero-copy h1{max-width:18ch;margin:0 0 7px;font-size:clamp(1.62rem,7vw,2.12rem);line-height:1.04;letter-spacing:.012em;text-wrap:balance}
  .public-body .home-reference .ref-hero-copy h1 br{display:none}
  .public-body .home-reference .ref-hero-copy>strong{margin-bottom:8px;font-size:clamp(1rem,4.6vw,1.22rem);line-height:1.12}
  .public-body .home-reference .ref-hero-copy>p{max-width:38em;margin:0 0 12px;font-size:.76rem;line-height:1.4}
  .public-body .home-reference .ref-hero-actions{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:7px;width:100%}
  .public-body .home-reference .ref-hero-actions .ref-button{width:100%;min-height:34px;padding:0 9px;font-size:.54rem}
  .public-body .home-reference .ref-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 9px;width:100%;padding-top:12px}
  .public-body .home-reference .ref-benefits li{align-items:center;gap:6px;min-width:0}
  .public-body .home-reference .ref-benefits i{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px}
  .public-body .home-reference .ref-benefits .ref-ui-icon{width:23px;height:23px}
  .public-body .home-reference .ref-benefits span{font-size:.55rem;line-height:1.28}
  .public-body .home-reference .ref-hero-art{position:relative;left:auto;right:auto;top:auto;width:calc(100% + 28px);height:218px;margin:-1px -14px 0;overflow:hidden}
  .public-body .home-reference .ref-red-shape{inset:5px -22px 0}
  .public-body .home-reference .ref-hero-garments{top:-4px;right:50%;width:min(410px,118vw);max-width:none;transform:translateX(51%)}
  .public-body .home-reference .ref-seal{right:12px;bottom:-8px;width:74px;height:74px}
  .public-body .home-reference .ref-seal img{width:43px;height:43px}
}

@media (max-width: 390px) {
  .public-body .home-reference .ref-hero-copy{padding-top:15px}
  .public-body .home-reference .ref-hero-copy h1{font-size:clamp(1.5rem,7.2vw,1.78rem)}
  .public-body .home-reference .ref-hero-actions .ref-button{padding-inline:7px;font-size:.5rem}
  .public-body .home-reference .ref-hero-art{height:202px}
  .public-body .home-reference .ref-hero-garments{width:385px}
}

/* Mobile home reference composition 2.11.13. */
.home-reference .ref-hero-title-mobile,.home-reference .ref-benefits-mobile{display:none}
@media (max-width: 768px) {
  .public-body:has(.home-reference) .site-header{height:84px;border-bottom:1px solid #eadfd3;background:#fcf8f1;backdrop-filter:none}
  .public-body:has(.home-reference) .site-header .header-inner{width:100%;height:84px;padding-inline:18px;gap:10px}
  .public-body:has(.home-reference) .site-header .atelier-brand{min-width:0;max-width:none;gap:7px}
  .public-body:has(.home-reference) .site-header .atelier-brand>img{width:46px;height:46px;transform:translateX(-2px) scale(1.4)}
  .public-body:has(.home-reference) .site-header .atelier-brand-lockup{gap:4px}
  .public-body:has(.home-reference) .site-header .brand-wordmark-frame{width:130px;height:24px}
  .public-body:has(.home-reference) .site-header .brand-wordmark-frame img{left:-65px;top:-22px;width:260px}
  .public-body:has(.home-reference) .site-header .atelier-brand small{display:block;font-size:.58rem;letter-spacing:.09em;white-space:nowrap}
  .public-body:has(.home-reference) .site-header .header-actions{margin-left:auto;gap:9px}
  .public-body:has(.home-reference) .site-header .header-cart{display:grid;width:32px;height:42px}
  .public-body:has(.home-reference) .site-header .header-cart svg{width:28px}
  .public-body:has(.home-reference) .site-header .account-button,.public-body:has(.home-reference) .site-header .menu-toggle{width:46px;height:46px;padding:0;border:1px solid #e3d5c6;border-radius:50%;background:#fffaf3}
  .public-body:has(.home-reference) .site-header .account-button{display:grid}
  .public-body:has(.home-reference) .site-header .account-button svg{width:21px}
  .public-body:has(.home-reference) .site-header .menu-toggle{display:grid;gap:5px}
  .public-body:has(.home-reference) .site-header .menu-toggle span{width:22px;height:2px}
  .public-body:has(.home-reference) .site-header .site-nav{top:78px!important}

  .public-body .home-reference .ref-container{width:100%;max-width:620px;padding-inline:14px}
  .public-body .home-reference .ref-hero{position:relative;min-height:0;padding:0;overflow:hidden}
  .public-body .home-reference .ref-hero:after{display:none}
  .public-body .home-reference .ref-hero-inner{position:relative;display:flex;flex-direction:column;height:auto;min-height:0;gap:0}
  .public-body .home-reference .ref-hero-copy{position:relative;z-index:5;width:100%;height:clamp(404px,94vw,440px);padding:32px 0 0}
  .public-body .home-reference .ref-hero-copy h1{max-width:310px;margin:0 0 18px;font-size:clamp(2.05rem,7.8vw,2.34rem);line-height:1.02;letter-spacing:.005em;text-wrap:auto}
  .public-body .home-reference .ref-hero-title-desktop{display:none}
  .public-body .home-reference .ref-hero-title-mobile{display:inline}
  .public-body .home-reference .ref-hero-copy>strong{margin:0 0 17px;color:#d92e35;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:clamp(.9rem,3.2vw,1rem);font-weight:800;line-height:1.15;letter-spacing:0}
  .public-body .home-reference .ref-hero-copy>p{max-width:205px;margin:0 0 21px;color:#3a2b26;font-size:.78rem;line-height:1.55}
  .public-body .home-reference .ref-hero-copy>p br{display:none}
  .public-body .home-reference .ref-hero-actions{position:relative;top:18px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:clamp(172px,46vw,210px)}
  .public-body .home-reference .ref-hero-actions .ref-button{position:relative;width:100%;min-height:43px;padding:0 31px 0 14px;border-radius:10px;font-size:.57rem;letter-spacing:.025em}
  .public-body .home-reference .ref-hero-actions .ref-button:after{content:"→";position:absolute;right:13px;font-size:1.15rem;font-weight:400;line-height:1}
  .public-body .home-reference .ref-hero-actions .ref-button span{display:none}
  .public-body .home-reference .ref-hero-actions .ref-button-primary{background:linear-gradient(135deg,#d9343a,#cf272f);box-shadow:0 8px 18px rgba(190,33,39,.13)}
  .public-body .home-reference .ref-hero-actions .ref-button-outline{border:1px solid #dd3d43;background:rgba(255,250,243,.88);color:#30201b}
  .public-body .home-reference .ref-hero-copy>.ref-benefits{display:none}
  .public-body .home-reference .ref-hero-art{position:absolute;z-index:2;inset:0 0 auto;width:100%;height:clamp(404px,94vw,440px);margin:0;overflow:hidden;pointer-events:none}
  .public-body .home-reference .ref-red-shape{inset:0 -24px 0 46%;background-position:center 40%;clip-path:polygon(29% 0,100% 0,100% 100%,0 100%,29% 80%,5% 57%,19% 24%)}
  .public-body .home-reference .ref-hero-garments{top:82px;right:-20%;width:119vw;min-width:430px;max-width:560px;transform:none}
  .public-body .home-reference .ref-seal{display:none}
  .public-body .home-reference .ref-benefits-mobile{position:relative;z-index:8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;width:100%;margin:-1px 0 0;padding:0;border:1px solid rgba(226,213,199,.72);border-radius:24px;background:rgba(255,251,245,.97);box-shadow:0 15px 34px rgba(86,55,42,.08);overflow:hidden}
  .public-body .home-reference .ref-benefits-mobile li{display:flex;align-items:center;gap:13px;min-height:82px;padding:15px 17px}
  .public-body .home-reference .ref-benefits-mobile li:nth-child(odd){border-right:1px solid #eee3d8}
  .public-body .home-reference .ref-benefits-mobile li:nth-child(-n+2){border-bottom:1px solid #eee3d8}
  .public-body .home-reference .ref-benefits-mobile i{display:grid;place-items:center;flex:0 0 43px;width:43px;height:43px;border-radius:50%;background:#fbf3e9}
  .public-body .home-reference .ref-benefits-mobile .ref-ui-icon{width:29px;height:29px}
  .public-body .home-reference .ref-benefits-mobile span{color:#34251f;font-size:.68rem;line-height:1.45}

  .public-body .home-reference .ref-services{padding:27px 0 18px;background-position:center top}
  .public-body .home-reference .ref-services .ref-section-inner>h2{display:flex;align-items:center;justify-content:center;gap:13px;margin:0 0 18px;padding:0;font-size:clamp(1.72rem,7vw,2rem);line-height:1.05;white-space:nowrap}
  .public-body .home-reference .ref-services .ref-section-inner>h2:before,.public-body .home-reference .ref-services .ref-section-inner>h2:after{content:"";width:55px;border-top:1px solid #e25759}
  .public-body .home-reference .ref-services-grid{display:grid;grid-template-columns:1fr!important;gap:10px;margin:0;padding:0}
  .public-body .home-reference .ref-services-grid article{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) 28px;grid-template-rows:auto auto;column-gap:14px;min-height:110px;padding:17px 15px;border:1px solid #eadfd3!important;border-radius:20px;background:rgba(255,251,245,.9);text-align:left}
  .public-body .home-reference .ref-services-grid article:after{content:"→";grid-column:3;grid-row:1/3;align-self:center;color:#37251f;font-size:1.7rem;font-weight:300}
  .public-body .home-reference .ref-services-grid .ref-icon-circle{grid-column:1;grid-row:1/3;align-self:center;width:54px;height:54px;margin:0}
  .public-body .home-reference .ref-services-grid .ref-icon-circle svg{width:34px;height:34px}
  .public-body .home-reference .ref-services-grid h3{grid-column:2;grid-row:1;align-self:end;margin:0 0 4px;font-size:1rem;line-height:1.05}
  .public-body .home-reference .ref-services-grid p{grid-column:2;grid-row:2;margin:0;color:#3f312b;font-size:.7rem;line-height:1.45}
  .public-body .home-reference .ref-services-grid p br{display:none}
}

@media (max-width: 390px) {
  .public-body:has(.home-reference) .site-header .header-inner{padding-inline:11px;gap:7px}
  .public-body:has(.home-reference) .site-header .atelier-brand>img{width:42px;height:42px}
  .public-body:has(.home-reference) .site-header .brand-wordmark-frame{width:112px;height:21px}
  .public-body:has(.home-reference) .site-header .brand-wordmark-frame img{left:-56px;top:-19px;width:224px}
  .public-body:has(.home-reference) .site-header .atelier-brand small{font-size:.49rem}
  .public-body:has(.home-reference) .site-header .header-actions{gap:6px}
  .public-body:has(.home-reference) .site-header .header-cart{width:29px}
  .public-body:has(.home-reference) .site-header .header-cart svg{width:25px}
  .public-body:has(.home-reference) .site-header .account-button,.public-body:has(.home-reference) .site-header .menu-toggle{width:42px;height:42px}
  .public-body .home-reference .ref-hero-copy{padding-top:26px}
  .public-body .home-reference .ref-hero-copy h1{margin-bottom:15px;font-size:clamp(1.94rem,8.4vw,2.08rem)}
  .public-body .home-reference .ref-hero-copy>strong{margin-bottom:14px;font-size:.84rem}
  .public-body .home-reference .ref-hero-copy>p{max-width:185px;margin-bottom:17px;font-size:.72rem}
  .public-body .home-reference .ref-hero-actions{width:172px;gap:8px}
  .public-body .home-reference .ref-hero-actions .ref-button{min-height:40px;padding-left:9px;font-size:.51rem}
  .public-body .home-reference .ref-hero-garments{top:76px;right:-21%}
  .public-body .home-reference .ref-benefits-mobile li{gap:9px;min-height:76px;padding:12px 10px}
  .public-body .home-reference .ref-benefits-mobile i{flex-basis:37px;width:37px;height:37px}
  .public-body .home-reference .ref-benefits-mobile .ref-ui-icon{width:25px;height:25px}
  .public-body .home-reference .ref-benefits-mobile span{font-size:.61rem}
  .public-body .home-reference .ref-services .ref-section-inner>h2{gap:9px;font-size:1.65rem}
  .public-body .home-reference .ref-services .ref-section-inner>h2:before,.public-body .home-reference .ref-services .ref-section-inner>h2:after{width:38px}
}

/* Point mobile polish 2.11.14. */
@media (max-width: 768px) {
  .public-body .home-reference .ref-hero-title-mobile{display:block}
  .public-body .home-reference .ref-hero-title-mobile>span{display:block;white-space:nowrap;word-spacing:.06em}
  .public-body .home-reference .ref-hero-copy h1{max-width:278px;font-size:clamp(1.64rem,6.72vw,1.89rem);line-height:1.075}
  .public-body .home-reference .ref-hero-copy>p{max-width:178px;font-size:.72rem;line-height:1.43}
  .public-body .home-reference .ref-hero-garments{top:87px;right:-24%;width:108vw;min-width:400px;max-width:510px}
  .public-body .home-reference .ref-product-image-shell{width:100%;height:176px;margin:0;border-radius:7px}
  .public-body .home-reference .ref-product-image-shell img{width:100%;height:100%;margin:0;object-fit:contain;object-position:center}
  .public-body .home-reference .ref-work-grid a,.public-body .home-reference .ref-work-grid a:last-child{flex:0 0 min(78vw,300px);width:auto;height:auto;aspect-ratio:1;border-radius:10px}
  .public-body .home-reference .ref-work-grid img{width:100%;height:100%;object-fit:cover;object-position:center}

  .public-body .constructor-page{padding-bottom:116px}
  .public-body .mobile-tool-dock{height:88px;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:24px minmax(0,1fr);gap:2px 3px;padding:5px 7px 6px}
  .public-body .mobile-tool-dock .mobile-dock-estimate{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;color:#f4ded2;font-size:.58rem;line-height:1;white-space:nowrap}
  .public-body .mobile-tool-dock .mobile-dock-estimate small{font-size:.5rem;letter-spacing:.03em;text-transform:uppercase;opacity:.78}
  .public-body .mobile-tool-dock .mobile-dock-estimate strong{color:#fff;font-size:.68rem}
  .public-body .mobile-tool-dock button{grid-row:2;min-height:0}
  .public-body .properties-panel.mobile-open{bottom:104px}
  .public-body .design-delete-handle{display:grid}

  .public-body .site-footer{padding:24px 0 12px}
  .public-body .site-footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 18px}
  .public-body .site-footer .footer-brand{grid-column:1/-1;display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:8px 13px}
  .public-body .site-footer .footer-brand .atelier-brand{grid-column:1;gap:5px}
  .public-body .site-footer .footer-brand .atelier-brand>img{width:44px;height:44px}
  .public-body .site-footer .footer-brand .brand-wordmark-frame{width:104px;height:19px}
  .public-body .site-footer .footer-brand p{grid-column:2;max-width:none;margin:0;font-size:.65rem;line-height:1.38}
  .public-body .site-footer>.footer-grid>div:not(.footer-brand){gap:5px}
  .public-body .site-footer>.footer-grid>div:last-child{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:10px}
  .public-body .site-footer>.footer-grid>div:last-child strong{grid-column:1/-1}
  .public-body .site-footer strong{margin:0 0 2px;font-size:.61rem}
  .public-body .site-footer a{font-size:.68rem;line-height:1.28}
  .public-body .site-footer .footer-bottom{display:flex;gap:12px;margin-top:16px;padding-top:10px;font-size:.57rem}
}

@media (max-width: 390px) {
  .public-body .home-reference .ref-hero-copy h1{max-width:250px;font-size:clamp(1.52rem,7vw,1.72rem);line-height:1.08}
  .public-body .home-reference .ref-hero-copy>p{max-width:164px;font-size:.67rem;line-height:1.42}
  .public-body .home-reference .ref-hero-garments{right:-26%;width:105vw;min-width:380px}
  .public-body .site-footer .footer-grid{gap:13px 14px}
  .public-body .site-footer a{font-size:.62rem}
  .public-body .site-footer .footer-brand p{font-size:.6rem}
}

/* Match the inner-page mobile header spacing to the home page header. */
@media (max-width: 768px) {
  .public-body:not(:has(.home-reference)) .site-header{height:84px;border-bottom:1px solid #eadfd3;background:#fcf8f1;backdrop-filter:none}
  .public-body:not(:has(.home-reference)) .site-header .header-inner{width:100%;height:84px;padding-inline:18px;gap:10px}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand{min-width:0;max-width:none;gap:7px}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand>img{width:46px;height:46px;transform:translateX(-2px) scale(1.4)}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand-lockup{gap:4px}
  .public-body:not(:has(.home-reference)) .site-header .brand-wordmark-frame{width:130px;height:24px}
  .public-body:not(:has(.home-reference)) .site-header .brand-wordmark-frame img{left:-65px;top:-22px;width:260px}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand small{display:block;font-size:.58rem;letter-spacing:.09em;white-space:nowrap}
  .public-body:not(:has(.home-reference)) .site-header .header-actions{margin-left:auto;gap:9px}
  .public-body:not(:has(.home-reference)) .site-header .header-cart{display:grid;width:32px;height:42px}
  .public-body:not(:has(.home-reference)) .site-header .header-cart svg{width:28px}
  .public-body:not(:has(.home-reference)) .site-header .account-button,.public-body:not(:has(.home-reference)) .site-header .menu-toggle{width:46px;height:46px;padding:0;border:1px solid #e3d5c6;border-radius:50%;background:#fffaf3}
  .public-body:not(:has(.home-reference)) .site-header .account-button{display:grid}
  .public-body:not(:has(.home-reference)) .site-header .account-button svg{width:21px}
  .public-body:not(:has(.home-reference)) .site-header .menu-toggle{display:grid;gap:5px}
  .public-body:not(:has(.home-reference)) .site-header .menu-toggle span{width:22px;height:2px}
  .public-body:not(:has(.home-reference)) .site-header .site-nav{top:78px!important}
}
@media (max-width: 390px) {
  .public-body:not(:has(.home-reference)) .site-header .header-inner{padding-inline:11px;gap:7px}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand>img{width:42px;height:42px}
  .public-body:not(:has(.home-reference)) .site-header .brand-wordmark-frame{width:112px;height:21px}
  .public-body:not(:has(.home-reference)) .site-header .brand-wordmark-frame img{left:-56px;top:-19px;width:224px}
  .public-body:not(:has(.home-reference)) .site-header .atelier-brand small{font-size:.49rem}
  .public-body:not(:has(.home-reference)) .site-header .header-actions{gap:6px}
  .public-body:not(:has(.home-reference)) .site-header .header-cart{width:29px}
  .public-body:not(:has(.home-reference)) .site-header .header-cart svg{width:25px}
  .public-body:not(:has(.home-reference)) .site-header .account-button,.public-body:not(:has(.home-reference)) .site-header .menu-toggle{width:42px;height:42px}
}
