/* ==========================================================================
   Regbis Custom 
   ========================================================================== */

/* ---------- Переменные ---------- */
:root {
  --rb-color-bg:        #f1f3f7;
  --rb-color-surface:   #ffffff;
  --rb-color-soft:      #eef1f6;
  --rb-color-text:      #0f172a;
  --rb-color-muted:     #5b6b82;
  --rb-color-border:    #e6ebf2;
  --rb-color-primary:   #1d4ed8;
  --rb-color-primary-h: #1a41b8;
  --rb-color-primary-soft: #e5ebfb;
  --rb-color-dot:       #a3e635;

  --rb-radius-sm: 8px;
  --rb-radius:    14px;
  --rb-radius-lg: 22px;
  --rb-radius-pill: 999px;

  --rb-shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --rb-shadow:    0 10px 30px rgba(15, 23, 42, .08);

  --rb-container: 1200px;
  --rb-header-h:  80px;

  --rb-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
             Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--rb-font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--rb-color-text);
  background: var(--rb-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -0.3px; }
p   { margin: 0 0 1em; }

/* ---------- Контейнер ---------- */
.rb-container {
  width: 100%;
  max-width: var(--rb-container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Бейджи ---------- */
.rb-badge {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-color-primary);
  background: var(--rb-color-primary-soft);
  border-radius: var(--rb-radius-pill);
  margin-bottom: 20px;
}
.rb-badge--sm { font-size: 12px; padding: 6px 12px; margin-bottom: 16px; }

/* ---------- Кнопки ---------- */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--rb-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
  white-space: nowrap;
}
.rb-btn:active { transform: translateY(1px); }

.rb-btn--primary {
  background: var(--rb-color-primary);
  color: #fff;
}
.rb-btn--primary:hover { background: var(--rb-color-primary-h); }

.rb-btn--outline {
  background: #fff;
  color: var(--rb-color-text);
  border-color: var(--rb-color-border);
}
.rb-btn--outline:hover { border-color: var(--rb-color-primary); color: var(--rb-color-primary); }

.rb-btn--lg    { padding: 16px 28px; font-size: 16px; }
.rb-btn--block { width: 100%; }

/* ==========================================================================
   Шапка, glassmorphism
   ========================================================================== */
.rb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 17, 40, .72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

/* При скролле — плотнее фон и лёгкое свечение */
.rb-header.is-scrolled {
  background: rgba(10, 17, 40, .9);
  border-bottom-color: rgba(79, 124, 246, .18);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

/* Декоративное свечение внутри шапки */
.rb-header__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(400px 120px at 15% 50%, rgba(79, 124, 246, .16), transparent 60%),
    radial-gradient(400px 120px at 85% 50%, rgba(124, 58, 237, .14), transparent 60%);
  opacity: .8;
}

.rb-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: var(--rb-header-h);
}

/* ===================== Логотип ===================== */
.rb-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  z-index: 1;
}
.rb-logo__img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  /* Светлое свечение за логотипом для контраста на тёмном */
  filter: drop-shadow(0 0 20px rgba(79, 124, 246, .25));
}
@media (max-width: 860px) {
  .rb-logo__img { height: 36px; max-width: 180px; }
}

/* ===================== Основное меню ===================== */
.rb-nav__list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rb-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(232, 237, 247, .7);
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.rb-nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

/* Активная ссылка (текущая секция) */
.rb-nav__link.is-active {
  color: #fff;
}
.rb-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4f7cf6 0%, #7c3aed 100%);
}

/* ===================== CTA справа ===================== */
.rb-header__cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.rb-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(232, 237, 247, .85);
  transition: color .2s ease;
}
.rb-header__phone:hover { color: #fff; }
.rb-header__phone svg { color: #a7c2ff; }

.rb-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  border-radius: var(--rb-radius-pill);
  box-shadow: 0 10px 24px rgba(79, 124, 246, .35);
  transition: filter .2s ease, transform .15s ease;
  white-space: nowrap;
}
.rb-header__btn:hover { filter: brightness(1.1); }
.rb-header__btn:active { transform: translateY(1px); }
.rb-header__btn svg { transition: transform .2s ease; }
.rb-header__btn:hover svg { transform: translateX(3px); }

/* ===================== Бургер ===================== */
.rb-burger {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background .2s ease, border-color .2s ease;
}
.rb-burger:hover { background: rgba(255, 255, 255, .1); }
.rb-burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.rb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Мобильное меню ===================== */
.rb-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90%);
  height: 100vh;
  padding: 24px 22px 32px;
  background: linear-gradient(180deg, #0a1128 0%, #0e1a35 100%);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  color: #e8edf7;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
  overflow-y: auto;
  z-index: 150;
  display: flex;
  flex-direction: column;
}
.rb-mobile-nav.is-open { transform: translateX(0); }

.rb-mobile-nav__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.rb-mobile-nav__logo .rb-logo__img {
  height: 34px;
  max-width: 160px;
}
.rb-mobile-nav__close {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.rb-mobile-nav__close:hover { background: rgba(255, 255, 255, .12); }

.rb-mobile-nav__list {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}
.rb-mobile-nav__list a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(232, 237, 247, .85);
  border-radius: 12px;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.rb-mobile-nav__list a:hover,
.rb-mobile-nav__list a:active {
  background: rgba(79, 124, 246, .12);
  color: #fff;
  padding-left: 20px;
}

.rb-mobile-nav__bottom {
  margin-top: auto;
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.rb-mobile-nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.rb-mobile-nav__phone svg { color: #a7c2ff; }

.rb-mobile-nav__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  border-radius: var(--rb-radius-pill);
  box-shadow: 0 12px 28px rgba(79, 124, 246, .35);
  transition: filter .2s ease;
}
.rb-mobile-nav__cta:hover { filter: brightness(1.1); }
.rb-mobile-nav__cta svg { transition: transform .2s ease; }
.rb-mobile-nav__cta:hover svg { transform: translateX(4px); }

.rb-mobile-nav__socials {
  display: flex;
  gap: 10px;
}
.rb-mobile-nav__socials a {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  color: #fff;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.rb-mobile-nav__socials a:hover {
  background: rgba(79, 124, 246, .18);
  border-color: rgba(79, 124, 246, .35);
  transform: translateY(-2px);
}

/* Затемнение фона под мобильным меню */
body.rb-nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 25, .6);
  backdrop-filter: blur(2px);
  z-index: 140;
  animation: rbFadeIn .25s ease;
}
@keyframes rbFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== Адаптив ===================== */
@media (max-width: 1024px) {
  .rb-nav__list { gap: 4px; }
  .rb-nav__link { font-size: 14px; padding: 8px 10px; }
  .rb-header__phone span { display: none; }
}

@media (max-width: 860px) {
  :root { --rb-header-h: 72px; }

  .rb-nav,
  .rb-header__cta { display: none; }
  .rb-burger { display: inline-flex; }
}
/* ==========================================================================
   Hero
   ========================================================================== */
.rb-hero {
  position: relative;
  padding: 96px 0 80px;
  background: linear-gradient(180deg, #0a1128 0%, #0e1a35 60%, #0a1128 100%);
  color: #e8edf7;
  overflow: hidden;
}

/* Декоративные градиентные свечения */
.rb-hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 400px at 10% 10%, rgba(79, 124, 246, .25), transparent 60%),
    radial-gradient(600px 350px at 90% 0%,  rgba(124, 58, 237, .20), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(37, 211, 102, .12), transparent 60%);
}

.rb-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: start;
}

/* ===================== ЛЕВАЯ ЧАСТЬ ===================== */
.rb-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a7c2ff;
  background: rgba(79, 124, 246, .15);
  border: 1px solid rgba(79, 124, 246, .3);
  border-radius: var(--rb-radius-pill);
  margin-bottom: 24px;
}
.rb-hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 0 0 rgba(163, 230, 53, .7);
  animation: rbHeroDotPulse 2s ease-out infinite;
}
@keyframes rbHeroDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(163, 230, 53, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(163, 230, 53, 0); }
  100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
}

.rb-hero__title {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: #fff;
  margin-bottom: 22px;
}
.rb-hero__title-accent {
  background: linear-gradient(90deg, #4f7cf6 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.rb-hero__lead {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(232, 237, 247, .7);
  max-width: 560px;
  margin-bottom: 28px;
}

/* Список преимуществ */
.rb-hero__list {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 32px;
}
.rb-hero__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: rgba(232, 237, 247, .85);
}
.rb-hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(163, 230, 53, .15);
  border: 1px solid rgba(163, 230, 53, .4);
}
.rb-hero__list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 50%;
  width: 4px; height: 8px;
  border-right: 2px solid #a3e635;
  border-bottom: 2px solid #a3e635;
  transform: translateY(-65%) rotate(45deg);
}

/* Кнопки */
.rb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.rb-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  font-size: 15.5px;
  font-weight: 700;
  border-radius: var(--rb-radius-pill);
  white-space: nowrap;
  transition: transform .15s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.rb-hero__btn svg { transition: transform .2s ease; }
.rb-hero__btn:hover svg { transform: translateX(3px); }
.rb-hero__btn:active { transform: translateY(1px); }

.rb-hero__btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  box-shadow: 0 12px 32px rgba(79, 124, 246, .4);
}
.rb-hero__btn--primary:hover { filter: brightness(1.1); }

.rb-hero__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.rb-hero__btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .26);
}

/* Мини-статистика */
.rb-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  max-width: 560px;
}
.rb-hero__stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1.1;
  margin-bottom: 4px;
}
.rb-hero__stat span {
  font-size: 13px;
  color: rgba(232, 237, 247, .55);
}

/* ===================== ПРАВАЯ ЧАСТЬ — КАРТОЧКА ===================== */
.rb-hero__card {
  position: sticky;
  top: calc(var(--rb-header-h) + 24px);
  padding: 28px;
  border-radius: var(--rb-radius-lg);

  /* Стеклянный эффект */
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.rb-hero__card-head { margin-bottom: 18px; }

.rb-hero__card-badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #a7c2ff;
  background: rgba(79, 124, 246, .15);
  border: 1px solid rgba(79, 124, 246, .3);
  border-radius: var(--rb-radius-pill);
}

.rb-hero__card-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--rb-radius);
  margin-bottom: 10px;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.rb-hero__card-item:last-of-type { margin-bottom: 18px; }
.rb-hero__card-item:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .12);
  transform: translateX(2px);
}

.rb-hero__card-icon {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
}
.rb-hero__card-icon--blue   { background: linear-gradient(135deg, #4f7cf6 0%, #1d4ed8 100%); }
.rb-hero__card-icon--violet { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.rb-hero__card-icon--green  { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }

.rb-hero__card-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  letter-spacing: -0.1px;
}
.rb-hero__card-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(232, 237, 247, .6);
  margin: 0;
}

/* Мини-CTA в карточке */
.rb-hero__card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  border-radius: var(--rb-radius-pill);
  box-shadow: 0 12px 28px rgba(79, 124, 246, .35);
  transition: filter .2s ease, transform .15s ease;
}
.rb-hero__card-cta:hover { filter: brightness(1.1); }
.rb-hero__card-cta:active { transform: translateY(1px); }
.rb-hero__card-cta svg { transition: transform .2s ease; }
.rb-hero__card-cta:hover svg { transform: translateX(4px); }

/* ===================== Адаптив ===================== */
@media (max-width: 1024px) {
  .rb-hero { padding: 72px 0 64px; }
  .rb-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .rb-hero__card { position: static; }
}

@media (max-width: 640px) {
  .rb-hero { padding: 56px 0 48px; }
  .rb-hero__title { letter-spacing: -0.8px; }
  .rb-hero__lead { font-size: 15.5px; }
  .rb-hero__list li { font-size: 14.5px; }

  .rb-hero__actions { flex-direction: column; }
  .rb-hero__btn { justify-content: center; width: 100%; }

  .rb-hero__stats {
    gap: 20px;
    padding-top: 20px;
  }
  .rb-hero__stat b { font-size: 20px; }

  .rb-hero__card { padding: 22px 18px; }
  .rb-hero__card-item { padding: 14px; }
}

/* ==========================================================================
   Секция «Кому и зачем это нужно»
   ========================================================================== */
.rb-audience {
  padding: 96px 0;
  background: var(--rb-color-bg);
}

.rb-section-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.rb-section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 16px;
}
.rb-section-lead {
  font-size: 17px;
  color: var(--rb-color-muted);
  margin: 0;
  max-width: 640px;
}


.rb-audience__group { margin-bottom: 72px; }
.rb-audience__group:last-child { margin-bottom: 0; }

.rb-audience__group-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.rb-audience__tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: var(--rb-radius-pill);
  margin-bottom: 14px;
}
.rb-audience__tag--ip {
  background: #d8f3c9;
  color: #2f6b1e;
}
.rb-audience__tag--ooo {
  background: #e6e9ee;
  color: var(--rb-color-text);
}

.rb-audience__group-title {
  font-size: clamp(22px, 2.4vw, 30px);
  margin-bottom: 8px;
}
.rb-audience__group-lead {
  font-size: 15px;
  color: var(--rb-color-muted);
  margin: 0;
  max-width: 520px;
}


.rb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.rb-tab {
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--rb-color-text);
  background: #fff;
  border: 1px solid var(--rb-color-border);
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.rb-tab:hover { border-color: var(--rb-color-primary); color: var(--rb-color-primary); }
.rb-tab.is-active {
  background: var(--rb-color-primary);
  color: #fff;
  border-color: var(--rb-color-primary);
}

.rb-tab-panel { display: none; }
.rb-tab-panel.is-active { display: block; }


.rb-audience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rb-audience__card {
  display: flex;
  flex-direction: column;
  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius);
  overflow: hidden;
  box-shadow: var(--rb-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rb-audience__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rb-shadow);
}

.rb-audience__media {
  aspect-ratio: 4 / 3;
  background: var(--rb-color-soft);
  overflow: hidden;
}
.rb-audience__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rb-audience__body { padding: 18px 20px 22px; }
.rb-audience__card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--rb-color-text);
}
.rb-audience__card-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rb-color-muted);
  margin: 0;
}

/* ==========================================================================
Как мы работаем
   ========================================================================== */
.rb-how {
  padding: 96px 0;
  background: var(--rb-color-bg);
}

.rb-how__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.rb-how__card {
  position: relative;
  background: var(--rb-color-surface);
  border-radius: var(--rb-radius-lg);
  padding: 36px 32px 32px;
  box-shadow: var(--rb-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.rb-how__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: var(--rb-radius-lg) var(--rb-radius-lg) 0 0;
}
.rb-how__card--blue::before {
  background: linear-gradient(90deg, #1d4ed8 0%, #7c3aed 100%);
}
.rb-how__card--green::before {
  background: linear-gradient(90deg, #a3e635 0%, #10b981 100%);
}

.rb-how__badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: var(--rb-radius-pill);
  margin-bottom: 20px;
}
.rb-how__badge--blue {
  background: #dbe6fb;
  color: #1d4ed8;
}
.rb-how__badge--green {
  background: #d8f3c9;
  color: #2f6b1e;
}

.rb-how__title {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.rb-how__lead {
  font-size: 15px;
  color: var(--rb-color-muted);
  margin-bottom: 28px;
}

.rb-how__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.rb-how__step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rb-color-border);
}
.rb-how__step:last-child { border-bottom: 0; padding-bottom: 0; }
.rb-how__step:first-child { padding-top: 0; }

.rb-how__num {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.rb-how__num--blue  { background: #dbe6fb; color: #1d4ed8; }
.rb-how__num--green { background: #d8f3c9; color: #2f6b1e; }

.rb-how__step-body { flex: 1; }
.rb-how__step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.rb-how__step-text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rb-color-muted);
  margin: 0;
}

.rb-how__btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--rb-radius-pill);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  transition: filter .2s ease, transform .1s ease;
  margin-top: auto;
}
.rb-how__btn:active { transform: translateY(1px); }

.rb-how__btn--blue {
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  box-shadow: 0 10px 24px rgba(29, 78, 216, .28);
}
.rb-how__btn--blue:hover  { filter: brightness(1.06); }

.rb-how__btn--green {
  background: linear-gradient(90deg, #a3e635 0%, #10b981 100%);
  box-shadow: 0 10px 24px rgba(16, 185, 129, .28);
}
.rb-how__btn--green:hover { filter: brightness(1.04); }

/* ==========================================================================
 Наши преимущества
   ========================================================================== */
.rb-benefits {
  padding: 96px 0;
  background: var(--rb-color-bg);
}

.rb-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rb-benefits__card {
  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius-lg);
  padding: 28px 28px 30px;
  box-shadow: var(--rb-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rb-benefits__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rb-shadow);
}

.rb-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 22px;
  user-select: none;
}

.rb-benefits__icon--wide {
  display: flex;
  width: 100%;
  height: 56px;
  border-radius: 12px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rb-benefits__icon--mint   { background: #d8f3c9; color: #2f6b1e; }
.rb-benefits__icon--blue   { background: #dbe6fb; color: #1d4ed8; }
.rb-benefits__icon--violet { background: #ede4fb; color: #7c3aed; }
.rb-benefits__icon--beige  { background: #fdf3e3; color: #b7791f; }
.rb-benefits__icon--pink   { background: #fde3e3; color: #dc2626; }
.rb-benefits__icon--green  { background: #d8f3c9; color: #10b981; }

.rb-benefits__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--rb-color-text);
}
.rb-benefits__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--rb-color-muted);
  margin: 0;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.rb-faq {
  padding: 96px 0;
  background: var(--rb-color-bg);
}

.rb-faq__head { margin-bottom: 40px; }

.rb-faq__list {
  display: grid;
  gap: 16px;
}

.rb-faq__item {
  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius-lg);
  box-shadow: var(--rb-shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.rb-faq__item:hover { box-shadow: var(--rb-shadow); }
.rb-faq__item[open] { box-shadow: var(--rb-shadow); }

.rb-faq__summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 16px;
  color: var(--rb-color-text);
  user-select: none;
}
.rb-faq__summary::-webkit-details-marker { display: none; }
.rb-faq__summary::marker { content: ""; }

.rb-faq__question { flex: 1; line-height: 1.4; }

.rb-faq__icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  position: relative;
  margin-top: 4px;
  transition: transform .25s ease;
  color: var(--rb-color-muted);
  opacity: .7;
}
.rb-faq__icon::before,
.rb-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.rb-faq__icon::before { width: 14px; height: 1.5px; }
.rb-faq__icon::after  { width: 1.5px; height: 14px; }

.rb-faq__item[open] .rb-faq__icon {
  transform: rotate(45deg);
  color: var(--rb-color-text);
  opacity: 1;
}

.rb-faq__answer { padding: 0 26px 24px; }
.rb-faq__answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--rb-color-muted);
}

/* ==========================================================================
   Контакты + анкета
   ========================================================================== */
.rb-contacts {
  padding: 96px 0;
  background: var(--rb-color-bg);
}

.rb-contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ЛЕВАЯ ЧАСТЬ */
.rb-contacts__title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}
.rb-contacts__lead {
  font-size: 16px;
  color: var(--rb-color-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.rb-contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.rb-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius);
  padding: 16px 18px;
  box-shadow: var(--rb-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rb-contact:hover { transform: translateY(-2px); box-shadow: var(--rb-shadow); }
.rb-contact--wide { grid-column: 1 / -1; }
.rb-contact__icon {
  flex: 0 0 44px; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; color: #fff;
}
.rb-contact__icon--blue   { background: #4f7cf6; }
.rb-contact__icon--green  { background: #25d366; }
.rb-contact__icon--sky    { background: #2aa6e0; }
.rb-contact__icon--violet { background: #7c3aed; }
.rb-contact__icon--orange { background: #ff6a00; }
.rb-contact__body { display: grid; gap: 2px; min-width: 0; }
.rb-contact__title { font-size: 15px; font-weight: 700; color: var(--rb-color-text); }
.rb-contact__text  {
  font-size: 13px; color: var(--rb-color-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ПРАВАЯ ЧАСТЬ — анкета */
.rb-contacts__right { position: sticky; top: calc(var(--rb-header-h) + 24px); }

.rb-quiz {
  background: var(--rb-color-surface);
  border-radius: var(--rb-radius-lg);
  padding: 36px 36px 32px;
  box-shadow: var(--rb-shadow);
  border: 1px solid rgba(15, 23, 42, .05);
}

.rb-quiz__title {
  font-size: 22px;
  margin-bottom: 6px;
}
.rb-quiz__subtitle {
  font-size: 15px;
  color: var(--rb-color-muted);
  margin-bottom: 24px;
}

/* Прогресс */
.rb-quiz__progress {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.rb-quiz__step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-color-muted);
}
.rb-quiz__step-num {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--rb-color-muted);
  font-size: 12px; font-weight: 700;
  border: 1px solid var(--rb-color-border);
}
.rb-quiz__step.is-active .rb-quiz__step-num,
.rb-quiz__step.is-done .rb-quiz__step-num {
  background: #a3e635;
  color: #2f6b1e;
  border-color: #a3e635;
}
.rb-quiz__step.is-active .rb-quiz__step-label,
.rb-quiz__step.is-done   .rb-quiz__step-label {
  color: var(--rb-color-text);
}


.rb-quiz__panel { display: none; }
.rb-quiz__panel.is-active { display: block; animation: rbFade .25s ease; }

@keyframes rbFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rb-quiz__panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rb-color-primary);
  margin-bottom: 8px;
}
.rb-quiz__question {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.rb-quiz__hint {
  font-size: 14px;
  color: var(--rb-color-muted);
  margin-bottom: 18px;
}
.rb-quiz__hint small { font-weight: 400; }


.rb-form__field { display: grid; gap: 6px; margin-bottom: 14px; }
.rb-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--rb-color-text);
}
.rb-quiz input[type="text"],
.rb-quiz input[type="tel"],
.rb-quiz input[type="email"],
.rb-quiz select,
.rb-quiz textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: inherit;
  font-size: 15px;
  color: var(--rb-color-text);
  background: #fff;
  border: 1px solid var(--rb-color-border);
  border-radius: var(--rb-radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rb-quiz select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230f172a' stroke-width='1.8' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.rb-quiz input:focus,
.rb-quiz select:focus,
.rb-quiz textarea:focus {
  outline: none;
  border-color: var(--rb-color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
.rb-quiz textarea { resize: vertical; min-height: 120px; }
.rb-quiz input.is-error,
.rb-quiz select.is-error,
.rb-quiz textarea.is-error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}


.rb-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #f7f9fc;
  border: 1px solid var(--rb-color-border);
  border-radius: var(--rb-radius-sm);
  font-size: 13.5px;
  color: var(--rb-color-text);
  cursor: pointer;
  user-select: none;
  margin-bottom: 10px;
  line-height: 1.45;
}
.rb-form__consent input {
  flex: 0 0 auto;
  margin-top: 2px;
  width: 18px; height: 18px;
  accent-color: #a3e635;
}
.rb-form__consent.is-error {
  border-color: #dc2626;
  background: #fef2f2;
}


.rb-quiz__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.rb-quiz__panel[data-panel="4"].is-active ~ .rb-quiz__nav {
  display: none !important;
}


.rb-quiz__back4 {
  margin-top: 0;
  width: 100%;
}



.rb-quiz__nav > .rb-quiz__btn--ghost[hidden] + .rb-quiz__btn--primary {
  grid-column: 1 / -1;
}

.rb-quiz__btn {
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--rb-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, filter .2s ease;
}
.rb-quiz__btn--ghost {
  background: #fff;
  color: var(--rb-color-text);
  border-color: var(--rb-color-border);
}
.rb-quiz__btn--ghost:hover { border-color: var(--rb-color-primary); color: var(--rb-color-primary); }

.rb-quiz__btn--primary {
  background: var(--rb-color-primary);
  color: #fff;
}
.rb-quiz__btn--primary:hover { background: var(--rb-color-primary-h); }

.rb-quiz__btn--full { width: 100%; margin-top: 6px; }
.rb-quiz__btn[disabled] { opacity: .6; cursor: not-allowed; }

/
.rb-quiz__note {
  font-size: 13px;
  color: var(--rb-color-muted);
  line-height: 1.5;
  text-align: center;
  margin: 14px 0 18px;
}
.rb-quiz__note a {
  color: var(--rb-color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.rb-quiz__note a:hover { color: var(--rb-color-primary); }


.rb-form__status { font-size: 14px; font-weight: 600; min-height: 20px; margin-top: 8px; }
.rb-form__status.is-success { color: #10b981; }
.rb-form__status.is-error   { color: #dc2626; }

/* Honeypot */
.rb-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .rb-audience__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .rb-hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .rb-hero__card { position: static; }

  .rb-how__grid { gap: 20px; }
  .rb-how__card { padding: 28px 24px 24px; }

  .rb-benefits__grid { gap: 20px; }
  .rb-benefits__card { padding: 24px; }

  .rb-contacts__inner { grid-template-columns: 1fr; gap: 40px; }
  .rb-contacts__right { position: static; }
}

@media (max-width: 860px) {
  :root { --rb-header-h: 68px; }

  .rb-nav, .rb-header__cta { display: none; }
  .rb-burger { display: inline-flex; }

  .rb-hero { padding: 48px 0 64px; }
  .rb-hero__lead { font-size: 16px; }
  .rb-hero__actions .rb-btn { width: 100%; }

  .rb-audience { padding: 64px 0; }
  .rb-audience__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .rb-section-head { margin-bottom: 40px; }
  .rb-audience__group { margin-bottom: 52px; }

  .rb-how { padding: 64px 0; }
  .rb-how__grid { grid-template-columns: 1fr; }

  .rb-benefits { padding: 64px 0; }
  .rb-benefits__grid { grid-template-columns: repeat(2, 1fr); }

  .rb-faq { padding: 64px 0; }
  .rb-faq__summary { padding: 18px 20px; font-size: 15px; }
  .rb-faq__answer { padding: 0 20px 20px; }

  .rb-contacts { padding: 64px 0; }
}

@media (max-width: 640px) {
  .rb-contacts__grid { grid-template-columns: 1fr; }
  .rb-quiz { padding: 24px 20px; }
  .rb-quiz__progress { gap: 8px 12px; }
  .rb-quiz__step-label { display: none; }
  .rb-quiz__nav { grid-template-columns: 1fr; }
  .rb-quiz__btn--primary { grid-column: auto; }
}

@media (max-width: 520px) {
  .rb-container { padding: 0 16px; }
  .rb-hero__title { font-size: 32px; }
  .rb-hero__card { padding: 20px; }
  .rb-hero__card-item { padding: 16px 18px; }

  .rb-audience__grid { grid-template-columns: 1fr; }
  .rb-audience__body { padding: 16px 18px 20px; }

  .rb-how__card { padding: 24px 20px 20px; }
  .rb-how__num { flex: 0 0 40px; width: 40px; height: 40px; font-size: 13px; }
  .rb-how__step { gap: 12px; padding: 14px 0; }

  .rb-benefits__grid { grid-template-columns: 1fr; gap: 16px; }
  .rb-benefits__card { padding: 20px; }
  .rb-benefits__icon { width: 48px; height: 48px; font-size: 18px; margin-bottom: 16px; }
  .rb-benefits__icon--wide { font-size: 13px; height: 48px; }

  .rb-faq__list { gap: 12px; }
  .rb-faq__summary { padding: 16px 18px; gap: 12px; }
  .rb-faq__answer { padding: 0 18px 18px; }
}
/* ==========================================================================
   Подвал — тёмный, современный
   ========================================================================== */
.rb-footer {
  position: relative;
  padding: 72px 0 32px;
  background: linear-gradient(180deg, #0a1128 0%, #0e1a35 50%, #0a1128 100%);
  color: #e8edf7;
  overflow: hidden;
}

/* Декоративные градиенты */
.rb-footer__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(79, 124, 246, .18), transparent 60%),
    radial-gradient(500px 250px at 90% 20%, rgba(124, 58, 237, .14), transparent 60%),
    radial-gradient(600px 300px at 50% 100%, rgba(37, 211, 102, .08), transparent 60%);
}

.rb-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

/* ===================== CTA-зона ===================== */
.rb-footer__cta {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rb-footer__badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a7c2ff;
  background: rgba(79, 124, 246, .15);
  border: 1px solid rgba(79, 124, 246, .3);
  border-radius: var(--rb-radius-pill);
  margin-bottom: 18px;
}

.rb-footer__cta-title {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #fff;
  margin: 0 0 12px;
}

.rb-footer__cta-sub {
  font-size: 15px;
  color: rgba(232, 237, 247, .65);
  margin: 0;
}

.rb-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.rb-footer__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--rb-radius-pill);
  white-space: nowrap;
  transition: transform .15s ease, filter .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.rb-footer__cta-btn svg { transition: transform .2s ease; }
.rb-footer__cta-btn:hover svg { transform: translateX(3px); }
.rb-footer__cta-btn:active { transform: translateY(1px); }

.rb-footer__cta-btn--primary {
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  box-shadow: 0 12px 28px rgba(79, 124, 246, .35);
}
.rb-footer__cta-btn--primary:hover { filter: brightness(1.1); }

.rb-footer__cta-btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.rb-footer__cta-btn--ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
}

/* ===================== Мессенджеры ===================== */
.rb-footer__messengers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.rb-footer__msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--rb-radius);
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.rb-footer__msg:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .16);
}

.rb-footer__msg-icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
}
.rb-footer__msg--wa   .rb-footer__msg-icon { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.rb-footer__msg--tg   .rb-footer__msg-icon { background: linear-gradient(135deg, #2aa6e0 0%, #1e7fb8 100%); }
.rb-footer__msg--mail .rb-footer__msg-icon { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.rb-footer__msg--2gis .rb-footer__msg-icon { background: linear-gradient(135deg, #ff6a00 0%, #d35400 100%); }

.rb-footer__msg-body { display: grid; gap: 2px; min-width: 0; }
.rb-footer__msg-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.rb-footer__msg-sub {
  font-size: 12.5px;
  color: rgba(232, 237, 247, .55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================== Колонки ===================== */
.rb-footer__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rb-footer__col-title {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7a94c8;
  margin-bottom: 18px;
}

.rb-footer__about-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.35;
}

.rb-footer__list {
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.rb-footer__list--nav { gap: 8px; }

.rb-footer__label {
  color: rgba(232, 237, 247, .5);
  margin-right: 8px;
  font-size: 13px;
}
.rb-footer__value {
  color: #e8edf7;
  font-weight: 600;
}

.rb-footer__link {
  color: rgba(232, 237, 247, .78);
  transition: color .2s ease, padding-left .2s ease;
  position: relative;
}
.rb-footer__link:hover {
  color: #fff;
  padding-left: 4px;
}

/* ===================== Нижняя полоса ===================== */
.rb-footer__bottom {
  display: grid;
  gap: 12px;
  text-align: center;
  padding-top: 8px;
}

.rb-footer__copy {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.rb-footer__disclaimer {
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(232, 237, 247, .5);
  max-width: 640px;
  margin: 0 auto;
}

.rb-footer__up {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  margin-top: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--rb-radius-pill);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.rb-footer__up:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .28);
  transform: translateY(-2px);
}
.rb-footer__up svg { transition: transform .2s ease; }
.rb-footer__up:hover svg { transform: translateY(-2px); }

/* ===================== Адаптив ===================== */
@media (max-width: 1024px) {
  .rb-footer__cta {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .rb-footer__cta-actions { justify-content: center; }

  .rb-footer__messengers { grid-template-columns: repeat(2, 1fr); }
  .rb-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .rb-footer { padding: 56px 0 24px; }
  .rb-footer__inner { gap: 36px; }

  .rb-footer__messengers { grid-template-columns: 1fr; }
  .rb-footer__cols { grid-template-columns: 1fr; gap: 28px; }

  .rb-footer__cta-actions { flex-direction: column; width: 100%; }
  .rb-footer__cta-btn { justify-content: center; }

  .rb-footer__disclaimer { font-size: 12px; }
}
/* ==========================================================================
   Правовые страницы (политика, согласие, сведения)
   ========================================================================== */
.rb-legal {
  padding: 72px 0 96px;
  background: var(--rb-color-bg);
}

.rb-legal__head {
  max-width: 820px;
  margin-bottom: 32px;
}
.rb-legal__title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.rb-legal__meta {
  font-size: 14px;
  color: var(--rb-color-muted);
  margin: 0;
}


.rb-legal__body {
  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius-lg);
  box-shadow: var(--rb-shadow-sm);
  padding: 40px 44px;
  max-width: 900px;
  margin: 0 auto;
}

.rb-legal__body h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 32px 0 12px;
  color: var(--rb-color-text);
}
.rb-legal__body h2:first-child { margin-top: 0; }

.rb-legal__body p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--rb-color-text);
  margin: 0 0 14px;
}

.rb-legal__body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  list-style: disc;
}
.rb-legal__body ul li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--rb-color-text);
  margin-bottom: 6px;
}
.rb-legal__body ul li::marker { color: var(--rb-color-muted); }

.rb-legal__body b,
.rb-legal__body strong {
  font-weight: 700;
  color: var(--rb-color-text);
}

.rb-legal__body a {
  color: var(--rb-color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.rb-legal__body a:hover { color: var(--rb-color-primary-h); }


.rb-legal__footer {
  max-width: 900px;
  margin: 32px auto 0;
  text-align: left;
}

/* Адаптив */
@media (max-width: 860px) {
  .rb-legal { padding: 48px 0 64px; }
  .rb-legal__body { padding: 28px 24px; }
  .rb-legal__body h2 { font-size: 18px; }
  .rb-legal__body p,
  .rb-legal__body ul li { font-size: 15px; }
}
@media (max-width: 520px) {
  .rb-legal__body { padding: 22px 18px; }
  .rb-legal__body h2 { font-size: 17px; }
}
/* ==========================================================================
   Сётчик клиентов
   ========================================================================== */
.rb-counter {
  padding: 0 0 64px;
  margin-top: -32px;   /* лёгкий «нахлёст» на Hero — для эффекта плавающей карточки */
  position: relative;
  z-index: 2;
  background: var(--rb-color-bg);
}

.rb-counter__card {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 40px;
  align-items: center;

  background: var(--rb-color-surface);
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius-lg);
  padding: 36px 44px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .08);

 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.rb-counter.is-visible .rb-counter__card {
  opacity: 1;
  transform: translateY(0);
}


.rb-counter__col { min-width: 0; }

.rb-counter__col--clients { position: relative; }

.rb-counter__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: #dbe6fb;
  color: var(--rb-color-primary);
  margin-bottom: 14px;
}

.rb-counter__num-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.rb-counter__num {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--rb-color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rb-counter__num-label {
  font-size: 17px;
  font-weight: 600;
  color: var(--rb-color-muted);
}

.rb-counter__text {
  font-size: 15px;
  color: var(--rb-color-muted);
  margin: 0 0 18px;
  max-width: 380px;
}


.rb-counter__avatars {
  display: flex;
  align-items: center;
}
.rb-counter__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  border: 2px solid #fff;
  margin-left: -10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.rb-counter__avatar:first-child { margin-left: 0; }
.rb-counter__avatar--1 { background: #4f7cf6; }
.rb-counter__avatar--2 { background: #25d366; }
.rb-counter__avatar--3 { background: #f59e0b; }
.rb-counter__avatar--4 { background: #7c3aed; }
.rb-counter__avatar--5 {
  background: var(--rb-color-soft);
  color: var(--rb-color-muted);
  font-size: 13px;
}


.rb-counter__divider {
  align-self: stretch;
  background: linear-gradient(180deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, .12) 50%,
    rgba(15, 23, 42, 0) 100%);
}


.rb-counter__col--slots { position: relative; }

.rb-counter__slots-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.rb-counter__slots-pulse {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, .55);
  animation: rbPulse 1.8s ease-out infinite;
}
@keyframes rbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.rb-counter__slots-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ef4444;
}

.rb-counter__slots-num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.rb-counter__slots-value {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.4px;
  color: var(--rb-color-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rb-counter__slots-word {
  font-size: 17px;
  font-weight: 600;
  color: var(--rb-color-muted);
}


.rb-counter__progress {
  height: 8px;
  border-radius: 999px;
  background: #eef1f6;
  overflow: hidden;
  margin-bottom: 12px;
}
.rb-counter__progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}

.rb-counter__slots-text {
  font-size: 15px;
  color: var(--rb-color-muted);
  margin: 0 0 18px;
  max-width: 380px;
}


.rb-counter__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 100%);
  border-radius: var(--rb-radius-pill);
  box-shadow: 0 10px 22px rgba(29, 78, 216, .28);
  transition: transform .15s ease, filter .2s ease;
}
.rb-counter__cta:hover { filter: brightness(1.06); }
.rb-counter__cta:active { transform: translateY(1px); }
.rb-counter__cta svg { transition: transform .2s ease; }
.rb-counter__cta:hover svg { transform: translateX(3px); }


@media (max-width: 860px) {
  .rb-counter {
    padding: 0 0 48px;
    margin-top: -16px;
  }
  .rb-counter__card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }
  .rb-counter__divider {
    height: 1px;
    background: linear-gradient(90deg,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, .12) 50%,
      rgba(15, 23, 42, 0) 100%);
  }
}

@media (max-width: 520px) {
  .rb-counter__card { padding: 24px 20px; }
  .rb-counter__avatar { width: 32px; height: 32px; font-size: 13px; }
  .rb-counter__cta { width: 100%; justify-content: center; }
  .rb-counter__icon { width: 44px; height: 44px; }
}
/* ==========================================================================
   Плавающие кнопки справа
   ========================================================================== */
.rb-float {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;

  
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.rb-float.is-ready {
  opacity: 1;
  pointer-events: auto;
}


.rb-float__btn {
  position: relative;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: #333;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;

  
  opacity: 0;
  transform: translateX(40px);
}
.rb-float.is-ready .rb-float__btn {
  opacity: 1;
  transform: translateX(0);
}

.rb-float.is-ready .rb-float__btn:nth-child(1) { transition-delay: .05s; }
.rb-float.is-ready .rb-float__btn:nth-child(2) { transition-delay: .10s; }
.rb-float.is-ready .rb-float__btn:nth-child(3) { transition-delay: .15s; }
.rb-float.is-ready .rb-float__btn:nth-child(4) { transition-delay: .20s; }
.rb-float.is-ready .rb-float__btn:nth-child(5) { transition-delay: .25s; }

.rb-float__btn:hover {
  transform: translateX(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .24);
}
.rb-float__btn:active { transform: translateX(-2px) scale(.98); }


.rb-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}


.rb-float__btn--wa   { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.rb-float__btn--tg   { background: linear-gradient(135deg, #2aa6e0 0%, #1e7fb8 100%); }
.rb-float__btn--call { background: linear-gradient(135deg, #4f7cf6 0%, #1d4ed8 100%); }
.rb-float__btn--mail { background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%); }
.rb-float__btn--top  {
  background: #fff;
  color: var(--rb-color-text);
  border: 1px solid var(--rb-color-border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .10);

 
  max-height: 0;
  margin-top: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease,
              transform .2s ease, box-shadow .2s ease;
}
.rb-float__btn--top.is-visible {
  max-height: 56px;
  margin-top: 0;
  opacity: 1;
}
.rb-float__btn--top:hover { color: var(--rb-color-primary); }


.rb-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
.rb-float__btn--wa .rb-float__pulse {
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .7);
  animation: rbFloatPulseWa 2.2s ease-out infinite;
}
.rb-float__btn--tg .rb-float__pulse {
  box-shadow: 0 0 0 0 rgba(42, 166, 224, .7);
  animation: rbFloatPulseTg 2.6s ease-out infinite;
}

@keyframes rbFloatPulseWa {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .65); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes rbFloatPulseTg {
  0%   { box-shadow: 0 0 0 0 rgba(42, 166, 224, .65); }
  70%  { box-shadow: 0 0 0 14px rgba(42, 166, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(42, 166, 224, 0); }
}


.rb-float__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: #0f172a;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.rb-float__label::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #0f172a;
}
.rb-float__btn:hover .rb-float__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}


@media (min-width: 1400px) {
  .rb-float { right: 28px; }
}


@media (max-width: 860px) {
  .rb-float {
    right: 14px;
    gap: 10px;
  }
  .rb-float__btn {
    width: 50px; height: 50px;
  }
  .rb-float__btn--top.is-visible { max-height: 50px; }
  .rb-float__label {
    
    display: none;
  }
}

@media (max-width: 520px) {
  .rb-float {
    right: 10px;
    gap: 8px;
    
    top: auto;
    bottom: 20px;
    transform: none;
  }
  .rb-float__btn {
    width: 46px; height: 46px;
  }
  .rb-float__btn--top.is-visible { max-height: 46px; }
}


@media (prefers-reduced-motion: reduce) {
  .rb-float__btn,
  .rb-float__btn--top,
  .rb-float__pulse,
  .rb-float__label { transition: none !important; animation: none !important; }
}
/* ==========================================================================
   Exit-intent popup
   ========================================================================== */
.rb-exit {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.rb-exit.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rb-exit__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
}

.rb-exit__dialog {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--rb-radius-lg);
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .25);
  transform: translateY(20px) scale(.96);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.rb-exit.is-open .rb-exit__dialog {
  transform: translateY(0) scale(1);
}

.rb-exit__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--rb-color-muted);
  transition: background .2s ease, color .2s ease;
}
.rb-exit__close:hover {
  background: var(--rb-color-soft);
  color: var(--rb-color-text);
}

.rb-exit__badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #b7791f;
  background: #fdf3e3;
  border-radius: var(--rb-radius-pill);
  margin-bottom: 14px;
}

.rb-exit__title {
  font-size: 26px;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.rb-exit__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--rb-color-muted);
  margin-bottom: 22px;
}
.rb-exit__text b { color: var(--rb-color-text); }

.rb-exit__form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid var(--rb-color-border);
  border-radius: var(--rb-radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rb-exit__form input[type="tel"]:focus {
  outline: none;
  border-color: var(--rb-color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}

.rb-exit__small {
  font-size: 12px;
  color: var(--rb-color-muted);
  text-align: center;
  margin: 12px 0 0;
}
.rb-exit__small a {
  color: var(--rb-color-muted);
  text-decoration: underline;
}

body.rb-exit-open { overflow: hidden; }

@media (max-width: 520px) {
  .rb-exit__dialog { padding: 32px 22px 24px; }
  .rb-exit__title { font-size: 22px; }
}
/* ==========================================================================
   Квиз-калькулятор
   ========================================================================== */
.rb-quizcalc {
  padding: 96px 0;
  background: var(--rb-color-bg);
}
.rb-quizcalc__card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .05);
  border-radius: var(--rb-radius-lg);
  padding: 40px;
  box-shadow: var(--rb-shadow);
}
.rb-quizcalc__head { text-align: center; margin-bottom: 32px; }
.rb-quizcalc__title {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.rb-quizcalc__lead {
  font-size: 16px;
  color: var(--rb-color-muted);
  margin: 0 auto;
  max-width: 540px;
}

/* Шаг */
.rb-quizcalc__step { display: none; }
.rb-quizcalc__step.is-active { display: block; animation: rbQcFade .3s ease; }
@keyframes rbQcFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Прогресс */
.rb-quizcalc__progress {
  height: 6px;
  border-radius: 999px;
  background: var(--rb-color-soft);
  overflow: hidden;
  margin-bottom: 12px;
}
.rb-quizcalc__progress span {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8 0%, #7c3aed 100%);
  transition: width .35s ease;
}

.rb-quizcalc__counter {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--rb-color-muted);
  margin-bottom: 10px;
}

.rb-quizcalc__q {
  font-size: 22px;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

/* Опции */
.rb-quizcalc__options { display: grid; gap: 10px; }
.rb-quizcalc__options--grid { grid-template-columns: 1fr 1fr; }

.rb-quizcalc__opt {
  position: relative;
  display: block;
  padding: 16px 18px;
  border: 1.5px solid var(--rb-color-border);
  border-radius: var(--rb-radius);
  cursor: pointer;
  background: #fff;
  transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.rb-quizcalc__opt:hover { border-color: #b8c3d6; }
.rb-quizcalc__opt input {
  position: absolute; opacity: 0; pointer-events: none;
}
.rb-quizcalc__opt-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--rb-color-text);
  margin-bottom: 2px;
}
.rb-quizcalc__opt-desc {
  display: block;
  font-size: 13.5px;
  color: var(--rb-color-muted);
}
.rb-quizcalc__opt--sm { padding: 14px 16px; }
.rb-quizcalc__opt--sm .rb-quizcalc__opt-title { font-size: 14.5px; margin: 0; }

.rb-quizcalc__opt input:checked + .rb-quizcalc__opt-title,
.rb-quizcalc__opt:has(input:checked) {
  color: var(--rb-color-primary);
}
.rb-quizcalc__opt:has(input:checked) {
  border-color: var(--rb-color-primary);
  background: #eff4ff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
}

/* Навигация */
.rb-quizcalc__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.rb-quizcalc__nav > .rb-quizcalc__btn--ghost[hidden] + .rb-quizcalc__btn--primary {
  grid-column: 1 / -1;
}
.rb-quizcalc__btn {
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--rb-radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.rb-quizcalc__btn--ghost {
  background: #fff;
  color: var(--rb-color-text);
  border-color: var(--rb-color-border);
}
.rb-quizcalc__btn--ghost:hover { border-color: var(--rb-color-primary); color: var(--rb-color-primary); }
.rb-quizcalc__btn--primary {
  background: var(--rb-color-primary);
  color: #fff;
}
.rb-quizcalc__btn--primary:hover:not([disabled]) { background: var(--rb-color-primary-h); }
.rb-quizcalc__btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Результат */
.rb-quizcalc__result { text-align: center; }
.rb-quizcalc__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--rb-radius-pill);
  background: #eff4ff;
  color: var(--rb-color-primary);
  margin-bottom: 20px;
}
.rb-quizcalc__result-label { font-size: 13px; font-weight: 600; }
.rb-quizcalc__result-value {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rb-quizcalc__result-text {
  font-size: 16px;
  color: var(--rb-color-muted);
  max-width: 480px;
  margin: 0 auto 20px;
}
.rb-quizcalc__result-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.rb-quizcalc__result-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--rb-color-text);
}
.rb-quizcalc__result-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #d8f3c9;
}
.rb-quizcalc__result-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 4px; height: 8px;
  border-right: 2px solid #2f6b1e;
  border-bottom: 2px solid #2f6b1e;
  transform: rotate(45deg);
}

@media (max-width: 640px) {
  .rb-quizcalc { padding: 64px 0; }
  .rb-quizcalc__card { padding: 24px 20px; }
  .rb-quizcalc__options--grid { grid-template-columns: 1fr; }
  .rb-quizcalc__nav { grid-template-columns: 1fr; }
  .rb-quizcalc__btn--primary { grid-column: 1; }
}
/* ==========================================================================
   Карусель логотипов
   ========================================================================== */
.rb-partners {
  padding: 40px 0 56px;
  background: var(--rb-color-bg);
}
.rb-partners__title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rb-color-muted);
  margin-bottom: 24px;
}

.rb-partners__viewport {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.rb-partners__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: rbMarquee 40s linear infinite;
  will-change: transform;
}
.rb-partners__track:hover { animation-play-state: paused; }

@keyframes rbMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.rb-partners__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  opacity: .55;
  transition: opacity .25s ease, filter .25s ease;
  filter: grayscale(100%);
}
.rb-partners__item:hover {
  opacity: 1;
  filter: none;
}
.rb-partners__item span {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--rb-color-text);
  white-space: nowrap;
}
.rb-partners__item img {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 640px) {
  .rb-partners__track { gap: 32px; animation-duration: 28s; }
  .rb-partners__item span { font-size: 17px; }
  .rb-partners__item img { height: 32px; }
}
/* ==========================================================================
   Push-уведомления «Марина только что оставила заявку»
   ========================================================================== */
.rb-push {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 340px;
  padding: 14px 40px 14px 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .06);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);

  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
.rb-push.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.rb-push__icon {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--rb-color-primary);
  background: #dbe6fb;
}

.rb-push__body { min-width: 0; }
.rb-push__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  color: var(--rb-color-text);
}
.rb-push__text b { font-weight: 700; }
.rb-push__time {
  display: inline-block;
  font-size: 12px;
  color: var(--rb-color-muted);
  margin-top: 2px;
}

.rb-push__close {
  position: absolute;
  top: 8px; right: 8px;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--rb-color-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.rb-push__close:hover { background: var(--rb-color-soft); color: var(--rb-color-text); }

@media (max-width: 520px) {
  .rb-push { left: 12px; right: 12px; max-width: none; bottom: 12px; }
}