/* TAIGA glued-panel iPhone/mobile adaptation — 2026-09-07 v3 */

/* Desktop: mobile-only contact control stays out of the way. */
.hx-mobile-call{display:none}

@media (max-width:900px){
  :root{--taiga-mobile-header:76px}
  html{scroll-padding-top:var(--taiga-mobile-header)}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"]{
    overflow-x:hidden!important;
    -webkit-text-size-adjust:100%;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] main{
    overflow:clip;
  }

  /* Header: compact, actionable and safe-area aware. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .site-header,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-head{
    height:var(--taiga-mobile-header)!important;
    min-height:var(--taiga-mobile-header)!important;
    padding-top:env(safe-area-inset-top)!important;
    background:rgba(244,242,236,.95)!important;
    border-bottom:1px solid rgba(36,54,47,.10)!important;
    backdrop-filter:blur(18px) saturate(125%)!important;
    -webkit-backdrop-filter:blur(18px) saturate(125%)!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-headin,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .header-inner{
    width:calc(100% - 28px)!important;
    min-height:var(--taiga-mobile-header)!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .brand,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .brand img{
    width:122px!important;
    max-width:122px!important;
    height:auto!important;
    transform:none!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-cfg,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-pro,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-phone,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .header-nav{
    display:none!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-mobile-call{
    margin-left:auto;
    display:inline-flex!important;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:40px;
    padding:0 13px;
    border-radius:999px;
    background:#24362F;
    color:#fff;
    font-size:11px;
    font-weight:850;
    letter-spacing:.01em;
    box-shadow:0 8px 20px rgba(36,54,47,.16);
    white-space:nowrap;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-mobile-call svg{
    width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-menu{
    flex:0 0 auto!important;
    margin:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-menu>summary{
    width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;
    background:rgba(255,255,255,.68)!important;
    border:1px solid rgba(36,54,47,.10)!important;
    box-shadow:0 6px 18px rgba(36,54,47,.06)!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-menu>div{
    top:calc(var(--taiga-mobile-header) - 2px)!important;
    left:10px!important;right:10px!important;
    max-height:calc(100dvh - var(--taiga-mobile-header) - 16px)!important;
    overflow:auto!important;
    border-radius:24px!important;
    padding:14px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-menu>div a{
    min-height:48px!important;
    display:flex!important;
    align-items:center!important;
    padding:0 14px!important;
    border-radius:14px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-menu>div a[href^="tel:"]{
    margin-top:8px!important;
    background:#24362F!important;
    color:#fff!important;
    font-size:15px!important;
    font-weight:850!important;
    justify-content:center!important;
  }

  /* General mobile rhythm. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .container{
    width:calc(100% - 28px)!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .section{
    padding-top:54px!important;
    padding-bottom:54px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .section.compact{
    padding-top:40px!important;
    padding-bottom:40px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .section-head{
    grid-template-columns:1fr!important;
    gap:12px!important;
    margin-bottom:24px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .section-head h2{
    font-size:clamp(36px,11vw,48px)!important;
    line-height:.95!important;
    letter-spacing:-.055em!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .section-head p{
    font-size:14px!important;
    line-height:1.48!important;
  }

  /* Hero: one clean mobile screen flow, no oversized dead zones. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hero.hx,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx{
    height:auto!important;
    min-height:auto!important;
    max-height:none!important;
    padding-top:calc(var(--taiga-mobile-header) + 30px)!important;
    padding-bottom:34px!important;
    overflow:hidden!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-copy{
    position:relative!important;
    left:auto!important;right:auto!important;top:auto!important;
    width:calc(100% - 28px)!important;
    margin:0 auto!important;
    padding:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-copy h1{
    margin:16px 0 18px!important;
    font-size:clamp(50px,15vw,68px)!important;
    line-height:.90!important;
    letter-spacing:-.062em!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-copy p{
    margin:0!important;
    font-size:18px!important;
    line-height:1.32!important;
    max-width:none!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-actions{
    margin-top:24px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-actions>*{
    width:100%!important;
    min-width:0!important;
    min-height:54px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-samples{
    justify-content:center!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-prod{
    position:relative!important;
    left:auto!important;right:auto!important;top:auto!important;
    width:calc(100% - 28px)!important;
    height:clamp(270px,84vw,340px)!important;
    margin:26px auto 0!important;
    overflow:hidden!important;
    border-radius:22px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-prod>img{
    width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-bottom{
    position:relative!important;
    left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;
    width:calc(100% - 28px)!important;
    margin:18px auto 0!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-specs{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0!important;
    border:1px solid rgba(36,54,47,.14)!important;
    border-radius:18px!important;
    overflow:hidden!important;
    background:rgba(251,250,247,.72)!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec{
    min-width:0!important;
    padding:11px 8px!important;
    gap:4px!important;
    align-items:flex-start!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec+ .hx-spec{border-left:1px solid rgba(36,54,47,.12)!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec>span{display:none!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec strong{font-size:12px!important;line-height:1.15!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec small{font-size:8px!important;line-height:1.25!important;margin-top:3px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-profiles{
    width:100%!important;
    overflow-x:auto!important;
    overscroll-behavior-inline:contain;
    scrollbar-width:none;
    padding:8px!important;
    gap:7px!important;
    border-radius:20px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-profiles::-webkit-scrollbar{display:none}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-ptitle{flex:0 0 78px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-profile{flex:0 0 138px!important;min-width:138px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-quality{
    position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;
    width:calc(100% - 28px)!important;margin:16px auto 0!important;
    justify-content:flex-start!important;gap:7px!important;overflow-x:auto!important;white-space:nowrap!important;
    scrollbar-width:none;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-quality::-webkit-scrollbar{display:none}

  /* Configurator: fit the iPhone width without nested desktop spacing. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator{
    padding-top:32px!important;
    padding-bottom:42px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-shell{
    display:block!important;
    margin-top:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-main{
    border-radius:22px!important;
    overflow:hidden!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-topbar{
    padding:18px 16px!important;
    gap:14px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-title strong{font-size:16px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-content{padding:18px 14px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-panel>h3{font-size:27px!important;line-height:1!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-panel>p{font-size:13px!important;line-height:1.45!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .room-card.room-card-editor{padding:14px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .room-fields{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .rooms-toolbar{grid-template-columns:1fr!important;gap:10px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .choice-grid,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .choice-grid.three,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .profile-choice-grid{
    grid-template-columns:1fr!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .choice-card{min-height:86px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .profile-choice-card{min-height:0!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .form-grid,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .form-grid.two,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .form-grid.three{grid-template-columns:1fr!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .fastener-spec{grid-template-columns:1fr!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-footer{
    padding:13px 14px calc(15px + env(safe-area-inset-bottom))!important;
    gap:8px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-footer .button,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #configurator .config-footer .step-back{
    min-width:0!important;
  }

  /* The bottom calculation bar is contextual, not a permanent site obstruction. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .mobile-summary-bar{
    left:12px!important;right:12px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
    min-height:58px!important;
    padding:7px 8px 7px 14px!important;
    border-radius:18px!important;
    gap:8px!important;
    background:rgba(36,54,47,.965)!important;
    box-shadow:0 13px 30px rgba(24,37,31,.24)!important;
    transform:translateY(calc(100% + 28px + env(safe-area-inset-bottom)))!important;
    opacity:0!important;
    pointer-events:none!important;
    transition:transform .22s ease,opacity .22s ease!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"].taiga-mobile-summary-active .mobile-summary-bar{
    transform:translateY(0)!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .mobile-summary-bar small{font-size:8px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .mobile-summary-bar strong{font-size:17px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .mobile-summary-bar .button{
    min-height:44px!important;
    padding:0 15px!important;
    font-size:12px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"].taiga-mobile-summary-active #configurator{
    padding-bottom:calc(112px + env(safe-area-inset-bottom))!important;
  }

  /* Profile cards: readable images and tighter text rhythm. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #profiles .profile-showcase-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #profiles .profile-showcase-card{
    border-radius:22px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #profiles .profile-showcase-diagram{
    height:176px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #profiles .profile-showcase-card h3{font-size:28px!important}

  /* One product / system: consistent editorial cards. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card{
    border-radius:22px!important;
    min-height:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card::before{
    height:auto!important;
    aspect-ratio:16/10!important;
    min-height:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card>div{
    min-height:144px!important;
    padding:20px 20px 22px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card h3{font-size:25px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card p{font-size:13px!important;line-height:1.45!important}

  /* Technology: image and copy become one coherent mobile card. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish.section{
    padding-top:44px!important;padding-bottom:44px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-block{
    grid-template-columns:1fr!important;
    border-radius:22px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-photo{
    min-height:0!important;
    height:auto!important;
    aspect-ratio:16/10!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-photo img[data-taiga-admin-visual="technology"]{
    width:100%!important;height:100%!important;object-fit:cover!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-copy{
    padding:28px 22px 24px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-copy::before{
    left:22px!important;top:20px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-copy h2{
    font-size:clamp(38px,11.5vw,48px)!important;
    line-height:.94!important;
    margin-top:18px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-copy p{font-size:14px!important;line-height:1.48!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-badges{gap:7px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-badges>*{font-size:10px!important;padding:9px 11px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #finish .architect-copy .button{min-height:52px!important}

  /* Customer path / FAQ / CTA: no desktop-height assumptions. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .process-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .process-step{
    border-radius:19px!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .process-step::before{
    height:auto!important;
    aspect-ratio:16/9!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #faq .faq-button{
    padding:18px 0!important;
    gap:12px!important;
    font-size:16px!important;
    line-height:1.25!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .final-cta{
    border-radius:24px!important;
    padding:34px 22px!important;
    min-height:0!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .final-cta h2{
    font-size:clamp(38px,12vw,52px)!important;
    line-height:.94!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .final-cta p{font-size:14px!important;line-height:1.5!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .final-cta .button{width:100%!important}

  /* Modals on iPhone: stay above browser chrome and never overflow. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .modal{
    padding:calc(10px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom))!important;
    align-items:flex-end!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .modal-card{
    width:100%!important;
    max-width:none!important;
    max-height:calc(100dvh - 22px - env(safe-area-inset-top) - env(safe-area-inset-bottom))!important;
    border-radius:24px!important;
    overflow:auto!important;
  }
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .modal-body{padding:20px 16px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .modal-actions{grid-template-columns:1fr!important}

  /* Footer needs clearance from iOS bottom area. */
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .site-footer{
    padding-bottom:calc(28px + env(safe-area-inset-bottom))!important;
  }
}

@media (max-width:360px){
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .brand,
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .brand img{width:110px!important;max-width:110px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-mobile-call{padding:0 10px!important;font-size:10px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-copy h1{font-size:46px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-copy p{font-size:16px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] .hx-spec strong{font-size:11px!important}
  body[data-taiga-smart-product="kleenaya-imitatsiya-brusa"] #system .feature-card>div{min-height:132px!important;padding:18px!important}
}

@media (prefers-reduced-motion:reduce){
  .mobile-summary-bar{transition:none!important}
}
