/* =========================================================================
   Acumulator.md — редизайн «Эксперт»
   Единый файл стилей. Все классы с префиксом .rd- чтобы не конфликтовать
   с Bootstrap, который пока остаётся подключённым на время миграции.
   Токены — из раздела Design Tokens в README хендоффа.
   ========================================================================= */

:root {
  /* --- Цвета --- */
  --yellow: #F9BE0B;
  --yellow-soft: #FFF7DA;
  --yellow-tint: #FFF9E3;
  --yellow-tint-2: #FFF3C4;
  --yellow-text: #9A7000;      /* hover ссылок */
  --yellow-text-2: #7A5A00;    /* текст на #FFF3C4 */
  --yellow-text-3: #C79500;    /* крупные номера */

  --ink: #1A1A17;              /* основной текст, тёмные блоки */
  --text-2: #2E2D28;           /* текст лонгрида */
  --muted: #5C5B54;
  --muted-2: #8A887F;
  --placeholder: #A8A59B;
  --placeholder-2: #B5B2A8;

  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --line: #E4E0D6;
  --line-soft: #EFECE4;
  --line-soft-2: #F2EFE8;

  --dark-2: #2A2925;
  --dark-3: #33322D;
  --dark-4: #3A3934;
  --on-dark: #E8E6DF;
  --on-dark-muted: #BDBBB3;
  --on-dark-muted-2: #A8A69E;

  --success: #2E7D4F;
  --success-bg: #E7F4EC;

  /* --- Типографика --- */
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --font-logo: 'Exo 2', var(--font);

  /* --- Радиусы --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 99px;

  /* --- Тени --- */
  --shadow-card: 0 1px 0 #E4E0D6, 0 24px 60px rgba(40, 35, 20, .10);
  --shadow-card-mobile: 0 12px 30px rgba(40, 35, 20, .08);
  --shadow-seg: 0 1px 3px rgba(0, 0, 0, .12);

  /* --- Контейнер --- */
  --container: 1280px;
  --pad-x: 48px;
}

/* ====================== base ====================== */
.rd * { box-sizing: border-box; }

/* Включаем только внутри блоков с .rd на body, чтобы не ломать админку Django */
body.rd {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Низкая специфичность (0-0-1), чтобы цветные кнопки/компоненты-ссылки
   с одним классом (.rd-btn--dark, .rd-catalog-btn и т.п.) перекрывали базовый цвет */
a { color: inherit; text-decoration: none; }
a:hover { color: var(--yellow-text); }
body.rd button { font: inherit; cursor: pointer; }
body.rd img { max-width: 100%; }

/* Защита от горизонтального переполнения: grid-дети не должны распирать сетку */
.rd-article, .rd-article-main, .rd-catalog__results, .rd-cart__main,
.rd-pd-right, .rd-guide .rd-article { min-width: 0; }
.rd-article { overflow-wrap: break-word; word-break: break-word; }
.rd-article img, .rd-article iframe, .rd-article video { max-width: 100%; height: auto; }
.rd-article pre, .rd-article code { max-width: 100%; overflow-x: auto; white-space: pre-wrap; }

body.rd main { display: block; min-height: 40vh; }

.rd-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* показ/скрытие по ширине — ТОЛЬКО скрываем, display элементов не трогаем
   (display:initial == inline и ломает блочные/flex-контейнеры шапки) */
@media (min-width: 1024px) { .rd-mobile-only { display: none !important; } }

/* ====================== ссылки с жёлтым подчёркиванием ====================== */
.rd-link {
  font-weight: 600;
  border-bottom: 2px solid var(--yellow);
  color: var(--ink);
}
.rd-link:hover { color: var(--yellow-text); }

/* ====================== иконки ====================== */
.rd-icon {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.rd-icon--fill { fill: currentColor; stroke: none; }

/* ====================== кнопки ====================== */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
  text-align: center;
  line-height: 1.1;
}
.rd-btn:active { transform: translateY(1px); }
.rd-btn--primary { background: var(--yellow); color: var(--ink); }
.rd-btn--primary:hover { background: #E9B100; color: var(--ink); }
.rd-btn--dark { background: var(--ink); color: #fff; }
.rd-btn--dark:hover { background: #000; color: #fff; }
.rd-btn--secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.rd-btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.rd-btn--outline-ink { background: #fff; border-color: var(--ink); color: var(--ink); }
.rd-btn--block { width: 100%; }
.rd-btn--sm { padding: 11px 15px; font-size: 14px; }

/* ====================== утилити-бар + шапка ====================== */
.rd-topbar {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: 13px;
}
.rd-topbar .rd-container {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.rd-topbar__item { color: var(--on-dark-muted); }
.rd-topbar__spacer { margin-left: auto; }
.rd-topbar a:hover { color: #fff; }

.rd-lang { display: inline-flex; gap: 2px; margin: 0; padding: 0; border: 0; background: none; }
.rd-lang__btn {
  background: none; border: 0; color: var(--on-dark-muted);
  font-size: 13px; font-weight: 500; padding: 2px 5px; border-radius: 6px;
}
.rd-lang__btn.is-active { color: #fff; font-weight: 700; }
.rd-lang__btn:hover { color: #fff; }

.rd-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.rd-header__main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.rd-catalog-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px; background: var(--ink); color: #fff;
  border-radius: var(--r-md); font-weight: 600; font-size: 15px; flex-shrink: 0;
}
.rd-catalog-btn:hover { color: #fff; background: #000; }
.rd-burger { display: inline-flex; flex-direction: column; gap: 3px; }
.rd-burger span { width: 14px; height: 2px; background: var(--yellow); border-radius: 2px; }

.rd-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  color: var(--muted-2); background: #fff;
}
.rd-search:focus-within { border-color: var(--ink); }
.rd-search input {
  flex: 1; min-width: 0; border: 0; outline: none; background: none;
  font-size: 15px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rd-search input::placeholder { color: var(--muted-2); }
.rd-search .rd-icon { color: var(--muted-2); }

.rd-phone { text-align: right; flex-shrink: 0; }
.rd-phone__num { font-weight: 700; font-size: 15px; white-space: nowrap; }
.rd-phone__sub { font-size: 12px; color: var(--muted-2); }

.rd-chip-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-weight: 600; font-size: 14px; flex-shrink: 0; background: #fff;
}
.rd-chip-link:hover { border-color: var(--ink); }

.rd-cart-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: var(--yellow); color: var(--ink);
  border-radius: var(--r-md); font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.rd-cart-btn:hover { background: #E9B100; color: var(--ink); }

/* строка категорий */
.rd-catnav { background: #fff; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); }
.rd-catnav .rd-container {
  display: flex; gap: 26px; align-items: center;
  padding-top: 12px; padding-bottom: 12px;
  font-size: 14px; font-weight: 500; color: var(--dark-4);
  overflow-x: auto;
}
.rd-catnav a { white-space: nowrap; }
.rd-catnav a:hover { color: var(--yellow-text); }
.rd-catnav__right { margin-left: auto; display: flex; gap: 26px; }

/* ====================== мобильная шапка ====================== */
.rd-mheader {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 12px;
}
.rd-mheader__row { display: flex; align-items: center; gap: 8px; }
.rd-icon-btn {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rd-icon-btn--dark { background: var(--ink); color: var(--yellow); }
.rd-icon-btn--outline { border: 1.5px solid var(--line); color: var(--ink); }
.rd-mlang {
  margin-left: auto; height: 44px; display: inline-flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 0 10px;
}

/* ====================== логотип ====================== */
.rd-logo {
  display: inline-flex; align-items: center; height: 32px;
  padding: 0 9px 0 13px; background: var(--yellow); border-radius: 10px;
  transform: skewX(-10deg); flex-shrink: 0; text-decoration: none;
}
.rd-logo:hover { color: inherit; }
.rd-logo__inner {
  display: flex; align-items: center; transform: skewX(10deg);
  font-family: var(--font-logo); font-style: italic; font-weight: 900;
  font-size: 24px; line-height: 1; color: #fff; letter-spacing: -.03em;
}
.rd-logo__name { display: inline-block; transform: translateY(-.1em); }
.rd-logo__md {
  margin-left: 1px; border: 3px solid #fff; border-radius: 6px;
  padding: 0 4px; line-height: .86; padding-bottom: .12em;
}
.rd-logo--sm { height: 24px; padding: 0 7px 0 10px; border-radius: 7px; }
.rd-logo--sm .rd-logo__inner { font-size: 18px; }
.rd-logo--sm .rd-logo__md { border-width: 2px; border-radius: 4px; padding: 0 3px; padding-bottom: .12em; }
.rd-logo--footer { height: 28px; padding: 0 8px 0 12px; border-radius: 8px; }
.rd-logo--footer .rd-logo__inner { font-size: 21px; }
.rd-logo--footer .rd-logo__md { border-width: 2px; border-radius: 5px; padding: 0 3px; padding-bottom: .12em; }

/* ====================== футер ====================== */
.rd-footer {
  background: var(--ink); color: var(--on-dark-muted-2);
  padding: 56px 0 32px; font-size: 14px;
}
.rd-footer .rd-container { display: flex; flex-direction: column; gap: 40px; }
.rd-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.rd-footer__col { display: flex; flex-direction: column; gap: 10px; }
.rd-footer__col b { color: #fff; font-weight: 700; margin-bottom: 2px; }
.rd-footer__col a:hover { color: #fff; }
.rd-footer__desc { line-height: 1.6; }
.rd-footer__bottom {
  border-top: 1px solid var(--dark-3); padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.rd-footer__bottom a:hover { color: #fff; }
.rd-footer .rd-lang__btn { color: var(--on-dark-muted-2); }
.rd-footer .rd-lang__btn.is-active { color: #fff; }

/* ====================== мобильная нижняя панель ====================== */
.rd-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030;
  background: #fff; border-top: 1px solid var(--line);
  display: none;
  justify-content: space-around; align-items: center;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 24px));
}
.rd-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--muted-2); font-size: 11px; font-weight: 500;
  flex: 1; min-height: 44px; justify-content: center; position: relative;
}
.rd-tab__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 28px; border-radius: var(--r-pill);
}
.rd-tab.is-active { color: var(--ink); }
.rd-tab.is-active .rd-tab__ico { background: var(--yellow); }
.rd-tab__badge {
  position: absolute; top: 2px; left: 56%;
  background: var(--ink); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ====================== общие секции / карточки ====================== */
.rd-section { padding-top: 72px; padding-bottom: 72px; }
.rd-section--tight { padding-top: 48px; padding-bottom: 48px; }
.rd-h2 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.rd-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.rd-lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
.rd-mono { font-family: var(--font-mono); }

.rd-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: border-color .18s ease;
}
.rd-card--hover:hover { border-color: var(--ink); }

.rd-badge-stock {
  font-size: 12px; font-weight: 600; color: var(--success);
  background: var(--success-bg); padding: 4px 9px; border-radius: 6px;
}

/* бейдж/пилюля */
.rd-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: 14px; font-weight: 500;
}
.rd-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

/* инпут */
.rd-input {
  width: 100%; padding: 15px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-size: 15px; color: var(--ink); background: #fff;
}
.rd-input:focus { outline: none; border-color: var(--ink); }
.rd-input::placeholder { color: var(--muted-2); }

/* заглушка фото */
.rd-ph {
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  color: var(--placeholder); font-family: var(--font-mono); font-size: 13px;
}

/* сообщения django */
.rd-messages { margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.rd-msg { padding: 12px 16px; border-radius: var(--r-md); font-size: 14px; border: 1px solid var(--line); background: #fff; }
.rd-msg.success { background: var(--success-bg); border-color: #BFE3CC; color: var(--success); }
.rd-msg.error { background: #FDECEC; border-color: #F3C0C0; color: #B42318; }

/* ====================== адаптив ====================== */
@media (max-width: 1023px) {
  :root { --pad-x: 16px; }
  .rd-desktop-only { display: none !important; }
  .rd-tabbar { display: flex; }
  body.rd { padding-bottom: 76px; }
  .rd-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .rd-section { padding-top: 40px; padding-bottom: 40px; }
  .rd-h2 { font-size: 24px; }
}

@media (max-width: 640px) {
  .rd-footer__cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   ГЛАВНАЯ: hero, калькулятор, категории, карточки, комплекты, гид
   ============================================================ */

/* ---------- hero ---------- */
.rd-hero { display: grid; grid-template-columns: 1fr 540px; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 72px; }
.rd-hero__left { display: flex; flex-direction: column; gap: 24px; padding-top: 12px; }
.rd-h1 { margin: 0; font-size: 58px; font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.rd-hero__lead { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 540px; }
.rd-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-advantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.rd-adv { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.rd-adv__n { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.rd-adv__t { font-weight: 600; margin-top: 10px; line-height: 1.3; }

/* ---------- калькулятор ---------- */
.rd-calc { background: #fff; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 20px; }
.rd-calc__head { display: flex; justify-content: space-between; align-items: center; }
.rd-calc__title { font-weight: 700; font-size: 20px; }
.rd-calc__note { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.rd-calc__label { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chip {
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 10px 13px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 500; font-size: 14px; min-height: 44px;
  transition: all .15s ease;
}
.rd-chip span { font-family: var(--font-mono); font-size: 11px; opacity: .6; }
.rd-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rd-seg { display: flex; background: var(--line-soft-2); border-radius: 12px; padding: 4px; }
.rd-seg button { flex: 1; padding: 11px; border-radius: 9px; border: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: 14px; }
.rd-seg button.is-on { background: #fff; box-shadow: var(--shadow-seg); }
.rd-calc__result { display: flex; align-items: flex-end; gap: 16px; border-top: 1px dashed var(--line); padding-top: 18px; }
.rd-calc__kwh { font-size: 52px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.rd-calc__kwh span { font-size: 22px; }
.rd-calc__formula { font-family: var(--font-mono); font-size: 13px; color: var(--muted); text-align: right; margin-left: auto; }
.rd-calc__rec { background: var(--yellow-soft); border: 1.5px solid var(--yellow); border-radius: 18px; padding: 14px; display: flex; gap: 14px; align-items: center; }
.rd-calc__rec-ico { width: 64px; height: 64px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--yellow-text-3); }
.rd-calc__rec-name { font-weight: 700; font-size: 16px; }
.rd-calc__rec-d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rd-calc__rec-price { font-weight: 700; font-size: 16px; white-space: nowrap; margin-left: auto; }
.rd-calc__actions { display: flex; gap: 8px; }
.rd-calc__actions .rd-btn { flex: 1; }

/* ---------- категории ---------- */
.rd-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rd-cat { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .18s ease; }
.rd-cat:hover { border-color: var(--ink); color: inherit; }
.rd-cat__media { height: 110px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rd-cat__media img { max-height: 96px; max-width: 80%; object-fit: contain; mix-blend-mode: multiply; }
.rd-cat__t { font-weight: 600; font-size: 15px; line-height: 1.25; }
.rd-cat__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* ---------- карточка товара ---------- */
.rd-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.rd-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.rd-pcard { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; }
.rd-pcard__media { height: 210px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-soft); position: relative; background: #fff; }
.rd-pcard__media img { max-height: 180px; max-width: 78%; object-fit: contain; }
.rd-pcard__ph { width: 100%; height: 100%; }
.rd-pcard__media .rd-badge-stock { position: absolute; top: 12px; left: 12px; }
.rd-pcard__rating { position: absolute; top: 12px; right: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 7px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; color: var(--yellow-text-3); }
.rd-pcard__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rd-pcard__type { font-size: 13px; color: var(--muted-2); }
.rd-pcard__name { font-weight: 600; font-size: 16px; line-height: 1.3; min-height: 42px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rd-pcard__name:hover { color: var(--yellow-text); }
.rd-pcard__specs { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.rd-pcard__price { font-weight: 700; font-size: 22px; margin-top: auto; }
.rd-pcard__price span { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.rd-pcard__actions { display: flex; gap: 6px; }
.rd-pcard__actions .rd-btn, .rd-pcard__stepper { flex: 1; }
.rd-stepper { display: flex; align-items: center; justify-content: space-between; gap: 6px; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 4px; }
.rd-stepper button { width: 36px; height: 36px; border: 0; background: var(--bg); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.rd-stepper button:hover { background: var(--line-soft); }
.rd-stepper span { font-weight: 700; min-width: 20px; text-align: center; }

/* ---------- комплекты ---------- */
.rd-kits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rd-kit { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.rd-kit--popular { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.rd-kit__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rd-kit__name { font-weight: 700; font-size: 22px; }
.rd-kit--popular .rd-kit__name { color: #fff; }
.rd-kit__badge { font-size: 12px; font-weight: 700; background: var(--yellow); color: var(--ink); padding: 5px 10px; border-radius: var(--r-pill); }
.rd-kit__sub { font-size: 15px; opacity: .75; min-height: 42px; }
.rd-kit__rows { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 13px; }
.rd-kit__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(128,128,128,.25); }
.rd-kit__row span:first-child { opacity: .7; }
.rd-kit__row span:last-child { text-align: right; }
.rd-kit__price { font-weight: 700; font-size: 28px; }
.rd-kit__price span { font-size: 14px; font-weight: 500; opacity: .7; }

/* ---------- гид покупателя (лонгрид) ---------- */
.rd-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--yellow); width: 0; z-index: 1050; transition: width .1s linear; }
.rd-guide { background: #fff; border-top: 1px solid var(--line); }
.rd-guide .rd-container { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding-top: 72px; padding-bottom: 72px; }
.rd-toc { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.rd-toc__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.rd-toc__list { display: flex; flex-direction: column; border-left: 2px solid var(--line-soft); }
.rd-toc__list a { display: flex; gap: 10px; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--muted); }
.rd-toc__list a .rd-toc__n { font-family: var(--font-mono); font-size: 12px; color: var(--placeholder-2); padding-top: 1px; }
.rd-toc__list a.is-active { border-left-color: var(--yellow); color: var(--ink); font-weight: 600; }
.rd-toc__meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.rd-article { max-width: 780px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.rd-article h2 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; margin: 40px 0 16px; scroll-margin-top: 24px; }
.rd-article h2:first-child { margin-top: 0; }
.rd-article h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin: 28px 0 12px; }
.rd-article p { margin: 0 0 16px; }
.rd-article ul, .rd-article ol { margin: 0 0 16px; padding-left: 20px; }
.rd-article li { margin-bottom: 8px; }
.rd-article img { border-radius: 14px; margin: 16px 0; }
.rd-article table { width: 100%; border-collapse: collapse; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.rd-article th { background: var(--ink); color: #fff; padding: 12px 16px; text-align: left; font-weight: 600; }
.rd-article td { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.rd-article a { color: var(--ink); border-bottom: 2px solid var(--yellow); font-weight: 600; }
.rd-article a:hover { color: var(--yellow-text); }

/* FAQ-аккордеон */
.rd-faq { border-top: 1px solid var(--line); }
.rd-faq__item { border-bottom: 1px solid var(--line); }
.rd-faq__q { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; text-align: left; background: none; border: 0; padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.rd-faq__ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--line-soft-2); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.rd-faq__item.is-open .rd-faq__ico { background: var(--yellow); }
.rd-faq__a { display: none; padding: 0 50px 20px 0; font-size: 16px; line-height: 1.65; color: var(--muted); }
.rd-faq__item.is-open .rd-faq__a { display: block; }
.rd-faq__ico .rd-ico-minus { display: none; }
.rd-faq__item.is-open .rd-ico-plus { display: none; }
.rd-faq__item.is-open .rd-ico-minus { display: inline-block; }

/* callout «важно» */
.rd-callout { background: var(--yellow-soft); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 10px; margin: 24px 0; }
.rd-callout__tag { font-family: var(--font-mono); font-size: 12px; color: #8A6A00; }

/* ---------- форма заявки ---------- */
.rd-request { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; }
.rd-request__title { font-size: 38px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.rd-request__sub { font-size: 17px; color: var(--muted); margin-top: 12px; line-height: 1.55; max-width: 520px; }
.rd-request__form { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rd-request__alt { display: flex; gap: 8px; font-size: 14px; color: var(--muted); justify-content: center; flex-wrap: wrap; }
.rd-hp { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- мобильные ленты ---------- */
.rd-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.rd-rail > * { scroll-snap-align: start; flex-shrink: 0; }

/* ============================================================
   АДАПТИВ главной
   ============================================================ */
@media (max-width: 1023px) {
  .rd-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 22px; padding-bottom: 32px; }
  .rd-h1 { font-size: 32px; line-height: 1.08; }
  .rd-hero__lead { font-size: 15px; }
  .rd-advantages { grid-template-columns: 1fr; }
  .rd-calc { border-radius: 22px; padding: 16px; box-shadow: var(--shadow-card-mobile); }
  .rd-calc__kwh { font-size: 38px; }
  .rd-calc__kwh span { font-size: 17px; }
  .rd-cats { display: flex; gap: 8px; overflow-x: auto; }
  .rd-cats .rd-cat { width: 118px; flex-shrink: 0; }
  .rd-cats .rd-cat__media { height: 64px; }
  .rd-grid-4, .rd-grid-3 { display: flex; gap: 10px; overflow-x: auto; }
  .rd-grid-4 > *, .rd-grid-3 > * { width: 220px; flex-shrink: 0; }
  .rd-kits { grid-template-columns: 1fr; }
  .rd-guide .rd-container { grid-template-columns: 1fr; gap: 24px; }
  .rd-toc { position: static; }
  .rd-article { max-width: 100%; font-size: 16px; }
  .rd-article h2 { font-size: 22px; }
  .rd-article table { display: block; overflow-x: auto; white-space: nowrap; }
  .rd-request { grid-template-columns: 1fr; gap: 20px; }
  .rd-request__title { font-size: 26px; }
}

/* ============================================================
   КАТАЛОГ
   ============================================================ */
.rd-crumbs { font-size: 14px; color: var(--muted-2); }
.rd-crumbs a:hover { color: var(--yellow-text); }
.rd-crumbs span { color: var(--ink); }
.rd-catalog-head { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; }
.rd-catalog-head__row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.rd-catalog-head__count { font-family: var(--font-mono); font-size: 14px; color: var(--muted-2); }
.rd-catalog-head__sub { font-size: 16px; color: var(--muted); max-width: 760px; }

.rd-catalog { display: grid; grid-template-columns: 268px 1fr; gap: 28px; align-items: start; padding-top: 28px; padding-bottom: 64px; }

/* сайдбар-фильтры */
.rd-filters { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.rd-fgroup { display: flex; flex-direction: column; gap: 10px; }
.rd-fgroup + .rd-fgroup { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.rd-fgroup__title { font-weight: 600; font-size: 15px; }
.rd-fcat { display: flex; justify-content: space-between; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 14px; color: var(--ink); }
.rd-fcat:hover { background: var(--bg); color: var(--ink); }
.rd-fcat.is-active { background: var(--bg); font-weight: 600; }
.rd-fcat span { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.rd-ftoggles { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-ftoggle { position: relative; }
.rd-ftoggle input { position: absolute; opacity: 0; pointer-events: none; }
.rd-ftoggle label { display: inline-flex; padding: 8px 12px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.rd-ftoggle input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.rd-ftoggle input:focus-visible + label { outline: 2px solid var(--yellow); }
.rd-fprice { display: flex; gap: 8px; }
.rd-fprice input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.rd-fcheck { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.rd-fcheck span.rd-count { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* панель над сеткой */
.rd-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rd-achip { display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; background: var(--ink); color: #fff; border: 0; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; }
.rd-achip .rd-icon { opacity: .7; }
.rd-sortseg { margin-left: auto; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.rd-sortseg a { padding: 9px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.rd-sortseg a.is-active { background: var(--ink); color: #fff; }

.rd-catalog__results { display: flex; flex-direction: column; gap: 16px; }
.rd-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px; text-align: center; color: var(--muted); }

/* тёмный баннер + показать ещё */
.rd-banner { background: var(--ink); color: #fff; border-radius: 20px; padding: 24px 28px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rd-banner__t { font-weight: 600; font-size: 19px; }
.rd-banner__d { color: var(--on-dark-muted); font-size: 15px; margin-top: 4px; }
.rd-banner__sp { flex: 1; min-width: 160px; }
.rd-banner .rd-btn--secondary { background: transparent; color: #fff; border-color: #444; }

/* мобильная панель фильтров/сортировки */
.rd-mtools { display: none; gap: 8px; }
.rd-mtools button, .rd-mtools select { flex: 1; height: 44px; border-radius: 12px; background: #fff; font-weight: 600; font-size: 14px; }
.rd-mtools button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rd-mtools .rd-mfilter { border: 1.5px solid var(--ink); color: var(--ink); }
.rd-mtools select.rd-msort {
  border: 1.5px solid var(--line); color: var(--ink);
  padding: 0 34px 0 12px; -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231A1A17' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.rd-mchips { display: none; gap: 6px; overflow-x: auto; }
.rd-mchips button { flex-shrink: 0; padding: 10px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; }
.rd-mchips button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.rd-sheet-backdrop { display: none; position: fixed; inset: 0; background: rgba(26,26,23,.45); z-index: 1040; }
.rd-sheet-backdrop.is-open { display: block; }
.rd-sheet-handle { width: 40px; height: 4px; border-radius: 4px; background: #D6D2C6; align-self: center; margin-bottom: 4px; }
.rd-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.rd-sheet-head button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--line-soft-2); display: inline-flex; align-items: center; justify-content: center; }

@media (max-width: 1023px) {
  .rd-catalog { grid-template-columns: 1fr; gap: 16px; padding-bottom: 24px; }
  .rd-catalog-head__count, .rd-h1 { }
  .rd-catalog .rd-grid-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .rd-catalog .rd-grid-3 > * { width: auto; }
  .rd-catalog .rd-pcard__media { height: 124px; }
  .rd-catalog .rd-pcard__media img { max-height: 108px; }
  .rd-catalog .rd-pcard__name { font-size: 14px; min-height: 36px; }
  .rd-catalog .rd-pcard__price { font-size: 18px; }
  .rd-pcard__actions { flex-wrap: wrap; }
  .rd-sortseg { display: none; }
  .rd-toolbar .rd-achip { display: none; }
  .rd-mtools { display: flex; }
  .rd-mchips { display: flex; }

  /* сайдбар превращается в нижнюю шторку */
  .rd-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1041;
    border-radius: 24px 24px 0 0; max-height: 82vh; overflow-y: auto;
    transform: translateY(105%); transition: transform .25s ease;
  }
  .rd-filters.is-open { transform: translateY(0); }
}

/* ============================================================
   КАРТОЧКА ТОВАРА
   ============================================================ */
.rd-product { display: grid; grid-template-columns: 1fr 500px; gap: 40px; align-items: start; padding-top: 24px; padding-bottom: 56px; }

/* галерея */
.rd-gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.rd-gallery__thumbs { display: flex; flex-direction: column; gap: 10px; }
.rd-gallery__thumb { height: 84px; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.rd-gallery__thumb.is-active { border: 2px solid var(--ink); }
.rd-gallery__thumb img { max-height: 70px; max-width: 80%; object-fit: contain; }
.rd-gallery__main { background: #fff; border: 1px solid var(--line); border-radius: 24px; min-height: 600px; display: flex; align-items: center; justify-content: center; position: relative; padding: 20px; }
.rd-gallery__main img { max-height: 520px; max-width: 100%; object-fit: contain; }
.rd-gallery__main .rd-badge-stock { position: absolute; top: 18px; left: 18px; font-size: 13px; padding: 6px 11px; border-radius: 8px; }
.rd-gallery__dims { position: absolute; bottom: 18px; right: 18px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }

/* правая колонка */
.rd-pd-right { display: flex; flex-direction: column; gap: 20px; }
.rd-pd-meta { font-size: 14px; color: var(--muted); }
.rd-pd-h1 { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
.rd-pd-reviews { font-size: 14px; color: var(--muted-2); }
.rd-pd-reviews a { color: var(--ink); border-bottom: 1.5px solid var(--yellow); }
.rd-pd-reviews .rd-stars { color: var(--yellow-text-3); font-weight: 600; }

.rd-spec-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rd-spec-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.rd-spec-tile__k { font-size: 12px; color: var(--muted-2); line-height: 1.25; }
.rd-spec-tile__v { font-weight: 600; font-size: 18px; margin-top: 4px; }

/* блок покупки */
.rd-buy { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.rd-buy__price { display: flex; align-items: baseline; gap: 10px; }
.rd-buy__price b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.rd-buy__price span { font-size: 18px; color: var(--muted); }
.rd-buy__row { display: flex; gap: 10px; }
.rd-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; }
.rd-qty button { width: 46px; height: 50px; border: 0; background: none; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; }
.rd-qty span { min-width: 28px; text-align: center; font-weight: 600; }
.rd-buy__add { flex: 1; height: 52px; font-size: 16px; }
.rd-oneclick { display: none; flex-direction: column; gap: 8px; background: var(--bg); border-radius: 14px; padding: 14px; }
.rd-oneclick.is-open { display: flex; }
.rd-oneclick__row { display: flex; gap: 8px; }
.rd-oneclick__row input { flex: 1; min-width: 0; padding: 13px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; font-size: 14px; }
.rd-buy__info { display: flex; flex-direction: column; border-top: 1px solid var(--line-soft); font-size: 14px; }
.rd-buy__info > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.rd-buy__info > div:last-child { border-bottom: 0; }
.rd-buy__info span { color: var(--muted); }
.rd-buy__info b { font-weight: 600; text-align: right; }

.rd-compat { display: flex; align-items: center; gap: 12px; background: var(--yellow-soft); border-radius: 16px; padding: 14px 16px; flex-wrap: wrap; }
.rd-compat__t { flex: 1; min-width: 150px; font-size: 14px; line-height: 1.45; }

/* вкладки + сайдбар «часто берут вместе» */
.rd-pd-tabs-wrap { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; padding-bottom: 56px; }
.rd-tabs { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.rd-tabs__head { display: flex; border-bottom: 1px solid var(--line); padding: 0 12px; flex-wrap: wrap; }
.rd-tabs__head button { padding: 18px 16px; border: 0; background: none; border-bottom: 3px solid transparent; font-weight: 600; font-size: 15px; color: var(--muted-2); }
.rd-tabs__head button.is-active { border-bottom-color: var(--yellow); color: var(--ink); }
.rd-tabs__body { padding: 24px 28px; }
.rd-tabpane { display: none; }
.rd-tabpane:first-child { display: block; }
.rd-spec-row { display: grid; grid-template-columns: 1fr 200px; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.rd-spec-row span:first-child { color: var(--muted); }
.rd-spec-row span:last-child { font-family: var(--font-mono); font-size: 14px; }
.rd-tabpane--desc { font-size: 16px; line-height: 1.7; color: var(--text-2); max-width: 680px; }

.rd-together { display: flex; flex-direction: column; gap: 12px; }
.rd-together__title { font-weight: 600; font-size: 18px; }
.rd-mini { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; }
.rd-mini__img { width: 60px; height: 60px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.rd-mini__img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.rd-mini__info { flex: 1; min-width: 0; }
.rd-mini__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.rd-mini__price { font-size: 13px; color: var(--muted); margin-top: 2px; }
.rd-mini__add { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); border: 0; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* мобильная закреплённая панель цены */
.rd-pbar { display: none; }

@media (max-width: 1023px) {
  .rd-product { grid-template-columns: 1fr; gap: 20px; padding-top: 12px; }
  .rd-gallery { grid-template-columns: 1fr; }
  .rd-gallery__main { min-height: 320px; order: -1; }
  .rd-gallery__main img { max-height: 290px; }
  .rd-gallery__thumbs { flex-direction: row; overflow-x: auto; }
  .rd-gallery__thumb { width: 72px; flex-shrink: 0; }
  .rd-pd-h1 { font-size: 24px; }
  .rd-spec-tiles { display: flex; overflow-x: auto; }
  .rd-spec-tile { flex-shrink: 0; min-width: 130px; }
  .rd-pd-tabs-wrap { grid-template-columns: 1fr; }
  .rd-spec-row { grid-template-columns: 1fr auto; gap: 12px; }
  /* на товаре прячем нижнюю панель навигации и показываем панель цены */
  .page-product_detail .rd-tabbar { display: none; }
  body.rd.page-product_detail { padding-bottom: 86px; }
  .rd-pbar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 14px));
  }
  .rd-pbar__price { flex: 1; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
  .rd-pbar__price span { font-size: 13px; font-weight: 500; color: var(--muted); }
  .rd-pbar .rd-btn { height: 48px; }
}

/* ============================================================
   КОРЗИНА + ОФОРМЛЕНИЕ
   ============================================================ */
.rd-steps { display: flex; gap: 10px; align-items: center; padding-top: 28px; font-size: 14px; color: var(--muted-2); flex-wrap: wrap; }
.rd-steps b { color: var(--ink); }
.rd-steps__num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; margin-right: 6px; }
.rd-steps__num--muted { background: var(--line); color: var(--muted); }

.rd-cart { display: grid; grid-template-columns: 1fr 400px; gap: 28px; align-items: start; padding-top: 20px; padding-bottom: 56px; }
.rd-cart__main { display: flex; flex-direction: column; gap: 24px; }
.rd-cart__block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.rd-cart__block h2 { margin: 0 0 16px; font-size: 20px; font-weight: 600; }

.rd-citem { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.rd-citem:last-child { border-bottom: 0; }
.rd-citem__img { width: 88px; height: 88px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; background: #fff; }
.rd-citem__img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.rd-citem__info { flex: 1; min-width: 0; }
.rd-citem__cat { font-size: 12px; color: var(--muted-2); }
.rd-citem__name { font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--ink); }
.rd-citem__unit { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin-top: 4px; }
.rd-citem__right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rd-citem__sum { font-weight: 700; font-size: 16px; white-space: nowrap; }
.rd-citem__del { background: none; border: 0; color: var(--muted-2); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.rd-citem__del:hover { color: #B42318; }

/* радио-карточки доставки / канала связи */
.rd-radio-cards { display: flex; flex-direction: column; gap: 10px; }
.rd-radio-cards--row { flex-direction: row; flex-wrap: wrap; }
.rd-radio { position: relative; display: block; }
.rd-radio input { position: absolute; opacity: 0; pointer-events: none; }
.rd-radio label { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; font-size: 15px; min-height: 44px; }
.rd-radio input:checked + label { border-color: var(--ink); background: var(--bg); font-weight: 600; }
.rd-radio input:focus-visible + label { outline: 2px solid var(--yellow); }
.rd-radio__hint { font-size: 13px; color: var(--muted-2); font-weight: 400; margin-left: auto; }

.rd-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; }
.rd-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }
.rd-check__t { font-weight: 600; }
.rd-check__d { font-size: 13px; color: var(--muted-2); }

.rd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.rd-field label { font-size: 14px; font-weight: 600; }
.rd-field .rd-err { color: #B42318; font-size: 13px; }
.rd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* сводка заказа */
.rd-summary { position: sticky; top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.rd-summary h2 { margin: 0; font-size: 20px; font-weight: 600; }
.rd-summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.rd-summary__row b { color: var(--ink); font-weight: 600; }
.rd-summary__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.rd-summary__total b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.rd-summary__note { font-size: 13px; color: var(--muted-2); line-height: 1.5; }
.rd-trust { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.rd-trust div { display: flex; gap: 8px; align-items: center; }
.rd-trust .rd-icon { color: var(--success); }

.rd-cart-empty { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 64px 24px; text-align: center; }
.rd-cart-empty .rd-icon { color: var(--muted-2); }

.rd-cart-mbar { display: none; }

@media (max-width: 1023px) {
  .rd-cart { grid-template-columns: 1fr; gap: 16px; }
  .rd-form-grid { grid-template-columns: 1fr; }
  .page-cart_detail .rd-tabbar, .page-order_create .rd-tabbar { display: none; }
  body.rd.page-cart_detail, body.rd.page-order_create { padding-bottom: 92px; }
  .rd-summary { position: static; }
  .rd-summary__submit { display: none; }
  /* закреплённая нижняя панель «Итого + Оформить» */
  .rd-cart-mbar {
    display: flex; align-items: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1035;
    background: #fff; border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 14px));
  }
  .rd-cart-mbar__total { flex: 1; }
  .rd-cart-mbar__total small { display: block; font-size: 12px; color: var(--muted-2); }
  .rd-cart-mbar__total b { font-size: 20px; font-weight: 700; }
}

/* ============================================================
   О НАС + КОНТАКТЫ
   ============================================================ */
.rd-about-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: end; padding-top: 48px; padding-bottom: 48px; }
.rd-about-hero__photo { height: 300px; border-radius: 24px; background: repeating-linear-gradient(135deg,#EFECE4 0 12px,#E8E4DA 12px 24px); display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-family: var(--font-mono); font-size: 13px; overflow: hidden; }
.rd-about-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

.rd-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 48px; }
.rd-why__card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.rd-why__card--dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.rd-why__n { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.rd-why__card--dark .rd-why__n { color: var(--yellow); }
.rd-why__t { font-weight: 600; font-size: 20px; }
.rd-why__card--dark .rd-why__t { color: #fff; }
.rd-why__d { font-size: 15px; line-height: 1.6; color: var(--muted); }
.rd-why__card--dark .rd-why__d { color: var(--on-dark-muted); }

.rd-about-body { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; }
.rd-about-body .rd-article { max-width: 820px; margin: 0 auto; }

/* контакты */
.rd-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; padding-bottom: 56px; }
.rd-ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-ctile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.rd-ctile--wide { grid-column: 1 / -1; }
.rd-ctile__k { font-size: 13px; color: var(--muted-2); }
.rd-ctile__v { font-weight: 600; font-size: 18px; margin-top: 4px; }
.rd-contact__btns { display: flex; gap: 10px; margin-top: 14px; }
.rd-contact__btns .rd-btn { flex: 1; }
.rd-map { border-radius: 24px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); }
.rd-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

@media (max-width: 1023px) {
  .rd-about-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .rd-about-hero .rd-h1 { font-size: 34px; }
  .rd-about-hero__photo { height: 180px; }
  .rd-why { display: flex; overflow-x: auto; }
  .rd-why__card { width: 250px; flex-shrink: 0; }
  .rd-about-body { padding: 20px; }
  .rd-contact { grid-template-columns: 1fr; }
}

/* ============================================================
   БЛОГ / СТАТЬИ
   ============================================================ */
.rd-blog-head { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.rd-blog-head__row { display: flex; align-items: baseline; gap: 14px; }
.rd-topics { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rd-topic { flex-shrink: 0; padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.rd-topic:hover { border-color: var(--ink); color: var(--ink); }
.rd-topic.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.rd-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--ink); color: var(--on-dark); border-radius: var(--r-xl); overflow: hidden; margin-top: 8px; }
.rd-featured__media { min-height: 320px; background: var(--dark-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rd-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-featured__body { padding: 40px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.rd-featured__tag { align-self: flex-start; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px; }
.rd-featured__title { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.rd-featured__ex { font-size: 16px; line-height: 1.6; color: var(--on-dark-muted); }
.rd-featured__meta { font-family: var(--font-mono); font-size: 13px; color: var(--on-dark-muted-2); display: flex; gap: 14px; }

.rd-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.rd-post { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: border-color .18s ease; }
.rd-post:hover { border-color: var(--ink); color: inherit; }
.rd-post__media { height: 190px; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rd-post__media img { width: 100%; height: 100%; object-fit: cover; }
.rd-post__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rd-post__tag { align-self: flex-start; background: var(--yellow-tint-2); color: var(--yellow-text-2); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }
.rd-post__date { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); }
.rd-post__title { font-weight: 600; font-size: 18px; line-height: 1.3; color: var(--ink); }
.rd-post__ex { font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rd-post__foot { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); display: flex; align-items: center; gap: 6px; }

.rd-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.rd-pagination a, .rd-pagination span { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; padding: 0 12px; }
.rd-pagination .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* страница статьи */
.rd-article-layout { display: grid; grid-template-columns: 220px 1fr 300px; gap: 40px; align-items: start; padding-top: 24px; padding-bottom: 56px; }
.rd-article-main { max-width: 760px; }
.rd-article-main h1 { font-size: 44px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; margin: 8px 0 12px; }
.rd-article-meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.rd-article-cover { width: 100%; border-radius: var(--r-lg); margin-bottom: 24px; }
.rd-aside-r { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.rd-aside-card { background: var(--ink); color: var(--on-dark); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.rd-aside-card__t { font-weight: 600; font-size: 18px; color: #fff; }
.rd-aside-card__d { font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.rd-aside-also { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.rd-aside-also__t { font-weight: 600; font-size: 16px; }
.rd-aside-also a { font-size: 14px; line-height: 1.4; color: var(--ink); display: block; }
.rd-aside-also a:hover { color: var(--yellow-text); }

@media (max-width: 1023px) {
  .rd-featured { grid-template-columns: 1fr; }
  .rd-featured__media { min-height: 180px; }
  .rd-featured__body { padding: 20px; }
  .rd-featured__title { font-size: 22px; }
  .rd-posts { grid-template-columns: 1fr; }
  .rd-article-layout { grid-template-columns: 1fr; gap: 20px; }
  .rd-article-main h1 { font-size: 28px; }
  .rd-aside-r { position: static; }
  .rd-toc--article { display: none; }
}

/* ============================================================
   Мобильные правки: переполнение по ширине + кнопки карточек
   ============================================================ */
@media (max-width: 1023px) {
  html, body.rd { overflow-x: hidden; max-width: 100%; }
  /* На узких карточках прячем «1 клик», «В корзину» занимает всю ширину в одну строку */
  .rd-pcard__actions .rd-btn--secondary { display: none; }
  .rd-pcard__add, .rd-pcard__stepper { flex: 1 1 100%; }
  .rd-pcard__add { padding: 11px 10px; }
}
