/* Phone / small tablet: header, catalog, PDP, info, cart */

html { overflow-x: clip; }
body { overflow-x: clip; }
.nav-toggle,
.mob-nav { display: none; }
.icon-lab { display: inline; }

@media (max-width: 760px) {
  :root { --wrap: min(1180px, calc(100% - 20px)); }

  .site-head {
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .top { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px 11px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex: none;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .mainhead { padding: 6px 0 8px; }
  .mainhead .wrap {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas:
      "menu logo cart"
      "search search search";
    gap: 8px 8px;
    align-items: center;
  }
  .nav-toggle { grid-area: menu; }
  .logo { grid-area: logo; min-width: 0; }
  .logo svg, .logo img { height: 40px; max-width: min(180px, 100%); }
  .catbtn { display: none; }
  .search { grid-area: search; width: 100%; }
  .search-live {
    max-height: min(55vh, 420px);
    border-radius: 16px;
  }
  .search input {
    font-size: 16px;
    padding: 11px 14px;
  }
  .icons { grid-area: cart; gap: 6px; }
  .icon-btn.call-head {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    justify-content: center;
  }
  .icon-btn.call-head::before {
    content: "Звонок";
    font-size: 12px;
    font-weight: 700;
  }
  .icon-lab { display: none; }
  .icon-btn.cart-head {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
    justify-content: center;
  }
  .icon-btn.cart-head::before {
    content: "Корзина";
    font-size: 12px;
    font-weight: 700;
  }

  .mob-nav {
    display: none;
    background: #fff;
    color: var(--elmet-ink, #1c5d68);
    border-bottom: 1px solid var(--line, #c5e6ed);
    box-shadow: 0 16px 28px rgba(16, 36, 41, 0.12);
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .mob-nav { display: block; }
  .mob-nav .wrap {
    display: grid;
    gap: 0;
    padding: 8px 0 16px;
  }
  .mob-nav a {
    display: block;
    padding: 13px 2px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    border-bottom: 1px solid var(--line, #e6e4de);
  }
  .mob-nav .mob-call {
    display: block;
    width: 100%;
    padding: 13px 2px;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    color: inherit;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line, #e6e4de);
    cursor: pointer;
  }
  .mob-hours {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted, #4a7d86);
  }

  body[data-skin="plate"] .site-head {
    background: var(--elmet-aqua, #8ed4e1);
  }
  body[data-skin="plate"] .nav-toggle { color: #fff; }
  body[data-skin="plate"] .mob-nav {
    background: #fff;
    color: var(--elmet-ink, #1c5d68);
  }

  body.nav-open { overflow: hidden; }
  body.nav-open main,
  body.nav-open footer {
    pointer-events: none;
    opacity: 0.42;
  }
  body.nav-open .quick,
  body:has(.search-live:not([hidden])) .quick {
    display: none;
  }

  .quick .wrap { padding: 2px 0 8px; }
  .marquee,
  .marquee.is-static {
    height: 38px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }
  .marquee::-webkit-scrollbar { display: none; }
  .marquee-track,
  .marquee.is-static .marquee-track {
    height: 38px;
    min-width: 0;
    justify-content: flex-start;
    transform: none !important;
  }
  .marquee-set {
    height: 38px;
    padding-right: 12px;
  }
  .chip { padding: 8px 12px; font-size: 13px; }

  .logo { justify-self: center; }
  .logo svg, .logo img { height: 36px; max-width: min(148px, 42vw); }
  .icon-btn.cart-head {
    min-width: 0;
    padding: 8px 12px;
  }

  .search-live { z-index: 60; }

  .rail-head {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }
  .rail-head > div { min-width: 0; }
  .rail-head h3 {
    font-size: 20px;
    min-width: 0;
  }
  .rail-tools {
    margin-left: auto;
    gap: 8px;
  }
  .rail-more { display: none; }
  .rail-arr {
    width: 40px;
    height: 40px;
  }
  .stock-rail .tile-rail .pic { overflow: hidden; }
  .tile .pic img:not(.stock-mark),
  .stock-rail .tile-rail .pic img:not(.stock-mark) {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .tile .pic .pill.stock .stock-mark {
    width: 14px;
    height: 14px;
  }
  .stock-rail .tile-rail .pill.stock,
  .rec-rail .tile-rail .pill.stock {
    padding: 2px;
    gap: 0;
    font-size: 0;
    line-height: 0;
    left: 4px;
    top: 4px;
    width: 16px;
    height: 16px;
    max-width: 16px;
    overflow: hidden;
  }
  .stock-rail .tile-rail .pill.stock .stock-mark,
  .rec-rail .tile-rail .pill.stock .stock-mark {
    width: 12px;
    height: 12px;
  }
  .rail-track { gap: 8px; }
  .stock-rail .tile-rail,
  .rec-rail .tile-rail {
    flex: 0 0 calc((100% - 16px) / 3) !important;
    width: calc((100% - 16px) / 3) !important;
    min-width: 0 !important;
    padding: 6px 6px 8px;
  }
  .stock-rail .tile-rail .pic,
  .rec-rail .tile-rail .pic {
    height: 72px;
    margin-bottom: 6px;
  }
  .stock-rail .tile-rail .ttl,
  .rec-rail .tile-rail .ttl {
    font-size: 11px;
    min-height: 2.5em;
    line-height: 1.25;
  }
  .stock-rail .tile-rail .spec { display: none; }
  .stock-rail .buy-row {
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .stock-rail .qty { display: none; }
  .stock-rail .buy-row .sum { font-size: 13px; }
  .stock-rail .buy-row .per { display: none; }
  .stock-rail .nameplate.add {
    margin-left: 0;
    flex: 1 1 100%;
    min-height: 32px;
    font-size: 11px;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .cat-board-previews {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .sec-h {
    flex-wrap: wrap;
    gap: 4px 12px;
    align-items: flex-end;
  }
  .sec-h h1,
  .sec-h h2 { flex: 1 1 12em; min-width: 0; }
  .sec-h span { flex: none; }

  .filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters a { flex: none; }

  .hero-in,
  .pdp,
  .nums,
  .trio,
  .fgrid,
  .hub,
  body[data-theme="editorial"] .cats-grid,
  body[data-theme="editorial"] .grid,
  .cats-grid,
  .grid {
    grid-template-columns: 1fr !important;
  }
  .shelf { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 8px 8px 10px; border-radius: 12px; }
  .tile .pic { height: 112px; margin-bottom: 8px; }
  .tile .ttl { font-size: 13px; min-height: 2.4em; }
  .tile .spec { margin: 4px 0 6px; }
  .buy-row .sum { font-size: 16px; }
  .qty button { width: 36px; min-height: 40px; padding: 8px 0; }
  .qty input { width: 28px; font-size: 16px; min-height: 40px; }
  .nameplate.add { min-width: 0; font-size: 14px; }

  .cat-board-previews .cat-mini {
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .cat-board .cat-frost { padding: 12px 12px 14px; }
  .cat-board-arr { width: 36px; height: 36px; }

  .home-seo { padding: 8px 0 18px; }
  .home-seo-h { font-size: 17px; }
  .home-seo p { font-size: 14px; }

  .dirs {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px;
    margin: 8px auto 16px;
  }
  .dirs a {
    padding: 10px 12px;
    min-width: 0;
    border-radius: 12px;
  }
  .dirs a::after { display: none; }
  .dirs strong { font-size: 13px; }
  .dirs span {
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .stage-slot { padding-inline: 0; margin-top: 8px; }
  .stage {
    height: auto;
    min-height: 0;
    border-radius: 16px;
    background: #f4fbfc;
  }
  .slide {
    position: relative;
    display: none;
    grid-template-columns: minmax(0, 1fr) 84px;
    min-height: 0;
    opacity: 1;
    pointer-events: none;
  }
  .slide.on {
    display: grid;
    pointer-events: auto;
  }
  .banner-copy {
    padding: 10px 10px 20px 12px;
    justify-content: flex-start;
    gap: 0;
  }
  .banner-copy .kicker {
    margin-bottom: 2px;
  }
  .banner-copy h1,
  .banner-copy h2 {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--elmet-ink, #1c5d68);
  }
  .banner-copy .lead {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    margin: 4px 0 8px;
    font-size: 13px;
    line-height: 1.35;
    max-width: none;
  }
  .banner-facts { display: none; }
  .banner-copy .hero-acts {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0 16px;
    margin-top: 0;
  }
  .banner-copy .hero-acts .btn,
  .banner-copy .hero-acts .btn.ghost {
    display: inline-flex;
    align-items: center;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0;
    font-size: 14px;
    min-height: 0;
    line-height: 1.25;
  }
  .banner-visual {
    display: block;
    min-height: 100%;
  }
  .s-nav { display: none; }
  .s-dots { left: 14px; transform: none; bottom: 8px; }

  .buybox { padding: 16px 14px; border-radius: 16px; }
  .buybox h1 { font-size: clamp(20px, 6vw, 26px) !important; }
  .gallery { padding: 10px; border-radius: 16px; }
  .mainpic { min-height: 200px; }
  .mainpic img { max-height: 280px; }
  .thumbs img { height: 64px; }
  .pills { gap: 6px; }
  .pill { white-space: normal; }
  .offers { grid-template-columns: 1fr 1fr; }
  .price-board .sum { font-size: 24px; }
  .specs { font-size: 13px; }
  .specs th { width: 38%; padding-right: 8px; }
  .buy-row.pdp-buy { flex-wrap: nowrap; }
  .pdp-cart { flex-wrap: wrap; }
  .pdp-cart-btn { min-width: 0; width: 100%; }
  .buy-acts { grid-template-columns: 1fr; }
  .act-btn {
    width: 100%;
    min-height: 44px;
  }
  .pdp-trust { font-size: 13px; }
  .pdp-loyalty { gap: 8px; grid-template-columns: 1fr; }
  .pdp-loy { padding: 12px; }

  .crumbs {
    font-size: 12px;
    margin: 10px auto 8px;
    gap: 6px;
  }
  .article {
    padding: 18px 16px 32px;
    border-radius: 16px;
  }
  body[data-theme="editorial"] .article h1 {
    font-size: clamp(26px, 8vw, 36px);
  }

  .info-hero,
  .info-contacts,
  .info-arts,
  .info-cards,
  .info-stats,
  .info-carriers,
  .info-flow,
  .info-split,
  .info-split-rev {
    grid-template-columns: 1fr !important;
  }
  .info-page h1 { font-size: clamp(26px, 8vw, 36px); }
  .info-page h2 { font-size: clamp(20px, 5.5vw, 26px); }
  .info-page .lead { font-size: 15px; }
  .info-hero { padding: 16px 14px; border-radius: 18px; }
  .info-hero img { max-height: 220px; }
  .info-hero figcaption {
    left: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
    white-space: normal;
    line-height: 1.25;
  }
  .info-hero-acts {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
  }
  .info-hero-acts .btn {
    width: auto;
    min-height: 0;
    padding: 8px 0;
    text-align: left;
  }
  .info-stat { min-height: 0; padding: 14px; }
  .info-stat b { font-size: 22px; overflow-wrap: anywhere; }
  .info-section { padding: 16px 14px; }
  .info-card { padding: 14px; }
  .info-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 14px;
  }
  .info-cta .btn { width: 100%; text-align: center; min-height: 44px; }
  .info-map { height: 240px; }
  .info-map-box .cap {
    flex-wrap: wrap;
    padding: 10px 12px;
  }
  .info-map-box .cap a { white-space: normal; }
  .info-linkrow a,
  .info-linkrow span { font-size: 16px; overflow-wrap: anywhere; }
  .info-req,
  .info-req tbody,
  .info-req tr,
  .info-req th,
  .info-req td { display: block; width: 100%; }
  .info-req th {
    width: 100%;
    border-bottom: 0;
    padding: 12px 0 0;
  }
  .info-req td {
    padding: 4px 0 12px;
    overflow-wrap: anywhere;
  }
  .info-req tr { border-bottom: 1px solid var(--line, #c5e6ed); }
  .info-copy { margin: 6px 0 0; display: inline-block; min-height: 36px; }
  .info-flow p { max-width: none; }
  .info-pills { gap: 6px; }
  .info-pill { font-size: 12px; white-space: normal; }

  .tz-card { padding: 12px 0 0; border-radius: 16px; }
  .tz-copy { padding: 0 14px; }
  .tz-copy h2 { font-size: 22px; margin: 4px 0 6px; }
  .tz-copy p {
    color: #f4fbfc;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .tz-person { display: none; }
  .tz-form {
    border-radius: 16px;
    margin: 10px 12px 12px;
    padding: 12px 12px 14px;
    gap: 8px;
    grid-template-rows: none;
    align-self: start;
  }
  .tz-form .field-full textarea {
    min-height: 64px;
    height: 64px;
  }
  .tz-form .field span {
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(8, 36, 44, 0.55);
  }
  .tz-form textarea { resize: none; }
  .tz-form .btn { min-height: 44px; }
  .field input,
  .field textarea,
  .sheet input,
  .sheet textarea {
    font-size: 16px;
    min-height: 44px;
  }
  .tz-form .btn,
  .sheet-form .btn {
    width: 100%;
    justify-self: stretch;
    min-height: 44px;
  }

  .modal {
    padding: 0;
    align-items: end;
  }
  .sheet,
  .sheet.wide {
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 22px 16px max(18px, env(safe-area-inset-bottom));
    max-height: min(94dvh, 920px);
  }
  .sheet h2 { font-size: 22px; padding-right: 36px; }
  .cart-list { max-height: 32dvh; }
  .cart-line {
    grid-template-columns: 44px minmax(0, 1fr) auto 28px;
    grid-template-rows: auto auto;
    gap: 6px 8px;
  }
  .cart-line .pic { grid-row: 1 / 3; width: 44px; height: 44px; }
  .cart-line .meta { grid-column: 2 / 4; }
  .cart-line .qty { grid-column: 2; justify-self: start; }
  .cart-line .sum { grid-column: 3; }
  .cart-del { grid-column: 4; grid-row: 1 / 3; min-width: 36px; min-height: 36px; }
  .cart-line .ttl { font-size: 13px; overflow-wrap: anywhere; }
  .sheet-acts { flex-direction: column; }
  .sheet-acts .btn { width: 100%; text-align: center; min-height: 44px; }

  .pager { gap: 8px; }
  .pager > a,
  .pager-nums a {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .foot-atlas { padding: 24px 0 20px; }
  .foot-atlas .foot-pages {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
  }
  .foot-atlas .fp {
    min-height: 0;
    padding: 10px 10px 12px;
    gap: 4px;
  }
  .foot-atlas .fp b { font-size: 16px; overflow-wrap: anywhere; }
  .foot-atlas .fp p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .foot-atlas .fp span { font-size: 11px; }
  .foot-atlas .foot-mid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 12px;
    padding-top: 14px;
  }
  .foot-atlas .brand-col,
  .foot-atlas .cta-box { grid-column: 1 / -1; }
  .foot-atlas .brand-col b { font-size: 13px; }
  .foot-atlas .brand-col .tel {
    font-size: 18px;
    margin: 4px 0 2px;
  }
  .foot-atlas .brand-col p { font-size: 12px; margin-top: 2px; }
  .foot-atlas .col-t { margin-bottom: 4px; }
  .foot-atlas .col-links a {
    padding: 2px 0;
    font-size: 13px;
  }
  .foot-atlas .cta-box {
    grid-template-columns: 64px 1fr;
    min-height: 0;
    gap: 8px;
    padding: 12px 12px 12px 10px;
  }
  .foot-atlas .cta-person {
    width: 64px;
    height: 84px;
    margin: 0;
    align-self: center;
  }
  .foot-atlas .cta-live { margin-bottom: 4px; }
  .foot-atlas .cta-box p { font-size: 15px; margin: 0 0 4px; }
  .foot-atlas .cta-box small { font-size: 11px; margin-bottom: 8px; }
  .foot-atlas .cta-box .foot-kp { min-height: 40px; width: 100%; }
  .foot-atlas .foot-legal {
    margin-top: 12px;
    padding-top: 10px;
  }

  .filters a {
    min-height: 36px;
    align-items: center;
    padding: 8px 12px;
  }
  .cat-hub h1 { font-size: clamp(22px, 6.5vw, 28px); }
  .more-cat { font-size: 15px; padding: 10px 0; }
}

@media (max-width: 420px) {
  .shelf { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .tile .pic { height: 160px; }
  .icon-btn.cart-head { padding: 8px 10px; }
  .icon-btn.cart-head::before { content: "Корзина"; }
  .logo svg, .logo img { height: 32px; max-width: min(132px, 38vw); }
  .foot-atlas .cta-box { grid-template-columns: 1fr; padding: 10px 12px; }
  .foot-atlas .cta-person { display: none; }
  .foot-atlas .cta-box p { font-size: 14px; }
}
