/* ============================================================
   КЛИМАТ ПРО — mobile.css — финальные мобильные правки.
   Загружается ПОСЛЕДНИМ, поэтому переопределяет базовые размеры.
   Аудит: читаемость текста (≥13px), отступы от краёв, тач-таргеты.
   ============================================================ */
.kitcard .btn-cart-wide {
  width: auto;
  min-width: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}

.pdp-tabs-mobile {
  display: none;
}

@media (max-width: 560px) {
  /* ---- типографический минимум: ничего читаемого мельче 13px ---- */
  .eyebrow { font-size: 13px; letter-spacing: .1em; }
  .badge { font-size: 12.5px; }
  .pcard-brand { font-size: 12.5px; }
  .feat-dot { font-size: 13px; }
  .ft-pay-badge { font-size: 13px; }
  .pcard-disc { font-size: 13px; }
  .mstep-when { font-size: 12.5px; }
  .pbank-txt .muted, .pbank-txt span { font-size: 12.5px; }
  .photobadge-tip { font-size: 12.5px; }
  .cd-lbl { font-size: 12px; }
  .team-exp { font-size: 12.5px; }
  .small { font-size: 13px; }
  /* tame oversized headings on phones so they don't run edge-to-edge */
  .display { font-size: 27px; letter-spacing: -.02em; line-height: 1.14; }
  .h1 { font-size: 24px; line-height: 1.18; }
  .h2 { font-size: 21px; }
  .lead { font-size: 15.5px; }
  /* quiz CTA: smaller heading, tighter padding, icon doesn't crowd text */
  .quiz-cta { padding: 18px; gap: 14px; height: auto; min-height: 0; align-items: flex-start; overflow: visible; }
  .quiz-cta-ic { width: 46px; height: 46px; }
  .quiz-cta-copy { overflow: visible; }
  .quiz-cta-copy .h3 { font-size: 17px; line-height: 1.25; }
  .quiz-cta-go { min-height: 44px; line-height: 1.15; white-space: normal; }
  /* let service-upsell rows wrap instead of truncating with «…» on narrow screens */
  .addon-svc strong, .addon-svc .muted { overflow: visible; text-overflow: clip; white-space: normal; }
  .addon-svc-go { white-space: normal; }
  /* hide decorative floating photo badges on mobile (they overlap breadcrumbs;
     the same info lives in the gift / delivery / installment blocks below) */
  .photobadges { display: none; }
  /* social proof: distinct chips instead of a run-on text wall */
  .social-proof { gap: 8px; }
  .sp-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 12px; font-size: 12.5px; }
  .sp-live { background: var(--eco-soft); border-color: transparent; }
  /* short description: a touch more breathing room above */
  .pg-shortdesc { margin-top: 20px; }

  /* ---- hero: breathing room under the search bar + even stats ---- */
  .hero-in { padding: 14px var(--gutter) 26px; gap: 26px; }
  .hero-copy .display { margin: 14px 0 12px; }
  .hero-cta { margin: 22px 0 24px; }
  .hero-cta .btn { flex: 1; min-width: 0; }
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); }
  .hero-stats .h2 { font-size: 21px; white-space: nowrap; }
  .hero-stats .small { font-size: 12px; line-height: 1.3; }

  /* ---- product info column: tighter rhythm so CTA blocks sit higher ---- */
  .pg-buy { gap: 12px; padding: 16px; }
  .product-top, .catalog-layout { min-width: 0; }
  .catalog-main, .pg-info, .pg-gallery { min-width: 0; }
  .catalog-toolbar { align-items: stretch; flex-wrap: wrap; gap: 10px; }
  .catalog-filter-btn { flex: 0 0 auto; }
  .catalog-sort {
    flex: 1 1 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: space-between;
  }
  .catalog-sort .select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
  .applied {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .applied::-webkit-scrollbar { display: none; }
  .applied .chip { flex: 0 0 auto; max-width: min(82vw, 320px); }
  .tabs {
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .tab { flex: 0 0 auto; padding-inline: 14px; }
  .pg-stickybuy {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    gap: 8px;
  }
  .pg-stickybuy > .stack {
    flex: 0 1 86px;
    min-width: 0;
  }
  .pg-stickybuy .h3 { font-size: 17px; line-height: 1.05; }
  .pg-stickybuy .btn {
    min-width: 0;
    padding-inline: 10px;
    white-space: normal;
    line-height: 1.15;
  }
  .pg-stickybuy .btn svg { flex-shrink: 0; }
  .pg-stickybuy-call { width: 44px; height: 44px; }
  .pg-consult { margin-bottom: 12px; padding: 16px; }
  .pricematch, .stocksub, .giftblock { margin-top: 10px; }
  .pdp-tabs-desktop { display: none; }
  .pdp-tabs-mobile {
    display: block;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }
  .pdp-tabs-mobile .tab-body {
    padding-top: 18px;
  }
  .pdp-tabs-mobile .specs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* comfortable tap targets for secondary controls */
  .stepper button { width: 40px; height: 40px; }
  .cart-del { padding: 10px; }
  .btn-sm { padding: 11px 16px; }
  .empty.card {
    max-width: 100%;
    padding-inline: 20px;
  }
  .empty.card > .row {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
  }
  .empty.card > .row .btn {
    flex: 1 1 190px;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    line-height: 1.15;
  }
  .kitcard .btn-cart-wide {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }
  .kitcard .btn-cart-wide svg { flex-shrink: 0; }

  /* layout bugfixes from mobile audit: no horizontal page scroll */
  .hero-copy, .hero-side { min-width: 0; max-width: 100%; }
  .hero-copy .display { font-size: 24px; line-height: 1.15; }
  .hero-copy .display br { display: block; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; white-space: normal; line-height: 1.15; padding-inline: 18px; }
  .whyus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whyus-card { min-width: 0; padding-inline: 14px; }
  .whyus-num { font-size: 24px; overflow-wrap: anywhere; }
  .b2b-teaser { min-width: 0; }
  .b2b-teaser > div { min-width: 0; }
  .home-b2b-copy,
  .home-b2b-tags {
    min-width: 0;
    max-width: 100%;
  }
  .home-b2b .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    line-height: 1.15;
  }
  .brand-hl-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-hl { min-width: 0; }
  .b2b-form-band,
  .b2b-form-copy,
  .b2b-form,
  .b2b-form-contacts {
    min-width: 0;
    max-width: 100%;
  }
  .b2b-form-contacts a {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body:has(.cart-layout) .chat-fab,
  body:has(.checkout-layout) .chat-fab {
    display: none;
  }

  body:has(.catalog-layout) {
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.catalog-layout) .app-main {
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
  }
  body:has(.catalog-layout) .catalog-main {
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  body:has(.catalog-layout) .smartbar,
  body:has(.catalog-layout) .smartbar-examples,
  body:has(.catalog-layout) .smart-eg,
  body:has(.catalog-layout) .pcard,
  body:has(.catalog-layout) .kitcard,
  body:has(.catalog-layout) .btn-cart {
    scroll-margin-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .hero-copy .display { font-size: 22px; }
  .empty.card { padding-inline: 18px; }
  .empty.card > .row .btn { flex-basis: 100%; }
  .cart-item { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  .cart-thumb { width: 84px; }
  .cart-bottom .h3, .cart-bottom .cart-price { font-size: 18px; }
  .cart-bottom .stepper { padding: 3px; }
  .cart-bottom .stepper button { width: 36px; height: 36px; }
}

/* phones ≤560: stepper and price never share a cramped row — price drops to
   its own full-width line so the ₽ is never clipped by the card edge. */
@media (max-width: 560px) {
  .cart-bottom { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .cart-bottom .stack {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    flex-direction: row;
    align-items: baseline !important;
    justify-content: flex-start;
    gap: 10px;
  }
  .cart-bottom .stack .cart-price { max-width: 100%; }
}

@media (max-width: 560px) and (max-height: 700px) {
  .calc-hero {
    padding-top: 24px;
    padding-bottom: 54px;
  }
  .calc-hero .display {
    font-size: 24px;
    line-height: 1.12;
    margin: 10px 0 8px;
  }
  .calc-hero .lead {
    font-size: 14px;
    line-height: 1.4;
  }
  .calc-layout {
    margin-top: -34px;
  }
  .calc-form {
    padding: 20px 18px 88px;
  }
  .calc-form .field[style] {
    margin-top: 14px !important;
  }
  .calc-row {
    padding: 12px 0;
    margin-top: 6px;
  }
  .calc-form .seg-btn {
    padding-block: 8px;
    line-height: 1.15;
  }
}

@media (max-width: 380px) and (max-height: 640px) and (orientation: landscape) {
  body:has(.product-top) .pg-stickybuy {
    display: none !important;
  }
  body:has(.product-top) .app-main {
    padding-bottom: 64px !important;
  }
}

@media (max-width: 820px) {
  .whyus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whyus-card { min-width: 0; }
  .chat-fab { display: none !important; }
}

@media (min-width: 821px) and (max-height: 720px) {
  body:has(.hero .herocalc) .chat-fab,
  body:has(.catalog-layout) .chat-fab,
  body:has(.product-top) .chat-fab,
  body:has(.brand-hero) .chat-fab,
  body:has(.cart-layout) .chat-fab,
  body:has(.checkout-layout) .chat-fab {
    display: none;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .mega-panel.mega-panel-groups {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(720px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    left: -72px !important;
  }
  .mega-panel-groups .mega-promo-wide {
    display: none !important;
  }
  .mega-panel-groups .mega-groups,
  .mega-panel-groups .mega-gcol,
  .mega-panel-groups .mega-cat-link {
    min-width: 0;
  }
}

@media (min-width: 1101px) and (max-width: 1240px) {
  .mega-panel.mega-panel-groups {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(860px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    left: -88px !important;
  }
  .mega-panel-groups .mega-promo-wide {
    display: none !important;
  }
  .mega-panel-groups .mega-groups,
  .mega-panel-groups .mega-gcol,
  .mega-panel-groups .mega-cat-link {
    min-width: 0;
  }
}

@media (min-width: 993px) and (max-height: 820px) {
  body:has(.catalog-layout) .chat-fab,
  body:has(.brand-hero) .chat-fab {
    display: none !important;
  }
}

body:has(.hubcard) .chat-fab {
  display: none !important;
}

.brand-filter-panel .srch-chips .chip .tnum {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}

@media (max-width: 430px) {
  .grid-products {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (min-width: 993px) and (max-width: 1440px) {
  .hdr-nav {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding-block: 6px;
  }
  .hdr-nav-item {
    padding: 8px 10px;
    gap: 6px;
    font-size: 13.5px;
  }
}

@media (min-width: 1181px) and (max-width: 1440px) {
  .hdr-nav {
    height: 50px;
    min-height: 50px;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2px;
    padding-block: 0;
  }
  .hdr-nav-item {
    padding: 8px 8px;
    gap: 5px;
    font-size: 13px;
  }
}

@media (min-width: 993px) and (max-height: 650px) {
  .b2b-hero {
    padding: 22px 0 30px;
  }
  .b2b-hero-in {
    margin-top: 8px;
  }
  .b2b-hero .display {
    font-size: clamp(38px, 3.6vw, 48px);
    line-height: 1.04;
  }
  .b2b-hero .lead {
    font-size: 16px;
    line-height: 1.45;
    max-width: 640px;
  }
  .b2b-hero-stats {
    margin-top: 14px;
    gap: 24px;
  }
  .checkout-layout {
    gap: 18px;
  }
  .steps {
    margin-bottom: 14px;
  }
  .checkout-card,
  .cart-summary {
    padding: 16px;
  }
  body:has(.checkout-layout) .checkout-card .stack {
    gap: 10px !important;
  }
  body:has(.checkout-layout) .input,
  body:has(.checkout-layout) .select {
    padding-block: 9px;
  }
}

@media (min-width: 700px) and (max-width: 992px) {
  body:has(.catalog-layout) .chat-fab,
  body:has(.product-top) .chat-fab {
    display: none;
  }
  body:has(.product-top) .pg-stickybuy {
    display: none !important;
  }
  body:has(.product-top) .app-main {
    padding-bottom: 64px !important;
  }
}

@media (max-width: 340px) {
  .hdr-main { gap: 8px; padding-inline: 12px; }
  .empty.card {
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    padding: 28px 18px;
    gap: 8px;
  }
  .empty.card > svg {
    width: 36px !important;
    height: 36px !important;
  }
  .empty.card .h2 {
    font-size: 20px;
    line-height: 1.16;
  }
  .empty.card p {
    margin: 0;
    line-height: 1.38;
  }
  .empty.card > .row .btn {
    min-height: 42px;
    padding-block: 10px;
  }
  .hdr-main > button:first-child {
    min-width: 0;
    max-width: calc(100vw - 154px);
  }
  .hdr-main > button:first-child > span:last-child {
    min-width: 0;
    overflow: hidden;
  }
  .hdr-main > button:first-child > span:last-child > span:first-child {
    white-space: nowrap;
  }
  .hdr-main > button:first-child > span:last-child > span:last-child {
    display: none !important;
  }
  .hdr-mobacts { gap: 4px; }
  .hdr-mobic,
  .hdr-burger {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .hdr-mobic-badge { right: -3px; }
  .chat-fab { display: none; }
  .grid-products { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 340px) and (max-height: 640px) {
  .calc-hero {
    padding-top: 18px;
    padding-bottom: 42px;
  }
  .calc-hero .display {
    font-size: 22px;
    margin: 8px 0 6px;
  }
  .calc-hero .lead {
    font-size: 13.5px;
    line-height: 1.34;
  }
  .calc-layout {
    margin-top: -46px;
  }
  .calc-form {
    padding-top: 16px;
  }
  .calc-form .field {
    gap: 5px;
  }
  .calc-form .field[style] {
    margin-top: 10px !important;
  }
  .calc-form .seg {
    padding: 3px;
  }
  .calc-form .seg-btn {
    font-size: 12.5px;
    padding: 7px 5px;
  }
}

@media (max-width: 900px) and (max-height: 430px) and (orientation: landscape) {
  .hdr { position: sticky; top: 0; padding-top: 0; }
  .hdr-main {
    position: static;
    height: 54px;
    max-width: 100%;
  }
  .hdr-msearch,
  .botnav,
  .chat-fab,
  .cmpbar,
  .pg-stickybuy {
    display: none !important;
  }
  .app-main { padding-bottom: 24px !important; }
  .hero-in { padding-top: 18px; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcard,
  .kitcard,
  .pcard-body,
  .pcard-foot,
  .price-block {
    min-width: 0;
  }
}

/* 2026-06-05 responsive audit fixes: keep existing design, remove overflow/overlaps. */
@media (max-width: 430px) {
  body:has(.catalog-layout) .grid-products {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .empty.card > .row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .empty.card > .row .btn {
    width: 100%;
    flex: 1 1 auto;
  }

  .b2b-form-band {
    overflow: hidden;
  }

  .b2b-form,
  .b2b-form input,
  .b2b-form textarea,
  .b2b-form .input,
  .b2b-form .select {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 380px) and (max-height: 640px) {
  .b2b-hero {
    padding-top: 22px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .b2b-hero-in {
    margin-top: 8px;
  }

  .b2b-hero .crumbs {
    margin-bottom: 10px;
  }

  .b2b-hero .display {
    font-size: 25px;
    line-height: 1.12;
  }

  .b2b-hero .lead {
    font-size: 15px;
    line-height: 1.48;
  }

  .b2b-hero-stats {
    display: none;
  }

  .b2b-hero .row .btn:nth-of-type(2) {
    display: none;
  }
}

@media (min-width: 993px) and (max-width: 1320px) {
  .hdr-nav.scrollx {
    overflow: visible;
  }

  .hdr-nav {
    height: auto !important;
    min-height: 50px;
    flex-wrap: wrap !important;
    justify-content: center;
    align-content: center;
    row-gap: 2px;
    padding-block: 4px;
  }

  .hdr-nav-item {
    padding: 7px 8px !important;
    gap: 5px !important;
    font-size: 12.8px !important;
  }
}

@media (min-width: 993px) and (max-height: 760px) {
  body:has(.catalog-layout) .chat-fab,
  body:has(.product-top) .chat-fab,
  body:has(.calc-layout) .chat-fab {
    display: none !important;
  }
}

@media (min-width: 993px) and (max-height: 920px) {
  body:has(.product-top) .pg-stickybuy {
    display: flex;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(720px, calc(100vw - 40px));
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    padding: 10px 14px;
  }

  body:has(.product-top) .app-main {
    padding-bottom: 92px;
  }

  body:has(.product-top) .chat-fab {
    display: none !important;
  }
}

/* 2026-06-05 mobile18: compact phone rhythm after real-device QA. */
@media (max-width: 560px) {
  .cart-ref {
    flex-wrap: wrap;
  }

  .cart-ref .btn {
    width: 100%;
  }

  .hdr {
    padding-top: 54px;
  }

  .hdr-main {
    height: 54px !important;
    gap: 8px !important;
    padding-inline: 12px;
  }

  .hdr-main > button:first-child {
    min-width: 0;
    max-width: calc(100vw - 154px);
  }

  .hdr-main > button:first-child > span:first-child {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .hdr-main > button:first-child > span:last-child {
    min-width: 0;
    overflow: hidden;
  }

  .hdr-main > button:first-child > span:last-child > span:first-child {
    font-size: 20px !important;
    line-height: 1.02;
    white-space: nowrap;
  }

  .hdr-main > button:first-child > span:last-child > span:last-child {
    font-size: 10.5px !important;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hdr-mobacts {
    gap: 5px !important;
  }

  .hdr-city-mobile-row {
    display: none !important;
  }

  .hdr-city-switch--mobile .hdr-city-label {
    font-size: 13px;
  }

  .hdr-city-switch--mobile .hdr-city-tab {
    min-width: 0;
    height: 28px;
    padding-inline: 9px;
  }

  .hdr-mobic,
  .hdr-burger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
  }

  .hdr-msearch {
    height: 42px;
    margin-bottom: 8px;
    padding-inline: 12px;
  }

  .hdr-msearch input,
  .hdr-msearch .input {
    font-size: 15px;
  }

  .hero-in {
    padding-top: 12px;
    padding-bottom: 18px;
    gap: 18px;
  }

  .hero-chip {
    max-width: 100%;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
    white-space: normal;
    line-height: 1.2;
  }

  .hero-copy .display {
    font-size: 24px;
    line-height: 1.12;
    margin: 12px 0 10px;
  }

  .hero-copy .lead {
    font-size: 15.5px;
    line-height: 1.42;
  }

  .hero-cta {
    margin: 18px 0 18px;
    gap: 10px;
  }

  .btn-lg {
    min-height: 48px;
    padding: 13px 18px;
    font-size: 15.5px;
  }

  .hero-stats {
    display: none;
    gap: 8px;
  }

  .hero-stats .h2 {
    font-size: 19px;
  }

  .hero-stats .small {
    font-size: 11.5px;
  }

  .herocalc {
    padding: 18px;
  }

  .herocalc .row[style] {
    align-items: center;
  }

  .herocalc-ic {
    width: 34px;
    height: 34px;
  }

  .herocalc-res {
    padding: 12px;
    margin: 14px 0 12px;
  }

  .herocalc-res .h3 {
    font-size: 18px;
  }

  .hcm {
    min-width: 0;
  }

  .hcm-name {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }

  .botnav {
    min-height: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  .botnav-item {
    padding-top: 7px;
    padding-bottom: 7px;
    font-size: 10px;
  }

  .botnav-item svg {
    width: 22px;
    height: 22px;
  }

  .app-main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 360px) {
  .hdr-main {
    padding-inline: 10px;
  }

  .hdr-main > button:first-child {
    max-width: calc(100vw - 146px);
  }

  .hdr-city-mobile-row {
    display: none !important;
  }

  .hdr-city-switch--mobile {
    gap: 8px;
  }

  .hdr-city-switch--mobile .hdr-city-label {
    font-size: 12.5px;
  }

  .hdr-city-switch--mobile .hdr-city-tab {
    min-width: 0;
    height: 27px;
    padding-inline: 8px;
    font-size: 12.2px;
  }

  .hdr-main > button:first-child > span:first-child {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  .hdr-main > button:first-child > span:last-child > span:first-child {
    font-size: 18px !important;
  }

  .hdr-main > button:first-child > span:last-child > span:last-child {
    display: none !important;
  }

  .hdr-mobic,
  .hdr-burger {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .hero-copy .display {
    font-size: 22px;
  }

  .hero-copy .lead {
    font-size: 15px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats .h2 {
    font-size: 18px;
  }

  .hero-stats .small {
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .wrap.catalog-head {
    padding: 16px var(--gutter) 8px !important;
    max-width: 100%;
    overflow: hidden;
  }

  .catalog-head .crumbs {
    max-width: 100%;
    font-size: 13.5px !important;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .catalog-head .h1 {
    font-size: 25px !important;
    line-height: 1.12;
    margin: 8px 0 4px;
    overflow-wrap: anywhere;
  }

  .catalog-head > .muted {
    font-size: 15px;
    line-height: 1.42;
  }

  .cat-subs {
    gap: 8px;
  }

  .cat-sub-chip {
    padding: 9px 13px;
    font-size: 13.5px;
    line-height: 1.15;
    white-space: normal;
  }

  .catalog-layout {
    padding: 18px var(--gutter) calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    overflow: hidden;
  }

  .catalog-layout .crumbs {
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .catalog-layout .h1 {
    font-size: 25px;
    line-height: 1.12;
    margin-top: 8px;
  }

  .catalog-layout .lead {
    font-size: 16px;
    line-height: 1.38;
  }

  .catalog-layout .fchips {
    gap: 8px;
  }

  .catalog-layout .chip {
    min-width: 0;
    max-width: 100%;
    padding: 9px 13px;
    font-size: 13.5px;
    line-height: 1.15;
    white-space: normal;
  }

  .smartbar {
    padding: 14px;
    margin-top: 16px;
  }

  .smartbar-row {
    gap: 8px;
  }

  .smartbar-input {
    min-width: 0;
    font-size: 15px;
    padding-block: 8px;
  }

  .smartbar .btn {
    flex: 0 0 auto;
    padding-inline: 14px;
    font-size: 14px;
  }

  .smartbar-foot,
  .smartbar-examples {
    gap: 8px;
  }

  .smart-eg {
    max-width: 100%;
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 360px) and (max-height: 700px) {
  .hero-in {
    padding-bottom: 24px;
  }
}

/* ============================================================
   2026-06-06 · PDP first screen rebuild (P0)
   Goal: photo, name, key specs, price/status, montage and CTA
   reachable on phone/tablet/low-laptop without a giant photo or
   an overloaded buy box. Visual system unchanged.
   ============================================================ */
@media (max-width: 992px) {
  /* Compact the gallery so the photo is a band, not a full-screen square. */
  .product-top .pg-main .imgslot {
    aspect-ratio: auto !important;
    height: min(62vw, 320px) !important;
  }
  .product-top .pg-main .imgslot-photo img { object-fit: contain; }
  .product-top .pg-thumbs { grid-template-columns: repeat(auto-fit, minmax(64px, 76px)); gap: 8px; margin-top: 10px; }
  .product-top .pg-thumb { max-width: 76px; }
  .product-top .pg-gallery { margin-bottom: 4px; }
  /* tighten rhythm between title / specs / buy box */
  .product-top .pg-keyspecs { margin: 14px 0; }
  .pg-buy { padding: 18px; gap: 12px; }
  /* keep the credit/payment/delivery details visually secondary */
  .pg-buy-extra { gap: 12px; margin-top: 12px; }
}

@media (max-width: 560px) {
  /* photo a touch shorter on phones; leaves room for name + price + CTA */
  .product-top .pg-main .imgslot { height: min(68vw, 300px) !important; }
  /* shorter product title so the buy box sits higher on the first screen */
  .product-top .pg-info > .h1 { font-size: 23px !important; line-height: 1.22; margin: 6px 0 10px !important; }
  /* 3 compact key-spec tiles per row → 4–6 specs fit in two tidy rows */
  .pg-keyspecs { grid-template-columns: repeat(3, 1fr) !important; gap: 8px; }
  .keyspec { padding: 10px 8px; gap: 2px; }
  .keyspec strong { font-size: 14px; }
  .keyspec .muted.small { font-size: 11px; }
  .keyspec-pop { left: 0; right: auto; width: min(240px, calc(100vw - 32px)); }
  .pg-compare-btn { display: none !important; }
  /* price + stock never split the ₽ or "шт" onto a new line awkwardly */
  .pg-price-row { gap: 8px 10px; }
  .pg-price-row .price-now.h1 { font-size: 30px; }
  .pg-quote .price-now.h2 { font-size: 24px; }
  /* breadcrumbs shouldn't push the photo down */
  .product-top + .wrap .crumbs, .wrap .crumbs { font-size: 12px; }
}

@media (max-width: 380px) {
  .product-top .pg-main .imgslot { height: 240px !important; }
  .product-top .pg-info > .h1 { font-size: 21px !important; }
  .pg-keyspecs { grid-template-columns: repeat(2, 1fr) !important; }
}

/* PDP sticky buy bar — scale by viewport HEIGHT so it never crowds the bottom nav.
   Short screens (iPhone SE 320×568, low laptops) get a slimmer bar + smaller controls. */
@media (max-width: 992px) and (max-height: 760px) {
  .pg-stickybuy { padding: 8px 12px; gap: 8px; }
  .pg-stickybuy .btn.btn-lg { height: 46px; min-height: 46px; padding: 0 14px; font-size: 15px; }
  .pg-stickybuy-call { width: 46px; height: 46px; }
  .pg-stickybuy .h3 { font-size: 17px; }
  /* in-page buy-box CTAs a touch shorter too */
  .pg-buy .btn.btn-lg { height: 48px; min-height: 48px; font-size: 15px; }
}
@media (max-width: 992px) and (max-height: 620px) {
  .pg-stickybuy { padding: 6px 10px; gap: 7px; }
  .pg-stickybuy .stack .muted.small { display: none; }     /* hide "к оплате" caption */
  .pg-stickybuy .btn.btn-lg { height: 42px; min-height: 42px; font-size: 14px; padding: 0 12px; }
  .pg-stickybuy .btn.btn-lg > svg { display: none; }         /* keep label, drop cart glyph */
  .pg-stickybuy-call { width: 42px; height: 42px; }
  .pg-stickybuy .h3 { font-size: 16px; }
  .pg-buy .btn.btn-lg { height: 44px; min-height: 44px; font-size: 14px; }
  .pg-buy { padding: 16px; gap: 10px; }
}

/* ============================================================
   2026-06-07 · iOS no-zoom: text inputs must be ≥16px on phones,
   otherwise Safari auto-zooms on focus and the layout jumps.
   Visual-only — desktop density (15px) is untouched above 768px.
   ============================================================ */
@media (max-width: 768px) {
  .input,
  .input-sm,
  .hdr-search input,
  .hdr-msearch input,
  .mm-search input,
  .smartbar-input,
  .srch-input,
  .chat-input input,
  .qlead-input,
  .checkout-card input,
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="search"],
  input[type="number"],
  textarea,
  select {
    font-size: 16px !important;
  }
}
