/* Тема ProBeauty. Сначала телефон (390 px), шире — через min-width. Классы с префиксом pb-, чтобы не пересекаться с Bootstrap. */

@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }


:root {
  --pb-header-h: 56px;
  --pb-ink: #16161A;
  --pb-text: #3A3835;
  --pb-muted: #5E5B57;
  --pb-line: #ECE8E2;
  --pb-border: #DCD7CF;
  --pb-sand: #F6F3EE;
  --pb-accent: #B3264F;
  --pb-ok: #2F6B4F;
  --pb-radius: 12px;
  --pb-gutter: 16px;
  --pb-max: 1240px;
}

[hidden] { display: none !important; }
html.pb-noscroll { overflow: hidden; }

body.pb {
  margin: 0;
  background: #fff;
  color: var(--pb-ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
body.pb a { color: var(--pb-ink); }
body.pb a:hover, body.pb a:focus { color: #000; }
body.pb :focus-visible { outline: 2px solid var(--pb-ink); outline-offset: 2px; }
body.pb h1, body.pb h2, body.pb h3 { font-family: inherit; color: var(--pb-ink); letter-spacing: -0.01em; }

.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb-skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--pb-ink); color: #fff !important; padding: 10px 16px; border-radius: 999px; }
.pb-skip:focus { top: 8px; }

/* Кнопка-иконка 44×44 */
.pb-ib { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--pb-ink); cursor: pointer; position: relative; text-decoration: none; flex: 0 0 44px; }
.pb-ib svg { width: 24px; height: 24px; }
.pb-cnt { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pb-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* Полоса с акцией */
.pb-promo { background: var(--pb-sand); font-size: 13px; font-weight: 600; text-align: center; padding: 9px var(--pb-gutter); }

/* Шапка */
.pb-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--pb-line); }
.pb-header__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 56px; padding: 0 6px; max-width: var(--pb-max); margin: 0 auto; }
.pb-only-d { display: none !important; }
.pb-logo { flex: 1 1 auto; display: flex; align-items: center; min-height: 44px; padding-left: 2px; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; text-decoration: none; }
.pb-logo img { max-height: 34px; width: auto; }

.pb-search { order: 10; flex: 0 0 100%; padding: 0 10px 12px; margin: 0; }
.pb-search.is-hidden { display: none; }
.pb-search__field { display: flex; align-items: center; gap: 10px; height: 48px; margin: 0; padding: 0 16px; background: var(--pb-sand); border-radius: 999px; color: var(--pb-muted); font-weight: 400; }
.pb-search__field svg { width: 20px; height: 20px; flex: 0 0 20px; }
.pb-search__field input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--pb-ink); outline: none; }

/* Выдвижное меню */
.pb-drawer { position: fixed; inset: 0; z-index: 50; }
.pb-drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 26, .45); }
.pb-drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(420px, 100%); background: #fff; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; }
.pb-drawer__head { display: flex; align-items: center; height: 56px; padding: 0 6px; border-bottom: 1px solid var(--pb-line); position: sticky; top: 0; background: #fff; z-index: 1; }
.pb-drawer__title { font-weight: 800; font-size: 18px; padding-left: 4px; }
.pb-drawer__tools { padding: 12px var(--pb-gutter) 0; }
.pb-pane { padding-top: 12px; }
.pb-tabs { display: flex; gap: 4px; padding: 4px; background: var(--pb-sand); border-radius: 999px; }
.pb-tab { flex: 1 1 0; height: 40px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--pb-muted); cursor: pointer; }
.pb-tab.is-on { background: var(--pb-ink); color: #fff; }
.pb-filterbox { display: flex; align-items: center; gap: 10px; height: 44px; margin: 0; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 999px; color: var(--pb-muted); font-weight: 400; }
.pb-filterbox svg { width: 18px; height: 18px; flex: 0 0 18px; }
.pb-filterbox input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--pb-ink); outline: none; }

.pb-acc, .pb-acc__sub { list-style: none; margin: 0; padding: 0; }
.pb-acc { margin-top: 12px; border-top: 1px solid var(--pb-line); }
.pb-acc__item { border-bottom: 1px solid var(--pb-line); }
.pb-acc__row { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 52px; padding: 0 var(--pb-gutter); border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--pb-ink); text-align: left; text-decoration: none; cursor: pointer; }
.pb-acc__row svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--pb-muted); transition: transform .15s; }
.pb-acc__row[aria-expanded="true"] { font-weight: 800; background: var(--pb-sand); }
.pb-acc__row[aria-expanded="true"] svg { transform: rotate(180deg); color: var(--pb-ink); }
.pb-acc__n { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--pb-muted); }
.pb-acc__sub { background: var(--pb-sand); padding-bottom: 8px; }
.pb-acc__link { display: flex; align-items: center; min-height: 44px; padding: 0 var(--pb-gutter) 0 32px; font-size: 15px; text-decoration: none; }
.pb-acc__link.is-strong { font-weight: 700; }

.pb-drawer__foot { margin-top: auto; padding: 20px var(--pb-gutter) 32px; display: flex; flex-direction: column; gap: 12px; }
.pb-drawer__foot > a { min-height: 44px; display: flex; align-items: center; font-size: 16px; font-weight: 600; text-decoration: none; }

/* Чипы */
.pb-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--pb-border); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--pb-ink); white-space: nowrap; text-decoration: none; cursor: pointer; }
.pb-chip.is-on { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-lang { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.pb-lang .pb-chip { height: 36px; padding: 0 14px; }

/* Кнопки */
.pb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--pb-ink); color: #fff !important; font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pb-btn-o { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1.5px solid var(--pb-ink); border-radius: 999px; background: #fff; color: var(--pb-ink); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }

/* Основа страницы */
.pb-main { display: block; min-height: 50vh; }

/* Подвал (снимаем position:absolute из стилей ядра OpenCart 4) */
.pb-footer { position: static; bottom: auto; border: 0; padding-top: 0; margin-top: 40px; background: var(--pb-ink); color: #fff; }
.pb-footer__in { max-width: var(--pb-max); margin: 0 auto; padding: 28px var(--pb-gutter) 36px; }
.pb-footer__logo { font-weight: 800; font-size: 21px; letter-spacing: -0.03em; padding-bottom: 12px; }
.pb-footer__links { list-style: none; margin: 0; padding: 0; }
.pb-footer__links a { display: flex; align-items: center; min-height: 40px; color: #fff !important; font-size: 15px; text-decoration: none; }
.pb-footer__small { margin: 16px 0 0; font-size: 13px; color: #BDB8B0; }

/* Страницы темы: общие элементы */
.pb-page { max-width: var(--pb-max); margin: 0 auto; }
.pb-pad { padding-left: var(--pb-gutter); padding-right: var(--pb-gutter); }
.pb-muted { color: var(--pb-muted); font-size: 14px; margin: 2px 0 0; }
.pb-h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.pb-h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.pb-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted) !important; text-decoration: none; padding: 4px 0; }
.pb-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--pb-ink); text-decoration: underline; min-height: 32px; cursor: pointer; }
.pb-btn-block { display: flex; width: 100%; }
.pb-btn-lg { height: 52px; font-size: 15px; }
.pb-prose { font-size: 15px; line-height: 1.6; color: var(--pb-text); }
.pb-prose p { margin: 0 0 10px; }
.pb-prose h2, .pb-prose h3 { font-size: 17px; font-weight: 800; margin: 16px 0 8px; }

.pb-crumbs ol { list-style: none; margin: 0; padding: 12px var(--pb-gutter) 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--pb-muted); }
.pb-crumbs li + li::before { content: "/"; margin-right: 6px; }
.pb-crumbs a { color: var(--pb-muted) !important; }

.pb-banner { display: block; width: calc(100% - 2 * var(--pb-gutter)); height: auto; margin: 12px var(--pb-gutter) 0; border-radius: 16px; }
.pb-brandhead { padding: 16px var(--pb-gutter) 0; display: flex; flex-direction: column; gap: 10px; }
.pb-brandhead__row { display: flex; align-items: center; gap: 14px; }
.pb-brandhead__logo { flex: 0 0 104px; height: 72px; display: flex; align-items: center; justify-content: center; padding: 10px; background: var(--pb-sand); border-radius: var(--pb-radius); }
.pb-brandhead__logo img { max-width: 100%; max-height: 44px; width: auto; height: auto; mix-blend-mode: multiply; }
.pb-more__text { max-height: 4.8em; overflow: hidden; position: relative; }
.pb-more__text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6em; background: linear-gradient(rgba(255,255,255,0), #fff); }
.pb-more.is-open .pb-more__text { max-height: none; }
.pb-more.is-open .pb-more__text::after { display: none; }

.pb-sec { padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.pb-sec > .pb-h2 { padding: 0 var(--pb-gutter); }
.pb-lines { list-style: none; margin: 0; padding: 0 var(--pb-gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.pb-linetile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.pb-linetile img, .pb-linetile__ph { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--pb-sand); }
.pb-linetile__ph { display: flex; align-items: center; justify-content: center; padding: 8px; font-weight: 800; font-size: 15px; text-align: center; color: var(--pb-muted); }
.pb-linetile__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.pb-linetile__n { font-size: 13px; color: var(--pb-muted); }
.pb-sec .pb-btn-block { width: auto; margin: 0 var(--pb-gutter); }

.pb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--pb-gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pb-chips::-webkit-scrollbar { display: none; }
.pb-chips .pb-chip { flex: 0 0 auto; }
.pb-chip svg { width: 16px; height: 16px; }
.pb-chips--lines { padding-top: 16px; }

.pb-bar { position: sticky; top: var(--pb-header-h); z-index: 20; display: flex; gap: 8px; padding: 12px var(--pb-gutter); background: #fff; border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); }
.pb-bar__btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 700; color: var(--pb-ink); cursor: pointer; }
.pb-bar__btn svg { width: 18px; height: 18px; }
.pb-bar__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--pb-ink); color: #fff; font-size: 12px; line-height: 20px; }
.pb-sort { flex: 1 1 0; display: flex; }
select.pb-bar__btn { -webkit-appearance: none; appearance: none; text-align: center; text-align-last: center; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316161A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 32px; }
.pb-count { margin: 12px 0 0; font-size: 13px; }

/* Карточки товаров */
.pb-grid { list-style: none; margin: 0; padding: 12px var(--pb-gutter) 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
.pb-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pb-card__link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.pb-card__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--pb-sand); border-radius: var(--pb-radius); overflow: hidden; }
.pb-card__img img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pb-badge { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: 999px; background: var(--pb-accent); color: #fff; font-size: 12px; font-weight: 700; }
.pb-card__kicker { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-card__name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.05em; }
.pb-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 16px; font-weight: 800; }
.pb-price__now.is-sale { color: var(--pb-accent); }
.pb-price s { font-size: 13px; font-weight: 500; color: var(--pb-muted); }
.pb-card__add { width: 100%; margin-top: auto; }
.pb-card__add.is-busy { opacity: .6; pointer-events: none; }
.pb-loadmore { padding-top: 24px; }
.pb-empty { padding-top: 24px; }

/* Нижняя шторка фильтров */
.pb-sheet { position: fixed; inset: 0; z-index: 60; }
.pb-sheet__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 26, .45); }
.pb-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: calc(100% - 48px); margin: 0; display: flex; flex-direction: column; background: #fff; border-radius: 20px 20px 0 0; }
.pb-sheet__grip { width: 40px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--pb-border); }
.pb-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 4px var(--pb-gutter); border-bottom: 1px solid var(--pb-line); }
.pb-sheet__title { margin: 0; font-size: 18px; font-weight: 800; }
.pb-sheet__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--pb-gutter); display: flex; flex-direction: column; gap: 22px; }
.pb-sheet__foot { display: flex; gap: 10px; padding: 12px var(--pb-gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--pb-line); }
.pb-sheet__foot .pb-btn-o { flex: 0 0 120px; }
.pb-sheet__foot .pb-btn { flex: 1 1 auto; }
.pb-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.pb-fs legend { border: 0; margin: 0 0 10px; padding: 0; font-size: 16px; font-weight: 800; color: var(--pb-ink); }
.pb-fs__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-fchip { position: relative; margin: 0; font-weight: 600; cursor: pointer; }
.pb-fchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pb-fchip span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border: 1px solid var(--pb-border); border-radius: 999px; font-size: 14px; line-height: 1.3; }
.pb-fchip small { font-size: 12px; color: var(--pb-muted); font-weight: 500; }
.pb-fchip input:checked + span { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-fchip input:checked + span small { color: #CFCAC2; }
.pb-fchip input:focus-visible + span { outline: 2px solid var(--pb-ink); outline-offset: 2px; }
.pb-fs__row { display: flex; gap: 12px; }
.pb-field { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 600; color: var(--pb-muted); }
.pb-field input { height: 44px; padding: 0 12px; border: 1px solid var(--pb-border); border-radius: 10px; font: inherit; font-size: 16px; color: var(--pb-ink); width: 100%; }
.pb-check { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; font-size: 15px; font-weight: 700; cursor: pointer; }
.pb-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--pb-ink); }

/* Всплывающее сообщение */
.pb-toast { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--pb-ink); color: #fff; font-size: 14px; font-weight: 700; transition: opacity .2s, transform .2s; pointer-events: none; }
.pb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Страницы, которые пока берут шаблоны ядра (Bootstrap 5): мягкая подгонка */
.pb-alert { position: fixed; top: 64px; left: 8px; right: 8px; z-index: 80; }
body.pb .container { padding-left: var(--pb-gutter); padding-right: var(--pb-gutter); }
body.pb .breadcrumb { background: none; padding: 12px 0 0; margin: 0 0 12px; font-size: 13px; }
body.pb .breadcrumb > li + li::before { content: "/\00a0"; color: var(--pb-muted); }
body.pb .breadcrumb a { color: var(--pb-muted); }
body.pb .btn-primary { background: var(--pb-ink); border-color: var(--pb-ink); border-radius: 999px; }
body.pb .form-control { height: 44px; border-radius: 10px; box-shadow: none; font-size: 16px; }

@media (min-width: 768px) {
  :root { --pb-gutter: 24px; }
  .pb-footer__links { columns: 2; column-gap: 32px; }
  .pb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .pb-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pb-sec .pb-btn-block { align-self: center; width: 320px; }
  .pb-loadmore .pb-btn-block { width: 320px; margin: 0 auto; }
  .pb-sheet__panel { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; }
  .pb-bar { justify-content: flex-start; }
  .pb-bar__btn, .pb-sort { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1024px) {
  .pb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pb-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pb-h1 { font-size: 36px; }
}

/* Широкий экран: поиск в строке шапки, меню с панелью брендов */
@media (min-width: 1024px) {
  :root { --pb-header-h: 121px; }
  .pb-only-m { display: none !important; }
  .pb-only-d { display: block !important; }
  .pb-header__bar { flex-wrap: nowrap; height: 72px; padding: 0 var(--pb-gutter); gap: 8px; }
  .pb-logo { flex: 0 0 auto; font-size: 24px; }
  .pb-logo img { max-height: 40px; }
  .pb-search, .pb-search.is-hidden { display: block; order: 0; flex: 1 1 auto; max-width: 560px; margin: 0 auto; padding: 0; }
  .pb-header__lang .pb-lang { flex-wrap: nowrap; gap: 4px; }
  .pb-header__lang .pb-chip { height: 32px; padding: 0 10px; font-size: 13px; }
  .pb-promo { font-size: 14px; }

  .pb-nav { border-top: 1px solid var(--pb-line); position: relative; }
  .pb-nav__list { list-style: none; margin: 0 auto; padding: 0 var(--pb-gutter); max-width: var(--pb-max); display: flex; gap: 4px; }
  .pb-nav__link { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--pb-ink); text-decoration: none; cursor: pointer; border-bottom: 2px solid transparent; }
  .pb-nav__link svg { width: 16px; height: 16px; transition: transform .15s; }
  .pb-nav__link[aria-expanded="true"] { border-bottom-color: var(--pb-ink); }
  .pb-nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
  .pb-nav__item { position: static; }
  .pb-mega, .pb-drop { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; background: #fff; border-top: 1px solid var(--pb-line); border-bottom: 1px solid var(--pb-line); box-shadow: 0 16px 32px rgba(22, 22, 26, .08); }
  .pb-mega { display: grid; grid-template-columns: 280px 1fr; max-height: min(70vh, 640px); max-width: var(--pb-max); margin: 0 auto; }
  .pb-mega[hidden], .pb-drop[hidden] { display: none !important; }
  .pb-mega__brands { list-style: none; margin: 0; padding: 12px 0; overflow-y: auto; border-right: 1px solid var(--pb-line); background: var(--pb-sand); }
  .pb-mega__brand { display: flex; align-items: center; min-height: 40px; padding: 0 20px; font-size: 15px; font-weight: 600; text-decoration: none; }
  .pb-mega__brand.is-on { background: #fff; font-weight: 800; }
  .pb-mega__panes { overflow-y: auto; padding: 20px 32px 28px; }
  .pb-mega__all { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 16px; font-weight: 800; text-decoration: none; }
  .pb-mega__all .pb-acc__n { margin-left: 0; }
  .pb-mega__title { margin: 12px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted); }
  .pb-mega__lines, .pb-drop__list { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 32px; }
  .pb-mega__lines a, .pb-drop__list a { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; text-decoration: none; break-inside: avoid; }
  .pb-mega__lines a:hover, .pb-drop__list a:hover, .pb-mega__brand:hover { text-decoration: underline; }
  .pb-mega__lines .pb-acc__n { margin-left: 0; }
  .pb-drop { padding: 20px max(var(--pb-gutter), calc((100% - var(--pb-max)) / 2 + var(--pb-gutter))) 28px; }
  .pb-drop__list { columns: 4; }
}

/* Адаптация по ширине: планшет, ноутбук, большой монитор */
@media (min-width: 1024px) {
  .pb-chips { flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1024px) {
  :root { --pb-max: 100%; --pb-gutter: 32px; }
}
@media (min-width: 1440px) {
  :root { --pb-gutter: 48px; }
  .pb-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pb-lines { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  :root { --pb-gutter: 64px; }
  .pb-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pb-lines { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ===== Оформление заказа по шагам =====
   Телефон: ничего не «плавает» — поля 16px (iOS не увеличивает страницу), нет прокрутки вбок, у картинок заданы размеры,
   нижняя панель закреплена, под неё оставлен отступ, окно пакоматов — на весь экран (dvh учитывает адресную строку). */
.pb-co-page { overflow-x: clip; }
/* Чекаут: короткий футер под панелью оплаты */
.pb-cofoot { position: static; bottom: auto; width: auto; border: 0; padding: 18px var(--pb-gutter) calc(18px + env(safe-area-inset-bottom)); background: var(--pb-sand); text-align: center; font-size: 12px; color: var(--pb-muted); }
.pb-cofoot ul { list-style: none; margin: 0 auto; padding: 0; max-width: 720px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.pb-cofoot a { display: inline-flex; align-items: center; min-height: 32px; color: var(--pb-text) !important; text-decoration: none; }
.pb-cofoot p { margin: 8px 0 0; }
.pb-header--co .pb-logo { justify-content: center; padding-right: 44px; }
.pb-header__secure { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; font-size: 12px; font-weight: 700; color: var(--pb-ok); white-space: nowrap; }
.pb-header__secure svg { width: 14px; height: 14px; }

/* Панель «Далее / Оплатить» прилипает к низу экрана, пока видна форма, и встаёт под ней в конце — над футером, а не под ним */
.pb-co { overflow-x: clip; display: flex; flex-direction: column; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px); }
.pb-co__in { flex: 1 0 auto; width: 100%; max-width: 560px; margin: 0 auto; padding: 14px var(--pb-gutter) 24px; }
.pb-co *, .pb-tsheet * { box-sizing: border-box; }
.pb-co__steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pb-co__steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--pb-muted); min-width: 0; }
.pb-co__bar-line { display: block; height: 4px; border-radius: 2px; background: var(--pb-border); }
.pb-co__steps li[aria-current] { color: var(--pb-ink); font-weight: 700; }
.pb-co__steps li[aria-current] .pb-co__bar-line { background: var(--pb-ink); }
.pb-co__steps li.is-done { color: var(--pb-ok); font-weight: 600; }
.pb-co__steps li.is-done .pb-co__bar-line { background: var(--pb-ok); }

.pb-co__cart { margin: 0 0 14px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); }
.pb-co__cart summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 0 14px; cursor: pointer; font-weight: 700; list-style: none; }
.pb-co__cart summary::-webkit-details-marker { display: none; }
.pb-co__cart summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--pb-ink); border-bottom: 2px solid var(--pb-ink); transform: rotate(45deg); margin: -4px 2px 0 0; flex: 0 0 8px; }
.pb-co__cart[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pb-co__cart-total { margin-left: auto; }
.pb-co__cart ul { list-style: none; margin: 0; padding: 0 14px; }
.pb-co__cart li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--pb-line); font-size: 14px; }
.pb-co__cart img, .pb-co__noimg { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; background: var(--pb-sand); object-fit: contain; }
.pb-co__pname { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.pb-co__ptotal { flex: 0 0 auto; font-weight: 700; }
.pb-co__link { display: inline-block; padding: 10px 14px 14px; font-size: 14px; font-weight: 600; }

.pb-co__step { margin: 0 0 12px; }
.pb-co__step .pb-co__done, .pb-co__step .pb-co__future, .pb-co__step .pb-co__body { display: none; }
.pb-co__step.is-current .pb-co__body { display: block; }
.pb-co__step.is-done .pb-co__done { display: flex; }
.pb-co__step.is-next .pb-co__future { display: block; }
.pb-co__done { justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--pb-sand); border-radius: var(--pb-radius); font-size: 14px; }
.pb-co__done-text { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pb-co__done-title { font-weight: 800; }
.pb-co__change { flex: 0 0 auto; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 700; text-decoration: underline; color: var(--pb-ink); cursor: pointer; }
.pb-co__future { padding: 14px; border: 1px dashed var(--pb-border); border-radius: var(--pb-radius); color: var(--pb-muted); font-weight: 600; }
.pb-co__h { margin: 4px 0 14px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.pb-co__login { margin: -6px 0 14px; font-size: 14px; color: var(--pb-muted); }
.pb-co__login a { font-weight: 700; }

.pb-co__field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.pb-co__field label { font-size: 13px; font-weight: 700; color: var(--pb-ink); }
.pb-co input[type=text], .pb-co input[type=email], .pb-co input[type=tel], .pb-co select, .pb-co textarea, .pb-tsheet input {
  width: 100%; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 10px; background: #fff;
  font: inherit; font-size: 16px; color: var(--pb-ink); -webkit-appearance: none; appearance: none; }
.pb-co select { background-image: linear-gradient(45deg, transparent 50%, var(--pb-ink) 50%), linear-gradient(135deg, var(--pb-ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.pb-co textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.pb-co input:focus, .pb-co select:focus, .pb-co textarea:focus { border-color: var(--pb-ink); outline: 1px solid var(--pb-ink); }
.pb-co .is-invalid { border-color: var(--pb-accent) !important; }
.pb-co__err { font-size: 13px; color: var(--pb-accent); font-weight: 600; }
.pb-co__err:empty { display: none; }
.pb-co__hint { display: block; font-size: 12px; color: var(--pb-muted); font-weight: 400; }
.pb-co__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-co__phone { display: flex; height: 52px; border: 1px solid var(--pb-border); border-radius: 10px; overflow: hidden; }
.pb-co__phone:focus-within { border-color: var(--pb-ink); outline: 1px solid var(--pb-ink); }
.pb-co__phone-code { display: flex; align-items: center; padding: 0 12px; background: var(--pb-sand); border-right: 1px solid var(--pb-border); font-weight: 700; }
.pb-co__phone-code:empty { display: none; }
.pb-co .pb-co__phone input { height: 50px; border: 0; border-radius: 0; outline: none; }
.pb-co__switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; margin: 0 0 14px; padding: 8px 16px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); cursor: pointer; }
.pb-co__switch > span { display: flex; flex-direction: column; gap: 2px; }
.pb-co__switch input, .pb-co__check input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--pb-ink); }
.pb-co__check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.pb-co__check a { font-weight: 600; }

.pb-co__methods { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pb-co__method { border: 1px solid var(--pb-border); border-radius: 14px; }
.pb-co__method.is-on { border: 2px solid var(--pb-ink); }
.pb-co__mrow { display: flex; gap: 12px; align-items: center; min-height: 60px; padding: 12px 16px; margin: 0; cursor: pointer; }
.pb-co__mrow input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--pb-ink); }
.pb-co__mname { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.pb-co__mcost { flex: 0 0 auto; font-weight: 800; }
.pb-co__mcost.is-free { color: var(--pb-ok); }
.pb-co__pick { display: none; width: calc(100% - 32px); margin: 0 16px 16px; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 0; border-radius: 10px; background: var(--pb-sand); font: inherit; color: var(--pb-text); text-align: left; cursor: pointer; }
.pb-co__method.is-on .pb-co__pick { display: flex; }
.pb-co__pick svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--pb-ink); }
.pb-co__pick-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }
.pb-co__pick-text strong { font-size: 14px; color: var(--pb-ink); }
.pb-co__pick-act { flex: 0 0 auto; font-weight: 700; color: var(--pb-ink); }
.pb-co__pick.is-missing { outline: 2px solid var(--pb-accent); }
.pb-co__note { margin: 14px 0 0; font-size: 13px; color: var(--pb-muted); }

.pb-co__pay h3 { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.pb-co__pay-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; }
.pb-co__pay-head h3 { margin: 0; }
.pb-co__pills { display: flex; gap: 4px; }
.pb-co__pills button { height: 36px; min-width: 44px; padding: 0 10px; border: 1px solid var(--pb-border); border-radius: 18px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--pb-ink); cursor: pointer; }
.pb-co__pills button[aria-pressed=true] { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
.pb-co__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; }
.pb-co__tile { display: flex; align-items: center; justify-content: center; height: 60px; padding: 8px; border: 1px solid var(--pb-border); border-radius: 12px; background: #fff; cursor: pointer; }
.pb-co__tile img { display: block; width: 100%; max-width: 100px; height: 34px; object-fit: contain; }
.pb-co__tile[aria-pressed=true] { border: 2px solid var(--pb-ink); box-shadow: 0 0 0 2px rgba(22,22,26,.08); }
.pb-co__comment { margin: 4px 0 14px; border-bottom: 1px solid var(--pb-line); padding-bottom: 12px; }
.pb-co__comment summary { min-height: 44px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.pb-co__totals dl { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 12px; margin: 0 0 16px; }
.pb-co__totals dt { font-weight: 400; color: var(--pb-text); }
.pb-co__totals dd { margin: 0; text-align: right; }
.pb-co__totals .is-main { font-size: 18px; font-weight: 800; color: var(--pb-ink); }
.pb-co__card { padding: 14px; border-radius: var(--pb-radius); background: var(--pb-sand); }
.pb-co__card p { margin: 0 0 10px; font-size: 14px; }
.pb-co__card .btn, .pb-co__card button { display: flex; width: 100%; align-items: center; justify-content: center; height: 52px; border: 0; border-radius: 999px; background: var(--pb-accent); color: #fff; font: inherit; font-weight: 800; font-size: 16px; }
.pb-co__card .text-end { text-align: center; }

.pb-co__bar { position: sticky; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--pb-line); box-shadow: 0 -6px 18px rgba(22,22,26,.06); }
.pb-co__bar-in { max-width: 560px; margin: 0 auto; padding: 10px var(--pb-gutter) calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.pb-co__bar-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.pb-co__bar-sum strong { font-size: 17px; }
.pb-co__next { width: 100%; height: 54px; border-radius: 12px; }
.pb-co[data-step="3"] .pb-co__next { background: var(--pb-accent); }
.pb-co__next[aria-busy=true] { opacity: .7; pointer-events: none; }
.pb-co__bar-err { margin: 0; padding: 8px 12px; border-radius: 8px; background: #FBEAEF; color: var(--pb-accent); font-size: 13px; font-weight: 700; }
.pb-co__bar-note { margin: 0; text-align: center; font-size: 12px; color: var(--pb-muted); }

/* Окно выбора пакомата */
.pb-tsheet { position: fixed; inset: 0; z-index: 60; background: #fff; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.pb-tsheet[hidden] { display: none !important; }
.pb-tsheet__head { flex: 0 0 auto; padding: 0 var(--pb-gutter) 12px; border-bottom: 1px solid var(--pb-line); display: flex; flex-direction: column; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.pb-tsheet__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 18px; }
.pb-tsheet__top .pb-ib { margin-right: -10px; }
.pb-tsheet__search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; margin: 0; border: 1.5px solid var(--pb-ink); border-radius: 12px; font-weight: 400; }
.pb-tsheet__search svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--pb-muted); }
.pb-tsheet .pb-tsheet__search input { height: 48px; padding: 0; border: 0; outline: none; }
.pb-tsheet__near { width: 100%; height: 44px; border-radius: 12px; border-width: 1px; border-color: var(--pb-border); }
.pb-tsheet__list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-width: 560px; width: 100%; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); }
.pb-tsheet__group { margin: 0; padding: 16px var(--pb-gutter) 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--pb-muted); }
.pb-tsheet__item { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 10px var(--pb-gutter); border: 0; border-bottom: 1px solid var(--pb-line); background: #fff; font: inherit; color: var(--pb-text); text-align: left; cursor: pointer; }
.pb-tsheet__item[aria-pressed=true] { background: var(--pb-sand); }
.pb-tsheet__dot { width: 20px; height: 20px; flex: 0 0 20px; border: 1.5px solid var(--pb-border); border-radius: 50%; }
.pb-tsheet__item[aria-pressed=true] .pb-tsheet__dot { border: 6px solid var(--pb-ink); }
.pb-tsheet__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }
.pb-tsheet__text strong { font-size: 15px; color: var(--pb-ink); }
.pb-tsheet__km { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--pb-muted); }
.pb-tsheet__msg { margin: 0; padding: 20px var(--pb-gutter); color: var(--pb-muted); }

/* «Спасибо» */
.pb-done { padding: 32px var(--pb-gutter) 48px; }
.pb-done__in { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; text-align: center; }
.pb-done__icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--pb-ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.pb-done__icon svg { width: 30px; height: 30px; }
.pb-done h1 { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.pb-done__lead { margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.pb-done__card { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--pb-line); border-radius: 14px; text-align: left; }
.pb-done__card svg { width: 24px; height: 24px; flex: 0 0 24px; }
.pb-done__card div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.pb-done__muted { font-size: 13px; color: var(--pb-muted); }

@media (min-width: 768px) {
  .pb-co__in { padding-top: 24px; }
  .pb-co__bar { box-shadow: none; }
}
.pb-co--card .pb-co__in { padding-bottom: 48px; }
.pb-co__lead { margin: -6px 0 16px; font-size: 15px; }
.pb-co--card .pb-co__card { margin: 0 0 12px; }

@media (min-width: 2200px) {
  .pb-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}

/* ===== Меню: «Akcijas» ===== */
.pb-nav__link--sale { color: var(--pb-accent) !important; }
.pb-drawer__sale { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: var(--pb-radius); background: #FBEAEF; color: var(--pb-accent) !important; font-weight: 800; font-size: 16px; text-decoration: none; }
.pb-drawer__sale span { font-size: 13px; font-weight: 600; color: var(--pb-text); }
.pb-salehead { padding-top: 4px; }

/* ===== Главная =====
   Телефон: ряды листаются внутри себя (scroll-snap), страница вбок не ездит (overflow-x: clip),
   у всех картинок заданы размеры/пропорции — при загрузке ничего не прыгает. */
.pb-home { overflow-x: clip; }
.pb-home ul { list-style: none; margin: 0; padding: 0; }
[data-pb-scroll] { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
[data-pb-scroll]::-webkit-scrollbar { display: none; }
[data-pb-scroll] > li { scroll-snap-align: start; }

.pb-hero { position: relative; }
.pb-hero__track { display: flex; }
.pb-hero__slide { flex: 0 0 100%; min-width: 0; }
.pb-hero__link { display: block; background: var(--pb-sand); }
.pb-hero__link img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 654; object-fit: cover; }
.pb-hero__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 2px; }
.pb-hero__dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pb-hero__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.7); box-shadow: 0 0 0 1px rgba(22,22,26,.25); transition: width .2s; }
.pb-hero__dots button[aria-current=true]::before { width: 22px; border-radius: 4px; background: #fff; }
@media (max-width: 767px) {
  .pb-hero__link img.has-mobile { aspect-ratio: 800 / 1062; }
}

.pb-trust { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 14px var(--pb-gutter) 4px !important; }
.pb-trust::-webkit-scrollbar { display: none; }
.pb-trust li { scroll-snap-align: start; display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--pb-radius); background: var(--pb-sand); font-size: 13px; color: var(--pb-text); }
.pb-trust svg { width: 26px; height: 26px; flex: 0 0 26px; color: var(--pb-ink); }
.pb-trust strong { display: block; font-size: 14px; color: var(--pb-ink); }

.pb-hsec { max-width: var(--pb-max); margin: 0 auto; padding-top: 32px; }
.pb-hsec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 var(--pb-gutter) 14px; }
.pb-hsec__all { flex: 0 0 auto; font-size: 14px; font-weight: 700; }

.pb-cats { display: grid; grid-auto-flow: column; grid-auto-columns: 26%; gap: 12px; padding: 0 var(--pb-gutter) !important; scroll-padding: 0 var(--pb-gutter); }
.pb-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; }
.pb-cat__img { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background: var(--pb-sand); overflow: hidden; }
.pb-cat__img img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; }
.pb-cat__name { font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }

.pb-rowwrap { position: relative; }
.pb-row { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; padding: 0 var(--pb-gutter) 4px !important; scroll-padding: 0 var(--pb-gutter); }
.pb-row__btn { position: absolute; top: calc(50% - 60px); z-index: 2; width: 44px; height: 44px; border: 1px solid var(--pb-border); border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(22,22,26,.12); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--pb-ink); }
.pb-row__btn svg { width: 20px; height: 20px; }
.pb-row__btn.is-prev { left: calc(var(--pb-gutter) - 14px); }
.pb-row__btn.is-next { right: calc(var(--pb-gutter) - 14px); }
.pb-row__btn:disabled { opacity: 0; pointer-events: none; }

.pb-btiles { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; padding: 0 var(--pb-gutter) !important; scroll-padding: 0 var(--pb-gutter); }
.pb-btile { display: block; border-radius: var(--pb-radius); overflow: hidden; background: var(--pb-sand); }
.pb-btile img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; transition: transform .3s; }
.pb-btile:hover img { transform: scale(1.03); }

.pb-hlines { display: grid; grid-auto-flow: column; grid-auto-columns: 66%; gap: 12px; padding: 0 var(--pb-gutter) !important; scroll-padding: 0 var(--pb-gutter); }
.pb-linetile__brand { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-muted); }

.pb-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 var(--pb-gutter) !important; }
.pb-logo-tile { display: flex; align-items: center; justify-content: center; height: 72px; padding: 10px; border: 1px solid var(--pb-line); border-radius: var(--pb-radius); background: #fff; }
.pb-logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pb-logo-tile:hover { border-color: var(--pb-ink); }

@media (min-width: 768px) {
  .pb-trust { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .pb-cats { grid-auto-columns: 15%; }
  .pb-row { grid-auto-columns: 30%; gap: 20px; }
  .pb-btiles { grid-auto-columns: 44%; }
  .pb-hlines { grid-auto-columns: 40%; }
  .pb-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pb-hsec { padding-top: 44px; }
}
@media (min-width: 1024px) {
  .pb-cats { grid-auto-flow: row; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: visible; gap: 20px; }
  .pb-cat__name { font-size: 14px; }
  .pb-row { grid-auto-columns: calc((100% - 4 * 20px - 2 * var(--pb-gutter)) / 5); }
  .pb-btiles { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); overflow: visible; gap: 20px; }
  .pb-hlines { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; gap: 24px 20px; }
  .pb-logos { grid-template-columns: repeat(9, minmax(0, 1fr)); }
  .pb-logo-tile { height: 84px; }
  .pb-h2 { font-size: 24px; }
}
@media (min-width: 1440px) {
  .pb-row { grid-auto-columns: calc((100% - 5 * 20px - 2 * var(--pb-gutter)) / 6); }
}
@media (min-width: 1800px) {
  .pb-row { grid-auto-columns: calc((100% - 6 * 20px - 2 * var(--pb-gutter)) / 7); }
  .pb-hero__link img { max-height: 720px; }
}
@media (hover: none) {
  .pb-row__btn { display: none !important; }
}
.pb-row .pb-card__add { padding: 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Баннер бренда/линейки: целиком, без обрезки по высоте; на очень широком экране — не шире исходника (1920), по центру */
.pb-banner { display: block; width: 100%; max-width: 1920px; height: auto; margin: 0 auto; object-fit: contain; }

/* Кнопки Bootstrap на страницах ядра: текст ссылки-кнопки был цвета ссылок (тёмный на тёмном) */
body.pb .btn-primary, body.pb a.btn-primary, body.pb .btn-dark, body.pb a.btn-dark,
body.pb .btn-danger, body.pb a.btn-danger, body.pb .btn-success, body.pb a.btn-success { color: #fff !important; }
body.pb .btn-primary:hover, body.pb .btn-primary:focus { background: #000; border-color: #000; color: #fff !important; }
body.pb .btn-light, body.pb a.btn-light { color: var(--pb-ink) !important; }

/* Описание товара (страница ядра): ничто не шире экрана */
body.pb #tab-description, body.pb .tab-content, body.pb .pb-prose { overflow-wrap: anywhere; }
body.pb #tab-description *, body.pb .tab-content *, body.pb .pb-prose * { max-width: 100%; }
body.pb #tab-description img, body.pb .pb-prose img { height: auto; }
body.pb #content { overflow-x: clip; }
.pb-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; }
.pb-table table { border-collapse: collapse; font-size: 14px; }
.pb-table td, .pb-table th { padding: 6px 10px; border: 1px solid var(--pb-line); vertical-align: top; }

/* Поиск без результатов */
.pb-searchempty { padding-top: 20px; padding-bottom: 20px; }
.pb-searchempty p { margin: 0 0 14px; }
.pb-searchform { max-width: 560px; }
/* «Хлебные крошки» страниц ядра: длинное название товара переносится, а не уходит за экран */
body.pb .breadcrumb { flex-wrap: wrap; row-gap: 2px; }
body.pb .breadcrumb > li.breadcrumb-item { min-width: 0; white-space: normal; overflow-wrap: anywhere; }

/* ===== Страница товара =====
   Телефон: галерея на всю ширину (листается пальцем, квадрат — место под фото занято заранее), ниже покупка;
   панель «В корзину» снизу, когда основная кнопка ушла с экрана. Широкий экран: галерея слева, покупка справа (прилипает). */
.pb-pd { max-width: var(--pb-max); margin: 0 auto; overflow-x: clip; }
.pb-pd ul { list-style: none; margin: 0; padding: 0; }
.pb-pd__top { display: flex; flex-direction: column; gap: 18px; }
.pb-gal { min-width: 0; }
.pb-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.pb-gal__track::-webkit-scrollbar { display: none; }
.pb-gal__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 1 / 1; background: var(--pb-sand); display: flex; align-items: center; justify-content: center; }
.pb-gal__slide img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.pb-badge--lg { top: 14px; left: 14px; font-size: 14px; padding: 4px 10px; }
.pb-gal__thumbs { display: flex; gap: 8px; padding: 10px var(--pb-gutter) 0; overflow-x: auto; scrollbar-width: none; }
.pb-gal__thumbs::-webkit-scrollbar { display: none; }
.pb-gal__thumb { flex: 0 0 60px; width: 60px; height: 60px; padding: 4px; border: 1px solid var(--pb-line); border-radius: 10px; background: var(--pb-sand); cursor: pointer; }
.pb-gal__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pb-gal__thumb[aria-current=true] { border: 2px solid var(--pb-ink); }

.pb-buy { padding: 0 var(--pb-gutter); min-width: 0; display: flex; flex-direction: column; }
.pb-buy__brand { align-self: flex-start; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.pb-buy__line { align-self: flex-start; margin-top: 2px; font-size: 14px; color: var(--pb-muted) !important; }
.pb-buy__name { margin: 8px 0 4px; font-size: 22px; line-height: 1.3; font-weight: 800; overflow-wrap: anywhere; }
.pb-buy__code { margin: 0 0 12px; font-size: 13px; color: var(--pb-muted); }
.pb-buy__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 16px; }
.pb-buy__now { font-size: 26px; font-weight: 800; }
.pb-buy__now.is-sale { color: var(--pb-accent); }
.pb-buy__price s { font-size: 16px; color: var(--pb-muted); }
.pb-buy__off { padding: 2px 8px; border-radius: 999px; background: #FBEAEF; color: var(--pb-accent); font-size: 13px; font-weight: 800; }
.pb-buy__row { display: flex; gap: 10px; margin: 0 0 18px; }
.pb-buy__add { flex: 1 1 auto; height: 54px; }
.pb-qty { display: inline-flex; align-items: center; flex: 0 0 auto; height: 54px; border: 1.5px solid var(--pb-border); border-radius: 999px; }
.pb-qty__btn { width: 44px; height: 100%; border: 0; background: none; font: inherit; font-size: 22px; color: var(--pb-ink); cursor: pointer; }
.pb-qty__input { width: 40px; height: 100%; border: 0; background: none; text-align: center; font: inherit; font-size: 16px; font-weight: 800; color: var(--pb-ink); -moz-appearance: textfield; }
.pb-qty__input::-webkit-outer-spin-button, .pb-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-qty__val { min-width: 28px; text-align: center; font-weight: 800; }
.pb-qty--sm { height: 40px; }
.pb-qty--sm .pb-qty__btn { width: 38px; font-size: 18px; }

.pb-buy__notes { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px !important; }
.pb-buy__notes li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--pb-radius); background: var(--pb-sand); font-size: 13px; }
.pb-buy__notes svg { width: 24px; height: 24px; flex: 0 0 24px; }
.pb-buy__notes strong { display: block; font-size: 14px; }

.pb-acc2 { border-top: 1px solid var(--pb-line); }
.pb-acc2__item { border-bottom: 1px solid var(--pb-line); }
.pb-acc2__item summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-size: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.pb-acc2__item summary::-webkit-details-marker { display: none; }
.pb-acc2__item summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--pb-ink); border-bottom: 2px solid var(--pb-ink); transform: rotate(45deg); margin: -4px 4px 0 0; }
.pb-acc2__item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pb-acc2__body { padding: 0 0 18px; }

.pb-stickybuy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--pb-line); box-shadow: 0 -6px 18px rgba(22,22,26,.08); }
.pb-stickybuy__in { display: flex; align-items: center; gap: 12px; padding: 10px var(--pb-gutter) calc(10px + env(safe-area-inset-bottom)); }
.pb-stickybuy__price { flex: 0 0 auto; font-size: 18px; font-weight: 800; }
.pb-stickybuy__price .is-sale { color: var(--pb-accent); }
.pb-stickybuy__add { flex: 1 1 auto; height: 50px; }

@media (min-width: 768px) {
  .pb-gal__slide img { width: 78%; height: 78%; }
}
@media (min-width: 1024px) {
  .pb-pd__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 48px; padding: 8px var(--pb-gutter) 0; align-items: start; }
  .pb-gal { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: start; }
  .pb-gal__track { grid-column: 2; grid-row: 1; border-radius: 16px; }
  .pb-gal__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; padding: 0; overflow: visible; }
  .pb-gal__thumb { flex: 0 0 84px; width: 84px; height: 84px; }
  .pb-buy { padding: 0; position: sticky; top: 16px; }
  .pb-buy__name { font-size: 30px; }
  .pb-buy__now { font-size: 32px; }
  .pb-stickybuy { display: none !important; }
}
@media (min-width: 1800px) {
  .pb-pd__top { grid-template-columns: minmax(0, 1fr) minmax(480px, 0.85fr); gap: 64px; }
}

/* ===== Корзина ===== */
.pb-cartpage__in { max-width: var(--pb-max); margin: 0 auto; padding: 16px var(--pb-gutter) 0; }
.pb-cartpage__n { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; margin-left: 6px; border-radius: 14px; background: var(--pb-sand); font-size: 15px; vertical-align: middle; }
.pb-cartpage__grid { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.pb-cartpage__main { min-width: 0; }
.pb-free { margin: 0 0 8px; padding: 14px 16px; border-radius: var(--pb-radius); background: var(--pb-sand); }
.pb-free p { margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.pb-free__bar { display: block; height: 6px; border-radius: 3px; background: var(--pb-border); overflow: hidden; }
.pb-free__bar span { display: block; height: 100%; background: var(--pb-ok); }
.pb-citems { list-style: none; margin: 0; padding: 0; }
.pb-citem { position: relative; display: flex; gap: 14px; padding: 16px 40px 16px 0; border-bottom: 1px solid var(--pb-line); }
.pb-citem.is-busy { opacity: .5; pointer-events: none; }
.pb-citem__img { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 10px; background: var(--pb-sand); display: flex; align-items: center; justify-content: center; }
.pb-citem__img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.pb-citem__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pb-citem__name { font-size: 14px; line-height: 1.35; text-decoration: none; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pb-citem__err { font-size: 12px; font-weight: 700; color: var(--pb-accent); }
.pb-citem__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pb-citem__total { font-size: 16px; }
.pb-citem__rm { position: absolute; top: 10px; right: -8px; color: var(--pb-muted); }

.pb-cartpage__side { display: flex; flex-direction: column; gap: 14px; }
.pb-coupon { border: 1px solid var(--pb-line); border-radius: var(--pb-radius); padding: 0 14px; }
.pb-coupon summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; cursor: pointer; }
.pb-coupon__form { display: flex; gap: 8px; padding-bottom: 14px; }
.pb-coupon__form input { flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 999px; font: inherit; font-size: 16px; text-transform: uppercase; }
.pb-coupon__msg { margin: -6px 0 12px; font-size: 13px; font-weight: 700; color: var(--pb-accent); }
.pb-ctotals { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; column-gap: 12px; margin: 0; }
.pb-ctotals dd { margin: 0; text-align: right; }
.pb-ctotals .is-main { font-size: 19px; font-weight: 800; }
.pb-ctotals__note { margin: -4px 0 0; font-size: 12px; color: var(--pb-muted); }
.pb-cartpage__cta { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--pb-gutter)); padding: 12px var(--pb-gutter) calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--pb-line); }
.pb-cartpage__go { height: 54px; border-radius: 12px; }
.pb-paylogos { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pb-paylogos li { padding: 3px 8px; border: 1px solid var(--pb-line); border-radius: 6px; font-size: 11px; font-weight: 700; color: var(--pb-muted); }
.pb-cartempty { padding: 24px 0 8px; }
.pb-cartempty p { margin: 0 0 16px; font-size: 16px; }
.pb-cartempty__btns { display: flex; flex-wrap: wrap; gap: 10px; }

@media (min-width: 1024px) {
  .pb-cartpage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
  .pb-cartpage__side { position: sticky; top: 16px; padding: 20px; border: 1px solid var(--pb-line); border-radius: 16px; }
  .pb-cartpage__cta { position: static; margin: 0; padding: 0; border: 0; }
  .pb-citem__img { flex-basis: 110px; width: 110px; height: 110px; }
  .pb-citem__name { font-size: 15px; }
}
@media (min-width: 1800px) {
  .pb-cartpage__in { max-width: 1600px; }
}
/* Таблицы в описании: слова не рвутся по буквам, первая колонка — подпись, не уже 7em; шире экрана — прокрутка внутри .pb-table */
.pb-table table { width: 100%; }
.pb-table td, .pb-table th { overflow-wrap: normal; word-break: normal; }
.pb-table td:first-child, .pb-table th:first-child { min-width: 7em; font-weight: 700; }
/* Товар на телефоне: последняя «крошка» (название) — уже в заголовке */
@media (max-width: 1023px) {
  .pb-pd .pb-crumbs li:last-child { display: none; }
}
/* Товар: одно фото — без пустой колонки миниатюр; на очень широком экране верх (фото + покупка) не шире 1600 px, по центру */
@media (min-width: 1024px) {
  .pb-gal__track:only-child { grid-column: 1 / -1; }
}
@media (min-width: 1440px) {
  .pb-pd__top { max-width: 1600px; margin: 0 auto; }
}

/* ===== Вход, кабинет, «не найдено» (свои шаблоны) ===== */
.pb-auth, .pb-acc, .pb-nf { padding: 20px var(--pb-gutter) 40px; }
.pb-auth__in { max-width: 960px; margin: 0 auto; display: grid; gap: 16px; }
.pb-auth__card { padding: 22px 18px; border: 1px solid var(--pb-line); border-radius: 16px; }
.pb-auth__card--soft { background: var(--pb-sand); border-color: var(--pb-sand); }
.pb-auth__card .pb-muted { margin: 6px 0 18px; }
.pb-auth__perks { list-style: none; margin: 12px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pb-auth__perks li { display: flex; gap: 10px; align-items: flex-start; }
.pb-auth__perks li::before { content: ''; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--pb-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.pb-auth__guest { margin: 12px 0 0; font-size: 13px; color: var(--pb-muted); }
.pb-form { display: flex; flex-direction: column; gap: 14px; }
.pb-form__field { display: flex; flex-direction: column; gap: 6px; }
.pb-form__field label { font-size: 13px; font-weight: 700; }
.pb-form__field input { height: 52px; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 10px; font: inherit; font-size: 16px; }
.pb-form__field input:focus { border-color: var(--pb-ink); outline: 1px solid var(--pb-ink); }
.pb-form__link { align-self: flex-end; font-size: 13px; font-weight: 600; }
.pb-note { padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.pb-note.is-ok { background: #E7F2EC; color: var(--pb-ok); }
.pb-note.is-err { background: #FBEAEF; color: var(--pb-accent); }

.pb-acc__in { max-width: 960px; margin: 0 auto; }
.pb-acc__sec { margin-top: 26px; }
.pb-acc__head { padding: 0 0 12px; }
.pb-orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pb-order { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 16px; border: 1px solid var(--pb-line); border-radius: 12px; text-decoration: none; }
.pb-order:hover { border-color: var(--pb-ink); }
.pb-order__no { font-weight: 800; }
.pb-order__date, .pb-order__status { font-size: 13px; color: var(--pb-muted); }
.pb-order__total { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 16px; }
.pb-order__status { grid-column: 1; }
.pb-tiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pb-tile { display: flex; flex-direction: column; gap: 10px; min-height: 96px; padding: 16px; border-radius: 14px; background: var(--pb-sand); text-decoration: none; font-weight: 700; font-size: 14px; }
.pb-tile svg { width: 26px; height: 26px; }
.pb-tile:hover { background: #EFEAE2; }
.pb-acc__logout { margin-top: 26px; }

.pb-accmenu { display: flex; flex-direction: column; border: 1px solid var(--pb-line); border-radius: 14px; overflow: hidden; margin: 0 0 24px; }
.pb-accmenu a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--pb-line); font-weight: 600; text-decoration: none; }
.pb-accmenu a:last-child { border-bottom: 0; }
.pb-accmenu a[aria-current] { background: var(--pb-sand); font-weight: 800; }

.pb-nf__in { max-width: 640px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 12px; }
.pb-nf__code { margin: 0; font-size: 72px; font-weight: 800; line-height: 1; color: var(--pb-border); letter-spacing: -0.04em; }
.pb-nf__search { width: 100%; margin-top: 10px; }
.pb-nf__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

@media (min-width: 768px) {
  .pb-auth__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 24px; padding-top: 16px; }
  .pb-auth__card { padding: 32px; }
  .pb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== «Шкурка» для страниц на шаблонах ядра (регистрация, данные, пароль, адреса, заказ, избранное, контакты, информация…) =====
   Разметку ядра не трогаем (её формы работают через common.js), меняем только вид под тему. */
body.pb div.container[id] { max-width: 1200px; margin: 0 auto; padding: 0 var(--pb-gutter) 40px; }
body.pb div.container[id] .breadcrumb { display: flex; flex-wrap: wrap; gap: 0; border: 0; border-radius: 0; background: none; padding: 12px 0 0; margin: 0 0 14px; font-size: 13px; }
body.pb div.container[id] .breadcrumb > li.breadcrumb-item { padding: 0; text-shadow: none; }
body.pb div.container[id] .breadcrumb > li.breadcrumb-item::after { display: none !important; content: none !important; }
body.pb div.container[id] .breadcrumb > li.breadcrumb-item + li::before { content: "/" !important; padding: 0 6px; color: var(--pb-muted); float: none; }
body.pb div.container[id] .breadcrumb a { color: var(--pb-muted) !important; text-decoration: none; }
body.pb div.container[id] h1 { margin: 4px 0 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
body.pb div.container[id] h2, body.pb div.container[id] legend { margin: 20px 0 12px; font-size: 19px; font-weight: 800; float: none; width: auto; }
body.pb div.container[id] fieldset { margin: 0 0 8px; padding: 0; border: 0; }
body.pb div.container[id] form { max-width: 720px; }
body.pb div.container[id] .row.mb-3 > .col-sm-2, body.pb div.container[id] .row.mb-3 > .col-sm-10 { flex: 0 0 100%; max-width: 100%; width: 100%; }
body.pb div.container[id] .col-form-label, body.pb div.container[id] .form-label { padding: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--pb-ink); }
body.pb div.container[id] .required .col-form-label::before { content: none; }
body.pb div.container[id] .required .col-form-label::after { content: " *"; color: var(--pb-accent); }
body.pb div.container[id] .form-control, body.pb div.container[id] .form-select { height: 52px; padding: 0 14px; border: 1px solid var(--pb-border); border-radius: 10px; font-size: 16px; color: var(--pb-ink); box-shadow: none; }
body.pb div.container[id] textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; }
body.pb div.container[id] .form-control:focus, body.pb div.container[id] .form-select:focus { border-color: var(--pb-ink); box-shadow: 0 0 0 1px var(--pb-ink); }
body.pb div.container[id] .form-control.is-invalid, body.pb div.container[id] .form-select.is-invalid { border-color: var(--pb-accent); background-image: none; }
body.pb div.container[id] .invalid-feedback { color: var(--pb-accent); font-size: 13px; font-weight: 600; }
body.pb div.container[id] .form-check:not(.form-switch) .form-check-input { width: 20px; height: 20px; margin-top: 2px; border-color: var(--pb-border); }
body.pb div.container[id] .form-switch .form-check-input { width: 3em; height: 1.6em; margin-top: 0; border-color: var(--pb-border); cursor: pointer; }
body.pb div.container[id] .form-check-input:checked { background-color: var(--pb-ink); border-color: var(--pb-ink); }
body.pb div.container[id] .form-check-label { padding-left: 4px; font-size: 14px; }
body.pb div.container[id] .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; }
body.pb div.container[id] .btn-light, body.pb div.container[id] .btn-secondary, body.pb div.container[id] .btn-outline-secondary { background: #fff; border: 1.5px solid var(--pb-ink); color: var(--pb-ink) !important; }
body.pb div.container[id] .btn-danger { background: var(--pb-accent); border-color: var(--pb-accent); }
body.pb div.container[id] .btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
body.pb div.container[id] .text-end { text-align: right; }
body.pb div.container[id] .card { border: 1px solid var(--pb-line); border-radius: 14px; }
body.pb div.container[id] .card-header { background: var(--pb-sand); border-bottom: 1px solid var(--pb-line); font-weight: 700; border-radius: 14px 14px 0 0; }
body.pb div.container[id] .table { font-size: 14px; border-color: var(--pb-line); }
body.pb div.container[id] .table > :not(caption) > * > * { padding: 10px 12px; border-bottom-color: var(--pb-line); }
body.pb div.container[id] .table thead td, body.pb div.container[id] .table thead th { background: var(--pb-sand); font-weight: 700; }
body.pb div.container[id] .table-responsive { border: 1px solid var(--pb-line); border-radius: 12px; }
body.pb div.container[id] .table-bordered > :not(caption) > * > * { border-width: 0 0 1px; }
body.pb div.container[id] .pagination .page-link { border-radius: 999px !important; margin: 0 2px; border: 1px solid var(--pb-line); color: var(--pb-ink); min-width: 40px; text-align: center; }
body.pb div.container[id] .pagination .active .page-link { background: var(--pb-ink); border-color: var(--pb-ink); color: #fff; }
body.pb div.container[id] .list-group-item { border-color: var(--pb-line); }
body.pb div.container[id] .img-thumbnail { border-radius: 10px; border-color: var(--pb-line); }
body.pb div.container[id] #column-right, body.pb div.container[id] #column-left { margin-top: 8px; }
body.pb div.container[id] .alert { border-radius: 12px; }
body.pb .pb-alert .alert { border-radius: 12px; box-shadow: 0 8px 24px rgba(22,22,26,.12); font-size: 14px; }
@media (min-width: 992px) {
  body.pb div.container[id] #column-right { position: sticky; top: 16px; align-self: flex-start; }
}
body.pb div.container[id] form .row.mb-3 { margin-left: 0; margin-right: 0; }
body.pb div.container[id] form .row.mb-3 > [class*="col-"] { padding-left: 0; padding-right: 0; }
body.pb div.container[id] legend { border: 0; padding: 0; }
body.pb div.container[id] #content > p, body.pb div.container[id] form p { font-size: 15px; }
/* Нижняя строка форм ядра (согласие + кнопка): на телефоне — столбиком, переключатель слева от текста, кнопка во всю ширину */
body.pb div.container[id] form .text-end { display: flex; flex-direction: column; align-items: stretch; gap: 16px; text-align: left; margin-top: 8px; }
body.pb div.container[id] form .text-end .form-check { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 12px; margin: 0; padding: 0; min-height: 32px; }
body.pb div.container[id] form .text-end .form-check .form-check-input { float: none; margin: 0; flex: 0 0 auto; }
body.pb div.container[id] form .text-end .form-check-label { padding: 0; font-size: 14px; line-height: 1.4; }
body.pb div.container[id] form .text-end .btn { width: 100%; min-height: 52px; }
@media (min-width: 768px) {
  body.pb div.container[id] form .text-end { flex-direction: row; align-items: center; justify-content: space-between; }
  body.pb div.container[id] form .text-end .btn { width: auto; min-width: 220px; }
}
body.pb div.container[id] .form-check-reverse { text-align: left; }
body.pb div.container[id] form .text-end .form-check-label { flex: 1 1 auto; }
.pb-nf .pb-hsec { margin: 0 calc(-1 * var(--pb-gutter)); }
body.pb div.container[id] .col-form-label { text-align: left !important; }

/* Корзина: «продолжить покупки» */
.pb-free__more { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; }
.pb-cartpage__back { margin-top: 8px; height: 48px; border-width: 1px; }

/* ===== Баллы ===== */
.pb-pts { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: #FBEAEF; color: var(--pb-accent); font-size: 13px; font-weight: 700; }
.pb-pts::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; box-sizing: border-box; }
.pb-ptcard { margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--pb-ink); color: #fff; }
.pb-ptcard--silver { background: linear-gradient(135deg, #4A4D55, #22242A); }
.pb-ptcard--gold { background: linear-gradient(135deg, #8A6A2A, #3D2E12); }
.pb-ptcard--platinum { background: linear-gradient(135deg, #5E3B5A, #1F1420); }
.pb-ptcard a { color: #fff !important; }
.pb-ptcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.pb-ptcard__tier { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-weight: 800; letter-spacing: .02em; }
.pb-ptcard__more { font-weight: 700; }
.pb-ptcard__bal { margin: 14px 0 0; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.pb-ptcard__value { margin: 2px 0 14px; font-size: 14px; color: rgba(255,255,255,.8); }
.pb-ptcard__bar { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); overflow: hidden; }
.pb-ptcard__bar span { display: block; height: 100%; background: #fff; }
.pb-ptcard__next, .pb-ptcard__meta { margin: 10px 0 0; font-size: 13px; color: rgba(255,255,255,.85); }
.pb-ptcard__guest { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.12); font-size: 13px; }
.pb-ptcard__guest a { font-weight: 800; text-decoration: underline; }
.pb-tiers { list-style: none; margin: 12px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-tiers li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--pb-line); border-radius: 12px; font-size: 13px; color: var(--pb-muted); }
.pb-tiers strong { font-size: 15px; color: var(--pb-ink); }
.pb-tiers b { font-size: 20px; color: var(--pb-ink); }
.pb-tiers li.is-on { border: 2px solid var(--pb-ink); }
.pb-pthist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--pb-line); }
.pb-pthist li { display: grid; grid-template-columns: 84px 1fr auto; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--pb-line); font-size: 14px; }
.pb-pthist__date { color: var(--pb-muted); font-size: 13px; }
.pb-pthist__text em { display: block; font-style: normal; font-size: 12px; color: var(--pb-muted); }
.pb-pthist b.is-plus { color: var(--pb-ok); }
.pb-pthist b.is-minus { color: var(--pb-accent); }
.pb-crumbs--flat ol { padding-left: 0; padding-right: 0; }
.pb-done__points div { gap: 8px; }
.pb-done__points .pb-btn-o { align-self: flex-start; margin-top: 4px; }
.pb-co__points { margin-top: 14px; }
@media (min-width: 768px) {
  .pb-tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Заголовок баланса на тёмной карточке: общее правило body.pb h2 { color: ink } перекрашивало его в тёмный */
body.pb .pb-ptcard__bal { color: #fff; }

/* ===== Согласие на cookies ===== */
.pb-cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); pointer-events: none; }
.pb-cookie[hidden] { display: none; }
.pb-cookie__in { pointer-events: auto; max-width: 560px; margin: 0 auto; padding: 16px; background: #fff; border: 1px solid var(--pb-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(22,22,26,.18); }
.pb-cookie__title { margin: 0 0 6px; font-weight: 800; font-size: 16px; color: var(--pb-ink); }
.pb-cookie__text { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.pb-cookie__text a { color: var(--pb-ink); text-decoration: underline; }
.pb-cookie__opts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 12px; }
.pb-cookie__opts[hidden] { display: none; }
.pb-cookie__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.4; }
.pb-cookie__opt input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--pb-ink); }
.pb-cookie__opt strong { display: block; color: var(--pb-ink); }
.pb-cookie__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pb-cookie__btns .pb-btn, .pb-cookie__btns .pb-btn-o { flex: 1 1 auto; height: 44px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.pb-cookie__btns [hidden] { display: none; }
.pb-cookie__link { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--pb-text); text-decoration: underline; cursor: pointer; }
.pb-footer__btn { display: flex; align-items: center; min-height: 40px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: #fff; cursor: pointer; text-align: left; }
.pb-co-page .pb-cookie { bottom: auto; top: 0; padding-top: 12px; }
