/* ============================================================
   ESBI — личный кабинет и админка (ДЕМО).
   Дизайн-система поверх токенов сайта (styles.css подключается
   первым ради :root-переменных и тем). Здесь — только компоненты
   кабинета/админки. Site styles.css не редактируем.
   ============================================================ */

/* ---------- App shell ---------- */
/* фиксированная рамка: скроллится только контент, не вся страница */
.app {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  padding: 12px;          /* 12px от краёв экрана */
  gap: 12px;              /* 12px между топбаром и рабочей областью */
}

/* фон корня/боди — сплошной тёмный (страховка от «просветов») */
html, body { background: var(--bg); }

/* верхняя панель — тёмная в стиле nav-пилюли сайта (непрозрачная, поверх всего) */
.topbar {
  position: relative; z-index: 20;
  flex: none;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 12px;   /* p-3 = 12px */
  border-radius: 18px;
  background: #17191a;
  border: 0;
  color: #fff;
}
.topbar__logo { display: inline-flex; align-items: center; color: #fff; padding-left: 8px; }
.topbar__logo .logo-text { font-size: 21px; font-weight: 800; letter-spacing: 2px; line-height: 1; }
/* кнопка «Назад» в самой плашке (телефон, детальные экраны — вместо ESBI), оранжевая как кнопки сайта */
.topbar__back {
  display: none; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 12px;
  background: var(--accent); color: #000;
  font-size: 15px; font-weight: 700; cursor: pointer;
}
.topbar__back svg { width: 18px; height: 18px; }
.topbar__tag {
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 999px; padding: 3px 9px;
}
.topbar__spacer { flex: 1; }
.topbar__user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.75); }
.topbar__avatar {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--accent); color: #000; display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
}
/* контролы на тёмной шапке */
.topbar .theme-btn {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; box-shadow: none;
}
.topbar .theme-btn:hover { background: rgba(255,255,255,.16); }
.topbar .btn { line-height: 36px; }

.app__body { flex: 1; min-height: 0; display: flex; gap: 12px; overflow: hidden; }

/* боковое меню — отдельный контейнер-карточка слева, 240px (десктоп) */
.side {
  flex: none; width: 240px;
  align-self: stretch;
  overflow-y: auto;
  padding: 16px 12px;          /* p-4 = 16px */
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.side__group { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-soft); margin: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 12px;
  font-size: 14.5px; font-weight: 500; color: var(--text-muted);
  transition: background-color .18s, color .18s; cursor: pointer;
}
.nav-item:hover { background: var(--hairline); color: var(--text); }
.nav-item.is-active { background: var(--accent); color: #000; }
.nav-item.is-active svg { color: #000; }
.nav-item svg { width: 18px; height: 18px; flex: none; }

/* контент — единственная прокручиваемая область (рабочая зона), без видимого скролл-бара */
.content { flex: 1; min-width: 0; overflow-y: auto; padding: 0; scrollbar-width: none; -ms-overflow-style: none; }
.content::-webkit-scrollbar { width: 0; height: 0; display: none; }
.side { scrollbar-width: none; -ms-overflow-style: none; }
.side::-webkit-scrollbar { width: 0; height: 0; display: none; }
.content__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.content__title { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.96px; }
.content__sub { color: var(--text-muted); font-size: 14.5px; margin-top: 4px; }

/* нижний бар-меню (телефоны) — вместо гамбургера */
.bottombar { display: none; }

/* ---------- Subscription banner ---------- */
.sub {
  border-radius: 18px;
  background: var(--surface); padding: 20px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.sub__icon { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--island); color: #fff; }
.sub__icon svg { width: 22px; height: 22px; }
.sub__main { flex: 1; min-width: 220px; }
.sub__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.sub__value { font-size: 18px; font-weight: 600; letter-spacing: -.4px; margin-top: 2px; }
.sub__value b { color: var(--accent); }
.sub__bar { height: 7px; border-radius: 999px; background: var(--hairline); margin-top: 12px; overflow: hidden; }
.sub__fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .5s ease; }
.sub.is-soon .sub__icon { background: #b25; }
.sub.is-expired .sub__icon { background: #a33; }
.sub.is-expired .sub__value b { color: #e25; }

/* ---------- Filter chips ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  border: 0; color: var(--text-muted); background: var(--surface);
  cursor: pointer; transition: background-color .18s, color .18s;
}
.chip.is-active { background: var(--text); color: var(--bg); }

/* ---------- Cards grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card {
  border-radius: 18px; overflow: hidden;
  background: var(--surface); display: flex; flex-direction: column;
}
.card__media { position: relative; aspect-ratio: 16 / 10; background: var(--island) center/cover no-repeat; cursor: pointer; }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }

/* заглушка для уроков без обложки — фирменный градиент в стиле сайта */
.media-grad { background-image: linear-gradient(135deg, var(--accent) 0%, #d2431f 42%, #1a1a1a 100%) !important; }
.card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: grid; place-items: center; color: #111; z-index: 2;
}
.card__play svg { width: 22px; height: 22px; margin-left: 2px; }

/* текстовая «обложка» для урока без видео и без картинки */
.card__cover-title { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; text-align: center; }
.card__cover-title span {
  color: #fff; font-weight: 700; font-size: 20px; line-height: 1.22; letter-spacing: -.3px;
  text-shadow: 0 1px 14px rgba(0,0,0,.3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; backdrop-filter: blur(6px);
}
.badge svg { width: 13px; height: 13px; }
.badge--lesson { background: rgba(249,101,47,.92); color: #000; }
.badge--class { background: rgba(18,18,18,.82); color: #fff; }
.badge--date {
  position: static; flex: none; display: inline-flex; align-items: center; gap: 5px;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--accent);
  font-weight: 700; backdrop-filter: none;
}
.badge--date svg { width: 13px; height: 13px; }
.card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card__title {
  font-size: 17px; font-weight: 600; letter-spacing: -.3px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* описание ровно в 2 строки, оканчивается на … */
.card__summary {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.5em * 2);
}
/* теги — плашки в горизонтальном скролле (без переноса) */
.card__tags {
  display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  margin: 0 -2px; padding: 2px;
}
.card__tags::-webkit-scrollbar { display: none; }
.tag { flex: none; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--text-soft); background: var(--hairline); border-radius: 7px; padding: 4px 9px; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }

/* лайк — плоская «таблетка» без рамки, в стиле сайта */
.like {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  border: 0; border-radius: 999px; padding: 8px 14px;
  cursor: pointer; background: var(--hairline);
}
.like svg { width: 16px; height: 16px; }
.like.is-liked { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--accent); }
.like.is-liked svg { fill: var(--accent); }

/* компактный вариант сайтовой кнопки .btn (для карточек/строк) */
.btn.btn--sm { padding: 4px 4px 4px 16px; font-size: 14px; line-height: 34px; gap: 10px; }
.btn.btn--sm .btn__chip { width: 34px; height: 34px; }
.btn.btn--sm .btn__chip svg { width: 16px; height: 16px; }

/* ---------- Buttons (расширяем сайтовые) ---------- */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px; border-radius: var(--r-btn); font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: filter .15s, background-color .2s; white-space: nowrap;
}
.ui-btn svg { width: 17px; height: 17px; }
.ui-btn--accent { background: var(--accent); color: #000; }
.ui-btn--accent:hover { filter: brightness(1.04); }
/* плоская «ghost» кнопка — заливка hairline (как .tag/.like), видна и на surface-строках */
.ui-btn--ghost { background: var(--hairline); color: var(--text); }
.ui-btn--danger { background: var(--hairline); color: #c33; }
.ui-btn--danger:hover { background: #c33; color: #fff; }
.ui-btn--sm { padding: 7px 12px; font-size: 13px; }
.ui-btn[disabled] { opacity: .45; pointer-events: none; }
/* выбранный источник видео в редакторе — заметно подсвечен */
.vsource .ui-btn.is-active { background: var(--accent); color: #000; }
.vsource .ui-btn.is-active svg { color: #000; }

/* ---------- Square theme toggle ---------- */
.theme-btn {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--text);
  cursor: pointer;
}
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .ico-moon { display: none; }
[data-theme="dark"] .theme-btn .ico-sun { display: none; }
[data-theme="dark"] .theme-btn .ico-moon { display: block; }

/* ---------- Empty / states ---------- */
.empty { text-align: center; color: var(--text-muted); padding: 64px 20px; }
.empty svg { width: 38px; height: 38px; margin: 0 auto 12px; color: var(--text-soft); }

/* ---------- Modal / drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px;
  overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 760px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-card);
  box-shadow: var(--shadow-float); transform: translateY(12px); transition: transform .2s;
}
.overlay.is-open .modal { transform: none; }
.modal__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal__head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; flex: 1; }
.modal__close { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--text-muted); cursor: pointer; }
.modal__close:hover { background: var(--hairline); color: var(--text); }
.modal__body { padding: 22px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }

/* видеоплеер в модалке */
.player { position: relative; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player--empty { display: grid; place-items: center; color: rgba(255,255,255,.6); font-size: 14px; }

/* контент урока (рендер Quill HTML) */
.prose { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.prose p { margin: 0 0 14px; }
.prose h1, .prose h2, .prose h3 { font-weight: 600; letter-spacing: -.4px; margin: 18px 0 10px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: 12px; margin: 12px 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; margin: 12px 0; }

/* ---------- Forms (админка) ---------- */
.form-grid { display: grid; gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 7px; }
.fld > label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.fld input[type=text], .fld input[type=number], .fld input[type=url], .fld input[type=datetime-local], .fld textarea, .fld select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px; font-size: 14.5px; color: var(--text); outline: none;
  transition: border-color .18s;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--accent); }
.fld textarea { min-height: 72px; resize: vertical; }
.fld__hint { font-size: 12px; color: var(--text-soft); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* поле даты/времени: видимое — ручной ввод текста, скрытое datetime-local — для пикера по иконке */
.datefield { position: relative; }
.datefield input { color-scheme: light; }
[data-theme="dark"] .datefield input { color-scheme: dark; }
.datefield input[type=text] { padding-right: 48px; }   /* место под кнопку-календарь */
.datefield input::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }
/* нативный datetime-local — прозрачный оверлей только как «якорь» выпадающего пикера */
.datefield__native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.datefield__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--hairline); color: var(--accent); cursor: pointer;
}
.datefield__btn svg { width: 17px; height: 17px; }

/* сегментный выбор типа */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.seg button.is-active { background: var(--accent); color: #000; }

/* выбор источника видео */
.vsource { display: flex; gap: 8px; margin-bottom: 12px; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1.5px dashed var(--border); border-radius: 14px; padding: 22px;
  text-align: center; color: var(--text-muted); font-size: 14px; cursor: pointer; transition: border-color .18s, background .18s;
}
.dropzone svg { width: 26px; height: 26px; margin: 0 auto 8px; color: var(--text-soft); }

/* ---------- Quill в стиле сайта ---------- */
.editor-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.editor-wrap .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--border); background: var(--bg); }
.editor-wrap .ql-container.ql-snow { border: 0; font-family: inherit; font-size: 15px; }
.editor-wrap .ql-editor { min-height: 180px; color: var(--text); }
.editor-wrap .ql-editor.ql-blank::before { color: var(--text-soft); font-style: normal; }
.ql-snow .ql-stroke { stroke: var(--text-muted); }
.ql-snow .ql-fill { fill: var(--text-muted); }
.ql-snow .ql-picker { color: var(--text-muted); }
.ql-snow.ql-toolbar button:hover .ql-stroke, .ql-snow .ql-toolbar button:hover .ql-stroke { stroke: var(--accent); }
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--accent); }
.ql-snow .ql-picker-options { background: var(--bg); border-color: var(--border); }
/* убираем синие акценты Quill по умолчанию — в фирменный оранжевый и токены темы */
.ql-snow .ql-picker-item:hover,
.ql-snow .ql-picker-item.ql-selected,
.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-label.ql-active,
.ql-snow.ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active { color: var(--accent); }
.ql-snow .ql-picker-label.ql-active .ql-stroke,
.ql-snow .ql-picker-label:hover .ql-stroke { stroke: var(--accent); }
.editor-wrap .ql-editor a { color: var(--accent); }
.ql-snow .ql-tooltip {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; box-shadow: var(--shadow-card);
}
.ql-snow .ql-tooltip input[type=text] { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 6px; }
.ql-snow .ql-tooltip a.ql-action, .ql-snow .ql-tooltip a.ql-remove, .ql-snow .ql-tooltip a.ql-preview { color: var(--accent); }

/* надписи редактора Quill — на русском */
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before { content: 'Обычный'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content: 'Заголовок'; }
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content: 'Подзаголовок'; }
.ql-snow .ql-tooltip::before { content: "Перейти:"; }
.ql-snow .ql-tooltip[data-mode="link"]::before { content: "Введите ссылку:"; }
.ql-snow .ql-tooltip[data-mode="video"]::before { content: "Введите видео:"; }
.ql-snow .ql-tooltip a.ql-action::after { content: "Изменить"; }
.ql-snow .ql-tooltip.ql-editing a.ql-action::after { content: "Сохранить"; }
.ql-snow .ql-tooltip a.ql-remove::before { content: "Удалить"; }

/* ---------- Admin list (таблица карточками) ---------- */
.rows { display: flex; flex-direction: column; gap: 12px; }
.row {
  display: flex; align-items: center; gap: 14px;
  border-radius: 14px; background: var(--surface); padding: 12px 14px;
}
.row__thumb { width: 64px; height: 44px; border-radius: 8px; background: var(--island) center/cover no-repeat; flex: none; }
.row__main { flex: 1; min-width: 0; }
.row__title { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.row__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row__actions { display: flex; gap: 8px; flex: none; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-soft); }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pill--lesson { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); color: var(--accent); }
.pill--class { background: var(--hairline); color: var(--text); }
.pill--draft { background: color-mix(in srgb, #c93 22%, var(--bg)); color: #b80; }

/* цены */
.plan-card { border-radius: 16px; background: var(--surface); padding: 18px; }
.plan-card h4 { font-size: 16px; font-weight: 600; }
.price-input { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.price-input input { max-width: 140px; }
.price-input span { color: var(--text-muted); font-size: 14px; }

/* toast */
/* тост — сверху, под топбаром (чтобы не перекрывал нижний бар-меню) */
.toast {
  position: fixed; left: 50%; top: 76px; transform: translateX(-50%) translateY(-16px);
  background: var(--text); color: var(--bg); padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 200; opacity: 0; pointer-events: none; transition: all .25s;
  box-shadow: var(--shadow-float);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Инлайн-страницы (вместо модалок) ---------- */
/* панель с кнопкой «назад» — залипает сверху, непрозрачная (без «щёлки») */
.viewbar {
  position: sticky; top: 0; z-index: 8;
  display: flex; align-items: center; gap: 12px;
  padding: 0 0 14px;
  background: var(--bg);
}
.backbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.backbtn svg { width: 17px; height: 17px; }
.viewbar__title { font-size: 16px; font-weight: 600; letter-spacing: -.3px; color: var(--text-muted); }

/* плавающая кнопка «Назад» (оранжевый квадрат) — только на телефонах в детальном виде */
.back-fab { display: none; }

/* статья урока + правая навигация (как в YouTube) */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.article { min-width: 0; }
.article__title { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -.7px; line-height: 1.15; margin: 2px 0 12px; }
.article__meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.article__actions { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }

.article-aside { display: flex; flex-direction: column; gap: 6px; }
.aside-title { font-size: 14px; font-weight: 700; color: var(--text-muted); margin: 2px 6px 6px; }
.up-item { display: flex; gap: 10px; padding: 8px; border-radius: 14px; cursor: pointer; transition: background-color .15s; }
.up-item:hover { background: var(--hairline); }
.up-thumb { position: relative; width: 132px; flex: none; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--island) center/cover no-repeat; }
.up-thumb .up-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; }
.up-thumb .up-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; color: #111; }
.up-thumb .up-play svg { width: 14px; height: 14px; margin-left: 1px; }
.up-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.up-title { font-size: 13.5px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 7px; align-items: center; }
@media (max-width: 980px) {
  .article-layout { grid-template-columns: 1fr; }
}
/* ПК: правая навигация залипает и скроллится отдельно, по высоте экрана */
@media (min-width: 981px) {
  .article-aside {
    position: sticky; top: 52px; align-self: start;
    max-height: calc(100dvh - 145px);
    overflow-y: auto;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .article-aside::-webkit-scrollbar { width: 0; height: 0; display: none; }
}

/* аккаунт / подписка */
/* колонка аккаунта центрируется, но кнопка «Назад» остаётся у левого края */
.account { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.acard { border-radius: 18px; background: var(--surface); padding: 20px; }
.acard h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; color: var(--text-muted); }
.acard h3 svg { width: 17px; height: 17px; color: var(--accent); }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 11px 16px; }
.kv dt { color: var(--text-muted); font-size: 14px; }
.kv dd { font-size: 14.5px; font-weight: 600; margin: 0; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } }

/* шапка профиля */
.acc-hero { display: flex; align-items: center; gap: 16px; padding: 4px 4px 8px; }
.acc-hero__avatar { width: 58px; height: 58px; border-radius: 18px; flex: none; background: var(--accent); color: #000; display: grid; place-items: center; font-size: 23px; font-weight: 800; }
.acc-hero__name { font-size: 20px; font-weight: 700; letter-spacing: -.4px; }
.acc-hero__meta { font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }
.acc-hero__spacer { flex: 1; }
.acc-status { font-size: 12px; font-weight: 700; padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.acc-status--active { background: color-mix(in srgb, #1f9d55 20%, var(--bg)); color: #1f9d55; }
.acc-status--soon { background: color-mix(in srgb, #d9822b 22%, var(--bg)); color: #d9822b; }
.acc-status--expired { background: color-mix(in srgb, #d33 22%, var(--bg)); color: #e23; }

/* карточка подписки */
.acc-sub__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.acc-sub__name { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.acc-sub__price { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.acc-sub__price b { color: var(--text); font-weight: 700; }
.acc-days { text-align: right; flex: none; }
.acc-days__num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--accent); letter-spacing: -1px; }
.acc-days__lbl { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.acc-sub .sub__bar { margin: 18px 0 0; }
.acc-dates { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.acc-dates > div { display: flex; flex-direction: column; gap: 3px; }
.acc-dates span { font-size: 12px; color: var(--text-muted); }
.acc-dates b { font-size: 14.5px; font-weight: 600; }
.acc-sub .btn { margin-top: 20px; }
@media (max-width: 480px) {
  .acc-hero { flex-wrap: wrap; }
  .acc-hero__spacer { display: none; }
  .acc-days__num { font-size: 30px; }
}

/* инлайн-редактор админки — на всю ширину рабочей области */
.editor-view { max-width: none; width: 100%; }
.editor-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Скелетоны загрузки ---------- */
.sk { position: relative; overflow: hidden; background: var(--hairline); border-radius: 8px; }
.sk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 7%, transparent), transparent);
  animation: sk-shimmer 1.3s infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 13px; border-radius: 6px; }
.skcard { pointer-events: none; }
.skcard .card__media { background: var(--hairline); }
.skcard .card__media::after { display: none; }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }

/* ---------- Нижний бар (телефоны) ---------- */
.bottombar__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px; font-size: 10.5px; font-weight: 600; color: rgba(255,255,255,.6);
  cursor: pointer; border-radius: 14px; transition: color .18s;
}
.bottombar__item svg { width: 22px; height: 22px; }
.bottombar__item.is-active { color: var(--accent); }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .app { padding: 0; gap: 0; }
  /* топбар — плавающая шапка ПОВЕРХ контента (как нижний бар): без чёрной подложки под ней */
  .topbar {
    position: fixed; top: 10px; left: 10px; right: 10px; z-index: 40;
    height: 54px; border-radius: 18px; padding: 0 6px 0 16px; gap: 8px;
    background: rgba(22,24,24,.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  }
  .topbar__tag { display: none; }
  .topbar__user { display: none; }                /* телефон: аватар убираем — переключатель темы у правого края */
  .side { display: none; }                        /* на телефоне меню снизу */
  .content { padding: 76px 10px 96px; }           /* отступ под плавающим топбаром (10+54+зазор) */
  .fld-row { grid-template-columns: 1fr; }

  /* на детальных экранах «Назад» — в самой плашке вместо ESBI, отдельного бара нет */
  .app.is-detail .topbar__back { display: inline-flex; }
  .app.is-detail .topbar__logo { display: none; }
  .app.is-detail .topbar { padding-left: 8px; }   /* кнопку «Назад» сдвигаем левее */
  .app.is-detail .viewbar { display: none; }
  /* нижний бар-меню — фиксирован снизу, не пропадает при переходах между вкладками */
  .bottombar {
    display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 50;
    gap: 4px; padding: 6px;
    background: rgba(22,24,24,.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.09); border-radius: 20px;
    box-shadow: var(--shadow-float);
  }
  /* админка: редактор и его кнопки в плашках */
  .vsource { flex-wrap: wrap; }
  .vsource .ui-btn { flex: 1 1 auto; justify-content: center; }
  .editor-foot { flex-wrap: wrap; }
  .editor-foot .ui-btn { flex: 1 1 auto; justify-content: center; }
}

/* админка: строки списка — вертикально, действия снизу плашками */
@media (max-width: 640px) {
  .row { flex-wrap: wrap; row-gap: 12px; padding: 12px; }
  .row__thumb { width: 84px; height: 56px; }
  .row__main { flex: 1 1 130px; }
  .row__actions { flex: 1 1 100%; }
  .row__actions .ui-btn { flex: 1 1 auto; justify-content: center; }
  .row__actions .ui-btn--danger { flex: 0 0 auto; }
}
@media (max-width: 480px) {
  .topbar__user span { display: none; }
  .grid { grid-template-columns: 1fr; }
  .content__head { align-items: flex-start; }
  .content__head .ui-btn--accent { width: 100%; justify-content: center; }
}

/* ============================================================
   НОВЫЕ КОМПОНЕНТЫ (лента, категории, платежи, пользователи)
   Только токены сайта, плоско, без рамок и придуманных ховеров.
   ============================================================ */

/* ---------- Лента (посты) ---------- */
.feed { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--surface); border-radius: 18px; overflow: hidden; }
.post__cover { aspect-ratio: 16 / 9; background: var(--island) center/cover no-repeat; }
.post__inner { padding: 18px 20px 20px; }
.post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.post__pin {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, var(--bg));
  border-radius: 999px; padding: 3px 10px;
}
.post__pin svg { width: 12px; height: 12px; }
.post__date { font-size: 12.5px; color: var(--text-soft); }
.post__title { font-size: 19px; font-weight: 600; letter-spacing: -.4px; line-height: 1.25; margin: 0 0 8px; }
.post__body { font-size: 15px; }
.post__body p:last-child { margin-bottom: 0; }

/* ---------- Категории тренировок ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.cat-card {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  background: var(--surface); border: 0; border-radius: 18px; padding: 18px;
  cursor: pointer; color: var(--text);
}
.cat-card__icon {
  width: 50px; height: 50px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--bg)); color: var(--accent);
}
.cat-card__icon svg { width: 24px; height: 24px; }
.cat-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cat-card__name { font-size: 16.5px; font-weight: 600; letter-spacing: -.3px; }
.cat-card__desc {
  font-size: 13px; color: var(--text-muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card__count { font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.cat-card__chev { flex: none; color: var(--text-soft); }
.cat-card__chev svg { width: 20px; height: 20px; }

/* ---------- Мой кабинет: тексты/кнопки в карточках ---------- */
.acc-text { font-size: 14px; color: var(--text-muted); line-height: 1.55; margin: 0 0 16px; }

/* ---------- История платежей ---------- */
.pay-list { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.pay-row { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 14px 16px; }
.pay-row__icon {
  width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, #1f9d55 18%, var(--bg)); color: #1f9d55;
}
.pay-row__icon svg { width: 18px; height: 18px; }
.pay-row__main { flex: 1; min-width: 0; }
.pay-row__plan { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.pay-row__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.pay-row__right { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.pay-row__amount { font-size: 15.5px; font-weight: 700; }
.pay-status {
  font-size: 11px; font-weight: 700; color: #1f9d55;
  background: color-mix(in srgb, #1f9d55 18%, var(--bg)); border-radius: 999px; padding: 2px 9px;
}

/* ---------- Пагинация ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.pager__info { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* ---------- Пагинация/плашка категории в списках ---------- */
.pill--cat { background: var(--hairline); color: var(--text-muted); }
.pill--first { background: color-mix(in srgb, var(--accent) 18%, var(--bg)); color: var(--accent); }

/* ---------- Карточка материала в админке: две зоны (понятно + адаптивно) ----------
   Сверху — обложка + название/метки; снизу — панель управления:
   перестановка (↑↓/первым) и свитчер показа слева, «Изменить»/удалить справа. */
.row--material { flex-direction: column; align-items: stretch; gap: 12px; }
.row--material .row__top { display: flex; align-items: center; gap: 14px; }
.row--material .row__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.row__tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row__cta { display: flex; align-items: center; gap: 8px; }

/* перестановка ↑↓/первым */
.reorder { display: flex; flex-direction: column; gap: 3px; flex: none; }
.reorder--h { flex-direction: row; gap: 4px; }
.reorder__btn {
  width: 32px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--hairline); color: var(--text-muted); cursor: pointer;
}
.reorder__btn svg { width: 15px; height: 15px; }
.reorder__btn:disabled { opacity: .35; cursor: default; }

/* свитчер показа — квадратный со скруглёнными углами (как тумблер темы) */
.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; flex: none; cursor: pointer; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.switch__track {
  display: block; width: 44px; height: 26px; border-radius: 9px; position: relative; flex: none;
  background: color-mix(in srgb, var(--text) 26%, transparent); transition: background .18s;
}
.switch__thumb {
  position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s;
}
.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(18px); }
.switch__text { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* скрытый у пользователей материал — слегка приглушаем (кроме панели управления) */
.row.is-hidden .row__thumb, .row.is-hidden .row__title { opacity: .55; }

/* адаптив карточки материала: на узких — кнопки во всю ширину, панель раскладывается */
@media (max-width: 600px) {
  .row--material .row__tools { width: 100%; justify-content: space-between; }
  .row--material .row__cta { flex: 1 1 100%; }
  .row--material .row__cta .ui-btn--ghost { flex: 1; justify-content: center; }
}

/* ---------- Чекбокс-лейбл (читаемый, не как мелкий .fld label) ---------- */
.fld label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text); }
.fld label.check input { width: 16px; height: 16px; accent-color: var(--accent); }

/* обложка вставляется прямо в дропзону (как будет на сайте) + крестик удаления */
.cover-zone { position: relative; max-width: 480px; }
.cover-zone__del {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.cover-zone__del[hidden] { display: none; }
.cover-zone__del svg { width: 18px; height: 18px; }
/* заполненная дропзона = сама картинка (обрезка по центру, скруглённая) */
.dropzone.is-filled {
  border: 0; padding: 0; overflow: hidden; position: relative; color: #fff;
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.dropzone.is-filled > i, .dropzone.is-filled > svg, .dropzone.is-filled > div { display: none; }
.dropzone.is-filled::after {
  content: "Нажмите, чтобы заменить"; position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 14px; font-size: 12.5px; font-weight: 600; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
}

/* список фич тарифа */
.plan-feats { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.plan-feats li { font-size: 13.5px; color: var(--text-muted); list-style: none; }

/* ---------- Админка: управление категориями ---------- */
.cat-manager { margin-bottom: 4px; }
.cat-manager__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hairline); border-radius: 12px; padding: 7px 8px 7px 12px;
  font-size: 13.5px; font-weight: 600;
}
.cat-chip > svg { width: 15px; height: 15px; color: var(--text-muted); }
.cat-chip__count { font-size: 11px; font-weight: 700; color: var(--text-soft); background: var(--surface); border-radius: 999px; padding: 1px 8px; }
.cat-chip__btn { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-muted); cursor: pointer; }
.cat-chip__btn svg { width: 14px; height: 14px; }
.cat-chip__btn:hover { background: var(--surface); color: var(--text); }
.cat-manager__add { display: flex; gap: 8px; }
.cat-manager__add input {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 13px; font-size: 14px; color: var(--text); outline: none; transition: border-color .18s;
}
.cat-manager__add input:focus { border-color: var(--accent); }

/* ---------- Админка: поиск пользователей ---------- */
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-soft); pointer-events: none; }
.search input {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px 10px 36px; font-size: 14px; color: var(--text); outline: none;
  min-width: 260px; transition: border-color .18s;
}
.search input:focus { border-color: var(--accent); }

/* ---------- Админка: таблица пользователей ---------- */
.utable { display: flex; flex-direction: column; gap: 10px; }
.urow { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 14px; padding: 12px 16px; }
.urow__avatar { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--accent); color: #000; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.urow__main { flex: 1; min-width: 0; }
.urow__name { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }
.urow__login { font-weight: 500; color: var(--text-muted); font-size: 13px; margin-left: 6px; }
.urow__meta { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.urow__actions { flex: none; }
.urow__badge { font-size: 11px; font-weight: 700; background: color-mix(in srgb, var(--text) 12%, transparent); border-radius: 999px; padding: 1px 7px; margin-left: 2px; }
/* статус в строке пользователя — компактнее (профиль в кабинете не трогаем) */
.urow__meta .acc-status { font-size: 11.5px; padding: 3px 10px; }

/* окно активности пользователя */
.um-head { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; padding: 2px 2px 4px; }
.um-head__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.um-head__row span { color: var(--text-muted); }
.um-head__row b { font-weight: 600; }
.um-subtitle { font-size: 13px; font-weight: 700; color: var(--text-muted); margin: 14px 2px 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.act-list { display: flex; flex-direction: column; gap: 8px; }
.act-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 12px; padding: 11px 14px; }
.act-row__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.act-row__main { flex: 1; min-width: 0; }
.act-row__action { font-size: 14px; font-weight: 600; }
.act-row__target { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-row__when { font-size: 12px; color: var(--text-soft); flex: none; white-space: nowrap; }

/* адаптив новых компонентов */
@media (max-width: 640px) {
  .search, .search input { min-width: 0; width: 100%; }
  .content__head .search { width: 100%; }
  .urow { flex-wrap: wrap; }
  .urow__main { flex: 1 1 160px; }
  .urow__actions { flex: 1 1 100%; }
  .urow__actions .ui-btn { width: 100%; justify-content: center; }
  .um-head { grid-template-columns: 1fr; gap: 8px; }
  .post__inner { padding: 16px 16px 18px; }

  /* категории в админке — горизонтальный скролл вбок (без переноса) */
  .cat-manager__list, #admin-cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .cat-manager__list { margin: 0 -2px 14px; padding: 2px; }
  .cat-manager__list::-webkit-scrollbar, #admin-cats::-webkit-scrollbar { display: none; }
  .cat-chip, #admin-cats .chip { flex: 0 0 auto; }
}

/* ============================================================
   Детальные экраны (.app.is-detail): убираем лишнюю щель/полоску
   сверху — прижимаем верх контента к топбару. Действует только на
   экранах категории / урока / платежей / редактора; вкладки-списки
   (без .is-detail) не затрагиваются. Выше по специфичности, чем
   базовые правила и мобильные @media — без !important.
   ============================================================ */
/* топбар НЕ трогаем — у него остаётся обычный отступ сверху (как на вкладках),
   чтобы верхняя плашка не прилипала к краю экрана на детальных экранах. */
.app.is-detail .content { padding-top: 0; }
.app.is-detail .viewbar { padding-bottom: 10px; }   /* лёгкий отступ под кнопкой «Назад», чтобы контент не прилипал */
.app.is-detail .content__head { margin-bottom: 0; }
/* на телефоне топбар плавающий — отступ сверху нужен и на детальных экранах */
@media (max-width: 860px) { .app.is-detail .content { padding-top: 76px; } }

/* Мой кабинет: на телефоне кнопки в карточках — во всю ширину */
@media (max-width: 860px) {
  .account .acard .btn,
  .account .acard .ui-btn { width: 100%; }
  .account .acard .btn { justify-content: space-between; }  /* текст слева, чип-стрелка у правого края */
}

/* iOS: при фокусе на поле экран не зумится — на сенсорных поля ≥16px (десктоп не трогаем) */
@media (pointer: coarse) {
  .fld input, .fld textarea, .fld select,
  .fld input[type=text], .fld input[type=number], .fld input[type=url], .fld input[type=datetime-local],
  .search input, .cat-manager__add input, .price-input input,
  .editor-wrap .ql-editor { font-size: 16px; }
}

/* на телефонах во вкладке «Все» перестановку не показываем (порядок задаётся внутри категории) */
@media (max-width: 640px) {
  .rows--all .reorder { display: none; }
}

