/* Новое оформление Tanuki (new.tanuki.host).
   Слой поверх style.css: базовая разметка страниц остаётся рабочей,
   здесь переопределяются палитра, типографика и ключевые компоненты. */

body.rd {
  --bg: #080b11;
  --bg2: #0e141e;
  --surface: #131b28;
  --surface2: #1a2333;
  --line: #223047;
  --text: #eaf0f7;
  --ink: #eaf0f7;
  --ink2: #c3d0de;
  --muted: #8296ac;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);

  --rd-accent: #22d3ee;
  --rd-accent-2: #0891b2;
  --rd-accent-soft: rgba(34, 211, 238, .12);
  --rd-line-soft: rgba(34, 211, 238, .18);
  --rd-gold: #d4af37;
  --rd-ok: #3ecf8e;
  --rd-wrap: 1180px;

  background: var(--bg);
  letter-spacing: -.005em;
}

/* Мягкое фоновое свечение вместо сетки старой темы */
body.rd .site-mesh { display: none; }

body.rd .rd-glow {
  position: fixed;
  inset: -18% -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(58% 55% at 20% 18%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(46% 50% at 82% 6%, rgba(212, 175, 55, .09), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

body.rd .wrap { max-width: var(--rd-wrap); }
body.rd .rd-main { position: relative; z-index: 1; }
body.rd .rd-main .main-content { padding-top: 0; }

/* ---------- Шапка ---------- */
body.rd .site-header,
body.rd .site-mob-bar,
body.rd .site-mob-sheet { display: none !important; }

.rd-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 11, 17, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.rd-header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
  margin: 0 auto;
  padding: 0 24px;
}

.rd-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.rd-nav { display: flex; align-items: center; gap: 2px; }

.rd-nav-link {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, background .18s;
}

.rd-nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.rd-nav-link.is-active { color: var(--rd-accent); background: var(--rd-accent-soft); }

.rd-header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.rd-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink2);
  text-decoration: none;
  transition: border-color .18s, color .18s;
}

.rd-icon-btn:hover, .rd-icon-btn.is-active { border-color: var(--rd-accent); color: var(--rd-accent); }

.rd-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--rd-accent);
  color: #04121a;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* ---------- Кнопки ---------- */
.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s, box-shadow .18s, border-color .18s, color .18s;
}

.rd-btn-lg { padding: 14px 26px; font-size: 16px; }

.rd-btn-primary {
  background: linear-gradient(180deg, #148ea1 0%, #0e7490 55%, #0c4a6e 100%);
  color: #ecfeff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .32);
}

.rd-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .38);
  filter: brightness(1.06);
}

/* Регистрация в шапке — без «неона», читаемый акцент */
.rd-header-actions .rd-btn-primary,
.rd-mobile .rd-btn-primary.rd-mobile-cta {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid rgba(45, 212, 191, .38);
  box-shadow: none;
}

.rd-header-actions .rd-btn-primary:hover,
.rd-mobile .rd-btn-primary.rd-mobile-cta:hover {
  background: rgba(34, 211, 238, .1);
  color: var(--rd-accent);
  border-color: var(--rd-accent);
  filter: none;
  transform: none;
}

.rd-btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

.rd-btn-ghost:hover { border-color: var(--rd-accent); color: var(--rd-accent); }

/* Кнопки существующих страниц — тёмный текст, без «белого на cyan» */
body.rd .btn-primary,
body.rd .btn-buy,
body.rd button[type="submit"]:not(.rd-btn):not(.lang-picker-btn):not(.btn-secondary):not(.btn-link) {
  background: linear-gradient(180deg, #148ea1 0%, #0e7490 55%, #0c4a6e 100%) !important;
  color: #ecfeff !important;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  text-shadow: none;
  filter: none;
}

body.rd .btn-primary:hover,
body.rd .btn-buy:hover,
body.rd button[type="submit"]:not(.rd-btn):not(.lang-picker-btn):not(.btn-secondary):hover {
  color: #ecfeff !important;
  filter: brightness(1.06) !important;
  transform: translateY(-1px);
}

body.rd .btn-secondary,
body.rd .btn-ghost { border-radius: var(--radius-sm); }

/* ---------- Бургер и мобильное меню ---------- */
.rd-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.rd-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.rd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* display задаётся в медиазапросе: иначе объявление перебьёт атрибут hidden */
.rd-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 18px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}

.rd-mobile-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink2);
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
}

.rd-mobile-link.is-active { background: var(--rd-accent-soft); color: var(--rd-accent); }
.rd-mobile-link .rd-count { position: static; margin-left: auto; }
.rd-mobile-cta { margin-top: 10px; }

/* ---------- Главная: герой ---------- */
.rd-hero { padding: 76px 0 64px; }

.rd-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: center;
}

.rd-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--rd-line-soft);
  border-radius: 999px;
  background: var(--rd-accent-soft);
  color: var(--rd-accent);
  font-size: 13px;
  font-weight: 600;
}

.rd-h1 {
  margin: 22px 0 18px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.rd-grad {
  background: linear-gradient(120deg, var(--rd-accent), var(--rd-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rd-lead { max-width: 540px; margin: 0; color: var(--ink2); font-size: 18px; line-height: 1.6; }

/* Поиск домена */
.rd-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 30px 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rd-search-icon { display: flex; padding-left: 12px; color: var(--muted); }

.rd-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 4px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.rd-search input::placeholder { color: var(--muted); }

.rd-hero-tlds { display: flex; flex-wrap: wrap; gap: 8px; }

.rd-tld {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .18s, color .18s;
}

.rd-tld:hover { border-color: var(--rd-accent); color: var(--rd-accent); }
.rd-tld-more { color: var(--muted); }

/* Карточка-превью */
.rd-hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg2));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.rd-hc-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}

.rd-dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3a52; }
.rd-dot:first-child { background: #f07178; }
.rd-dot:nth-child(2) { background: var(--rd-gold); }
.rd-dot:nth-child(3) { background: var(--rd-ok); }
.rd-hc-title { margin-left: 8px; color: var(--muted); font-size: 13px; }
.rd-hc-body { padding: 6px 18px 18px; }

.rd-hc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.rd-hc-main { display: flex; flex-direction: column; gap: 3px; }
.rd-hc-main strong { font-size: 15px; font-weight: 600; }
.rd-hc-main span { color: var(--muted); font-size: 13.5px; }

.rd-badge { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.rd-badge-ok { background: rgba(62, 207, 142, .13); color: var(--rd-ok); }

.rd-hc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--rd-accent-soft);
  color: var(--ink2);
  font-size: 14px;
}

.rd-hc-foot strong { color: var(--rd-accent); font-size: 18px; }

/* ---------- Цифры ---------- */
.rd-stats { padding-bottom: 60px; }

.rd-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rd-stat { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.rd-stat strong { font-size: 28px; font-weight: 800; }
.rd-stat span { color: var(--muted); font-size: 14px; }

/* ---------- Секции ---------- */
.rd-section { padding: 0 0 78px; }
.rd-sec-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.rd-sec-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.rd-sec-head p { margin: 12px 0 0; color: var(--ink2); font-size: 17px; }

.rd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.rd-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .2s, border-color .2s;
}

.rd-card:hover { transform: translateY(-4px); border-color: var(--rd-line-soft); }

.rd-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--rd-accent-soft);
  color: var(--rd-accent);
}

.rd-card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; }
.rd-card p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.6; }

/* Локации */
.rd-locs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}

.rd-loc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 26px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition: transform .2s, border-color .2s;
}

.rd-loc:hover { transform: translateY(-4px); border-color: var(--rd-accent); }
.rd-loc-flag { display: inline-flex; line-height: 0; }
.rd-loc-name { font-weight: 600; }
.rd-loc-count { color: var(--muted); font-size: 13px; }

/* Услуги */
.rd-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.rd-service {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
}

.rd-service-top { display: flex; align-items: center; gap: 12px; }

.rd-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--rd-accent-soft);
  color: var(--rd-accent);
}

.rd-service h3 { margin: 0; font-size: 19px; font-weight: 700; }
.rd-service p { flex: 1; margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.rd-service .rd-btn { align-self: flex-start; }

/* Шаги */
.rd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }

.rd-step {
  display: flex;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.rd-step-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-2));
  color: #04121a;
  font-weight: 800;
}

.rd-step h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.rd-step p { margin: 0; color: var(--ink2); font-size: 15px; }

/* FAQ */
.rd-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.rd-faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.rd-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 24px;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.rd-faq-item summary::-webkit-details-marker { display: none; }
.rd-faq-caret { flex: none; color: var(--muted); transition: transform .2s, color .2s; }
.rd-faq-item[open] .rd-faq-caret { transform: rotate(90deg); color: var(--rd-accent); }
.rd-faq-item p { margin: 0; padding: 0 24px 22px; color: var(--ink2); font-size: 15.5px; line-height: 1.65; }

/* Финальный блок */
.rd-cta { padding-bottom: 84px; }

.rd-cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  border: 1px solid var(--rd-line-soft);
  border-radius: var(--radius);
  background:
    radial-gradient(70% 140% at 12% 0%, rgba(34, 211, 238, .14), transparent 68%),
    var(--surface);
}

.rd-cta-box h2 { margin: 0; font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; }
.rd-cta-box p { margin: 10px 0 0; color: var(--ink2); font-size: 16.5px; }
.rd-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* На cyan-подсветке блока — контрастная кнопка, не сливается с фоном */
.rd-cta-box .rd-btn-primary {
  background: var(--bg2);
  color: var(--text);
  border: 1px solid var(--rd-accent);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.rd-cta-box .rd-btn-primary:hover {
  background: var(--surface2);
  color: var(--rd-accent);
  filter: none;
}

/* ---------- Футер ---------- */
body.rd .site-footer { display: none !important; }

.rd-footer {
  position: relative;
  z-index: 1;
  padding: 54px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg2);
}

.rd-footer .rd-wrap { max-width: var(--rd-wrap); margin: 0 auto; padding: 0 24px; }
.rd-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.rd-footer-link { display: flex; flex-direction: column; gap: 4px; text-decoration: none; margin-bottom: 10px; }
.rd-footer-link-title { color: var(--ink2); font-size: 14.5px; font-weight: 600; transition: color .18s; }
.rd-footer-link-desc { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rd-footer-link:hover .rd-footer-link-title { color: var(--rd-accent); }
.rd-footer-note { max-width: 380px; margin: 14px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.rd-footer-col { display: flex; flex-direction: column; gap: 10px; }
.rd-footer-col h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.rd-footer-col a { color: var(--ink2); font-size: 14.5px; text-decoration: none; transition: color .18s; }
.rd-footer-col a:hover { color: var(--rd-accent); }

.rd-footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Каталог VPS ----------
   Последовательность выбора та же, что в рабочем каталоге: локация → линейка →
   тариф. Меняется подача: плитки с флагами и карточки тарифов вместо таблицы. */
body.rd .vps-catalog-head { margin-bottom: 26px; text-align: center; }
body.rd .vps-section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
body.rd .vps-section-sub { margin-top: 10px; color: var(--ink2); font-size: 16px; }

/* Панель выбора: кастомные выпадающие списки */
body.rd .vps-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

body.rd .rd-select { position: relative; min-width: min(100%, 280px); }

body.rd .rd-select-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}

/* Клик по всей кнопке, а не только по тексту/иконке */
body.rd .rd-select-trigger * { pointer-events: none; }

body.rd .rd-select-trigger:hover,
body.rd .rd-select-trigger[aria-expanded="true"] {
  border-color: var(--rd-accent);
  background: var(--surface2);
}

body.rd .rd-select-icon { display: inline-flex; flex: none; align-items: center; line-height: 0; }
body.rd .rd-select-value { flex: 1; min-width: 0; }
body.rd .rd-select-caret { flex: none; color: var(--muted); transform: rotate(90deg); transition: transform .18s; }
body.rd .rd-select-trigger[aria-expanded="true"] .rd-select-caret { transform: rotate(-90deg); color: var(--rd-accent); }

body.rd .rd-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  min-width: 100%;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface2);
  box-shadow: var(--shadow);
}

body.rd .rd-select-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink2);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

body.rd .rd-select-option:hover,
body.rd .rd-select-option.is-active { background: var(--rd-accent-soft); color: var(--rd-accent); }
body.rd .rd-select-label { flex: 1; }

body.rd .vps-filter-apply { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

body.rd .vps-catalog-empty { padding: 40px 0; text-align: center; }

body.rd .vps-region-grid,
body.rd .vps-line-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

body.rd .vps-region-card,
body.rd .vps-line-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "icon name arrow" "icon meta arrow";
  align-items: center;
  gap: 2px 14px;
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
}

body.rd .vps-region-card:hover,
body.rd .vps-line-card:hover {
  transform: translateY(-3px);
  border-color: var(--rd-accent);
  background: var(--surface2);
}

body.rd .vps-region-icon,
body.rd .vps-line-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
  color: var(--rd-accent);
}

/* Флаг рисуется вектором, поэтому фон-подложка ему не нужна */
body.rd .vps-region-flag { background: transparent; padding: 0; font-size: 0; }
body.rd .vps-flag { display: block; border-radius: 4px; }

body.rd .vps-region-name,
body.rd .vps-line-name { grid-area: name; color: var(--text); font-size: 16px; font-weight: 700; }
body.rd .vps-region-meta,
body.rd .vps-line-meta { grid-area: meta; color: var(--muted); font-size: 13.5px; }

body.rd .vps-region-arrow,
body.rd .vps-line-arrow { grid-area: arrow; display: flex; color: var(--muted); transition: transform .18s, color .18s; }
body.rd .vps-region-card:hover .vps-region-arrow,
body.rd .vps-line-card:hover .vps-line-arrow { transform: translateX(3px); color: var(--rd-accent); }

/* Тарифы: в новом оформлении всегда карточки, таблица не используется */
body.rd .vps-tariff-table { display: none; }

body.rd .vps-tariff-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

body.rd .vps-tariff-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface2), var(--surface));
  transition: transform .18s, border-color .18s;
}

body.rd .vps-tariff-card:hover { transform: translateY(-3px); border-color: var(--rd-line-soft); }
body.rd .vps-tariff-card--sold-out { opacity: .55; }

body.rd .vps-tariff-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

body.rd .vps-tariff-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
}

body.rd .vps-tariff-name .icon { color: var(--muted); }
body.rd .vps-tariff-flag { display: inline-flex; line-height: 0; }
body.rd .vps-tariff-flag .vps-flag { width: 20px; height: 14px; }
body.rd .vps-tariff-sub { margin: -6px 0 0; color: var(--muted); font-size: 13.5px; }

body.rd .vps-tariff-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.rd .vps-tariff-specs { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 0; list-style: none; }

body.rd .vps-tariff-specs li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

body.rd .vps-tariff-specs .icon { flex: none; color: var(--muted); }
body.rd .vps-tariff-specs b { color: var(--text); font-size: 15px; font-weight: 700; }
body.rd .vps-tariff-specs span { color: var(--muted); }

body.rd .vps-tariff-price {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}

body.rd .vps-spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }

body.rd .vps-spec-chip {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--ink2);
  font-size: 13px;
  font-weight: 500;
}

body.rd .vps-provision-badge { flex: none; border-radius: 999px; font-size: 12px; font-weight: 600; }
body.rd .vps-sold-out-badge { flex: none; color: var(--muted); font-size: 12px; }
body.rd .vps-tariff-foot { margin-top: auto; padding-top: 4px; }
body.rd .vps-tariff-foot .vps-order-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

body.rd .vps-tariff-foot .field-select,
body.rd .vps-tariff-foot select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

body.rd .vps-tariff-foot .rd-tariff-buy,
body.rd .vps-tariff-foot .btn-primary,
body.rd .vps-tariff-foot .btn-secondary,
body.rd .vps-tariff-foot button[type="submit"] {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

body.rd .vps-tariff-foot .rd-tariff-buy {
  background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-2));
  color: #04121a;
  border: 0;
  box-shadow: 0 10px 26px rgba(34, 211, 238, .22);
}

@media (max-width: 720px) {
  body.rd .vps-filters { flex-direction: column; align-items: stretch; }
  body.rd .vps-filter { width: 100%; }
  body.rd .vps-filter select { flex: 1; min-width: 0; }
  body.rd .vps-tariff-cards { grid-template-columns: 1fr; }
  body.rd .vps-tariff-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  body.rd .vps-tariff-price { font-size: 22px; }
}

/* ---------- Личный кабинет ----------
   Разметка и вся логика (уведомления, мобильное меню, переключатель языка)
   остаются от рабочего кабинета — переопределяется только оформление. */
body.rd-cab .cab-side {
  border-right: 1px solid var(--line);
  background: var(--bg2);
}

body.rd-cab .cab-brand { font-weight: 800; letter-spacing: -.02em; }

body.rd-cab .cab-user {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

body.rd-cab .cab-avatar {
  background: linear-gradient(135deg, var(--rd-accent), var(--rd-accent-2));
  color: #04121a;
}

body.rd-cab .cab-menu-item {
  border-radius: var(--radius-sm);
  color: var(--ink2);
  font-weight: 500;
  transition: background .18s, color .18s;
}

body.rd-cab .cab-menu-item:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

body.rd-cab .cab-menu-item.is-active {
  background: var(--rd-accent-soft);
  color: var(--rd-accent);
  font-weight: 600;
}

body.rd-cab .cab-top {
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 17, .8);
  backdrop-filter: blur(12px);
}

body.rd-cab .cab-top-title h1 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
body.rd-cab .cab-top-sub { color: var(--muted); }

body.rd-cab .cab-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

body.rd-cab .cab-chip b { color: var(--rd-accent); }

body.rd-cab .cab-notif-btn,
body.rd-cab .cab-mob-toggle {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink2);
}

body.rd-cab .cab-notif-btn:hover { border-color: var(--rd-accent); color: var(--rd-accent); }
body.rd-cab .cab-notif-badge { background: var(--rd-accent); color: #04121a; }

body.rd-cab .cab-notif-panel,
body.rd-cab .cab-card,
body.rd-cab .cab-kpi {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body.rd-cab .cab-card-head { border-bottom: 1px solid var(--line); }
body.rd-cab .cab-card-head h2 { font-weight: 700; letter-spacing: -.01em; }
body.rd-cab .cab-card-link { color: var(--rd-accent); }
body.rd-cab .cab-kpi-label { color: var(--muted); }
body.rd-cab .cab-kpi-value { font-size: 26px; font-weight: 800; }

body.rd-cab table th {
  color: var(--muted);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .02);
}

body.rd-cab table td { border-top: 1px solid rgba(255, 255, 255, .05); }
body.rd-cab tbody tr:hover { background: rgba(255, 255, 255, .02); }

/* Нижняя панель на мобильных */
body.rd-cab .mob-bar {
  border-top: 1px solid var(--line);
  background: rgba(8, 11, 17, .94);
  backdrop-filter: blur(12px);
}

body.rd-cab .mob-item.is-active { color: var(--rd-accent); }
body.rd-cab .mob-sheet-panel { border-radius: 22px 22px 0 0; background: var(--bg2); }
body.rd-cab .mob-sheet-item { border-radius: var(--radius-sm); }
body.rd-cab .mob-sheet-item.is-active { background: var(--rd-accent-soft); color: var(--rd-accent); }

body.rd-cab .site-mesh { display: none; }
body.rd-cab .cab-side { background: var(--bg2); border-right-color: var(--line); }
body.rd-cab .cab-content { padding: 24px 28px 40px; }
body.rd-cab .cab-app { background: var(--bg); }

body.rd-cab {
  --side-w: 268px;
}

body.rd-cab .cab-main {
  margin-left: var(--side-w);
}

body.rd-cab .cab-side {
  width: var(--side-w);
  min-width: var(--side-w);
  padding: 18px 14px;
  box-sizing: border-box;
}

body.rd-cab .cab-brand {
  padding: 8px 10px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

body.rd-cab .cab-menu { gap: 4px; padding: 8px 4px; }
body.rd-cab .cab-menu-item { padding: 11px 14px; }
body.rd-cab .cab-menu-item.is-active { box-shadow: inset 3px 0 0 var(--rd-accent); }

body.rd-cab .cab-content .cab-card,
body.rd-cab .cab-content .cab-kpi-grid .cab-kpi { box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }

body.rd-cab .cab-content .btn-primary,
body.rd-cab .cab-content .btn-secondary { border-radius: var(--radius-sm); font-weight: 600; }

body.rd-cab .cab-top-meta .btn-primary {
  background: linear-gradient(180deg, #148ea1 0%, #0e7490 55%, #0c4a6e 100%) !important;
  color: #ecfeff !important;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
  font-weight: 700;
}

body.rd-cab .cab-top-meta .btn-primary:hover {
  color: #ecfeff !important;
  filter: brightness(1.06) !important;
}

body.rd-cab .cab-top-meta .btn-primary .icon { stroke: #ecfeff; }

body.rd-cab .cab-content .domains-table,
body.rd-cab .cab-content table.domains-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

body.rd-cab .cab-content .dm-select,
body.rd-cab .cab-content .field-input,
body.rd-cab .cab-content input[type="text"],
body.rd-cab .cab-content input[type="number"],
body.rd-cab .cab-content input[type="password"],
body.rd-cab .cab-content textarea,
body.rd-cab .cab-content select {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
}

body.rd-cab .cab-deposit-grid,
body.rd-cab .deposit-methods { gap: 14px; }

body.rd-cab .cab-card:has(.deposit-network-select),
body.rd-cab .cab-card-body:has(.deposit-network-select),
body.rd-cab .deposit-method-block:has(.deposit-network-select) {
  overflow: visible;
}
body.rd .deposit-network-menu,
body.rd-cab .deposit-network-menu {
  min-width: 0;
  width: auto;
  max-width: min(320px, calc(100vw - 24px));
}
body.rd-cab .deposit-network-menu.is-floating {
  border-radius: var(--radius);
  background: var(--surface2);
  box-shadow: var(--shadow);
}

body.rd-cab .cab-footer-credit { color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

body.rd .rd-rp-offer-wrap { max-width: 520px; margin: 0 auto 48px; }

body.rd .rd-rp-offer-wrap .vps-offer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

body.rd .rd-rp-offer-wrap .vps-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rd-accent-soft);
  color: var(--rd-accent);
  font-size: 13px;
  font-weight: 700;
}

body.rd .rd-rp-offer-wrap .vps-offer-name { margin: 16px 0 8px; font-size: 22px; font-weight: 800; }
body.rd .rd-rp-offer-wrap .vps-offer-price { font-size: 28px; font-weight: 800; color: var(--rd-accent); }
body.rd .rd-rp-offer-note { margin-top: 18px; text-align: center; font-size: 14px; }

body.rd .rd-rp-about {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 28px 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body.rd .rd-rp-about-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -.02em;
}

body.rd .rd-rp-about-lead {
  margin: 0 0 18px;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.65;
}

body.rd .rd-rp-about-list {
  margin: 0;
  padding: 0 0 0 1.15em;
  color: var(--ink2);
  font-size: 15px;
  line-height: 1.7;
}

body.rd .rd-rp-about-list li { margin-bottom: 8px; }
body.rd .rd-rp-about-list li::marker { color: var(--rd-accent); }

body.rd .page-header { margin: 8px 0 28px; text-align: center; }
body.rd .page-header h1 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -.02em; }
body.rd .page-header p { color: var(--ink2); font-size: 16px; }

body.rd .auth-card {
  max-width: 460px;
  margin: 32px auto 48px;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

body.rd .auth-card h1 { margin-bottom: 20px; font-size: 26px; font-weight: 800; text-align: center; }
body.rd .auth-mode-tabs { display: flex; gap: 8px; margin-bottom: 22px; padding: 4px; border-radius: var(--radius-sm); background: var(--bg2); }
body.rd .auth-mode-tab {
  flex: 1;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

body.rd .auth-mode-tab.is-active { background: var(--surface); color: var(--rd-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
body.rd .auth-panel { display: none; }
body.rd .auth-panel.is-active { display: block; }
body.rd .auth-card label { display: block; margin-bottom: 14px; color: var(--ink2); font-size: 14px; font-weight: 500; }
body.rd .auth-card input:not([type="checkbox"]) {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font: inherit;
}

body.rd .search-bar,
body.rd form.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 20px;
}

body.rd .search-bar input[type="text"],
body.rd .field-input,
body.rd .field-select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  color: var(--text);
  font: inherit;
}

body.rd .search-bar { align-items: center; }
body.rd .search-bar input[type="text"] { flex: 1; min-width: 200px; }

body.rd .cart-table-wrap,
body.rd .domains-table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: auto;
}

body.rd .domains-table { width: 100%; border-collapse: collapse; }
body.rd .domains-table th {
  padding: 14px 18px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255, 255, 255, .03);
}

body.rd .domains-table td { padding: 14px 18px; border-top: 1px solid var(--line); }
body.rd .cart-foot {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body.rd .cart-total { display: flex; justify-content: space-between; padding: 8px 0; font-size: 16px; }
body.rd .cart-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; justify-content: flex-end; }

body.rd .cart-table .domain-name { font-weight: 700; color: var(--text); letter-spacing: -.01em; }
body.rd .cart-remove-form .btn-link-danger {
  padding: 6px 12px;
  border: 1px solid rgba(239, 68, 68, .35);
  border-radius: 999px;
  color: #f87171;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

body.rd .cart-remove-form .btn-link-danger:hover { background: rgba(239, 68, 68, .12); }

body.rd .rd-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 40px auto 56px;
  padding: 48px 28px;
  max-width: 420px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

body.rd .rd-empty-state p { margin: 0; color: var(--ink2); font-size: 16px; }
body.rd .rd-empty-icon { color: var(--muted); opacity: .85; }

body.rd .lang-picker-btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

body.rd .lang-picker-btn * { pointer-events: none; }
body.rd .lang-picker-menu { border-radius: var(--radius); background: var(--surface2); box-shadow: var(--shadow); }

body.rd .search-loader,
body.rd .search-results-area {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 28px 22px;
}

body.rd .search-meta { color: var(--muted); font-size: 14px; margin: 16px 0 8px; }
body.rd .search-error { color: #f87171; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(239, 68, 68, .1); }

body.rd .domain-row,
body.rd .search-result-row {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

body.rd .news-list { display: flex; flex-direction: column; gap: 12px; }
body.rd .news-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color .18s;
}

body.rd .news-list a:hover { border-color: var(--rd-accent); }
body.rd .news-post { max-width: 720px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

body.rd .vps-field .field-select,
body.rd .vps-order-form .field-select,
body.rd select.field-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238296ac'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  appearance: none;
  cursor: pointer;
}

body.rd .vps-order-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

body.rd .vps-order-form-inline .field-select { flex: 1; min-width: 140px; }
body.rd .vps-field { display: block; margin-bottom: 12px; }
body.rd .vps-field-inline { margin-bottom: 0; min-width: 140px; flex: 1; }
body.rd .vps-field-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }

body.rd a { color: var(--rd-accent); }
body.rd .muted { color: var(--muted); }
body.rd .auth-switch-link { text-align: center; margin-top: 18px; font-size: 14px; }

/* ---------- Кабинет: мобильная вёрстка (new.tanuki.host) ---------- */
@media (max-width: 900px) {
  body.rd-cab .cab-side {
    display: none !important;
  }

  body.rd-cab .cab-main {
    margin-left: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body.rd-cab .cab-mob-toggle {
    display: inline-flex !important;
  }

  body.rd-cab .cab-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  body.rd-cab .cab-mob-toggle {
    grid-column: 1;
    grid-row: 1;
  }

  body.rd-cab .cab-top-title {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  body.rd-cab .cab-top-title h1 {
    font-size: 1.05rem;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.rd-cab .cab-top-sub {
    display: none;
  }

  body.rd-cab .cab-top-meta {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  body.rd-cab .cab-top-meta .lang-picker {
    display: none;
  }

  body.rd-cab .cab-top-meta .cab-chip {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    padding: 6px 10px;
  }

  body.rd-cab .cab-top-meta .cab-chip b {
    font-size: 13px;
  }

  body.rd-cab .cab-top-meta .btn-primary {
    padding: 8px 12px !important;
    font-size: 12px !important;
    white-space: nowrap;
  }

  body.rd-cab .cab-top-meta .btn-primary span,
  body.rd-cab .cab-top-meta .btn-primary .icon + span {
    display: inline;
  }

  body.rd-cab .cab-content {
    padding: 14px 12px calc(18px + var(--mob-nav-h, 72px) + env(safe-area-inset-bottom, 0px));
  }

  body.rd-cab .cab-footer-credit {
    padding: 12px 14px calc(12px + var(--mob-nav-h, 72px) + env(safe-area-inset-bottom, 0px));
  }

  body.rd-cab .cab-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.rd-cab .cab-kpi {
    padding: 14px 12px;
  }

  body.rd-cab .cab-kpi-value {
    font-size: 1.35rem;
  }

  body.rd-cab .cab-card {
    margin-bottom: 14px;
  }

  body.rd-cab .cab-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 14px;
  }

  body.rd-cab .cab-card-link {
    white-space: normal;
  }

  body.rd-cab .cab-card-body {
    padding: 12px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.rd-cab .cab-grid-2,
  body.rd-cab .settings-grid,
  body.rd-cab .cab-deposit-grid {
    grid-template-columns: 1fr;
  }

  body.rd-cab .domains-table {
    font-size: 12px;
  }

  body.rd-cab .domains-table th,
  body.rd-cab .domains-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  body.rd-cab .mob-bar {
    display: flex !important;
  }

  body.rd-cab .mob-item {
    font-size: 10px;
    max-width: none;
    padding: 6px 2px;
  }

  body.rd-cab .mob-menu::before {
    width: 42px;
    height: 42px;
    top: 8px;
  }

  body.rd-cab .mob-sheet-panel {
    max-height: min(88vh, 640px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body.rd-cab .mob-sheet-list {
    max-height: 42vh;
    overflow-y: auto;
  }

  body.rd-cab .cab-notif-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: calc(var(--mob-nav-h, 72px) + env(safe-area-inset-bottom, 0px) + 10px);
    width: auto;
    max-height: min(55vh, 400px);
  }

  body.rd-cab .cab-notif-wrap {
    position: static;
  }

  body.rd-cab .dm-form-inline,
  body.rd-cab .cab-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  body.rd-cab .cab-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 400px) {
  body.rd-cab .cab-kpi-grid {
    grid-template-columns: 1fr;
  }

  body.rd-cab .cab-top-meta .btn-primary {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .rd-cards, .rd-services, .rd-steps { grid-template-columns: repeat(2, 1fr); }
  .rd-locs { grid-template-columns: repeat(3, 1fr); }
  .rd-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .rd-hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .rd-footer-grid { grid-template-columns: 1fr 1fr; }
  .rd-footer-col-dev { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .rd-nav, .rd-header-actions { display: none; }
  .rd-burger { display: flex; margin-left: auto; }
  .rd-mobile:not([hidden]) { display: flex; }
  .rd-header-in { height: 64px; padding: 0 18px; }
  .rd-hero { padding: 48px 0 44px; }
  .rd-section { padding-bottom: 56px; }
  body.rd .rd-main .main-content { padding-inline: 18px; }
}

@media (max-width: 620px) {
  .rd-cards, .rd-services, .rd-steps, .rd-footer-grid { grid-template-columns: 1fr; }
  .rd-locs { grid-template-columns: repeat(2, 1fr); }
  .rd-stats-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; }
  .rd-cta-box { padding: 28px 22px; }
  .rd-search { flex-wrap: wrap; }
  .rd-search input { flex-basis: 100%; }
  .rd-search .rd-btn { width: 100%; }
  .rd-h1 { font-size: clamp(30px, 8vw, 40px); }
}

/* Guide page + home teaser */
.rd-guide-teaser-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(15, 23, 42, 0.4));
}
.rd-guide-teaser-text h2 { margin: 0 0 8px; font-size: 1.35rem; }
.rd-guide-teaser-text p { margin: 0 0 12px; color: var(--muted); max-width: 52rem; }
.rd-guide-teaser-list { margin: 0; padding-left: 1.2rem; color: var(--text-soft); }
.rd-guide-teaser-list li { margin: 6px 0; }
.rd-dev-channel-body { color: var(--muted); max-width: 52rem; line-height: 1.55; }
.rd-dev-channel-body p { margin: 0 0 10px; }
.rd-dev-channel-body a { color: var(--accent, #818cf8); text-decoration: underline; }
.rd-dev-channel-box { align-items: center; }

.rd-guide-page { max-width: 52rem; margin: 0 auto; padding: 24px 0 64px; }
.rd-guide-hero { margin-bottom: 40px; }
.rd-guide-hero .rd-h1 { margin-bottom: 12px; }
.rd-guide-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.rd-guide-section:last-child { border-bottom: 0; margin-bottom: 0; }
.rd-guide-section-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.rd-guide-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent);
}
.rd-guide-section-head h2 { margin: 0 0 6px; font-size: 1.25rem; }
.rd-guide-lead { margin: 0; color: var(--muted); line-height: 1.55; }
.rd-guide-list { margin: 0 0 16px; padding-left: 1.25rem; line-height: 1.55; }
.rd-guide-list li { margin: 8px 0; }
.rd-guide-example {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.rd-guide-example-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.rd-guide-example pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-soft);
}
.rd-guide-cta { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  body.rd *, body.rd *::before, body.rd *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
