:root{--ss-ink:#151724;--ss-paper:#f5faf5;--ss-orange:#ec623f;--ss-line:#c9c9c9;--ss-soft:#e4e7e4}

/* One public component contract. These declarations intentionally override
   historical theme files until those files can be retired entirely. */
body:not(.panel-app),body:not(.panel-app) button,body:not(.panel-app) input,body:not(.panel-app) select,body:not(.panel-app) textarea{font-family:var(--splitstream-public-font)!important}
.storefront-header .cart-count{display:none!important}
.storefront-header .cart-count.has-items{display:grid!important;background:var(--ss-orange)!important;color:#fff!important}
html body.figma-desktop-home>footer{display:block!important}
.storefront-header .head-actions .iconbtn,
.storefront-header .mobile-categories-toggle,
.storefront-header .storefront-phone{background:transparent!important;box-shadow:none!important}

/* One data-driven discount badge used by mobile and desktop product cards. */
.splitstream-discount-badge{position:absolute;z-index:3;left:14px;top:14px;height:24px;display:inline-flex;align-items:center;padding:0 10px 0 0;border-radius:999px;background:var(--ss-ink);color:#fff;font-size:11px;font-weight:700;line-height:24px;letter-spacing:0;white-space:nowrap}
.splitstream-discount-badge>b{height:24px;margin-right:8px;padding:0 10px;display:inline-flex;align-items:center;border-radius:999px;background:var(--ss-orange);color:#fff;font-weight:700}
.splitstream-discount-badge>span{color:#fff}
.product-card.has-discount .product-photo>.tag{top:52px}
.splitstream-card-prices{min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 9px}
.splitstream-card-prices del{color:var(--muted);font-size:11px;line-height:1.2;white-space:nowrap}

.ss-cta,
.catalog-filters .button.primary,
.prototype-product-card .ss-cta{
  min-height:52px!important;padding:0 24px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  border:0!important;border-radius:999px!important;background:var(--ss-orange)!important;background-image:none!important;color:#fff!important;
  box-shadow:none!important;font-family:var(--splitstream-public-font)!important;font-weight:600!important;line-height:1.1!important;transition:transform .22s ease,filter .22s ease!important
}
html body:not(.panel-app) .catalog-filters .button.primary.ss-cta{background:var(--ss-orange)!important;color:#fff!important;border-color:var(--ss-orange)!important}

/* Exactly two shared storefront CTA variants: orange navigation/action and
   black transactional action. Page-specific styles may not alter geometry. */
body:not(.panel-app) main .button:not(.iconbtn):not(.square):not(.textbtn),
body:not(.panel-app) main .ss-cta{
  min-height:52px!important;padding:0 24px!important;display:inline-flex!important;align-items:center!important;justify-content:space-between!important;gap:22px!important;
  border:0!important;border-radius:999px!important;background:var(--ss-ink)!important;background-image:none!important;color:#fff!important;
  box-shadow:none!important;font-family:var(--splitstream-public-font)!important;font-weight:600!important;line-height:1.1!important;text-align:left!important;
  transition:transform .22s ease,filter .22s ease!important
}
body:not(.panel-app) main .button.primary:not(.ss-cta--purchase),
body:not(.panel-app) main .ss-cta:not(.ss-cta--purchase){background:var(--ss-orange)!important;color:#fff!important}
body:not(.panel-app) main form[action="/checkout"] .button,
body:not(.panel-app) main form[action="/maintenance/request"] .button,
body:not(.panel-app) main form[action*="/cart/"] .button{background:var(--ss-ink)!important;color:#fff!important}
body:not(.panel-app) main .button:not(.iconbtn):not(.square):not(.textbtn)::after{
  content:'→'!important;display:block!important;margin:0!important;color:var(--ss-orange)!important;font-size:20px!important;font-weight:400!important;line-height:1!important;
  position:static!important;inset:auto!important;transform:none!important;background:none!important;box-shadow:none!important
}
body:not(.panel-app) main .button.primary:not(.ss-cta--purchase)::after{color:var(--ss-ink)!important}
body:not(.panel-app) main form[action="/checkout"] .button::after,
body:not(.panel-app) main form[action="/maintenance/request"] .button::after,
body:not(.panel-app) main form[action*="/cart/"] .button::after{color:var(--ss-orange)!important}
body:not(.panel-app) main .button[aria-label]:not(.ss-cta):not(:has(>span))::after{content:none!important;display:none!important}
body:not(.panel-app) main .button[aria-label]:not(.ss-cta):not(:has(>span)){justify-content:center!important;gap:0!important}

.ss-cta.ss-cta--purchase{background:var(--ss-ink)!important;color:#fff!important}
.ss-cta.ss-cta--purchase>.ss-cta-arrow-token{color:var(--ss-orange)!important}
.ss-cta:has(img),.ss-cta:has(.ss-cta-arrow){justify-content:space-between!important;gap:22px!important;text-align:left!important}
.ss-cta .ss-cta-label{display:block!important;line-height:14px!important}
.ss-cta .ss-cta-arrow,.ss-cta>img{display:block!important;width:15.4712px!important;height:12.96px!important;flex:0 0 auto!important;object-fit:contain!important}
.ss-cta::before,.ss-cta::after,.catalog-filters .button.primary::before,.catalog-filters .button.primary::after{display:none!important;content:none!important}
.ss-cta img{filter:none!important}

@media(hover:hover) and (pointer:fine){
  .ss-cta:hover,.catalog-filters .button.primary:hover,body:not(.panel-app) main .button:not(.iconbtn):not(.square):not(.textbtn):hover{transform:translateY(-2px)!important;filter:brightness(1.04)!important}
  .mproto-product:hover .mproto-product-image>img:first-child,.fd-products .product-card:hover .product-photo img,.product-grid .product-card:hover .product-photo img{transform:scale(1.055)!important}
  .mproto-categories>a:hover img,.category-grid>a:hover img{transform:scale(1.05)!important}
  .mproto-services>button:hover{transform:translateY(-4px)!important;box-shadow:0 15px 30px #15172420!important}
  .mproto-services>button:hover>img{transform:scale(1.1)!important}
  .storefront-header .head-actions .iconbtn:hover,
  .storefront-header .mobile-categories-toggle:hover{color:var(--ss-orange)!important;background:transparent!important}
}
.mproto-product-image,.product-photo{overflow:hidden!important}
.mproto-product-image>img:first-child,.fd-products .product-card .product-photo img,.product-grid .product-card .product-photo img{transition:transform .36s cubic-bezier(.22,1,.36,1)!important;transform-origin:center center!important}
.mproto-categories>a img,.category-grid>a img,.mproto-services>button,.mproto-services>button>img{transition:transform .3s cubic-bezier(.22,1,.36,1),box-shadow .3s ease!important}

@media(max-width:768px){
  .mproto-services>button.is-scroll-accented{transform:translateY(-4px)!important;box-shadow:0 15px 30px #15172420!important}
  .mproto-services>button.is-scroll-accented>img{transform:scale(1.1)!important}
}

/* The approved handoff supplies only 400/500/600/700. Legacy themes used
   synthetic 750/900 weights; storefront emphasis must use the real bold. */
body:not(.panel-app) b,
body:not(.panel-app) strong,
body:not(.panel-app) .promo-badge{font-weight:700!important}

/* Long supplier model identifiers wrap instead of being clipped. */
body:not(.panel-app) .catalog-products .product-card .product-card-code{
  min-height:32px!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  line-height:16px!important
}

@media(max-width:768px){
  /* Inner public pages: prevent the collapsed top margin from exposing the
     legacy html colour, and let the non-zero cart badge extend above the
     36px joined header without being cut in half. Homepage is excluded. */
  html:has(>body:not(.figma-desktop-home)){background:#f3f6f8!important}
  body:not(.figma-desktop-home)>.storefront-header .mainhead{overflow:visible!important}
  body:not(.figma-desktop-home)>.storefront-header .cart-count.has-items{z-index:5!important}
  body:not(.figma-desktop-home) main.wrap:has(.catalog-layout){padding-left:30px!important;padding-right:30px!important}

  /* Homepage header overlays the hero photograph exactly as in the approved
     mobile handoff.  It must not participate in document flow: a sticky row
     here creates the dark strip above the banner and crops the first screen. */
  html body.figma-desktop-home>header.storefront-header{display:block!important;position:absolute!important;top:68px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;margin:0!important;z-index:120!important}
  body.figma-desktop-home .mproto-header{display:none!important}
  body.figma-desktop-home>.storefront-header{width:min(342px,calc(100% - 60px))!important}
  body.figma-desktop-home>.storefront-header .mainhead{height:36px!important;min-height:36px!important;grid-template-columns:107px minmax(0,1fr) 38px 32px!important}
  body.figma-desktop-home>.storefront-header .head-actions>a{height:36px!important;width:34px!important;min-width:34px!important;padding:9px!important}
  body.figma-desktop-home>.storefront-header .storefront-phone{height:36px!important}
  body.figma-desktop-home>.storefront-header .mobile-categories-toggle{height:36px!important;width:32px!important;min-width:32px!important}
  body.figma-desktop-home>.storefront-header .primary-nav{top:44px!important}
  .storefront-header .mobile-categories-toggle .menu-icon{width:18px!important;height:16px!important}

  /* Exact final cascade from the approved handoff: one joined 40px track,
     three 100.98px controls and a moving 36px paper selection capsule. */
  .mproto-hero .mproto-tabs{position:relative!important;isolation:isolate!important;height:40px!important;min-height:40px!important;padding:2px!important;display:flex!important;justify-content:space-between!important;gap:0!important;margin-bottom:37px!important;border-radius:28px!important;background:rgba(255,255,255,.1)!important;box-shadow:inset 0 0 0 .5px rgba(255,255,255,.35)!important;backdrop-filter:blur(12px)!important}
  .mproto-hero .mproto-tabs::before{display:block!important;content:""!important;position:absolute!important;z-index:0!important;left:2px!important;top:2px!important;width:calc((100% - 24px)/3)!important;height:36px!important;border-radius:18px!important;background:var(--ss-paper)!important;transform:translateX(0)!important;transition:transform .48s cubic-bezier(.22,1,.36,1)!important}
  .mproto-hero[data-active-slide="1"] .mproto-tabs::before{transform:translateX(calc(100% + 10px))!important}
  .mproto-hero[data-active-slide="2"] .mproto-tabs::before{transform:translateX(calc(200% + 20px))!important}
  .mproto-hero .mproto-tabs button{position:relative!important;z-index:1!important;flex:0 0 calc((100% - 20px)/3)!important;height:36px!important;min-height:36px!important;padding:0!important;border:0!important;border-radius:18px!important;background:transparent!important;color:var(--ss-paper)!important;font-size:8px!important;font-weight:500!important;line-height:1.1!important;text-align:center!important}
  .mproto-hero .mproto-tabs button[aria-selected="true"]{border-color:transparent!important;background:transparent!important;color:var(--ss-ink)!important}

  /* Text and arrow positions are part of the component, not visual guesses:
     label starts at x+29; arrow ends at right-25. */
  .mproto-hero .mproto-pill.ss-cta{box-sizing:border-box!important;width:221px!important;height:60px!important;min-height:60px!important;margin-top:35px!important;padding:0 25px 0 29px!important;justify-content:space-between!important;gap:22px!important;background:var(--ss-orange)!important;color:#fff!important;font-size:12px!important;font-weight:500!important;line-height:14px!important;text-align:left!important}
  .mproto-hero .mproto-pill.ss-cta>span{display:block!important;line-height:14px!important;white-space:nowrap!important}
  .mproto-hero .mproto-pill.ss-cta img{display:block!important;width:15.4712px!important;height:12.96px!important;flex:0 0 auto!important;align-self:center!important;filter:brightness(0) saturate(100%)!important}
  .mproto-hero-nav .mproto-arrows button{border-color:#f5faf5!important;color:#f5faf5!important}
  .mproto-hero-nav .mproto-arrows button img{filter:brightness(0) invert(1)!important}

  .category-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 10px!important;width:100%!important;margin:24px 0 34px!important}
  .category-tabs>a{width:100%!important;min-width:0!important;min-height:48px!important;padding:11px 10px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;border-radius:26px!important;line-height:1.25!important}
  .catalog-filters .button.primary{width:100%!important;background:var(--ss-orange)!important;color:#fff!important}
}

@media(min-width:769px){
  html body.figma-desktop-home>footer{display:block!important}
  body.figma-desktop-home .fd-screen[data-figma-screen="Split_screen_7"]{display:none!important}
  body.figma-desktop-home [data-figma-node="2009:21"],
  body.figma-desktop-home [data-figma-node="2060:45"],
  body.figma-desktop-home [data-figma-node="2089:388"],
  body.figma-desktop-home [data-figma-node="2089:390"],
  body.figma-desktop-home [data-figma-node="2089:318"],
  body.figma-desktop-home [data-figma-node="2089:320"]{display:none!important}
  body.figma-desktop-home [data-figma-node="2009:22"],
  body.figma-desktop-home [data-figma-node="2089:389"],
  body.figma-desktop-home [data-figma-node="2089:319"]{
    left:80px!important;top:660px!important;width:240px!important;height:60px!important;padding:0 26px 0 31px!important;
    display:flex!important;align-items:center!important;justify-content:space-between!important;border-radius:32px!important;
    background:var(--ss-orange)!important;color:#fff!important;font-size:14px!important;font-weight:500!important;line-height:1!important
  }
  body.figma-desktop-home [data-figma-node="2009:22"]::after,
  body.figma-desktop-home [data-figma-node="2089:389"]::after,
  body.figma-desktop-home [data-figma-node="2089:319"]::after{content:'→';color:var(--ss-ink);font-size:22px;line-height:1}
  body.figma-desktop-home .fd-slide:has(.fd-hit[aria-label="Купить кондиционер"]:hover) [data-figma-node="2009:22"],
  body.figma-desktop-home .fd-slide:has(.fd-hit[aria-label="Заказать монтаж"]:hover) [data-figma-node="2089:389"],
  body.figma-desktop-home .fd-slide:has(.fd-hit[aria-label="Заказать услугу"]:hover) [data-figma-node="2089:319"]{filter:brightness(1.04);transform:translateY(-2px)}
}

@media(prefers-reduced-motion:reduce){
  .ss-cta,.mproto-product-image>img:first-child,.fd-products .product-card .product-photo img,.product-grid .product-card .product-photo img,.mproto-categories>a img,.mproto-services>button,.mproto-services>button>img,.catalog-arrow{transition:none!important}
}

/* Public catalog pagination is deliberately numberless: the owner-approved
   prototype uses quiet circular arrow controls and never exposes product or
   page counts in the storefront. */
.pager{margin:34px 0 0!important}
.catalog-arrow-pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin:0!important}
.catalog-arrow{box-sizing:border-box!important;width:33px!important;height:33px!important;min-width:33px!important;display:grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--ss-ink)!important;transition:transform .22s ease,background-color .22s ease}
.catalog-arrow img{display:block;width:33px!important;height:33px!important;object-fit:contain;filter:none!important}
.catalog-arrow.next img{transform:rotate(180deg)}
.catalog-arrow.disabled{opacity:.28;cursor:default;pointer-events:none}
@media(hover:hover) and (pointer:fine){.catalog-arrow:not(.disabled):hover{background:rgba(236,98,63,.18)!important;transform:translateY(-2px)}}
@media(max-width:768px){.pager{margin-top:30px!important}.catalog-arrow-pagination{justify-content:center}.storefront-header .cart-count.has-items{top:-3px!important;right:-2px!important}}
