/* PlayBoom — внутренние страницы в системе «Спина»: каталог, поиск, карточка, корзина, оформление, информационные.
   Мобильная версия — первой. Шрифт системный (SF на Apple), цвета apple.com: текст #1d1d1f, второстепенный #6e6e73,
   фон #f5f5f7, линии #d2d2d7, действие #0071e3, ссылки #0066cc, «Новинка» #bf4800. */

[hidden] { display: none !important; }
:root {
  --radius: 18px;
  --radius-lg: 28px;
  --ok: #1d8348;
  --warn: #b25000;
  --err: #d70015;
  --focus: #0071e3;
}
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
a { color: var(--apple-link, #0066cc); }
.page-h1 { font: 600 clamp(30px, 5vw, 48px)/1.08 var(--display); letter-spacing: -.005em; margin: 0; color: var(--ink); }
.page-head { padding-block: 8px 18px; }
.page-head .lead { margin-top: 8px; max-width: 60ch; }
.sect-h { font: 600 clamp(22px, 2.6vw, 30px)/1.15 var(--display); margin: 0 0 14px; }
.h2--sm { font-size: clamp(26px, 3.4vw, 40px); }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.icon-btn--lg { width: 52px; height: 52px; flex: 0 0 52px; }
.notice { margin: 14px 0; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; line-height: 1.45; }
.notice--warn { background: #fff7ed; box-shadow: inset 0 0 0 1px #f5c49b; }
.rich { font-size: 17px; line-height: 1.55; color: var(--ink); }
.rich h2 { font: 600 24px/1.2 var(--display); margin: 26px 0 10px; }
.rich h3 { font: 600 19px/1.25 var(--display); margin: 20px 0 8px; }
.rich p + p, .rich ul, .rich ol { margin-top: 10px; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich li + li { margin-top: 6px; }
.js .calm-hide { display: none; }

/* ---------- полоса демо и город ---------- */
.demo-strip { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; }
.demo-city { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.demo-city label { color: #a1a1a6; }
.demo-city select { min-height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid #48484a; background: #2c2c2e; color: #f5f5f7; font: 500 12px var(--ui); }
.js .demo-city__go { display: none; }
.demo-city__go { min-height: 30px; border-radius: 8px; border: 0; background: #0071e3; color: #fff; font: 600 12px var(--ui); padding: 0 10px; }

/* ---------- шапка ---------- */
.hdr__icons .hdr__compare, .hdr__icons .hdr__profile { display: none; }
@media (min-width: 1024px) { .hdr__icons .hdr__compare, .hdr__icons .hdr__profile { display: inline-flex; } .hdr__icons .hdr__search-btn { display: none; } }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn .ico { width: 22px; height: 22px; }
.catalog-panel__in { max-width: 1440px; margin: 0 auto; padding: 16px var(--pad) 22px; display: grid; gap: 8px 40px; }
.catalog-panel__in ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 18px; max-width: none; }
.catalog-panel__svc { border-top: 1px solid var(--line); padding-top: 10px !important; }
.catalog-panel__svc a { color: var(--ink-2); font-weight: 400; }
.catalog-panel__all { color: var(--apple-link, #0066cc) !important; }
@media (min-width: 1024px) { .catalog-panel__in { grid-template-columns: 3fr 1fr; } .catalog-panel__svc { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 28px !important; grid-template-columns: 1fr !important; } }

/* подсказки поиска */
.hdr__search { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .28), inset 0 0 0 1px var(--line); padding: 6px; max-height: min(70vh, 520px); overflow: auto; }
.hdr.is-search .suggest { left: var(--pad); right: var(--pad); top: calc(100% - 4px); }
.suggest__item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.suggest__item[aria-selected="true"], .suggest__item:hover { background: #f5f5f7; }
.suggest__img { width: 48px; height: 48px; border-radius: 10px; background: #f5f5f7; display: grid; place-items: center; overflow: hidden; }
.suggest__img img { width: 88%; height: 88%; object-fit: contain; }
.suggest__name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.suggest__meta { display: block; color: var(--ink-2); font-size: 13px; }
.suggest__price { font-weight: 600; font-size: 14px; white-space: nowrap; }
.suggest__cat { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.suggest__cat span { color: var(--ink-2); }
.suggest__cat:hover, .suggest__cat[aria-selected="true"] { background: #f5f5f7; }
.suggest__all { display: block; padding: 10px 12px; color: var(--apple-link, #0066cc); text-decoration: none; font-size: 15px; border-top: 1px solid var(--line); margin-top: 4px; }
.suggest__empty { padding: 12px; color: var(--ink-2); font-size: 15px; }

/* ---------- крошки ---------- */
.crumbs { padding-top: 14px; padding-bottom: 6px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13px; color: var(--ink-2); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--apple-link, #0066cc); }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- список: раздел, бренд, поиск ---------- */
.listing { padding-bottom: 40px; }
.listing__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 6px 0 4px; }
.listing__count { color: var(--ink-2); font-size: 15px; }
.chips-active { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-x { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.chip-x span[aria-hidden] { font-size: 18px; line-height: 1; color: var(--ink-2); }
.chip-x--reset { background: transparent; box-shadow: none; color: var(--apple-link, #0066cc); }
.subcats { margin: 14px 0 0; }
.subcats ul { list-style: none; margin: 0; padding: 2px 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.subcats ul::-webkit-scrollbar { display: none; }
.subcats--top { padding-top: 6px; }
.subcat { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 15px; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.subcat span { color: var(--ink-2); font-size: 13px; }
@media (hover: hover) { .subcat:hover { box-shadow: inset 0 0 0 1px #0071e3; } }
.landings { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 0; font-size: 15px; }
.landings__t { color: var(--ink-2); }
.landings a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.listing__body { margin-top: 16px; }
.listing__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.listing__filters-btn { gap: 8px; }
.listing__filters-btn .ico { width: 18px; height: 18px; }
.listing__fn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: #0071e3; color: #fff; font: 600 12px/1 var(--ui); padding: 0 6px; }
.sortsel { position: relative; display: inline-flex; align-items: center; }
.sortsel select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 0; background: #e8e8ed; color: var(--ink); font: 400 15px var(--ui); cursor: pointer; }
.sortsel__ico { position: absolute; right: 12px; width: 16px; height: 16px; pointer-events: none; }
.pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pgrid.is-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }
@media (min-width: 700px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard--grid { width: auto !important; padding: 12px; }
.pcard--grid .pcard__img { height: auto; aspect-ratio: 1 / 1; }
.pcard--grid .pcard__name { font-size: 16px; line-height: 1.25; }
.pcard--grid .pcard__price b { font-size: 20px; }
.pcard--grid .pcard__act { gap: 6px; }
@media (min-width: 700px) { .pcard--grid { padding: 16px; } .pcard--grid .pcard__name { font-size: 18px; } .pcard--grid .pcard__price b { font-size: 22px; } }
@media (max-width: 380px) { .pcard--grid .pcard__act .icon-btn { display: none; } .pcard--grid .pcard__price b { font-size: 18px; } }
.pcard__avail { margin-top: 6px; font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pcard__avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #aeaeb2; }
.pcard__avail.is-in_stock::before { background: #34c759; }
.pcard__avail.is-preorder::before, .buybox__avail.is-preorder::before { background: #0071e3; }
.listing__morebox { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 24px; }
.listing__more { min-width: 220px; }
.listing__shown { color: var(--ink-2); font-size: 14px; }
.listing__error { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #fff0f0; color: var(--err); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* фильтры: на телефоне — выезжающая панель, на компьютере — колонка слева */
.facets { position: fixed; inset: auto 0 0 0; z-index: 90; max-height: 86vh; overflow: auto; background: #fff; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .25); transform: translateY(105%); transition: transform .35s var(--ease); visibility: hidden; }
.facets.is-open { transform: none; visibility: visible; }
.facets-backdrop { position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .3s; }
.facets-backdrop.is-on { opacity: 1; }
.facets__form { padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); }
.facets__top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 8px 0; }
.facets__title { font: 600 20px var(--display); }
.facet { border: 0; margin: 0; padding: 14px 0; border-top: 1px solid #e8e8ed; min-width: 0; }
.facet legend { font: 600 15px var(--ui); padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.facet legend + * { clear: both; }
.facet__list { display: grid; gap: 2px; }
.fchk { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-size: 16px; }
.fchk input, .fpill input, .fsw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fchk__box { width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px #aeaeb2; display: grid; place-items: center; flex: 0 0 22px; background: #fff; }
.fchk__box .ico { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.4; opacity: 0; }
.fchk input:checked + .fchk__box { background: #0071e3; box-shadow: none; }
.fchk input:checked + .fchk__box .ico { opacity: 1; }
.fchk input:focus-visible + .fchk__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.fchk__txt { flex: 1; }
.fchk__n { color: var(--ink-2); font-size: 13px; }
.facet__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fpill span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; cursor: pointer; background: #fff; }
.fpill input:checked + span { box-shadow: inset 0 0 0 2px #0071e3; font-weight: 600; }
.fpill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.facet__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px 8px; }
.fsw { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: 15px; }
.fsw__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: 0 0 24px; }
.fsw input:checked + .fsw__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0071e3; }
.fsw input:focus-visible + .fsw__dot { outline: 2px solid var(--focus); outline-offset: 5px; }
.facet__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.facet__field { position: relative; display: block; }
.facet__pre { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 14px; pointer-events: none; }
.facet__field input { padding-left: 34px !important; padding-right: 8px !important; font-size: 15px !important; }
.facet__range input, .form input, .form select, .form textarea, .search-hero input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: 400 16px var(--ui); color: var(--ink); }
.form textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.facet__range input:focus, .form input:focus, .form select:focus, .form textarea:focus, .search-hero input:focus { outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .18); }
.facets__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 0 4px; background: #fff; }
.facets__foot .btn { flex: 1; }
@media (min-width: 1024px) {
  .listing__body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
  .facets { position: sticky; top: calc(var(--hdr) + 16px); inset: auto; z-index: 1; max-height: calc(100vh - var(--hdr) - 32px); transform: none; visibility: visible; border-radius: 20px; box-shadow: none; background: #fff; transition: none; }
  .facets__form { padding: 4px 18px 16px; }
  .facets__close, .listing__filters-btn { display: none; }
  .js .facets__apply { display: none; }
  .listing__bar { justify-content: flex-end; }
  .facets-backdrop { display: none; }
}
.no-scroll { overflow: hidden; }

/* ---------- пустые состояния ---------- */
.empty { text-align: center; padding: 48px 16px; border-radius: var(--radius-lg); background: #fff; }
.empty p + p { margin-top: 12px; }
.empty .btn { margin: 4px; }
.empty__t { font: 600 24px/1.2 var(--display); }
.empty--page { margin: 32px auto 48px; max-width: 760px; }
.empty--page .h2 { margin: 10px 0; }
.empty__search { display: flex; gap: 8px; max-width: 520px; margin: 22px auto 8px; }
.empty__search input { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font: 400 16px var(--ui); }

/* ---------- поиск ---------- */
.search-hero { position: relative; display: flex; gap: 10px; align-items: center; margin: 8px auto 6px; }
.search-hero > .ico { position: absolute; left: calc(var(--pad) + 14px); color: var(--ink-3); pointer-events: none; }
.search-hero input { padding-left: 46px; min-height: 52px; border-radius: 14px; font-size: 17px; }
.seocheck .search-hero input { padding-left: 14px; }
.search-tips { color: var(--ink-2); font-size: 15px; margin-top: 6px; }

/* ---------- каталог и бренды ---------- */
.catgrid, .brandgrid { list-style: none; margin: 0 auto 48px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .catgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .brandgrid { grid-template-columns: repeat(4, 1fr); } }
.catcard { background: #fff; border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; }
.catcard__main { display: grid; color: var(--ink); text-decoration: none; }
.catcard__img { aspect-ratio: 4 / 3; border-radius: 18px; background: radial-gradient(circle at 50% 40%, #fff, #ececf1 72%); display: grid; place-items: center; overflow: hidden; }
.catcard__img img { width: 72%; height: 80%; object-fit: contain; }
.catcard__name { font: 600 20px/1.2 var(--display); margin-top: 12px; }
.catcard__n { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.catcard__kids { list-style: none; margin: 10px 0 0; padding: 0; display: none; flex-wrap: wrap; gap: 4px 12px; font-size: 14px; }
.catcard__kids a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
@media (min-width: 700px) { .catcard__kids { display: flex; } }
.brandcard { display: flex; flex-direction: column; justify-content: center; min-height: 110px; padding: 18px; border-radius: 22px; background: #fff; color: var(--ink); text-decoration: none; }
.brandcard b { font: 600 22px/1.15 var(--display); }
.brandcard span { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
@media (hover: hover) { .brandcard:hover, .catcard:hover { box-shadow: 0 24px 44px -30px rgba(0, 0, 0, .45); } }

/* ---------- карточка модели ---------- */
.prod { display: grid; gap: 22px; padding-top: 6px; padding-bottom: 28px; }
@media (min-width: 1024px) { .prod { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; } .prod__gallery { position: sticky; top: calc(var(--hdr) + 16px); } }
.gal__main { position: relative; border-radius: var(--radius-lg); background: #fff; overflow: hidden; }
.gal__track { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gal__slide--empty span { color: var(--ink-3); }
.gal__zoom { width: 100%; height: 100%; display: grid; place-items: center; border: 0; background: transparent; cursor: zoom-in; padding: 6%; }
.gal__zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); display: none; place-items: center; cursor: pointer; }
.gal__nav .ico { width: 20px; height: 20px; }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
@media (hover: hover) and (min-width: 700px) { .gal__nav { display: grid; } }
.gal__count { position: absolute; right: 14px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.gal__thumb { flex: 0 0 64px; height: 64px; border-radius: 14px; border: 0; background: #fff; padding: 6px; cursor: pointer; box-shadow: inset 0 0 0 1px transparent; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gal__thumb.is-on { box-shadow: inset 0 0 0 2px #0071e3; }
.prod__brand { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.prod__brand a { color: var(--ink-2); text-decoration: none; }
.prod__new { color: var(--apple-new, #bf4800); font-weight: 600; font-size: 14px; }
.prod__title { font: 600 clamp(30px, 4.6vw, 44px)/1.08 var(--display); letter-spacing: -.005em; margin: 6px 0 0; }
.prod__full { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.picker { display: grid; gap: 18px; margin-top: 18px; }
.picker__group + .picker__group { margin-top: 0; }
.picker__legend { font-size: 15px; color: var(--ink-2); margin-bottom: 10px; }
.picker__legend b { color: var(--ink); font-weight: 600; }
.picker__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 16px; cursor: pointer; transition: box-shadow .2s, background-color .2s; }
.opt.is-on { box-shadow: inset 0 0 0 2px #0071e3; font-weight: 600; }
.opt.is-na { color: var(--ink-3); background: #fafafa; }
.opt.is-na .opt__txt { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.opt--wide { min-height: 44px; font-size: 15px; }
.opt__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); flex: 0 0 22px; }
.opt__dot--sm { width: 16px; height: 16px; flex-basis: 16px; }
.picker__opts--swatch .opt { padding: 0 16px 0 12px; }
@media (hover: hover) { .opt:not(.is-on):hover { box-shadow: inset 0 0 0 1px #86868b; } }
.buybox { margin-top: 22px; padding: 20px; border-radius: var(--radius-lg); background: #fff; }
.buybox__prices { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; }
.buybox__cash b { font: 600 34px/1.05 var(--display); letter-spacing: -.01em; }
.buybox__card b { font: 600 22px/1.1 var(--display); color: var(--ink); }
.buybox__prices span { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.buybox__avail { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.buybox__avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #aeaeb2; flex: 0 0 8px; }
.buybox__avail.is-in_stock::before { background: #34c759; }
.buybox__variant { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.buybox__act { display: flex; gap: 10px; margin-top: 16px; }
.buybox__act .btn { flex: 1; }
.icon-btn[data-compare][aria-pressed="true"] { background: #0071e3; color: #fff; }
.buybox__notes { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #e8e8ed; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.buybox__notes li { display: flex; gap: 10px; align-items: flex-start; }
.buybox__notes .ico { width: 20px; height: 20px; color: var(--ink); margin-top: 1px; }
.keyspecs { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.keyspecs div { padding: 12px 14px; border-radius: 16px; background: #fff; }
.keyspecs dt { color: var(--ink-2); font-size: 12px; }
.keyspecs dd { margin: 4px 0 0; font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.prod-more { display: grid; gap: 28px; padding-bottom: 20px; }
@media (min-width: 1024px) { .prod-more { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.specs__group { background: #fff; border-radius: 18px; margin-bottom: 8px; }
.specs__group summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 16px; }
.specs__group summary::-webkit-details-marker { display: none; }
.specs__group summary::after, .faq__item summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s; margin-left: 12px; flex: 0 0 auto; }
.specs__group[open] summary::after, .faq__item[open] summary::after { transform: rotate(-135deg); }
.specs__group dl { margin: 0; padding: 0 18px 12px; }
.specs__group dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; padding: 10px 0; border-top: 1px solid #f0f0f3; font-size: 15px; }
.specs__group dt { color: var(--ink-2); }
.specs__group dd { margin: 0; overflow-wrap: anywhere; }
.specs__src { color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.rail--related { padding: 20px 0 10px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: var(--tabbar); z-index: 55; background: rgba(250, 250, 252, .94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid rgba(0, 0, 0, .08); transform: translateY(120%); transition: transform .3s var(--ease); }
.sticky-buy.is-on { transform: none; }
.sticky-buy__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.sticky-buy__txt { display: grid; font-size: 14px; line-height: 1.3; min-width: 0; }
.sticky-buy__txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__txt span { color: var(--ink-2); font-size: 13px; }
@media (min-width: 1024px) { .sticky-buy { display: none; } }
.zoom { width: min(96vw, 1100px); max-height: 94vh; border: 0; border-radius: 24px; padding: 0; background: #fff; }
.zoom::backdrop { background: rgba(0, 0, 0, .7); }
.zoom[open] { display: grid; place-items: center; }
.zoom__img { max-width: 100%; max-height: 90vh; object-fit: contain; padding: 24px; }
.zoom__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: #f5f5f7; }
.zoom .gal__nav { display: grid; }

/* ---------- SEO-текст и вопросы ---------- */
.seo-block { display: grid; gap: 24px; padding-top: 12px; padding-bottom: 40px; }
@media (min-width: 1024px) { .seo-block { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.seo-block__text { color: var(--ink-2); font-size: 16px; }
.faq__t { font: 600 24px/1.2 var(--display); margin: 0 0 12px; }
.faq__item { background: #fff; border-radius: 18px; margin-bottom: 8px; }
.faq__item summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; font-weight: 600; font-size: 16px; line-height: 1.35; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item .rich { padding: 0 18px 16px; font-size: 16px; color: var(--ink-2); }

/* ---------- информационные страницы ---------- */
.info { padding-bottom: 40px; }
.info__head { padding: 8px 0 12px; max-width: 820px; }
.info__lead { margin-top: 12px; max-width: 60ch; }
.info__body { max-width: 820px; }
.info__text { margin-top: 10px; }
.info .steps { margin: 16px 0; }
.info .faq { margin-top: 28px; }
.stores, .cityways { margin: 18px 0 28px; }
.stores__list, .cityways__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.storecard, .waycard { background: #fff; border-radius: 22px; padding: 18px; display: grid; gap: 6px; font-size: 15px; }
.storecard.is-mine, .waycard.is-mine { box-shadow: inset 0 0 0 2px #0071e3; }
.storecard__city, .waycard__city { font: 600 20px/1.2 var(--display); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.storecard__here { font: 600 13px var(--ui); color: #0058b0; background: #e8f1fc; padding: 3px 8px; border-radius: 999px; }
.storecard__name { color: var(--ink-2); }
.storecard__addr, .storecard__phone { display: flex; gap: 8px; align-items: flex-start; }
.storecard__addr .ico, .storecard__phone .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--ink-2); }
.storecard__hours { color: var(--ink-2); }
.infonav { margin: 22px 0; }
.infonav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.infonav__card { display: grid; gap: 6px; padding: 18px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; min-height: 72px; }
.infonav__card b { font: 600 18px/1.2 var(--display); }
.infonav__card span { color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.infonav--foot { margin-top: 36px; }
.infocards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.infocards li { background: #fff; border-radius: 18px; padding: 16px; }
.demoform { margin-top: 32px; padding: 22px; border-radius: var(--radius-lg); background: #fff; max-width: 820px; }
.form { display: grid; gap: 14px; }
@media (min-width: 700px) { .form { grid-template-columns: 1fr 1fr; } .form .field--wide, .form > .btn, .form__ok, .form__summary-err { grid-column: 1 / -1; } .form > .btn { justify-self: start; } }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field__opt { color: var(--ink-2); font-weight: 400; }
.field__err { color: var(--err); font-size: 14px; margin-top: 6px; display: flex; gap: 6px; }
.field__err::before { content: "!"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--err); color: #fff; font-size: 12px; font-weight: 700; flex: 0 0 18px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--err); box-shadow: 0 0 0 3px rgba(215, 0, 21, .12); }
.form__ok { padding: 14px 16px; border-radius: 14px; background: #eefaf1; color: #0b5c26; }
.form__summary-err { padding: 12px 16px; border-radius: 14px; background: #fff0f0; color: var(--err); }

/* ---------- корзина и оформление ---------- */
.cart, .checkout, .favs, .cmp, .events, .seocheck { padding-bottom: 48px; }
.cart__body, .checkout__body { display: grid; gap: 20px; }
@media (min-width: 1024px) { .cart__body, .checkout__body { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; } .summary { position: sticky; top: calc(var(--hdr) + 16px); } }
.cart__loading { color: var(--ink-2); padding: 20px 0; }
.citems { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.citem { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 22px; background: #fff; }
@media (min-width: 700px) { .citem { grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; padding: 18px; } }
.citem__img { width: 84px; height: 84px; border-radius: 16px; background: #f5f5f7; display: grid; place-items: center; overflow: hidden; }
@media (min-width: 700px) { .citem__img { width: 120px; height: 120px; } }
.citem__img img { width: 86%; height: 86%; object-fit: contain; }
.citem__name { font: 600 17px/1.25 var(--display); color: var(--ink); text-decoration: none; }
.citem__cfg { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.citem__avail { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; grid-column: 1 / -1; }
@media (min-width: 700px) { .citem__row { grid-column: auto; flex-direction: column; align-items: flex-end; margin-top: 0; } }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: #f5f5f7; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.qty button:disabled { color: #c7c7cc; cursor: default; }
.qty button .ico { width: 18px; height: 18px; }
.qty output { min-width: 28px; text-align: center; font-weight: 600; }
.citem__price { text-align: right; }
.citem__price b { font: 600 19px var(--display); display: block; }
.citem__price span { color: var(--ink-2); font-size: 13px; }
.citem__del { border: 0; background: transparent; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; font: 400 14px var(--ui); cursor: pointer; min-height: 40px; padding: 0 6px; }
.citem__del .ico { width: 18px; height: 18px; }
.summary { background: #fff; border-radius: var(--radius-lg); padding: 20px; }
.summary__h { font: 600 20px var(--display); margin-bottom: 10px; }
.paysel { border: 0; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paysel legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.paysel__opt { position: relative; }
.paysel__opt input { position: absolute; opacity: 0; }
.paysel__opt span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 15px; }
.paysel__opt input:checked + span { box-shadow: inset 0 0 0 2px #0071e3; font-weight: 600; }
.paysel__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.summary__rows { margin: 0; display: grid; gap: 8px; font-size: 15px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 10px; }
.summary__rows dt { color: var(--ink-2); }
.summary__rows dd { margin: 0; text-align: right; }
.summary__total { padding-top: 10px; border-top: 1px solid #e8e8ed; font-size: 18px; }
.summary__total dt { color: var(--ink) !important; font-weight: 600; }
.summary__total dd { font: 600 24px var(--display); }
.summary__alt { color: var(--ink-2); font-size: 14px; margin-top: 6px; text-align: right; }
.summary__go { width: 100%; margin-top: 16px; }
.summary .note { margin-top: 12px; }
.summary__edit { display: inline-block; margin-top: 12px; font-size: 15px; }
.co-step { border: 0; margin: 0; padding: 18px; border-radius: 22px; background: #fff; display: grid; gap: 14px; grid-column: 1 / -1; }
.co-step__t { font: 600 20px var(--display); display: flex; align-items: center; gap: 10px; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.co-step__t + * { clear: both; }
.co-step__t b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0071e3; color: #fff; font-size: 14px; }
.radios { display: grid; gap: 8px; }
.radios--2 { grid-template-columns: 1fr 1fr; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; min-height: 56px; }
.radio-card small { color: var(--ink-2); font-size: 13px; }
.radio-card input:checked + span { box-shadow: inset 0 0 0 2px #0071e3; }
.radio-card input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.co-items { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.co-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.co-items img { width: 52px; height: 52px; object-fit: contain; border-radius: 12px; background: #f5f5f7; }
.co-items b { display: block; font-size: 14px; }
.co-items span { color: var(--ink-2); }
.co-items--done { max-width: 560px; margin: 16px auto; text-align: left; }
.done { text-align: center; padding: 40px 18px; border-radius: var(--radius-lg); background: #fff; margin-top: 8px; }
.done__ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #eefaf1; color: var(--ok); }
.done__ico .ico { width: 32px; height: 32px; stroke-width: 2.4; }
.done .h2 { margin-top: 12px; }
.done__total { font-size: 18px; margin-top: 8px; }
.done__ship { color: var(--ink-2); margin: 6px 0 16px; }

/* ---------- сравнение ---------- */
.cmp__tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.cmp__tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #e8e8ed; font: 400 15px var(--ui); cursor: pointer; }
.cmp__tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.cmp__wrap { overflow-x: auto; border-radius: 22px; background: #fff; }
.cmp__table, .events__table, .seocheck__table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.cmp__table th, .cmp__table td, .events__table th, .events__table td, .seocheck__table th, .seocheck__table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #f0f0f3; }
.cmp__table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: #fff; color: var(--ink-2); font-weight: 400; min-width: 120px; max-width: 160px; }
.cmp__table td { min-width: 180px; }
.cmp__head img { width: 120px; height: 120px; object-fit: contain; display: block; margin-bottom: 8px; }
.cmp__head a { font-weight: 600; color: var(--ink); text-decoration: none; }
.cmp__head .btn { margin-top: 8px; }
.cmp__diff { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; min-height: 44px; }
.cmp__table tr.is-same { display: none; }
.cmp__table.show-all tr.is-same { display: table-row; }
.seocheck__table small { display: block; color: var(--ink-2); font-size: 12px; margin-top: 4px; }
.seocheck__table small.bad { color: var(--err); }
.seocheck__table .break { word-break: break-all; }

/* ---------- сервисы главной: ссылка на всю плитку ---------- */
.scard--link { position: relative; }
.scard__link { color: inherit; text-decoration: none; }
.scard__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.scard__link:focus-visible { outline: none; }
.scard--link:has(.scard__link:focus-visible) { box-shadow: 0 0 0 3px #0071e3; }
.ring-fallback { position: relative; z-index: 2; list-style: none; margin: 0; padding: 12px var(--pad); display: grid; gap: 6px; }

/* ---------- спокойный режим ---------- */
.calm .facets, .calm .sticky-buy, .calm .opt, .calm .pgrid.is-loading, .calm .specs__group summary::after, .calm .faq__item summary::after { transition: none; }
@media (prefers-reduced-motion: reduce) { .facets, .sticky-buy, .opt { transition: none; } }

/* ---------- главная: заголовок H1 для поиска виден и на телефоне ---------- */
@media (max-width: 699px) {
  .spin__head .spin__h1 { display: block; font-size: 13px; line-height: 1.3; margin: 0 0 6px; }
  .spin__card { padding-top: 12px; }
}

/* ---------- зоны касания не меньше 44×44 (ТЗ §11) ---------- */
.pcard .icon-btn--soft { width: 44px; height: 44px; flex: 0 0 44px; }
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .stage__nav { width: 44px; height: 44px; }
  .chip-x, .subcat, .sortsel select { min-height: 44px; }
}

/* ---------- телефон: полоса демо в одну строку, витрина с кнопками — в первом экране ---------- */
@media (max-width: 699px) {
  .demo-strip { flex-wrap: nowrap; gap: 10px; padding: 5px 12px; }
  .demo-city label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .demo-city select { min-height: 26px; padding: 0 6px; font-size: 12px; max-width: 150px; }
  .spin__head .spin__h1 { font-size: 12px; line-height: 1.25; margin: 0 0 2px; }
  .spin__card { padding-top: 8px; }
}


/* ---------- правки по независимому аудиту 28.09 (Downloads/STAGE_B_AUDIT/AUDIT_RU.md) ---------- */
/* №2: карточка товара не шире экрана — колонка сетки не растягивается миниатюрами */
.prod { grid-template-columns: minmax(0, 1fr); }
.prod__gallery, .prod__info, .gal__main, .gal__thumbs { min-width: 0; }
/* №22: планшет — фото и покупка в две колонки, галерея не выше 55 % экрана */
@media (min-width: 768px) {
  .prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
  .prod__gallery { position: sticky; top: calc(var(--hdr) + 16px); }
  .gal__slide { aspect-ratio: auto; height: min(55vh, 520px); }
}
@media (min-width: 1024px) { .prod { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } .gal__slide { height: auto; aspect-ratio: 1 / 1; } }
.gal__zoom img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.gal__zoom[disabled] { cursor: default; }
/* №3 и №21: строка «Фильтры + сортировка», чипы и формы переносятся, а не выталкивают страницу */
.listing__bar { flex-wrap: wrap; }
.sortsel { min-width: 0; max-width: 100%; }
.sortsel select { max-width: 100%; text-overflow: ellipsis; }
.empty__search { flex-wrap: wrap; justify-content: center; }
.empty__search input { min-width: 0; flex: 1 1 200px; }
.search-hero { flex-wrap: wrap; }
.search-hero input { min-width: 0; flex: 1 1 220px; }
.opt { white-space: normal; text-align: left; max-width: 100%; }
.chip-x, .landings a, .subcat { max-width: 100%; }
.buybox__prices, .buybox__act, .facets__foot, .radios--2 { flex-wrap: wrap; }
@media (max-width: 359px) { .sortsel select { font-size: 14px; padding-right: 30px; } .listing__filters-btn { padding-inline: 12px; } }
/* №9: плитки разделов — белый фон, фото вписано целиком */
.catcard__img { background: #fff; }
.catcard__img img { width: 76%; height: 76%; object-fit: contain; object-position: center; }
/* №10: закреплённая кнопка покупки не закрывает подвал */
body.has-sticky-buy { padding-bottom: calc(var(--tabbar) + 64px); }
@media (min-width: 1024px) { body.has-sticky-buy { padding-bottom: 0; } }
/* №15: выбор города — зона касания 44 px */
@media (max-width: 699px) {
  .demo-strip { padding: 2px 12px; }
  .demo-city select { min-height: 44px; font-size: 13px; background: transparent; border: 0; color: #f5f5f7; padding: 0 4px; }
}
/* №19: нажатое «Сравнить» — белая иконка на синем, красное сердце — только у избранного */
.icon-btn[data-compare][aria-pressed="true"] svg { fill: none; stroke: #fff; }
.icon-btn[data-compare][aria-pressed="true"] { background: #0071e3; color: #fff; }
.icon-btn--soft[data-fav][aria-pressed="true"] { background: rgba(16, 16, 20, .06); }
/* №31: зоны касания ссылок */
.crumbs a, .ftr__phone a, .storecard__phone a, .prod__brand a, .landings a { min-height: 44px; display: inline-flex; align-items: center; }
.ftr__more { min-height: 44px; display: inline-flex; align-items: center; }
/* №34: на телефоне «крошки» — одна строка «← родительский раздел» */
@media (max-width: 699px) {
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: inline-flex; }
  .crumbs li:nth-last-child(2)::before { content: "←"; margin: 0 6px 0 0; color: var(--ink-2); }
  .crumbs li + li::before { content: none; }
  .crumbs li:nth-last-child(2) + li { display: none; }
}
/* №28: модель без фото — та же заглушка, что в карточке */
.pcard__noimg { display: grid; place-items: center; gap: 6px; width: 100%; height: 100%; color: var(--ink-2); font-size: 13px; text-align: center; padding: 12px; }
.pcard__noimg .ico { width: 34px; height: 34px; color: #aeaeb2; }
/* №35: иконка профиля и кнопка «Убрать» — в палитре системы */
.done__ico--info { background: #e8f1fc; color: #0071e3; }
.cmp__head .btn--ghost { background: #e8e8ed; color: var(--ink); }
/* №7: сравнение в шапке телефона, когда в нём есть модели */
@media (max-width: 1023px) { .has-compare .hdr__icons .hdr__compare { display: inline-flex; } }
/* №14: значения фильтра без моделей — видны, но неактивны */
.fpill input:disabled + span, .fsw input:disabled ~ .fsw__txt, .fchk input:disabled ~ .fchk__txt { color: #aeaeb2; }
.fpill input:disabled + span { background: #fafafa; cursor: default; }
.fsw input:disabled + .fsw__dot { opacity: .35; }
.fpill span b { font-weight: 400; color: var(--ink-2); margin-left: 6px; font-size: 13px; }
.fsw__n { color: var(--ink-2); font-size: 13px; margin-left: auto; }
/* №18: сообщение, когда выбор поменял другой параметр */
.picker__note { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff7ed; color: var(--ink); font-size: 14px; }
/* уведомление со ссылкой (сравнение) */
.toast a { color: #6fc3ff; pointer-events: auto; margin-left: 8px; font-weight: 600; }
.toast.has-action { pointer-events: auto; }
.ftr__cols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); max-width: 760px; }
.listing__morebox .empty { width: 100%; }
.fpill span { min-height: 44px; }
.gal__zoom--static { display: grid; place-items: center; width: 100%; height: 100%; padding: 6%; }
.gal__zoom--static img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- узкий экран 320 и крупный текст 200 %: всё переносится внутри экрана ---------- */
.citem__row { flex-wrap: wrap; row-gap: 8px; }
.citem > div, .field, .co-step, .summary, .checkout__form { min-width: 0; }
.citem__name, .citem__cfg, .co-items b, .co-items span { overflow-wrap: anywhere; }
.pcard__act { flex-wrap: wrap; }
.pcard .btn, .sticky-buy .btn, .buybox__act .btn { white-space: normal; height: auto; padding-block: 8px; text-align: center; }
.sticky-buy__in { flex-wrap: wrap; row-gap: 6px; padding-block: 6px; }
.radios--2 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.form input, .form select, .form textarea { min-width: 0; max-width: 100%; }
.tabbar a { min-width: 0; }
.tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing__title, .page-head, .info__head { overflow-wrap: anywhere; }
.form { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.checkout__body, .cart__body { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .checkout__body, .cart__body { grid-template-columns: minmax(0, 1fr) 380px; } }
.summary__rows div { flex-wrap: wrap; }
.keyspecs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcard__price b, .buybox__cash b, .buybox__card b, .summary__total dd { overflow-wrap: anywhere; }
fieldset { min-inline-size: 0; }
.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pcard__price2, .pcard__meta, .pcard__name, .pcard__tag, .pcard__avail { overflow-wrap: anywhere; min-width: 0; }
.pcard--grid { min-width: 0; }
.form .btn, .summary .btn, .empty .btn, .demoform .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 10px; text-align: center; max-width: 100%; }
body.has-sticky-buy { padding-bottom: calc(var(--tabbar) + var(--sticky-h, 72px) + 8px); }
@media (min-width: 1024px) { body.has-sticky-buy { padding-bottom: 0; } }
/* отступ под закреплённую покупку — всегда на карточке товара: иначе появление панели удлиняет страницу на ходу */
@media (max-width: 1023px) { body.page-product { padding-bottom: calc(var(--tabbar) + var(--sticky-h, 72px) + 8px); } }

/* ---------- 29.09, отзывы сотрудников в группе «PLAYBOOM» ---------- */
/* меню каталога на телефоне: прокрутка внутри меню, страница под ним стоит, меню не закрывается */
@media (max-width: 1023px) {
  .catalog-panel { max-height: var(--catalog-max, 80vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
  html.is-catalog-open { overflow: hidden; }
}
/* кнопки серий моделей: выбранная — тёмная */
.subcat.is-on { background: var(--ink); color: #fff; }
.subcat.is-on span { color: rgba(255, 255, 255, .72); }
/* цвет варианта в карточке списка: при фильтре по цвету видно, какой цвет по ссылке */
.pcard__dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: var(--dot, #ccc); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); vertical-align: 0; }
/* у выбранного цвета нет своего фото */
.gal__note { margin: 10px 0 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); text-align: center; }
/* фото в карточках списка одного размера: белое поле, фото без полей вписано с одинаковым отступом */
.pcard--grid .pcard__img { background: #fff; }
.pcard--grid .pcard__img img { width: 86%; height: 86%; object-fit: contain; }
/* выбор варианта в одну строку (Алексей): «256 ГБ • 512 ГБ • 1 ТБ • 2 ТБ», «● Night Sky ○ Star White».
   Выбранное — тёмное жирное на светлой подложке, остальное серым; поле касания 44 px; выбранное значение
   в заголовке не повторяется (для экранного диктора остаётся). */
.picker__legend { margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.picker__opts { gap: 2px 0; align-items: center; }
.picker__opts .opt { min-height: 44px; padding: 0 12px; border-radius: 12px; background: transparent; box-shadow: none; color: var(--ink-2); font-weight: 500; }
.picker__opts:not(.picker__opts--swatch) .opt + .opt::before { content: "•"; position: absolute; left: -3px; color: var(--ink-3); pointer-events: none; }
.picker__opts .opt.is-on { color: var(--ink); font-weight: 700; background: #f0f0f3; box-shadow: none; }
.picker__opts--swatch { gap: 2px 4px; }
.picker__opts--swatch .opt { padding: 0 12px 0 8px; }
.picker__opts--swatch .opt__dot { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.picker__opts--swatch .opt.is-on .opt__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--ink); }
.picker__opts .opt.is-na { background: transparent; color: var(--ink-3); }
@media (hover: hover) { .picker__opts .opt:not(.is-on):hover { color: var(--ink); background: #f5f5f7; box-shadow: none; } }
/* ряд категорий главной: все кнопки в одну строку при любом их числе (с iPad их 9, «Колонки» уезжали вниз) */
@media (min-width: 700px) {
  .cats__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}
html:not(.calm) .cats__list > li:nth-child(9) { animation-delay: .32s; }
/* карточка товара в узком окне и на телефоне боком: фото не во весь экран, название и цена видны сразу.
   480–639 px — одна колонка с фото пониже; 640–767 px — две колонки, как на планшете */
@media (min-width: 480px) and (max-width: 639px) {
  .gal__slide { aspect-ratio: auto; height: min(56vh, 480px); }
}
@media (min-width: 640px) and (max-width: 767px) {
  .prod { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
  .prod__gallery { position: sticky; top: calc(var(--hdr) + 16px); }
  .gal__slide { aspect-ratio: auto; height: min(50vh, 420px); }
}
/* галерея держит свою форму: вертикальное фото (iPhone 18 Pro) больше не растягивает квадрат выше экрана */
.gal__slide { min-height: 0; overflow: hidden; }
/* группы в списке раздела («Рекомендуем»): заголовок серии или подраздела, внутри — от дорогих к дешёвым */
.pgrid__group { grid-column: 1 / -1; margin: 20px 0 0; }
.pgrid__group:first-child { margin-top: 0; }
.pgrid__title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.pgrid__title span { margin-left: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
/* галерея карточки товара: фото без полей заполняет квадрат одинаково у всех товаров (отзыв Андрея 29.09) */
.gal__zoom img, .gal__zoom--static img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }
/* выгода при оплате наличными под ценами (отзыв Алексея 29.09) */
.buybox__save { margin: 8px 0 0; display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: #e8f6ec; color: #1d6b3a; font-size: 14px; font-weight: 600; }
/* ---------- акции-кружки перед Trade-in и их просмотр, как истории в Telegram (29.09) ---------- */
.promos { padding: 32px 0 8px; }
.promos__t { margin: 0 0 16px; }
.promos__list { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.promos__list::-webkit-scrollbar { display: none; }
.promo { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; flex: 0 0 auto; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.promo__ring { display: block; width: 78px; height: 78px; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #0071e3, #7a3cf0, #e0427a, #f7a13d, #0071e3); box-sizing: border-box; }
.promo.is-seen .promo__ring { background: #d2d2d7; }
.promo__img { display: grid; place-items: center; width: 100%; height: 100%; border: 3px solid #fff; border-radius: 50%; background: #fff; overflow: hidden; box-sizing: border-box; }
.promo__img img { width: 82%; height: 82%; object-fit: contain; }
.promo__img .ico { width: 30px; height: 30px; stroke-width: 1.6; }
.promo__label { max-width: 100%; font-size: 13px; line-height: 1.25; font-weight: 600; text-align: center; }
@media (hover: hover) { .promo:hover .promo__img { transform: scale(1.04); transition: transform .2s; } }
@media (min-width: 1024px) { .promo { width: 104px; } .promo__ring { width: 92px; height: 92px; } .promos__list { gap: 20px; } }
.story { width: min(420px, 100vw); max-width: 100vw; height: min(760px, 100dvh); max-height: 100dvh; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); overflow: hidden; }
.story[open] { display: block; }
.story::backdrop { background: rgba(0, 0, 0, .72); }
@media (max-width: 599px) { .story { width: 100vw; height: 100dvh; border-radius: 0; } }
.story__bars { position: absolute; top: 14px; left: 14px; right: 60px; z-index: 2; display: flex; gap: 4px; }
.story__bars i { flex: 1; height: 3px; border-radius: 2px; background: rgba(0, 0, 0, .12); overflow: hidden; }
.story__bars i b { display: block; width: 0; height: 100%; background: var(--ink); }
.story__bars i.is-done b { width: 100%; }
.story__bars i.is-on b { animation: pbStory 7s linear forwards; }
@keyframes pbStory { to { width: 100%; } }
.calm .story__bars i.is-on b { animation: none; width: 100%; }
@media (prefers-reduced-motion: reduce) { .story__bars i.is-on b { animation: none; width: 100%; } }
.story__close { position: absolute; top: 2px; right: 4px; z-index: 3; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.story__card { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; height: 100%; padding: 60px 28px 32px; box-sizing: border-box; text-align: center; }
.story__media { display: grid; place-items: center; min-height: 0; max-height: 40%; }
.story__img { max-width: 72%; max-height: 100%; object-fit: contain; }
.story__ico { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: #f0f0f3; }
.story__ico .ico { width: 52px; height: 52px; stroke-width: 1.4; }
.story__title { margin: 0; font-size: 26px; line-height: 1.15; }
.story__text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.story__cta { position: relative; z-index: 2; align-self: center; }
.story__nav { position: absolute; top: 60px; bottom: 110px; z-index: 1; width: 34%; border: 0; background: transparent; cursor: pointer; }
.story__nav--prev { left: 0; }
.story__nav--next { right: 0; }
/* фото в карточке акции — не выше трети экрана, текст под ним не перекрывается */
.story__media { flex: 0 0 auto; height: min(34vh, 280px); max-height: none; }
.story__img { width: auto; height: 100%; max-width: 86%; max-height: 100%; object-fit: contain; }
.story__card { justify-content: center; overflow-y: auto; }
.story__media { display: flex; align-items: center; justify-content: center; height: auto; }
.story__img { width: auto; height: auto; max-width: 86%; max-height: min(34vh, 280px); }
