/* Interactive journey / Дорожная карта */

.rm-page {
  --rm-ink: #111113;
  --rm-muted: #5c5c66;
  --rm-line: rgba(17, 17, 19, 0.14);
  --rm-blue: #0071e3;
  --rm-blue-soft: #e8f1fc;
  --rm-panel: #ffffff;
  --rm-board: #f7f8fb;
}

.rm-hero {
  padding: 36px 0 8px;
  text-align: center;
}
.rm-hero .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7a8496;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 750;
}
.rm-hero .kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rm-blue);
}
.rm-hero h1 {
  margin: 14px 0 0;
  font-family: Onest, Manrope, "Segoe UI", sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--rm-ink);
}
.rm-hero p {
  margin: 14px auto 0;
  max-width: 54ch;
  color: var(--rm-muted);
  font-size: 16px;
  line-height: 1.55;
}

.rm-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}
.rm-controls button {
  appearance: none;
  border: 1px solid var(--rm-line);
  background: #fff;
  color: var(--rm-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.rm-controls button:hover {
  border-color: rgba(0, 113, 227, 0.35);
  color: var(--rm-blue);
}
.rm-controls button.is-primary {
  background: var(--rm-blue);
  border-color: var(--rm-blue);
  color: #fff;
}
.rm-controls button.is-primary:hover {
  background: #0062c7;
  color: #fff;
}
.rm-controls button:disabled {
  opacity: 0.45;
  cursor: default;
}

.rm-board-wrap {
  padding: 18px 0 10px;
}
.rm-board {
  position: relative;
  width: 100%;
  padding: 28px 20px 24px;
  border-radius: 28px;
  border: 1px solid var(--rm-line);
  background:
    radial-gradient(circle at 12% 18%, rgba(0, 113, 227, 0.05), transparent 42%),
    linear-gradient(180deg, #fbfcfe, var(--rm-board));
  box-shadow: 0 18px 50px rgba(29, 45, 80, 0.06);
  overflow: auto;
}

.rm-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 6px;
  min-width: 860px;
}

.rm-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.rm-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 18px;
  gap: 0;
  color: var(--rm-blue);
  opacity: 0.35;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.rm-bridge.is-on {
  opacity: 1;
}
.rm-bridge__line {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 48px;
  gap: 0;
}
.rm-bridge__line::before {
  content: "";
  flex: 1;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.rm-bridge__arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  flex: 0 0 auto;
  margin-left: -1px;
}
.rm-bridge__pill {
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: inherit;
  white-space: nowrap;
}

.rm-node {
  appearance: none;
  display: block;
  width: 100%;
  max-width: 148px;
  margin: 0;
  border: 1.5px solid rgba(17, 17, 19, 0.45);
  background: #fff;
  color: var(--rm-ink);
  font-family: Onest, Manrope, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.25s ease,
    transform 0.2s ease;
}
.rm-node--stage {
  min-height: 52px;
  padding: 12px 10px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(29, 45, 80, 0.06);
}
.rm-node--leaf {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  opacity: 0.4;
  pointer-events: none;
}
.rm-node--leaf.is-on {
  opacity: 1;
  pointer-events: auto;
}
.rm-node:hover {
  border-color: var(--rm-blue);
  box-shadow: 0 10px 24px rgba(0, 113, 227, 0.14);
  transform: translateY(-1px);
}
.rm-node--stage.is-active {
  background: var(--rm-blue);
  border-color: var(--rm-blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.22);
}
.rm-node--stage.is-done:not(.is-active) {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #fff;
}
.rm-node--leaf.is-active {
  border-color: var(--rm-blue);
  background: var(--rm-blue);
  color: #fff;
  font-weight: 800;
}

.rm-vlink {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2px;
  height: 28px;
  margin: 2px 0;
  background: rgba(17, 17, 19, 0.2);
  border-radius: 2px;
  position: relative;
  opacity: 0.35;
  transition: opacity 0.25s ease, background 0.25s ease;
}
.rm-vlink::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid rgba(17, 17, 19, 0.28);
}
.rm-vlink.is-on {
  opacity: 1;
  background: var(--rm-blue);
}
.rm-vlink.is-on::after {
  border-top-color: var(--rm-blue);
}

.rm-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
}
.rm-progress button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 19, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.rm-progress button.is-active {
  background: var(--rm-blue);
  transform: scale(1.25);
}
.rm-progress button.is-done {
  background: #1d1d1f;
}

.rm-detail {
  margin: 22px auto 0;
  max-width: 720px;
  padding: 22px 24px;
  border-radius: 22px;
  border: 1px solid var(--rm-line);
  background: #fff;
  box-shadow: 0 14px 36px rgba(29, 45, 80, 0.06);
  min-height: 148px;
}
.rm-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}
.rm-detail__step {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rm-blue);
}
.rm-detail__time {
  font-size: 12px;
  font-weight: 650;
  color: #6e6e73;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4f8;
}
.rm-detail h2 {
  margin: 0;
  font-family: Onest, Manrope, "Segoe UI", sans-serif;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--rm-ink);
}
.rm-detail p {
  margin: 10px 0 0;
  color: var(--rm-muted);
  font-size: 15px;
  line-height: 1.55;
}
.rm-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rm-detail__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  background: var(--rm-blue-soft);
  color: #0b4ea2;
  font-size: 12px;
  font-weight: 650;
}

.rm-cta {
  padding: 28px 0 48px;
  text-align: center;
}
.rm-cta .svc-btn {
  margin-top: 4px;
}

.rm-mobile {
  display: none;
  padding: 8px 0 24px;
}
.rm-mobile__list {
  display: grid;
  gap: 12px;
}
.rm-mobile__card {
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: #fff;
  padding: 16px 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.rm-mobile__card.is-active {
  border-color: var(--rm-blue);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.12);
}
.rm-mobile__card b {
  display: block;
  font-family: Onest, Manrope, "Segoe UI", sans-serif;
  font-size: 16px;
  letter-spacing: -0.03em;
}
.rm-mobile__card small {
  display: block;
  margin-top: 4px;
  color: #8a8a93;
  font-size: 12px;
  font-weight: 650;
}
.rm-mobile__card p {
  margin: 8px 0 0;
  color: var(--rm-muted);
  font-size: 13px;
  line-height: 1.45;
}
.rm-mobile__card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rm-mobile__card li {
  font-size: 11px;
  font-weight: 650;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f4f8;
  color: #4a4a52;
}

@media (max-width: 900px) {
  .rm-board-wrap,
  .rm-controls,
  .rm-progress,
  .rm-detail {
    display: none;
  }
  .rm-mobile {
    display: block;
  }
}
