/* =========================================================
   РЕДАКТОР КОДА ОНЛАЙН (/tools/code-editor) — стили инструмента.
   Палитра и переменные — из style.css. Раскладка переключается
   контейнерными запросами: с 1024px у сайта фиксированный сайдбар
   332px, и ширина окна не равна ширине, доступной инструменту.
   ========================================================= */

[hidden] { display: none !important; }

.rk-tool {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid rgba(43, 47, 51, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(16, 20, 24, 0.05), 0 10px 28px -18px rgba(16, 20, 24, 0.22);
  overflow: hidden;
  margin: 0 0 8px;
  container: rktool / inline-size;
}

/* ---------- Кнопки ---------- */
.rk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  background: var(--color-surface);
  border: 1px solid rgba(43, 47, 51, 0.12);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-text-strong);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}
.rk-btn i { font-size: 15px; line-height: 1; display: inline-flex; }
.rk-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }
.rk-btn:focus-visible, .rk-icon-btn:focus-visible, .rk-select:focus-visible,
.rk-tab:focus-visible, .rk-tab-add:focus-visible, .rk-seg button:focus-visible,
.rk-console-toggle:focus-visible, .rk-console-clear:focus-visible, .rk-notice button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.rk-btn.is-icon-only { width: 32px; padding: 0; }
.rk-btn.is-active { background: var(--color-accent); border-color: var(--color-accent); color: #06231a; }
.rk-btn.is-active:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }
.rk-btn:disabled { opacity: 0.42; cursor: not-allowed; }
.rk-btn:disabled:hover { border-color: rgba(43, 47, 51, 0.12); color: var(--color-text-strong); }
.rk-btn.is-busy { cursor: progress; }
.rk-btn.is-busy i { animation: rk-spin 0.9s linear infinite; }
@keyframes rk-spin { to { transform: rotate(360deg); } }

/* ---------- Панель инструментов ---------- */
.rk-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
  padding: 12px 14px;
  /* Не цвет фона страницы: панель лежит на краю карточки и с фоном
     страницы сливалась — граница инструмента пропадала */
  background: var(--color-surface);
  border-bottom: 1px solid rgba(43, 47, 51, 0.1);
}
.rk-toolbar-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-left: 1px solid rgba(43, 47, 51, 0.1);
}
.rk-toolbar-group:first-child { padding-left: 0; border-left: none; }
.rk-toolbar-group--end { margin-left: auto; border-left: none; padding-right: 0; }

.rk-select {
  --select-pad: 12px;
  height: 34px;
  width: 148px;
  padding-block: 0;
  background-color: var(--color-surface);
  border: 1px solid rgba(43, 47, 51, 0.12);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-strong);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.rk-select:hover { border-color: var(--color-accent); }

/* ---------- Вкладки ---------- */
.rk-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 8px 10px 0;
  background: #F7F8FA;
  border-bottom: 1px solid rgba(43, 47, 51, 0.1);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}
.rk-tabs::-webkit-scrollbar { height: 4px; }
.rk-tabs::-webkit-scrollbar-thumb { background: rgba(43, 47, 51, 0.18); border-radius: 4px; }

.rk-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 6px 0 14px;
  margin-bottom: -1px;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.rk-tab:hover { color: var(--color-text-strong); background: #EEF0F3; }
.rk-tab.is-active {
  background: var(--color-surface);
  color: var(--color-text-strong);
  border-color: rgba(43, 47, 51, 0.1);
}
.rk-tab.is-active::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--color-accent);
}
.rk-tab-name { outline: none; max-width: 200px; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.rk-tab-name[contenteditable="true"] {
  max-width: none;
  overflow: visible;
  padding: 1px 5px;
  margin: 0 -5px;
  border-radius: 5px;
  background: var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
  color: var(--color-text-strong);
  cursor: text;
}
.rk-tab-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent-dark); flex-shrink: 0; display: none; }
.rk-tab.is-dirty .rk-tab-dot { display: block; }
.rk-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.rk-tab-close i { display: inline-flex; }
.rk-tab-close::after { content: ""; position: absolute; inset: -5px; }
.rk-tab-close:hover { background: #F6E4E4; color: #B83A3A; }
.rk-tab-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 0 3px 4px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: none;
  color: var(--color-muted);
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.rk-tab-add:hover { background: var(--color-surface); color: var(--color-accent-dark); }

/* ---------- Рабочая область ---------- */
.rk-workspace {
  display: flex;
  height: 600px;
  background: var(--color-surface);
}
.rk-editor-pane { position: relative; flex: 1 1 50%; min-width: 0; }
.rk-editor-host { position: absolute; inset: 0; }

.rk-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--color-muted);
}
.rk-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid rgba(43, 47, 51, 0.12);
  border-top-color: var(--color-accent);
  animation: rk-spin 0.8s linear infinite;
}
/* Только прямые потомки: значок внутри кнопки «Попробовать снова» не должен
   становиться плиткой 48×48 и наезжать на подпись кнопки */
.rk-loading.is-error > i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--color-bg); color: var(--color-text-strong); font-size: 22px;
}
.rk-loading.is-error > strong { font-size: 16px; color: var(--color-text-strong); }
.rk-loading.is-error > span { max-width: 440px; line-height: 1.6; }
.rk-loading.is-error > .rk-btn { margin-top: 4px; }
/* Редактора нет — кнопки панели и вкладки ничего не сделают; приглушаем их, чтобы не выглядели рабочими */
.rk-tool.is-failed .rk-toolbar, .rk-tool.is-failed .rk-tabs { opacity: 0.45; pointer-events: none; }

.rk-drop {
  position: absolute;
  inset: 12px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px dashed var(--color-accent);
  border-radius: 16px;
  background: var(--color-surface);
  font-size: 13.5px;
  color: var(--color-muted);
  pointer-events: none;
}
.rk-drop strong { font-size: 16px; color: var(--color-text-strong); }
.rk-drop-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px;
  background: var(--color-text-strong); color: #fff; font-size: 22px;
}

/* ---------- Просмотр ---------- */
.rk-preview-pane {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(43, 47, 51, 0.1);
}
.rk-preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px 0 14px;
  background: #F7F8FA;
  border-bottom: 1px solid rgba(43, 47, 51, 0.1);
}
.rk-preview-label {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-strong);
}
.rk-preview-label i { color: var(--color-accent-dark); font-size: 15px; display: inline-flex; }
.rk-preview-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rk-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--color-surface);
  border: 1px solid rgba(43, 47, 51, 0.1);
}
.rk-seg button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: none;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
}
.rk-seg button i { display: inline-flex; }
.rk-seg button:hover { color: var(--color-text-strong); }
.rk-seg button.is-active { background: var(--color-text-strong); color: #fff; }

.rk-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(43, 47, 51, 0.12);
  border-radius: 8px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.rk-icon-btn i { display: inline-flex; }
.rk-icon-btn:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

.rk-preview-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  overflow: auto;
  background: #fff;
}
.rk-preview-stage.is-device { background: #F7F8FA; padding: 14px; }
.rk-preview-frame { display: block; width: 100%; height: 100%; flex: 0 0 auto; border: none; background: #fff; }
.rk-preview-stage.is-device .rk-preview-frame {
  max-width: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(43, 47, 51, 0.1), 0 6px 18px -10px rgba(16, 20, 24, 0.3);
}

/* ---------- Консоль ---------- */
.rk-console { display: flex; flex-direction: column; border-top: 1px solid rgba(43, 47, 51, 0.1); background: var(--color-surface); }
.rk-console-head { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 8px 0 10px; }
.rk-console-toggle, .rk-console-clear {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 6px;
  border: none;
  border-radius: 6px;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-text-strong);
  cursor: pointer;
}
.rk-console-toggle i { display: inline-flex; color: var(--color-muted); font-size: 14px; }
.rk-console-clear { color: var(--color-muted); font-weight: 500; }
.rk-console-clear:hover, .rk-console-toggle:hover { color: var(--color-accent-dark); }
.rk-console-count {
  display: none;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 9px;
  background: var(--color-text-strong);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.rk-console.has-entries .rk-console-count { display: inline-block; }
.rk-console-count.has-errors { background: #C94747; }
.rk-console-body {
  height: 132px;
  overflow: auto;
  padding: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
}
.rk-console.is-collapsed .rk-console-body { display: none; }
.rk-console-body:empty::before {
  content: "Здесь появятся console.log и ошибки JavaScript";
  display: block;
  padding: 6px 14px;
  color: var(--color-muted);
  font-family: inherit;
}
.rk-console-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 4px 14px;
  border-top: 1px solid rgba(43, 47, 51, 0.06);
  color: var(--color-text-strong);
  white-space: pre-wrap;
  word-break: break-word;
}
.rk-console-line:first-child { border-top: none; }
.rk-console-line.is-warn { background: #FFF8E6; color: #7A5300; }
.rk-console-line.is-error { background: #FDEEEE; color: #A32E2E; }
.rk-console-src {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* ---------- Строка состояния ---------- */
.rk-statusbar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 30px;
  padding: 0 10px 0 16px;
  background: var(--color-text-strong);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.5px;
}
.rk-statusbar > span { white-space: nowrap; }
.rk-status-spacer { flex: 1; }
.rk-status-select {
  --select-pad: 8px;
  --select-arrow-w: 8px;
  --select-gap: 4px;
  --select-arrow: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.636 8.222 12.728 7.778' fill='%23FFFFFF' fill-opacity='.6'%3e%3cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/%3e%3c/svg%3e");
  --select-arrow-img-hover: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.636 8.222 12.728 7.778' fill='%23FFFFFF'%3e%3cpath d='M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z'/%3e%3c/svg%3e");
  --select-arrow-img-open: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='5.636 8 12.728 7.778' fill='%23FFFFFF'%3e%3cpath d='M11.9999 10.8284L7.0502 15.7782L5.63599 14.364L11.9999 8.00001L18.3639 14.364L16.9497 15.7782L11.9999 10.8284Z'/%3e%3c/svg%3e");
  --select-arrow-color: rgba(255, 255, 255, 0.6);
  --select-arrow-color-hover: #fff;
  --select-arrow-color-open: #fff;
  height: 24px;
  padding-block: 0;
  border: none;
  border-radius: 5px;
  background-color: transparent;
  font: inherit;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  field-sizing: content;
}
.rk-status-select:hover { background-color: rgba(255, 255, 255, 0.1); color: #fff; }
.rk-status-select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; }
.rk-status-select option { color: #1a1d20; background: #fff; font-size: 13px; } /* в раскрывающемся списке — читаемый размер, а не 11.5px строки состояния */

/* ---------- Уведомления ---------- */
.rk-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-bottom: 1px solid rgba(43, 47, 51, 0.08);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-text-strong);
}
.rk-notice-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 8px;
  background: var(--color-bg); color: var(--color-accent-dark); font-size: 14px;
}
.rk-notice-text { flex: 1 1 auto; min-width: 0; line-height: 1.45; }
.rk-notice-btn {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--color-accent-dark);
  cursor: pointer;
}
.rk-notice-btn:hover { text-decoration: underline; }
.rk-notice-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0; padding: 0;
  border: none; border-radius: 7px; background: none;
  color: var(--color-muted); font-size: 12px; cursor: pointer;
}
.rk-notice-close:hover { background: var(--color-bg); color: var(--color-text-strong); }

.rk-toast {
  position: absolute;
  left: 50%;
  bottom: 44px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  /* Без width блок с left: 50% получал на ширину лишь половину редактора:
     длинное сообщение вытягивалось в узкую колонку из 8–9 строк */
  width: max-content;
  max-width: min(560px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: #22262A;
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 10px 24px -12px rgba(16, 20, 24, 0.55);
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}
.rk-toast::before {
  content: "";
  width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%;
  background: var(--color-accent);
}
.rk-toast.is-error::before { background: #FF6B6B; }
.rk-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Тёмная тема: вкладки в тон редактору ---------- */
.rk-tool.is-dark .rk-tab.is-active { background: #1E1E1E; color: #fff; border-color: #1E1E1E; }
.rk-tool.is-dark .rk-workspace, .rk-tool.is-dark .rk-loading { background: #1E1E1E; }

/* ---------- Во весь экран ---------- */
html.rk-noscroll, html.rk-noscroll body { overflow: hidden; }
.rk-tool.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  border: none;
  border-radius: 0;
}
.rk-tool.is-fullscreen .rk-workspace { height: auto; flex: 1 1 auto; min-height: 0; }

/* ---------- Раскладка по ширине самого инструмента ---------- */
@container rktool (max-width: 1010px) {
  #rkFormatBtn .rk-btn-label, #rkMinifyBtn .rk-btn-label { display: none; }
  #rkFormatBtn, #rkMinifyBtn { width: 32px; padding: 0; }
}
@container rktool (max-width: 820px) {
  /* Панель переносится на несколько рядов — разделители в начале ряда
     выглядели бы случайными линиями, поэтому группы разделяет отступ */
  .rk-toolbar { gap: 8px 14px; }
  .rk-toolbar-group { padding: 0; border-left: none; }
  .rk-workspace.has-preview { flex-direction: column; height: auto; }
  .rk-workspace.has-preview .rk-editor-pane { flex: none; height: 420px; }
  .rk-workspace.has-preview .rk-preview-pane { flex: none; height: 460px; border-left: none; border-top: 1px solid rgba(43, 47, 51, 0.1); }
  .rk-tool.is-fullscreen .rk-workspace.has-preview .rk-editor-pane { flex: 1 1 50%; height: auto; }
  .rk-tool.is-fullscreen .rk-workspace.has-preview .rk-preview-pane { flex: 1 1 50%; height: auto; }
}
@container rktool (max-width: 600px) {
  .rk-toolbar { padding: 10px; gap: 6px 10px; }
  .rk-select { max-width: 132px; }
  #rkPreviewBtn .rk-btn-label { display: none; }
  #rkPreviewBtn { width: 32px; padding: 0; }
  .rk-workspace { height: 440px; }
  .rk-statusbar { gap: 8px; padding: 0 6px 0 12px; }
  .rk-status-hide-mobile { display: none; }
  .rk-toast { bottom: 40px; }
}

/* =========================================================
   SEO-БЛОКИ — белые панели, как у самого инструмента: страница
   читается одним материалом, а не «инструмент плюс текст на сером».
   Внутри — строки с подписью слева.
   ========================================================= */
.tool-seo { container-type: inline-size; container-name: rkseo; }
.rk-panel {
  padding: 8px 32px;
  background: var(--color-surface);
  border: 1px solid rgba(43, 47, 51, 0.07);
  border-radius: var(--radius-lg);
}
.rk-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(43, 47, 51, 0.08);
}
.rk-row:first-child { border-top: none; }
.rk-row-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-accent-dark);
}
.rk-row h3 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; color: var(--color-text-strong); }
.rk-row p { font-size: 14.5px; line-height: 1.75; color: var(--color-muted); margin: 0; }
.rk-row strong { color: var(--color-text-strong); font-weight: 600; }

/* Горячие клавиши: две пары «клавиши — действие» в строке */
.rk-panel--keys { padding: 10px 32px; }
.rk-keys { width: 100%; border-collapse: collapse; font-size: 14px; }
.rk-keys td { padding: 12px 16px 12px 0; border-top: 1px solid rgba(43, 47, 51, 0.08); vertical-align: middle; color: var(--color-muted); line-height: 1.5; }
.rk-keys tr:first-child td { border-top: none; }
.rk-keys td:nth-child(odd) { width: 22%; white-space: nowrap; }
.rk-keys td:nth-child(3) { padding-left: 24px; border-left: 1px solid rgba(43, 47, 51, 0.08); }

@container rkseo (max-width: 700px) {
  .rk-panel { padding: 4px 20px; }
  .rk-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .rk-panel--keys { padding: 6px 20px; }
  .rk-keys, .rk-keys tbody { display: block; }
  .rk-keys tr { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .rk-keys td, .rk-keys tr:first-child td { border-top: 1px solid rgba(43, 47, 51, 0.08); }
  .rk-keys tr:first-child td:nth-child(-n+2) { border-top: none; }
  .rk-keys td:nth-child(odd) { width: auto; white-space: normal; }
  .rk-keys td:nth-child(3) { padding-left: 0; border-left: none; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 952px) {
    .rk-row { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  }
}
