/* Nana's own responsive layout, shared by mobile browsers and the application. */
.shell-header{padding-top:var(--sabsus-safe-top,env(safe-area-inset-top,0px))}
body{padding-inline:var(--sabsus-safe-left,env(safe-area-inset-left,0px)) var(--sabsus-safe-right,env(safe-area-inset-right,0px))}
.site-footer{padding-bottom:calc(24px + var(--sabsus-safe-bottom,env(safe-area-inset-bottom,0px)))}
.sabsus-account-dialog{font-family:Arial,Helvetica,sans-serif;border-radius:4px}
.sabsus-account-dialog .sabsus-account-submit{background:#111;border-radius:3px}
@media(max-width:760px){
  .shell-header .main-nav:has(.sabsus-account-button){padding:8px 16px;gap:4px 12px;min-height:104px}
  .shell-header .main-nav>.menu-drawer>summary{min-width:36px;min-height:40px;display:flex;flex-direction:column;justify-content:center}
  .shell-header .header-actions{gap:8px}
  .shell-header .header-actions .header-search,.shell-header .saved-button,.shell-header .cart-button{min-height:40px;min-width:36px}
  .shell-header .header-actions .sabsus-account-button{min-height:40px;padding-inline:12px;font-size:14px}
  .shell-header .language-picker{min-height:40px}
  .shell-header .language-picker select{font-size:16px}
  .menu-drawer[open]{max-height:calc(100dvh - var(--sabsus-safe-top,0px) - var(--sabsus-safe-bottom,0px));overflow-y:auto;overscroll-behavior:contain}
  .main-menu a{min-height:44px;display:flex;align-items:center}
  .catalog-breadcrumbs{padding:12px 16px 0}
  .catalog-hero{margin:0;padding:16px;min-height:0;gap:12px}
  .catalog-hero-copy h1{font-size:25px;line-height:1.15;margin:0 0 8px}
  .catalog-promo-panel{padding:0;min-height:0}
  .catalog-search{margin:0}
  .catalog-search label{display:block;font-size:13px;margin-bottom:6px}
  .catalog-search>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0}
  .catalog-search input{width:100%;min-width:0;min-height:46px;font-size:16px}
  .catalog-search button{min-height:46px;width:auto;padding-inline:18px}
  .catalog-navigation{margin:0;padding:0 16px}
  .catalog-category-mobile>summary{min-height:46px;padding:12px 0;box-sizing:border-box}
  .catalog-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 16px;margin:0}
  .catalog-controls>label{grid-column:1/-1;min-width:0;justify-content:space-between;padding:6px 10px;min-height:44px;font-size:14px}
  .catalog-controls select{min-width:0;max-width:62%;font-size:16px;text-align:end}
  .catalog-controls>button{min-width:0;min-height:44px;font-size:14px}
  .catalog-controls>[data-catalog-filter]{grid-column:1/-1}
  .catalog-controls>[data-catalog-count]{grid-column:1/-1;margin:4px 0 0}
  .catalog-intro{margin:0;padding:12px 16px}
  .catalog-page .product-grid{gap:20px 10px}
  .sabsus-account-dialog{width:calc(100% - 32px);max-width:400px;box-sizing:border-box;padding:22px}
  .sabsus-account-dialog input{font-size:16px}
}
@media(max-width:760px){.menu-drawer[open]{overflow:visible}.menu-drawer[open] .main-menu{position:fixed;max-width:none;inset-inline:0;top:calc(54px + var(--sabsus-safe-top,env(safe-area-inset-top,0px)));bottom:calc(74px + var(--sabsus-safe-bottom,env(safe-area-inset-bottom,0px)));width:100%;box-sizing:border-box;justify-self:stretch;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding:12px 24px;background:#fff;color:#111;box-shadow:none}.menu-drawer[open] .main-menu a{min-height:48px;padding:12px 0;box-sizing:border-box;color:#111}.menu-drawer[open] .drawer-bottom{position:fixed;inset-inline:0;top:auto;bottom:0;width:auto;min-height:74px;padding:16px 24px calc(16px + var(--sabsus-safe-bottom,env(safe-area-inset-bottom,0px)));box-sizing:border-box;background:#fff;color:#111;border-top:1px solid #ddd}.menu-drawer[open] .drawer-bottom a{color:#111}}

/* Mobile audit 2026-10-26: keep controls usable without changing navigation. */
@media(max-width:760px){
  html[lang="ru"] .home-page .hero-actions .button{min-width:0;white-space:normal;font-size:12px;min-height:48px;padding:10px 8px;overflow-wrap:anywhere}
  .home-page .hero-actions{max-width:100%;min-width:0;flex-wrap:wrap}
  .home-page .hero-actions .button{max-width:100%}
  .save-product{width:44px;height:44px;min-width:44px;min-height:44px;font-size:24px}
  .nana-gallery .nana-gallery-arrow{width:44px;height:48px}
  .shell-header .header-search,.shell-header .saved-button,.shell-header .cart-button{min-width:44px;min-height:44px}
  .shell-header .main-nav>.menu-drawer>summary{min-width:44px;min-height:44px}
  .shell-header .header-actions{gap:4px}
  .shell-header .header-actions .sabsus-account-button{min-height:44px;padding-inline:8px}
  .shell-header .language-picker{min-height:44px}
  .shell-header .language-picker select{min-width:0;max-width:100%;padding-inline:4px}
  .lead-dialog .lead-form input:not([type=checkbox]),.lead-dialog .lead-form textarea,
  .nana-checkout form input:not([type=checkbox]):not([type=radio]),.nana-checkout form select,
  .style-measure-fields input{font-size:16px;min-height:44px}
  .lead-dialog .lead-form textarea{min-height:104px}
  .lead-dialog[open],.nana-checkout[open],.sabsus-account-dialog[open]{top:calc(var(--nana-visual-top,0px) + 12px + var(--sabsus-safe-top,env(safe-area-inset-top,0px)));bottom:auto;margin-block:0;max-height:calc(var(--nana-visual-height,100dvh) - 24px - var(--sabsus-safe-top,env(safe-area-inset-top,0px)) - var(--sabsus-safe-bottom,env(safe-area-inset-bottom,0px)));overscroll-behavior:contain;scroll-padding-block:64px 20px}
  .lead-dialog[open]{padding:20px}
  .lead-dialog .dialog-heading{position:sticky;top:-20px;z-index:5;background:#fff;padding-block:10px;margin-top:-10px}
  .nana-checkout .dialog-heading{position:sticky;top:-18px;z-index:5;background:#fff;padding-block:10px;margin-top:-10px}
  .lead-dialog .dialog-close,.nana-checkout .dialog-close{min-width:44px;min-height:44px}
  .nana-checkout .nana-product-row,.nana-checkout .nana-product-row>div{min-width:0}
  .nana-checkout .nana-product-name,.nana-checkout .nana-bit-instructions{overflow-wrap:anywhere}
  .catalog-controls>[data-catalog-count]{min-height:20px}
  .catalog-controls>[data-mobile-filter-reserve]{grid-column:1/-1;display:block;height:44px;pointer-events:none}.catalog-controls>[data-mobile-filter-reserve="availability"]{height:98px}
  .dress-slide{min-width:0;animation-name:nana-dress-mobile-in!important}
  .dress-info,.dress-info>*{min-width:0;max-width:100%;overflow-wrap:anywhere}
  .dress-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}
  .dress-controls>.dress-step:first-child{grid-column:1;grid-row:1}
  .dress-controls>.dress-step:last-child{grid-column:2;grid-row:1}
  .dress-controls>.dress-dots{grid-column:1/-1;grid-row:2;gap:0;flex-wrap:wrap}
  .dress-controls .dress-dot{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;border:0;border-radius:0;background:transparent}
  .dress-controls .dress-dot::after{content:"";width:8px;height:8px;border:1px solid #111;border-radius:50%;background:#fff}
  .dress-controls .dress-dot[aria-current="true"]::after{background:#111}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero-campaign-image,.dress-slide{animation:none!important;transition:none!important}}
@keyframes nana-dress-mobile-in{from{opacity:.65;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .product-zoom,.product-zoom-dialog button{min-width:44px;min-height:44px}
  .product-option-value>span{min-height:44px;display:inline-flex;align-items:center}
  .account-order-card,.account-detail-row,.account-detail-row dd{min-width:0}
  .account-detail-row dd{max-width:70%}
}
@media(max-width:760px){
  .shell-header .header-actions .header-search{min-width:44px;min-height:44px}
  .shell-header .header-actions .language-picker{width:56px;min-width:56px;flex:0 0 56px}
  .shell-header .header-actions .sabsus-account-button{font-size:13px;padding-inline:6px}
}
@media(min-width:761px) and (max-width:1024px){
  .save-product,.shell-header .saved-button,.shell-header .cart-button,.shell-header .sabsus-account-button{min-width:44px;min-height:44px}
  .save-product{width:44px;height:44px}
  .nana-checkout form input:not([type=checkbox]):not([type=radio]),.nana-checkout form select,.lead-dialog .lead-form input,.lead-dialog .lead-form textarea{font-size:16px}
}
@media(min-width:761px) and (max-width:800px){
  .dress-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 16px}
  .dress-controls>.dress-step:first-child{grid-column:1;grid-row:1}
  .dress-controls>.dress-step:last-child{grid-column:2;grid-row:1}
  .dress-controls>.dress-dots{grid-column:1/-1;grid-row:2;gap:0}
  .dress-controls .dress-dot{width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:0;background:transparent}
  .dress-controls .dress-dot::after{content:"";width:10px;height:10px;border:1px solid #111;border-radius:50%;background:#fff}
  .dress-controls .dress-dot[aria-current="true"]::after{background:#111}
}
@media(max-width:760px){.shell-header .main-nav>.header-actions:has(.sabsus-account-button){gap:4px}}
@media(max-width:1024px){.rail-controls button{min-width:44px;min-height:44px}}

@media(max-width:760px){.shell-header .header-actions .language-picker select{width:56px;min-width:56px;max-width:56px;min-height:44px;padding-inline:4px;letter-spacing:0}}

@media(max-width:760px){.catalog-controls>label{padding-block:0}.catalog-controls select{min-height:44px}}

@media(max-width:420px){.nana-checkout[open] .nana-product-controls{grid-template-columns:minmax(0,1fr)}.nana-checkout[open] .nana-product-controls>label:last-child{max-width:100px}}

/* Reserve the two header rows before the account script initializes. */
@media(max-width:760px){
 .shell-header .main-nav{grid-template-columns:32px minmax(0,1fr);height:auto;min-height:108px;padding:6px 16px;gap:4px 12px}
 .shell-header .main-nav>.menu-drawer{grid-column:1;grid-row:1}
 .shell-header .main-nav>.brand{grid-column:2;grid-row:1;justify-self:start}
 .shell-header .main-nav>.header-actions{grid-column:1/-1;grid-row:2;width:100%;min-width:0;flex-wrap:nowrap;justify-content:space-between;gap:4px;padding-block:2px}
 .catalog-controls>[data-reset-filters]{grid-column:1/-1}
 .catalog-hero-copy h1{min-height:58px}
 .article-search-status{min-height:21px}
 .article-search-status[hidden]{display:block!important;visibility:hidden}
}

/* Accessibility audit: readable muted text and separated touch targets. */
.nana-old-price,.catalog-contact .kicker,.contact-card span,.footer-list span,.back-link{color:#666}
.catalog-contact>.line-link{display:inline-flex;align-items:center;min-height:44px;padding-block:10px;margin-bottom:16px}
@media(max-width:1024px){
 .product-card h2 a{display:block;min-height:24px}
 .product-card .product-add{display:inline-flex;align-items:center;min-height:44px}
 .site-footer .footer-list a{display:flex;align-items:center;min-height:44px}
 .catalog-breadcrumbs a,.pdp-breadcrumbs a{display:inline-flex;align-items:center;min-height:24px}
}

.fit-problem-list li>span,.personal-edit .kicker{color:#666}

/* Readable labels on plain service panels, with inherited CTA icon colours. */
:is(.service-hero,.style-brief,.style-examples,.style-catalog,.contact-hero,.application,.social-row,.legal-page,.lead-cart,.lead-dialog) .kicker{color:#666}
.button.button-ink span{color:inherit}

/* Mobile product photography: fit the viewport, not source pixels divided by DPR. */
@media(max-width:760px){
 [data-product-page].product-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 [data-product-page] .nana-gallery{width:100%;max-width:none!important;justify-self:stretch}
 [data-product-page] .product-page-image{width:100%;max-width:none!important;max-height:none!important;margin-inline:0}
 [data-product-page] .product-page-image>img,[data-product-page] .product-page-image>video{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
 .product-zoom-dialog{box-sizing:border-box;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;background:#111;overflow:hidden}
 .product-zoom-dialog[open]{display:grid;place-items:center}
 .product-zoom-dialog img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100dvh!important;object-fit:contain!important}
 .product-zoom-dialog button{top:calc(12px + env(safe-area-inset-top,0px));right:12px;z-index:2;width:44px;height:44px;border-radius:50%;color:#111;background:#fff}
}
